joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4779cf
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 0x477b39
push esi
mov esi, dword [ebp - 8]
mov dword [ebp - 0x10], esi
test esi, esi
je 0x477b25
push ebx
cmp dword [esi + 4], 2
jne 0x477ac4
cmp dword [esi + 0x18], 0
je 0x477ac4
cmp dword [esi + 0x10], 0
jbe 0x477ac4
cmp dword [esi + 0x10], 0x10
jb 0x477ac4
push 0x20
call dword [0x4b02e0]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x477b19
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 [0x4b02e0]
mov dword [ebx + 0x18], eax
pop ecx
test eax, eax
je 0x477b0d
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 0x477aac
push dword [esi + 0x14]
call dword [0x4b02ec]
mov dword [ebx + 0x14], eax
pop ecx
test eax, eax
je 0x477af6
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 0x477ac1
mov dword [eax + 0x1c], ebx
mov dword [ebp - 0xc], ebx
mov esi, dword [esi + 0x1c]
mov dword [ebp - 0x10], esi
test esi, esi
jne 0x477a11
mov esi, dword [ebp - 0x14]
cmp dword [ebp - 8], 0
pop ebx
je 0x477ae5
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x477b1e
push dword [ebp - 4]
call fcn.0047798e
pop ecx
xor edi, edi
jmp 0x477b31
push 8
pop esi
push dword [ebx + 0x18]
call dword [0x4b02e4]
push ebx
call dword [0x4b02e4]
pop ecx
pop ecx
jmp 0x477ad5
push 8
pop esi
push ebx
call dword [0x4b02e4]
jmp 0x477b0a
push 8
pop esi
jmp 0x477ad5
mov edi, dword [ebp - 4]
test edi, edi
jne 0x477b31
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 0x47892c
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.00495c33
add esp, 0x18
test eax, eax
je 0x47894c
cmp eax, 0xffffffff
jne 0x47894e
xor eax, eax
pop ebp
ret
Function at 0x47ec99
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x4b0780]
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 0x47ece2
cmp edi, 0xffffffff
jne 0x47ece2
push ebx
call fcn.0047eedf
pop ecx
jmp 0x47eece
test ebx, ebx
jle 0x47ed00
mov dword [ebp - 0x314], ebx
call fcn.00477978
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 0x47ed40
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 0x47ed8a
mov dword [ebp - 0x208], edi
mov eax, esi
mov dword [ebp - 0x20c], 1
test ecx, ecx
je 0x47ed6f
cmp dword [ebp + eax*4 - 0x104], edi
je 0x47ed6f
inc eax
cmp eax, ecx
jb 0x47ed61
cmp eax, ecx
jne 0x47ed85
cmp ecx, 0x40
jae 0x47ed85
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 0x47edd4
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 0x47ede2
jne 0x47ede2
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 0x47ee5e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x47ee1a
cmp eax, 0x2714
jne 0x47ee62
mov ecx, dword [ebp - 0x314]
mov eax, dword [ebp - 0x318]
test ebx, ebx
jle 0x47edd4
push dword [ebp - 0x324]
push dword [ebp - 0x320]
call fcn.00477978
push edx
push eax
call fcn.00477922
mov ecx, ebx
add esp, 0x10
sub ecx, eax
mov dword [ebp - 0x314], ecx
test ecx, ecx
jle 0x47ee62
mov eax, dword [ebp - 0x318]
jmp 0x47edac
test eax, eax
jns 0x47ee67
or eax, 0xffffffff
jmp 0x47eece
jne 0x47ee6d
xor eax, eax
jmp 0x47eece
mov ebx, dword [ebp + 8]
cmp ebx, 0xffffffff
je 0x47ee9f
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 0x47ee9f
or esi, 4
cmp edi, 0xffffffff
je 0x47eecc
lea eax, [ebp - 0x20c]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x47eeb8
or esi, 2
lea eax, [ebp - 0x108]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x47eecc
or esi, 4
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00490c9e
mov esp, ebp
pop ebp
ret
Function at 0x480125
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4b0780]
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 0x480177
mov eax, 0x3e8
cmp ecx, eax
cmovl eax, ecx
push eax
push 0xffffffffffffffff
push dword [ebp - 0x18]
call fcn.0047ec99
add esp, 0xc
cmp eax, 0xffffffff
je 0x48021e
test eax, eax
jne 0x4801ab
push 1
push 0
push esi
call fcn.00476485
mov ecx, eax
add esp, 0xc
test ecx, ecx
jns 0x480152
push 0x4093fc
push esi
call fcn.00475d09
pop ecx
pop ecx
push 0x1c
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00490c9e
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 0x4801da
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.00476228
pop ecx
pop ecx
cmp edi, 0xffffffff
jne 0x4801fb
push 0x409450
push esi
call fcn.00475d09
pop ecx
pop ecx
push 0x1e
jmp 0x480199
push 0x409474
push esi
call fcn.00475d9f
push 1
push edi
mov dword [ebx + 0x134], edi
call fcn.00489321
add esp, 0x10
xor eax, eax
jmp 0x48019a
push 0x409428
jmp 0x4801ef

Function at 0x481fd5
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 0x482002
push 0x409974
push ecx
call fcn.00475d09
pop ecx
pop ecx
push 0x11
pop eax
jmp 0x482059
cmp dword [ebp + 0xc], 0xc8
je 0x48201c
push dword [ebp + 0xc]
push 0x409990
push ecx
call fcn.00475d9f
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x48202d
push edi
call fcn.00481bf4
pop ecx
jmp 0x482055
cmp eax, 0x14
jne 0x48203a
push edi
call fcn.004817b4
jmp 0x48202a
cmp eax, 0x15
jne 0x482043
push 0xd
jmp 0x48204a
cmp eax, 0x16
jne 0x482057
push 0xe
push 1
push edi
call fcn.00481c6e
add esp, 0xc
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x485550
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4b0780]
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 0x48558b
push eax
push 0x40a930
push esi
call fcn.00475d09
add esp, 0xc
jmp 0x4855b3
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x4855a6
shr eax, 8
test al, al
jne 0x4855a6
xor eax, eax
jmp 0x4855b6
push 0x40a948
push esi
call fcn.00475d09
pop ecx
pop ecx
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00490c9e
mov esp, ebp
pop ebp
ret

Function at 0x485c71
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 0x485cb9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x40a9bc
push edi
call fcn.00475d09
add esp, 0xc
push dword [ebp + 0x10]
push ebx
push 0x40a9d8
push dword [esi]
call fcn.004856bb
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x485d78
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90c
mov eax, dword [0x4b0780]
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.004857a4
mov eax, dword [edi + 0x1aac]
add esp, 0x10
movzx ecx, byte [eax]
inc eax
mov dword [edi + 0x1aac], eax
cmp ecx, 0x18
je 0x485f25
cmp ecx, 0x23
je 0x485f01
cmp ecx, 0x27
jne 0x485fb0
push 0
push ecx
push 0xfa
push 0xff
push 0x40ab08
lea eax, [ebp - 0x904]
push 0x800
push eax
call fcn.0046be0f
mov edi, dword [edi + 0x18a8]
add esp, 0x1c
push 4
pop ebx
test edi, edi
je 0x485e99
mov ecx, dword [edi]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x485e2a
sub ecx, edx
lea esi, [ebx + 1]
add esi, ecx
cmp esi, 0x7fa
jae 0x485e8c
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x104]
push eax
push 0x40ab14
push dword [edi]
call fcn.00495197
lea eax, [ebp - 0x84]
push eax
push 1
lea eax, [ebp - 0x104]
push eax
push 0
mov eax, 0x800
sub eax, ebx
push 0x40ab24
push eax
lea eax, [ebp - 0x904]
add eax, ebx
push eax
call fcn.0046be0f
add esp, 0x2c
mov ebx, esi
mov edi, dword [edi + 4]
test edi, edi
jne 0x485e25
mov esi, dword [ebp - 0x908]
push 0xf0
push 0xff
mov eax, 0x800
sub eax, ebx
push 0x40ab30
push eax
lea eax, [ebp - 0x904]
add eax, ebx
push eax
call fcn.0046be0f
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 0x485ef9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x40a9bc
push esi
call fcn.00475d09
add esp, 0xc
lea eax, [ebx - 2]
jmp 0x485f9d
lea edx, [edi + 0x1828]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x485f0c
push 0xf0
mov eax, 0xff
push eax
push edx
push 0
push 0x23
jmp 0x485f47
lea edx, [edi + 0x1808]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x485f30
push 0xf0
mov eax, 0xff
push eax
push edx
push 0
push 0x18
push 0xfa
push eax
push 0x40aaf8
sub ecx, edi
lea eax, [ebp - 0x904]
push 0x800
push eax
lea edi, [ecx + 6]
call fcn.0046be0f
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 0x485f9a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x40a9bc
push esi
call fcn.00475d09
add esp, 0xc
lea eax, [edi - 2]
push eax
lea eax, [ebp - 0x902]
push eax
push 0x3e
push esi
call fcn.004857a4
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00490c9e
mov esp, ebp
pop ebp
ret
Function at 0x486c61
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x4b0780]
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 0x486cf2
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
lea eax, [esi + 0xc8]
push eax
call fcn.0048d700
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov dword [esi + 0x148], eax
mov ebx, dword [esi + 0x14c]
cmp ebx, 4
jge 0x486d24
push 0x40b0f0
push edi
call fcn.00475d09
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.00490c9e
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 0x486da6
dec edx
je 0x486e18
dec edx
je 0x486d7f
dec edx
je 0x486d64
push 0x40b10c
push 0x413fec
push edi
call fcn.00475d09
jmp 0x486e15
lea eax, [ebx - 2]
push eax
lea eax, [ecx + 2]
push eax
push esi
call fcn.00486a14
add esp, 0xc
test eax, eax
je 0x486e18
jmp 0x486d13
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 0x406d04
push edi
mov dword [esi + 8], ecx
call fcn.00475d9f
jmp 0x486e15
cmp ebx, 4
jle 0x486e18
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 0x486e18
lea eax, [ebx - 4]
push eax
lea eax, [ecx + 4]
push eax
push 1
push dword [ebp - 0x8c]
call fcn.00475b0c
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x486df9
push 5
push esi
call fcn.0048749e
pop ecx
pop ecx
mov eax, ebx
jmp 0x486d13
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.0047ddc2
add esp, 0xc
push dword [ebp - 0x8c]
call fcn.0047dfac
pop ecx
test eax, eax
je 0x486d11
push 5
push esi
call fcn.0048749e
pop ecx
pop ecx
push 0x2a
pop eax
jmp 0x486d13
Function at 0x486e3e
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 3
pop ebx
mov eax, dword [esi + 0x10]
mov edi, dword [eax]
mov eax, dword [ebp + 0xc]
sub eax, ebx
je 0x486fa6
dec eax
dec eax
je 0x486f4e
dec eax
je 0x486ee4
dec eax
je 0x486e82
push 0x40b018
push 0x413fec
push edi
call fcn.00475d09
add esp, 0xc
push 0x47
jmp 0x487059
inc dword [esi + 0x18]
movzx eax, word [esi + 0x40]
push dword [esi + 0x18]
inc eax
and eax, 0xffff
push eax
push 0x40afe4
push edi
call fcn.00475d9f
mov eax, dword [esi + 0x18]
add esp, 0x10
cmp eax, dword [esi + 0x20]
jle 0x486eb7
mov dword [esi + 8], 0xffffff9d
mov dword [esi], ebx
jmp 0x487080
push dword [esi + 0x148]
lea eax, [esi + 0xc8]
push eax
push 0
push 4
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x487080
jmp 0x487039
xor eax, eax
xor ebx, ebx
mov word [esi + 0x40], ax
mov dword [esi + 0x18], ebx
mov eax, dword [esi + 0x160]
mov byte [eax], bl
mov eax, dword [esi + 0x160]
mov byte [eax + 1], 4
movzx edx, word [esi + 0x40]
mov eax, dword [esi + 0x160]
mov ecx, edx
shr ecx, 8
mov byte [eax + 2], cl
mov eax, dword [esi + 0x160]
mov byte [eax + 3], dl
lea eax, [esi + 0xc8]
push dword [esi + 0x148]
push eax
push ebx
push 4
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0x487039
mov dword [esi], 1
jmp 0x487076
mov eax, dword [esi + 0x160]
xor ebx, ebx
mov byte [eax], bl
mov eax, dword [esi + 0x160]
mov byte [eax + 1], 5
movzx edx, word [esi + 0x40]
mov eax, dword [esi + 0x160]
mov ecx, edx
shr ecx, 8
mov byte [eax + 2], cl
mov eax, dword [esi + 0x160]
mov byte [eax + 3], dl
lea eax, [esi + 0xc8]
push dword [esi + 0x148]
push eax
push ebx
push 4
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
push 3
pop eax
mov dword [esi], eax
jmp 0x487080
mov ecx, dword [esi + 0x15c]
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
je 0x486fe0
push eax
push edx
push 0x40afa4
push edi
call fcn.00475d9f
add esp, 0x10
jmp 0x487080
mov word [esi + 0x40], dx
xor ebx, ebx
mov dword [esi + 0x18], ebx
mov eax, dword [esi + 0x160]
mov byte [eax], bl
mov eax, dword [esi + 0x160]
mov byte [eax + 1], 4
movzx edx, word [esi + 0x40]
mov eax, dword [esi + 0x160]
mov ecx, edx
shr ecx, 8
mov byte [eax + 2], cl
mov eax, dword [esi + 0x160]
mov byte [eax + 3], dl
lea eax, [esi + 0xc8]
push dword [esi + 0x148]
push eax
push ebx
push 4
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x48705c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [esi + 0x10]
call fcn.0046b308
push eax
push 0x413fec
push edi
call fcn.00475d09
add esp, 0x14
push 0x37
pop eax
jmp 0x487082
mov eax, dword [esi + 0x154]
xor ecx, ecx
add eax, 4
inc ecx
cmp dword [esi + 0x14c], eax
push 3
pop eax
cmovl ecx, eax
mov dword [esi], ecx
lea eax, [esi + 0x38]
push eax
call fcn.00491dbc
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4875f4
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov eax, dword [esi + 0x10]
mov edi, dword [eax]
mov eax, dword [ebp + 0xc]
sub eax, 4
je 0x4876f8
dec eax
je 0x48769b
dec eax
je 0x4876f8
dec eax
je 0x487634
push dword [ebp + 0xc]
push 0x40b088
push edi
call fcn.00475d09
jmp 0x48789f
inc dword [esi + 0x18]
movzx eax, word [esi + 0x40]
push dword [esi + 0x18]
inc eax
and eax, 0xffff
push eax
push 0x40afe4
push edi
call fcn.00475d9f
mov eax, dword [esi + 0x18]
add esp, 0x10
cmp eax, dword [esi + 0x20]
jle 0x487667
mov dword [esi + 8], 0xffffff9d
jmp 0x4876ed
push dword [esi + 0x148]
lea eax, [esi + 0xc8]
push eax
mov eax, dword [esi + 0x150]
push ebx
add eax, 4
push eax
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x487893
jmp 0x487867
mov dword [esi], 3
mov eax, dword [esi + 0x160]
mov byte [eax], bl
mov eax, dword [esi + 0x160]
mov byte [eax + 1], 5
movzx edx, word [esi + 0x40]
mov eax, dword [esi + 0x160]
mov ecx, edx
shr ecx, 8
mov byte [eax + 2], cl
mov eax, dword [esi + 0x160]
mov byte [eax + 3], dl
lea eax, [esi + 0xc8]
push dword [esi + 0x148]
push eax
push ebx
push 4
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
xor eax, eax
inc eax
cmp dword [ebp + 0xc], 4
jne 0x4877cf
mov ecx, dword [esi + 0x15c]
movzx eax, byte [ecx + 2]
shl ax, 8
movzx edx, ax
movzx eax, byte [ecx + 3]
or edx, eax
movzx eax, word [esi + 0x40]
mov ecx, eax
cmp edx, ecx
je 0x4877bf
test ax, ax
jne 0x48773b
cmp edx, 0xffff
je 0x4877bf
push ecx
push edx
push 0x40b030
push edi
call fcn.00475d9f
add esp, 0x10
inc dword [esi + 0x18]
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x20]
jle 0x48776b
movzx eax, word [esi + 0x40]
push eax
push 0x40b05c
push edi
call fcn.00475d09
add esp, 0xc
jmp 0x4877b5
push dword [esi + 0x148]
lea eax, [esi + 0xc8]
push eax
mov eax, dword [esi + 0x150]
push ebx
add eax, 4
push eax
lea eax, [esi + 0x160]
push eax
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x4877b8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [esi + 0x10]
call fcn.0046b308
push eax
push 0x413fec
push edi
call fcn.00475d09
add esp, 0x14
push 0x37
pop ebx
mov eax, ebx
jmp 0x4878a4
lea eax, [esi + 0x38]
push eax
call fcn.00491dbc
inc word [esi + 0x40]
pop ecx
jmp 0x4877d3
mov word [esi + 0x40], ax
mov dword [esi + 0x18], ebx
mov eax, dword [esi + 0x160]
mov byte [eax], bl
mov eax, dword [esi + 0x160]
mov byte [eax + 1], 3
Function at 0x489a46
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 0x489a61
mov esi, dword [eax + 0x28]
push dword [eax + 0x24]
push dword [eax + 0x20]
call fcn.00477978
push edx
push eax
call fcn.00477922
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x19c], 0
je 0x489aab
push dword [ebx + 0x124]
push dword [ebx + 0x120]
call fcn.00477978
push edx
push eax
call fcn.00477922
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 0x48a6ea
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 [0x4b02e0]
mov edi, eax
pop ecx
test edi, edi
je 0x48a7d4
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 0x48a753
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 0x48a759
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 0x48a7cc
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 0x48a773
mov ebx, dword [ebp - 8]
jmp 0x48a7cc
push 1
push 0x40bcec
push dword [edi + 4]
call dword [esi + 4]
push 1
push 0x40bced
push dword [edi + 8]
call dword [esi + 4]
add esp, 0x18
inc ebx
cmp ebx, dword [esi + 0x10]
jb 0x48a7ae
mov eax, edi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x48a82b
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