joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100044e6
Capabilities:
Create directory
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf8
push ebx
push edx
push esi
push edi
push ecx
push 0
pop dword [ebp - 0x408]
push 0
pop dword [ebp - 0x404]
cmp dword [ebp - 0x404], 7
je 0x10004694
mov eax, 0
cmp dword [ebp - 0x404], 0
jne 0x1000453b
push 0x2fc
lea eax, [ebp - 0x400]
push eax
push str._ProgramFiles_
call sub.kernel32.dll_ExpandEnvironmentStringsA
dec eax
jmp 0x100045f6
cmp dword [ebp - 0x404], 1
jne 0x10004560
push 0x2fc
lea eax, [ebp - 0x400]
push eax
push str._CommonProgramFiles_
call sub.kernel32.dll_ExpandEnvironmentStringsA
dec eax
jmp 0x100045f6
cmp dword [ebp - 0x404], 2
jne 0x10004582
push 0x2fc
lea eax, [ebp - 0x400]
push eax
push str._HOMEDRIVE__HOMEPATH_
call sub.kernel32.dll_ExpandEnvironmentStringsA
dec eax
jmp 0x100045f6
cmp dword [ebp - 0x404], 3
jne 0x100045a4
push 0x2fc
lea eax, [ebp - 0x400]
push eax
push str._APPDATA_
call sub.kernel32.dll_ExpandEnvironmentStringsA
dec eax
jmp 0x100045f6
cmp dword [ebp - 0x404], 4
jne 0x100045c0
push 0x2fc
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
jmp 0x100045f6
cmp dword [ebp - 0x404], 5
jne 0x100045dc
push 0x2fc
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
jmp 0x100045f6
cmp dword [ebp - 0x404], 6
jne 0x100045f6
lea eax, [ebp - 0x400]
push eax
push 0x2fc
call sub.kernel32.dll_GetTempPathA
push eax
lea eax, [ebp - 0x400]
push eax
call fcn.100044ba
cmp dword [ebp + 8], 0
je 0x10004618
push dword [ebp + 8]
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcatA
push 0
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_CreateDirectoryA
lea eax, [ebp - 0x400]
push eax
call fcn.100042c5
or eax, eax
jne 0x10004682
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrlenA
add eax, 2
push eax
push 0x40
call sub.kernel32.dll_GlobalAlloc
or eax, eax
je 0x10004680
mov dword [ebp - 0x408], eax
lea eax, [ebp - 0x400]
push eax
push dword [ebp - 0x408]
call sub.kernel32.dll_lstrcpyA
push dword [ebp - 0x408]
call sub.kernel32.dll_lstrlenA
push eax
push dword [ebp - 0x408]
call fcn.100044ba
jmp 0x10004694
mov eax, dword [ebp - 0x404]
inc eax
mov dword [ebp - 0x404], eax
jmp 0x10004504
mov eax, dword [ebp - 0x408]
pop ecx
pop edi
pop esi
pop edx
pop ebx
leave
ret 4
Function at 0x10004826
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push ebx
push edx
push esi
push edi
push ecx
cmp dword [ebp + 8], 0
je 0x100048c8
mov eax, dword [ebp + 0xc]
inc eax
push eax
push 0x40
call sub.kernel32.dll_GlobalAlloc
or eax, eax
je 0x100048c8
mov dword [ebp - 4], eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.10001a44
push 2
push 0x1000f616
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.1000255f
or eax, eax
je 0x100048c0
inc eax
mov edi, eax
mov esi, dword [ebp - 4]
mov edx, edi
sub edx, esi
cmp edx, 0
je 0x100048c0
push 2
push 0x1000f616
push edx
push esi
call fcn.10002504
cmp eax, 0
je 0x100048c0
mov esi, eax
mov bl, byte [esi]
mov byte [esi], 0
pushal
push dword [ebp - 4]
call fcn.100021b2
or eax, eax
je 0x100048ba
push 0
push dword [ebp - 4]
call sub.kernel32.dll_CreateDirectoryA
popal
mov byte [esi], bl
inc esi
jmp 0x1000487d
push dword [ebp - 4]
call sub.kernel32.dll_GlobalFree
pop ecx
pop edi
pop esi
pop edx
pop ebx
leave
ret 8

Function at 0x100048d1
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe70
lea eax, [ebp - 0x18e]
push eax
push 0x101
call sub.ws2_32.dll_WSAStartup
leave
ret

Function at 0x100048f3
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
cmp dword [ebp + 8], 0
je 0x1000492a
push dword [ebp + 8]
call sub.ws2_32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x1000492f
push dword [ebp + 8]
call sub.ws2_32.dll_gethostbyname
cmp eax, 0
je 0x1000492a
mov eax, dword [eax + 0xc]
cmp eax, 0
je 0x1000492a
mov eax, dword [eax]
cmp eax, 0
je 0x1000492a
mov eax, dword [eax]
jmp 0x1000492f
mov eax, 0xffffffff
pop ebx
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push 0xffffffffffffffff
pop dword [ebp - 0x14]
push 6
push 1
push 2
call sub.ws2_32.dll_socket
cmp eax, 0xffffffff
je 0x100049c1
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
push dword [ebp + 0xc]
call sub.ws2_32.dll_htons
mov word [ebp - 0xe], ax
push dword [ebp + 8]
call fcn.100048f3
cmp eax, 0xffffffff
je 0x100049af
mov dword [ebp - 0xc], eax
push dword [0x1000f618]
push 0x10
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
call fcn.10004b01
cmp eax, 0xffffffff
jne 0x100049c1
push dword [ebp - 0x14]
call sub.ws2_32.dll_closesocket
mov eax, 0xffffffff
pop ebx
leave
ret 8
mov eax, dword [ebp - 0x14]
pop ebx
leave
ret 8

Function at 0x10004ad9
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call sub.ws2_32.dll_getsockname
mov eax, dword [ebp - 0xc]
movzx ebx, word [ebp - 0xe]
leave
ret 4
Function at 0x10004b01
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 0x10004bec
cmp eax, 0x2733
jne 0x10004bec
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 0x10004bec
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call sub.ws2_32.dll___WSAFDIsSet
or eax, eax
je 0x10004bd1
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 0x10004bec
push 0xffffffffffffffff
pop dword [ebp - 0x214]
mov eax, dword [ebp - 0x214]
leave
ret 0x10

Function at 0x10004bf6
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 0x10004cbe
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call sub.ws2_32.dll___WSAFDIsSet
or eax, eax
je 0x10004ca6
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 0x10004cbe
push 0xffffffffffffffff
pop dword [ebp - 4]
mov eax, dword [ebp - 4]
leave
ret 0x14
Function at 0x10004cc5
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 0x10004d8d
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call sub.ws2_32.dll___WSAFDIsSet
or eax, eax
je 0x10004d75
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 0x10004d8d
push 0xffffffffffffffff
pop dword [ebp - 4]
mov eax, dword [ebp - 4]
leave
ret 0x14

Function at 0x10004d94
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 0x10004e0b
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 0x10004e3a
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 0x10004e70
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call sub.ws2_32.dll___WSAFDIsSet
or eax, eax
je 0x10004e56
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 0x10004e75
push 0xffffffffffffffff
pop dword [ebp - 4]
jmp 0x10004e75
push 2
pop dword [ebp - 4]
mov eax, dword [ebp - 4]
leave
ret 8
Function at 0x10004f95
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 0x10005123
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.10004e7c
or eax, eax
je 0x10005123
mov dword [ebp - 4], eax
lea eax, [ebp - 0x21]
cmp dword [ebp - 8], 0
jne 0x10004ff7
mov dword [ebp - 8], eax
cmp dword [ebp - 0xc], 0
jne 0x10005000
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 0x1000511b
mov dword [ebp - 0x1c], eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0x1000f659
push dword [ebp - 0x1c]
call sub.user32.dll_wsprintfA
add esp, 0x10
push dword [ebp - 0x1c]
call fcn.100021b2
mov dword [ebp - 0x20], eax
push dword [ebp - 0x10]
push dword [ebp - 8]
call fcn.10004934
cmp eax, 0xffffffff
je 0x10005113
mov dword [ebp - 0x14], eax
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call fcn.100049c9
cmp eax, dword [ebp - 0x20]
jne 0x1000510a
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.10004bf6
or eax, eax
je 0x100050ad
cmp eax, 0xffffffff
jne 0x100050af
jmp 0x100050c4
add dword [ebp - 0x42c], eax
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 0xc]
jae 0x100050c4
jmp 0x1000508b
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x428], 0
je 0x1000510a
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.10004a67
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 0x100052ed
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 0x1000537c
cmp dword [ebp + 0xc], 0
je 0x1000537c
cmp dword [ebp + 0x10], 0
je 0x1000537c
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 0x10005371
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 0x10005331
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 0x1000658d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push 0
push dword [ebp + 8]
call fcn.10004d94
cmp eax, 2
je 0x10006593
push 0
pop dword [ebp - 4]
push 0
pop dword [ebp - 8]
cmp eax, 1
jne 0x1000667b
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.10005ca6
or eax, eax
je 0x1000667b
push 0
pop dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
call fcn.10005b3c
cmp al, byte [0x1000f9bf]
jne 0x10006611
mov al, byte [0x1000f9c0]
push eax
lea eax, [ebp - 8]
push eax
call fcn.10005a4e
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.10005c4d
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
call fcn.10005c3e
lea eax, [ebp - 4]
push eax
call fcn.10004239
jmp 0x1000666f
cmp al, byte [0x1000f9c3]
jne 0x10006666
mov al, byte [0x1000f9be]
push eax
lea eax, [ebp - 8]
push eax
call fcn.10005a4e
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.10005c4d
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
call fcn.10005c3e
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp - 4]
push 0x10007c9d
push 0
push 0
call sub.kernel32.dll_CreateThread
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x1000666f
lea eax, [ebp - 4]
push eax
call fcn.10004239
mov eax, dword [ebp - 0xc]
cmp eax, 0
jne 0x10006593
leave
ret 4
Function at 0x1000719d
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.100070e7
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], edx
cmp dword [ebp - 4], 0
je 0x100071cd
cmp dword [ebp - 8], 0
jne 0x100071d2
jmp 0x100073b4
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10007054
or eax, eax
je 0x100071f5
push 0
push 0
push 0x5d
push dword [ebp + 8]
call fcn.1000715b
jne 0x100073c6
cmp dword [ebp - 0xc], 1
jne 0x10007228
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.10007434
cmp eax, 0xffffffff
je 0x100073b4
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
call fcn.10004ab1
push ebx
push eax
push 0x5a
push dword [ebp + 8]
call fcn.1000715b
jmp 0x1000729f
cmp dword [ebp - 0xc], 2
jne 0x1000729a
push 0
call fcn.100073ca
cmp eax, 0xffffffff
je 0x100073b4
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
call fcn.10004ad9
push ebx
push dword [ebp + 8]
call fcn.10004ad9
pop ebx
push ebx
push eax
push 0x5a
push dword [ebp + 8]
call fcn.1000715b
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 0x10007282
lea eax, [ebp - 0x1c]
push eax
call fcn.10004a67
jmp 0x100073b4
mov dword [ebp - 0x18], eax
push 0
push word [ebp - 0x2a]
push dword [ebp - 0x28]
push 0x5a
push dword [ebp + 8]
call fcn.1000715b
jmp 0x1000729f
jmp 0x100073b4
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 0x100072fb
jmp 0x10007398
lea eax, [ebp - 0x134]
push eax
push dword [ebp + 8]
call sub.ws2_32.dll___WSAFDIsSet
or eax, eax
je 0x10007347
push dword [0x1000f61c]
push 0
push 0x1000
lea eax, [ebp - 0x1134]
push eax
push dword [ebp + 8]
call fcn.10004bf6
or eax, eax
je 0x10007345
cmp eax, 0xffffffff
je 0x10007345
push eax
lea eax, [ebp - 0x1134]
push eax
push dword [ebp - 0x18]
call fcn.100049c9
jmp 0x10007347
jmp 0x10007398
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 0x18]
call sub.ws2_32.dll___WSAFDIsSet
or eax, eax
je 0x10007393
push dword [0x1000f61c]
push 0
push 0x1000
lea eax, [ebp - 0x1134]
push eax
push dword [ebp - 0x18]
call fcn.10004bf6
or eax, eax
je 0x10007391
cmp eax, 0xffffffff
je 0x10007391
push eax
lea eax, [ebp - 0x1134]
push eax
push dword [ebp + 8]
call fcn.100049c9
jmp 0x10007393
jmp 0x10007398
jmp 0x1000729f
lea eax, [ebp - 0x18]
push eax
call fcn.10004a67
cmp dword [ebp - 0x1c], 0
je 0x100073b0
lea eax, [ebp - 0x1c]
push eax
call fcn.10004a67
leave
ret 8
push 0
push 0
push 0x5b
push dword [ebp + 8]
call fcn.1000715b
leave
ret 8
leave
ret 8
Function at 0x100073ca
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 0x10007418
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 0x1000741f
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 0x10007434
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 0x100074b0
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 [0x1000f618]
push 0x10
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
call fcn.10004b01
cmp eax, 0xffffffff
jne 0x100074b0
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 0x100076d2
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.10004a17
cmp eax, 4
jne 0x10007826
cmp byte [ebp - 0x144], 5
jne 0x10007826
movzx eax, byte [ebp - 0x143]
mov dword [ebp - 4], eax
movzx eax, byte [ebp - 0x141]
cmp eax, 1
jne 0x10007754
push 4
lea eax, [ebp - 0x144]
push eax
push dword [ebp + 8]
call fcn.10004a17
cmp eax, 4
jne 0x10007826
mov eax, dword [ebp - 0x144]
mov dword [ebp - 8], eax
jmp 0x100077ef
cmp eax, 3
jne 0x100077e4
push 1
lea eax, [ebp - 0x144]
push eax
push dword [ebp + 8]
call fcn.10004a17
cmp eax, 1
jne 0x10007826
movzx eax, byte [ebp - 0x144]
cmp eax, 0
je 0x10007826
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x144]
push eax
push dword [ebp + 8]
call fcn.10004a17
cmp eax, dword [ebp - 0x18]
jne 0x10007826
push dword [ebp - 0x18]
lea eax, [ebp - 0x144]
push eax
call fcn.10001a82
cmp eax, 0
je 0x10007826
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 0x10007821
mov eax, dword [eax + 0xc]
cmp eax, 0
je 0x10007826
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x100077ef
cmp eax, 4
jne 0x100077ed
jmp 0x10007826
jmp 0x10007826
push 2
lea eax, [ebp - 0x144]
push eax
push dword [ebp + 8]
call fcn.10004a17
cmp eax, 2
jne 0x10007826
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