joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a8fb
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x462370]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x41a932
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.0040ea8b
add esp, 0xc
jmp 0x41a95f
call dword [sym.imp.WS2_32.dll_WSACleanup]
cmp byte [ebp - 0x194], 2
jne 0x41a952
mov eax, dword [ebp - 0x194]
shr eax, 8
test al, al
jne 0x41a952
xor eax, eax
jmp 0x41a962
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.0040ea8b
pop ecx
pop ecx
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043c86a
leave
ret

Function at 0x41aa9f
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, eax
mov al, byte [ebp + 8]
push 0
mov byte [ebp - 3], al
push 3
lea eax, [ebp - 4]
mov esi, ecx
mov edi, dword [esi]
push eax
push dword [esi + 0x1b8]
mov byte [ebp - 4], 0xff
mov byte [ebp - 2], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x41aae6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.0040ea8b
add esp, 0xc
mov edx, dword [ebp + 8]
mov esi, dword [esi]
mov ecx, ebx
mov ebx, str.SENT
call fcn.0041a9d3
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41b2c4
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x910
mov eax, dword [0x462370]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x7f
xor edi, edi
lea eax, [ebp - 0x103]
push edi
push eax
mov byte [ebp - 0x104], 0
call fcn.0043c7f0
push 0x7f
lea eax, [ebp - 0x83]
push edi
push eax
mov byte [ebp - 0x84], 0
call fcn.0043c7f0
mov ecx, dword [ebx]
mov esi, dword [ecx + 0x14c]
mov eax, dword [esi + 0x1eb4]
sub eax, dword [esi + 0x1eb0]
mov dword [ebp - 0x908], ecx
add eax, 2
push eax
push 0x3c
lea eax, [esi + 0x1cb0]
push ecx
call fcn.0041ad5f
mov eax, dword [esi + 0x1eb0]
movzx ecx, byte [eax]
add esp, 0x24
inc eax
mov dword [esi + 0x1eb0], eax
cmp ecx, 0x18
je 0x41b47d
cmp ecx, 0x23
je 0x41b459
cmp ecx, 0x27
jne 0x41b50f
push edi
push ecx
push 0xfa
mov edi, 0xff
push edi
push str._c_c_c_c
lea eax, [ebp - 0x904]
push 0x800
push eax
call fcn.004285eb
mov esi, dword [esi + 0x1cac]
add esp, 0x1c
mov dword [ebp - 0x910], 4
jmp 0x41b41d
push dword [esi]
call fcn.0043bce0
inc eax
add eax, dword [ebp - 0x910]
pop ecx
mov dword [ebp - 0x90c], eax
cmp eax, 0x7fa
jae 0x41b41a
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x104]
push eax
push str._127_____127s
push dword [esi]
call fcn.0043f2c2
add esp, 0x10
test eax, eax
je 0x41b41a
lea eax, [ebp - 0x84]
push eax
push 1
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebp - 0x910]
push 0
mov ecx, 0x800
sub ecx, eax
push str._c_s_c_s
push ecx
lea eax, [ebp + eax - 0x904]
push eax
call fcn.004285eb
mov eax, dword [ebp - 0x90c]
add esp, 0x1c
mov dword [ebp - 0x910], eax
mov esi, dword [esi + 4]
test esi, esi
jne 0x41b39c
mov eax, dword [ebp - 0x910]
push 0xf0
push edi
mov ecx, 0x800
sub ecx, eax
push 0x4547e0
push ecx
lea eax, [ebp + eax - 0x904]
push eax
call fcn.004285eb
mov esi, dword [ebp - 0x910]
add esp, 0x14
add esi, 2
jmp 0x41b4c1
add esi, 0x1c28
push esi
mov dword [ebp - 0x90c], esi
call fcn.0043bce0
push 0xf0
mov edi, 0xff
push edi
push esi
push 0
push 0x23
jmp 0x41b49f
add esi, 0x1c08
push esi
mov dword [ebp - 0x90c], esi
call fcn.0043bce0
push 0xf0
mov edi, 0xff
push edi
push esi
push 0
push 0x18
push 0xfa
push edi
push str._c_c_c_c_s_c_c
lea esi, [eax + 6]
lea eax, [ebp - 0x904]
push 0x800
push eax
call fcn.004285eb
add esp, 0x2c
push 0
push esi
lea eax, [ebp - 0x904]
push eax
push dword [ebx + 0x1b8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x41b4f5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push dword [ebp - 0x908]
call fcn.0040ea8b
add esp, 0xc
add esi, 0xfffffffe
push esi
push 0x3e
push dword [ebp - 0x908]
lea eax, [ebp - 0x902]
call fcn.0041ad5f
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043c86a
leave
ret
Function at 0x41b69f
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0x1f
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push edi
mov edi, dword [eax + 0x14c]
mov dword [ebp - 4], eax
jne 0x41b7ec
push ebx
push esi
lea ebx, [edi + 0x1cb0]
lea esi, [edi + 0x1eb0]
mov dword [esi], ebx
cmp ebx, esi
jae 0x41b6d5
mov byte [ebx], 0xff
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x41b6e0
mov byte [eax], 0xfa
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x41b6eb
mov byte [eax], 0x1f
inc dword [esi]
movzx eax, word [edi + 0x1ca8]
push eax
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
mov dword [ebp + 0xc], eax
movzx eax, word [edi + 0x1caa]
push eax
call dword [sym.imp.WS2_32.dll_htons]
movzx ecx, ax
mov eax, dword [esi]
cmp eax, esi
jae 0x41b71d
mov dl, byte [ebp + 0xc]
mov byte [eax], dl
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x41b72a
mov dl, byte [ebp + 0xd]
mov byte [eax], dl
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x41b734
mov byte [eax], cl
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x41b73e
mov byte [eax], ch
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x41b749
mov byte [eax], 0xff
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x41b754
mov byte [eax], 0xf0
inc dword [esi]
mov ecx, dword [esi]
mov eax, ecx
sub eax, ebx
sub eax, 2
push eax
push 0x3e
push dword [ebp - 4]
lea eax, [edi + 0x1cb2]
mov dword [edi + 0x1eb4], ecx
mov dword [esi], ebx
call fcn.0041ad5f
mov esi, dword [sym.imp.WS2_32.dll_send]
add esp, 0xc
push 0
push 3
push ebx
mov ebx, dword [ebp + 8]
push dword [ebx + 0x1b8]
call esi
test eax, eax
jns 0x41b7aa
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push dword [ebp - 4]
call fcn.0040ea8b
add esp, 0xc
lea eax, [edi + 0x1cb3]
push eax
push ebx
push 4
pop eax
call fcn.0041b51d
pop ecx
pop ecx
push 0
push 2
add edi, 0x1cb7
push edi
push dword [ebx + 0x1b8]
call esi
pop esi
pop ebx
test eax, eax
jns 0x41b7ec
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push dword [ebp - 4]
call fcn.0040ea8b
add esp, 0xc
pop edi
leave
ret
Function at 0x41c101
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x462370]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x1bc]
mov esi, dword [edi]
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x84]
push ecx
push eax
mov dword [ebp - 0x8c], eax
or ebx, 0xffffffff
mov dword [ebp - 0x88], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x41c173
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x8c]
mov dword [ebp - 0x88], 0x80
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
push dword [ebp - 0x8c]
push edi
call fcn.00413477
pop ecx
pop ecx
cmp ebx, 0xffffffff
jne 0x41c198
push str.Error_accept__ing_server_connect
push esi
call fcn.0040ea8b
pop ecx
pop ecx
push 0x1e
pop eax
jmp 0x41c202
push str.Connection_accepted_from_server_n
push esi
call fcn.0040e9e4
and dword [edi + 0x2a4], 0xfffff7ff
push 1
push ebx
mov dword [edi + 0x1bc], ebx
call fcn.00433a52
xor eax, eax
inc eax
add esp, 0x10
mov dword [edi + 0x1cc], eax
cmp dword [esi + 0x608], 0
je 0x41c200
push eax
push esi
call fcn.00410f9e
push 1
push ebx
push dword [esi + 0x60c]
call dword [esi + 0x608]
push 0
push esi
mov ebx, eax
call fcn.00410f9e
add esp, 0x1c
test ebx, ebx
je 0x41c200
call fcn.0041c052
push 0x2a
jmp 0x41c195
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043c86a
leave
ret
Function at 0x41f3ff
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push edi
push 0x64
cdq
pop ebx
idiv ebx
mov ecx, dword [esi]
xor edi, edi
cmp eax, 2
je 0x41f428
push str.Couldnt_set_desired_mode
push ecx
call fcn.0040ea8b
pop ecx
pop ecx
push 0x11
pop eax
jmp 0x41f47e
cmp dword [ebp + 8], 0xc8
je 0x41f442
push dword [ebp + 8]
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ecx
call fcn.0040e9e4
add esp, 0xc
mov eax, dword [ebp + 0xc]
cmp eax, 0x13
jne 0x41f453
push esi
call fcn.0041f398
pop ecx
jmp 0x41f47a
cmp eax, 0x14
jne 0x41f460
push esi
call fcn.0041ccc4
jmp 0x41f450
cmp eax, 0x15
jne 0x41f46e
mov eax, esi
call fcn.0041f3e7
jmp 0x41f47a
cmp eax, 0x16
jne 0x41f47c
mov eax, esi
call fcn.0041f3f3
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop ebp
ret

Function at 0x429d93
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x429db4
cmp dword [esi + 0x80], 0
je 0x429db4
push 2
push 3
push esi
call fcn.0040e263
add esp, 0xc
push dword [ebp + 0xc]
call fcn.0043110f
pop ecx
test esi, esi
je 0x429dd4
cmp dword [esi + 0x80], 0
je 0x429dd4
push 3
push esi
call fcn.0040e2a0
pop ecx
pop ecx
pop esi
pop ebp
ret

Function at 0x42f6e3
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push 4
pop ebx
xor esi, esi
push edi
push esi
push dword [ebp + 0x10]
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edi
call fcn.0043c7f0
add esp, 0xc
push 0xf0000000
push dword [ebp + 0x14]
lea eax, [ebp - 8]
push esi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x42f798
lea eax, [ebp - 4]
push eax
push esi
push esi
push dword [ebp + 0x18]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x42f77b
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x42f77b
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp - 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
call ebx
test eax, eax
je 0x42f77b
cmp edi, dword [ebp - 0xc]
jb 0x42f77b
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
push 2
push dword [ebp - 4]
call ebx
cmp dword [ebp - 4], esi
je 0x42f789
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 8], esi
je 0x42f798
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
pop ebx
leave
ret
Function at 0x43240d
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
and dword [eax], 0
and dword [ebp - 4], 0
and dword [ebp - 0x10], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 8], eax
test eax, eax
jne 0x432579
push esi
push edi
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x43255d
push ebx
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x432459
push 0x10
jmp 0x432464
cmp eax, 0x17
jne 0x4324f5
push 0x1c
cmp dword [edi + 0x18], 0
pop ebx
je 0x4324f5
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4324f5
cmp eax, ebx
jb 0x4324f5
push 0x20
call dword [section..data]
mov esi, eax
xor eax, eax
pop ecx
cmp esi, eax
je 0x432502
mov ecx, dword [edi]
mov dword [esi], ecx
mov ecx, dword [edi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov ecx, dword [edi + 0xc]
push ebx
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], eax
call dword [section..data]
pop ecx
mov dword [esi + 0x18], eax
test eax, eax
je 0x43250b
push ebx
push dword [edi + 0x18]
push eax
call fcn.0043c360
mov eax, dword [edi + 0x14]
add esp, 0xc
test eax, eax
je 0x4324df
push eax
call dword [0x46200c]
pop ecx
mov dword [esi + 0x14], eax
test eax, eax
je 0x43251b
cmp dword [ebp - 4], 0
jne 0x4324e8
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4324f2
mov dword [eax + 0x1c], esi
mov dword [ebp - 0x10], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x43244d
jmp 0x432534
mov dword [ebp - 8], 8
jmp 0x432534
push esi
mov dword [ebp - 8], 8
call dword [0x462004]
jmp 0x432533
push dword [esi + 0x18]
mov dword [ebp - 8], 8
call dword [0x462004]
push esi
call dword [0x462004]
pop ecx
pop ecx
xor esi, esi
pop ebx
cmp dword [ebp - 0xc], esi
je 0x432545
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], esi
je 0x432558
push dword [ebp - 4]
call fcn.004323d8
pop ecx
mov dword [ebp - 4], esi
jmp 0x43256c
cmp dword [ebp - 4], esi
jne 0x43256c
mov eax, 0x2af9
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
pop edi
mov dword [ecx], eax
mov eax, dword [ebp - 8]
pop esi
leave
ret

Function at 0x432850
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.00440f07
add esp, 0x18
test eax, eax
je 0x432872
cmp eax, 0xffffffff
jne 0x432874
xor eax, eax
pop ebp
ret
Function at 0x43b069
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [section..data]
mov edi, eax
pop ecx
test edi, edi
je 0x43b147
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov ecx, dword [esi + 0xc]
add ecx, eax
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], ecx
cmp ebx, dword [esi + 0x10]
jbe 0x43b0cb
push eax
call dword [esi]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call dword [esi + 4]
mov ebx, dword [edi + 8]
add ebx, dword [esi + 0xc]
push dword [edi + 4]
push ebx
call dword [esi + 8]
mov dword [ebp + 0xc], ebx
mov ebx, dword [esi + 0x14]
add esp, 0x18
push dword [edi + 4]
call dword [esi]
push dword [edi + 8]
call dword [esi]
and dword [ebp - 4], 0
pop ecx
pop ecx
test ebx, ebx
je 0x43b11a
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 0xc]
mov al, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
push 1
lea eax, [ebp + 0xb]
push eax
push dword [edi + 4]
call dword [esi + 4]
mov al, byte [ebx]
xor al, 0x5c
mov byte [ebp + 0xb], al
push 1
lea eax, [ebp + 0xb]
push eax
push dword [edi + 8]
inc ebx
mov dword [ebp + 0xc], ebx
call dword [esi + 4]
add esp, 0x18
dec dword [ebp - 8]
jne 0x43b0e5
pop ebx
jmp 0x43b13d
push 1
push 0x45c7d1
push dword [edi + 4]
call dword [esi + 4]
push 1
push 0x45c7d2
push dword [edi + 8]
call dword [esi + 4]
add esp, 0x18
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x10]
jb 0x43b11d
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x43c86a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x462370]
jne 0x43c874
repz ret
jmp fcn.004441d0
Function at 0x449c0c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x462370]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00442558
and dword [ebp - 0x14], 0
cmp dword [0x464914], 0
mov dword [ebp - 0x18], eax
jne 0x449cbf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x449d67
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x45db24
push ebx
call edi
test eax, eax
je 0x449d67
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x464914], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x464918], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x46491c], eax
call edi
push eax
call esi
mov dword [0x464924], eax
test eax, eax
je 0x449cbf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x464920], eax
mov eax, dword [0x464920]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x449d18
cmp dword [0x464924], ecx
je 0x449d18
push eax
call esi
push dword [0x464924]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x449d18
test ebx, ebx
je 0x449d18
call edi
test eax, eax
je 0x449d0f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x449d0f
test byte [ebp - 8], 1
jne 0x449d18
or dword [ebp + 0x10], 0x200000
jmp 0x449d4b
mov eax, dword [0x464918]
cmp eax, dword [ebp - 0x18]
je 0x449d4b
push eax
call esi
test eax, eax
je 0x449d4b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x449d4b
mov eax, dword [0x46491c]
cmp eax, dword [ebp - 0x18]
je 0x449d4b
push eax
call esi
test eax, eax
je 0x449d4b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x464914]
call esi
test eax, eax
je 0x449d67
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x449d69
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043c86a
leave
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x44edb5
call fcn.0043ca11
mov dword [eax], esi
call fcn.0043c9fe
push 0x16
pop esi
mov dword [eax], esi
call fcn.004435f7
mov eax, esi
jmp 0x44ee0a
test dword [ebp + 0xc], 0xfffffff9
jne 0x44ed9b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x44ede2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043ca24
pop ecx
call fcn.0043c9fe
mov eax, dword [eax]
jmp 0x44ee0a
test al, 0x10
jne 0x44ee08
test al, 1
je 0x44ee08
test byte [ebp + 0xc], 2
je 0x44ee08
call fcn.0043ca11
mov dword [eax], 5
call fcn.0043c9fe
mov dword [eax], 0xd
jmp 0x44edd9
xor eax, eax
pop esi
pop ebp
ret
Function at 0x52b4760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4e85000]
push edi
jmp 0x52b477a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x52b4781
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52b4770
mov eax, 1
add ebx, ebx
jne 0x52b4793
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x52b47a4
jne 0x52b47c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52b47c3
dec eax
add ebx, ebx
jne 0x52b47b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x52b4788
add ebx, ebx
jne 0x52b47bf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x52b4815
xor ecx, ecx
sub eax, 3
jb 0x52b47db
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x52b484a
sar eax, 1
mov ebp, eax
jmp 0x52b47e6
add ebx, ebx
jne 0x52b47e6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52b47b4
inc ecx
add ebx, ebx
jne 0x52b47f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52b47b4
add ebx, ebx
jne 0x52b4801
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x52b47f6
jne 0x52b4812
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x52b47f6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x52b4834
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x52b4826
jmp 0x52b4776
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x52b4834
add edi, ecx
jmp 0x52b4776
pop esi
mov edi, esi
mov ecx, 0xd49
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x52b4852
cmp byte [edi], 0x13
jne 0x52b4852
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x52b4857
lea edi, [esi + 0x4eb2000]
mov eax, dword [edi]
or eax, eax
je 0x52b48c6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4eb620c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4eb6250]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x52b4884
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4eb6258]
or eax, eax
je 0x52b48c0
mov dword [ebx], eax
add ebx, 4
jmp 0x52b48a1
call dword [esi + 0x4eb6254]
mov ebp, dword [esi + 0x4eb625c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x52b48fa
sub esp, 0xffffff80
jmp 0x402cfb
Function at 0x4028b4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x4028e3
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403afc
jmp 0x402901
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.004027e8
mov edi, eax
test ebx, ebx
je 0x402901
cmp dword [esi], 0
je 0x402901
dec ebx
jmp 0x4028ea
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

Disassembly:
imul edx, dword [0x47d03c], 0x8088405
inc edx
mov dword [0x47d03c], edx
mul edx
mov eax, edx
ret

Function at 0x402d00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402d98
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402d78
xor eax, eax
push ebp
push 0x402d71
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 0x402db4
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 0x402d78
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret

Function at 0x4039cc
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.004026a8
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x47d041], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403994
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc