joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100e7330
Capabilities:
Access the windows event log

Disassembly:
push 0xffffffffffffffff
push 0x101626a9
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x101c3584]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push esi
push edi
mov eax, dword [0x101c3584]
xor eax, esp
push eax
lea eax, [esp + 0xec]
mov dword fs:[0], eax
mov edi, dword [esp + 0xfc]
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x90], ebx
jne 0x100e73d1
push 0x17
push str.NT_EventLog_not_opened.
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.100019f0
lea eax, [esp + 0x30]
push eax
mov ecx, esi
mov dword [esp + 0xf8], ebx
call fcn.100d7ce0
mov ecx, eax
call fcn.100cb450
cmp dword [esp + 0x48], 0x10
jb 0x100e7533
mov ecx, dword [esp + 0x34]
push ecx
call fcn.1013d576
jmp 0x100e7530
push 1
push 2
lea ecx, [esp + 0x54]
call fcn.10004c90
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push edi
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0xfc], 1
call edx
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0x50]
call fcn.10004df0
cmp dword [esp + 0xe4], 0x10
mov byte [esp + 0xf4], 2
jb 0x100e7429
mov ecx, dword [esp + 0xd0]
mov dword [esp + 0x10], ecx
jmp 0x100e7434
lea edx, [esp + 0xd0]
mov dword [esp + 0x10], edx
mov ecx, dword [esi + 0x94]
mov edx, dword [esi]
push ebx
lea eax, [esp + 0x14]
push eax
mov eax, dword [edx + 0x28]
push ebx
push 1
push ecx
push 0x1000
push edi
mov ecx, esi
call eax
mov edx, dword [esi]
movzx ecx, ax
mov eax, dword [edx + 0x24]
push ecx
push edi
mov ecx, esi
call eax
mov edx, dword [esi + 0x90]
movzx ecx, ax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
mov edi, 0xf
cmp eax, ebx
jne 0x100e74d2
push 0x23
push str.Cannot_report_event_in_NT_EventLog.
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.100019f0
lea eax, [esp + 0x14]
push eax
mov ecx, esi
mov byte [esp + 0xf8], 3
call fcn.100d7ce0
mov ecx, eax
call fcn.100cb530
cmp dword [esp + 0x2c], 0x10
jb 0x100e74c6
mov ecx, dword [esp + 0x18]
push ecx
call fcn.1013d576
add esp, 4
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
cmp dword [esp + 0xe4], 0x10
jb 0x100e74ec
mov edx, dword [esp + 0xd0]
push edx
call fcn.1013d576
add esp, 4
lea ecx, [esp + 0x98]
mov dword [esp + 0xe4], edi
mov dword [esp + 0xe0], ebx
mov byte [esp + 0xd0], bl
mov dword [esp + 0xf4], 0xffffffff
call fcn.10004d70
lea eax, [esp + 0x98]
push eax
mov dword [esp + 0x9c], vtable.std::ios_base.0
call fcn.1013919a
add esp, 4
mov ecx, dword [esp + 0xec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.1013d581
add esp, 0xe8
ret 4
Function at 0x100e8040
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
lea ecx, [ecx]
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0x14]
push 0
sub eax, esi
push eax
add ecx, esi
push ecx
push ebx
call sub.WS2_32.dll_recv
test eax, eax
jle 0x100e8071
add esi, eax
cmp esi, dword [edi + 8]
jl 0x100e8050
mov eax, esi
pop edi
pop esi
pop ebx
ret

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

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
push 0
push ecx
push eax
mov eax, dword [esp + 0x10]
push eax
call sub.WS2_32.dll_send
ret

Function at 0x100e80a0
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x10162861
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
push esi
mov eax, dword [0x101c3584]
xor eax, esp
push eax
lea eax, [esp + 0xd4]
mov dword fs:[0], eax
mov eax, dword [0x101f4ef0]
cmp eax, 2
je 0x100e820e
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push 0
push 1
push 0x101f4ef0
call esi
sub eax, 0
je 0x100e81ab
sub eax, 1
je 0x100e8136
sub eax, 1
je 0x100e820e
push str.Unknown_WinSock_state.
lea ecx, [esp + 0x44]
call fcn.100014e0
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x60]
mov dword [esp + 0xe0], 2
call fcn.1000c300
push 0x101affa8
lea edx, [esp + 0x60]
push edx
call fcn.10140fc5
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
lea esp, [esp]
mov eax, dword [0x101f4ef0]
sub eax, 1
jne 0x100e814f
push eax
call esi
jmp 0x100e8140
sub eax, 1
je 0x100e820e
push 0x16
push str.Unknown_WinSock_state.
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
call fcn.100019f0
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x88]
mov dword [esp + 0xe0], 1
call fcn.1000c300
push 0x101affa8
lea ecx, [esp + 0x88]
push ecx
call fcn.10140fc5
push 0x101f4d60
push 0x202
call sub.WS2_32.dll_WSAStartup
push 1
test eax, eax
je 0x100e8205
push 0
push 0x101f4ef0
call esi
push str.Could_not_initialize_WinSock.
lea ecx, [esp + 0x28]
call fcn.100014e0
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0xb0]
mov dword [esp + 0xe0], 0
call fcn.1000c300
push 0x101affa8
lea eax, [esp + 0xb0]
push eax
call fcn.10140fc5
push 2
push 0x101f4ef0
call esi
mov ecx, dword [esp + 0xd4]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xd8
ret
Function at 0x100e8230
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x20
mov eax, dword [0x101c3584]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x28]
push edi
mov dword [esp + 8], eax
call fcn.100e80a0
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov edi, eax
or eax, 0xffffffff
cmp edi, eax
je 0x100e835c
cmp dword [esi + 0x18], 0x10
push ebx
mov dword [esp + 0x10], eax
lea ebx, [esi + 4]
jb 0x100e827b
mov eax, dword [ebx]
jmp 0x100e827d
mov eax, ebx
push ebp
push eax
call sub.WS2_32.dll_gethostbyname
mov ebp, eax
test ebp, ebp
je 0x100e8291
cmp word [ebp + 8], 2
je 0x100e82c5
cmp dword [esi + 0x18], 0x10
jb 0x100e8299
mov ebx, dword [ebx]
push ebx
call sub.WS2_32.dll_inet_addr
mov esi, eax
cmp esi, 0xffffffff
jne 0x100e82c9
mov ecx, dword [esp + 0x10]
pop ebp
pop ebx
pop edi
mov dword [ecx], 2
or eax, eax
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1013d581
add esp, 0x20
ret
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x38]
push edx
call sub.WS2_32.dll_htons
mov word [esp + 0x1e], ax
mov eax, 2
mov word [esp + 0x1c], ax
test ebp, ebp
je 0x100e82f3
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esp + 0x20], eax
jmp 0x100e82f7
mov dword [esp + 0x20], esi
push 0x10
lea ecx, [esp + 0x20]
push ecx
push edi
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x100e8331
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2714
je 0x100e82f7
push edi
call sub.WS2_32.dll_closesocket
pop ebp
pop ebx
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1013d581
add esp, 0x20
ret
push 4
lea edx, [esp + 0x1c]
push edx
push 1
push 6
push edi
mov dword [esp + 0x2c], 1
call sub.WS2_32.dll_setsockopt
test eax, eax
jne 0x100e8315
mov eax, dword [esp + 0x10]
pop ebp
mov dword [eax], 0
mov eax, edi
pop ebx
mov ecx, dword [esp + 0x24]
pop edi
pop esi
xor ecx, esp
call fcn.1013d581
add esp, 0x20
ret
Function at 0x100e83f0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x10162898
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x101c3584]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
push 0x400
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], ebx
mov edi, str.unknown
call fcn.100e8370
mov dword [esp + 0x34], ebx
mov esi, dword [esp + 0x24]
sub esi, dword [esp + 0x20]
jne 0x100e8443
call fcn.1013da0c
mov eax, dword [esp + 0x20]
dec esi
push esi
push eax
call sub.WS2_32.dll_gethostname
cmp eax, ebx
je 0x100e8476
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x271e
jne 0x100e84dd
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x20]
push ebx
add ecx, ecx
push ecx
lea ecx, [esp + 0x1c]
call fcn.100d9190
jmp 0x100e8434
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
sub edx, edi
jne 0x100e848b
call fcn.1013da0c
mov edi, dword [esp + 0x20]
cmp byte [esp + 0x40], bl
je 0x100e84dd
push edi
call sub.WS2_32.dll_gethostbyname
cmp eax, ebx
je 0x100e849d
mov edi, dword [eax]
mov esi, dword [esp + 0x3c]
mov eax, edi
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100e84b3
sub eax, edx
push eax
push edi
mov ecx, esi
call fcn.100019f0
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x100e84d6
push eax
call fcn.1013d576
add esp, 4
mov eax, dword [esp + 0x14]
push eax
jmp 0x100e851b
mov esi, dword [esp + 0x3c]
mov eax, edi
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100e84f3
sub eax, edx
push eax
push edi
mov ecx, esi
call fcn.100019f0
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x100e8516
push eax
call fcn.1013d576
add esp, 4
mov ecx, dword [esp + 0x14]
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.1013d576
mov eax, esi
add esp, 4
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret
Function at 0x100e8e70
Capabilities:
Connect socket
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x101c3584]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push edi
mov edi, dword [sym.imp.WS2_32.dll_ioctlsocket]
lea eax, [esp + 8]
push eax
mov ebx, ecx
mov ecx, dword [esi + 8]
push 0x8004667e
push ecx
mov dword [esp + 0x14], 1
call edi
cmp eax, 0xffffffff
jne 0x100e8ebb
call fcn.100f7470
pop edi
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.1013d581
add esp, 0x18
ret
lea edx, [esp + 0xc]
push edx
push ebx
call fcn.100f7700
mov ecx, dword [esi + 8]
add esp, 8
push 0x10
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x100e8f16
mov eax, dword [esi + 8]
lea edx, [esp + 8]
push edx
push 0x8004667e
push eax
mov dword [esp + 0x14], 0
call edi
cmp eax, 0xffffffff
je 0x100e8ea5
pop edi
mov dword [esi + 0x18], 1
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.1013d581
add esp, 0x18
ret
call sub.WS2_32.dll_WSAGetLastError
mov ebx, eax
cmp ebx, 0x2733
je 0x100e8f57
mov edx, dword [esi + 8]
lea ecx, [esp + 8]
push ecx
push 0x8004667e
push edx
mov dword [esp + 0x14], 0
call edi
push ebx
call fcn.100f7200
add esp, 4
pop edi
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.1013d581
add esp, 0x18
ret
push 0x101f4f28
call fcn.100ea210
mov dword [esi + 0x14], 2
mov eax, dword [0x101bfeb8]
mov dword [0x101bfeb8], esi
mov dword [esi + 4], 0x101bfeb8
mov dword [esi], eax
mov dword [eax + 4], esi
mov eax, dword [0x101f4f24]
push eax
call fcn.100f7600
add esp, 8
test eax, eax
je 0x100e8f9e
push str.smbp_socket_wakeup_upcall_thread:_cannot_write_socket_n
call fcn.10117cb0
add esp, 4
push 0x101f4f28
call fcn.100ea230
mov ecx, dword [esp + 0x20]
add esp, 4
pop edi
pop ebx
xor ecx, esp
mov eax, 0x24
call fcn.1013d581
add esp, 0x18
ret

Function at 0x100e8fd0
Capabilities:
Connect socket

Disassembly:
sub esp, 0x14
mov eax, dword [0x101c3584]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
push edi
lea ecx, [esp + 4]
push ecx
push eax
call fcn.100f7700
push 0x101f7ba0
call fcn.100ea230
mov eax, dword [esi + 8]
add esp, 0xc
push 0x10
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
push 0x101f7ba0
mov edi, eax
call fcn.100ea210
add esp, 4
cmp edi, 0xffffffff
pop edi
jne 0x100e9035
call fcn.100f7470
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.1013d581
add esp, 0x14
ret
mov ecx, dword [esp + 0x10]
xor ecx, esp
mov dword [esi + 0x18], 1
xor eax, eax
call fcn.1013d581
add esp, 0x14
ret
Function at 0x100e9050
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push edi
xor edi, edi
cmp dword [esp + 0x114], edi
je 0x100e9112
test byte [esi + 0x14], 1
jne 0x100e90f6
mov eax, dword [esi + 8]
lea ecx, [esp + 4]
push ecx
push edi
push edi
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], eax
push edx
inc eax
push eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 1
jne 0x100e90b7
push 0x101f4f28
call fcn.100ea230
add esp, 4
xor eax, eax
pop edi
add esp, 0x10c
ret
cmp dword [esi + 0x14], edi
jne 0x100e90d3
mov eax, dword [0x101bfeb8]
mov dword [0x101bfeb8], esi
mov dword [esi + 4], 0x101bfeb8
mov dword [esi], eax
mov dword [eax + 4], esi
or dword [esi + 0x14], 1
mov eax, dword [0x101f4f24]
push eax
call fcn.100f7600
add esp, 4
test eax, eax
je 0x100e90f6
push str.smbp_socket_wakeup_upcall_thread:_cannot_write_socket_n
call fcn.10117cb0
add esp, 4
mov edi, 0x23
push 0x101f4f28
call fcn.100ea230
add esp, 4
mov eax, edi
pop edi
add esp, 0x10c
ret
mov eax, dword [esi + 0x14]
test al, 1
je 0x100e90fb
and eax, 0xfffffffe
mov dword [esi + 0x14], eax
jne 0x100e9130
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [eax], ecx
mov dword [ecx + 4], eax
mov dword [esi + 4], esi
mov dword [esi], esi
mov ecx, dword [0x101f4f24]
push ecx
call fcn.100f7600
add esp, 4
test eax, eax
je 0x100e9150
push str.smbp_socket_wakeup_upcall_thread:_cannot_write_socket_n
call fcn.10117cb0
add esp, 4
push edi
push edi
push 0x400
push 0x101f4f28
push 0x101f4f20
call fcn.100e8950
add esp, 0x14
mov eax, edi
pop edi
add esp, 0x10c
ret

Function at 0x100e9180
Capabilities:
Set socket configuration

Disassembly:
push ecx
cmp eax, 0x1001
jg 0x100e91e0
je 0x100e91b8
cmp eax, 8
jne case.0x100e91f5.4099
cmp edx, 4
jne case.0x100e91f5.4099
mov eax, dword [ecx]
push edx
mov edx, dword [esi + 8]
lea ecx, [esp + 4]
push ecx
push 8
push 0xffff
mov dword [esp + 0x10], eax
push edx
jmp 0x100e927b
cmp edx, 4
jne case.0x100e91f5.4099
mov eax, dword [ecx]
push edx
mov edx, dword [esi + 8]
lea ecx, [esp + 4]
push ecx
push 0x1001
push 0xffff
mov dword [esp + 0x10], eax
push edx
jmp 0x100e927b
add eax, 0xffffeffe
cmp eax, 0x25
ja case.0x100e91f5.4099
movzx eax, byte [eax + 0x100e92ac]
jmp dword [eax*4 + 0x100e9298]
cmp edx, 4
jne case.0x100e91f5.4099
mov ecx, dword [ecx]
push edx
lea edx, [esp + 4]
push edx
mov dword [esp + 8], ecx
push 0x1002
jmp 0x100e9272
cmp edx, 8
jne case.0x100e91f5.4099
mov edx, dword [ecx + 4]
mov eax, 0x10624dd3
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
push 4
lea edx, [esp + 4]
push edx
push 0x1005
jmp 0x100e9264
cmp edx, 8
jne case.0x100e91f5.4099
mov edx, dword [ecx + 4]
mov eax, 0x10624dd3
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
push 4
lea edx, [esp + 4]
push edx
push 0x1006
mov ecx, dword [ecx]
imul ecx, ecx, 0x3e8
add eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esi + 8]
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne case.0x100e91f5.4131
call fcn.100f7470
pop ecx
ret
xor eax, eax
pop ecx
ret
mov eax, 0x16
pop ecx
ret
Function at 0x100e9218
Capabilities:
Set socket configuration

Disassembly:
push ecx
cmp eax, 0x1001
jg 0x100e91e0
je 0x100e91b8
cmp eax, 8
jne case.0x100e91f5.4099
cmp edx, 4
jne case.0x100e91f5.4099
mov eax, dword [ecx]
push edx
mov edx, dword [esi + 8]
lea ecx, [esp + 4]
push ecx
push 8
push 0xffff
mov dword [esp + 0x10], eax
push edx
jmp 0x100e927b
cmp edx, 4
jne case.0x100e91f5.4099
mov eax, dword [ecx]
push edx
mov edx, dword [esi + 8]
lea ecx, [esp + 4]
push ecx
push 0x1001
push 0xffff
mov dword [esp + 0x10], eax
push edx
jmp 0x100e927b
add eax, 0xffffeffe
cmp eax, 0x25
ja case.0x100e91f5.4099
movzx eax, byte [eax + 0x100e92ac]
jmp dword [eax*4 + 0x100e9298]
cmp edx, 4
jne case.0x100e91f5.4099
mov ecx, dword [ecx]
push edx
lea edx, [esp + 4]
push edx
mov dword [esp + 8], ecx
push 0x1002
jmp 0x100e9272
cmp edx, 8
jne case.0x100e91f5.4099
mov edx, dword [ecx + 4]
mov eax, 0x10624dd3
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
push 4
lea edx, [esp + 4]
push edx
push 0x1005
jmp 0x100e9264
cmp edx, 8
jne case.0x100e91f5.4099
mov edx, dword [ecx + 4]
mov eax, 0x10624dd3
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
push 4
lea edx, [esp + 4]
push edx
push 0x1006
mov ecx, dword [ecx]
imul ecx, ecx, 0x3e8
add eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esi + 8]
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne case.0x100e91f5.4131
call fcn.100f7470
pop ecx
ret
xor eax, eax
pop ecx
ret
mov eax, 0x16
pop ecx
ret

Function at 0x100e923f
Capabilities:
Set socket configuration

Disassembly:
push ecx
cmp eax, 0x1001
jg 0x100e91e0
je 0x100e91b8
cmp eax, 8
jne case.0x100e91f5.4099
cmp edx, 4
jne case.0x100e91f5.4099
mov eax, dword [ecx]
push edx
mov edx, dword [esi + 8]
lea ecx, [esp + 4]
push ecx
push 8
push 0xffff
mov dword [esp + 0x10], eax
push edx
jmp 0x100e927b
cmp edx, 4
jne case.0x100e91f5.4099
mov eax, dword [ecx]
push edx
mov edx, dword [esi + 8]
lea ecx, [esp + 4]
push ecx
push 0x1001
push 0xffff
mov dword [esp + 0x10], eax
push edx
jmp 0x100e927b
add eax, 0xffffeffe
cmp eax, 0x25
ja case.0x100e91f5.4099
movzx eax, byte [eax + 0x100e92ac]
jmp dword [eax*4 + 0x100e9298]
cmp edx, 4
jne case.0x100e91f5.4099
mov ecx, dword [ecx]
push edx
lea edx, [esp + 4]
push edx
mov dword [esp + 8], ecx
push 0x1002
jmp 0x100e9272
cmp edx, 8
jne case.0x100e91f5.4099
mov edx, dword [ecx + 4]
mov eax, 0x10624dd3
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
push 4
lea edx, [esp + 4]
push edx
push 0x1005
jmp 0x100e9264
cmp edx, 8
jne case.0x100e91f5.4099
mov edx, dword [ecx + 4]
mov eax, 0x10624dd3
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
push 4
lea edx, [esp + 4]
push edx
push 0x1006
mov ecx, dword [ecx]
imul ecx, ecx, 0x3e8
add eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esi + 8]
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne case.0x100e91f5.4131
call fcn.100f7470
pop ecx
ret
xor eax, eax
pop ecx
ret
mov eax, 0x16
pop ecx
ret
Function at 0x100e92e0
Capabilities:
Set socket configuration

Disassembly:
sub eax, 1
jne 0x100e92ec
cmp dword [esp + 0xc], 4
je 0x100e92f2
mov eax, 0x16
ret
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov eax, dword [esp + 4]
push 4
lea edx, [esp + 0xc]
push edx
push 1
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 8]
push 6
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x100e931f
jmp fcn.100f7470
xor eax, eax
ret

Function at 0x100e9330
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x101c3584]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x100e9371
mov eax, 0xc
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.1013d581
add esp, 0x194
ret
push esi
push 0x101f4f24
call fcn.100f7480
mov esi, eax
add esp, 4
test esi, esi
jne 0x100e93ce
push eax
push eax
push 0x101f4f28
call fcn.100ea0e0
push 0x101f4f20
push esi
push 0x100e8a40
mov dword [0x101f4f1c], esi
call fcn.100f77e0
add esp, 0x18
test eax, eax
je 0x100e93ec
push 0
push 0x101f4f28
mov esi, 0xc
call fcn.100ea170
mov ecx, dword [0x101f4f24]
push ecx
call fcn.100f75d0
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.1013d581
add esp, 0x194
ret
mov ecx, dword [esp + 0x194]
pop esi
xor ecx, esp
xor eax, eax
call fcn.1013d581
add esp, 0x194
ret

Function at 0x100e94a0
Capabilities:
Create tcp socket

Disassembly:
cmp dword [0x101f4f2c], 0
jne 0x100e94bc
push str.smbp_sock_socket:_smbp_not_initialized__n
call fcn.10117cb0
add esp, 4
mov eax, 0x13
ret
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x100e9557
cmp dword [esp + 8], 2
jne 0x100e9557
cmp dword [esp + 0xc], 1
jne 0x100e9557
cmp dword [esp + 0x10], 6
jne 0x100e9557
push esi
push 0x1c
call fcn.1013fbbd
mov esi, eax
add esp, 4
test esi, esi
jne 0x100e94fb
pop esi
mov eax, 0xc
pop ebx
ret
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
push 6
mov dword [esi + 0x14], eax
push 1
mov dword [esi + 0x18], eax
push 2
mov dword [esi + 4], esi
mov dword [esi], esi
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x100e9542
push edi
call fcn.100f7470
push esi
mov edi, eax
call fcn.1013db65
add esp, 4
mov eax, edi
pop edi
pop esi
mov dword [ebx], 0
pop ebx
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ecx
mov dword [ebx], esi
pop esi
xor eax, eax
pop ebx
ret
mov eax, 0x16
pop ebx
ret
Function at 0x100e9a10
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0xc
push ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [esp + 8], ebx
cmp dword [0x101f4f2c], ebx
jne 0x100e9a3b
push str.smbp_sock_sendmbuf:_smbp_not_initialized__n
call fcn.10117cb0
add esp, 4
lea eax, [ebx + 0x13]
pop ebx
add esp, 0xc
ret
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x28]
cmp esi, ebx
je 0x100e9be9
cmp edi, ebx
je 0x100e9be9
cmp dword [esp + 0x24], ebx
jne 0x100e9be9
cmp dword [esp + 0x2c], ebx
jne 0x100e9be9
push 0x101f4f28
call fcn.100ea210
add esp, 4
push 0x101f4f28
cmp dword [esi + 0x18], ebx
jne 0x100e9a96
call fcn.100ea230
add esp, 4
mov dword [esp + 0x10], 0x39
jmp 0x100e9bf1
call fcn.10001120
push edi
call fcn.100f7b80
add esp, 8
test eax, eax
je 0x100e9bf1
push edi
call fcn.100f7b80
push eax
call fcn.1013fbbd
mov ebp, eax
add esp, 8
cmp ebp, ebx
jne 0x100e9ace
mov dword [esp + 0x10], 0xc
jmp 0x100e9bf1
mov ebx, edi
mov dword [esp + 0x18], ebp
push ebx
call fcn.100f7b60
add esp, 4
test eax, eax
je 0x100e9b41
mov esi, ebp
sub esi, dword [esp + 0x18]
push edi
call fcn.100f7b80
push ebx
lea edi, [eax + esi]
call fcn.100f7b60
add esp, 8
cmp edi, eax
jae 0x100e9b10
mov eax, dword [esp + 0x28]
push eax
call fcn.100f7b80
mov edi, eax
add esp, 4
add edi, esi
jmp 0x100e9b1b
push ebx
call fcn.100f7b60
add esp, 4
mov edi, eax
test edi, edi
je 0x100e9b50
push edi
push ebx
call fcn.100f7bf0
mov esi, dword [esp + 0x20]
add esp, 4
push eax
push esi
call fcn.1013fc90
add esp, 0xc
add esi, edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x18], esi
push ebx
call fcn.100f7ba0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x100e9ad4
mov edi, dword [esp + 0x18]
sub edi, ebp
test edi, edi
jle 0x100e9bda
mov ebx, dword [sym.imp.WS2_32.dll_send]
push 0x101f7ba0
call fcn.100ea230
mov eax, dword [esp + 0x18]
add esp, 4
push 0
mov ecx, edi
sub ecx, eax
push ecx
lea edx, [eax + ebp]
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 8]
push edx
push ecx
call ebx
push 0x101f7ba0
mov esi, eax
call fcn.100ea210
add esp, 4
cmp esi, 0xffffffff
je 0x100e9bbf
test esi, esi
je 0x100e9bca
mov eax, dword [esp + 0x14]
add eax, esi
cmp eax, edi
mov dword [esp + 0x14], eax
jl 0x100e9b64
push ebp
call fcn.1013db65
mov edi, dword [esp + 0x2c]
add esp, 4
jmp 0x100e9bf1
call fcn.100f7470
mov dword [esp + 0x10], eax
jmp 0x100e9bd2
mov dword [esp + 0x10], 0x36
mov dword [esp + 0x14], 0
push ebp
call fcn.1013db65
mov edi, dword [esp + 0x2c]
add esp, 4
jmp 0x100e9bf1
mov dword [esp + 0x10], 0x16
mov eax, dword [esp + 0x30]
test eax, eax
je 0x100e9bff
mov edx, dword [esp + 0x14]
mov dword [eax], edx
test edi, edi
je 0x100e9c0c
push edi
call fcn.100f7ae0
add esp, 4
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret