joyce8/EMBER2024-capa huggingface dataset:
Function at 0x491b7b
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
push edi
xor edi, edi
and dword [ebp - 0xc], edi
and dword [eax], edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x491ce5
push esi
mov esi, dword [ebp - 8]
mov dword [ebp - 0x10], esi
test esi, esi
je 0x491cd1
push ebx
cmp dword [esi + 4], 2
jne 0x491c70
cmp dword [esi + 0x18], 0
je 0x491c70
cmp dword [esi + 0x10], 0
jbe 0x491c70
cmp dword [esi + 0x10], 0x10
jb 0x491c70
push 0x20
call dword [0x4f53dc]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x491cc5
mov ecx, dword [esi]
mov dword [ebx], ecx
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov eax, dword [esi + 0xc]
and dword [ebx + 0x18], 0
and dword [ebx + 0x14], 0
and dword [ebx + 0x1c], 0
push 0x10
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 0x10
call dword [0x4f53dc]
mov dword [ebx + 0x18], eax
pop ecx
test eax, eax
je 0x491cb9
mov esi, dword [esi + 0x18]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x10]
cmp dword [esi + 0x14], 0
je 0x491c58
push dword [esi + 0x14]
call dword [0x4f53e8]
mov dword [ebx + 0x14], eax
pop ecx
test eax, eax
je 0x491ca2
mov edi, dword [ebp - 4]
test edi, edi
mov eax, dword [ebp - 0xc]
cmove edi, ebx
mov dword [ebp - 4], edi
test eax, eax
je 0x491c6d
mov dword [eax + 0x1c], ebx
mov dword [ebp - 0xc], ebx
mov esi, dword [esi + 0x1c]
mov dword [ebp - 0x10], esi
test esi, esi
jne 0x491bbd
mov esi, dword [ebp - 0x14]
cmp dword [ebp - 8], 0
pop ebx
je 0x491c91
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x491cca
push dword [ebp - 4]
call fcn.00491b3a
pop ecx
xor edi, edi
jmp 0x491cdd
push 8
pop esi
push dword [ebx + 0x18]
call dword [0x4f53e0]
push ebx
call dword [0x4f53e0]
pop ecx
pop ecx
jmp 0x491c81
push 8
pop esi
push ebx
call dword [0x4f53e0]
jmp 0x491cb6
push 8
pop esi
jmp 0x491c81
mov edi, dword [ebp - 4]
test edi, edi
jne 0x491cdd
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x492ad8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
call fcn.004b186a
add esp, 0x18
test eax, eax
je 0x492af8
cmp eax, 0xffffffff
jne 0x492afa
xor eax, eax
pop ebp
ret
Function at 0x498e75
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x4f5470]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
mov dword [ebp - 0x320], esi
mov dword [ebp - 0x324], esi
mov dword [ebp - 0x314], esi
push edi
mov edi, dword [ebp + 0xc]
cmp eax, 0xffffffff
jne 0x498ebe
cmp edi, 0xffffffff
jne 0x498ebe
push ebx
call fcn.004990bb
pop ecx
jmp 0x4990aa
test ebx, ebx
jle 0x498edc
mov dword [ebp - 0x314], ebx
call fcn.00491b24
mov dword [ebp - 0x320], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x324], edx
mov ecx, esi
mov dword [ebp - 0x310], esi
or edx, 0xffffffff
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x31c], 1
cmp eax, 0xffffffff
je 0x498f1c
mov ecx, dword [ebp - 0x31c]
mov edx, eax
mov dword [ebp - 0x30c], eax
mov dword [ebp - 0x310], ecx
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x20c], esi
cmp edi, 0xffffffff
je 0x498f66
mov dword [ebp - 0x208], edi
mov eax, esi
mov dword [ebp - 0x20c], 1
test ecx, ecx
je 0x498f4b
cmp dword [ebp + eax*4 - 0x104], edi
je 0x498f4b
inc eax
cmp eax, ecx
jb 0x498f3d
cmp eax, ecx
jne 0x498f61
cmp ecx, 0x40
jae 0x498f61
mov dword [ebp + eax*4 - 0x104], edi
inc dword [ebp - 0x108]
cmp edi, edx
cmova edx, edi
xor ecx, ecx
lea eax, [ebp - 0x32c]
test ebx, ebx
cmovs eax, ecx
lea ecx, [edx + 1]
mov dword [ebp - 0x330], ecx
mov ecx, dword [ebp - 0x314]
mov dword [ebp - 0x318], eax
test ebx, ebx
jle 0x498fb0
mov eax, ecx
mov ecx, 0x3e8
cdq
idiv ecx
mov dword [ebp - 0x32c], eax
imul eax, edx, 0x3e8
mov dword [ebp - 0x328], eax
mov eax, dword [ebp - 0x318]
jmp 0x498fbe
jne 0x498fbe
mov dword [ebp - 0x32c], esi
mov dword [ebp - 0x328], esi
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
push dword [ebp - 0x330]
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x49903a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x498ff6
cmp eax, 0x2714
jne 0x49903e
mov ecx, dword [ebp - 0x314]
mov eax, dword [ebp - 0x318]
test ebx, ebx
jle 0x498fb0
push dword [ebp - 0x324]
push dword [ebp - 0x320]
call fcn.00491b24
push edx
push eax
call fcn.00491ace
mov ecx, ebx
add esp, 0x10
sub ecx, eax
mov dword [ebp - 0x314], ecx
test ecx, ecx
jle 0x49903e
mov eax, dword [ebp - 0x318]
jmp 0x498f88
test eax, eax
jns 0x499043
or eax, 0xffffffff
jmp 0x4990aa
jne 0x499049
xor eax, eax
jmp 0x4990aa
mov ebx, dword [ebp + 8]
cmp ebx, 0xffffffff
je 0x49907b
lea eax, [ebp - 0x310]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
lea eax, [ebp - 0x108]
push eax
cmovne esi, dword [ebp - 0x31c]
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x49907b
or esi, 4
cmp edi, 0xffffffff
je 0x4990a8
lea eax, [ebp - 0x20c]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x499094
or esi, 2
lea eax, [ebp - 0x108]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4990a8
or esi, 4
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a7e44
mov esp, ebp
pop ebp
ret
Function at 0x49a2b9
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4f5470]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov dword [ebp - 0x1c], 0x10
mov eax, dword [ebx + 0x134]
mov esi, dword [ebx]
mov dword [ebp - 0x18], eax
jmp 0x49a30b
mov eax, 0x3e8
cmp ecx, eax
cmovl eax, ecx
push eax
push 0xffffffffffffffff
push dword [ebp - 0x18]
call fcn.00498e75
add esp, 0xc
cmp eax, 0xffffffff
je 0x49a3b2
test eax, eax
jne 0x49a33f
push 1
push 0
push esi
call fcn.0049062e
mov ecx, eax
add esp, 0xc
test ecx, ecx
jns 0x49a2e6
push str.Timeout_while_waiting_for_server_connect
push esi
call fcn.0048feb2
pop ecx
pop ecx
push 0x1c
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a7e44
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x49a36e
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push dword [ebp - 0x18]
push ebx
call fcn.004903d1
pop ecx
pop ecx
cmp edi, 0xffffffff
jne 0x49a38f
push str.Error_accept__ing_server_connect
push esi
call fcn.0048feb2
pop ecx
pop ecx
push 0x1e
jmp 0x49a32d
push str.Connection_accepted_from_server_n
push esi
call fcn.0048ff48
push 1
push edi
mov dword [ebx + 0x134], edi
call fcn.004a34d5
add esp, 0x10
xor eax, eax
jmp 0x49a32e
push str.Error_while_waiting_for_server_connect
jmp 0x49a383

Function at 0x49c169
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push 0x64
cdq
xor esi, esi
pop ebx
idiv ebx
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
cmp eax, 2
je 0x49c196
push str.Couldnt_set_desired_mode
push ecx
call fcn.0048feb2
pop ecx
pop ecx
push 0x11
pop eax
jmp 0x49c1ed
cmp dword [ebp + 0xc], 0xc8
je 0x49c1b0
push dword [ebp + 0xc]
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ecx
call fcn.0048ff48
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x49c1c1
push edi
call fcn.0049bd88
pop ecx
jmp 0x49c1e9
cmp eax, 0x14
jne 0x49c1ce
push edi
call fcn.0049b948
jmp 0x49c1be
cmp eax, 0x15
jne 0x49c1d7
push 0xd
jmp 0x49c1de
cmp eax, 0x16
jne 0x49c1eb
push 0xe
push 1
push edi
call fcn.0049be02
add esp, 0xc
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x49f6fc
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4f5470]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x49f737
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.0048feb2
add esp, 0xc
jmp 0x49f75f
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x49f752
shr eax, 8
test al, al
jne 0x49f752
xor eax, eax
jmp 0x49f762
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.0048feb2
pop ecx
pop ecx
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004a7e44
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0
mov byte [ebp + 0xa], al
lea eax, [ebp + 8]
mov edi, dword [esi]
push 3
push eax
push dword [esi + 0x130]
mov byte [ebp + 8], 0xff
mov byte [ebp + 9], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x49fe65
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.0048feb2
add esp, 0xc
push dword [ebp + 0x10]
push ebx
push str.SENT
push dword [esi]
call fcn.0049f867
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x49ff24
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90c
mov eax, dword [0x4f5470]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x90c], ebx
mov esi, dword [ebx]
mov dword [ebp - 0x908], esi
mov edi, dword [esi + 0x8664]
mov eax, dword [edi + 0x1ab0]
sub eax, dword [edi + 0x1aac]
add eax, 2
push eax
lea eax, [edi + 0x18ac]
push eax
push 0x3c
push esi
call fcn.0049f950
mov eax, dword [edi + 0x1aac]
add esp, 0x10
movzx ecx, byte [eax]
inc eax
mov dword [edi + 0x1aac], eax
cmp ecx, 0x18
je 0x4a00d1
cmp ecx, 0x23
je 0x4a00ad
cmp ecx, 0x27
jne 0x4a015c
push 0
push ecx
push 0xfa
push 0xff
push str._c_c_c_c
lea eax, [ebp - 0x904]
push 0x800
push eax
call fcn.00485fb8
mov edi, dword [edi + 0x18a8]
add esp, 0x1c
push 4
pop ebx
test edi, edi
je 0x4a0045
mov ecx, dword [edi]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49ffd6
sub ecx, edx
lea esi, [ebx + 1]
add esi, ecx
cmp esi, 0x7fa
jae 0x4a0038
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x104]
push eax
push str._127_____127s
push dword [edi]
call fcn.004af48b
lea eax, [ebp - 0x84]
push eax
push 1
lea eax, [ebp - 0x104]
push eax
push 0
mov eax, 0x800
sub eax, ebx
push str._c_s_c_s
push eax
lea eax, [ebp - 0x904]
add eax, ebx
push eax
call fcn.00485fb8
add esp, 0x2c
mov ebx, esi
mov edi, dword [edi + 4]
test edi, edi
jne 0x49ffd1
mov esi, dword [ebp - 0x908]
push 0xf0
push 0xff
mov eax, 0x800
sub eax, ebx
push 0x4ddc14
push eax
lea eax, [ebp - 0x904]
add eax, ebx
push eax
call fcn.00485fb8
add esp, 0x14
lea eax, [ebp - 0x904]
add ebx, 2
push 0
push ebx
push eax
mov eax, dword [ebp - 0x90c]
push dword [eax + 0x130]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4a00a5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0048feb2
add esp, 0xc
lea eax, [ebx - 2]
jmp 0x4a0149
lea edx, [edi + 0x1828]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a00b8
push 0xf0
mov eax, 0xff
push eax
push edx
push 0
push 0x23
jmp 0x4a00f3
lea edx, [edi + 0x1808]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a00dc
push 0xf0
mov eax, 0xff
push eax
push edx
push 0
push 0x18
push 0xfa
push eax
push str._c_c_c_c_s_c_c
sub ecx, edi
lea eax, [ebp - 0x904]
push 0x800
push eax
lea edi, [ecx + 6]
call fcn.00485fb8
add esp, 0x28
lea eax, [ebp - 0x904]
push 0
push edi
push eax
push dword [ebx + 0x130]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4a0146
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0048feb2
add esp, 0xc
lea eax, [edi - 2]
push eax
lea eax, [ebp - 0x902]
push eax
push 0x3e
push esi
call fcn.0049f950
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a7e44
mov esp, ebp
pop ebp
ret
Function at 0x4a0e0d
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x4f5470]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, dword [eax + 0x3d0]
mov edi, dword [eax]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], 0x80
lea eax, [ebp - 0x84]
push eax
mov eax, dword [esi + 0x154]
push 0
add eax, 4
push eax
push dword [esi + 0x15c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x4a0e9e
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
lea eax, [esi + 0xc8]
push eax
call fcn.004a7e60
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov dword [esi + 0x148], eax
mov ebx, dword [esi + 0x14c]
cmp ebx, 4
jge 0x4a0ed0
push str.Received_too_short_packet
push edi
call fcn.0048feb2
pop ecx
pop ecx
mov dword [esi + 0xc], 7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a7e44
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x15c]
movzx eax, byte [ecx]
shl ax, 8
movzx edx, ax
movzx eax, byte [ecx + 1]
or edx, eax
mov dword [esi + 0xc], edx
sub edx, 3
je 0x4a0f52
dec edx
je 0x4a0fc4
dec edx
je 0x4a0f2b
dec edx
je 0x4a0f10
push str.Internal_error:_Unexpected_packet
push 0x4f0f6c
push edi
call fcn.0048feb2
jmp 0x4a0fc1
lea eax, [ebx - 2]
push eax
lea eax, [ecx + 2]
push eax
push esi
call fcn.004a0bc0
add esp, 0xc
test eax, eax
je 0x4a0fc4
jmp 0x4a0ebf
mov edx, ecx
movzx eax, byte [edx + 2]
shl ax, 8
movzx ecx, ax
movzx eax, byte [edx + 3]
or ecx, eax
lea eax, [edx + 4]
push eax
push 0x4d8994
push edi
mov dword [esi + 8], ecx
call fcn.0048ff48
jmp 0x4a0fc1
cmp ebx, 4
jle 0x4a0fc4
movzx eax, byte [ecx + 2]
shl ax, 8
movzx edx, ax
movzx eax, byte [ecx + 3]
or edx, eax
movzx eax, word [esi + 0x40]
inc eax
and eax, 0xffff
cmp eax, edx
jne 0x4a0fc4
lea eax, [ebx - 4]
push eax
lea eax, [ecx + 4]
push eax
push 1
push dword [ebp - 0x8c]
call fcn.0048fcb5
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x4a0fa5
push 5
push esi
call fcn.004a164a
pop ecx
pop ecx
mov eax, ebx
jmp 0x4a0ebf
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [edi + 0x38], eax
adc dword [edi + 0x3c], edx
push dword [edi + 0x3c]
push dword [edi + 0x38]
push edi
call fcn.00497f9e
add esp, 0xc
push dword [ebp - 0x8c]
call fcn.00498188
pop ecx
test eax, eax
je 0x4a0ebd
push 5
push esi
call fcn.004a164a
pop ecx
pop ecx
push 0x2a
pop eax
jmp 0x4a0ebf
Function at 0x4a3bfa
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, dword [eax + 0x2c]
mov edi, dword [ebx]
mov esi, dword [edi + 0x1a4]
test esi, esi
jne 0x4a3c15
mov esi, dword [eax + 0x28]
push dword [eax + 0x24]
push dword [eax + 0x20]
call fcn.00491b24
push edx
push eax
call fcn.00491ace
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x19c], 0
je 0x4a3c5f
push dword [ebx + 0x124]
push dword [ebx + 0x120]
call fcn.00491b24
push edx
push eax
call fcn.00491ace
mov ecx, dword [edi + 0x19c]
add esp, 0x10
sub ecx, eax
cmp esi, ecx
cmovl ecx, esi
mov esi, ecx
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x4a489e
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x4f53dc]
mov edi, eax
pop ecx
test edi, edi
je 0x4a4988
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x4a4907
push ecx
call dword [esi]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call dword [esi + 4]
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
call dword [esi + 8]
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x4a490d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
call dword [esi]
push dword [edi + 8]
call dword [esi]
mov eax, dword [ebp + 0x10]
xor ebx, ebx
pop ecx
pop ecx
test eax, eax
je 0x4a4980
mov dword [ebp - 8], eax
mov ebx, eax
mov eax, dword [ebp - 4]
push 1
mov al, byte [eax]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push eax
push dword [edi + 4]
call dword [esi + 4]
mov ecx, dword [ebp - 4]
push 1
mov al, byte [ecx]
xor al, 0x5c
inc ecx
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push eax
push dword [edi + 8]
mov dword [ebp - 4], ecx
call dword [esi + 4]
add esp, 0x18
dec ebx
jne 0x4a4927
mov ebx, dword [ebp - 8]
jmp 0x4a4980
push 1
push 0x4dedcc
push dword [edi + 4]
call dword [esi + 4]
push 1
push 0x4dedcd
push dword [edi + 8]
call dword [esi + 4]
add esp, 0x18
inc ebx
cmp ebx, dword [esi + 0x10]
jb 0x4a4962
mov eax, edi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4a49df
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret
Function at 0x4a5ac4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x4a5aee
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4a5adf
xor eax, eax
jmp 0x4a5b41
push dword [eax + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call ecx
jmp 0x4a5b1f
cmp dword [esi + 8], 0
jne 0x4a5b0f
push 0x4effd8
push dword [eax + 8]
call fcn.004af476
mov dword [esi + 8], eax
pop ecx
pop ecx
test eax, eax
jne 0x4a5b0f
or eax, 0xffffffff
jmp 0x4a5b41
push dword [esi + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.004ad072
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4a5b3f
cmp dword [esi + 8], eax
je 0x4a5b39
push dword [esi + 8]
call fcn.004ad5bf
and dword [esi + 8], edi
pop ecx
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x4c2b85
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4f5470]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004b27b3
mov dword [ebp - 0x14], eax
cmp dword [0x4f9bb0], esi
jne 0x4c2c78
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4c2c05
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4c2d58
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4c2d58
push 0x4e7488
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4c2d58
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4f9bb0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4f9bb4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4f9bb8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4f9bc0], eax
test eax, eax
je 0x4c2c75
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4f9bbc], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4c2c9d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4c2c90
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4c2cb2
push 4
pop eax
jmp 0x4c2d5a
cmp dword [ebp - 0x14], esi
je 0x4c2cb2
push dword [0x4f9bb0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4c2c97
mov eax, dword [0x4f9bbc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4c2d10
cmp dword [0x4f9bc0], edi
je 0x4c2d10
push eax
call ebx
push dword [0x4f9bc0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4c2d10
test eax, eax
je 0x4c2d10
call ecx
test eax, eax
je 0x4c2d05
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4c2d05
test byte [ebp - 8], 1
jne 0x4c2d10
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4c2d40
mov eax, dword [0x4f9bb4]
cmp eax, edi
je 0x4c2d3d
push eax
call ebx
test eax, eax
je 0x4c2d3d
call eax
mov esi, eax
test esi, esi
je 0x4c2d3d
mov eax, dword [0x4f9bb8]
cmp eax, edi
je 0x4c2d3d
push eax
call ebx
test eax, eax
je 0x4c2d3d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4f9bb0]
call ebx
test eax, eax
je 0x4c2d58
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4c2d5a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a7e44
mov esp, ebp
pop ebp
ret
Function at 0x4ca50f
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7d8
mov eax, dword [0x4f5470]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
push 0x7ce
mov word [ebp - 0x7d4], ax
xor ebx, ebx
lea eax, [ebp - 0x7d2]
push ebx
push eax
call fcn.004a84b0
add esp, 0xc
mov dword [ebp - 0x7d8], ebx
push ebx
push ebx
push ebx
push ebx
push 0x4d1454
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
test edi, edi
jne 0x4ca567
xor al, al
jmp 0x4ca5aa
cmp dword [esi + 0x14], 8
jb 0x4ca56f
mov esi, dword [esi]
push ebx
push bind
push ebx
push ebx
push esi
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
test eax, eax
je 0x4ca563
lea ecx, [ebp - 0x7d8]
push ecx
push 0x7d0
lea ecx, [ebp - 0x7d4]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4ca563
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a7e44
mov esp, ebp
pop ebp
ret

Function at 0x4ca611
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4f5470]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push esi
push edi
mov edi, dword [ebp + 0xc]
push str.D:_A__GA___WD_
call fcn.0040aa10
lea eax, [ebp - 0x1c]
push eax
call fcn.004ca5bb
pop ecx
push 0
push 1
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.00408290
and dword [ebp - 0x20], 0
lea eax, [ebp - 0x28]
push edi
push 0
push eax
mov dword [ebp - 0x28], 0xc
mov dword [ebp - 0x24], esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push eax
mov ecx, ebx
call fcn.0040e690
push dword [ebx]
call fcn.0040cf60
pop ecx
test al, al
je 0x4ca690
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4ca690
xor ebx, ebx
inc ebx
jmp 0x4ca692
xor bl, bl
test esi, esi
je 0x4ca69d
push esi
call fcn.004a7e10
pop ecx
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a7e44
mov esp, ebp
pop ebp
ret