joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4063c8
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 0x40642e
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.004048f0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004030b0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406418
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406435
lea eax, [ebp - 0x10]
call fcn.00404680
ret

Function at 0x40bc2c
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 0x40bc65
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404770
jmp 0x40bc6e
mov eax, ebx
mov edx, esi
call fcn.004046d4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bc78
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 0x40bc99
mov al, byte [esp]
jmp 0x40bc9b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c320
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c198
mov eax, dword [0x4652ac]
cmp byte [eax], 0
je 0x40c39c
mov eax, dword [0x4650b0]
call fcn.00402f04
call fcn.00402884
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.0040906c
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 0x40c3e4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c3d2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46505c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x466668]
call fcn.004058c0
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 0x40cc5c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40cd32
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404718
lea eax, [ebp - 8]
call fcn.00404bac
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404b5c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cd1c
mov eax, ebx
call fcn.0040271c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cd15
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404b5c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40ccff
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cd44
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40ccff
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cd1c
mov eax, dword [ebp - 0x10]
call fcn.0040273c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cd39
lea eax, [ebp - 8]
call fcn.00404680
ret

Function at 0x40d1b8
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 0x40d21c
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.004048f0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040899c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d223
lea eax, [ebp - 0xc]
call fcn.00404680
ret

Function at 0x41bdec
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x46688c
cmp dword [edi], 0
jne 0x41be68
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x466888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x464408
mov ecx, 2
call fcn.00402990
mov edx, 0x41bdc4
lea eax, [esi + 5]
call fcn.0041bde4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041bde4
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41be3d
mov dword [0x466888], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x41cd0c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00404b4c
mov eax, dword [ebp - 8]
call fcn.00404b4c
xor eax, eax
push ebp
push 0x41ce09
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x41cd5d
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x41cd5d
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00404bfc
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.00404b5c
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x41cdee
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00404b5c
mov esi, eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x41cdde
mov eax, ebx
mov edx, dword [ebp - 0x10]
call fcn.00404ce8
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx]
call fcn.00404b5c
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
push ebx
mov eax, dword [ebx]
call fcn.0040495c
mov ecx, eax
dec ecx
mov eax, dword [ebx]
mov edx, 1
call fcn.00404bbc
jmp 0x41cde5
mov eax, ebx
call fcn.00404680
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ce10
lea eax, [ebp - 8]
mov edx, 2
call fcn.004046a4
ret

Function at 0x41d8f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404b4c
xor eax, eax
push ebp
push 0x41d9cf
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, 0x41d9e8
call fcn.00404ca0
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040495c
dec eax
cmp ebx, eax
jne 0x41d94e
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
call fcn.0040495c
mov ecx, eax
sub ecx, 2
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404bbc
mov eax, dword [ebp - 4]
call fcn.0040495c
mov ebx, eax
test ebx, ebx
jle 0x41d985
mov dword [ebp - 8], 1
lea eax, [ebp - 4]
call fcn.00404bb4
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov cl, byte [ecx + edi - 1]
xor cl, 0x62
mov byte [eax + edx - 1], cl
inc dword [ebp - 8]
dec ebx
jne 0x41d963
mov eax, dword [ebp - 4]
call fcn.0040495c
mov dword [ebp - 8], eax
lea edx, [ebp - 8]
mov ecx, 4
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x10]
cmp dword [ebp - 8], 0
jle 0x41d9b9
lea eax, [ebp - 4]
call fcn.00404bb4
mov edx, eax
mov ecx, dword [ebp - 8]
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x10]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d9d6
lea eax, [ebp - 4]
call fcn.00404680
ret
Function at 0x41dc80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
lea edx, [ebp - 4]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00404ce8
cmp dword [ebp - 4], 0
jle 0x41dcbd
mov eax, ebx
call fcn.00404bb4
mov edx, eax
mov ecx, dword [ebp - 4]
mov eax, esi
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebx]
call fcn.0040495c
mov esi, eax
test esi, esi
jle 0x41dcf1
mov dword [ebp - 4], 1
mov eax, ebx
call fcn.00404bb4
mov edx, dword [ebp - 4]
mov ecx, dword [ebx]
mov edi, dword [ebp - 4]
mov cl, byte [ecx + edi - 1]
xor cl, 0x62
mov byte [eax + edx - 1], cl
inc dword [ebp - 4]
dec esi
jne 0x41dcd1
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x41e7d4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, ebx
mov edx, 8
mov eax, ebx
call fcn.0041e7a8
test al, al
je 0x41e80f
cmp word [ebx], 0x25ff
jne 0x41e80f
cmp word [ebx + 6], 0xc08b
jne 0x41e80f
mov edx, 4
mov eax, dword [ebx + 2]
call fcn.0041e7a8
test al, al
je 0x41e80f
mov eax, dword [ebx + 2]
mov esi, dword [eax]
mov eax, esi
pop esi
pop ebx
ret

Function at 0x41e814
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, ecx
mov edi, edx
mov ebx, eax
push esp
push 0x40
push esi
push ebx
call sub.kernel32.dll_VirtualProtect
mov edx, ebx
mov eax, edi
mov ecx, esi
call fcn.00402990
push esp
mov eax, dword [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_VirtualProtect
push esi
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x41e8c4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 8]
call fcn.00404b4c
xor eax, eax
push ebp
push 0x41eaad
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0041e7d4
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.0041e7d4
mov dword [ebp - 4], eax
test esi, esi
jne 0x41e930
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, 0x41eac8
mov dl, 1
mov eax, dword [0x41e69c]
call fcn.0040c448
call fcn.00404018
jmp 0x41e977
cmp esi, 0x7fffffff
jbe 0x41e977
mov eax, dword [0x4653a8]
cmp dword [eax], 2
je 0x41e977
mov eax, esi
call fcn.00405848
lea edx, [ebp - 0x18]
call fcn.0041e894
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, 0x41eaf8
mov dl, 1
mov eax, dword [0x41e750]
call fcn.0040c448
call fcn.00404018
xor edx, edx
push ebp
push 0x41ea5f
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, 0x43
call fcn.0040271c
mov ebx, eax
lea eax, [ebp - 0xc]
push eax
push 0x40
push 0x2d
lea eax, [ebx + 0x16]
push eax
call sub.kernel32.dll_VirtualProtect
lea eax, [ebx + 0x16]
mov byte [eax], 0x50
mov dword [eax + 1], 0x424448b
mov byte [eax + 5], 0xa3
lea edx, [ebx + 8]
mov dword [eax + 6], edx
mov byte [eax + 0xa], 0x58
mov byte [eax + 0xb], 0x83
mov word [eax + 0xc], 0x4c4
mov byte [eax + 0xe], 0x68
mov dword [eax + 0xf], ebx
mov byte [eax + 0x13], 0xe8
mov edx, fcn.0041e874
lea ecx, [ebx + 0x29]
sub edx, ecx
sub edx, 5
mov dword [eax + 0x14], edx
mov byte [eax + 0x18], 0xe8
lea edx, [ebx + 0x2e]
mov ecx, esi
sub ecx, edx
sub ecx, 5
mov dword [eax + 0x19], ecx
mov byte [eax + 0x1d], 0x68
mov dword [eax + 0x1e], ebx
mov byte [eax + 0x22], 0xe8
mov edx, fcn.0041e854
lea ecx, [ebx + 0x38]
sub edx, ecx
sub edx, 5
mov dword [eax + 0x23], edx
mov word [eax + 0x27], 0x25ff
lea edx, [ebx + 8]
mov dword [eax + 0x29], edx
lea edi, [ebx + 0x16]
mov dword [ebx], esi
mov eax, dword [ebp - 4]
mov dword [ebx + 4], eax
lea edx, [ebx + 0xc]
mov eax, esi
mov ecx, 5
call fcn.00402990
mov edx, ebx
mov eax, dword [0x4668c4]
call fcn.00414a28
mov byte [ebx + 0x11], 0xe9
mov eax, dword [ebp - 4]
sub eax, esi
sub eax, 5
mov dword [ebx + 0x12], eax
push ebx
call fcn.0041e854
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41ea8f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41eab4
lea eax, [ebp - 0x18]
call fcn.00404680
lea eax, [ebp - 8]
call fcn.00404680
ret
Function at 0x41f068
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
push ebp
push 0x41f0dd
push dword fs:[eax]
mov dword fs:[eax], esp
push 6
lea eax, [ebp - 7]
push eax
push 0x1004
push 0x400
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0x2c]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004048f0
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040899c
push 2
lea edx, [ebp - 0x27]
push edx
push eax
call sub.gdi32.dll_TranslateCharsetInfo
mov ebx, dword [ebp - 0x27]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41f0e4
lea eax, [ebp - 0x2c]
call fcn.00404680
ret

Function at 0x41f310
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41f37c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebx + 0x30]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov esi, eax
test esi, esi
je 0x41f366
push 0
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.0040bbe0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 8]
mov edx, 0x41f394
mov eax, ebx
call fcn.0041f4a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41f383
lea eax, [ebp - 0xc]
call fcn.00404680
ret

Function at 0x41f444
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00404b5c
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00403090
test ebx, ebx
je 0x41f48f
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret
Function at 0x41f6ac
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41f809
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x20], 0
jne 0x41f7ee
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov dword [ebx + 0x24], esi
inc esi
jne 0x41f703
push 0
xor eax, eax
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea ecx, [ebp - 0xc]
mov edx, 0x41f820
mov eax, ebx
call fcn.0041f4a0
mov word [ebx + 4], 2
mov edx, dword [ebx + 0x14]
mov eax, ebx
call fcn.0041f444
mov dword [ebx + 8], eax
mov ax, word [ebx + 0x18]
push eax
call sub.wsock32.dll_htons
mov word [ebx + 6], ax
push 0
push 0
push 0
mov eax, dword [ebx + 0x24]
push eax
call sub.wsock32.dll_WSAAsyncSelect
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x8004667e
mov eax, dword [ebx + 0x24]
push eax
call sub.wsock32.dll_ioctlsocket
push 0x10
lea eax, [ebx + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.wsock32.dll_connect
test eax, eax
je 0x41f785
push 0
call sub.wsock32.dll_WSAGetLastError
lea edx, [ebp - 0x10]
call fcn.0040bbe0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea ecx, [ebp - 0xc]
mov edx, 0x41f838
mov eax, ebx
call fcn.0041f4a0
cmp dword [ebx + 0x24], 0xffffffff
setne al
mov byte [ebx + 0x20], al
lea eax, [ebp - 0x14]
push eax
xor eax, eax
mov al, byte [ebx + 8]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0
xor eax, eax
mov al, byte [ebx + 9]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
xor eax, eax
mov al, byte [ebx + 0xa]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0
xor eax, eax
mov al, byte [ebx + 0xb]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
movzx eax, word [ebx + 0x18]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x3c]
mov ecx, 4
mov eax, 0x41f858
call fcn.00409748
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x1c0]
call fcn.004046d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41f810
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004046a4
ret
Function at 0x41f87c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
push ebp
push 0x41f911
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
cmp byte [ebx + 0x20], 0
je 0x41f8fb
push 0
mov eax, dword [ebp - 4]
push eax
push edx
mov eax, dword [ebx + 0x24]
push eax
call sub.wsock32.dll_send
mov esi, eax
cmp esi, 0xffffffff
jne 0x41f8fb
call sub.wsock32.dll_WSAGetLastError
mov edi, eax
cmp edi, 0x2733
je 0x41f8fb
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 4]
test edi, edi
je 0x41f8fb
push 0
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.0040bbe0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea ecx, [ebp - 0xc]
mov edx, 0x41f92c
mov eax, ebx
call fcn.0041f4a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41f918
lea eax, [ebp - 0x10]
call fcn.00404680
ret

Function at 0x41f960
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41fa17
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
cmp esi, 0xffffffff
jne 0x41f9a6
cmp byte [ebx + 0x20], 0
je 0x41f9a6
lea eax, [ebp - 4]
push eax
push 0x4004667f
mov eax, dword [ebx + 0x24]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x41fa01
cmp byte [ebx + 0x20], 0
je 0x41fa01
push 0
push esi
push edi
mov eax, dword [ebx + 0x24]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x41fa01
call sub.wsock32.dll_WSAGetLastError
mov esi, eax
cmp esi, 0x2733
je 0x41fa01
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 4]
test esi, esi
je 0x41fa01
push 0
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.0040bbe0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea ecx, [ebp - 0xc]
mov edx, 0x41fa30
mov eax, ebx
call fcn.0041f4a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41fa1e
lea eax, [ebp - 0x10]
call fcn.00404680
ret

Function at 0x41fa9c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov ebx, edx
mov esi, eax
call sub.kernel32.dll_GetTickCount
mov edi, eax
mov edx, ebx
mov eax, esi
call fcn.0041fa48
cmp dword [ebx], 0
jne 0x41fac2
push 1
call sub.kernel32.dll_Sleep
cmp dword [ebx], 0
jne 0x41fad3
call sub.kernel32.dll_GetTickCount
sub eax, edi
cmp eax, dword [esi + 0x1c]
jb 0x41faad
cmp dword [ebx], 0
jne 0x41faf5
push 0
xor eax, eax
mov dword [esp + 4], eax
mov byte [esp + 8], 0xb
lea ecx, [esp + 4]
mov edx, 0x41fb04
mov eax, esi
call fcn.0041f4a0
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x420664
Capabilities:
Read file via mapping

Disassembly:
push ebx
call fcn.00420604
mov ebx, eax
test ebx, ebx
jne 0x4206a0
call fcn.00420568
push eax
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov ebx, eax
push 0
push 0
push 0
push 0xf001f
push ebx
call sub.kernel32.dll_MapViewOfFile
mov dword [eax], ebx
push eax
call sub.kernel32.dll_UnmapViewOfFile
pop ebx
ret

Function at 0x420934
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
xor edx, edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x420adf
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004027ac
mov edx, dword [0x40790c]
call fcn.0040396c
test al, al
jne 0x420ab7
call fcn.004027ac
mov edx, dword [0x4078a4]
call fcn.0040396c
test al, al
je 0x42099d
call fcn.004027ac
mov edx, dword [eax + 4]
lea eax, [ebp - 0xc]
call fcn.00404718
jmp 0x4209aa
lea eax, [ebp - 0xc]
mov edx, 0x420af4
call fcn.00404718
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x18], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea edx, [ebp - 0x1c]
mov ecx, 1
mov eax, 0x420b14
call fcn.00409748
mov eax, dword [ebp - 8]
call fcn.00404b5c
push eax
call sub.kernel32.dll_OutputDebugStringA
push 0
xor eax, eax
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, dword [ebp - 8]
call fcn.0041ce18
call fcn.0041d328
call fcn.0041d3dc
test al, al
je 0x420ab7
push 0x242014
push 0x420b3c
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x420b5c
call fcn.00409748
mov eax, dword [ebp - 0x28]
call fcn.00404b5c
push eax
push 0
call sub.user32.dll_MessageBoxA_1
cmp eax, 6
jne 0x420ab7
lea edx, [ebp - 0x2c]
xor eax, eax
call fcn.00402b1c
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 4]
mov edx, 0x420bd4
call fcn.00408d9c
call fcn.0041d26c
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x420be4
mov edx, 0x420be4
mov eax, 0x420c0c
call fcn.00426a2c
test al, al
jne 0x420ab7
push 0x242030
push 0x420c20
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x420c34
call fcn.00409748
mov eax, dword [ebp - 0x30]
call fcn.00404b5c
push eax
push 0
call sub.user32.dll_MessageBoxA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420ae6
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.004046a4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004046a4
ret