joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402db8
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402e11
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402c54
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402c54
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402dfb
inc ebx
jmp 0x402de4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402e18
lea eax, [ebp - 8]
call fcn.004044d4
ret

Function at 0x402e20
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004044d4
test esi, esi
jne 0x402e57
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.004045c4
jmp 0x402e78
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402c54
mov dword [esp], eax
test esi, esi
je 0x402e78
cmp dword [ebx], 0
je 0x402e78
dec esi
jmp 0x402e5f
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4030dc
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x42b008], 0x8088405
inc edx
mov dword [ebx + 0x42b008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403594
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x42b024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40362c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40360c
xor eax, eax
push ebp
push 0x403605
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403648
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40360c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x42b024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x42b024], ax
mov esp, ebp
pop ebp
ret

Function at 0x4042ac
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x42c04c], 0
je 0x40430d
cmp word [0x42c220], 0xd7b2
jne 0x4042d5
cmp dword [0x42c228], 0
jbe 0x4042d5
mov eax, 0x42c21c
call dword [0x42c238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x42b070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404334
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x42b034], 0
jne 0x404329
push 0
push 0x42b068
push 0x42b070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404488
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402a20
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x42c04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404450
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4065b8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40661e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404744
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004030f8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406608
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406625
lea eax, [ebp - 0x10]
call fcn.004044d4
ret

Function at 0x40afb0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40afe9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004045c4
jmp 0x40aff2
mov eax, ebx
mov edx, esi
call fcn.00404528
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40affc
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b01d
mov al, byte [esp]
jmp 0x40b01f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b6b4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b51c
mov eax, dword [0x42ba58]
cmp byte [eax], 0
je 0x40b730
mov eax, dword [0x42b910]
call fcn.00402f64
call fcn.00402b80
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004088d0
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b778
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b766
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x42b8d4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x42c668]
call fcn.004059c8
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40c504
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c568
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404744
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408244
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c56f
lea eax, [ebp - 0xc]
call fcn.004044d4
ret

Function at 0x415f80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0x416014
push 0
mov eax, ebx
call fcn.00404970
push eax
mov eax, dword [ebp + 8]
push eax
call sub.advapi32.dll_RegCreateKeyExA
mov ebx, eax
test ebx, ebx
jne 0x415fef
mov eax, esi
call fcn.00404770
inc eax
push eax
mov eax, esi
call fcn.00404970
push eax
push 1
push 0
mov eax, edi
call fcn.00404970
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
test ebx, ebx
je 0x41600a
mov ecx, dword [0x42b920]
mov dl, 1
mov eax, dword [0x414d20]
call fcn.0040b838
call fcn.00403dbc
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x418270
Capabilities:
Get file attributes

Disassembly:
call fcn.00417a90
push eax
call sub.kernel32.dll_GetFileAttributesA
inc eax
je 0x418284
dec eax
and al, 0x10
sete al
ret

Function at 0x4183dc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x418446
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
call fcn.004046cc
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.0041833c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41844d
lea eax, [ebp - 0x10c]
call fcn.004044d4
ret

Function at 0x418454
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4184be
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
call fcn.004046cc
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.0041833c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4184c5
lea eax, [ebp - 0x10c]
call fcn.004044d4
ret
Function at 0x4184cc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x418536
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x105
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
call fcn.004046cc
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.0041833c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41853d
lea eax, [ebp - 0x10c]
call fcn.004044d4
ret

Function at 0x4185e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
push eax
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
call fcn.00404970
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete al
pop ebp
ret

Function at 0x418718
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov esi, edx
mov ebx, eax
test ebx, ebx
je 0x418745
lea eax, [esp + 4]
push eax
push 0
lea eax, [esp + 8]
push eax
push 0
mov eax, esi
call fcn.00404970
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x418749
xor eax, eax
jmp 0x41874b
mov al, 1
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4187f0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4188bd
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.0041aac4
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
push edi
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
jne 0x4188a7
cmp dword [ebp - 0xc], 0
jbe 0x4188a5
mov ebx, dword [ebp - 0xc]
dec ebx
test ebx, ebx
jb 0x4188a5
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00404aa0
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
call fcn.004049c8
push eax
push esi
push edi
call sub.advapi32.dll_RegEnumKeyExA
lea eax, [ebp - 0x14]
call fcn.004049c8
push eax
call sub.kernel32.dll_lstrlenA_1
mov edx, eax
lea eax, [ebp - 0x14]
call fcn.00404aa0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
call fcn.0041aab4
inc esi
dec ebx
jne 0x418850
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4188c4
lea eax, [ebp - 0x14]
call fcn.004044d4
ret
Function at 0x4188d0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x41899f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0041aac4
xor ebx, ebx
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
push edi
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
jne 0x418989
cmp dword [ebp - 0x10], 0
jbe 0x418987
mov ebx, dword [ebp - 0x10]
dec ebx
test ebx, ebx
jb 0x418987
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 8]
call fcn.00404aa0
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
call fcn.004049c8
push eax
push esi
push edi
call sub.advapi32.dll_RegEnumValueA
lea eax, [ebp - 0x18]
call fcn.004049c8
push eax
call sub.kernel32.dll_lstrlenA_1
mov edx, eax
lea eax, [ebp - 0x18]
call fcn.00404aa0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
call fcn.0041aab4
inc esi
dec ebx
jne 0x418932
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4189a6
lea eax, [ebp - 0x18]
call fcn.004044d4
ret

Function at 0x41972c
Capabilities:
Create thread

Disassembly:
push ebx
mov eax, dword [0x42b8cc]
mov byte [eax], 1
mov edx, dword [0x417a30]
xor eax, eax
call fcn.00417ac8
mov ebx, eax
mov byte [ebx + 0x18], 1
lea eax, [ebx + 0x1e]
push eax
push 4
push ebx
push 0x41971c
push 0
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [ebx + 0x1a], eax
mov eax, ebx
pop ebx
ret

Function at 0x41981c
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov byte [ebx + 0x18], 0
mov eax, dword [ebx + 0x1a]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jbe 0x419837
mov byte [ebx + 0x18], 1
pop ebx
ret
cmp word [ebx + 0x2c], 0
je 0x419846
mov edx, ebx
mov eax, dword [ebx + 0x2e]
call dword [ebx + 0x2a]
pop ebx
ret

Function at 0x419848
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, eax
push 0
mov eax, dword [ebx + 0x1a]
push eax
call sub.kernel32.dll_TerminateThread
mov byte [ebx + 0x19], 1
pop ebx
ret

Function at 0x41b358
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
cmp byte [0x42b650], 0xff
je 0x41b36e
mov al, byte [0x42b650]
jmp 0x41b3ce
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x41b3a7
mov al, 3
mov edx, dword [esp + 4]
cmp edx, 6
jb 0x41b393
mov al, 6
jmp 0x41b3c9
cmp edx, 5
jb 0x41b3c9
cmp dword [esp + 8], 1
jb 0x41b3a3
mov al, 5
jmp 0x41b3c9
mov al, 4
jmp 0x41b3c9
cmp eax, 1
jne 0x41b3c7
mov al, 1
cmp dword [esp + 4], 4
ja 0x41b3c3
cmp dword [esp + 4], 4
jne 0x41b3c9
cmp dword [esp + 8], 0xa
jb 0x41b3c9
mov al, 2
jmp 0x41b3c9
xor eax, eax
mov byte [0x42b650], al
add esp, 0x94
ret
Function at 0x41f090
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041eee8
dec esi
jne 0x41f0b2
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x421578
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
lea ebx, [ebp - 0xc]
mov esi, 0x42c940
cmp dword [esi], 0
jne 0x42161e
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x42c938]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x42b744
mov ecx, 2
call fcn.00402c14
mov edx, 0x421550
mov eax, dword [ebp - 8]
add eax, 5
call fcn.00421570
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebx], eax
mov eax, dword [ebx]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebx]
call fcn.00421570
mov edx, dword [ebx]
mov dword [edx + 1], eax
mov eax, dword [ebx]
mov edx, dword [esi]
mov dword [eax + 5], edx
mov eax, dword [ebx]
mov dword [esi], eax
add dword [ebx], 0xd
mov eax, dword [ebx]
sub eax, dword [ebp - 8]
cmp eax, 0x52b
jl 0x4215e5
mov eax, dword [ebp - 8]
mov dword [0x42c938], eax
mov eax, dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebx]
mov eax, dword [eax + 5]
mov dword [esi], eax
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
inc dword [0x42c93c]
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x421854
Capabilities:
Initialize winsock library

Disassembly:
push ebx
add esp, 0xfffffe70
inc dword [0x42b770]
mov edx, dword [0x421800]
xor eax, eax
call fcn.00417ac8
mov ebx, eax
cmp dword [0x42b770], 1
jne 0x42188d
push esp
push 0x101
call sub.wsock32.dll_WSAStartup
mov edx, eax
mov eax, ebx
call fcn.00421b8c
mov eax, ebx
call fcn.00421bd0
mov dword [ebx + 0x28], 0xffffffff
mov word [ebx + 0x18], 2
push 0x4218dc
call sub.wsock32.dll_inet_addr
mov dword [ebx + 0x1c], eax
mov eax, ebx
xor edx, edx
call fcn.00421c7c
call fcn.00417b5c
mov dword [ebx + 0x440], eax
mov eax, ebx
push eax
push 0x421e3c
call fcn.00421814
mov dword [ebx + 0x2c], eax
mov eax, ebx
add esp, 0x190
pop ebx
ret

Function at 0x421b68
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x28], 0xffffffff
jne 0x421b88
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov edx, eax
mov eax, ebx
call fcn.00421b8c
mov dword [ebx + 0x28], eax
pop ebx
ret

Function at 0x421bd0
Capabilities:
Resolve dns

Disassembly:
push ecx
xor eax, eax
mov dword [esp], eax
push 0x421bfc
call sub.wsock32.dll_gethostbyname
push 2
push 4
lea eax, [esp + 8]
push eax
call sub.wsock32.dll_gethostbyaddr
push 0x421bfc
call sub.wsock32.dll_gethostbyname
pop edx
ret
Function at 0x421c00
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404960
xor eax, eax
push ebp
push 0x421c6e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404970
mov edi, eax
push edi
call sub.wsock32.dll_inet_addr
mov esi, eax
mov dword [ebx + 0x1c], esi
inc esi
jne 0x421c58
push edi
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x421c58
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebx + 0x1c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x421c75
lea eax, [ebp - 4]
call fcn.004044d4
ret

Function at 0x421d44
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.00421cec
mov eax, ebx
call fcn.00421b68
push 0x31
push 0x7400
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax + 0x18]
push eax
mov eax, dword [ebx + 0x28]
push eax
call sub.wsock32.dll_WSAAsyncSelect
mov edx, eax
mov eax, ebx
call fcn.00421b8c
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 0x28]
push eax
call sub.wsock32.dll_connect
mov esi, eax
inc esi
jne 0x421da0
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x421da0
mov eax, ebx
or edx, 0xffffffff
call fcn.00421b8c
pop esi
pop ebx
ret

Function at 0x425568
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404960
xor eax, eax
push ebp
push 0x4255d2
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4255b2
push dword fs:[eax]
mov dword fs:[eax], esp
push 7
mov eax, dword [ebp - 4]
call fcn.00404970
push eax
call sub.kernel32.dll_SetFileAttributesA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4255bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4255d9
lea eax, [ebp - 4]
call fcn.004044d4
ret

Function at 0x42567c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404960
mov eax, dword [ebp - 8]
call fcn.00404960
mov eax, dword [ebp - 0xc]
call fcn.00404960
xor eax, eax
push ebp
push 0x425726
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x425701
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 8]
call fcn.00404970
push eax
mov eax, dword [ebp - 4]
call fcn.00404970
push eax
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.004255e4
mov eax, dword [ebp - 8]
call fcn.00425568
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x42570b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42572d
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004044f8
ret
Function at 0x425738
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 7
push 0
push 0
dec ecx
jne 0x425741
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
call fcn.00404960
mov eax, dword [ebp - 8]
call fcn.00404960
xor eax, eax
push ebp
push 0x42592b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4258f9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004044d4
lea eax, [ebp - 0x14]
call fcn.004183dc
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00404778
mov eax, dword [ebp - 0x14]
call fcn.00404970
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.004046cc
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.00404970
mov edx, eax
lea eax, [ebp - 0x18]
call fcn.004046cc
mov eax, dword [ebp - 0x18]
mov ecx, edi
pop edx
call fcn.0042567c
test al, al
je 0x4257fb
test bl, bl
jne 0x4257fb
lea eax, [ebp - 0x1c]
call fcn.004183dc
mov edx, dword [ebp - 0x1c]
mov eax, esi
mov ecx, dword [ebp - 8]
call fcn.004047bc
jmp 0x4258cf
lea eax, [ebp - 0x24]
call fcn.00418454
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 8]
call fcn.00404778
mov eax, dword [ebp - 0x24]
call fcn.00404970
mov edx, eax
lea eax, [ebp - 0x20]
call fcn.004046cc
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
call fcn.00404970
mov edx, eax
lea eax, [ebp - 0x28]
call fcn.004046cc
mov eax, dword [ebp - 0x28]
mov ecx, edi
pop edx
call fcn.0042567c
test al, al
je 0x425860
test bl, bl
jne 0x425860
lea eax, [ebp - 0x2c]
call fcn.00418454
mov edx, dword [ebp - 0x2c]
mov eax, esi
mov ecx, dword [ebp - 8]
call fcn.004047bc
jmp 0x4258cf
lea eax, [ebp - 0x34]
call fcn.004184cc
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 8]
call fcn.00404778
mov eax, dword [ebp - 0x34]
call fcn.00404970
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.004046cc
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 4]
call fcn.00404970
mov edx, eax
lea eax, [ebp - 0x38]
call fcn.004046cc
mov eax, dword [ebp - 0x38]
mov ecx, edi
pop edx
call fcn.0042567c
test al, al
je 0x4258c5
test bl, bl
jne 0x4258c5
lea eax, [ebp - 0x3c]
call fcn.004184cc
mov edx, dword [ebp - 0x3c]
mov eax, esi
mov ecx, dword [ebp - 8]
call fcn.004047bc
jmp 0x4258cf
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00404528
cmp byte [ebp - 9], 0
je 0x4258ef
mov eax, dword [esi]
mov edx, dword [ebp - 4]
call fcn.004048bc
je 0x4258ef
mov eax, dword [ebp - 4]
call fcn.00404970
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x425903
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x425932
lea eax, [ebp - 0x3c]
mov edx, 0xc
call fcn.004044f8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004044f8
ret