joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403e30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push edi
mov edi, ecx
test edi, edi
jne 0x403e52
push 0xa0
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push esi
push 0x358
push 1
call fcn.00418498
mov esi, eax
add esp, 8
test esi, esi
jne 0x403e78
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
push ecx
lea edx, [ebp - 0x208]
mov ecx, edi
call fcn.00403d20
add esp, 4
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403eef
test al, 0x10
je 0x403eef
lea ecx, [ebp - 0x208]
add ecx, 0xfffffffe
jmp 0x403eb0
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x403eb0
mov eax, dword [0x45e550]
mov dword [ecx], eax
mov ax, word [0x45e554]
mov word [ecx + 4], ax
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
mov eax, esi
mov byte [esi + 0x254], 0
pop esi
pop edi
mov esp, ebp
pop ebp
ret
push esi
call fcn.004175bc
add esp, 4
xor eax, eax
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x405f10
Capabilities:
Get local ipv4 addresses
Get socket information
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
mov esi, ecx
push edi
test dword [esi + 0xac], 0x100
je 0x405f96
xorps xmm0, xmm0
mov eax, 2
movdqu xmmword [ebp - 0x18], xmm0
mov word [ebp - 0x18], ax
mov ax, word [esi + 0x2c]
mov word [ebp - 0x16], ax
mov eax, dword [esi + 0x1c]
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp + 8]
push edx
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_sendto]
mov edi, eax
test edi, edi
jle 0x405fa9
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x10
push eax
lea eax, [ebp - 0x28]
push eax
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x405fa7
cmp dword [ebp - 8], 0x10
setne al
mov byte [esi + 0x1b], al
mov ax, word [ebp - 0x26]
mov word [esi + 0x18], ax
mov eax, dword [ebp - 0x24]
mov dword [esi + 8], eax
jmp 0x405fa7
push 0
push dword [ebp + 8]
push edx
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
test edi, edi
jns 0x405feb
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2714
je 0x405fe0
call esi
cmp eax, 0x2734
je 0x405fe0
call esi
cmp eax, 0x2733
je 0x405fe0
call esi
cmp eax, 0x2746
jne 0x405feb
mov eax, 0xfffffffd
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffffe
pop edi
pop esi
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
test edi, edi
cmovle edi, eax
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4060b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov edi, ecx
test dword [edi + 0xac], 0x100
je 0x406123
xorps xmm0, xmm0
mov dword [ebp - 8], 0x10
movdqu xmmword [ebp - 0x18], xmm0
mov eax, 2
mov word [ebp - 0x18], ax
mov ax, word [edi + 0x2c]
mov word [ebp - 0x16], ax
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp + 8]
push edx
push dword [edi + 0x30]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov esi, eax
test esi, esi
jle 0x406136
cmp dword [ebp - 8], 0x10
mov eax, dword [ebp - 0x14]
setne cl
mov dword [edi + 0x1c], eax
mov byte [edi + 0x2f], cl
mov cx, word [ebp - 0x16]
mov word [edi + 0x2c], cx
jmp 0x406134
push 0
push dword [ebp + 8]
push edx
push dword [edi + 0x30]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
jns 0x406178
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2714
je 0x40616d
call edi
cmp eax, 0x2734
je 0x40616d
call edi
cmp eax, 0x2733
je 0x40616d
call edi
cmp eax, 0x2746
jne 0x406178
mov eax, 0xfffffffd
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffffe
pop edi
pop esi
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
test esi, esi
pop edi
cmovle esi, eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4063a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x10
push eax
mov esi, ecx
lea eax, [ebp - 0x28]
push eax
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
jne 0x40642a
and dword [esi + 0xac], 0xffffffdf
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0x10
push eax
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x406400
cmp dword [ebp - 4], 0x10
setne al
mov byte [esi + 0x1b], al
mov ax, word [ebp - 0x16]
mov word [esi + 0x18], ax
mov eax, dword [ebp - 0x14]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x80]
test eax, eax
je 0x406414
push 0
push 4
push esi
call eax
add esp, 0xc
mov eax, dword [esi + 0x78]
test eax, eax
je 0x406438
push 0
push 4
push esi
call eax
add esp, 0xc
pop esi
mov esp, ebp
pop ebp
ret
push str.socket_error
push esi
call fcn.00402fd0
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406440
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
mov edi, ecx
mov esi, 2
push 0
mov ecx, 0x17
mov eax, esi
mov edx, dword [edi + 0xac]
and edx, 0x100
neg edx
sbb edx, edx
neg edx
inc edx
cmp byte [edi + 0x2f], 0
push edx
cmovne eax, ecx
push eax
call dword [sym.imp.WS2_32.dll_socket]
and dword [edi + 0xac], 0xfffffff7
mov ecx, eax
mov dword [edi + 0x30], ecx
cmp ecx, 0xffffffff
jne 0x4064a6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.socket__:__d
push edi
call fcn.00402fd0
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test dword [edi + 0xac], 0x100
je 0x40653c
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4064e8
cmp dword [ebp - 4], 0x10
setne al
mov byte [edi + 0x1b], al
mov ax, word [ebp - 0x12]
mov word [edi + 0x18], ax
mov eax, dword [ebp - 0x10]
mov dword [edi + 8], eax
mov eax, dword [edi + 0x80]
test eax, eax
je 0x4064fc
push 0
push 3
push edi
call eax
add esp, 0xc
mov eax, dword [edi + 0x78]
test eax, eax
je 0x40650d
push 0
push 3
push edi
call eax
add esp, 0xc
mov eax, dword [edi + 0x80]
test eax, eax
je 0x406521
push 0
push 4
push edi
call eax
add esp, 0xc
mov eax, dword [edi + 0x78]
test eax, eax
je 0x406655
push 0
push 4
push edi
call eax
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ax, word [edi + 0x2c]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x14], xmm0
mov word [ebp - 0x12], ax
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
push 0x8004667e
push ecx
mov word [ebp - 0x14], si
mov dword [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 4]
push 4
push eax
push 1
push 6
push dword [edi + 0x30]
mov dword [ebp - 4], 1
call esi
push 4
lea eax, [ebp - 4]
push eax
push 8
push 0xffff
push dword [edi + 0x30]
call esi
mov eax, dword [edi + 0x80]
test eax, eax
je 0x4065af
push 0
push 3
push edi
call eax
add esp, 0xc
mov eax, dword [edi + 0x78]
test eax, eax
je 0x4065c0
push 0
push 3
push edi
call eax
add esp, 0xc
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [edi + 0x30]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x406610
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x24]
push eax
push dword [edi + 0x30]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x40650d
cmp dword [ebp - 4], 0x10
setne al
mov byte [edi + 0x1b], al
mov ax, word [ebp - 0x22]
mov word [edi + 0x18], ax
mov eax, dword [ebp - 0x20]
mov dword [edi + 8], eax
jmp 0x40650d
jns 0x406644
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2714
je 0x406637
call esi
cmp eax, 0x2734
je 0x406637
call esi
cmp eax, 0x2733
je 0x406637
call esi
jmp 0x406646
or dword [edi + 0xac], 0x20
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
push eax
push str.connect:__d
push edi
call fcn.00402fd0
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406660
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [edx + 0x30]
push esi
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0x10
nop
lea eax, [ebp - 4]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
movdqu xmmword [ebp - 0x1c], xmm0
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4066ac
call esi
cmp eax, 4
je 0x406680
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 8]
mov eax, dword [ebx + 0x40]
add eax, 0xb0
push eax
push 1
call fcn.00418498
mov esi, eax
add esp, 8
test esi, esi
je 0x4067f8
mov dword [esi + 4], ebx
mov dword [esi + 0x74], 0x1fa0
mov dword [esi + 0x44], 0x1fa0
mov dword [esi + 0x54], 0x1fa0
inc dword [ebx + 0x1c]
mov eax, dword [ebx + 0x1c]
mov dword [esi + 0x34], eax
cmp dword [ebp - 4], 0x10
mov dword [ebp - 8], 1
setne al
mov byte [esi + 0x2f], al
mov ax, word [ebp - 0x1a]
mov word [esi + 0x2c], ax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x1c], eax
mov eax, dword [ebx]
mov dword [esi], eax
lea eax, [ebp - 8]
push eax
push 0x8004667e
mov dword [ebx], esi
push edi
mov dword [esi + 0x30], edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 8]
push 4
push eax
push 1
push 6
push dword [esi + 0x30]
mov dword [ebp - 8], 1
call edi
push 4
lea eax, [ebp - 8]
push eax
push 8
push 0xffff
push dword [esi + 0x30]
call edi
mov edx, dword [ebp - 0xc]
or dword [esi + 0xac], 4
mov eax, dword [esi + 0xac]
mov ecx, dword [edx + 0xac]
xor ecx, eax
and ecx, 0x800
xor ecx, eax
mov dword [esi + 0xac], ecx
movdqu xmm0, xmmword [edx + 8]
movdqu xmmword [esi + 8], xmm0
mov eax, dword [edx + 0x18]
mov dword [esi + 0x18], eax
mov ecx, dword [edx + 0x80]
mov dword [esi + 0x80], ecx
mov eax, dword [edx + 0x84]
mov dword [esi + 0x84], eax
mov eax, dword [edx + 0x78]
mov dword [esi + 0x78], eax
mov eax, dword [edx + 0x7c]
mov dword [esi + 0x7c], eax
test ecx, ecx
je 0x4067bb
push 0
push 1
push esi
call ecx
add esp, 0xc
mov eax, dword [esi + 0x78]
test eax, eax
je 0x4067cc
push 0
push 1
push esi
call eax
add esp, 0xc
mov eax, dword [esi + 0x80]
test eax, eax
je 0x4067e0
push 0
push 5
push esi
call eax
add esp, 0xc
mov eax, dword [esi + 0x78]
test eax, eax
je 0x4067ff
push 0
push 5
push esi
call eax
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407360
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453bea
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.00431c37
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4073f8
lea eax, [ebp + 8]
mov dword [ebp + 8], str.bad_locale_name
push eax
lea ecx, [ebp - 0x1c]
call fcn.00419f50
push 0x464a64
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], vtable.std::runtime_error.0
push eax
call fcn.0041d31d
push eax
push esi
call fcn.00431ecd
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x407d20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
mov eax, 0x45eec0
push ebx
push esi
mov esi, 0x45eec4
mov ebx, ecx
cmovne esi, eax
mov eax, dword [ebp + 8]
push edi
mov edi, edx
cmp dword [eax + 0x14], 0x10
jb 0x407d46
mov eax, dword [eax]
push esi
push eax
call fcn.0041a1c5
mov esi, eax
add esp, 8
test esi, esi
je 0x407d69
push esi
push edi
push 1
push ebx
call fcn.0041974e
push esi
call fcn.00419ea2
add esp, 0x14
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4081c0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453cc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push esi
push edi
push 0x48
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x14], edx
push 0
push eax
mov esi, ecx
call fcn.00420670
add esp, 0xc
mov dword [ebp - 0x64], 0xffffffff
lea eax, [ebp - 0x22c]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x58], 0xffffffff
mov dword [ebp - 0x88], 0xbb8
mov dword [ebp - 0x98], str.udp:__8.8.8.8:53
mov dword [ebp - 0x90], str.udp:___2001:4860:4860::8888_:53
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x54], 0
call fcn.00401e60
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x3c]
push 0
push 0x45ea2e
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3c], 0
call fcn.00402150
mov byte [ebp - 4], 1
mov byte [ebp - 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
add eax, 0x4e20
mov dword [ebp - 0x1c], eax
adc ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 2
cmp dword [esi + 0x14], 0x10
jb 0x4082aa
mov esi, dword [esi]
lea eax, [ebp - 0x54]
mov edx, esi
push eax
push 0x408030
lea ecx, [ebp - 0x9c]
call fcn.00405b00
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4082d3
mov dword [ebx + 0x80], 0x404e70
push 0x1c
call fcn.00417dfe
mov esi, eax
add esp, 4
test esi, esi
je 0x4082f7
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], 0
mov byte [esi + 4], 0
jmp 0x4082f9
xor esi, esi
push 0
lea edi, [esi + 4]
mov dword [esi], 0xffffffff
push 0x45ea2e
mov ecx, edi
call fcn.00402150
mov dword [ebx + 0x88], esi
cmp byte [ebp - 0x24], 0
jne 0x408336
lea esp, [esp]
mov edx, 0x3e8
lea ecx, [ebp - 0x9c]
call fcn.00406af0
cmp byte [ebp - 0x24], 0
je 0x408320
mov eax, dword [ebp - 0x14]
cmp eax, edi
je 0x408349
push 0xffffffffffffffff
push 0
push edi
mov ecx, eax
call fcn.00401e60
mov ebx, dword [esi]
xor eax, eax
cmp ebx, 0xc8
cmove ebx, eax
cmp dword [edi + 0x14], 0x10
jb 0x408366
push dword [edi]
call fcn.00417686
add esp, 4
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
push esi
mov byte [edi], 0
call fcn.00417686
add esp, 4
lea ecx, [ebp - 0x9c]
call fcn.00405bf0
cmp dword [ebp - 0x28], 0x10
jb 0x40839c
push dword [ebp - 0x3c]
call fcn.00417686
add esp, 4
cmp dword [ebp - 0x40], 0x10
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3c], 0
jb 0x4083bf
push dword [ebp - 0x54]
call fcn.00417686
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408680
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453cf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
push ebx
push esi
push edi
push 0x44
mov dword [ebp - 0x10], edx
mov edi, ecx
call fcn.00417dfe
mov esi, eax
add esp, 4
test esi, esi
je 0x4086dc
mov dword [esi + 0x28], 0xf
mov dword [esi + 0x24], 0
mov byte [esi + 0x14], 0
mov dword [esi + 0x40], 0xf
mov dword [esi + 0x3c], 0
mov byte [esi + 0x2c], 0
jmp 0x4086de
xor esi, esi
push 0x48
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.00420670
add esp, 0xc
mov dword [ebp - 0x60], 0xffffffff
lea eax, [ebp - 0x228]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0xffffffffffffffff
push 0
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x54], 0xffffffff
mov dword [ebp - 0x84], 0xbb8
mov dword [ebp - 0x94], str.udp:__8.8.8.8:53
mov dword [ebp - 0x8c], str.udp:___2001:4860:4860::8888_:53
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
call fcn.00401e60
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x38]
push 0
push 0x45ea2e
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x38], 0
call fcn.00402150
mov byte [ebp - 4], 1
mov byte [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
add eax, 0x36ee80
mov dword [ebp - 0x18], eax
adc ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 2
lea ebx, [esi + 0x2c]
lea ecx, [ecx]
cmp dword [ebp - 0x3c], 0x10
lea eax, [ebp - 0x50]
push eax
lea edx, [ebp - 0x50]
cmovae edx, dword [ebp - 0x50]
lea ecx, [ebp - 0x98]
push 0x408430
call fcn.00405b00
mov edi, eax
add esp, 8
test edi, edi
je 0x4087d2
mov dword [edi + 0x80], 0x404e70
mov eax, dword [ebp - 0x10]
lea ecx, [esi + 0x14]
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 8], 0
cmp ecx, eax
je 0x408808
push 0xffffffffffffffff
push 0
push eax
call fcn.00401e60
push 0
push 0x45ea2e
mov ecx, ebx
call fcn.00402150
mov dword [edi + 0x88], esi
cmp byte [ebp - 0x20], 0
jne 0x408846
jmp 0x408830
mov edx, 0x3e8
lea ecx, [ebp - 0x98]
call fcn.00406af0
cmp byte [ebp - 0x20], 0
je 0x408830
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
mov dword [ecx], eax
mov edi, dword [esi]
cmp edi, 0x12e
jne 0x40888f
cmp dword [esi + 0x3c], 0
je 0x40889a
lea eax, [ebp - 0x50]
cmp eax, ebx
je 0x408871
push 0xffffffffffffffff
push 0
push ebx
mov ecx, eax
call fcn.00401e60
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
mov byte [ebp - 0x20], 0
add eax, 0x36ee80
mov dword [ebp - 0x18], eax
adc ecx, ecx
mov dword [ebp - 0x14], ecx
jmp 0x4087a0
xor eax, eax
cmp edi, 0xc8
cmove edi, eax
push ecx
mov ecx, esi
call fcn.00408900
lea ecx, [ebp - 0x98]
call fcn.00405bf0
cmp dword [ebp - 0x24], 0x10
jb 0x4088be
push dword [ebp - 0x38]
call fcn.00417686
add esp, 4
cmp dword [ebp - 0x3c], 0x10
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x38], 0
jb 0x4088e1
push dword [ebp - 0x50]
call fcn.00417686
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e6f0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
cmp dword [edx + 0x14], 0x10
mov eax, dword [edx + 0x10]
push esi
mov esi, ecx
mov dword [ebp - 4], 0
mov byte [ebp - 0x70], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0x67452301
mov dword [ebp - 0x20], 0xefcdab89
mov dword [ebp - 0x1c], 0x98badcfe
mov dword [ebp - 0x18], 0x10325476
jb 0x40e739
mov edx, dword [edx]
push eax
push edx
lea ecx, [ebp - 0x70]
call fcn.0040e4a0
lea ecx, [ebp - 0x70]
call fcn.0040e550
push esi
lea ecx, [ebp - 0x70]
call fcn.0040e630
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40ef70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
mov edi, ecx
cmp dword [edi + 0x34], 0x10
lea ecx, [edi + 0x20]
jb 0x40ef85
mov ecx, dword [ecx]
mov eax, dword [edi + 0x38]
lea ebx, [edi + 4]
push ebx
or eax, 0x20019
push eax
push 0
push ecx
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40f05a
cmp dword [edi + 0x1c], 0x10
push esi
lea esi, [edi + 8]
mov dword [ebp - 4], eax
jb 0x40efb6
mov eax, dword [esi]
jmp 0x40efb8
mov eax, esi
lea ecx, [ebp - 4]
push ecx
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call fcn.0041a87e
add esp, 4
mov ebx, eax
cmp dword [esi + 0x14], 0x10
jb 0x40efe2
mov esi, dword [esi]
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push 0
push esi
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40f03e
cmp byte [ebx], al
jne 0x40f003
xor ecx, ecx
jmp 0x40f011
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f008
sub ecx, edx
push ecx
push ebx
lea ecx, [edi + 0x3c]
call fcn.00402150
push ebx
call fcn.0041a0fc
add esp, 4
mov dword [edi + 0x6c], 1
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
lea eax, [edi + 0x3c]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.0041a0fc
add esp, 4
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
lea eax, [edi + 0x54]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x54]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f070
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x34], 0x10
lea ecx, [esi + 0x20]
push edi
jb 0x40f083
mov ecx, dword [ecx]
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 0x38]
lea edi, [esi + 4]
push edi
push 0
or eax, 0x20006
push eax
push 0
push 0x45ea2e
push 0
push ecx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40f0f0
cmp dword [esi + 0x50], 0x10
lea ecx, [esi + 0x3c]
mov eax, dword [esi + 0x4c]
jb 0x40f0ba
mov ecx, dword [ecx]
cmp dword [esi + 0x1c], 0x10
lea edx, [esi + 8]
jb 0x40f0c5
mov edx, dword [edx]
inc eax
push eax
push ecx
push 1
push 0
push edx
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40f0e0
mov dword [esi + 0x6c], 1
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40f330
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
cmp dword [esi + 0x34], 0x10
lea ecx, [esi + 0x20]
push edi
jb 0x40f345
mov ecx, dword [ecx]
mov eax, dword [esi + 0x38]
lea edi, [esi + 4]
push edi
or eax, 0x20019
push eax
push 0
push ecx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40f3b7
cmp dword [esi + 0x1c], 0x10
lea eax, [esi + 8]
mov dword [ebp - 4], 4
jb 0x40f373
mov eax, dword [eax]
push ebx
lea ecx, [ebp - 4]
push ecx
lea ebx, [esi + 0x3c]
push ebx
lea ecx, [ebp - 8]
push ecx
push 0
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [edi]
test eax, eax
jne 0x40f3a7
mov dword [esi + 0x44], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebx]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 0x40]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x40]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40f810
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], ecx
mov bh, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
push edi
xor edi, edi
mov dword [ebp - 8], esi
test esi, esi
je 0x40f881
inc bh
movzx esi, bh
mov bl, byte [esi + eax]
add dl, bl
mov byte [ebp + 0xb], dl
movzx edx, dl
movzx ecx, byte [edx + eax]
mov byte [esi + eax], cl
mov byte [edx + eax], bl
movzx ecx, byte [esi + eax]
mov edx, dword [ebp - 4]
add cl, bl
movzx ecx, cl
movzx ecx, byte [ecx + eax]
xor byte [edi + edx], cl
inc edi
mov dl, byte [ebp + 0xb]
cmp edi, dword [ebp - 8]
jb 0x40f836
pop edi
mov cl, dl
mov byte [eax + 0x100], bh
pop esi
mov byte [eax + 0x101], cl
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov byte [eax + 0x100], bh
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret