joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10101020
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x10200854]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, ecx
push 0x118
push 0
lea eax, [esi + 4]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10101162
cmp dword [esi + 4], 6
push edi
ja 0x10101076
jne 0x101010fe
cmp dword [esi + 8], 2
jb 0x101010fe
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x101010fe
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x101010fe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x101010fe
movups xmm0, xmmword [0x101c42e0]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x101c42f0]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x101010fe
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x101010fe
cmp word [edi + 2], ax
jbe 0x101010fe
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x10101149
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x10101149
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.101611d3
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.101611d3
add esp, 0x140
ret
Function at 0x1013c9e0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1018d1d8
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov eax, dword [ebp + 0xc]
push esi
cmp dword [eax + 0x10], 0
je 0x1013ca7f
cmp dword [eax + 0x14], 0x10
xorps xmm0, xmm0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x48], 4
movups xmmword [ebp - 0x38], xmm0
jb 0x1013ca1f
mov eax, dword [eax]
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x48]
push ecx
push 0
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x1013ca7f
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
mov eax, dword [eax + 0x18]
push dword [eax + 0x18]
add eax, 8
push eax
call fcn.1013c2a0
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
call fcn.1013c240
lea ecx, [ebp - 0x28]
call fcn.1013c300
mov eax, dword [ebp + 8]
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
call fcn.1013c2d0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x1013d820
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x20
mov eax, dword [esp + 0x2c]
xorps xmm0, xmm0
push esi
mov esi, dword [esp + 0x2c]
movups xmmword [esp + 4], xmm0
mov dword [esp + 4], eax
mov eax, esi
movups xmmword [esp + 0x14], xmm0
cmp dword [esi + 0x14], 0x10
jb 0x1013d847
mov eax, dword [esi]
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 8]
push ecx
push 0
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x1013d87e
push dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
call fcn.1013d480
push dword [esp + 0x30]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [esp + 0x28]
pop esi
add esp, 0x20
ret
push esi
push eax
call fcn.1013d730
int3

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

Disassembly:
mov eax, dword [ecx + 8]
sub esp, 0xb0
cmp eax, 0xffffffff
je 0x1013dfc4
push esi
lea ecx, [esp + 4]
mov dword [esp + 4], 0x80
push ecx
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1013dfa2
push dword [esp + 4]
mov ecx, dword [esp + 0xbc]
lea eax, [esp + 0x38]
push eax
call fcn.1013b2b0
mov eax, dword [esp + 0xb8]
pop esi
add esp, 0xb0
ret 4
call fcn.1013ebd0
mov ecx, dword [esp + 0xb8]
call fcn.1013b390
mov eax, dword [esp + 0xb8]
pop esi
add esp, 0xb0
ret 4
push 0
lea ecx, [esp + 8]
call fcn.1013a190
push 0x101f8950
lea eax, [esp + 8]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x1013e200
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1013e236
mov eax, dword [esp + 4]
cmp eax, 6
jb 0x1013e236
jne 0x1013e22d
cmp dword [esp + 8], 2
jb 0x1013e236
xor al, al
add esp, 0x94
ret
mov al, 1
add esp, 0x94
ret
Function at 0x1013e260
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1018cba8
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [ebx + 8], 0xffffffff
jne 0x1013e29b
mov esi, dword [ebx]
mov ecx, edi
call fcn.1013b5e0
push eax
mov ecx, ebx
call dword [esi + 0x90]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, edi
call fcn.1013b950
push eax
mov ecx, edi
call fcn.1013b570
push eax
push dword [ebx + 8]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x1013e31d
call esi
cmp eax, 0x2714
je 0x1013e2a1
call esi
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0x24]
push eax
call fcn.1013bab0
push eax
push esi
mov dword [ebp - 4], 0
call fcn.1013e600
mov edx, dword [ebp - 0x10]
add esp, 8
cmp edx, 0x10
jb 0x1013e31d
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1013e313
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1013e313
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10161214
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x1013e330
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018d408
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], edi
cmp dword [edi + 8], 0xffffffff
jne 0x1013e371
mov esi, dword [edi]
mov ecx, ebx
call fcn.1013b5e0
push eax
mov ecx, edi
call dword [esi + 0x90]
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 0x84]
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.1013b950
mov ecx, ebx
mov esi, eax
call fcn.1013b570
push esi
push eax
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x1013e406
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2734
je 0x1013e3e0
cmp esi, 0x2733
je 0x1013e3e0
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
call fcn.1013bab0
push eax
push esi
mov byte [ebp - 4], 1
call fcn.1013e600
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.10005f00
mov eax, dword [edi]
mov ecx, edi
push 7
push dword [ebp + 0xc]
mov eax, dword [eax + 0x50]
call eax
test al, al
je 0x1013e442
mov ecx, edi
call fcn.1013f730
test eax, eax
je 0x1013e406
push eax
call fcn.1013e570
add esp, 4
mov eax, dword [edi]
mov ecx, edi
push 1
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x84]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.connect_timed_out
lea ecx, [ebp - 0x44]
call fcn.10011b80
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 2
push eax
mov ecx, ebx
call fcn.1013bab0
push 0
push eax
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x88]
call fcn.10141310
push 0x101f9280
lea eax, [ebp - 0x88]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1013ef30
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1018d540
push eax
mov dword fs:[0], esp
sub esp, 0x360
push ebx
push esi
mov esi, dword [ecx + 8]
push edi
cmp esi, 0xffffffff
je 0x1013f0e2
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x36c], 0
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x164], 0
test al, 1
je 0x1013ef92
mov dword [ebp - 0x368], esi
mov dword [ebp - 0x36c], 1
test al, 2
je 0x1013efa6
mov dword [ebp - 0x264], esi
mov dword [ebp - 0x268], 1
test al, 4
je 0x1013efba
mov dword [ebp - 0x160], esi
mov dword [ebp - 0x164], 1
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.101465b0
lea eax, [esi + 1]
xor ebx, ebx
mov dword [ebp + 0xc], eax
nop dword [eax]
push dword [0x1019455c]
mov esi, dword [ebp - 0x10]
push dword [0x10194558]
mov edi, dword [ebp - 0x14]
push esi
push edi
call fcn.10161c30
push 0
push 0xf4240
push esi
push edi
mov dword [ebp - 0x34], eax
call fcn.10161c30
imul eax, eax, 0xf4240
lea ecx, [ebp - 0x2c]
sub edi, eax
mov dword [ebp - 0x30], edi
call fcn.101465d0
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x36c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
test esi, esi
jns 0x1013f0a2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2714
jne 0x1013f0a2
lea ecx, [ebp - 0x24]
call fcn.101465d0
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
sbb eax, dword [ebp - 0x28]
push eax
push ecx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.100fc620
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x10]
jg 0x1013f08e
jl 0x1013f080
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x14]
jae 0x1013f08e
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.101533c0
jmp 0x1013f09a
push 0
push 0
lea ecx, [ebp - 0x14]
call fcn.100fc620
lea ecx, [ebp - 0x24]
call fcn.100365f0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.100365f0
test esi, esi
jns 0x1013f0cc
cmp ebx, 0x2714
je 0x1013efd0
push ebx
call fcn.1013e570
add esp, 4
test esi, esi
mov ecx, dword [ebp - 0xc]
setg al
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push 0
lea ecx, [ebp - 0x60]
call fcn.1013a190
push 0x101f8950
lea eax, [ebp - 0x60]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1013f100
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x2c
push esi
mov esi, ecx
cmp byte [esi + 0x21], 0
je 0x1013f12b
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x10]
or eax, dword [ecx + 4]
je 0x1013f12b
mov eax, dword [esi]
push 1
push ecx
mov ecx, esi
mov eax, dword [eax + 0x50]
call eax
test al, al
je 0x1013f1bc
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebp
mov ebp, dword [esp + 0x44]
push edi
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x1013f1a2
push ebp
push dword [esp + 0x48]
push dword [esp + 0x48]
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp byte [esi + 0x20], 0
mov edi, eax
je 0x1013f165
test edi, edi
jns 0x1013f196
call ebx
cmp eax, 0x2714
je 0x1013f138
test edi, edi
jns 0x1013f196
call ebx
cmp eax, 0x2733
jne 0x1013f17a
cmp byte [esi + 0x20], 0
jne 0x1013f1d6
jmp 0x1013f196
cmp eax, 0x274c
je 0x1013f1d6
push eax
call fcn.1013e570
add esp, 4
mov eax, edi
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x2c
ret 0xc
mov eax, edi
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x2c
ret 0xc
push 0
lea ecx, [esp + 0x14]
call fcn.1013a190
push 0x101f8950
lea eax, [esp + 0x14]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push 0
lea ecx, [esp + 8]
call fcn.10141340
push 0x101f9280
lea eax, [esp + 8]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push eax
lea ecx, [esp + 0x14]
call fcn.10141340
push 0x101f9280
lea eax, [esp + 0x14]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1013f1f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1018d558
push eax
mov dword fs:[0], esp
sub esp, 0xdc
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x21], 0
je 0x1013f238
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x10]
or eax, dword [ecx + 4]
je 0x1013f238
mov eax, dword [esi]
push 1
push ecx
mov ecx, esi
mov eax, dword [eax + 0x50]
call eax
test al, al
je 0x1013f30a
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x10], 0x80
nop word [eax + eax]
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x1013f2f2
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0xe8]
push ecx
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp byte [esi + 0x20], 0
mov edi, eax
je 0x1013f28c
test edi, edi
jns 0x1013f290
call ebx
cmp eax, 0x2714
je 0x1013f250
test edi, edi
js 0x1013f2bc
push dword [ebp - 0x10]
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp + 0x14]
call fcn.1013b2b0
mov ecx, dword [ebp + 0x10]
push eax
mov dword [ebp - 4], 0
call fcn.1013b450
lea ecx, [ebp + 0x14]
call fcn.10009230
jmp 0x1013f2dd
call ebx
cmp eax, 0x2733
jne 0x1013f2cd
cmp byte [esi + 0x20], 0
jne 0x1013f322
jmp 0x1013f2dd
cmp eax, 0x274c
je 0x1013f322
push eax
call fcn.1013e570
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
push 0
lea ecx, [ebp - 0x3c]
call fcn.1013a190
push 0x101f8950
lea eax, [ebp - 0x3c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push 0
lea ecx, [ebp - 0x3c]
call fcn.10141340
push 0x101f9280
lea eax, [ebp - 0x3c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push eax
lea ecx, [ebp - 0x68]
call fcn.10141340
push 0x101f9280
lea eax, [ebp - 0x68]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3

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

Disassembly:
sub esp, 0x2c
push esi
mov esi, ecx
cmp byte [esi + 0x21], 0
je 0x1013f367
mov eax, dword [esi + 0x18]
lea ecx, [esi + 0x18]
or eax, dword [ecx + 4]
je 0x1013f367
mov eax, dword [esi]
push 2
push ecx
mov ecx, esi
mov eax, dword [eax + 0x50]
call eax
test al, al
je 0x1013f3d0
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebp
mov ebp, dword [esp + 0x44]
push edi
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x1013f3b6
push ebp
push dword [esp + 0x48]
push dword [esp + 0x48]
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp byte [esi + 0x20], 0
mov edi, eax
je 0x1013f3a1
test edi, edi
jns 0x1013f3aa
call ebx
cmp eax, 0x2714
je 0x1013f374
test edi, edi
jns 0x1013f3aa
call fcn.1013ebd0
mov eax, edi
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x2c
ret 0xc
push 0
lea ecx, [esp + 0x14]
call fcn.1013a190
push 0x101f8950
lea eax, [esp + 0x14]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push 0
lea ecx, [esp + 8]
call fcn.10141340
push 0x101f9280
lea eax, [esp + 8]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1013f3f0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x2c
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebp
mov ebp, dword [esp + 0x40]
push esi
push edi
mov edi, ecx
cmp dword [edi + 8], 0xffffffff
je 0x1013f458
mov ecx, ebp
call fcn.1013b950
push eax
mov ecx, ebp
call fcn.1013b570
push eax
push dword [esp + 0x54]
push dword [esp + 0x50]
push dword [esp + 0x50]
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_sendto]
cmp byte [edi + 0x20], 0
mov esi, eax
je 0x1013f443
test esi, esi
jns 0x1013f44c
call ebx
cmp eax, 0x2714
je 0x1013f403
test esi, esi
jns 0x1013f44c
call fcn.1013ebd0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0x10
push 0
lea ecx, [esp + 0x14]
call fcn.1013a190
push 0x101f8950
lea eax, [esp + 0x14]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3

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

Disassembly:
mov eax, dword [ecx + 8]
sub esp, 0x2c
cmp eax, 0xffffffff
je 0x1013f4aa
push 1
push 1
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1013f4a4
call fcn.1013ebd0
add esp, 0x2c
ret 4
push 0
lea ecx, [esp + 4]
call fcn.1013a190
push 0x101f8950
lea eax, [esp + 4]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x1013f520
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [ecx + 8]
sub esp, 0x2c
cmp eax, 0xffffffff
je 0x1013f552
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1013f54c
call fcn.1013ebd0
add esp, 0x2c
ret 0x10
push 0
lea ecx, [esp + 4]
call fcn.1013a190
push 0x101f8950
lea eax, [esp + 4]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x10143610
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018d9f9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.101587d0
lea ecx, [edi + 4]
mov dword [ebp - 4], 0
call fcn.10152c20
push dword [ebp + 8]
lea ecx, [edi + 0xc]
mov byte [ebp - 4], 1
mov dword [edi], vtable.Poco::Task.0
mov dword [edi + 4], vtable.Poco::Task.1.0
call fcn.10011bc0
push 0
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 2
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.10158810
lea ecx, [edi + 0x34]
mov byte [ebp - 4], 3
call fcn.10143a20
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x1014a600
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1018de58
push eax
mov dword fs:[0], esp
sub esp, 0x84
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x10b
ja 0x1014a7d8
je case.0x1014a64e.123
lea eax, [esi - 2]
cmp eax, 0xcc
ja case.0x1014a64e.4
movzx eax, byte [eax + 0x1014a874]
jmp dword [eax*4 + 0x1014a838]
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.10140bd0
push 0x101f9bb8
lea eax, [ebp - 0x38]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.10140ab0
push 0x101f9c90
lea eax, [ebp - 0x38]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.10140b80
push 0x101f9b70
lea eax, [ebp - 0x38]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.101407a0
push 0x101f9cd8
lea eax, [ebp - 0x38]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.10140870
push 0x101f9db0
lea eax, [ebp - 0x38]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.101413b0
push 0x101f9d20
lea eax, [ebp - 0x38]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.10141150
push 0x101f9d68
lea eax, [ebp - 0x38]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.sharing_violation
lea ecx, [ebp - 0x24]
call fcn.10011b80
mov dword [ebp - 4], 0
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x64]
call fcn.10140b00
push 0x101f9b2c
lea eax, [ebp - 0x64]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.lock_violation
lea ecx, [ebp - 0x24]
call fcn.10011b80
mov dword [ebp - 4], 1
jmp 0x1014a71f
push str.EOF_reached
lea ecx, [ebp - 0x24]
call fcn.10011b80
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x64]
call fcn.10141120
push 0x101f9d68
jmp 0x1014a734
push str.disk_is_full
lea ecx, [ebp - 0x24]
call fcn.10011b80
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 3
push eax
lea ecx, [ebp - 0x64]
call fcn.10141380
push 0x101f9d20
jmp 0x1014a734
push str.negative_seek
lea ecx, [ebp - 0x24]
call fcn.10011b80
mov dword [ebp - 4], 4
jmp 0x1014a71f
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x64]
call fcn.10141060
push 0x101f9ae4
jmp 0x1014a734
cmp esi, 0x781
je case.0x1014a64e.3
cmp esi, 0x1779
je 0x1014a807
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x90]
call fcn.10140b30
push 0x101f9b2c
lea eax, [ebp - 0x90]
jmp 0x1014a737
push 0x1779
push dword [ebp + 8]
lea ecx, [ebp - 0x64]
call fcn.10140c20
push 0x101f9c48
jmp 0x1014a734
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x64]
call fcn.10141010
push 0x101f9c00
jmp 0x1014a734
Function at 0x1014ab50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1018d810
push eax
mov dword fs:[0], esp
sub esp, 0x88
push esi
mov esi, ecx
lea eax, [esi + 0xc]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x14]
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, eax
mov dword [esi + 8], ecx
test ecx, ecx
je 0x1014abb5
mov eax, dword [esi + 0x10]
pop esi
test eax, eax
je 0x1014aba5
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x1014abe5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push str.cannot_create_thread
lea ecx, [ebp - 0x24]
call fcn.10011b80
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x68]
call fcn.101412c0
push 0x101fbac0
lea eax, [ebp - 0x68]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.cannot_set_thread_priority
lea ecx, [ebp - 0x3c]
call fcn.10011b80
push 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x94]
call fcn.101412c0
push 0x101fbac0
lea eax, [ebp - 0x94]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3