joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10076f00
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e6735
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x24
mov eax, dword [0x10276bc4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x30], esi
xorps xmm0, xmm0
mov dword [ebp - 0x34], esi
push 0x40
lea ecx, [ebp - 0x2c]
movups xmmword [ebp - 0x2c], xmm0
call fcn.10052f60
movups xmm0, xmmword [str.BufferedTransformation:_this_object_doesnt_allow_input]
mov ecx, eax
mov dword [ebp - 0x1c], 0x37
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x18], 0x3f
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x102600dc]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [0x102600ec]
movups xmmword [ecx + 0x20], xmm0
mov eax, dword [0x102600fc]
mov dword [ecx + 0x30], eax
mov ax, word [0x10260100]
mov word [ecx + 0x34], ax
mov al, byte [0x10260102]
mov byte [ecx + 0x36], al
mov byte [ecx + 0x37], 0
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movq qword [esi + 4], xmm0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
lea ecx, [esi + 0x10]
mov dword [esi], vtable.CryptoPP::Exception.0
mov dword [esi + 0xc], 0
call fcn.1004ee30
mov ecx, dword [ebp - 0x18]
mov dword [esi], vtable.CryptoPP::NotImplemented.0
cmp ecx, 0x10
jb 0x1007700f
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10077005
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10077005
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.101df293
add esp, 8
mov dword [esi], vtable.CryptoPP::InputRejecting_class_CryptoPP::Filter_::InputRejected.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.101dee0e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x100787d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push dword [ebp + 8]
mov esi, ecx
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100788c9
xor cl, cl
nop dword [eax + eax]
movsx edx, cl
cmp byte [edx + eax], 0xb8
je 0x10078819
inc cl
cmp cl, 0xf
jl 0x10078800
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
mov ebx, dword [edx + eax + 1]
test ebx, ebx
je 0x100788c8
push str.Wow64Transition
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40
push 0x3000
push 0x10
mov eax, dword [eax]
mov ecx, eax
mov dword [ebp - 0xc], eax
shr ecx, 8
mov dword [ebp - 0x10], ecx
mov ecx, eax
shr eax, 0x18
mov dword [ebp - 0x18], eax
mov eax, ebx
shr eax, 8
mov dword [ebp + 8], eax
mov eax, ebx
shr eax, 0x10
mov dword [ebp - 4], eax
mov eax, ebx
shr ecx, 0x10
shr eax, 0x18
push 0
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi], eax
test eax, eax
je 0x100788c8
mov ecx, dword [ebp + 8]
mov dword [eax], 0xb8909090
mov byte [eax + 4], bl
mov byte [eax + 5], cl
mov ecx, dword [ebp - 4]
mov byte [eax + 6], cl
mov ecx, dword [ebp - 8]
mov byte [eax + 7], cl
mov ecx, dword [ebp - 0xc]
mov byte [eax + 8], 0xba
mov byte [eax + 9], cl
mov ecx, dword [ebp - 0x10]
mov byte [eax + 0xa], cl
mov ecx, dword [ebp - 0x14]
mov byte [eax + 0xb], cl
mov ecx, dword [ebp - 0x18]
mov byte [eax + 0xc], cl
mov word [eax + 0xd], 0xd2ff
mov byte [eax + 0xf], 0xc3
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x100790b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x10260404
push dword [ebp + 8]
lea eax, [ebp - 4]
mov dword [ebp - 8], ecx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov ebx, dword [ebp - 4]
add esp, 0xc
test ebx, ebx
jne 0x100790eb
lea eax, [ebx - 3]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 2
push 0
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
je 0x10079104
mov esi, 0xfffffffd
jmp 0x1007917c
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
add esp, 4
test esi, esi
js 0x100790fd
jne 0x1007911a
xor esi, esi
jmp 0x1007917c
lea eax, [esi + 1]
push 0x1025a678
push eax
call fcn.101df585
mov edi, eax
add esp, 8
test edi, edi
jne 0x10079136
lea esi, [eax - 2]
jmp 0x1007917c
push 0
push 0
push ebx
mov byte [edi + esi], 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
push ebx
push esi
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, esi
je 0x10079167
push edi
call fcn.101df392
mov esi, 0xfffffffd
jmp 0x10079179
mov ecx, dword [ebp - 8]
push eax
push edi
call fcn.10080dd0
push edi
mov esi, eax
call fcn.101df392
add esp, 4
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1007a8f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e6c1c
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x10276bc4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [edi], eax
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
lea esi, [edi + 0x38]
mov dword [edi + 0x30], 0
mov byte [edi + 0x34], 0
mov dword [ebp - 0x14], esi
mov dword [esi + 0x24], 0
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x1007a9a4
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
mov al, byte [ebp + 0x34]
lea ecx, [edi + 0x70]
mov byte [ebp - 4], 5
mov byte [edi + 0x60], al
push 9
mov byte [edi + 0x68], 9
call fcn.10078050
cmp byte [edi + 0x68], 1
mov ebx, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
jne 0x1007a9e2
cmp dword [edi + 0x70], 0
jne 0x1007a9e2
push 0x4c8
push str.D:3.0dll_Testdsoundlibsjsoninclude_nlohmannjson.hpp
push str.m_type___value_t::object__m_value.object___nullptr
call ebx
add esp, 0xc
cmp byte [edi + 0x68], 2
jne 0x1007aa02
cmp dword [edi + 0x70], 0
jne 0x1007aa02
push 0x4c9
push str.D:3.0dll_Testdsoundlibsjsoninclude_nlohmannjson.hpp
push str.m_type___value_t::array__m_value.array___nullptr
call ebx
add esp, 0xc
cmp byte [edi + 0x68], 3
jne 0x1007aa22
cmp dword [edi + 0x70], 0
jne 0x1007aa22
push 0x4ca
push str.D:3.0dll_Testdsoundlibsjsoninclude_nlohmannjson.hpp
push str.m_type___value_t::string__m_value.string___nullptr
call ebx
add esp, 0xc
cmp byte [edi + 0x68], 8
jne 0x1007aa42
cmp dword [edi + 0x70], 0
jne 0x1007aa42
push 0x4cb
push str.D:3.0dll_Testdsoundlibsjsoninclude_nlohmannjson.hpp
push str.m_type___value_t::binary__m_value.binary___nullptr
call ebx
add esp, 0xc
lea eax, [ebp - 0xd]
mov byte [ebp - 4], 6
push eax
lea ecx, [edi + 0x10]
mov byte [ebp - 0xd], 1
call fcn.1007b6e0
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x1007aa6e
mov esi, dword [ecx]
lea eax, [ebp + 0xc]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30
Function at 0x10085f80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [0x102a69c0]
push esi
push dword [ebp + 8]
mov dword [edi + 0x154], 1
lea eax, [edi + 0x15c]
lea ebx, [edi + 0x154]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [edi + 0x158], esi
add esi, 8
je 0x10086069
mov eax, dword [edi]
test eax, eax
jne 0x10085fdf
push 0x4f
push str.D:3.0dll_Testdsoundconnection_win.cpp
push str.self
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
jmp 0x10086022
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x10086022
test ebx, ebx
jne 0x10086002
push 0x56
push str.D:3.0dll_Testdsoundconnection_win.cpp
push 0x1025d810
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
jmp 0x10086022
push 0
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push ecx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x10086022
cmp dword [ebp + 0xc], esi
je 0x10086069
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x10086042
mov eax, dword [edi + 4]
cmp eax, 3
je 0x10086036
cmp eax, 1
jne 0x10086042
lea eax, [edi + 0x54]
push eax
push dword [edi + 0x50]
call ecx
add esp, 8
mov esi, dword [edi]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
xor al, al
mov byte [esi], 0
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10093dc0
Capabilities:
Hash data using murmur3
Resolve function by parsing pe exports

Disassembly:
cmp byte [0x1027d924], 0
jne 0x10093dce
call fcn.100a8bf0
cmp byte [0x1027d92d], 0
je 0x10093dec
push 0
push 0x40
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.100a8f80
add esp, 0x10
ret
jmp fcn.1008f440
Function at 0x100b3200
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
sub esp, 0x18
mov eax, dword [0x10276bc4]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
test esi, esi
je 0x100b32cb
lea eax, [esp + 4]
push eax
push esi
push 2
call fcn.100ccbc0
add esp, 0xc
test eax, eax
jne 0x100b32cb
lea eax, [esp + 8]
push eax
push esi
push 0x17
call fcn.100ccbc0
add esp, 0xc
test eax, eax
jne 0x100b32cb
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x100b3254
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.100ccb90
add esp, 0xc
test eax, eax
je 0x100b3288
sub eax, esi
push eax
push 0x2e
push esi
call fcn.100ccb90
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x100b328a
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
mov ebx, 0x1505
add edi, esi
cmp esi, edi
jae 0x100b32b6
mov al, byte [esi]
push eax
call fcn.100c1420
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0x100b3298
pop edi
movzx eax, bl
pop ebx
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.101dee0e
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
xor eax, eax
pop esi
xor ecx, esp
call fcn.101dee0e
add esp, 0x18
ret

Function at 0x100b3f50
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [0x10273100]
cmp eax, 0xffffffff
jne 0x100b3f92
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x100b3f78
xor eax, eax
test eax, eax
mov dword [0x10273100], eax
setg al
ret
push eax
push 0
mov dword [0x10273100], 1
call fcn.100bd630
mov eax, dword [0x10273100]
add esp, 8
test eax, eax
setg al
ret

Function at 0x100b3fa0
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x2f0], 2
jne 0x100b3ff5
mov eax, dword [0x10273100]
cmp eax, 0xffffffff
jne 0x100b3fef
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x100b3fd5
xor eax, eax
test eax, eax
mov dword [0x10273100], eax
setg al
ret
push eax
push 0
mov dword [0x10273100], 1
call fcn.100bd630
mov eax, dword [0x10273100]
add esp, 8
test eax, eax
setg al
ret
mov al, 1
ret
Function at 0x100bcaf0
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi + 0x608], 0
je 0x100bcb34
push esi
push 1
push edi
call fcn.100af0e0
push dword [edi + 0x59c]
mov eax, dword [edi + 0x608]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.100af0e0
add esp, 0x24
mov eax, esi
pop esi
pop edi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x100bcb6d
push dword [edi + 0x598]
lea eax, [eax + eax*2]
push 1
add eax, 0x101f1660
push 2
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
push dword [edi + 0x598]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x20
xor eax, eax
pop edi
ret

Function at 0x100bd160
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x8c
mov eax, dword [0x10276bc4]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x94]
push ebx
mov ebx, dword [esp + 0x94]
mov dword [esp + 8], eax
xor eax, eax
push ebp
mov ebp, dword [esp + 0xa8]
mov ecx, dword [ebx + 0x1c4]
cmp edx, ecx
push esi
sete al
mov esi, 0x1e4
push edi
lea eax, [eax*4 + 0x1c0]
mov eax, dword [eax + ebx]
mov dword [esp + 0x10], eax
mov eax, 0x1f4
cmove esi, eax
mov eax, dword [ebx + 0x2e8]
add esi, ebx
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x100bd26e
xor eax, eax
cmp edx, ecx
sete al
lea eax, [eax*4 + 0x1d4]
cmp dword [eax + ebx], 0x100bce30
jne 0x100bd26e
cmp dword [esi], 0
je 0x100bd1f8
test edi, edi
je 0x100bd26e
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esp + 0x20]
call fcn.100bfb30
add esp, 0x14
cmp eax, 0xffffffff
je 0x100bd26e
test al, 1
je 0x100bd26e
mov ecx, dword [esi]
test ecx, ecx
jne 0x100bd24b
mov eax, dword [ebx]
mov eax, dword [eax + 0x8fc]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x102730ec]
mov edi, dword [esi + 4]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test ecx, ecx
je 0x100bd267
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x100bd26e
add dword [esi + 8], eax
jmp 0x100bd26e
mov dword [esi + 4], 0
push 0
push dword [esp + 0xb0]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100bd2d7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x100bd2a8
mov dword [ebp], 0
lea eax, [edi + 0x52]
jmp 0x100bd2dc
push 0x80
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.100ab060
push eax
push str.Send_failure:__s
push dword [ebx]
call fcn.100bcb80
mov eax, dword [ebx]
add esp, 0x18
mov dword [eax + 0xcec], esi
mov eax, 0x37
jmp 0x100bd2d9
xor eax, eax
mov dword [ebp], edi
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.101dee0e
add esp, 0x8c
ret
Function at 0x100bf130
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x100bf14a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x101f1af4
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strpbrk
add esp, 8
test eax, eax
je 0x100bf192
test ebp, ebp
je 0x100bf183
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x100bf1b8
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100bf1b8
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x100bf26f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100bf1d5
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x102730ec]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x100bf265
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100bf265
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100bf207
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100bf220
sub ecx, edx
sub ecx, esi
add ecx, ebx
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x100bf230
test ebp, ebp
je 0x100bf25c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x102730f0]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x102730f0]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x100cb110
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Start tcp server

Disassembly:
sub esp, 0x34
mov eax, dword [0x10276bc4]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov ebx, dword [esp + 0x48]
push esi
mov esi, dword [sym.imp.WS2_32.dll_socket]
push edi
push 6
push 1
push 2
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x18], 1
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x100cb2f6
xorps xmm0, xmm0
mov eax, 2
push 0x7f000001
movlpd qword [esp + 0x20], xmm0
mov word [esp + 0x18], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x18], eax
xor eax, eax
push 4
mov word [esp + 0x1a], ax
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push edi
mov dword [ebx + 4], 0xffffffff
mov dword [ebx], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x100cb2e4
push 0x10
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x100cb2e4
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x100cb2e4
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x100cb2e4
push 0
push 1
push 2
call esi
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x100cb2e4
push 0x10
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x100cb2e4
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x100cb2e4
push ebx
push 0x101f34d4
lea eax, [esp + 0x2c]
push 0xc
push eax
call fcn.100c00c0
lea esi, [esp + 0x34]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x100cb242
push 0
sub esi, ecx
lea eax, [esp + 0x28]
push esi
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
jne 0x100cb2e4
push 0
push 0xc
lea eax, [esp + 0x38]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, esi
jne 0x100cb2e4
lea ecx, [esp + 0x24]
lea edx, [esp + 0x30]
sub esi, 4
jb 0x100cb297
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x100cb29c
add ecx, 4
add edx, 4
sub esi, 4
jae 0x100cb286
cmp esi, 0xfffffffc
je 0x100cb2c9
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x100cb2e4
cmp esi, 0xfffffffd
je 0x100cb2c9
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x100cb2e4
cmp esi, 0xfffffffe
je 0x100cb2c9
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x100cb2e4
cmp esi, 0xffffffff
je 0x100cb2c9
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x100cb2e4
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.101dee0e
add esp, 0x34
ret
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push edi
call esi
push dword [ebx]
call esi
push dword [ebx + 4]
call esi
mov ecx, dword [esp + 0x3c]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101dee0e
add esp, 0x34
ret
Function at 0x100cd5a0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push esi
xor esi, esi
mov dword [esp + 4], esi
mov dword [eax], esi
lea eax, [esp + 8]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x100cd752
push ebx
mov ebx, dword [esp + 0xc]
push edi
test ebx, ebx
je 0x100cd73c
push ebp
mov eax, dword [ebx + 4]
cmp eax, 2
jne 0x100cd5ef
lea ebp, [eax + 0xe]
jmp 0x100cd5fb
cmp eax, 0x17
jne 0x100cd6a9
lea ebp, [eax + 5]
cmp dword [ebx + 0x18], 0
je 0x100cd6a9
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x100cd6a9
cmp eax, ebp
jb 0x100cd6a9
push 0x20
call dword [0x102730ec]
mov edi, eax
add esp, 4
test edi, edi
je 0x100cd731
mov ecx, dword [ebx]
mov dword [edi], ecx
mov ecx, dword [ebx + 4]
mov dword [edi + 4], ecx
mov ecx, dword [ebx + 8]
mov dword [edi + 8], ecx
mov eax, dword [ebx + 0xc]
push ebp
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ebp
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
call dword [0x102730ec]
add esp, 4
mov dword [edi + 0x18], eax
test eax, eax
je 0x100cd720
push ebp
push dword [ebx + 0x18]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x14]
add esp, 0xc
test eax, eax
je 0x100cd695
push eax
call dword [0x102730f8]
add esp, 4
mov dword [edi + 0x14], eax
test eax, eax
je 0x100cd706
mov eax, dword [esp + 0x10]
test esi, esi
cmove esi, edi
test eax, eax
je 0x100cd6a5
mov dword [eax + 0x1c], edi
mov dword [esp + 0x10], edi
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x100cd5e2
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop ebp
test eax, eax
je 0x100cd6c8
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebx, ebx
je 0x100cd738
test esi, esi
je 0x100cd6f5
push dword [esi + 0x18]
call dword [0x102730f0]
push dword [esi + 0x14]
call dword [0x102730f0]
mov edi, dword [esi + 0x1c]
push esi
call dword [0x102730f0]
add esp, 0xc
mov esi, edi
test edi, edi
jne 0x100cd6d0
mov eax, dword [esp + 0x28]
xor esi, esi
pop edi
mov dword [eax], esi
mov eax, ebx
pop ebx
pop esi
add esp, 0xc
ret
push dword [edi + 0x18]
mov ebx, 8
call dword [0x102730f0]
push edi
call dword [0x102730f0]
add esp, 8
jmp 0x100cd6b8
push edi
mov ebx, 8
call dword [0x102730f0]
add esp, 4
jmp 0x100cd6b8
mov ebx, 8
jmp 0x100cd6b8
test esi, esi
jne 0x100cd748
mov ebx, 0x2af9
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], esi
mov eax, ebx
pop ebx
pop esi
add esp, 0xc
ret