joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000d890
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov ebx, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebx + 0x4ac]
mov esi, eax
mov eax, 0x10624dd3
push dword [ebx + 0x4a8]
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
sub esi, ecx
imul eax, esi, 0x3e8
push eax
push edx
call fcn.10011800
movsd qword [ebx + 0x470], xmm0
add esp, 0x10
mov eax, dword [edi + 0x1ec]
test byte [eax + 0x40], 0x10
mov eax, dword [ebp - 4]
je 0x1000d8f7
mov byte [eax], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [eax], 0
mov byte [edi + 0x1d6], 0
cmp dword [ebx + 0x364], 0
je 0x1000d951
mov eax, dword [edi + 0x204]
test eax, eax
je 0x1000d928
push eax
call dword [0x1005f678]
add esp, 4
mov dword [edi + 0x204], 0
push dword [ebx + 0x364]
push str.User_Agent:__s_r_n
call fcn.1001e260
add esp, 8
mov dword [edi + 0x204], eax
test eax, eax
jne 0x1000d951
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x80], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, 0x10624dd3
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
mov dword [edi + 0x144], edx
sub esi, ecx
imul eax, esi, 0x3e8
mov dword [edi + 0x148], eax
cmp dword [edi + 0x154], 0xffffffff
jne 0x1000d9b0
mov byte [edi + 0x1c9], 0
mov ecx, edi
mov edx, dword [edi + 0x48]
call fcn.1000f1e0
test eax, eax
je 0x1000da4d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebx + 0x4ac]
mov esi, eax
mov eax, 0x10624dd3
push dword [ebx + 0x4a8]
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
sub esi, ecx
imul eax, esi, 0x3e8
push eax
push edx
call fcn.10011800
add esp, 0x10
movsd qword [ebx + 0x478], xmm0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebx + 0x4ac]
mov esi, eax
mov eax, 0x10624dd3
push dword [ebx + 0x4a8]
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
sub esi, ecx
imul eax, esi, 0x3e8
push eax
push edx
call fcn.10011800
mov eax, dword [ebp - 4]
add esp, 0x10
movsd qword [ebx + 0x480], xmm0
mov ecx, edi
mov byte [edi + 0x1c9], 1
mov byte [eax], 1
mov edx, dword [edi + 0x154]
call fcn.1000e750
mov ecx, edi
call fcn.1000b0a0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, 0x10624dd3
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
mov dword [edi + 0x144], edx
sub esi, ecx
imul eax, esi, 0x3e8
mov dword [edi + 0x148], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000df00
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
xor eax, eax
push edi
push 4
mov edi, edx
cmp byte [esi + 0x3dc], al
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1000df5b
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.10010cc0
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100370be
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x3e0]
and eax, 0x7fffffff
mov dword [ebp - 0x10], 1
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x3e4]
and eax, 0x7fffffff
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x1000dfc5
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.10010cc0
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100370be
mov esp, ebp
pop ebp
ret
Function at 0x1000e750
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
cmp dword [edi + 0x8c], 2
mov ebx, dword [edi]
je 0x1000e90c
cmp byte [edi + 0x1c1], 0
jne 0x1000e905
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0x80
push eax
lea eax, [ebp - 0x88]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x1000e7db
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.100320c0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.10010d80
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100370be
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0x80
push eax
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1000e830
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.100320c0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.10010d80
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100370be
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xe8]
lea esi, [edi + 0xb8]
push eax
mov edx, esi
lea ecx, [ebp - 0x88]
call fcn.1000e700
add esp, 4
test al, al
jne 0x1000e883
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.100320c0
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.10010d80
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100370be
mov esp, ebp
pop ebp
ret
movdqu xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
lea edx, [edi + 0xec]
lea ecx, [ebp - 0x108]
movdqu xmmword [edi + 0x58], xmm0
movdqu xmm0, xmmword [esi + 0x10]
movdqu xmmword [edi + 0x68], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [edi + 0x78], xmm0
mov dword [edi + 0x80], eax
mov ax, word [esi + 0x2c]
mov word [edi + 0x84], ax
lea eax, [edi + 0x11c]
push eax
call fcn.1000e700
add esp, 4
test al, al
jne 0x1000e905
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.100320c0
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.10010d80
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100370be
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.1000e640
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100370be
mov esp, ebp
pop ebp
ret
Function at 0x1000ed60
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, ecx
push 4
mov esi, dword [edi]
movzx eax, byte [esi + 0x2e6]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 1
push 6
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1000edaf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, edi
call fcn.100320c0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.10010cc0
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.10010cc0
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000edd0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10060728]
mov dword [ebp - 0xac], 0x4020
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xb4], 4
push esi
mov esi, ecx
test eax, eax
jne 0x1000ee7e
push 0x9c
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.1003f210
add esp, 0xc
mov dword [ebp - 0xa8], 0x9c
mov dword [ebp - 0xa4], 6
push 3
push 2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push 2
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x1000ee72
mov dword [0x10060728], 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100370be
mov esp, ebp
pop ebp
ret
mov dword [0x10060728], 1
jmp 0x1000ee83
cmp eax, 2
je 0x1000eece
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0xb0]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1000eeb4
mov eax, dword [ebp - 0xb0]
cmp eax, dword [ebp - 0xac]
jg 0x1000eece
push 4
lea eax, [ebp - 0xac]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100370be
mov esp, ebp
pop ebp
ret
Function at 0x1000f390
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, dword [edi + 0x538]
test esi, esi
je 0x1000f3d8
mov ecx, dword [edi + 0x44]
test ecx, ecx
je 0x1000f3d8
mov dword [ebp - 0xc], esi
lea edx, [ebp - 0xc]
mov byte [ebp - 8], 0
mov ecx, dword [ecx + 0x34]
push 0x1000f370
call fcn.100168e0
add esp, 4
cmp byte [ebp - 8], 0
jne 0x1000f3e2
mov dword [edi + 0x538], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x1000f3e8
mov dword [ebx], esi
cmp byte [esi + 0x178], 0
mov edi, dword [esi + 0x154]
jne 0x1000f3d8
push 2
push 1
lea eax, [ebp - 1]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
or ecx, 0xffffffff
test eax, eax
cmove edi, ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000fff0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x48
push 1
mov dword [ebp - 4], edx
mov esi, ecx
call dword [0x1005f674]
mov edi, eax
add esp, 8
mov dword [esi + 0x368], edi
mov ebx, 8
test edi, edi
je 0x100100c2
mov ecx, dword [ebp + 8]
push dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov dword [esi + 0x358], ecx
push ecx
mov byte [esi + 0x360], 0
mov ecx, edi
mov dword [esi + 0x364], 0
mov dword [esi + 0x35c], 0
mov dword [edi], 0
call fcn.1000fdb0
add esp, 8
test eax, eax
je 0x100100c2
mov eax, dword [esi + 0x354]
test eax, eax
je 0x1001007b
push eax
call dword [0x1005f678]
add esp, 4
mov dword [esi + 0x354], 0
push dword [ebp - 4]
call dword [0x1005f670]
add esp, 4
mov dword [esi + 0x354], eax
test eax, eax
je 0x100100c2
push 0
push 0
lea eax, [edi + 0xc]
push eax
push 0x1000fe70
push 0
push 0
call fcn.10047797
add esp, 0x18
test eax, eax
je 0x100100b3
cmp eax, 0xffffffff
jne 0x100100b5
xor eax, eax
mov dword [edi], eax
test eax, eax
jne 0x100100dd
call fcn.10038cce
mov ebx, dword [eax]
lea ecx, [esi + 0x354]
call fcn.1000ff60
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10010d80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
mov edx, 0x1001e130
mov dword [ebp - 8], 0
lea ebx, [edi + 0x544]
mov dword [ebp - 4], 0x4000
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
call fcn.1001d750
mov eax, dword [ebp - 4]
add esp, 8
test eax, eax
je 0x10010dd2
cmp eax, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
jne 0x10010dcf
mov byte [eax - 1], 0
jmp 0x10010dd2
mov byte [eax], 0
mov eax, dword [edi + 0x120]
test eax, eax
je 0x10010e00
cmp byte [edi + 0x8570], 0
jne 0x10010e00
push ebx
push 0x100568d8
push pe_nt_image_headers32
push eax
call fcn.1001e160
add esp, 0x10
mov byte [edi + 0x8570], 1
cmp byte [edi + 0x2d0], 0
je 0x10010e78
mov esi, ebx
lea ecx, [esi + 1]
mov edi, edi
mov al, byte [esi]
inc esi
test al, al
jne 0x10010e10
sub esi, ecx
cmp esi, 0x3fff
jae 0x10010e31
mov byte [edi + esi + 0x544], 0xa
inc esi
mov byte [edi + esi + 0x544], al
mov eax, dword [edi + 0x190]
test eax, eax
je 0x10010e52
push dword [edi + 0x11c]
push esi
push ebx
push 0
push edi
call eax
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [edi + 0x118]
push 1
push 2
push 0x10055194
call fcn.1004671e
push dword [edi + 0x118]
push 1
push esi
push ebx
call fcn.1004671e
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10010e80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov ebx, dword [eax]
push edi
mov dword [ebp - 0xc0], eax
call fcn.1001e2f0
mov edx, eax
mov dword [ebp - 0xc4], edx
test edx, edx
jne 0x10010ecc
lea eax, [edx + 0x1b]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100370be
mov esp, ebp
pop ebp
ret
mov edi, edx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10010ed1
sub edi, ecx
mov dword [ebp - 0xb4], edx
mov esi, edx
mov ecx, dword [ebp - 0xc0]
xor eax, eax
mov edx, dword [ebp + 8]
mov dword [ebp - 0xbc], 0
cmp edx, dword [ecx + 0x158]
lea edx, [ebp - 0xbc]
push edx
push edi
sete al
push esi
push eax
push ecx
mov eax, dword [ecx + eax*4 + 0x170]
call eax
add esp, 0x14
mov dword [ebp - 0xb8], eax
test eax, eax
jns 0x10010f42
mov eax, dword [ebp - 0xbc]
test eax, eax
je 0x1001104a
cmp eax, 0x51
jne 0x10011046
mov dword [ebp - 0xb8], 0
cmp byte [ebx + 0x2d0], 0
mov dword [ebp - 0xb0], 0
je 0x10011027
cmp byte [ebx + 0x2b8], 0
je 0x10011008
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x9c]
test eax, eax
je 0x10011008
push eax
push 0x1005698c
push str.Data
push str.__s__s__s_
lea eax, [ebp - 0xac]
push 0xa0
push eax
call fcn.1001e160
lea esi, [ebp - 0xac]
add esp, 0x18
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10010fa7
mov eax, dword [ebx + 0x190]
sub esi, ecx
test eax, eax
je 0x10010fd6
push dword [ebx + 0x11c]
lea ecx, [ebp - 0xac]
push esi
push ecx
push 0
push ebx
call eax
add esp, 0x14
test eax, eax
jne 0x10011027
jmp 0x10011002
push dword [ebx + 0x118]
push 1
push 2
push 0x10055194
call fcn.1004671e
push dword [ebx + 0x118]
lea eax, [ebp - 0xac]
push 1
push esi
push eax
call fcn.1004671e
add esp, 0x20
mov esi, dword [ebp - 0xb4]
mov eax, dword [ebx + 0x190]
test eax, eax
je 0x10011027
push dword [ebx + 0x11c]
push dword [ebp - 0xb8]
push esi
push 4
push ebx
call eax
add esp, 0x14
mov eax, dword [ebp - 0xb8]
cmp eax, edi
je 0x10011051
mov esi, dword [ebp - 0xb4]
sub edi, eax
add esi, eax
mov dword [ebp - 0xb4], esi
jmp 0x10010ee2
mov esi, eax
jmp 0x10011057
mov esi, 0x37
jmp 0x10011057
mov esi, dword [ebp - 0xb0]
push dword [ebp - 0xc4]
call dword [0x1005f678]
mov ecx, dword [ebp - 8]
add esp, 4
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100370be
mov esp, ebp
pop ebp
ret
Function at 0x100110e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ecx + eax*4 + 0x154]
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [ebp + 0x18]
mov esi, eax
mov dword [edi], 0
cmp esi, 0xffffffff
jne 0x1001115e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x1001112e
mov dword [edi], 0x51
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 8]
mov edx, ebx
call fcn.100320c0
push eax
mov eax, dword [ebp + 8]
push str.Send_failure:__s
push dword [eax]
call fcn.10010d80
mov eax, dword [ebp + 8]
add esp, 0xc
mov eax, dword [eax]
mov dword [eax + 0x8574], ebx
mov eax, esi
mov dword [edi], 0x37
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10011560
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0x190]
test eax, eax
je 0x10011586
push dword [esi + 0x11c]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edx
push esi
call eax
add esp, 0x14
pop esi
pop ebp
ret
cmp edx, 2
ja 0x100115ba
push dword [esi + 0x118]
lea eax, [edx*2 + 0x10055194]
push 1
add eax, edx
push 2
push eax
call fcn.1004671e
push dword [esi + 0x118]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1004671e
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret

Function at 0x100115c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, edx
cmp byte [esi + 0x2b8], 0
je case.default.0x10011604
test eax, eax
je case.default.0x10011604
mov edx, dword [eax + 0x9c]
test edx, edx
je case.default.0x10011604
lea ecx, [edi - 1]
mov eax, str.Data
cmp ecx, 3
ja case.default.0x10011604
jmp dword [ecx*4 + 0x100116d8]
mov eax, str.Header
mov ecx, str.from
jmp 0x10011621
mov eax, str.Header
mov ecx, 0x1005698c
push edx
push ecx
push eax
push str.__s__s__s_
lea eax, [ebp - 0xac]
push 0xa0
push eax
call fcn.1001e160
lea ecx, [ebp - 0xac]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10011646
sub ecx, edx
lea eax, [ebp - 0xac]
push ecx
push eax
xor edx, edx
mov ecx, esi
call fcn.10011560
add esp, 8
test eax, eax
jne 0x100116c7
mov eax, dword [esi + 0x190]
test eax, eax
je 0x10011693
push dword [esi + 0x11c]
push dword [ebp + 0xc]
push ebx
push edi
push esi
call eax
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100370be
mov esp, ebp
pop ebp
ret
cmp edi, 2
ja 0x100116c5
push dword [esi + 0x118]
lea eax, [edi*2 + 0x10055194]
push 1
add eax, edi
push 2
push eax
call fcn.1004671e
push dword [esi + 0x118]
push 1
push dword [ebp + 0xc]
push ebx
call fcn.1004671e
add esp, 0x20
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100370be
mov esp, ebp
pop ebp
ret
Function at 0x1001f2f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x10], edx
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], esi
mov dword [eax], esi
mov ecx, dword [ecx]
xor eax, eax
mov esi, 1
mov dword [ebp - 0xc], ecx
mov ebx, 0x493e0
mov edx, dword [ecx + 0x1c8]
test edx, edx
mov ecx, dword [ecx + 0x1cc]
cmovg eax, esi
test ecx, ecx
jle 0x1001f332
or eax, 2
dec eax
je 0x1001f348
dec eax
je 0x1001f344
dec eax
jne 0x1001f34a
cmp edx, ecx
mov ebx, ecx
cmovl ebx, edx
jmp 0x1001f34a
mov ebx, ecx
jmp 0x1001f34a
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, 0x10624dd3
mul esi
mov eax, dword [ebp - 0xc]
mov edi, edx
shr edi, 6
imul ecx, edi, 0x3e8
sub esi, ecx
imul ecx, esi, 0x3e8
mov esi, dword [eax + 0x4a8]
sub esi, edi
sub ecx, dword [eax + 0x4ac]
mov eax, 0x10624dd3
imul ecx
imul eax, esi, 0x3e8
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub eax, ecx
add ebx, eax
je 0x1001f42c
test ebx, ebx
js 0x1001f42c
mov edi, dword [ebp - 0x10]
or edx, 0xffffffff
push ebx
push 0xffffffffffffffff
mov ecx, edi
call fcn.100104f0
add esp, 8
test eax, eax
jle 0x1001f422
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0
push ebx
push esi
push edi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x1001f3e8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1001f405
mov ecx, dword [ebp - 8]
jmp 0x1001f309
cmp ebx, eax
je 0x1001f411
test eax, eax
je 0x1001f422
mov ecx, dword [ebp - 8]
sub ebx, eax
add esi, eax
mov dword [ebp + 0xc], ebx
add dword [ebp - 4], eax
mov dword [ebp + 8], esi
jmp 0x1001f309
mov eax, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
add eax, dword [ebp - 4]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x1c
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10022830
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
mov dword [ebp - 0x8c], 0x80
push edi
mov dword [ebp - 0x90], eax
mov esi, dword [eax + 0x378]
mov edi, dword [eax]
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x88]
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 0x100228c0
push dword [ebp - 0x8c]
lea eax, [ebp - 0x88]
push eax
lea eax, [esi + 0xc8]
push eax
call fcn.1003f7f0
mov eax, dword [ebp - 0x8c]
add esp, 0xc
mov dword [esi + 0x148], eax
mov ebx, dword [esi + 0x14c]
cmp ebx, 4
jge 0x100228f3
push str.Received_too_short_packet
push edi
call fcn.10010d80
add esp, 8
mov dword [esi + 0xc], 7
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100370be
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
add edx, 0xfffffffd
cmp edx, 3
ja case.default.0x10022918
jmp dword [edx*4 + 0x10022a44]
cmp ebx, 4
jle case.0x10022918.4
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 case.0x10022918.4
lea eax, [ebx - 4]
add ecx, 4
push eax
push ecx
mov ecx, dword [ebp - 0x90]
mov edx, 1
call fcn.10011290
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x1002298b
mov edx, 5
mov ecx, esi
call fcn.10022560
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100370be
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [edi + 0x70], eax
mov eax, dword [edi + 0x70]
adc dword [edi + 0x74], edx
mov dword [edi + 0x430], eax
mov eax, dword [edi + 0x74]
mov dword [edi + 0x434], eax
jmp case.0x10022918.4
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 0x10056b74
push edi
mov dword [esi + 8], ecx
call fcn.10010cc0
jmp 0x10022a0c
lea eax, [ebx - 2]
lea edx, [ecx + 2]
mov ecx, esi
push eax
call fcn.100217f0
add esp, 4
test eax, eax
je case.0x10022918.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100370be
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x100568d8
push edi
call fcn.10010d80
add esp, 0xc
mov ecx, dword [ebp - 0x90]
call fcn.1001b090
test eax, eax
je 0x100228e0
mov edx, 5
mov ecx, esi
call fcn.10022560
mov ecx, dword [ebp - 4]
mov eax, 0x2a
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100370be
mov esp, ebp
pop ebp
ret