joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000ddde
Capabilities:
Set socket configuration

Disassembly:
push ecx
push ecx
push ebx
push esi
push dword [esp + 0x14]
xor esi, esi
push dword [0x1003ffc4]
call fcn.1000f2f7
mov ebx, eax
test ebx, ebx
je 0x1000df6b
cmp dword [esp + 0x18], 0xffff
push ebp
push edi
ja 0x1000df52
mov ebp, dword [esp + 0x24]
push 2
pop ecx
push 0x17
pop eax
test ebp, 0x10000000
je 0x1000de2d
mov edi, eax
and ebp, 0xefffffff
mov dword [esp + 0x24], edi
jmp 0x1000de33
mov edi, ecx
mov dword [esp + 0x24], ecx
test ebp, ebp
jne 0x1000de38
inc ebp
push esi
push ebp
push edi
call dword [sym.imp.WSOCK32.DLL_socket]
mov esi, eax
mov dword [esp + 0x14], esi
cmp esi, 0xffffffff
je 0x1000df50
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 1
push eax
push 0x8004667e
push esi
call dword [sym.imp.WSOCK32.DLL_ioctlsocket]
cmp eax, 0xffffffff
jle 0x1000df41
push 0x17
pop eax
cmp edi, eax
je 0x1000de7c
push 2
pop eax
push dword [esp + 0x20]
mov word [ebx + 4], ax
call dword [sym.imp.WSOCK32.DLL_htons]
mov word [ebx + 6], ax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1000decf
cmp byte [eax], 0
je 0x1000decf
push eax
call fcn.10035780
mov dword [esp + 0x20], eax
cmp edi, 0x17
jne 0x1000deba
lea ecx, [ebx + 4]
push ecx
push eax
push edi
call fcn.1000d5b4
add esp, 0xc
jmp 0x1000dec4
push eax
call dword [sym.imp.WSOCK32.DLL_inet_addr]
mov dword [ebx + 8], eax
push dword [esp + 0x20]
call fcn.10035770
jmp 0x1000deee
cmp edi, 0x17
jne 0x1000deea
mov esi, 0x100364ac
lea edi, [ebx + 0xc]
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 [esp + 0x14]
mov edi, dword [esp + 0x24]
jmp 0x1000def3
and dword [ebx + 8], 0
cmp edi, 0x17
jne 0x1000def7
push 0x1c
jmp 0x1000def9
push 0x10
lea eax, [ebx + 4]
push eax
push esi
call dword [sym.imp.WSOCK32.DLL_bind]
test eax, eax
jne 0x1000df41
cmp ebp, 1
jne 0x1000df1a
push 0x64
push esi
call dword [sym.imp.WSOCK32.DLL_listen]
test eax, eax
jne 0x1000df41
xor eax, eax
mov dword [ebx], esi
cmp edi, 0x17
mov word [ebx + 0x20], bp
sete al
mov word [ebx + 0x22], ax
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
jne 0x1000df3a
mov dword [ebx + 0x24], ebx
jmp 0x1000df3d
mov dword [ebx + 0x24], eax
mov esi, ebx
jmp 0x1000df4a
push esi
call dword [sym.imp.WSOCK32.DLL_closesocket]
xor esi, esi
test esi, esi
jne 0x1000df69
jmp 0x1000df52
xor esi, esi
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x1000df5d
mov ebx, eax
push ebx
push dword [0x1003ffc4]
call fcn.1000f269
pop edi
pop ebp
mov eax, esi
pop esi
pop ebx
pop ecx
pop ecx
ret 0x10
Function at 0x1000df86
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
xor esi, esi
cmp eax, 0xffffffff
jne 0x1000dfa9
lea eax, [ebp + 0xc]
push eax
push 0x4004667f
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.DLL_ioctlsocket]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1000dff0
push 2
push eax
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.DLL_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000dfe9
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
cmp eax, 0x2745
je 0x1000dfed
cmp eax, 0x2746
je 0x1000dfed
cmp eax, 0x2749
je 0x1000dfed
cmp eax, 0x274a
je 0x1000dfed
xor esi, esi
jmp 0x1000dff0
test esi, esi
jne 0x1000dff0
push 0xfffffffffffffffe
pop esi
mov eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x1000e11f
Capabilities:
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x248
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x1000e1a9
cmp byte [eax], 0
je 0x1000e1a9
push 0x104
push eax
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 0
push eax
call sub.MSVCRT.dll_strlen
mov ecx, eax
add esp, 0x10
lea eax, [ebp + ecx - 0x109]
cmp ecx, 2
je 0x1000e173
cmp ecx, 3
jne 0x1000e1b5
cmp byte [ebp - 0x107], 0x3a
jne 0x1000e1b5
cmp ecx, 2
jne 0x1000e194
lea eax, [ebp - 0x108]
push 0x100364f4
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x1000e1a9
push 0xfffffffffffffffe
pop edi
mov eax, edi
mov edx, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov cl, byte [eax]
cmp cl, 0x5c
je 0x1000e1c1
cmp cl, 0x2f
jne 0x1000e1c7
mov byte [eax], 0
dec eax
jmp 0x1000e1b5
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, esi
je 0x1000e204
test byte [ebp - 0x248], 0x10
je 0x1000e1ed
push 0xfffffffffffffffe
pop edi
jmp 0x1000e1fb
mov esi, dword [ebp - 0x22c]
xor edi, edi
or edi, dword [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1000e1a9
mov cl, byte [ebp - 0x108]
mov al, byte [ebp - 0x107]
cmp cl, 0x5c
jne 0x1000e219
cmp al, 0x5c
je 0x1000e222
cmp cl, 0x2e
jne 0x1000e1a9
cmp al, cl
jne 0x1000e1a9
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, esi
je 0x1000e194
test al, 0x10
je 0x1000e1a9
jmp 0x1000e1a6
Function at 0x1000f119
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x10040004]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x1000f17a
push esi
push dword [0x10040000]
push 8
push dword [0x1003fab8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x10040004]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x1003fffc]
jmp 0x1000f16a
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x1000f168
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x1000f158
push edi
push 0x1000f0b7
call fcn.100352cb
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

Function at 0x1000f184
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ecx, esi
push edi
and ecx, 3
je 0x1000f19a
push 4
pop eax
sub eax, ecx
add esi, eax
mov eax, dword [0x10040000]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x1000f1d1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
push 8
push dword [0x1003fab8]
mov dword [0x10040004], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x10040004]
call ebx
mov eax, dword [0x10040000]
mov edi, eax
add eax, esi
push eax
push dword [0x10040004]
mov dword [0x10040000], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x1003fab8]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x10040004]
call ebx
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test esi, esi
jne 0x1000f211
test ebx, ebx
je 0x1000f232
push 0x14
push 0x1003fffc
call fcn.1000fa41
pop ecx
pop ecx
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
test esi, esi
je 0x1000f232
lea ecx, [edi + ebp]
push ecx
call esi
pop ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x1000ff80
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x1003e1e0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov edx, dword [ebp - 4]
add eax, dword [edx + 8]
mov esp, ebp
pop ebp
ret
Function at 0x10010010
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1003e1e0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
sub edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10010056
mov ecx, dword [ebp - 4]
add ecx, 5
push ecx
push 0
mov edx, dword [0x10040288]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x10010077
mov edx, dword [ebp - 4]
add edx, 5
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [0x10040288]
push edx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.100103f0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov esp, ebp
pop ebp
ret 8

Function at 0x100101d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1003e1e0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x100101f4
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
add ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
sub eax, 4
cmp dword [ebp - 8], eax
jl 0x10010241
mov ecx, dword [ebp - 8]
add ecx, 0x4000
mov edx, dword [ebp - 4]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
add ecx, 5
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
push 0
mov ecx, dword [0x10040288]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
add ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8

Function at 0x100102d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x1003e1e0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx]
jb 0x1001030e
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
cmp dword [ebp + 8], ecx
ja 0x1001030e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax]
add ecx, 1
mov eax, ecx
jmp 0x10010310
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x10010320
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x1003e1e0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
add eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x10010480
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1003e1e0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x10010870
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WSOCK32.DLL_WSAStartup]
test eax, eax
jne 0x100108a9
mov eax, dword [esp]
cmp al, 2
jne 0x100108a3
shr eax, 8
cmp al, 2
jne 0x100108a3
call fcn.1001e340
add esp, 0x190
ret
call dword [sym.imp.WSOCK32.DLL_WSACleanup]
mov eax, 2
add esp, 0x190
ret

Function at 0x100198b0
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
lea eax, [esp + 0x10]
push ebp
push eax
push dword [esp + 0x14]
lea ebp, [ebx + 0x4c4]
push 0x4000
push ebp
call fcn.10029190
mov eax, dword [ebx + 0xfc]
add esp, 0x10
test eax, eax
je 0x10019901
cmp byte [ebx + 0x84ec], 0
jne 0x10019901
push ebp
push 0x10036f68
push 0x100
push eax
call fcn.100290a0
add esp, 0x10
mov byte [ebx + 0x84ec], 1
cmp byte [ebx + 0x284], 0
je 0x10019978
push edi
mov edi, ebp
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10019910
sub edi, ecx
cmp edi, 0x3fff
jae 0x10019931
mov byte [edi + ebx + 0x4c4], 0xa
inc edi
mov byte [edi + ebx + 0x4c4], al
mov eax, dword [ebx + 0x164]
test eax, eax
je 0x1001994f
push dword [ebx + 0xf8]
push edi
push ebp
push 0
push ebx
call eax
add esp, 0x14
pop edi
pop ebp
pop ebx
ret
push dword [ebx + 0xf4]
push 1
push 2
push 0x10036f50
call dword [sym.imp.MSVCRT.dll_fwrite]
push dword [ebx + 0xf4]
push 1
push edi
push ebp
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x20
pop edi
pop ebp
pop ebx
ret

Function at 0x10019980
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x804
push ebx
mov ebx, dword [esp + 0x80c]
test ebx, ebx
je 0x10019a2d
cmp byte [ebx + 0x284], 0
je 0x10019a2d
push edi
lea eax, [esp + 0x818]
push eax
push dword [esp + 0x818]
lea eax, [esp + 0x10]
push 0x801
push eax
call fcn.10029190
lea edi, [esp + 0x18]
add esp, 0x10
lea ecx, [edi + 1]
lea esp, [esp]
mov al, byte [edi]
inc edi
test al, al
jne 0x100199d0
mov eax, dword [ebx + 0x164]
sub edi, ecx
test eax, eax
je 0x10019a00
push dword [ebx + 0xf8]
lea ecx, [esp + 0xc]
push edi
push ecx
push 0
push ebx
call eax
add esp, 0x14
pop edi
pop ebx
add esp, 0x804
ret
push dword [ebx + 0xf4]
push 1
push 2
push 0x10036f50
call dword [sym.imp.MSVCRT.dll_fwrite]
push dword [ebx + 0xf4]
lea eax, [esp + 0x1c]
push 1
push edi
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x20
pop edi
pop ebx
add esp, 0x804
ret
Function at 0x10019b60
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WSOCK32.DLL_recv]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x10019b91
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov eax, dword [esp + 0x10]
mov dword [eax], ecx
xor eax, eax
ret

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

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push edi
push 0
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [ebp + eax*4 + 0x144]
call dword [sym.imp.WSOCK32.DLL_send]
mov ebx, dword [esp + 0x20]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x10019c9b
push esi
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x10019c71
pop esi
pop edi
pop ebp
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push esi
push ebp
call fcn.1002e210
push eax
push str.Send_failure:__s
push dword [ebp]
call fcn.100198b0
mov eax, dword [ebp]
add esp, 0x14
mov dword [eax + 0x84f0], esi
mov eax, edi
mov dword [ebx], 0x37
pop esi
pop edi
pop ebp
pop ebx
ret

Function at 0x10019da0
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
mov eax, dword [edi + 0x164]
test eax, eax
je 0x10019dc9
push dword [edi + 0xf8]
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
push edi
call eax
add esp, 0x14
pop edi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x10019e04
push dword [edi + 0xf4]
lea eax, [eax + eax*2]
push 1
add eax, 0x10036f50
push 2
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push dword [edi + 0xf4]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x20
xor eax, eax
pop edi
ret
Function at 0x1001c9e0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xa8
mov eax, dword [0x1004005c]
mov dword [esp], 0x4020
mov dword [esp + 4], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x1001ca67
push 0x9c
push eax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [esp + 0xc], 0x9c
mov dword [esp + 0x10], 6
push 3
push 2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push 2
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x1001ca5b
mov dword [0x1004005c], 2
add esp, 0xa8
ret
mov dword [0x1004005c], 1
jmp 0x1001ca6c
cmp eax, 2
je 0x1001cab8
lea eax, [esp + 8]
push eax
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push dword [esp + 0xbc]
call dword [sym.imp.WSOCK32.DLL_getsockopt]
test eax, eax
jne 0x1001ca9a
mov eax, dword [esp + 4]
cmp eax, dword [esp]
jg 0x1001cab8
push 4
lea eax, [esp + 4]
push eax
push 0x1001
push 0xffff
push dword [esp + 0xbc]
call dword [sym.imp.WSOCK32.DLL_setsockopt]
add esp, 0xa8
ret
Function at 0x1001cc60
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x10c]
push ebp
cmp dword [ebx + 0x7c], 2
mov ebp, dword [ebx]
je 0x1001ce23
cmp byte [ebx + 0x231], 0
push esi
push edi
jne 0x1001cdd7
mov esi, dword [esp + 0x11c]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x98]
mov dword [esp + 0x14], pe_nt_image_headers32
push eax
push esi
call dword [sym.imp.WSOCK32.DLL_getpeername]
test eax, eax
je 0x1001ccdb
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.1002e210
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebp
call fcn.100198b0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
push pe_nt_image_headers32
lea eax, [esp + 0x18]
mov dword [esp + 0x14], pe_nt_image_headers32
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.WSOCK32.DLL_getsockname]
test eax, eax
je 0x1001cd36
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.1002e210
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebp
call fcn.100198b0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
lea eax, [ebx + 0xd8]
push eax
lea esi, [ebx + 0xa8]
lea eax, [esp + 0x98]
push esi
push eax
call fcn.1001d310
add esp, 0xc
test al, al
jne 0x1001cd82
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
call fcn.1002e210
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.100198b0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
lea edi, [ebx + 0x48]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x10c]
push eax
lea eax, [ebx + 0xdc]
push eax
lea eax, [esp + 0x1c]
movsw word es:[edi], word [esi]
push eax
call fcn.1001d310
add esp, 0xc
test al, al
jne 0x1001cdd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
call fcn.1002e210
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.100198b0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
mov edi, dword [ebx]
lea esi, [ebx + 0xa8]
add edi, 0x8654
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xb
movsw word es:[edi], word [esi]
mov edi, dword [ebx]
lea esi, [ebx + 0xdc]
add edi, 0x8688
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, dword [ebx]
mov eax, dword [ebx + 0xd8]
pop edi
pop esi
mov dword [ecx + 0x8684], eax
mov ecx, dword [ebx]
mov eax, dword [ebx + 0x10c]
mov dword [ecx + 0x86b8], eax
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x1001d680
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
xor eax, eax
push edi
mov edi, dword [esp + 0x20]
push 4
cmp byte [esi + 0x398], al
setne al
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WSOCK32.DLL_setsockopt]
test eax, eax
jns 0x1001d6ca
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.10019980
add esp, 0xc
pop edi
pop esi
add esp, 0x10
ret
push dword [esi + 0x39c]
mov dword [esp + 0x10], 1
call fcn.10028380
push dword [esi + 0x3a0]
imul eax, eax, 0x3e8
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], eax
call fcn.10028380
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0xc
lea eax, [esp + 0x24]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.DLL_WSAIoctl]
test eax, eax
je 0x1001d741
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.10019980
add esp, 0x10
pop edi
pop esi
add esp, 0x10
ret

Function at 0x1001d750
Capabilities:
Set socket configuration

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push 4
mov esi, dword [edi]
movzx eax, byte [esi + 0x29a]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 1
push 6
push dword [esp + 0x20]
call dword [sym.imp.WSOCK32.DLL_setsockopt]
test eax, eax
jns 0x1001d79b
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
push eax
push edi
call fcn.1002e210
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.10019980
add esp, 0x14
pop edi
pop esi
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.10019980
add esp, 8
pop edi
pop esi
ret
Function at 0x10024580
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov bl, byte [esi]
test bl, bl
je 0x10024631
mov cl, byte [edi]
test cl, cl
je 0x10024631
movsx eax, bl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x100245aa
jmp dword [eax*4 + 0x10024658]
mov bl, 0x41
jmp case.default.0x100245aa
mov bl, 0x42
jmp case.default.0x100245aa
mov bl, 0x43
jmp case.default.0x100245aa
mov bl, 0x44
jmp case.default.0x100245aa
mov bl, 0x45
jmp case.default.0x100245aa
mov bl, 0x46
jmp case.default.0x100245aa
mov bl, 0x47
jmp case.default.0x100245aa
mov bl, 0x48
jmp case.default.0x100245aa
mov bl, 0x49
jmp case.default.0x100245aa
mov bl, 0x4a
jmp case.default.0x100245aa
mov bl, 0x4b
jmp case.default.0x100245aa
mov bl, 0x4c
jmp case.default.0x100245aa
mov bl, 0x4d
jmp case.default.0x100245aa
mov bl, 0x4e
jmp case.default.0x100245aa
mov bl, 0x4f
jmp case.default.0x100245aa
mov bl, 0x50
jmp case.default.0x100245aa
mov bl, 0x51
jmp case.default.0x100245aa
mov bl, 0x52
jmp case.default.0x100245aa
mov bl, 0x53
jmp case.default.0x100245aa
mov bl, 0x54
jmp case.default.0x100245aa
mov bl, 0x55
jmp case.default.0x100245aa
mov bl, 0x56
jmp case.default.0x100245aa
mov bl, 0x57
jmp case.default.0x100245aa
mov bl, 0x58
jmp case.default.0x100245aa
mov bl, 0x59
jmp case.default.0x100245aa
mov bl, 0x5a
push ecx
call fcn.10024830
add esp, 4
cmp bl, al
jne 0x10024631
mov bl, byte [esi + 1]
inc esi
inc edi
test bl, bl
jne 0x10024595
movzx eax, byte [esi]
push eax
call fcn.10024830
movzx ecx, byte [edi]
mov bl, al
push ecx
call fcn.10024830
add esp, 8
xor ecx, ecx
cmp bl, al
sete cl
pop edi
pop esi
mov eax, ecx
pop ebx
ret