joyce8/EMBER2024-capa huggingface dataset:
Function at 0x578c37
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.ProcComs
mov esi, eax
push 0x66
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x578c77
xor eax, eax
jmp 0x578ce2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, 0x6d0da8
push esi
push 0x104
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push str.ProcComs.bin
push esi
push 0x645790
push esi
call fcn.005dd5b8
add esp, 0x10
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x578c73
push edi
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 4], ebx
sete al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x578ce7
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x6c6e10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push esi
mov dword [ebp - 0x10c], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.RemComSVC
mov edi, eax
push 0x65
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x110], eax
cmp eax, esi
jne 0x578d3b
xor eax, eax
jmp 0x578daf
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push str.RemComSvc.exe
push dword [0x6ccda4]
mov edi, eax
lea eax, [ebp - 0x108]
push str._sADMIN_System32_s
push eax
call fcn.005dd5b8
add esp, 0x10
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x578d37
push esi
lea eax, [ebp - 0x10c]
push eax
push edi
push dword [ebp - 0x110]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x10c], edi
sete al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005dcf8a
leave
ret
Function at 0x578dbe
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x6c6e10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push esi
mov dword [ebp - 0x10c], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.RemComSVC
mov edi, eax
push 0x65
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x110], eax
cmp eax, esi
jne 0x578e12
xor eax, eax
jmp 0x578e86
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push str.RemComSvc.exe
push dword [0x6ccda4]
mov edi, eax
lea eax, [ebp - 0x108]
push str._sADMIN_SysWOW64_s
push eax
call fcn.005dd5b8
add esp, 0x10
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x578e0e
push esi
lea eax, [ebp - 0x10c]
push eax
push edi
push dword [ebp - 0x110]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x10c], edi
sete al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005dcf8a
leave
ret

Function at 0x57903c
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x308
mov eax, dword [0x6c6e10]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64589c
call fcn.00578a0c
pop ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esi + 0x1108], eax
mov eax, 0x6ccda8
lea ecx, [esi + 0x110c]
sub ecx, eax
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x57907a
push 0x64578c
call fcn.005789c1
pop ecx
test eax, eax
jne 0x5790ae
push 0x6ceda8
push dword [0x6d0eb8]
push 0x645894
push esi
call fcn.005dd5b8
add esp, 0x10
jmp 0x5790f6
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x308]
push eax
push dword [0x6d0eb8]
call fcn.005e384e
push 0x6ceda8
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x204]
push eax
push str._s_s__s
push esi
call fcn.005dd5b8
add esp, 0x28
push str.realtime
call fcn.005789c1
pop ecx
test eax, eax
je 0x579111
mov dword [esi + 0x1104], 0x100
jmp 0x579147
push str.high
call fcn.005789c1
pop ecx
test eax, eax
je 0x57912c
mov dword [esi + 0x1104], 0x80
jmp 0x579147
push str.idle
call fcn.005789c1
neg eax
sbb eax, eax
and eax, 0x20
add eax, 0x20
pop ecx
mov dword [esi + 0x1104], eax
push str.nowait
call fcn.005789c1
pop ecx
mov dword [esi + 0x1210], eax
test edi, edi
je 0x579170
lea edx, [esi + 0x1000]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x579166
push esi
push dword [0x6ccda4]
mov esi, 0x6cfda8
push str._s_:__s
push esi
call fcn.005dd5b8
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
inc eax
pop esi
call fcn.005dcf8a
leave
ret
Function at 0x57941b
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
push esi
push esi
push 0x5791a2
call fcn.005e3992
push esi
push esi
push 0x5792c6
call fcn.005e3992
push esi
push esi
push 0x57936f
call fcn.005e3992
add esp, 0x24
pop esi
ret

Function at 0x579672
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1224
call fcn.005e38a0
mov eax, dword [0x6c6e10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x1214
xor ebx, ebx
push esi
lea eax, [ebp - 0x1218]
push ebx
push eax
mov dword [ebp - 0x1224], ebx
call fcn.005dd9b0
xor eax, eax
lea edi, [ebp - 0x1220]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x1218]
push eax
call fcn.0057903c
add esp, 0x10
push ebx
lea eax, [ebp - 0x1224]
push eax
push esi
lea eax, [ebp - 0x1218]
push eax
push dword [0x6c6474]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x3e8
push 5
call fcn.00579447
pop ecx
pop ecx
test eax, eax
je 0x579736
push str.Ok_n_n
push 0x6aa560
call fcn.005e1f9e
add eax, 0x20
push eax
call fcn.005e3085
call fcn.005e1f9e
add eax, 0x20
push eax
call fcn.005e22df
add esp, 0x10
push ebx
lea eax, [ebp - 0x1224]
push eax
push 8
lea eax, [ebp - 0x1220]
push eax
push dword [0x6c6474]
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x57975f
push str.Failed_n_n
push 0x6aa560
call fcn.005e1f9e
add eax, 0x20
push eax
call fcn.005e3085
call fcn.005e1f9e
add eax, 0x20
push eax
call fcn.005e22df
add esp, 0x10
cmp dword [ebp - 0x1220], ebx
pop edi
pop esi
pop ebx
jne 0x579788
push dword [ebp - 0x121c]
push dword [ebp - 0x121c]
push str._nRemote_command_returned__d_0x_X__n
call fcn.005dcd3f
mov eax, dword [ebp - 0x121c]
jmp 0x5797a4
push dword [ebp - 0x1220]
push dword [ebp - 0x1220]
push str._nRemote_command_failed_to_start._Returned_error_code_is__d_0x_X__n
call fcn.005dcd3f
mov eax, dword [ebp - 0x1220]
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0xc
call fcn.005dcf8a
leave
ret

Function at 0x57a4b6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
push 0x44
pop edi
push edi
xor esi, esi
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.005dd9b0
xor eax, eax
mov dword [ebp - 0x54], edi
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x6c647c]
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [0x6c6478]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x57a515
call fcn.00578630
xor eax, eax
jmp 0x57a533
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x57a8d4
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push esi
push accept
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0xffffffff
je 0x57a916
cmp eax, 2
je 0x57a916
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x57aa2e
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status

Disassembly:
push 0x70
push 0x6bb110
call fcn.005e3a40
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], 0x7530
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44]
push eax
xor edi, edi
push edi
push edi
xor ebx, ebx
inc ebx
push ebx
push dword [0x6ccd9c]
mov esi, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
call esi
test eax, eax
jne 0x57ab83
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x57aa84
xor eax, eax
jmp 0x57ab85
push dword [ebp - 0x44]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x50], eax
cmp eax, edi
je 0x57aa7d
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x44]
push ecx
push dword [ebp - 0x44]
push eax
push ebx
push dword [0x6ccd9c]
call esi
test eax, eax
jne 0x57aace
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x6c6e10
call fcn.005e3df0
add esp, 0xc
jmp 0x57aa7d
mov dword [ebp - 0x48], edi
mov esi, dword [ebp - 0x48]
cmp esi, dword [ebp - 0x4c]
jae 0x57ab77
imul esi, esi, 0x24
add esi, dword [ebp - 0x50]
push 9
pop ecx
lea edi, [ebp - 0x80]
rep movsd dword es:[edi], dword [esi]
push 0x24
push dword [ebp - 0x80]
push dword [0x6ccda0]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
mov dword [ebp - 0x5c], esi
test esi, esi
je 0x57aab9
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x40]
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x57aab9
cmp dword [ebp - 0x3c], ebx
je 0x57ab59
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x44]
push eax
push 0x24
lea eax, [ebp - 0x40]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x57aab9
cmp dword [ebp - 0x3c], ebx
je 0x57ab59
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x54]
cmp eax, dword [ebp - 0x58]
jbe 0x57ab18
jmp 0x57aab9
and dword [ebp - 4], 0
call fcn.0057ab6d
inc dword [ebp - 0x48]
jmp 0x57aad1
mov dword [ebp - 4], 0xfffffffe
call fcn.0057ab8e
mov eax, ebx
call fcn.005e3a88
ret
Function at 0x57aba1
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x6c6e10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
push 0xf003f
push 0
push dword [0x6ccda4]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [0x6ccda0], eax
test eax, eax
jne 0x57abf1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed___d__n
call fcn.005dcd3f
pop ecx
pop ecx
jmp 0x57ad78
push 0x2c
push 0x645834
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [0x6ccd9c], eax
test eax, eax
jne 0x57ac2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService_failed___d__n
call fcn.005dcd3f
pop ecx
pop ecx
push dword [0x6ccda0]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x57ad78
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
lea ecx, [ebp - 0x30]
push ecx
push 0x24
lea ecx, [ebp - 0x28]
push ecx
push 0
push eax
call esi
test eax, eax
jne 0x57ac5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceStatusEx_failed___d__n
call fcn.005dcd3f
pop ecx
jmp 0x57ac6a
cmp dword [ebp - 0x24], 1
jne 0x57ac70
push str.Service_is_already_stopped._n
call fcn.005dcd3f
pop ecx
jmp 0x57ad61
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x57accf
push str.Service_stop_pending..._n
call fcn.005dcd3f
mov eax, dword [ebp - 0x10]
pop ecx
push 0xa
xor edx, edx
pop ecx
div ecx
mov ecx, 0x3e8
cmp eax, ecx
jb 0x57aca0
mov ecx, 0x2710
cmp eax, ecx
jbe 0x57aca2
mov eax, ecx
push eax
call edi
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push dword [0x6ccd9c]
call esi
test eax, eax
je 0x57acfe
cmp dword [ebp - 0x24], 1
je 0x57ad12
call ebx
sub eax, dword [ebp - 0x2c]
cmp eax, 0x7530
ja 0x57ad19
cmp dword [ebp - 0x24], 3
je 0x57ac79
call fcn.0057aa2e
lea eax, [ebp - 0x28]
push eax
push 1
push dword [0x6ccd9c]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x57ad4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ControlService_failed___d__n
jmp 0x57ad0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceStatusEx_failed___d__n
call fcn.005dcd3f
pop ecx
jmp 0x57ad5f
push str.Service_stopped_successfully._n
jmp 0x57ad5a
push str.Service_stop_timed_out._n
jmp 0x57ad5a
push dword [ebp - 0x10]
call edi
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push dword [0x6ccd9c]
call esi
test eax, eax
je 0x57acfe
cmp dword [ebp - 0x24], 1
je 0x57ad55
call ebx
sub eax, dword [ebp - 0x2c]
cmp eax, 0x7530
ja 0x57ad85
cmp dword [ebp - 0x24], 1
jne 0x57ad20
push str.Service_stopped_successfully_n
call fcn.005dcd3f
pop ecx
pop edi
push dword [0x6ccd9c]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [0x6ccda0]
call esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.005dcf8a
leave
ret
push str.Wait_timed_out_n
jmp 0x57ad5a
Function at 0x57afd2
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6c6e10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, str.RemComSvc.exe
push ebx
push dword [0x6ccda4]
lea eax, [ebp - 0x108]
push str._sADMIN_System32_s
push eax
call fcn.005dd5b8
lea eax, [ebp - 0x108]
push eax
mov edi, str.Going_to_delete_the_service_:__s_n
push edi
call fcn.0057af1d
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
call esi
test eax, eax
jne 0x57b070
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_cleanup_:_:__d_n
mov dword [ebp - 0x210], eax
call fcn.0057af1d
cmp dword [ebp - 0x210], 5
pop ecx
pop ecx
jne 0x57b07b
call fcn.0057aba1
lea eax, [ebp - 0x108]
push eax
call esi
test eax, eax
je 0x57b07b
push str.Service_stoped_and_delted_n
jmp 0x57b075
push str.Successfully_deleted........._n
call fcn.0057af1d
pop ecx
push ebx
push dword [0x6ccda4]
lea eax, [ebp - 0x20c]
push str._sADMIN_SysWOW64_s
push eax
call fcn.005dd5b8
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.0057af1d
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
jne 0x57b0e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.Failed_to_cleanup_:_:__d_n
call fcn.0057af1d
pop ecx
pop ecx
cmp edi, 5
jne 0x57b0ee
call fcn.0057aba1
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x57b0ee
push str.Service_stoped_and_delted_n
jmp 0x57b0e8
push str.Successfully_deleted........._n
call fcn.0057af1d
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.005dcf8a
leave
ret
Function at 0x57bacc
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x6c6e10]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
push ecx
push eax
lea eax, [ebp - 0x108]
push 0x645790
push eax
call fcn.005dd5b8
xor ebx, ebx
add esp, 0x10
lea eax, [ebp - 0x108]
cmp dword [ebp + 0x10], ebx
je 0x57bc2d
mov dword [ebp - 0x114], eax
mov eax, dword [0x6d0eac]
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x10c], ebx
cmp eax, ebx
jne 0x57bb42
push str.Password_is_NULL_hence_the_conection_establishment_skipped_n
call fcn.0057af1d
pop ecx
push 0x56
pop eax
jmp 0x57bc44
push ebx
push dword [0x6d0eb0]
push eax
lea eax, [ebp - 0x128]
push eax
call sub.MPR.dll_WNetAddConnection2A
mov esi, eax
cmp esi, ebx
je 0x57bb6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.EstablishConnection__:_WNetAddConnection2_is_Failed:__d_n
call fcn.0057af1d
pop ecx
pop ecx
mov eax, esi
sub eax, 5
je 0x57bb8b
sub eax, 0x51
je 0x57bb8b
sub eax, 0x46d
je 0x57bb8b
sub eax, 0x6b
jne 0x57bc37
cmp dword [0x6d0eb0], ebx
je 0x57bc37
cmp dword [0x6d0eac], ebx
jne 0x57bc37
push str.Invalid_password_n_n
mov esi, 0x6aa560
push esi
call fcn.005e1f9e
add eax, 0x20
push eax
call fcn.005e3085
call fcn.005e1f9e
add eax, 0x20
push eax
call fcn.005e22df
push 1
call fcn.0057b263
add esp, 0x14
push str.Connecting_to_remote_service_...
push esi
call fcn.005e1f9e
add eax, 0x20
push eax
call fcn.005e3085
call fcn.005e1f9e
add eax, 0x20
push eax
call fcn.005e22df
add esp, 0x10
push ebx
push dword [0x6d0eb0]
lea eax, [ebp - 0x128]
push dword [0x6d0eac]
push eax
call sub.MPR.dll_WNetAddConnection2A
mov esi, eax
cmp esi, ebx
je 0x57bc42
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.EstablishConnection__:_WNetAddConnection2_is_Failed:__d_n
call fcn.0057af1d
pop ecx
pop ecx
jmp 0x57bc37
push ebx
push ebx
push eax
call sub.MPR.dll_WNetCancelConnection2A
mov esi, eax
cmp esi, ebx
je 0x57bc42
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.005dcf8a
leave
ret
Function at 0x582f40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x63f8a8
push eax
mov dword fs:[0], esp
sub esp, 0x54
push esi
mov esi, ecx
cmp dword [esi + 0x58], 0
jne 0x582f75
xor eax, eax
pop esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 0xc
mov eax, dword [esi + 0x64]
push ebx
push ebp
shr eax, 1
xor ebp, ebp
push edi
mov dword [esp + 0x10], eax
cmp dword [esp + 0x7c], ebp
jl 0x582ffb
jg 0x582f91
cmp dword [esp + 0x78], ebp
jbe 0x582ffb
mov edi, dword [esp + 0x78]
mov eax, dword [esp + 0x10]
sub edi, ebp
cmp edi, eax
jbe 0x582fa1
mov edi, eax
mov eax, dword [esi + 0x64]
mov edx, dword [esi + 0x68]
mov ecx, dword [esi + 0x50]
push 0
push eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
push edx
mov edx, dword [esp + 0x80]
xor ebx, ebx
push ebx
push edi
add edx, ebp
push edx
call eax
add ebp, edi
cmp edx, ebx
jl 0x582feb
jg 0x582fcf
cmp eax, ebx
jbe 0x582feb
mov ecx, dword [esi + 0x68]
push edx
push eax
push ecx
mov ecx, dword [esi + 0x58]
call fcn.00582c50
mov eax, dword [esi + 0x58]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
cmp dword [edx + eax + 0xc], ebx
jne 0x583012
xor eax, eax
cmp eax, dword [esp + 0x7c]
jl 0x582f91
jg 0x582ffb
cmp ebp, dword [esp + 0x78]
jb 0x582f91
mov ecx, dword [esp + 0x64]
pop edi
mov eax, ebp
pop ebp
pop ebx
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret 0xc
push 0x15
push str.Output_stream_failure
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00573a5b
push ebx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x74], ebx
call fcn.00608140
push 0x6bb990
lea ecx, [esp + 0x38]
push ecx
call fcn.005dcab3
int3
Function at 0x583470
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x63f9ea
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov dword [esp + 8], 0
cmp dword [esp + 0x30], 0
mov dword [esp + 0xc], edi
mov esi, 1
je 0x5834c7
mov dword [edi], 0x6472f0
mov dword [edi + 0x78], 0x6472e8
mov dword [edi + 0x80], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [esp + 0x18], 0
mov dword [esp + 8], esi
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push 0
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
mov ecx, edi
call fcn.005831c0
mov ecx, dword [edi + 0x78]
mov edx, dword [ecx + 4]
lea eax, [edi + 0x78]
mov dword [eax + edx], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov ecx, dword [eax]
mov dword [esp + 0x18], esi
mov esi, dword [ecx + 4]
add esi, eax
mov ecx, esi
mov dword [esp + 0x30], eax
call fcn.00572505
lea edx, [edi + 8]
push 0x20
mov ecx, esi
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], 0
call fcn.00573734
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x583539
mov eax, dword [esi + 0xc]
or eax, 4
push 0
push eax
mov ecx, esi
call fcn.00572429
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [edi + ecx], vtable.Poco::Crypto::CryptoOutputStream.0
mov ecx, dword [esp + 0x10]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 0x14

Function at 0x587a90
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
xor eax, eax
xor edx, edx
cmp ecx, 0
je 0x587ac3
mov dl, byte [esi]
lea esi, [esi + 1]
xor dl, byte [edi]
lea edi, [edi + 1]
or al, dl
dec ecx
jne 0x587aab
neg eax
shr eax, 0x1f
pop edi
pop esi
ret
Function at 0x588f00
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
push edi
push esi
push edi
push esi
mov ebx, esp
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
push ecx
mov eax, dword [esp + 0x34]
push eax
push ebx
cmp ecx, 0
je 0x588fdb
and ebp, 0xfffffff8
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
je 0x588f76
mov ecx, dword [esi]
mov edx, dword [esi + 4]
xor eax, ecx
xor ebx, edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
call fcn.00588b40
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov dword [edi], eax
mov dword [edi + 4], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x588f44
mov ebp, dword [esp + 0x38]
and ebp, 7
je 0x589094
call 0x588f88
pop edx
lea ecx, [edx + 0x138]
mov ebp, dword [ecx + ebp*4]
add ebp, edx
xor ecx, ecx
xor edx, edx
jmp ebp
and ebp, 0xfffffff8
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
je 0x589033
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
call fcn.00588b40
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x588fec
mov ebp, dword [esp + 0x38]
and ebp, 7
je 0x589094
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
call fcn.00588b40
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
ror edx, 0x10
mov byte [edi + 6], dl
shr edx, 0x10
mov byte [edi + 5], dh
mov byte [edi + 4], dl
mov dword [edi], ecx
jmp 0x58908f
jmp 0x589094
mov ecx, dword [esp + 0x40]
add esp, 0x1c
mov dword [ecx], eax
mov dword [ecx + 4], ebx
pop edi
pop esi
pop ebx
pop ebp
ret