joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10049e30
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 0x10049f29
xor cl, cl
nop dword [eax + eax]
movsx edx, cl
cmp byte [edx + eax], 0xb8
je 0x10049e79
inc cl
cmp cl, 0xf
jl 0x10049e60
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
mov ebx, dword [edx + eax + 1]
test ebx, ebx
je 0x10049f28
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 0x10049f28
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 0x1004d8c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b80d0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1023ebb0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esi], vtable.CryptoPP::FilterWithBufferedInput.0
mov dword [esi + 4], vtable.CryptoPP::FilterWithBufferedInput.1.0
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x30]
cmp eax, ecx
mov edx, dword [esi + 0x34]
mov edi, edx
cmovb ecx, eax
xor al, al
rep stosb byte es:[edi], al
push edx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov ecx, dword [esi + 0xc]
add esp, 4
test ecx, ecx
je 0x1004d924
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x1004d935
push 0x48
push esi
call fcn.101b49b5
add esp, 8
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 4
Function at 0x1004df80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b80d0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1023ebb0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
cmp eax, ecx
mov edx, dword [esi + 0x38]
mov edi, edx
cmovb ecx, eax
xor al, al
rep stosb byte es:[edi], al
push edx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov ecx, dword [esi + 0xc]
add esp, 4
test ecx, ecx
je 0x1004dfd7
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x1004dfe8
push 0x3c
push esi
call fcn.101b49b5
add esp, 8
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 4
Function at 0x1004e160
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b8661
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x1023ebb0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 6
call fcn.10069070
push 0
mov ecx, edi
mov esi, eax
call fcn.1006b6c0
mov dword [ebp - 4], 0
mov dword [edi], vtable.CryptoPP::BaseN_Decoder.0
mov dword [edi + 4], vtable.CryptoPP::BaseN_Decoder.1.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 + 0x30], 0xffffffff
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
push dword [ebp + 8]
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.1006c1c0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.1006dd20
mov ebx, eax
push 0x14
mov byte [ebp - 4], 3
call fcn.101b4985
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], eax
mov dword [eax + 4], str.DecodingLookupArray
mov word [eax + 8], 1
mov dword [eax + 0xc], 0
mov dword [eax], vtable.CryptoPP::AlgorithmParametersTemplate_int_const__.0
mov dword [eax + 0x10], esi
mov byte [ebp - 4], 4
mov esi, dword [ebx + 4]
mov dword [ebx + 4], 0
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x1004e262
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], esi
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x10], 0
test ecx, ecx
je 0x1004e27c
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebp + 8]
mov dword [ebx + 4], eax
mov byte [ebx + 8], 1
push ebx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.1006dca0
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x1004e2a8
mov eax, dword [ecx]
push 1
call dword [eax]
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
push str.Log2Base
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x28], vtable.CryptoPP::NameValuePairs.0
call fcn.1005abf0
push eax
mov ecx, edi
call fcn.10070f50
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x1004e2dd
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi], vtable.CryptoPP::Base64Decoder.1.0
mov eax, edi
mov dword [edi + 4], vtable.CryptoPP::Base64Decoder.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10051580
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b8d80
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x1023ebb0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 2
push eax
call fcn.10049670
lea eax, [ebp + 0x24]
mov byte [ebp - 4], 3
push eax
lea ecx, [esi + 0x18]
call fcn.10049670
lea eax, [ebp + 0x3c]
mov byte [ebp - 4], 4
push eax
lea ecx, [esi + 0x30]
call fcn.10049670
mov al, byte [ebp + 8]
mov dword [esi + 0x48], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0xf
mov byte [esi + 0x48], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0xf
mov dword [esi + 0x78], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0xf
mov dword [esi + 0x90], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0xf
mov dword [esi + 0xa8], 0
mov dword [esi + 0xb8], 0
mov dword [esi + 0xbc], 0xf
mov byte [esi + 0xc0], al
mov dword [esi + 0xc4], 0
mov dword [esi + 0xd4], 0
mov dword [esi + 0xd8], 0xf
mov byte [esi + 0xc4], 0
mov dword [esi + 0xdc], 0
mov dword [esi + 0xec], 0
mov dword [esi + 0xf0], 0xf
mov byte [esi + 0xdc], 0
mov dword [esi + 0xf4], 0
mov dword [esi + 0x104], 0
mov dword [esi + 0x108], 0xf
mov byte [esi + 0xf4], 0
mov byte [ebp - 4], 5
lea ecx, [esi + 0x118]
push 0
mov byte [esi + 0x110], 0
call fcn.1005a4f0
mov edx, dword [ebp + 0x20]
cmp edx, 0x10
jb 0x10051727
mov ecx, dword [ebp + 0xc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1005171d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100517a1
push edx
push ecx
call fcn.101b49b5
add esp, 8
mov edx, dword [ebp + 0x38]
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 0xf
mov byte [ebp + 0xc], 0
cmp edx, 0x10
jb 0x10051769
mov ecx, dword [ebp + 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1005175f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100517a1
push edx
push ecx
call fcn.101b49b5
add esp, 8
mov edx, dword [ebp + 0x50]
mov dword [ebp + 0x34], 0
mov dword [ebp + 0x38], 0xf
mov byte [ebp + 0x24], 0
cmp edx, 0x10
jb 0x100517b1
mov ecx, dword [ebp + 0x3c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100517a7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100517a7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.101b49b5
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 0x4c
Function at 0x10058050
Capabilities:
Create thread
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
mov eax, dword [0x1023ebb0]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [0x10245acc]
push esi
push edi
mov edi, dword [ebp + 8]
test eax, eax
jne 0x100580dd
push 0x104
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x1022f3ac
lea eax, [esp + 0x14]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov eax, dword [0x10245acc]
add esp, 0xc
test eax, eax
jne 0x100580dd
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x10245acc], eax
test eax, eax
jne 0x100580dd
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.PROXYDLL:_Original_DLL_not_loaded_ERROR:
call esi
push 0x1022f3ac
call esi
push 0x1022f3a4
call esi
mov eax, dword [0x10245acc]
push 0x1022f3c0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
call eax
push 8
mov esi, eax
call fcn.101b4985
add esp, 4
mov dword [0x10245bd8], eax
mov dword [eax], vtable.myIDirect3D9.0
push 4
mov dword [eax + 4], esi
call fcn.101b4985
add esp, 4
lea ecx, [esp + 0xc]
mov dword [eax], 0x10057cb0
push ecx
push 0
push eax
push 0x1004b240
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esp + 8], eax
test eax, eax
je 0x10058179
mov ecx, dword [esp + 0xc]
test ecx, ecx
jne 0x10058148
push 1
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push ecx
push eax
call dword [sym.imp.MSVCP140.dll__Thrd_detach]
add esp, 8
test eax, eax
je 0x1005815e
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
mov ecx, dword [esp + 0x21c]
mov eax, dword [0x10245bd8]
pop edi
pop esi
xor ecx, esp
call fcn.101b493a
mov esp, ebp
pop ebp
ret 4
push 6
mov dword [esp + 0x10], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x1006b3e0
Capabilities:
Hash data using murmur3
Resolve function by parsing pe exports

Disassembly:
cmp byte [0x10242644], 0
jne 0x1006b3ee
call fcn.1007ee30
cmp byte [0x1024264d], 0
je 0x1006b40c
push 0
push 0x40
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.1007f1c0
add esp, 0x10
ret
jmp fcn.10069790
Function at 0x100892b0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
sub esp, 0x18
mov eax, dword [0x1023ebb0]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
test esi, esi
je 0x1008937b
lea eax, [esp + 4]
push eax
push esi
push 2
call fcn.100a2c90
add esp, 0xc
test eax, eax
jne 0x1008937b
lea eax, [esp + 8]
push eax
push esi
push 0x17
call fcn.100a2c90
add esp, 0xc
test eax, eax
jne 0x1008937b
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10089304
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.100a2c60
add esp, 0xc
test eax, eax
je 0x10089338
sub eax, esi
push eax
push 0x2e
push esi
call fcn.100a2c60
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x1008933a
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 0x10089366
mov al, byte [esi]
push eax
call fcn.100974f0
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 0x10089348
pop edi
movzx eax, bl
pop ebx
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.101b493a
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
xor eax, eax
pop esi
xor ecx, esp
call fcn.101b493a
add esp, 0x18
ret

Function at 0x1008a000
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [0x1023b0ec]
cmp eax, 0xffffffff
jne 0x1008a042
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x1008a028
xor eax, eax
test eax, eax
mov dword [0x1023b0ec], eax
setg al
ret
push eax
push 0
mov dword [0x1023b0ec], 1
call fcn.10093700
mov eax, dword [0x1023b0ec]
add esp, 8
test eax, eax
setg al
ret

Function at 0x1008a050
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x2f0], 2
jne 0x1008a0a5
mov eax, dword [0x1023b0ec]
cmp eax, 0xffffffff
jne 0x1008a09f
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x1008a085
xor eax, eax
test eax, eax
mov dword [0x1023b0ec], eax
setg al
ret
push eax
push 0
mov dword [0x1023b0ec], 1
call fcn.10093700
mov eax, dword [0x1023b0ec]
add esp, 8
test eax, eax
setg al
ret
mov al, 1
ret
Function at 0x10092bc0
Capabilities:
Write file on windows

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

Disassembly:
sub esp, 0x8c
mov eax, dword [0x1023ebb0]
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 0x1009333e
xor eax, eax
cmp edx, ecx
sete al
lea eax, [eax*4 + 0x1d4]
cmp dword [eax + ebx], 0x10092f00
jne 0x1009333e
cmp dword [esi], 0
je 0x100932c8
test edi, edi
je 0x1009333e
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esp + 0x20]
call fcn.10095c00
add esp, 0x14
cmp eax, 0xffffffff
je 0x1009333e
test al, 1
je 0x1009333e
mov ecx, dword [esi]
test ecx, ecx
jne 0x1009331b
mov eax, dword [ebx]
mov eax, dword [eax + 0x8fc]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x1023b0d8]
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 0x10093337
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 0x1009333e
add dword [esi + 8], eax
jmp 0x1009333e
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 0x100933a7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x10093378
mov dword [ebp], 0
lea eax, [edi + 0x52]
jmp 0x100933ac
push 0x80
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.10081100
push eax
push str.Send_failure:__s
push dword [ebx]
call fcn.10092c50
mov eax, dword [ebx]
add esp, 0x18
mov dword [eax + 0xcec], esi
mov eax, 0x37
jmp 0x100933a9
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.101b493a
add esp, 0x8c
ret
Function at 0x10095200
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 0x1009521a
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 0x1022efdc
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strpbrk
add esp, 8
test eax, eax
je 0x10095262
test ebp, ebp
je 0x10095253
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 0x10095288
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10095288
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 0x1009533f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100952a5
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x1023b0d8]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10095335
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10095335
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100952d7
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 0x100952f0
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 0x10095300
test ebp, ebp
je 0x1009532c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x1023b0dc]
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 [0x1023b0dc]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x100a11e0
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 [0x1023ebb0]
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 0x100a13c6
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 0x100a13b4
push 0x10
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x100a13b4
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 0x100a13b4
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x100a13b4
push 0
push 1
push 2
call esi
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x100a13b4
push 0x10
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x100a13b4
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x100a13b4
push ebx
push 0x101c4054
lea eax, [esp + 0x2c]
push 0xc
push eax
call fcn.10096190
lea esi, [esp + 0x34]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x100a1312
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 0x100a13b4
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 0x100a13b4
lea ecx, [esp + 0x24]
lea edx, [esp + 0x30]
sub esi, 4
jb 0x100a1367
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x100a136c
add ecx, 4
add edx, 4
sub esi, 4
jae 0x100a1356
cmp esi, 0xfffffffc
je 0x100a1399
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x100a13b4
cmp esi, 0xfffffffd
je 0x100a1399
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x100a13b4
cmp esi, 0xfffffffe
je 0x100a1399
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x100a13b4
cmp esi, 0xffffffff
je 0x100a1399
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x100a13b4
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.101b493a
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.101b493a
add esp, 0x34
ret
Function at 0x100a3670
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 0x100a3822
push ebx
mov ebx, dword [esp + 0xc]
push edi
test ebx, ebx
je 0x100a380c
push ebp
mov eax, dword [ebx + 4]
cmp eax, 2
jne 0x100a36bf
lea ebp, [eax + 0xe]
jmp 0x100a36cb
cmp eax, 0x17
jne 0x100a3779
lea ebp, [eax + 5]
cmp dword [ebx + 0x18], 0
je 0x100a3779
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x100a3779
cmp eax, ebp
jb 0x100a3779
push 0x20
call dword [0x1023b0d8]
mov edi, eax
add esp, 4
test edi, edi
je 0x100a3801
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 [0x1023b0d8]
add esp, 4
mov dword [edi + 0x18], eax
test eax, eax
je 0x100a37f0
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 0x100a3765
push eax
call dword [0x1023b0e4]
add esp, 4
mov dword [edi + 0x14], eax
test eax, eax
je 0x100a37d6
mov eax, dword [esp + 0x10]
test esi, esi
cmove esi, edi
test eax, eax
je 0x100a3775
mov dword [eax + 0x1c], edi
mov dword [esp + 0x10], edi
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x100a36b2
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop ebp
test eax, eax
je 0x100a3798
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebx, ebx
je 0x100a3808
test esi, esi
je 0x100a37c5
push dword [esi + 0x18]
call dword [0x1023b0dc]
push dword [esi + 0x14]
call dword [0x1023b0dc]
mov edi, dword [esi + 0x1c]
push esi
call dword [0x1023b0dc]
add esp, 0xc
mov esi, edi
test edi, edi
jne 0x100a37a0
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 [0x1023b0dc]
push edi
call dword [0x1023b0dc]
add esp, 8
jmp 0x100a3788
push edi
mov ebx, 8
call dword [0x1023b0dc]
add esp, 4
jmp 0x100a3788
mov ebx, 8
jmp 0x100a3788
test esi, esi
jne 0x100a3818
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