joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002c0a0
Capabilities:
Enumerate pe sections

Disassembly:
push 0xffffffffffffffff
push 0x1016b47e
mov eax, dword fs:[0]
push eax
push ebp
push esi
push edi
mov eax, dword [0x101b01e4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x20]
test edi, edi
jne 0x1002c0e5
or eax, 0xffffffff
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 4
cmp dword [esi + 0x3c], 0
jne 0x1002c107
push 0x1e
call fcn.1014979e
add esp, 4
test eax, eax
je 0x1002c102
mov ecx, eax
call fcn.1002b5d0
jmp 0x1002c104
xor eax, eax
mov dword [esi + 0x3c], eax
mov eax, 1
test byte [0x101b16c4], al
jne 0x1002c170
or dword [0x101b16c4], eax
mov ecx, dword [edi]
mov eax, ecx
mov dword [esp + 0x18], 0
mov dword [0x101b16c0], 0xf
mov dword [0x101b16bc], 0
mov byte [0x101b16ac], 0
lea ebp, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1002c144
sub eax, ebp
push eax
push ecx
mov ecx, 0x101b16a8
call fcn.10001fe0
push 0x10182f30
call fcn.1014a8bf
add esp, 4
mov dword [esp + 0x18], 0xffffffff
cmp dword [0x101b16c0], 0x10
mov eax, dword [0x101b16ac]
jae 0x1002c183
mov eax, 0x101b16ac
mov ecx, dword [esi + 0x3c]
mov dword [ecx], eax
mov edx, dword [esi + 0x3c]
mov ax, word [edi + 4]
mov word [edx + 4], ax
mov ecx, dword [esi + 0x3c]
mov dx, word [edi + 6]
mov word [ecx + 6], dx
mov eax, dword [esi + 0x3c]
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
mov edx, dword [esi + 0x3c]
mov eax, dword [edi + 0xc]
mov dword [edx + 0xc], eax
mov ecx, dword [esi + 0x3c]
mov edx, dword [edi + 0x10]
mov dword [ecx + 0x10], edx
mov eax, dword [esi + 0x3c]
mov ecx, dword [edi + 0x14]
mov dword [eax + 0x14], ecx
mov edx, dword [esi + 0x3c]
mov al, byte [edi + 0x18]
mov byte [edx + 0x18], al
mov ecx, dword [esi + 0x3c]
mov dl, byte [edi + 0x19]
mov byte [ecx + 0x19], dl
mov ecx, dword [edi + 0x1a]
mov eax, dword [esi + 0x3c]
mov dword [eax + 0x1a], ecx
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x1002c201
mov edx, dword [ecx]
mov eax, dword [edx + 0x6c]
push edi
call eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 4
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 4
add ecx, 0x32bc
jmp 0x1002c0a0

Function at 0x1002d990
Capabilities:
Set socket configuration

Disassembly:
cmp byte [esp + 4], 0
push esi
je 0x1002d99e
push 0x11
push 2
jmp 0x1002d9a2
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 8], 0x10000
je 0x1002d9e9
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [esp + 0x10]
push eax
push 0x1002
push 0xffff
push esi
call edi
push 4
lea ecx, [esp + 0x10]
push ecx
push 0x1001
push 0xffff
push esi
call edi
pop edi
mov eax, esi
pop esi
ret
Function at 0x1002d9f0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x14
mov eax, dword [0x101b01e4]
xor eax, esp
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x18]
cmp ecx, 0xffffffff
mov eax, dword [esp + 0x24]
je 0x1002da49
mov dx, word [esp + 0x20]
mov word [esp + 2], dx
mov edx, dword [esp + 0x1c]
push 0x10
mov dword [esp + 8], edx
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 0x30]
push 0
push edx
push eax
push ecx
mov word [esp + 0x18], 2
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.10149c5e
add esp, 0x14
ret
mov ecx, dword [esp + 0x10]
xor ecx, esp
or eax, 0xffffffff
call fcn.10149c5e
add esp, 0x14
ret

Function at 0x1002dac0
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x101b01e4]
xor eax, esp
mov dword [esp + 0x14], eax
mov ax, word [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push esi
push 0x11
push 2
push 2
mov word [esp + 0x14], 2
mov word [esp + 0x16], ax
mov dword [esp + 0x18], ecx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 4], 0x10000
je 0x1002db33
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea edx, [esp + 0xc]
push edx
push 0x1002
push 0xffff
push esi
call edi
push 4
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call edi
pop edi
cmp byte [esp + 0x28], 0
je 0x1002db77
lea ecx, [esp + 4]
push ecx
push 0x8004667e
push esi
mov dword [esp + 0x10], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x1002db77
cmp esi, 0xffffffff
je 0x1002db64
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10149c5e
add esp, 0x18
ret
push 0x10
lea edx, [esp + 0xc]
push edx
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1002db58
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
xor ecx, esp
call fcn.10149c5e
add esp, 0x18
ret

Function at 0x1002dc60
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 4]
push edx
push 0
lea eax, [esi + 8]
push eax
push 0x10026e30
push 0
push 0
mov byte [esi + 0x18], 0
mov dword [eax], esi
mov dword [esi + 0xc], ecx
call fcn.1014a9cb
add esp, 0x18
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x1002dc9c
mov dword [esi + 4], 0
cmp dword [esi + 4], 0
jne 0x1002dcad
mov byte [esi + 0x18], 1
xor al, al
pop esi
pop ecx
ret 4
mov al, 1
pop esi
pop ecx
ret 4

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

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 0xffffffff
je 0x1002fa5d
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
ret
or eax, 0xffffffff
ret

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

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 0xffffffff
je 0x1002fa8d
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
ret
or eax, 0xffffffff
ret
Function at 0x1002fd70
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 4]
test eax, eax
push edi
mov ebp, ecx
jne 0x1002fd88
xor edi, edi
jmp 0x1002fd8d
mov edi, dword [esi + 8]
sub edi, eax
push 0
lea eax, [edi + 0x578]
push eax
mov ecx, esi
call fcn.1001cf40
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1002fdad
mov eax, dword [esi + 8]
sub eax, ecx
cmp edi, eax
jb 0x1002fdb2
call fcn.10149775
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 0xc]
add eax, edi
cmp ecx, 0xffffffff
je 0x1002fe4c
push 0
push 0x578
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test ebx, ebx
jle 0x1002fe45
cmp ebx, 0x578
je 0x1002fe43
mov eax, dword [esi + 8]
cmp dword [esi + 4], eax
mov dword [esp + 0x20], eax
jbe 0x1002fdf1
call fcn.10149775
mov ebp, dword [esi + 4]
cmp ebp, dword [esi + 8]
jbe 0x1002fdfe
call fcn.10149775
add edi, ebp
cmp edi, dword [esi + 8]
mov dword [esp + 0x14], ebp
ja 0x1002fe0e
cmp edi, dword [esi + 4]
jae 0x1002fe13
call fcn.10149775
mov dword [esp + 0x14], edi
add edi, ebx
cmp edi, dword [esi + 8]
mov ebp, esi
ja 0x1002fe25
cmp edi, dword [esi + 4]
jae 0x1002fe2a
call fcn.10149775
mov ecx, dword [esp + 0x20]
push ecx
push esi
push edi
push ebp
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.1000d860
jmp 0x1002fec4
test ebx, ebx
je 0x1002fea0
cmp ebx, 0xffffffff
jne 0x1002fec4
mov eax, dword [esi + 8]
cmp dword [esi + 4], eax
mov dword [esp + 0x1c], eax
jbe 0x1002fe5d
call fcn.10149775
mov ebx, dword [esi + 4]
cmp ebx, dword [esi + 8]
jbe 0x1002fe6a
call fcn.10149775
add edi, ebx
cmp edi, dword [esi + 8]
mov dword [esp + 0x14], ebx
ja 0x1002fe7a
cmp edi, dword [esi + 4]
jae 0x1002fe7f
call fcn.10149775
mov ecx, dword [esp + 0x1c]
push ecx
push esi
push edi
push esi
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.1000d860
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1002fec4
cmp dword [ebp + 0x10], 2
jne 0x1002feba
xor eax, eax
cmp byte [esp + 0x20], al
push eax
setne al
mov ecx, ebp
push eax
push 2
call fcn.1002fc50
mov edx, dword [ebp]
mov eax, dword [edx + 0xc]
mov ecx, ebp
call eax
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x1002fed7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 8
ret 8
Function at 0x10030180
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x1016b834
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x101b01e4]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x24]
mov dword [esi + 4], eax
xor eax, eax
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x28]
mov dword [esi], 0x1018529c
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], eax
mov byte [esi + 0x14], 0xfe
mov word [esi + 0x15], ax
mov dword [esp + 0x1c], eax
mov dword [esi + 0x590], eax
mov dword [esi + 0x594], eax
mov dword [esi + 0x598], eax
mov dword [esi + 0x5a0], eax
mov dword [esi + 0x5a4], eax
mov dword [esi + 0x5a8], eax
cmp ecx, 0xffffffff
mov eax, 2
mov byte [esp + 0x1c], al
je 0x1003026e
mov edx, dword [esi + 0xc]
lea ecx, [esp + 0x24]
push ecx
push 0x8004667e
push edx
mov dword [esi + 0x10], eax
mov dword [esp + 0x30], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
mov dword [esp + 0x24], 0x10000
je 0x10030261
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [esp + 0x28]
push eax
push 0x1002
push 0xffff
push edi
call ebx
push 4
lea ecx, [esp + 0x28]
push ecx
push 0x1001
push 0xffff
push edi
call ebx
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 4]
push esi
push edx
call fcn.1002f6d0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 8

Function at 0x10030290
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x101b01e4]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
push edi
push 6
push 1
push 2
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 8], 0x10000
je 0x100302ed
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [esp + 0x10]
push eax
push 0x1002
push 0xffff
push edi
call ebp
push 4
lea ecx, [esp + 0x10]
push ecx
push 0x1001
push 0xffff
push edi
call ebp
pop ebp
lea edx, [esp + 8]
push edx
push 0x8004667e
push edi
mov dword [esi + 0xc], edi
mov dword [esp + 0x14], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x1003036f
mov eax, dword [esp + 0x24]
mov cx, word [eax + 4]
mov edx, dword [eax]
push 0x10
lea eax, [esp + 0x10]
mov word [esp + 0x12], cx
mov ecx, dword [esi + 0xc]
push eax
push ecx
mov word [esp + 0x18], 2
mov dword [esp + 0x1c], edx
call dword [sym.imp.WS2_32.dll_connect]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 4]
push esi
push edx
mov dword [esi + 0x10], 1
call fcn.1002f750
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
push esi
push eax
call fcn.1002fb00
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10149c5e
add esp, 0x18
ret 4
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
je 0x1003037e
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x1c]
pop edi
mov dword [esi + 0xc], 0xffffffff
pop esi
xor ecx, esp
xor al, al
call fcn.10149c5e
add esp, 0x18
ret 4
Function at 0x100303a5
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
cmp dword [esi + 0x10], 2
push edi
jne 0x10030436
mov eax, dword [esi + 0x590]
test eax, eax
je 0x100303c7
mov ecx, dword [esi + 0x594]
sub ecx, eax
jne 0x10030436
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
je 0x100303e6
push 0
push ebx
push ebp
push eax
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
jmp 0x100303e9
or edi, 0xffffffff
cmp edi, ebx
je 0x1003042a
jge 0x10030436
cmp edi, 0xffffffff
je 0x10030436
lea edx, [esp + 0x10]
push edx
lea ecx, [esi + 0x58c]
call fcn.1000d830
mov edx, dword [eax + 4]
mov eax, dword [eax]
lea ecx, [ebx + ebp]
push ecx
add edi, ebp
push edi
push edx
push eax
lea ecx, [esi + 0x58c]
call fcn.100251b0
mov ecx, dword [esi + 0xc]
push esi
push ecx
mov ecx, dword [esi + 4]
call fcn.1002f750
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 8
ret 0xc
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret 0xc

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

Disassembly:
sub esp, 0x20
push edi
mov edi, ecx
mov eax, dword [edi + 0x10]
cmp eax, 2
jne 0x1003088f
mov eax, dword [edi + 0x590]
test eax, eax
push esi
lea esi, [edi + 0x58c]
je 0x1003087a
mov ecx, dword [esi + 8]
sub ecx, eax
je 0x1003087a
test eax, eax
push ebx
jne 0x100307bb
xor ebx, ebx
jmp 0x100307c0
mov ebx, dword [esi + 8]
sub ebx, eax
test eax, eax
je 0x100307cb
mov edx, dword [esi + 8]
sub edx, eax
jne 0x100307d0
call fcn.10149775
mov eax, dword [edi + 0xc]
cmp eax, 0xffffffff
mov ecx, dword [esi + 4]
je 0x100307e8
push 0
push ebx
push ecx
push eax
call dword [sym.imp.WS2_32.dll_send]
jmp 0x100307eb
or eax, 0xffffffff
mov edx, dword [esi + 4]
test edx, edx
pop ebx
jne 0x100307f7
xor ecx, ecx
jmp 0x100307fc
mov ecx, dword [esi + 8]
sub ecx, edx
cmp eax, ecx
jne 0x10030820
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 4]
push edi
push eax
call fcn.1002ec90
push 0
push 0
mov ecx, esi
call fcn.1001cf40
pop esi
pop edi
add esp, 0x20
ret 4
test eax, eax
jle 0x10030818
test edx, edx
je 0x10030818
mov ecx, dword [esi + 8]
sub ecx, edx
cmp eax, ecx
jae 0x10030818
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.100d2360
mov ecx, eax
call fcn.10019530
mov edi, eax
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.100d2360
mov ecx, dword [edi + 4]
mov edx, dword [edi]
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.1000d860
pop esi
pop edi
add esp, 0x20
ret 4
mov ecx, dword [edi + 0xc]
push edi
push ecx
mov ecx, dword [edi + 4]
call fcn.1002ec90
pop esi
pop edi
add esp, 0x20
ret 4
cmp eax, 1
jne 0x10030819
mov edx, dword [edi + 0xc]
mov ecx, dword [edi + 4]
push edi
push edx
mov dword [edi + 0x10], 2
call fcn.1002ec90
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 4]
push edi
push eax
call fcn.1002f6d0
push 0
push 1
push 1
mov ecx, edi
call fcn.1002fc50
pop edi
add esp, 0x20
ret 4
Function at 0x10030b10
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0xc
mov eax, 0x55555556
imul dword [esp + 0x14]
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea edx, [ecx*4]
mov eax, 0x6bca1af3
imul edx
push ebx
push ebp
sar edx, 5
push esi
mov ebp, edx
shr ebp, 0x1f
push edi
mov edi, dword [esp + 0x20]
xor ebx, ebx
add ebp, edx
test edi, edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ecx
lea eax, [ebx + 0x13]
je 0x10030ced
mov esi, dword [esp + 0x28]
test esi, esi
je 0x10030ced
cmp dword [esp + 0x2c], ebx
je 0x10030ced
test ebp, ebp
mov dword [esp + 0x20], ebx
jl 0x10030c56
mov edx, dword [esp + 0x30]
and edx, 2
mov dword [esp + 0x14], edx
cmp dword [esp + 0x20], ebp
jne 0x10030ba2
mov edx, ebp
imul edx, edx, 0x4c
lea eax, [ecx*4]
sub eax, edx
cdq
and edx, 3
add eax, edx
sar eax, 2
test eax, eax
jle 0x10030c11
mov edx, eax
movzx ebx, byte [edi + 2]
xor ecx, ecx
mov ch, byte [edi]
add edi, 3
add esi, 4
mov cl, byte [edi - 2]
shl ecx, 8
or ecx, ebx
shl ecx, 8
mov ebx, ecx
shr ebx, 0x1a
movzx ebx, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_http_bind_fail]
mov byte [esi - 4], bl
shl ecx, 6
mov ebx, ecx
shr ebx, 0x1a
movzx ebx, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_http_bind_fail]
shl ecx, 6
mov byte [esi - 3], bl
mov ebx, ecx
shr ebx, 0x1a
movzx ebx, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_http_bind_fail]
shr ecx, 0x14
and ecx, 0x3f
sub edx, 1
mov byte [esi - 2], bl
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_http_bind_fail]
mov byte [esi - 1], cl
jne 0x10030ba8
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x14], 0
lea ebx, [ebx + eax*4]
mov dword [esp + 0x10], ebx
jne 0x10030c32
mov byte [esi], 0xd
add esi, 1
mov byte [esi], 0xa
add esi, 1
add ebx, 2
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x20]
add edx, 1
cmp edx, ebp
mov dword [esp + 0x20], edx
jle 0x10030b85
test ebx, ebx
je 0x10030c56
cmp dword [esp + 0x14], 0
jne 0x10030c56
sub esi, 2
sub ebx, 2
lea edx, [ecx + ecx*2]
mov ecx, dword [esp + 0x24]
sub ecx, edx
je 0x10030cda
lea ebp, [ecx + 1]
test ebp, ebp
je 0x10030cda
xor eax, eax
test ecx, ecx
jle 0x10030c74
movzx eax, byte [edi]
add edi, 1
shl eax, 8
cmp ecx, 1
jle 0x10030c84
movzx edx, byte [edi]
or eax, edx
add edi, 1
shl eax, 8
cmp ecx, 2
jle 0x10030c91
movzx ecx, byte [edi]
or eax, ecx
shl eax, 8
test ebp, ebp
jle 0x10030cb8
mov ecx, ebp
lea ebx, [ebx]
mov edx, eax
shr edx, 0x1a
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_http_bind_fail]
mov byte [esi], dl
add esi, 1
shl eax, 6
sub ecx, 1
jne 0x10030ca0
add ebx, ebp
test byte [esp + 0x30], 1
jne 0x10030cda
mov edi, 4
sub edi, ebp
test edi, edi
jle 0x10030cd8
push edi
push 0x3d
push esi
call fcn.10149460
add esp, 0xc
add ebx, edi
mov eax, dword [esp + 0x2c]
pop edi
pop esi
mov dword [eax], ebx
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x10031960
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x3c4]
mov edx, dword [eax + 0x3c0]
mov ebx, dword [edx + ecx*4]
add eax, 0x3b4
mov dword [esp + 0x10], edi
lea ebp, [edi + 0x608]
lea ebx, [ebx]
mov eax, dword [edi + 0x5ac]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [edi + 0x5c0]
push ecx
push 0
push 0x583
push ebp
push eax
mov dword [esp + 0x2c], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xa
mov dword [esp + 0x14], eax
jbe 0x10031a3d
cmp byte [ebp], 0
jne 0x10031a3d
cmp byte [ebp + 1], 0
jne 0x10031a3d
cmp byte [ebp + 2], 0
jne 0x10031a3d
cmp byte [ebp + 3], 1
jne 0x10031a3d
lea ecx, [eax - 0xa]
cmp ecx, 3
lea esi, [ebp + 0xa]
jbe 0x10031a3d
mov dx, word [esi + 1]
add dx, 3
movzx edx, dx
cmp dx, 3
jbe 0x10031a3d
movzx edi, dx
cmp edi, ecx
ja 0x10031a39
cmp dx, 0x578
ja 0x10031a39
cmp byte [esi], 0xfe
jne 0x10031a39
mov eax, dword [ebp + 4]
mov dword [ebx + 9], eax
mov cx, word [ebp + 8]
mov word [ebx + 0xd], cx
mov dword [ebx], 3
mov byte [ebx + 8], 0
lea edi, [ebx + 0xf]
mov ecx, 0x15e
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x10]
push ebx
call fcn.1002fcd0
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
cmp eax, 0x583
je 0x10031990
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x10033430
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x1016bb8f
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x101b01e4]
xor eax, esp
mov dword [esp + 0x194], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101b01e4]
xor eax, esp
push eax
lea eax, [esp + 0x1ac]
mov dword fs:[0], eax
mov ebp, dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov esi, ecx
lea eax, [esi + 8]
mov dword [esi], 0x101853cc
push eax
mov dword [esp + 0x18], esi
mov dword [esi + 4], 0x1018458c
call ebp
lea edi, [esi + 0x20]
xor ebx, ebx
mov ecx, edi
mov dword [esp + 0x1b4], ebx
call fcn.10019690
mov dword [edi + 4], eax
mov byte [eax + 0x15], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
lea edi, [esi + 0x2c]
mov ecx, edi
mov byte [esp + 0x1b4], 1
call fcn.10019690
mov dword [edi + 4], eax
mov byte [eax + 0x15], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
lea edi, [esi + 0x38]
mov ecx, edi
mov byte [esp + 0x1b4], 2
call fcn.10019690
mov dword [edi + 4], eax
mov byte [eax + 0x15], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
mov dword [esi + 0x350], ebx
mov byte [esi + 0x354], bl
mov dword [esi + 0x35c], ebx
mov dword [esi + 0x360], ebx
mov dword [esi + 0x364], ebx
mov dword [esi + 0x36c], ebx
mov dword [esi + 0x370], ebx
mov dword [esi + 0x374], ebx
mov dword [esi + 0x37c], ebx
mov dword [esi + 0x380], ebx
mov dword [esi + 0x384], ebx
lea ecx, [esi + 0x38c]
push ecx
mov dword [esi + 0x388], 0x1018458c
call ebp
lea edi, [esi + 0x3a4]
mov ecx, edi
mov byte [esp + 0x1b4], 7
call fcn.1002dcc0
mov dword [edi + 4], eax
mov byte [eax + 0x21], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
mov eax, dword [esp + 0x1bc]
mov dword [esi + 0x3b0], eax
mov eax, dword [eax + 0x10]
add eax, 2
push eax
lea ecx, [esi + 0x3b4]
mov byte [esp + 0x1b8], 8
call fcn.1002d860
lea edi, [esi + 0x3cc]
mov byte [esi + 0x3c8], bl
mov eax, 0x100332f0
mov dword [edi], 0x10184fa4
mov dword [edi + 4], ebx
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], eax
mov byte [edi + 0x18], 1
mov dword [esi + 0x3e8], ebx
lea edx, [esi + 0x400]
mov dword [esi + 0x3f0], ebx
mov dword [esi + 0x3f4], ebx
mov dword [esi + 0x3f8], ebx
push edx
mov dword [esi + 0x3fc], 0x1018458c
call ebp
lea eax, [esp + 0x18]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push ebx
mov ecx, edi
mov dword [esi + 0x44], ebx
mov dword [esi + 0x148], ebx
mov dword [esi + 0x24c], ebx
call fcn.1002dc60
mov eax, esi
mov ecx, dword [esp + 0x1ac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.10149c5e
add esp, 0x1a4
ret 4
Function at 0x100338f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1016bc96
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x101b01e4]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edi, dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
lea edx, [esi + 0x14]
xor ebx, ebx
mov dword [esi], 0x10185298
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
push edx
mov dword [esi + 0x10], 0x1018458c
call edi
lea eax, [esi + 0x34]
mov word [esi + 0x2c], bx
push eax
mov dword [esp + 0x28], ebx
mov dword [esi + 0x30], 0x1018458c
call edi
lea ecx, [esi + 0x54]
mov word [esi + 0x4c], bx
push ecx
mov dword [esi + 0x50], 0x1018458c
call edi
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
push ecx
lea ecx, [esi + 0x78]
mov byte [esp + 0x2c], 2
mov dword [esi + 0x6c], 0x3e8
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], edx
call fcn.10007390
mov edx, dword [esp + 0x40]
push 0xffffffffffffffff
lea ecx, [esi + 0x80]
push ebx
mov edi, 0xf
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.10001ec0
mov eax, dword [esp + 0x44]
push 0xffffffffffffffff
lea ecx, [esi + 0x9c]
push ebx
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push eax
mov byte [esp + 0x30], 3
mov byte [ecx + 4], bl
call fcn.10001ec0
lea ecx, [esp + 0x14]
push ecx
lea edi, [esi + 0xbc]
push 0x109
mov ecx, edi
mov byte [esp + 0x2c], 4
mov byte [esp + 0x1c], 1
call fcn.1002ea60
mov dword [edi + 0x10], 0x109
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
push 0x418
mov byte [esp + 0x28], 5
call fcn.1014979e
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, ebx
mov byte [esp + 0x24], 6
je 0x10033a38
push edi
mov ecx, eax
call fcn.10033430
mov dword [esi + 0xb8], eax
jmp 0x10033a3e
mov dword [esi + 0xb8], ebx
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret 0x1c