joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004990
Capabilities:
Connect socket
Get socket status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ws2_32.dll_connect
mov dword [ebp - 0x214], eax
call sub.ws2_32.dll_WSAGetLastError
cmp dword [ebp - 0x214], 0xffffffff
jne 0x10004a7b
cmp eax, 0x2733
jne 0x10004a7b
mov dword [ebp - 0x104], 0
mov dword [ebp - 0x208], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x104]
shl ecx, 2
mov dword ss:[ecx + ebp - 0x100], eax
inc dword [ebp - 0x104]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x208]
shl ecx, 2
mov dword ss:[ecx + ebp - 0x204], eax
inc dword [ebp - 0x208]
push dword [ebp + 0x14]
pop dword [ebp - 0x210]
push 0
pop dword [ebp - 0x20c]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
call sub.ws2_32.dll_select
or eax, eax
je 0x10004a7b
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call sub.ws2_32.dll___WSAFDIsSet
or eax, eax
je 0x10004a60
push 0
pop dword [ebp - 0x214]
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call sub.ws2_32.dll___WSAFDIsSet
or eax, eax
je 0x10004a7b
push 0xffffffffffffffff
pop dword [ebp - 0x214]
mov eax, dword [ebp - 0x214]
leave
ret 0x10

Function at 0x10004a85
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
push 0xffffffffffffffff
pop dword [ebp - 4]
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x20c], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x108]
shl ecx, 2
mov dword ss:[ecx + ebp - 0x104], eax
inc dword [ebp - 0x108]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20c]
shl ecx, 2
mov dword ss:[ecx + ebp - 0x208], eax
inc dword [ebp - 0x20c]
push dword [ebp + 0x18]
pop dword [ebp - 0x214]
push 0
pop dword [ebp - 0x210]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
lea eax, [ebp - 0x108]
push eax
push 0
call sub.ws2_32.dll_select
or eax, eax
je 0x10004b4d
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call sub.ws2_32.dll___WSAFDIsSet
or eax, eax
je 0x10004b35
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ws2_32.dll_recv
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call sub.ws2_32.dll___WSAFDIsSet
or eax, eax
je 0x10004b4d
push 0xffffffffffffffff
pop dword [ebp - 4]
mov eax, dword [ebp - 4]
leave
ret 0x14
Function at 0x10004b54
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
push 0xffffffffffffffff
pop dword [ebp - 4]
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x20c], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x108]
shl ecx, 2
mov dword ss:[ecx + ebp - 0x104], eax
inc dword [ebp - 0x108]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20c]
shl ecx, 2
mov dword ss:[ecx + ebp - 0x208], eax
inc dword [ebp - 0x20c]
push dword [ebp + 0x18]
pop dword [ebp - 0x214]
push 0
pop dword [ebp - 0x210]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push 0
call sub.ws2_32.dll_select
or eax, eax
je 0x10004c1c
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call sub.ws2_32.dll___WSAFDIsSet
or eax, eax
je 0x10004c04
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ws2_32.dll_send
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call sub.ws2_32.dll___WSAFDIsSet
or eax, eax
je 0x10004c1c
push 0xffffffffffffffff
pop dword [ebp - 4]
mov eax, dword [ebp - 4]
leave
ret 0x14

Function at 0x10004c23
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
push 0xffffffffffffffff
pop dword [ebp - 4]
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x20c], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x108]
shl ecx, 2
mov dword ss:[ecx + ebp - 0x104], eax
inc dword [ebp - 0x108]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20c]
shl ecx, 2
mov dword ss:[ecx + ebp - 0x208], eax
inc dword [ebp - 0x20c]
cmp dword [ebp + 0xc], 0
jne 0x10004c9a
push 0
lea eax, [ebp - 0x20c]
push eax
push 0
lea eax, [ebp - 0x108]
push eax
push 0
call sub.ws2_32.dll_select
jmp 0x10004cc9
push dword [ebp + 0xc]
pop dword [ebp - 0x214]
push 0
pop dword [ebp - 0x210]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
lea eax, [ebp - 0x108]
push eax
push 0
call sub.ws2_32.dll_select
or eax, eax
je 0x10004cff
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call sub.ws2_32.dll___WSAFDIsSet
or eax, eax
je 0x10004ce5
push 1
pop dword [ebp - 4]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call sub.ws2_32.dll___WSAFDIsSet
or eax, eax
je 0x10004d04
push 0xffffffffffffffff
pop dword [ebp - 4]
jmp 0x10004d04
push 2
pop dword [ebp - 4]
mov eax, dword [ebp - 4]
leave
ret 8
Function at 0x10004e24
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd0
push ebx
push edx
push ecx
push edi
push esi
mov al, 0
mov byte [ebp - 0x21], al
push 0
pop dword [ebp - 0x42c]
push 0
pop dword [ebp - 0x428]
push 0
pop dword [ebp - 0x430]
cmp dword [ebp + 8], 0
je 0x10004fb2
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
call fcn.10004d0b
or eax, eax
je 0x10004fb2
mov dword [ebp - 4], eax
lea eax, [ebp - 0x21]
cmp dword [ebp - 8], 0
jne 0x10004e86
mov dword [ebp - 8], eax
cmp dword [ebp - 0xc], 0
jne 0x10004e8f
mov dword [ebp - 0xc], eax
push dword [ebp - 8]
call sub.kernel32.dll_lstrlenA
add eax, 0x148
mov dword [ebp - 0x20], eax
push dword [ebp - 0xc]
call sub.kernel32.dll_lstrlenA
add eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push 0x40
call sub.kernel32.dll_GlobalAlloc
or eax, eax
je 0x10004faa
mov dword [ebp - 0x1c], eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0x1000e56c
push dword [ebp - 0x1c]
call sub.user32.dll_wsprintfA
add esp, 0x10
push dword [ebp - 0x1c]
call fcn.100021a0
mov dword [ebp - 0x20], eax
push dword [ebp - 0x10]
push dword [ebp - 8]
call fcn.100047c3
cmp eax, 0xffffffff
je 0x10004fa2
mov dword [ebp - 0x14], eax
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call fcn.10004858
cmp eax, dword [ebp - 0x20]
jne 0x10004f99
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x18], eax
push dword [ebp + 0xc]
push 0
push 0x400
lea eax, [ebp - 0x421]
push eax
push dword [ebp - 0x14]
call fcn.10004a85
or eax, eax
je 0x10004f3c
cmp eax, 0xffffffff
jne 0x10004f3e
jmp 0x10004f53
add dword [ebp - 0x42c], eax
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 0xc]
jae 0x10004f53
jmp 0x10004f1a
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x428], 0
je 0x10004f99
mov eax, dword [ebp - 0x42c]
shr eax, 0xa
mov edx, 0x3e8
mul edx
xor edx, edx
div dword [ebp - 0x428]
mov dword [ebp - 0x430], eax
mov eax, edx
mov edx, 0x64
mul edx
xor edx, edx
div dword [ebp - 0x428]
lea eax, [ebp - 0x14]
push eax
call fcn.100048f6
push dword [ebp - 0x1c]
call sub.kernel32.dll_GlobalFree
push dword [ebp - 4]
call sub.kernel32.dll_GlobalFree
mov eax, dword [ebp - 0x430]
pop esi
pop edi
pop ecx
pop edx
pop ebx
leave
ret 8
Function at 0x1000517c
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
push edx
push ecx
mov edi, dword [ebp + 8]
cmp byte [edi + 0x102], 0xff
jne 0x1000520b
cmp dword [ebp + 0xc], 0
je 0x1000520b
cmp dword [ebp + 0x10], 0
je 0x1000520b
mov ebx, dword [ebp + 8]
mov al, byte [ebx]
mov byte [ebp - 3], al
mov al, byte [ebx + 1]
mov byte [ebp - 4], al
mov edi, ebx
inc edi
inc edi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 0x10]
jecxz 0x10005200
inc byte [ebp - 3]
movzx eax, byte [ebp - 3]
movzx edx, byte [eax + edi]
mov byte [ebp - 1], dl
add byte [ebp - 4], dl
movzx eax, byte [ebp - 4]
mov dl, byte [eax + edi]
mov byte [ebp - 2], dl
movzx eax, byte [ebp - 3]
mov byte [eax + edi], dl
movzx eax, byte [ebp - 4]
mov dl, byte [ebp - 1]
mov byte [eax + edi], dl
mov dl, byte [ebp - 1]
add dl, byte [ebp - 2]
mov dl, byte [edx + edi]
mov eax, dword [ebp - 8]
xor byte [eax + esi], dl
inc dword [ebp - 8]
loop 0x100051c0
mov al, byte [ebp - 3]
mov byte [ebx], al
mov al, byte [ebp - 4]
mov byte [ebx + 1], al
pop ecx
pop edx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1000640f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push 0
push dword [ebp + 8]
call fcn.10004c23
cmp eax, 2
je 0x10006415
push 0
pop dword [ebp - 4]
push 0
pop dword [ebp - 8]
cmp eax, 1
jne 0x100064f7
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.10005b34
or eax, eax
je 0x100064f7
push 0
pop dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
call fcn.100059ca
cmp al, byte [0x1000e8d2]
jne 0x10006493
mov al, byte [0x1000e8d3]
push eax
lea eax, [ebp - 8]
push eax
call fcn.100058dc
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.10005adb
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
call fcn.10005acc
lea eax, [ebp - 4]
push eax
call fcn.100040c5
jmp 0x100064eb
cmp al, byte [0x1000e8d6]
jne 0x100064e2
mov al, byte [0x1000e8d1]
push eax
lea eax, [ebp - 8]
push eax
call fcn.100058dc
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.10005adb
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
call fcn.10005acc
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp - 4]
push 0x10007b19
push 0
push 0
call sub.kernel32.dll_CreateThread
jmp 0x100064eb
lea eax, [ebp - 4]
push eax
call fcn.100040c5
mov eax, dword [ebp - 0xc]
cmp eax, 0
jne 0x10006415
leave
ret 4
Function at 0x10007019
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffeecc
push 0
pop dword [ebp - 0x1c]
push 0
pop dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.10006f63
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], edx
cmp dword [ebp - 4], 0
je 0x10007049
cmp dword [ebp - 8], 0
jne 0x1000704e
jmp 0x10007230
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10006ed0
or eax, eax
je 0x10007071
push 0
push 0
push 0x5d
push dword [ebp + 8]
call fcn.10006fd7
jne 0x10007242
cmp dword [ebp - 0xc], 1
jne 0x100070a4
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.100072b0
cmp eax, 0xffffffff
je 0x10007230
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
call fcn.10004940
push ebx
push eax
push 0x5a
push dword [ebp + 8]
call fcn.10006fd7
jmp 0x1000711b
cmp dword [ebp - 0xc], 2
jne 0x10007116
push 0
call fcn.10007246
cmp eax, 0xffffffff
je 0x10007230
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
call fcn.10004968
push ebx
push dword [ebp + 8]
call fcn.10004968
pop ebx
push ebx
push eax
push 0x5a
push dword [ebp + 8]
call fcn.10006fd7
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x1c]
call sub.ws2_32.dll_accept
cmp eax, 0xffffffff
jne 0x100070fe
lea eax, [ebp - 0x1c]
push eax
call fcn.100048f6
jmp 0x10007230
mov dword [ebp - 0x18], eax
push 0
push word [ebp - 0x2a]
push dword [ebp - 0x28]
push 0x5a
push dword [ebp + 8]
call fcn.10006fd7
jmp 0x1000711b
jmp 0x10007230
mov dword [ebp - 0x134], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x134]
shl ecx, 2
mov dword ss:[ecx + ebp - 0x130], eax
inc dword [ebp - 0x134]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x134]
shl ecx, 2
mov dword ss:[ecx + ebp - 0x130], eax
inc dword [ebp - 0x134]
push 0
push 0
push 0
lea eax, [ebp - 0x134]
push eax
push 0
call sub.ws2_32.dll_select
cmp eax, 0
ja 0x10007177
jmp 0x10007214
lea eax, [ebp - 0x134]
push eax
push dword [ebp + 8]
call sub.ws2_32.dll___WSAFDIsSet
or eax, eax
je 0x100071c3
push dword [0x1000e52f]
push 0
push 0x1000
lea eax, [ebp - 0x1134]
push eax
push dword [ebp + 8]
call fcn.10004a85
or eax, eax
je 0x100071c1
cmp eax, 0xffffffff
je 0x100071c1
push eax
lea eax, [ebp - 0x1134]
push eax
push dword [ebp - 0x18]
call fcn.10004858
jmp 0x100071c3
jmp 0x10007214
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 0x18]
call sub.ws2_32.dll___WSAFDIsSet
or eax, eax
je 0x1000720f
push dword [0x1000e52f]
push 0
push 0x1000
lea eax, [ebp - 0x1134]
push eax
push dword [ebp - 0x18]
call fcn.10004a85
or eax, eax
je 0x1000720d
cmp eax, 0xffffffff
je 0x1000720d
push eax
lea eax, [ebp - 0x1134]
push eax
push dword [ebp + 8]
call fcn.10004858
jmp 0x1000720f
jmp 0x10007214
jmp 0x1000711b
lea eax, [ebp - 0x18]
push eax
call fcn.100048f6
cmp dword [ebp - 0x1c], 0
je 0x1000722c
lea eax, [ebp - 0x1c]
push eax
call fcn.100048f6
leave
ret 8
push 0
push 0
push 0x5b
push dword [ebp + 8]
call fcn.10006fd7
leave
ret 8
leave
ret 8
Function at 0x10007246
Capabilities:
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push 6
push 1
push 2
call sub.ws2_32.dll_socket
cmp eax, 0xffffffff
je 0x10007294
mov dword [ebp - 4], eax
mov word [ebp - 0x14], 2
push dword [ebp + 8]
call sub.ws2_32.dll_htons
mov word [ebp - 0x12], ax
mov dword [ebp - 0x10], 0
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call sub.ws2_32.dll_bind
test eax, eax
jne 0x1000729b
push 5
push dword [ebp - 4]
call sub.ws2_32.dll_listen
mov eax, dword [ebp - 4]
leave
ret 4
push dword [ebp - 4]
call sub.ws2_32.dll_closesocket
mov eax, 0xffffffff
leave
ret 4

Function at 0x100072b0
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push 0xffffffffffffffff
pop dword [ebp - 0x14]
push 6
push 1
push 2
call sub.ws2_32.dll_socket
cmp eax, 0xffffffff
je 0x1000732c
mov dword [ebp - 0x14], eax
push 1
pop dword [ebp - 0x18]
lea eax, [ebp - 0x18]
push eax
push 0x8004667e
push dword [ebp - 0x14]
call sub.ws2_32.dll_ioctlsocket
push 0x10
lea eax, [ebp - 0x10]
push eax
call fcn.10001a2c
mov word [ebp - 0x10], 2
mov eax, dword [ebp + 0xc]
mov word [ebp - 0xe], ax
push dword [ebp + 8]
pop dword [ebp - 0xc]
push dword [0x1000e52b]
push 0x10
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
call fcn.10004990
cmp eax, 0xffffffff
jne 0x1000732c
push dword [ebp - 0x14]
call sub.ws2_32.dll_closesocket
mov eax, 0xffffffff
leave
ret 8
mov eax, dword [ebp - 0x14]
leave
ret 8
Function at 0x1000754e
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push 0
pop dword [ebp - 4]
push 0
pop dword [ebp - 8]
push 0
pop dword [ebp - 0xc]
push 5
pop dword [ebp - 0x10]
push 4
lea eax, [ebp - 0x144]
push eax
push dword [ebp + 8]
call fcn.100048a6
cmp eax, 4
jne 0x100076a2
cmp byte [ebp - 0x144], 5
jne 0x100076a2
movzx eax, byte [ebp - 0x143]
mov dword [ebp - 4], eax
movzx eax, byte [ebp - 0x141]
cmp eax, 1
jne 0x100075d0
push 4
lea eax, [ebp - 0x144]
push eax
push dword [ebp + 8]
call fcn.100048a6
cmp eax, 4
jne 0x100076a2
mov eax, dword [ebp - 0x144]
mov dword [ebp - 8], eax
jmp 0x1000766b
cmp eax, 3
jne 0x10007660
push 1
lea eax, [ebp - 0x144]
push eax
push dword [ebp + 8]
call fcn.100048a6
cmp eax, 1
jne 0x100076a2
movzx eax, byte [ebp - 0x144]
cmp eax, 0
je 0x100076a2
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x144]
push eax
push dword [ebp + 8]
call fcn.100048a6
cmp eax, dword [ebp - 0x18]
jne 0x100076a2
push dword [ebp - 0x18]
lea eax, [ebp - 0x144]
push eax
call fcn.10001a82
cmp eax, 0
je 0x100076a2
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
call sub.ws2_32.dll_gethostbyname
push eax
push dword [ebp - 0x14]
call sub.kernel32.dll_GlobalFree
pop eax
cmp eax, 0
je 0x1000769d
mov eax, dword [eax + 0xc]
cmp eax, 0
je 0x100076a2
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x1000766b
cmp eax, 4
jne 0x10007669
jmp 0x100076a2
jmp 0x100076a2
push 2
lea eax, [ebp - 0x144]
push eax
push dword [ebp + 8]
call fcn.100048a6
cmp eax, 2
jne 0x100076a2
movzx eax, word [ebp - 0x144]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov ecx, 0
leave
ret 4
push 4
pop dword [ebp - 0x10]
mov eax, 0
mov ebx, 0
mov edx, 0
mov ecx, dword [ebp - 0x10]
leave
ret 4
Function at 0x10007702
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffeec8
push 0
pop dword [ebp - 0x20]
push 0
pop dword [ebp - 0x1c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000746b
cmp eax, 0
jne 0x1000795a
push dword [ebp + 8]
call fcn.1000754e
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 4], 0
je 0x10007752
cmp dword [ebp - 8], 0
je 0x10007752
cmp dword [ebp - 0xc], 0
jne 0x10007766
push 0
push 0
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.100076b8
jmp 0x1000795a
cmp dword [ebp - 0xc], 1
jne 0x1000779c
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.100079c8
cmp eax, 0xffffffff
je 0x10007936
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
call fcn.10004940
push ebx
push eax
push 0
push dword [ebp + 8]
call fcn.100076b8
jmp 0x10007821
cmp dword [ebp - 0xc], 2
jne 0x1000780e
push 0
call fcn.1000795e
cmp eax, 0xffffffff
je 0x10007948
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
call fcn.10004968
push ebx
push dword [ebp + 8]
call fcn.10004968
pop ebx
push ebx
push eax
push 0
push dword [ebp + 8]
call fcn.100076b8
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x20]
call sub.ws2_32.dll_accept
cmp eax, 0xffffffff
jne 0x100077f6
lea eax, [ebp - 0x20]
push eax
call fcn.100048f6
jmp 0x10007948
mov dword [ebp - 0x1c], eax
push 0
push word [ebp - 0x2e]
push dword [ebp - 0x2c]
push 0
push dword [ebp + 8]
call fcn.100076b8
jmp 0x10007821
push 0
push 0
push 7
push dword [ebp + 8]
call fcn.100076b8
jmp 0x1000795a
mov dword [ebp - 0x138], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x138]
shl ecx, 2
mov dword ss:[ecx + ebp - 0x134], eax
inc dword [ebp - 0x138]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x138]
shl ecx, 2
mov dword ss:[ecx + ebp - 0x134], eax
inc dword [ebp - 0x138]
push 0
push 0
push 0
lea eax, [ebp - 0x138]
push eax
push 0
call sub.ws2_32.dll_select
cmp eax, 0
ja 0x1000787d
jmp 0x1000791a
lea eax, [ebp - 0x138]
push eax
push dword [ebp + 8]
call sub.ws2_32.dll___WSAFDIsSet
or eax, eax
je 0x100078c9
push dword [0x1000e52f]
push 0
push 0x1000
lea eax, [ebp - 0x1138]
push eax
push dword [ebp + 8]
call fcn.10004a85
or eax, eax
je 0x100078c7
cmp eax, 0xffffffff
je 0x100078c7
push eax
lea eax, [ebp - 0x1138]
push eax
push dword [ebp - 0x1c]
call fcn.10004858
jmp 0x100078c9
jmp 0x1000791a
lea eax, [ebp - 0x138]
push eax
push dword [ebp - 0x1c]
call sub.ws2_32.dll___WSAFDIsSet
or eax, eax
je 0x10007915
push dword [0x1000e52f]
push 0
push 0x1000
lea eax, [ebp - 0x1138]
push eax
push dword [ebp - 0x1c]
call fcn.10004a85
or eax, eax
je 0x10007913
cmp eax, 0xffffffff
je 0x10007913
push eax
lea eax, [ebp - 0x1138]
push eax
push dword [ebp + 8]
call fcn.10004858
jmp 0x10007915
jmp 0x1000791a
jmp 0x10007821
lea eax, [ebp - 0x1c]
push eax
call fcn.100048f6
cmp dword [ebp - 0x20], 0
je 0x10007932
lea eax, [ebp - 0x20]
push eax
call fcn.100048f6
leave
ret 0xc
push 0
push 0
push 4
push dword [ebp + 8]
call fcn.100076b8
leave
ret 0xc
push 0
push 0
push 4
push dword [ebp + 8]
call fcn.100076b8
leave
ret 0xc
leave
ret 0xc
Function at 0x1000795e
Capabilities:
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push 6
push 1
push 2
call sub.ws2_32.dll_socket
cmp eax, 0xffffffff
je 0x100079ac
mov dword [ebp - 4], eax
mov word [ebp - 0x14], 2
push dword [ebp + 8]
call sub.ws2_32.dll_htons
mov word [ebp - 0x12], ax
mov dword [ebp - 0x10], 0
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call sub.ws2_32.dll_bind
test eax, eax
jne 0x100079b3
push 5
push dword [ebp - 4]
call sub.ws2_32.dll_listen
mov eax, dword [ebp - 4]
leave
ret 4
push dword [ebp - 4]
call sub.ws2_32.dll_closesocket
mov eax, 0xffffffff
leave
ret 4

Function at 0x100079c8
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push 0xffffffffffffffff
pop dword [ebp - 0x14]
push 6
push 1
push 2
call sub.ws2_32.dll_socket
cmp eax, 0xffffffff
je 0x10007a44
mov dword [ebp - 0x14], eax
push 1
pop dword [ebp - 0x18]
lea eax, [ebp - 0x18]
push eax
push 0x8004667e
push dword [ebp - 0x14]
call sub.ws2_32.dll_ioctlsocket
push 0x10
lea eax, [ebp - 0x10]
push eax
call fcn.10001a2c
mov word [ebp - 0x10], 2
mov eax, dword [ebp + 0xc]
mov word [ebp - 0xe], ax
push dword [ebp + 8]
pop dword [ebp - 0xc]
push dword [0x1000e52b]
push 0x10
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
call fcn.10004990
cmp eax, 0xffffffff
jne 0x10007a44
push dword [ebp - 0x14]
call sub.ws2_32.dll_closesocket
mov eax, 0xffffffff
leave
ret 8
mov eax, dword [ebp - 0x14]
leave
ret 8

Function at 0x1000823f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
mov edi, dword [ebp + 8]
push 0x40
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10007d55
cmp eax, 1
jne 0x100082ab
cmp word [edi], 0x5a4d
jne 0x100082ab
add edi, dword [edi + 0x3c]
push 0xf8
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10007d55
cmp eax, 1
jne 0x100082ab
cmp dword [edi], 0x4550
jne 0x100082ab
cmp word [edi + 4], 0x14c
jne 0x100082ab
cmp word [edi + 0x18], 0x10b
jne 0x100082ab
cmp dword [edi + 0xe8], 0
jne 0x100082ab
cmp dword [edi + 0x98], 0
jne 0x100082ab
mov eax, 1
jmp 0x100082b0
mov eax, 0
pop ebx
pop edi
leave
ret 8

Function at 0x10008712
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe4
push esi
push 0
pop dword [ebp - 4]
push dword [ebp + 8]
lea eax, [ebp - 0x404]
push eax
call sub.kernel32.dll_lstrcpyA
lea eax, [ebp - 0x404]
push eax
call fcn.100086e9
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x404]
push eax
call sub.kernel32.dll_GetDiskFreeSpaceExA
or eax, eax
je 0x1000877e
mov edx, dword [ebp - 0x418]
mov eax, dword [ebp - 0x41c]
or edx, edx
jne 0x10008779
cmp eax, dword [0x100102a9]
jb 0x1000877e
push 1
pop dword [ebp - 4]
mov eax, dword [ebp - 4]
pop esi
leave
ret 4