joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100f9900
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x460
mov eax, dword [0x103e1bc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push esi
push edi
xor esi, esi
mov dword [ebp - 0x460], 0
push esi
push 2
call ebx
mov edi, eax
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x100f99c9
nop dword [eax]
mov ecx, str.ProjectTitan.exe
lea eax, [ebp - 0x20c]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100f9996
test dx, dx
je 0x100f9992
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100f9996
add eax, 4
add ecx, 4
test dx, dx
jne 0x100f9970
xor eax, eax
jmp 0x100f999b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100f99b7
mov eax, dword [ebp - 0x21c]
cmp eax, esi
jle 0x100f99b7
mov esi, eax
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x460], eax
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x100f9960
xor edi, edi
xor esi, esi
push edi
push 2
call ebx
mov ebx, eax
mov dword [ebp - 0x45c], 0x22c
lea eax, [ebp - 0x45c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
lea eax, [ebp - 0x45c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x100f9a63
nop
mov eax, str.AndroidEmulatorEx.exe
lea ecx, [ebp - 0x438]
nop dword [eax + eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x100f9a36
test dx, dx
je 0x100f9a32
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x100f9a36
add ecx, 4
add eax, 4
test dx, dx
jne 0x100f9a10
xor eax, eax
jmp 0x100f9a3b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100f9a51
mov eax, dword [ebp - 0x448]
cmp eax, edi
jle 0x100f9a51
mov esi, dword [ebp - 0x454]
mov edi, eax
lea eax, [ebp - 0x45c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x100f9a00
mov eax, dword [ebp - 0x460]
test eax, eax
je 0x100f9a73
cmp eax, 1
cmovne esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1024d940
mov esp, ebp
pop ebp
ret
Function at 0x100f9ee0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10255bfd
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x103e1bc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x1f40
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.100f9900
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x1c], 0x2c3fbce9
mov word [ebp - 0x18], 0x8d00
mov byte [ebp - 0x16], 0x64
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
sub esp, 8
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x1c]
push eax
call fcn.100f9af0
mov eax, dword [ebp - 0x24]
add esp, 0xc
mov esi, dword [ebp - 0x28]
sub eax, esi
test eax, 0xfffffffc
je 0x100fa0c9
mov edi, dword [esi]
lea eax, [ebp - 0x11]
push 0
push 1
push eax
mov eax, dword [0x104330cc]
add edi, 6
add eax, 0xe0c3868
mov byte [ebp - 0x11], 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp dword [0x104330cc], 0x1000
jle 0x100f9fce
lea eax, [ebp - 0x1c]
push eax
push 0x40
push 3
push edi
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push 0
push dword [ebp - 0x1c]
push 3
push edi
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov edx, 0x3c
mov dword [ebp - 0x64], 0x464c457f
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x60], 0x10101
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0x280003
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x4c], 0x2305000
mov dword [ebp - 0x48], 0x34
mov dword [ebp - 0x44], 0x8f39468
mov dword [ebp - 0x40], 0x5000200
mov dword [ebp - 0x3c], 0x200034
mov dword [ebp - 0x38], 0x28000d
mov dword [ebp - 0x34], 0x180019
mov dword [ebp - 0x30], 6
mov dword [ebp - 0x2c], 0x34
call fcn.100f9dc0
mov edx, 0x30
mov dword [ebp - 0x58], 0x464c457f
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x54], 0x10101
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0x280003
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0x34
mov dword [ebp - 0x38], 0x37b5d4
mov dword [ebp - 0x34], 0x5000200
mov dword [ebp - 0x30], 0x200034
mov dword [ebp - 0x2c], 0x280008
call fcn.100f9dc0
push dword [0x104330a4]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test esi, esi
je 0x100fa0ff
mov ecx, dword [ebp - 0x20]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x100fa0f5
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100fa0f5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.1024dd81
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.1024d940
mov esp, ebp
pop ebp
ret
Function at 0x100fb140
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x103e1bc0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [0x104330d8]
push 0x40
push 0x1000
push 0x1f4
push 0
push dword [0x1043309c]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 0x3c
push 0x10428f14
push eax
push dword [0x1043309c]
mov dword [0x104330e4], eax
call esi
cmp byte [0x10432b95], 1
jne 0x100fb1a1
mov byte [ebp - 8], 0x40
lea eax, [ebp - 8]
jmp 0x100fb1b1
cmp byte [0x104327dc], 1
jne 0x100fb1c7
mov byte [ebp - 0xc], 0x50
lea eax, [ebp - 0xc]
push 0
push 1
push eax
mov eax, dword [0x104330e4]
add eax, 0x13
push eax
push dword [0x1043309c]
call esi
cmp byte [0x10432b94], 1
jne 0x100fb1d9
mov byte [ebp - 0x10], 0x40
lea eax, [ebp - 0x10]
jmp 0x100fb1e9
cmp byte [0x104327dd], 1
jne 0x100fb1ff
mov byte [ebp - 0x14], 0x50
lea eax, [ebp - 0x14]
push 0
push 1
push eax
mov eax, dword [0x104330e4]
add eax, 0x13
push eax
push dword [0x1043309c]
call esi
mov ecx, dword [0x104330e4]
push 0
push 4
lea eax, [ecx + 0x5e]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ecx + 9]
push eax
push dword [0x1043309c]
call esi
push 0
push 7
push 0x104330d0
lea eax, [edi + 8]
push eax
push dword [0x1043309c]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0
push 7
push 0x104330d0
push dword [0x104330e4]
push dword [0x1043309c]
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1024d940
mov esp, ebp
pop ebp
ret

Function at 0x100fd4e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x103e1bc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x234], ecx
push esi
push 2
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100fd523
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1024d940
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x100fd57e
nop
push dword [ebp - 0x234]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x100fd56c
mov eax, dword [ebp - 0x21c]
cmp eax, esi
jbe 0x100fd56c
mov ebx, dword [ebp - 0x228]
mov esi, eax
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x100fd540
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1024d940
mov esp, ebp
pop ebp
ret
Function at 0x100fde60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10255d7d
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x103e1bc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 3
push 0x103d0070
push 0
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call fcn.10068a90
cmp dword [ebp + 0x1c], 0xf
lea eax, [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x50], 0x3c
cmova eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x50]
push eax
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x4c], 0x40
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], str.cmd.exe
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x100fdf0c
or esi, 0xffffffff
jmp 0x100fdf30
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0xf
jbe 0x100fdf66
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100fdf5c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100fdf5c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1024dd81
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1024d940
mov esp, ebp
pop ebp
ret
Function at 0x10102f10
Capabilities:
Hash data using murmur3
Resolve function by parsing pe exports

Disassembly:
cmp byte [0x1042ea64], 0
jne 0x10102f1e
call fcn.10117570
cmp byte [0x1042ea6d], 0
je 0x10102f3c
push 0
push 0x40
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.10117900
add esp, 0x10
ret
jmp fcn.101012c0
Function at 0x10122330
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
sub esp, 0x18
mov eax, dword [0x103e1bc0]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
test esi, esi
je 0x101223fb
lea eax, [esp + 4]
push eax
push esi
push 2
call fcn.1013bca0
add esp, 0xc
test eax, eax
jne 0x101223fb
lea eax, [esp + 8]
push eax
push esi
push 0x17
call fcn.1013bca0
add esp, 0xc
test eax, eax
jne 0x101223fb
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10122384
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.1013bc70
add esp, 0xc
test eax, eax
je 0x101223b8
sub eax, esi
push eax
push 0x2e
push esi
call fcn.1013bc70
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x101223ba
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 0x101223e6
mov al, byte [esi]
push eax
call fcn.10130500
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 0x101223c8
pop edi
movzx eax, bl
pop ebx
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.1024d940
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
xor eax, eax
pop esi
xor ecx, esp
call fcn.1024d940
add esp, 0x18
ret

Function at 0x10123050
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [0x103de0ec]
cmp eax, 0xffffffff
jne 0x10123092
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x10123078
xor eax, eax
test eax, eax
mov dword [0x103de0ec], eax
setg al
ret
push eax
push 0
mov dword [0x103de0ec], 1
call fcn.1012c740
mov eax, dword [0x103de0ec]
add esp, 8
test eax, eax
setg al
ret

Function at 0x101230a0
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x2f0], 2
jne 0x101230f5
mov eax, dword [0x103de0ec]
cmp eax, 0xffffffff
jne 0x101230ef
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x101230d5
xor eax, eax
test eax, eax
mov dword [0x103de0ec], eax
setg al
ret
push eax
push 0
mov dword [0x103de0ec], 1
call fcn.1012c740
mov eax, dword [0x103de0ec]
add esp, 8
test eax, eax
setg al
ret
mov al, 1
ret
Function at 0x1012bc00
Capabilities:
Write file on windows

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

Disassembly:
sub esp, 0x8c
mov eax, dword [0x103e1bc0]
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 0x1012c37e
xor eax, eax
cmp edx, ecx
sete al
lea eax, [eax*4 + 0x1d4]
cmp dword [eax + ebx], 0x1012bf40
jne 0x1012c37e
cmp dword [esi], 0
je 0x1012c308
test edi, edi
je 0x1012c37e
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esp + 0x20]
call fcn.1012ec40
add esp, 0x14
cmp eax, 0xffffffff
je 0x1012c37e
test al, 1
je 0x1012c37e
mov ecx, dword [esi]
test ecx, ecx
jne 0x1012c35b
mov eax, dword [ebx]
mov eax, dword [eax + 0x8fc]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x103de0d8]
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 0x1012c377
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 0x1012c37e
add dword [esi + 8], eax
jmp 0x1012c37e
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 0x1012c3e7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x1012c3b8
mov dword [ebp], 0
lea eax, [edi + 0x52]
jmp 0x1012c3ec
push 0x80
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.1011a190
push eax
push str.Send_failure:__s
push dword [ebx]
call fcn.1012bc90
mov eax, dword [ebx]
add esp, 0x18
mov dword [eax + 0xcec], esi
mov eax, 0x37
jmp 0x1012c3e9
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.1024d940
add esp, 0x8c
ret
Function at 0x1012e240
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 0x1012e25a
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 0x103c3b3c
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strpbrk
add esp, 8
test eax, eax
je 0x1012e2a2
test ebp, ebp
je 0x1012e293
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 0x1012e2c8
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1012e2c8
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 0x1012e37f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1012e2e5
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x103de0d8]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1012e375
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1012e375
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1012e317
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 0x1012e330
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 0x1012e340
test ebp, ebp
je 0x1012e36c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x103de0dc]
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 [0x103de0dc]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x1013a1f0
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 [0x103e1bc0]
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 0x1013a3d6
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 0x1013a3c4
push 0x10
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1013a3c4
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 0x1013a3c4
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x1013a3c4
push 0
push 1
push 2
call esi
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x1013a3c4
push 0x10
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1013a3c4
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x1013a3c4
push ebx
push 0x1025f91c
lea eax, [esp + 0x2c]
push 0xc
push eax
call fcn.1012f1d0
lea esi, [esp + 0x34]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x1013a322
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 0x1013a3c4
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 0x1013a3c4
lea ecx, [esp + 0x24]
lea edx, [esp + 0x30]
sub esi, 4
jb 0x1013a377
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1013a37c
add ecx, 4
add edx, 4
sub esi, 4
jae 0x1013a366
cmp esi, 0xfffffffc
je 0x1013a3a9
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x1013a3c4
cmp esi, 0xfffffffd
je 0x1013a3a9
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x1013a3c4
cmp esi, 0xfffffffe
je 0x1013a3a9
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x1013a3c4
cmp esi, 0xffffffff
je 0x1013a3a9
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x1013a3c4
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.1024d940
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.1024d940
add esp, 0x34
ret
Function at 0x1013c680
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 0x1013c832
push ebx
mov ebx, dword [esp + 0xc]
push edi
test ebx, ebx
je 0x1013c81c
push ebp
mov eax, dword [ebx + 4]
cmp eax, 2
jne 0x1013c6cf
lea ebp, [eax + 0xe]
jmp 0x1013c6db
cmp eax, 0x17
jne 0x1013c789
lea ebp, [eax + 5]
cmp dword [ebx + 0x18], 0
je 0x1013c789
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x1013c789
cmp eax, ebp
jb 0x1013c789
push 0x20
call dword [0x103de0d8]
mov edi, eax
add esp, 4
test edi, edi
je 0x1013c811
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 [0x103de0d8]
add esp, 4
mov dword [edi + 0x18], eax
test eax, eax
je 0x1013c800
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 0x1013c775
push eax
call dword [0x103de0e4]
add esp, 4
mov dword [edi + 0x14], eax
test eax, eax
je 0x1013c7e6
mov eax, dword [esp + 0x10]
test esi, esi
cmove esi, edi
test eax, eax
je 0x1013c785
mov dword [eax + 0x1c], edi
mov dword [esp + 0x10], edi
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x1013c6c2
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop ebp
test eax, eax
je 0x1013c7a8
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebx, ebx
je 0x1013c818
test esi, esi
je 0x1013c7d5
push dword [esi + 0x18]
call dword [0x103de0dc]
push dword [esi + 0x14]
call dword [0x103de0dc]
mov edi, dword [esi + 0x1c]
push esi
call dword [0x103de0dc]
add esp, 0xc
mov esi, edi
test edi, edi
jne 0x1013c7b0
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 [0x103de0dc]
push edi
call dword [0x103de0dc]
add esp, 8
jmp 0x1013c798
push edi
mov ebx, 8
call dword [0x103de0dc]
add esp, 4
jmp 0x1013c798
mov ebx, 8
jmp 0x1013c798
test esi, esi
jne 0x1013c828
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