joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10015430
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009d069
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x100c7070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x28], esi
mov dword [esi + 0x10], 0
jb 0x10015490
mov eax, dword [esi]
jmp 0x10015492
mov eax, esi
mov byte [eax], 0
mov dword [ebp - 4], 0
push 0x1000
mov dword [ebp - 0x20], 1
call fcn.10098332
add esp, 4
mov edi, eax
push 0xfff
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x1001555b
push eax
call fcn.10098332
add esp, 4
mov ebx, eax
push ebx
push dword [ebp - 0x24]
push dword [ebp - 0x14]
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x10015552
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x100b96f8
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x10015552
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x10]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, dx
push eax
shr edx, 0x10
lea eax, [ebp - 0x40]
push edx
push str._d._d._d._d
push eax
call fcn.100177d0
add esp, 0x18
mov ecx, esi
push eax
call fcn.10001ff0
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x10015552
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.10002840
push ebx
call fcn.100452a3
add esp, 4
push edi
call fcn.100452a3
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10044baf
mov esp, ebp
pop ebp
ret
Function at 0x100158a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009d0b7
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push esi
push edi
mov eax, dword [0x100c7070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x10015900
mov eax, dword [esi]
jmp 0x10015902
mov eax, esi
push 0
push 0x100b86c2
mov byte [eax], 0
call fcn.10002440
mov dword [ebp - 4], 0
cmp dword [esi + 0x10], 0x104
mov dword [ebp - 0x10], 1
jb 0x1001594b
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0x104
jb 0x10015940
mov eax, dword [esi]
mov byte [eax + 0x104], 0
jmp 0x1001595d
mov eax, esi
mov byte [eax + 0x104], 0
jmp 0x1001595d
mov eax, 0x104
mov ecx, esi
sub eax, dword [esi + 0x10]
push 0
push eax
call fcn.10017650
cmp dword [esi + 0x14], 0x10
jb 0x10015967
mov eax, dword [esi]
jmp 0x10015969
mov eax, esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 1
sub esp, 8
mov ecx, esi
call fcn.10016890
push eax
push 0
lea eax, [ebp - 0x44]
mov ecx, esi
push eax
call fcn.10016170
push 0x100b96f8
mov edx, eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.10013110
add esp, 4
mov edi, eax
cmp esi, edi
je 0x100159e6
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x100159c1
inc ecx
push ecx
push dword [esi]
mov ecx, esi
call fcn.10002840
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x100159d9
mov eax, dword [esi]
jmp 0x100159db
mov eax, esi
push edi
mov ecx, esi
mov byte [eax], 0
call fcn.10002770
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x100159fb
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.10002840
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp eax, 0x10
jb 0x10015a22
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.10002840
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10015a40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100c7070]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], 0x10
push esi
push edi
mov esi, edx
mov dword [ebp - 8], 0
jb 0x10015a63
mov ecx, dword [ecx]
push 0x100b9708
push ecx
lea eax, [ebp - 8]
push eax
call fcn.10058e39
mov edi, eax
add esp, 0xc
test edi, edi
je 0x10015a9d
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x10015a8b
push ecx
call fcn.10058ef6
add esp, 4
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10044baf
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x10015aa8
mov esi, dword [esi]
push dword [ebp - 8]
push 1
push eax
push esi
call fcn.100591ae
push dword [ebp - 8]
call fcn.10058ef6
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
xor eax, eax
pop edi
pop esi
call fcn.10044baf
mov esp, ebp
pop ebp
ret
Function at 0x10015ae0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009d128
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100c7070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
push 0
push 0x100b86c2
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.10002440
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 0x10
jb 0x10015b46
mov esi, dword [esi]
push 0x100b970c
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.10058e39
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10015b70
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x10015be2
push eax
call fcn.10058ef6
add esp, 4
jmp 0x10015be2
push 2
push 0
push dword [ebp - 0x2c]
call fcn.100594c0
push dword [ebp - 0x2c]
call fcn.10059a32
push 0
push 0
push dword [ebp - 0x2c]
mov esi, eax
call fcn.100594c0
push esi
call fcn.10098332
push esi
mov edi, eax
push 0
push edi
call fcn.1004c3c0
push dword [ebp - 0x2c]
push 1
push esi
push edi
call fcn.10059c09
add esp, 0x3c
lea ecx, [ebp - 0x28]
push esi
push edi
call fcn.10002440
lea eax, [ebp - 0x28]
cmp ebx, eax
je 0x10015bcf
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.10002540
push edi
call fcn.100452a3
push dword [ebp - 0x2c]
call fcn.10058ef6
add esp, 8
xor esi, esi
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x10015bf7
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.10002840
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10044baf
mov esp, ebp
pop ebp
ret
Function at 0x10015c20
Capabilities:
Acquire debug privileges
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x100c7070]
xor eax, esp
mov dword [esp + 0x1c], eax
lea eax, [esp]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x10015c67
push str.OpenProcessToken_failed
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.10044baf
mov esp, ebp
pop ebp
ret
lea eax, [esp + 4]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x10015ca2
push str.LookupPrivilegeValue_failed
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [esp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.10044baf
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 4]
push 0
push 0
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
push 0x10
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
push 0
push dword [esp + 0x14]
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x10015ce4
push str.AdjustTokenPrivileges_failed
jmp 0x10015c82
push dword [esp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
jne 0x10015d16
push str.ERROR_NOT_ALL_ASSIGNED_failed
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.10044baf
mov esp, ebp
pop ebp
ret
push str._nEnableDebugPrivilege_succeed
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x1c]
mov al, 1
xor ecx, esp
call fcn.10044baf
mov esp, ebp
pop ebp
ret
Function at 0x100169c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009b066
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100c7070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10044bc0
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.10031847
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10017d80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009d3e9
mov eax, dword fs:[0]
push eax
sub esp, 0x84
push ebx
push esi
push edi
mov eax, dword [0x100c7070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
mov ecx, dword [ebp + 8]
movups xmmword [ebp - 0x90], xmm0
mov dword [ebp - 0x20], 0x2c2b2a29
movups xmmword [ebp - 0x80], xmm0
mov dword [ecx + 0x10], 0
movaps xmm0, xmmword [0x100ba340]
movups xmmword [ebp - 0x70], xmm0
mov dword [ecx + 0x14], 0
movaps xmm0, xmmword [str.456789:__]
movups xmmword [ebp - 0x60], xmm0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
movaps xmm0, xmmword [0x100ba320]
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x1c], 0x302f2e2d
movaps xmm0, xmmword [0x100ba310]
movups xmmword [ebp - 0x40], xmm0
mov word [ebp - 0x18], 0x3231
movaps xmm0, xmmword [0x100ba330]
movups xmmword [ebp - 0x30], xmm0
mov byte [ebp - 0x16], 0x33
mov dword [ecx + 0x10], 0
jb 0x10017e38
mov eax, dword [ecx]
jmp 0x10017e3a
mov eax, ecx
mov byte [eax], 0
xor edx, edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], edx
cmp dword [ebp + 0x10], edx
jle 0x10017f0e
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
nop
mov al, byte [esi]
cmp al, 0xd
je 0x10017efa
cmp al, 0xa
je 0x10017efa
movsx eax, al
movsx edi, byte [ebp + eax - 0x90]
movsx eax, byte [esi + 1]
add esi, 2
shl edi, 0x12
movsx eax, byte [ebp + eax - 0x90]
shl eax, 0xc
add edi, eax
mov eax, edi
sar eax, 0x10
push eax
push 1
call fcn.10017650
inc dword [ebx]
mov al, byte [esi]
cmp al, 0x3d
je 0x10017eed
mov ecx, dword [ebp + 8]
inc esi
movsx eax, al
movsx eax, byte [ebp + eax - 0x90]
shl eax, 6
add edi, eax
mov eax, edi
sar eax, 8
push eax
push 1
call fcn.10017650
inc dword [ebx]
mov al, byte [esi]
cmp al, 0x3d
je 0x10017eed
mov ecx, dword [ebp + 8]
inc esi
movsx eax, al
movsx eax, byte [ebp + eax - 0x90]
add edi, eax
push edi
push 1
call fcn.10017650
inc dword [ebx]
mov ecx, dword [ebp + 8]
mov eax, 4
mov edx, dword [ebp - 0x10]
jmp 0x10017f00
inc esi
mov eax, 1
add edx, eax
mov dword [ebp - 0x10], edx
cmp edx, dword [ebp + 0x10]
jl 0x10017e60
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100188d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x100c7070]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push 0
push 1
mov esi, ecx
push 0
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov dword [ebx + 4], edi
test edi, edi
jne 0x10018939
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
xorps xmm0, xmm0
movq qword [esp + 0x10], xmm0
mov dword [esp + 0x10], esi
call fcn.10047860
mov dword [esp + 0x14], eax
test esi, esi
jne 0x10018a1c
mov esi, dword [esp + 0x18]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
mov dword [ebx + 8], eax
cmp dword [esi + 8], 0
jne 0x10018985
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
xorps xmm0, xmm0
movq qword [esp + 0x10], xmm0
mov dword [esp + 0x10], esi
call fcn.10047860
mov dword [esp + 0x14], eax
test esi, esi
jne 0x10018a2a
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push 0
push ebx
push 0x10018a50
push 0
push 0
call fcn.10058b06
add esp, 0x18
mov dword [esi + 4], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x100189f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov dword [esp + 0x14], eax
call dword [edx]
test edi, edi
je 0x100189cc
push edi
call esi
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 8]
test eax, eax
je 0x100189da
push eax
call esi
mov ebx, dword [esp + 0x10]
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
mov dword [esp + 0x18], ebx
call fcn.10047860
mov dword [esp + 0x1c], eax
test ebx, ebx
jne 0x10018a38
test edi, edi
je 0x10018a08
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call esi
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10044baf
mov esp, ebp
pop ebp
ret 8
mov edx, str.thread.entry_event
lea ecx, [esp + 0x10]
call fcn.100040a0
mov edx, str.thread.exit_event
lea ecx, [esp + 0x10]
call fcn.100040a0
mov edx, str.thread
lea ecx, [esp + 0x18]
call fcn.100040a0
int3
Function at 0x10018ad0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100c7070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov eax, edx
xor ebx, ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esi
push edi
mov edi, dword [ebp + 0xc]
cmp esi, 0xffffffff
je 0x10018bba
cmp byte [ebp + 8], bl
je 0x10018b28
test byte [eax], 8
je 0x10018b28
xor eax, eax
mov dword [ebp - 8], eax
call fcn.10047860
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push ecx
lea eax, [ebp - 8]
mov ecx, esi
push eax
sub esp, 8
call fcn.10019050
add esp, 0x14
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call fcn.10047860
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
je 0x10018bba
call fcn.10047860
cmp dword [edi + 4], eax
jne 0x10018b61
cmp dword [edi], 0x2733
je 0x10018b73
call fcn.10047860
cmp dword [edi + 4], eax
jne 0x10018bb6
cmp dword [edi], 0x4d5
jne 0x10018bb6
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 8]
push eax
push 0x8004667e
push esi
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp - 0x14]
push 0
and byte [eax], 0xfc
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call fcn.10047860
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
jne 0x10018bc8
call fcn.10047860
mov dword [edi], 0
mov dword [edi + 4], eax
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10044baf
mov esp, ebp
pop ebp
ret
Function at 0x10018be0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100c7070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 8], esi
push edi
mov edi, edx
cmp esi, 0xffffffff
jne 0x10018c12
call fcn.10047860
mov dword [ebx], 0x2719
mov dword [ebx + 4], eax
jmp 0x10018c4a
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov edi, eax
call fcn.10047860
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [ebx + 4], esi
test edi, edi
jne 0x10018c47
call fcn.10047860
mov dword [ebx], edi
mov dword [ebx + 4], eax
mov esi, dword [ebp - 8]
call fcn.10047860
cmp dword [ebx + 4], eax
jne 0x10018c5c
cmp dword [ebx], 0x2734
je 0x10018c76
call fcn.10047860
cmp dword [ebx + 4], eax
jne 0x10018d10
cmp dword [ebx], 0x2733
jne 0x10018d10
mov edx, ebx
mov ecx, esi
call fcn.10019250
test eax, eax
js 0x10018d10
mov dword [ebp - 0xc], 0
cmp esi, 0xffffffff
jne 0x10018cb2
call fcn.10047860
mov dword [ebx], 0x2719
mov dword [ebx + 4], eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10044baf
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0xc]
push eax
push 0x1007
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
mov edi, eax
call fcn.10047860
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [ebx + 4], esi
test edi, edi
jne 0x10018cfe
call fcn.10047860
mov dword [ebx], edi
mov dword [ebx + 4], eax
jmp 0x10018d03
cmp edi, 0xffffffff
je 0x10018d10
call fcn.10047860
mov ecx, dword [ebp - 0xc]
mov dword [ebx], ecx
mov dword [ebx + 4], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10044baf
mov esp, ebp
pop ebp
ret

Function at 0x10018d30
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x100c7070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push 0
mov edi, edx
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 0
push eax
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.WS2_32.dll_WSARecv]
mov edi, eax
call fcn.10047860
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [ebx + 4], esi
cmp eax, 0x40
jne 0x10018d9d
call fcn.10047860
mov dword [ebx], 0x2746
jmp 0x10018daf
cmp eax, 0x4d2
jne 0x10018db2
call fcn.10047860
mov dword [ebx], 0x274d
mov dword [ebx + 4], eax
test edi, edi
je 0x10018dca
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10044baf
mov esp, ebp
pop ebp
ret
call fcn.10047860
mov ecx, dword [ebp - 4]
pop edi
mov dword [ebx + 4], eax
xor ecx, ebp
mov eax, dword [ebp - 8]
pop esi
mov dword [ebx], 0
pop ebx
call fcn.10044baf
mov esp, ebp
pop ebp
ret
Function at 0x10018ed0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100c7070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push 0
mov edi, edx
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.WS2_32.dll_WSASend]
mov edi, eax
call fcn.10047860
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [ebx + 4], esi
cmp eax, 0x40
jne 0x10018f34
call fcn.10047860
mov dword [ebx], 0x2746
jmp 0x10018f46
cmp eax, 0x4d2
jne 0x10018f49
call fcn.10047860
mov dword [ebx], 0x274d
mov dword [ebx + 4], eax
test edi, edi
je 0x10018f61
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10044baf
mov esp, ebp
pop ebp
ret
call fcn.10047860
mov ecx, dword [ebp - 4]
pop edi
mov dword [ebx + 4], eax
xor ecx, ebp
mov eax, dword [ebp - 8]
pop esi
mov dword [ebx], 0
pop ebx
call fcn.10044baf
mov esp, ebp
pop ebp
ret

Function at 0x100190d0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x100c7070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x10019111
call fcn.10047860
mov dword [edi + 4], eax
or eax, esi
mov dword [edi], 0x2719
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10044baf
mov esp, ebp
pop ebp
ret
push 0
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x118], 1
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
push 0
lea eax, [ebp - 0x118]
push eax
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call fcn.10047860
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
je 0x10019168
jle 0x10019176
call fcn.10047860
mov dword [edi + 4], eax
mov dword [edi], 0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10044baf
mov esp, ebp
pop ebp
ret
Function at 0x10019190
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x100c7070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x100191d1
call fcn.10047860
mov dword [edi + 4], eax
or eax, esi
mov dword [edi], 0x2719
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10044baf
mov esp, ebp
pop ebp
ret
push 0
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x118], 1
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
lea eax, [ebp - 0x118]
push eax
push 0
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call fcn.10047860
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
je 0x10019228
jle 0x10019236
call fcn.10047860
mov dword [edi + 4], eax
mov dword [edi], 0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10044baf
mov esp, ebp
pop ebp
ret

Function at 0x10019250
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100c7070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
cmp esi, 0xffffffff
jne 0x10019290
call fcn.10047860
mov dword [edi + 4], eax
or eax, esi
mov dword [edi], 0x2719
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10044baf
mov esp, ebp
pop ebp
ret
push 0
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x218], 1
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x110], 1
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call fcn.10047860
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
js 0x100192fa
call fcn.10047860
mov dword [edi], 0
mov dword [edi + 4], eax
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10044baf
mov esp, ebp
pop ebp
ret