joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f6172
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
pushal
mov edx, dword [ebp + 8]
mov ax, word [edx]
cmp ax, 0x5a4d
jne 0x4f61a1
mov eax, dword [edx + 0x3c]
add edx, eax
mov eax, dword [edx]
cmp eax, 0x4550
jne 0x4f61a1
add edx, 4
mov dword [ebp - 4], edx
popal
mov eax, dword [ebp - 4]
leave
ret 8
popal
sub eax, eax
leave
ret 8

Function at 0x4f6dff
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov ecx, 3
mov edx, 1
push ecx
push dword [ebp + 8]
call fcn.004f6f04
rol eax, 8
push dword [ebp + 0xc]
push eax
call fcn.004f6f20
push edx
push dword [ebp + 0x10]
push eax
call fcn.004f6eec
inc edx
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.004f6f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.004f6ecb
push ecx
push dword [ebp + 8]
call fcn.004f6f04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.004f6f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.004f6ecb
push ecx
push dword [ebp + 8]
call fcn.004f6f04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.004f6f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.004f6ecb
push ecx
push dword [ebp + 8]
call fcn.004f6f04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.004f6f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.004f6ecb
cmp ecx, 0x2b
jne 0x4f6e0f
leave
ret 0xc

Function at 0x4f84b4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
pushal
mov byte [ebp - 0x118], 0x42
mov byte [ebp - 0x117], 0x72
mov byte [ebp - 0x116], 0x75
mov byte [ebp - 0x115], 0x74
mov byte [ebp - 0x114], 0x65
mov byte [ebp - 0x113], 0x66
mov byte [ebp - 0x112], 0x6f
mov byte [ebp - 0x111], 0x72
mov byte [ebp - 0x110], 0x63
mov byte [ebp - 0x10f], 0x69
mov byte [ebp - 0x10e], 0x6e
mov byte [ebp - 0x10d], 0x67
mov byte [ebp - 0x10c], 0x20
mov byte [ebp - 0x10b], 0x4b
mov byte [ebp - 0x10a], 0x65
mov byte [ebp - 0x109], 0x79
mov byte [ebp - 0x108], 0
mov eax, 1
lea edi, [ebp - 0x14]
mov ecx, 0x10
mov al, 0
mov byte [edi], al
inc edi
dec ecx
jne 0x4f8544
mov eax, dword [ebp + 8]
push 4
push 0x3000
push 0xe0070
push 0
call dword [eax + 0x20]
test eax, eax
je 0x4f85d6
mov dword [ebp - 4], eax
mov edi, eax
mov esi, dword [ebp + 0xc]
mov ecx, 0xe0070
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0xc]
push 0xe0070
call fcn.004f83fa
push 0xe0070
push dword [ebp + 0xc]
call fcn.004f61a8
test eax, eax
jne 0x4f85b8
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
mov ecx, 0xe0070
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
call fcn.004f85dd
test eax, eax
je 0x4f85d6
jmp 0x4f8574
mov eax, dword [ebp + 8]
push 0x8000
push 0
push dword [ebp - 4]
call dword [eax + 0x28]
test eax, eax
je 0x4f85d6
popal
mov eax, 1
leave
ret 8
popal
sub eax, eax
leave
ret 8
Function at 0x402a30
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4a8800]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x402a80
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x402a7a
shr eax, 8
cmp al, 2
jne 0x402a7a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045b1f5
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 2
call fcn.0045b1f5
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
cmp ebx, esi
jne 0x402bc0
lea eax, [esi + 0x2b]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x40], esi
je 0x402bde
push str.easy_handled_already_used_in_multi_handle
push ebx
call fcn.0040e840
add esp, 8
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebx + 0x44]
cmp edi, esi
jne 0x402c07
push 3
push 1
call fcn.00402f00
mov edi, eax
add esp, 8
cmp edi, esi
jne 0x402c04
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x44], edi
mov eax, dword [ebx + 0x454]
push eax
push 6
push edi
call fcn.00403520
push ebx
push edi
call fcn.00403b40
mov esi, eax
add esp, 0x14
test esi, esi
je 0x402c43
push edi
call fcn.004032b0
add esp, 4
lea eax, [esi - 3]
neg eax
sbb eax, eax
pop edi
and eax, 0xffffffe7
pop esi
add eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x40], edi
jmp 0x402c53
mov ebx, dword [ebp + 8]
test esi, esi
jne 0x402d28
call fcn.0040e3c0
lea ecx, [ebp - 0xc]
push ecx
push 0x3e8
push esi
push esi
push edi
mov ebx, eax
mov dword [ebp - 0x18], edx
call fcn.00403cf0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x402c50
mov eax, dword [ebp - 0xc]
cmp eax, 0xffffffff
je 0x402d1e
cmp eax, esi
jne 0x402cde
call fcn.0040e3c0
mov ecx, dword [ebp - 0x18]
push ecx
push ebx
push edx
push eax
call fcn.0040e3f0
add esp, 0x10
cmp eax, 0xa
jg 0x402cde
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, 2
jle 0x402ce1
cmp eax, 0xa
jge 0x402cce
lea ecx, [eax - 1]
mov eax, 1
shl eax, cl
push eax
call fcn.00406f10
add esp, 4
jmp 0x402ce1
mov eax, 0x3e8
push eax
call fcn.00406f10
add esp, 4
jmp 0x402ce1
mov dword [ebp - 4], esi
lea edx, [ebp - 0x10]
push edx
push edi
call fcn.00405010
mov esi, eax
add esp, 8
test esi, esi
jne 0x402c50
cmp dword [ebp - 0x10], eax
jne 0x402c50
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.004033b0
add esp, 8
test eax, eax
je 0x402c50
mov ecx, dword [eax + 8]
mov dword [ebp - 8], ecx
jmp 0x402d25
mov dword [ebp - 8], 0x38
mov ebx, dword [ebp + 8]
push ebx
push edi
call fcn.004041b0
mov eax, dword [ebp - 8]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e510
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x40e543
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
pop ebp
ret

Function at 0x40e680
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x1a0]
test ecx, ecx
je 0x40e69b
mov edx, dword [esi + 0x12c]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
js 0x40e6cf
cmp eax, 2
jg 0x40e6cf
mov ecx, dword [esi + 0x128]
push ecx
push 1
lea edx, [eax + eax*2 + 0x48b078]
push 2
push edx
call fcn.0045d567
mov eax, dword [esi + 0x128]
push eax
push 1
push edi
push ebx
call fcn.0045d567
add esp, 0x20
xor eax, eax
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 + 0x134]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x40e95c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 8], eax
cmp eax, 0x2733
jne 0x40e931
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push eax
push esi
call fcn.0041ba90
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.0040e840
mov ecx, dword [esi]
mov edx, dword [ebp + 8]
mov dword [ecx + 0x85cc], edx
add esp, 0x14
mov dword [ebx], 0x37
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x410670
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4a8800]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [esi + 0x448], eax
push 4
lea ecx, [ebp - 0x14]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4106c3
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.0040e7c0
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045b1f5
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x44c]
push edx
mov dword [ebp - 0x10], 1
call fcn.00414470
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x450]
push eax
call fcn.00414470
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push 0xc
lea edx, [ebp - 0x10]
push edx
push 0x98000004
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x410735
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.0040e7c0
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045b1f5
mov esp, ebp
pop ebp
ret
Function at 0x410da0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4a8800]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x1a8], 0
mov ebx, dword [esi]
push edi
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x110], ebx
jne 0x410f37
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x104]
push ecx
push edi
mov dword [ebp - 0x10c], 0x80
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x410e2a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.0041ba90
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.0040e840
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045b1f5
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x10c]
push edx
lea eax, [ebp - 0x84]
push eax
push edi
mov dword [ebp - 0x10c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x410e7d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.0041ba90
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.0040e840
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045b1f5
mov esp, ebp
pop ebp
ret
lea ebx, [esi + 0xcc]
lea edi, [esi + 0x9e]
lea esi, [ebp - 0x104]
call fcn.00410d60
test eax, eax
jne 0x410ed4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x108]
mov esi, eax
push esi
push ecx
call fcn.0041ba90
mov edx, dword [ebp - 0x110]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.0040e840
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045b1f5
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x108]
lea ebx, [eax + 0x100]
lea edi, [eax + 0xd0]
lea esi, [ebp - 0x84]
call fcn.00410d60
test eax, eax
jne 0x410f31
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x108]
push esi
push eax
call fcn.0041ba90
mov ecx, dword [ebp - 0x110]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.0040e840
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045b1f5
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x108]
push esi
call fcn.00410d00
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045b1f5
mov esp, ebp
pop ebp
ret

Function at 0x410f60
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x34c]
push 4
lea ecx, [ebp - 4]
push ecx
push 1
push 6
push edx
mov dword [ebp - 4], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x410fa6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0041ba90
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0040e7c0
add esp, 0x14
pop esi
mov esp, ebp
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0040e7c0
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x410fc0
Capabilities:
Check os version
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x4a8800]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4abb44], 0
mov dword [ebp - 0x9c], 0x4020
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0xa4], 4
jne 0x411056
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.0045c460
add esp, 0xc
lea ecx, [ebp - 0x98]
push ecx
mov dword [ebp - 0x98], 0x94
mov dword [0x4abb44], 1
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x411056
cmp dword [ebp - 0x94], 6
jb 0x411056
mov dword [0x4abb44], 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045b1f5
mov esp, ebp
pop ebp
ret
cmp dword [0x4abb44], 2
je 0x4110af
push esi
mov esi, dword [ebp + 8]
lea edx, [ebp - 0xa4]
push edx
lea eax, [ebp - 0xa0]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x411094
mov ecx, dword [ebp - 0xa0]
cmp ecx, dword [ebp - 0x9c]
jg 0x4110ae
push 4
lea edx, [ebp - 0x9c]
push edx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045b1f5
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x590]
test esi, esi
je 0x41112b
mov eax, dword [edi + 0x44]
test eax, eax
je 0x41112b
push 0x4110c0
lea ecx, [ebp - 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], 0
mov edx, dword [eax + 0x30]
push ecx
push edx
call fcn.00412440
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x411134
mov dword [edi + 0x590], 0
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41113d
mov dword [eax], esi
cmp dword [esi + 0x154], 0
mov edi, dword [esi + 0x134]
jne 0x41112b
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x41112b
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x419d70
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ebx
xor ebx, ebx
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
push edx
push eax
push ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x419f06
push edi
mov edi, dword [ebp - 0x10]
cmp edi, ebx
je 0x419ee8
push esi
cmp dword [edi + 4], 2
jne 0x419e6c
cmp dword [edi + 0x18], ebx
je 0x419e6c
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x419e6c
cmp eax, 0x10
jb 0x419e6c
push 0x20
call dword [0x4a8618]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x419e79
mov edx, dword [edi]
mov dword [esi], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
call dword [0x4a8618]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x419e82
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x419e57
push eax
call dword [0x4a8624]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x419e95
cmp dword [ebp - 4], ebx
jne 0x419e5f
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x419e69
mov dword [eax + 0x1c], esi
mov dword [ebp - 0xc], esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x419db2
jmp 0x419eb0
mov dword [ebp - 8], 8
jmp 0x419eb0
push esi
mov dword [ebp - 8], 8
call dword [0x4a861c]
add esp, 4
jmp 0x419eb0
mov edx, dword [esi + 0x18]
push edx
mov dword [ebp - 8], 8
call dword [0x4a861c]
push esi
call dword [0x4a861c]
add esp, 8
mov eax, dword [ebp - 0x10]
pop esi
cmp eax, ebx
je 0x419ebf
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], ebx
je 0x419ee3
mov eax, dword [ebp - 4]
push eax
call fcn.00419d20
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
add esp, 4
mov ecx, ebx
pop edi
mov dword [ebp - 4], ebx
mov dword [edx], ecx
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], ebx
jne 0x419efa
push 0x2af9
mov dword [ebp - 8], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov dword [edx], ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41b410
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.0045dcfb
add esp, 0x18
test eax, eax
je 0x41b434
cmp eax, 0xffffffff
jne 0x41b436
xor eax, eax
pop ebp
ret
Function at 0x41e4a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 8]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x41e4b1
jmp dword [ecx*4 + 0x41e520]
mov al, 0x41
pop ebp
ret
mov al, 0x42
pop ebp
ret
mov al, 0x43
pop ebp
ret
mov al, 0x44
pop ebp
ret
mov al, 0x45
pop ebp
ret
mov al, 0x46
pop ebp
ret
mov al, 0x47
pop ebp
ret
mov al, 0x48
pop ebp
ret
mov al, 0x49
pop ebp
ret
mov al, 0x4a
pop ebp
ret
mov al, 0x4b
pop ebp
ret
mov al, 0x4c
pop ebp
ret
mov al, 0x4d
pop ebp
ret
mov al, 0x4e
pop ebp
ret
mov al, 0x4f
pop ebp
ret
mov al, 0x50
pop ebp
ret
mov al, 0x51
pop ebp
ret
mov al, 0x52
pop ebp
ret
mov al, 0x53
pop ebp
ret
mov al, 0x54
pop ebp
ret
mov al, 0x55
pop ebp
ret
mov al, 0x56
pop ebp
ret
mov al, 0x57
pop ebp
ret
mov al, 0x58
pop ebp
ret
mov al, 0x59
pop ebp
ret
mov al, 0x5a
pop ebp
ret

Function at 0x41e6b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4a8800]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.00463014
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x41e714
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x108], 0
je 0x41e714
lea edx, [ebp - 0x108]
push edx
call dword [0x4a8624]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045b1f5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0045b1f5
mov esp, ebp
pop ebp
ret

Function at 0x41e730
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041e6b0

Function at 0x4200d0
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x4200f2
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4200e6
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x420122
cmp dword [esi + 8], 0
jne 0x420115
mov ecx, dword [eax + 8]
push 0x487ec4
push ecx
call fcn.0045c94c
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x420115
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.004618db
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x420144
mov eax, dword [esi + 8]
test eax, eax
je 0x42013e
push eax
call fcn.0045c6d2
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret
Function at 0x420860
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000000
push 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x420893
mov ecx, dword [esi]
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x8003
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop esi
pop ebp
ret

Function at 0x421270
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x421160
push 0
push 0
call fcn.0045dcfb
mov dword [esi + 0x50], eax
add esp, 0x18
neg eax
sbb eax, eax
neg eax
dec eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4212b0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [edi + 0x50]
test eax, eax
je 0x4212f9
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4212e9
push dword [ebp + 0xc]
push dword [edi + 0x50]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x50], 0
pop edi
pop ebp
ret 8
Function at 0x423830
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x423849
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x423884
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x423880
lea ebx, [ebx]
cmp esi, edx
jae 0x423884
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x423870
cmp esi, edx
jb 0x42388b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x423a20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x423a91
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x423a5f
cmp eax, 2
jne 0x423a7b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x423a8b
test ecx, ecx
je 0x423a86
test cl, 1
jne 0x423a7b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x423a8b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x423ac0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x423ad5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x423ae0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x423ae0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc