joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41388f
Capabilities:
Create process on windows

Disassembly:
push 0x64
mov eax, 0x535396
call fcn.004ca35e
mov edi, ecx
lea eax, [ebp - 0x70]
push eax
call fcn.0040b2e0
mov ecx, eax
call fcn.0040b24d
and dword [ebp - 4], 0
push 0
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0041240f
add esp, 0xc
push 0x53f474
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.00409dca
push eax
lea ecx, [ebp - 0x40]
call fcn.00407d24
lea eax, [edi + 0x794]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x40]
call fcn.00412b7a
push eax
lea ecx, [ebp - 0x28]
call fcn.00407d24
lea ecx, [ebp - 0x40]
call fcn.00409c65
lea ecx, [ebp - 0x58]
call fcn.00409c65
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 6
call fcn.00409c3f
push 0x5c
mov esi, str.e:workwork_pro_autoupgrader_autoupgradermainwnd.cpp
push esi
call fcn.00502960
pop ecx
pop ecx
test eax, eax
je 0x413932
push 0x5c
push esi
call fcn.00502960
pop ecx
pop ecx
lea esi, [eax + 1]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.wprogram_is__ls_n
push 0x220
push esi
push dword [0x58c85c]
call fcn.00419a18
add esp, 0x14
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov ecx, 0x53eb04
cmovae eax, dword [ebp - 0x28]
push 1
push ecx
push ecx
push eax
push 0x540128
mov ecx, edi
call fcn.00461c5b
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x28]
call fcn.00409c65
call fcn.004ca308
ret

Function at 0x413c31
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0x238
mov eax, 0x5353d1
call fcn.004ca35e
xor bl, bl
cmp dword [ecx + 0x7a4], 0
je 0x413d6e
and dword [ebp - 0x240], 0
lea eax, [ecx + 0x794]
cmp dword [eax + 0x14], 8
jb 0x413c64
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x240]
call fcn.0040f624
and dword [ebp - 4], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x23c], 0x22c
lea eax, [ebp - 0x23c]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x413caf
mov eax, dword [ebp - 0x240]
lea ecx, [eax - 0x10]
call fcn.00411ff9
xor al, al
jmp 0x413d70
lea ecx, [ebp - 0x240]
call fcn.0041191b
jmp 0x413d4b
and dword [ebp - 0x244], 0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x244]
call fcn.0040f624
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 1
call fcn.0041191b
push dword [ebp - 0x240]
lea ecx, [ebp - 0x244]
call fcn.00410ce5
test eax, eax
jne 0x413d1f
push dword [ebp - 0x234]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
push 0xffffffffffffffff
lea ecx, [ebp - 0x244]
call fcn.00412011
push 0xffffffffffffffff
lea ecx, [ebp - 0x240]
call fcn.00412011
mov ecx, dword [ebp - 0x244]
mov byte [ebp - 4], 0
lea ecx, [ecx - 0x10]
call fcn.00411ff9
lea eax, [ebp - 0x23c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x413cbf
mov ecx, dword [ebp - 0x240]
add ecx, 0xfffffff0
call fcn.00411ff9
mov al, bl
call fcn.004ca308
ret
Function at 0x413dea
Capabilities:
Accept command line arguments

Disassembly:
push 0x54
mov eax, 0x535409
call fcn.004ca35e
mov edi, ecx
and dword [ebp - 0x14], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call esi
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
call esi
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
je 0x413f5d
cmp dword [ebp - 0x14], 0xa
jl 0x413f5d
xor eax, eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
push ebx
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], eax
call fcn.0040fa1d
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
lea eax, [ebp - 0x44]
push eax
and dword [ecx + 0x10], 0
and dword [ecx + 0x14], 0
call fcn.0040906d
lea eax, [ebp - 0x60]
push eax
call fcn.0041256a
add esp, 0x1c
lea ecx, [ebp - 0x2c]
push eax
call fcn.00408658
lea ecx, [ebp - 0x60]
call fcn.00409c3f
push 0x5c
mov ebx, str.e:workwork_pro_autoupgrader_autoupgradermainwnd.cpp
push ebx
call fcn.00502960
pop ecx
pop ecx
test eax, eax
je 0x413e99
push 0x5c
push ebx
call fcn.00502960
pop ecx
pop ecx
lea ebx, [eax + 1]
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push dword [ebp - 0x14]
push str.out_put_paramater_arguments_is__d_argument__s
push 0x139
push ebx
push dword [0x58c85c]
call fcn.00419aab
add esp, 0x18
cmp dword [ebp - 0x14], 0
jle 0x413f4b
or ebx, 0xffffffff
cmp ebx, 0xb
ja case.default.0x413ed3
jmp dword [ebx*4 + 0x413f86]
lea ecx, [edi + 0x77c]
jmp 0x413f38
lea ecx, [edi + 0x7c4]
jmp 0x413f38
lea ecx, [edi + 0x794]
jmp 0x413f38
lea ecx, [edi + 0x7ac]
jmp 0x413f38
lea ecx, [edi + 0x7dc]
jmp 0x413f38
lea ecx, [edi + 0x7f4]
jmp 0x413f38
lea ecx, [edi + 0x854]
jmp 0x413f38
lea ecx, [edi + 0x80c]
jmp 0x413f38
lea ecx, [edi + 0x83c]
jmp 0x413f38
lea ecx, [edi + 0x86c]
jmp 0x413f38
lea ecx, [edi + 0x884]
jmp 0x413f38
lea ecx, [edi + 0x89c]
push dword [esi]
call fcn.00409f42
inc ebx
add esi, 4
lea eax, [ebx + 1]
cmp eax, dword [ebp - 0x14]
jl 0x413ece
lea ecx, [ebp - 0x44]
call fcn.00409c65
lea ecx, [ebp - 0x2c]
call fcn.00409c3f
jmp 0x413f7f
push 1
push str.WARNING
push 0x540274
mov ecx, edi
call fcn.00461c5b
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
call fcn.004ca308
ret

Function at 0x41ab4e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
push 2
mov eax, dword [eax + 0x224]
mov esi, dword [eax + 8]
mov edi, dword [eax + 4]
call fcn.00506f55
push eax
push esi
push 1
push edi
call fcn.00507f83
push 2
call fcn.00506f55
push eax
call fcn.0050741a
add esp, 0x1c
pop edi
pop esi
pop ebp
ret 4
Function at 0x41b3ad
Capabilities:
Create directory

Disassembly:
push 0x38
mov eax, 0x535f63
call fcn.004ca35e
xor ebx, ebx
push 0xf
pop eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x40], bl
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x28], bl
push dword [ebp + 0x18]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040c325
mov edx, dword [ebp + 0x1c]
lea esi, [ebp + 8]
mov edi, dword [ebp + 8]
cmp edx, 0x10
cmovae esi, edi
mov eax, dword [ebp + 0x18]
lea ecx, [ebp + 8]
cmp edx, 0x10
cmovae ecx, edi
add eax, ecx
cmp esi, eax
je 0x41b498
mov bl, byte [esi]
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x44], bl
push dword [ebp - 0x44]
call fcn.0040bce0
cmp bl, 0x5c
je 0x41b435
mov edx, dword [ebp + 0x1c]
lea ecx, [ebp + 8]
mov edi, dword [ebp + 8]
cmp edx, 0x10
mov eax, dword [ebp + 0x18]
cmovae ecx, edi
dec eax
add eax, ecx
cmp esi, eax
jne 0x41b492
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
push eax
call fcn.00409d71
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
xor ebx, ebx
push ebx
push eax
call fcn.0050f118
pop ecx
pop ecx
test eax, eax
je 0x41b47c
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.0050f2bc
pop ecx
test eax, eax
jne 0x41b49a
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
cmovae eax, dword [ebp - 0x28]
mov byte [eax], bl
mov edx, dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
inc esi
jmp 0x41b3f1
mov bl, 1
lea ecx, [ebp - 0x28]
call fcn.00409c3f
lea ecx, [ebp - 0x40]
call fcn.00409c3f
lea ecx, [ebp + 8]
call fcn.00409c3f
mov al, bl
call fcn.004ca308
ret

Function at 0x41b79b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x41b7a9
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41b7bd
test al, 0x10
jne 0x41b7bd
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x41eb68
Capabilities:
Write file on windows

Disassembly:
push 0x54
mov eax, 0x53634d
call fcn.004ca32a
mov edi, ecx
mov eax, dword [ebp + 8]
push dword [edi + 8]
mov eax, dword [eax + 0x224]
mov esi, dword [eax + 8]
push esi
push 1
push dword [eax + 4]
call fcn.00507f83
add esp, 0x10
cmp eax, esi
jne 0x41eb9f
call fcn.004ca2f3
ret 4
lea eax, [edi + 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0041b7c1
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x3c]
push str.Failed_writing_to_file
push eax
call fcn.0040d86b
add esp, 0x14
mov esi, eax
mov byte [ebp - 4], 1
call fcn.0050bc97
lea ecx, [ebp - 0x60]
push dword [eax]
push esi
call fcn.00418df5
push 0x57b658
lea eax, [ebp - 0x60]
push eax
call fcn.00502b55
int3
Function at 0x41ecce
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x587388]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, ecx
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 8]
mov dword [ebp - 8], edx
push ecx
push edx
push edx
push 0x10000026
push eax
push ebx
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x41ed3e
push eax
mov eax, dword [ebp - 8]
mov ecx, esi
add eax, 2
shr eax, 1
push eax
call fcn.00414033
cmp dword [esi + 0x14], 8
jb 0x41ed26
mov esi, dword [esi]
lea eax, [ebp - 8]
push eax
push esi
push 0
push 0x10000026
push dword [ebp - 0xc]
push ebx
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ca2e2
leave
ret 0xc

Function at 0x421840
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x198
mov eax, dword [0x587388]
xor eax, esp
mov dword [esp + 0x194], eax
cmp dword [0x58c9a4], 0
jne 0x4218ea
mov dword [0x58c9a4], 1
mov dword [fcn.00506e77], 0x506e77
mov dword [fcn.00506e5a], 0x506e5a
mov dword [fcn.00506e82], 0x506e82
mov dword [0x58722c], 0x5209b5
mov dword [fcn.0050f328], 0x50f328
call fcn.00429300
test eax, eax
je 0x4218fa
lea eax, [esp + 4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4218fa
mov eax, dword [esp + 4]
cmp al, 2
jne 0x421911
shr eax, 8
cmp al, 2
jne 0x421911
call fcn.00427500
test eax, eax
jne 0x4218fa
call fcn.0040aa70
test eax, eax
jne 0x4218fa
mov dword [0x58c9a8], 3
call fcn.00434890
lea eax, [esp]
push eax
call fcn.0042a8b0
add esp, 4
test eax, eax
je 0x42192e
xor eax, eax
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.004ca2e2
add esp, 0x198
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.004ca2e2
add esp, 0x198
ret
mov ecx, dword [esp + 0x194]
mov eax, dword [esp]
xor ecx, esp
call fcn.004ca2e2
add esp, 0x198
ret
Function at 0x421be0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x587388]
xor eax, esp
mov dword [esp + 0x190], eax
mov eax, dword [0x58c9a4]
mov ecx, eax
inc eax
mov dword [0x58c9a4], eax
test ecx, ecx
je 0x421c1c
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004ca2e2
add esp, 0x194
ret
cmp byte [esp + 0x19c], 0
je 0x421c58
mov dword [fcn.00506e77], 0x506e77
mov dword [fcn.00506e5a], 0x506e5a
mov dword [fcn.00506e82], 0x506e82
mov dword [0x58722c], 0x5209b5
mov dword [fcn.0050f328], 0x50f328
push ebx
mov ebx, dword [esp + 0x19c]
test bl, 1
je 0x421c6e
call fcn.00429300
test eax, eax
je 0x421ca8
test bl, 2
je 0x421c9f
lea eax, [esp + 4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x421ca8
mov eax, dword [esp + 4]
cmp al, 2
jne 0x421cc3
shr eax, 8
cmp al, 2
jne 0x421cc3
call fcn.00427500
test eax, eax
jne 0x421ca8
call fcn.0040aa70
test eax, eax
je 0x421ccb
mov eax, 2
pop ebx
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004ca2e2
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x421ca8
mov eax, dword [0x58c9e8]
test bl, 4
mov ecx, 1
mov dword [0x58c9a8], ebx
cmovne eax, ecx
mov dword [0x58c9e8], eax
call fcn.00434890
mov ecx, dword [esp + 0x194]
xor eax, eax
pop ebx
xor ecx, esp
call fcn.004ca2e2
add esp, 0x194
ret
Function at 0x432580
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x587388]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push edi
mov edi, dword [esp + 0x114]
lea eax, [esp + 0x11c]
push eax
push dword [esp + 0x11c]
lea eax, [esp + 0x10]
push 0x100
push eax
call fcn.00434bf0
lea esi, [esp + 0x18]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4325c5
sub esi, ecx
mov ecx, dword [edi + 0x198]
test ecx, ecx
je 0x4325f9
cmp byte [edi + 0x4778], al
jne 0x4325f9
lea edx, [esp + 8]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x4325e4
mov byte [edi + 0x4778], 1
cmp byte [edi + 0x3c8], 0
je 0x432633
mov byte [esp + esi + 8], 0xa
inc esi
cmp esi, 0x102
jae 0x43268b
mov eax, dword [edi + 0x208]
mov byte [esp + esi + 8], 0
test eax, eax
je 0x43264a
push dword [edi + 0x194]
lea ecx, [esp + 0xc]
push esi
push ecx
push 0
push edi
call eax
add esp, 0x14
pop edi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004ca2e2
add esp, 0x108
ret
push dword [edi + 0x190]
push 1
push 2
push 0x5453e0
call fcn.00507f83
push dword [edi + 0x190]
lea eax, [esp + 0x1c]
push 1
push esi
push eax
call fcn.00507f83
mov ecx, dword [esp + 0x12c]
add esp, 0x20
pop edi
pop esi
xor ecx, esp
call fcn.004ca2e2
add esp, 0x108
ret
call fcn.004cb201
int3

Function at 0x4326a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x808
mov eax, dword [0x587388]
xor eax, esp
mov dword [esp + 0x804], eax
push edi
mov edi, dword [esp + 0x810]
test edi, edi
je 0x432769
cmp byte [edi + 0x3c8], 0
je 0x432769
push esi
lea eax, [esp + 0x81c]
push eax
push dword [esp + 0x81c]
lea eax, [esp + 0x10]
push 0x801
push eax
call fcn.00434bf0
lea esi, [esp + 0x18]
add esp, 0x10
lea ecx, [esi + 1]
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x432700
mov eax, dword [edi + 0x208]
sub esi, ecx
test eax, eax
je 0x43273e
push dword [edi + 0x194]
lea ecx, [esp + 0xc]
push esi
push ecx
push 0
push edi
call eax
add esp, 0x14
pop esi
pop edi
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.004ca2e2
add esp, 0x808
ret
push dword [edi + 0x190]
push 1
push 2
push 0x5453e0
call fcn.00507f83
push dword [edi + 0x190]
lea eax, [esp + 0x1c]
push 1
push esi
push eax
call fcn.00507f83
add esp, 0x20
pop esi
mov ecx, dword [esp + 0x808]
pop edi
xor ecx, esp
call fcn.004ca2e2
add esp, 0x808
ret
Function at 0x432d60
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, 0x1cc
mov ecx, dword [edi + 0x1ac]
cmp edx, ecx
sete al
lea eax, [eax*4 + 0x1a8]
mov ebp, dword [eax + edi]
mov eax, 0x1dc
cmove esi, eax
mov eax, dword [edi + 0x3d0]
add esi, edi
mov ebx, dword [esi + 4]
sub ebx, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x432e38
xor eax, eax
cmp edx, ecx
sete al
lea eax, [eax*4 + 0x1bc]
cmp dword [eax + edi], 0x432920
jne 0x432e38
cmp dword [esi], 0
je 0x432dc8
test ebx, ebx
je 0x432e38
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.00431ef0
add esp, 0x14
cmp eax, 0xffffffff
je 0x432e38
test al, 1
je 0x432e38
mov ecx, dword [esi]
test ecx, ecx
jne 0x432e18
mov eax, dword [edi]
mov eax, dword [eax + 0x388]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x587220]
mov ebx, dword [esi + 4]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test ecx, ecx
je 0x432e31
mov eax, dword [esi + 8]
push 0
push ebx
add eax, ecx
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x432e38
add dword [esi + 8], eax
jmp 0x432e38
mov dword [esi + 4], 0
push 0
push dword [esp + 0x24]
push dword [esp + 0x24]
push ebp
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x432ea1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x432e72
mov ecx, dword [esp + 0x24]
lea eax, [ebx + 0x52]
pop edi
pop esi
pop ebp
mov dword [ecx], 0
pop ebx
ret
push esi
push edi
call fcn.004224e0
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.00432580
mov eax, dword [edi]
add esp, 0x14
mov ecx, dword [esp + 0x24]
pop edi
mov dword [eax + 0x477c], esi
mov eax, 0x37
pop esi
pop ebp
mov dword [ecx], ebx
pop ebx
ret
mov ecx, dword [esp + 0x24]
xor eax, eax
pop edi
pop esi
pop ebp
mov dword [ecx], ebx
pop ebx
ret

Function at 0x432fa0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x208]
test eax, eax
je 0x432fc9
push dword [esi + 0x194]
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
push esi
call eax
add esp, 0x14
pop esi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x433002
push dword [esi + 0x190]
lea eax, [eax + eax*2]
push 1
add eax, 0x5453e0
push 2
push eax
call fcn.00507f83
push dword [esi + 0x190]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.00507f83
add esp, 0x20
xor eax, eax
pop esi
ret

Function at 0x4330c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 0x1ec], 0
je 0x4330dd
push eax
call fcn.0040ca10
add esp, 4
test eax, eax
jne 0x4330fc
xor al, al
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x4330da
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x4330da
mov al, 1
ret
Function at 0x4400d0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x547484
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x4400ea
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x5474a0
push esi
call fcn.00517a30
add esp, 8
test eax, eax
je 0x440132
test ebp, ebp
je 0x440123
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x440158
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x440158
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x44020f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x440175
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x587220]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x440205
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x440205
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4401a7
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4401c0
sub ecx, edx
sub ecx, esi
add ecx, ebx
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x4401d0
test ebp, ebp
je 0x4401fc
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x587224]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x587224]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x4403c0
Capabilities:
Resolve dns

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x18]
push ebx
push ebp
xor ebx, ebx
xor ebp, ebp
mov dword [eax], ebx
lea eax, [esp + 8]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x44053c
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x440527
push esi
cmp dword [edi + 4], 2
jne 0x4404b4
cmp dword [edi + 0x18], 0
je 0x4404b4
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4404b4
cmp eax, 0x10
jb 0x4404b4
push 0x20
call dword [0x587220]
mov esi, eax
add esp, 4
test esi, esi
je 0x44051c
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [0x587220]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x44050b
mov ecx, dword [edi + 0x18]
movups xmm0, xmmword [ecx]
movups xmmword [eax], xmm0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x4404a6
push eax
call dword [0x58722c]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x4404f1
test ebx, ebx
cmove ebx, esi
test ebp, ebp
je 0x4404b2
mov dword [ebp + 0x1c], esi
mov ebp, esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x440400
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
pop esi
test eax, eax
je 0x4404d3
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebp, ebp
je 0x440523
push ebx
call fcn.00440380
mov eax, dword [esp + 0x28]
add esp, 4
xor ebx, ebx
mov dword [eax], ebx
mov eax, ebp
pop edi
pop ebp
pop ebx
add esp, 8
ret
push dword [esi + 0x18]
mov ebp, 8
call dword [0x587224]
push esi
call dword [0x587224]
add esp, 8
jmp 0x4404c3
push esi
mov ebp, 8
call dword [0x587224]
add esp, 4
jmp 0x4404c3
mov ebp, 8
jmp 0x4404c3
test ebx, ebx
jne 0x440533
mov ebp, 0x2af9
push ebp
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x24]
pop edi
mov dword [eax], ebx
mov eax, ebp
pop ebp
pop ebx
add esp, 8
ret

Function at 0x440980
Capabilities:
Generate random numbers via winapi

Disassembly:
push ecx
push 0xf0000040
push 1
push 0
push 0
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4409c5
push dword [esp + 8]
push dword [esp + 0x10]
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 4]
test eax, eax
jne 0x4409cc
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
pop ecx
ret
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop ecx
ret