joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10158f70
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1066bbc0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1070cc94], 0xf
mov eax, 0x1070cc80
push ebx
cmova eax, dword [0x1070cc80]
lea ebx, [edx + 0x200]
push esi
push edi
mov edi, dword [0x1070c934]
push 0x10
push 0x10344e4c
push dword [0x1070cc90]
mov dword [ebp - 0x10], ebx
push eax
call fcn.10055890
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
add esp, 0x10
test al, al
jne 0x10158ffb
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ebx
push eax
push 0x40
push 4
add edi, 0x8a9fc1c
push edi
push dword [0x106d5b3c]
call esi
push 0
push 4
lea eax, [ebp - 8]
push eax
push edi
push dword [0x106d5b3c]
call dword [0x106d5afc]
push 0
push dword [ebp - 0xc]
jmp 0x1015902f
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ebx
push eax
push 0x40
push 4
add edi, 0x84ae440
push edi
push dword [0x106d5b3c]
call esi
push 0
push 4
lea eax, [ebp - 0xc]
push eax
push edi
push dword [0x106d5b3c]
call dword [0x106d5afc]
push 0
push dword [ebp - 8]
push 4
push edi
push dword [0x106d5b3c]
call esi
push 0
push 0
push 0
push 0
push 0
push 0
push 0x6f
push 0x73
push 0x2e
push 0x64
push 0x78
push 0x68
push 0x62
push 0x69
push 0x6c
push 0
push 0
push 0
push 0x28
push 0xe1
push 0x2f
push 0xff
push 0x13
push 0xe8
push 0xbd
push 0x48
push 0xf0
push 0xe1
push 0xa0
push 0x20
push 4
mov eax, dword [ebp + 8]
push 0xe1
push 0xa0
push 0x10
push 5
push 0xe1
push 0xa0
push 0
push 6
push 0xe2
push 0x87
add eax, 0x4ed0c
mov byte [0x106d664b], 0xe3
push 0x3f
push 0x51
mov edx, eax
mov dword [0x106d664c], eax
shr edx, 0x18
mov ebx, eax
shr ebx, 0x10
mov cl, dl
and dl, 0xf
mov dword [ebp - 8], ebx
push 0xe1
mov byte [0x106d6648], bl
add dl, 0x70
push 0x2f
mov ebx, eax
mov dword [ebp - 0xc], edx
shr ebx, 8
push 0xff
mov byte [0x106d6649], dl
mov dl, bl
shr cl, 4
and bl, 0xf
push 0x37
add cl, 0x40
shr dl, 4
add bl, 0x70
mov byte [0x106d664a], cl
push 0xe1
mov byte [0x106d6647], 0xe3
mov byte [0x106d6646], dl
mov byte [0x106d6645], bl
mov byte [0x106d6644], al
push 0xa0
push 0x40
push 2
push 0xe3
push 0xa0
push 0x10
push 0
push 0xe3
movzx ecx, cl
push ecx
mov ecx, dword [ebp - 0xc]
movzx ecx, cl
push ecx
push dword [ebp - 8]
movzx ecx, dl
sub esp, 0x20
push 0xe3
push ecx
movzx ecx, bl
push ecx
mov ecx, dword [ebp - 0x10]
push eax
sub esp, 0x3c
call fcn.101595f0
mov ecx, dword [ebp - 4]
add esp, 0x158
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.102c15f2
mov esp, ebp
pop ebp
ret
Function at 0x101595f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x1066bbc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 0x44]
mov byte [ebp - 0x4c], al
mov al, byte [ebp + 0x48]
mov byte [ebp - 0x4b], al
mov al, byte [ebp + 0x4c]
mov byte [ebp - 0x4a], al
mov al, byte [ebp + 0x50]
mov byte [ebp - 0x49], al
mov al, byte [ebp + 0x74]
mov byte [ebp - 0x40], al
mov al, byte [ebp + 0x78]
mov byte [ebp - 0x3f], al
mov al, byte [ebp + 0x7c]
push edi
mov byte [ebp - 0x3e], al
mov edi, ecx
mov al, byte [ebp + 0x80]
mov byte [ebp - 0x3d], al
lea eax, [ebp - 0x60]
push eax
push 0x40
push 0x57
push edi
push dword [0x106d5b3c]
mov dword [ebp - 0x5c], 0xe92d48f0
mov dword [ebp - 0x58], 0xe28db010
mov dword [ebp - 0x54], 0xe1a06000
mov dword [ebp - 0x50], 0xe59f0030
mov dword [ebp - 0x48], 0xe1a05001
mov dword [ebp - 0x44], 0xe08f0000
mov dword [ebp - 0x3c], 0xe3a01000
mov dword [ebp - 0x38], 0xe1a04002
mov dword [ebp - 0x34], 0xe12fff37
mov dword [ebp - 0x30], 0xe2873f51
mov dword [ebp - 0x2c], 0xe1a00006
mov dword [ebp - 0x28], 0xe1a01005
mov dword [ebp - 0x24], 0xe1a02004
mov dword [ebp - 0x20], 0xe8bd48f0
mov dword [ebp - 0x1c], 0xe12fff13
mov dword [ebp - 0x18], 0x28
mov dword [ebp - 0x14], 0x6862696c
mov dword [ebp - 0x10], 0x732e6478
mov dword [ebp - 0xc], 0x6f
mov word [ebp - 8], 0
mov byte [ebp - 6], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push 0
push 0x57
lea eax, [ebp - 0x5c]
push eax
push edi
push dword [0x106d5b3c]
call dword [0x106d5afc]
push 0
push dword [ebp - 0x60]
push 0x57
push edi
push dword [0x106d5b3c]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.102c15f2
mov esp, ebp
pop ebp
ret

Function at 0x10159720
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x1066bbc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
xor edi, edi
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
mov dword [ebp - 0x234], ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
lea eax, [ebp - 0x230]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x101597f1
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
nop dword [eax + eax]
cmp dword [0x1070cbb8], 3
jne 0x101597ad
push 0x10652ac4
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
jne 0x101597ad
mov eax, dword [ebp - 0x21c]
cmp eax, esi
jle 0x101597ad
mov edi, dword [ebp - 0x228]
mov esi, eax
cmp dword [0x1070cbb8], 1
jne 0x101597da
push str.aow_exe.exe
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
jne 0x101597da
mov eax, dword [ebp - 0x21c]
cmp eax, esi
jle 0x101597da
mov edi, dword [ebp - 0x228]
mov esi, eax
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x10159780
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.102c15f2
mov esp, ebp
pop ebp
ret
Function at 0x1015a060
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1066bbc0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1070cbbe], 0
push ebx
push esi
je 0x1015a08f
push dword [0x1070cbd8]
push 0xfffffffffffffffc
push dword [0x1070cbc0]
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [0x1070cbf0]
movaps xmm0, xmmword [0x10654a70]
mov esi, dword [0x1070dc90]
mov dword [ebp - 0x2c], eax
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0xd2d1def7
mov dword [ebp - 0x14], 0x100c6cc
lea ecx, [eax - 0x56]
xor byte [ebp + eax - 0x28], cl
inc eax
cmp eax, 0x16
jb 0x1015a0b8
push str.ntdll.dll
mov byte [ebp - 0x11], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
mov dword [ebp - 0x10], esi
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 5
push eax
push 0x40
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
mov ecx, dword [ebp - 0x2c]
movzx eax, byte [ecx]
mov byte [esi], al
movzx eax, byte [ecx + 1]
mov byte [esi + 1], al
movzx eax, byte [ecx + 2]
mov byte [esi + 2], al
movzx eax, byte [ecx + 3]
mov byte [esi + 3], al
movzx eax, byte [ecx + 4]
mov byte [esi + 4], al
mov esi, dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 8]
push ecx
push esi
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
call ebx
mov ecx, dword [ebp - 4]
xor al, al
pop esi
xor ecx, ebp
mov byte [0x1070cbbe], 0
pop ebx
call fcn.102c15f2
mov esp, ebp
pop ebp
ret
Function at 0x1015adb0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x1066bbc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov dword [ebp - 0x234], ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [ebp - 0x230]
push eax
push esi
call ebx
test eax, eax
je 0x1015ae3c
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
nop word [eax + eax]
push dword [ebp - 0x234]
lea eax, [ebp - 0x20c]
push eax
call edi
add esp, 8
test eax, eax
jne 0x1015ae2e
cmp dword [ebp - 0x21c], eax
jg 0x1015ae4f
lea eax, [ebp - 0x230]
push eax
push esi
call ebx
test eax, eax
jne 0x1015ae10
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.102c15f2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x228]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.102c15f2
mov esp, ebp
pop ebp
ret
Function at 0x1015c1d0
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x1015be20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov al, 1
ret
Function at 0x10176650
Capabilities:
Hash data using murmur3
Resolve function by parsing pe exports

Disassembly:
cmp byte [0x106d2688], 0
jne 0x1017665e
call fcn.1018ab50
cmp byte [0x106d2691], 0
je 0x1017667c
push 0
push 0x40
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.1018aee0
add esp, 0x10
ret
jmp fcn.10174a00
Function at 0x10197710
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
sub esp, 0x18
mov eax, dword [0x1066bbc0]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
test esi, esi
je 0x101977db
lea eax, [esp + 4]
push eax
push esi
push 2
call fcn.101af5c0
add esp, 0xc
test eax, eax
jne 0x101977db
lea eax, [esp + 8]
push eax
push esi
push 0x17
call fcn.101af5c0
add esp, 0xc
test eax, eax
jne 0x101977db
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10197764
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.101af590
add esp, 0xc
test eax, eax
je 0x10197798
sub eax, esi
push eax
push 0x2e
push esi
call fcn.101af590
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x1019779a
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 0x101977c6
mov al, byte [esi]
push eax
call fcn.101a3b60
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 0x101977a8
pop edi
movzx eax, bl
pop ebx
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.102c15f2
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
xor eax, eax
pop esi
xor ecx, esp
call fcn.102c15f2
add esp, 0x18
ret

Function at 0x10198430
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [0x106680ec]
cmp eax, 0xffffffff
jne 0x10198472
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x10198458
xor eax, eax
test eax, eax
mov dword [0x106680ec], eax
setg al
ret
push eax
push 0
mov dword [0x106680ec], 1
call fcn.1019fda0
mov eax, dword [0x106680ec]
add esp, 8
test eax, eax
setg al
ret

Function at 0x10198480
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x2f0], 2
jne 0x101984d5
mov eax, dword [0x106680ec]
cmp eax, 0xffffffff
jne 0x101984cf
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x101984b5
xor eax, eax
test eax, eax
mov dword [0x106680ec], eax
setg al
ret
push eax
push 0
mov dword [0x106680ec], 1
call fcn.1019fda0
mov eax, dword [0x106680ec]
add esp, 8
test eax, eax
setg al
ret
mov al, 1
ret
Function at 0x1019f260
Capabilities:
Write file on windows

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

Disassembly:
sub esp, 0x8c
mov eax, dword [0x1066bbc0]
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 0x1019f9de
xor eax, eax
cmp edx, ecx
sete al
lea eax, [eax*4 + 0x1d4]
cmp dword [eax + ebx], 0x1019f5a0
jne 0x1019f9de
cmp dword [esi], 0
je 0x1019f968
test edi, edi
je 0x1019f9de
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esp + 0x20]
call fcn.101a22a0
add esp, 0x14
cmp eax, 0xffffffff
je 0x1019f9de
test al, 1
je 0x1019f9de
mov ecx, dword [esi]
test ecx, ecx
jne 0x1019f9bb
mov eax, dword [ebx]
mov eax, dword [eax + 0x8fc]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x106680d8]
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 0x1019f9d7
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 0x1019f9de
add dword [esi + 8], eax
jmp 0x1019f9de
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 0x1019fa47
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x1019fa18
mov dword [ebp], 0
lea eax, [edi + 0x52]
jmp 0x1019fa4c
push 0x80
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.1018d790
push eax
push str.Send_failure:__s
push dword [ebx]
call fcn.1019f2f0
mov eax, dword [ebx]
add esp, 0x18
mov dword [eax + 0xcec], esi
mov eax, 0x37
jmp 0x1019fa49
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.102c15f2
add esp, 0x8c
ret
Function at 0x101a18a0
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 0x101a18ba
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 0x102da080
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strpbrk
add esp, 8
test eax, eax
je 0x101a1902
test ebp, ebp
je 0x101a18f3
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 0x101a1928
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x101a1928
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 0x101a19df
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101a1945
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x106680d8]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x101a19d5
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x101a19d5
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101a1977
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 0x101a1990
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 0x101a19a0
test ebp, ebp
je 0x101a19cc
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x106680dc]
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 [0x106680dc]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x101adb10
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 [0x1066bbc0]
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 0x101adcf6
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 0x101adce4
push 0x10
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x101adce4
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 0x101adce4
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x101adce4
push 0
push 1
push 2
call esi
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x101adce4
push 0x10
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x101adce4
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x101adce4
push ebx
push 0x102dba7c
lea eax, [esp + 0x2c]
push 0xc
push eax
call fcn.101a2830
lea esi, [esp + 0x34]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x101adc42
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 0x101adce4
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 0x101adce4
lea ecx, [esp + 0x24]
lea edx, [esp + 0x30]
sub esi, 4
jb 0x101adc97
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x101adc9c
add ecx, 4
add edx, 4
sub esi, 4
jae 0x101adc86
cmp esi, 0xfffffffc
je 0x101adcc9
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x101adce4
cmp esi, 0xfffffffd
je 0x101adcc9
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x101adce4
cmp esi, 0xfffffffe
je 0x101adcc9
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x101adce4
cmp esi, 0xffffffff
je 0x101adcc9
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x101adce4
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.102c15f2
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.102c15f2
add esp, 0x34
ret
Function at 0x101affa0
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 0x101b0152
push ebx
mov ebx, dword [esp + 0xc]
push edi
test ebx, ebx
je 0x101b013c
push ebp
mov eax, dword [ebx + 4]
cmp eax, 2
jne 0x101affef
lea ebp, [eax + 0xe]
jmp 0x101afffb
cmp eax, 0x17
jne 0x101b00a9
lea ebp, [eax + 5]
cmp dword [ebx + 0x18], 0
je 0x101b00a9
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x101b00a9
cmp eax, ebp
jb 0x101b00a9
push 0x20
call dword [0x106680d8]
mov edi, eax
add esp, 4
test edi, edi
je 0x101b0131
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 [0x106680d8]
add esp, 4
mov dword [edi + 0x18], eax
test eax, eax
je 0x101b0120
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 0x101b0095
push eax
call dword [0x106680e4]
add esp, 4
mov dword [edi + 0x14], eax
test eax, eax
je 0x101b0106
mov eax, dword [esp + 0x10]
test esi, esi
cmove esi, edi
test eax, eax
je 0x101b00a5
mov dword [eax + 0x1c], edi
mov dword [esp + 0x10], edi
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x101affe2
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop ebp
test eax, eax
je 0x101b00c8
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebx, ebx
je 0x101b0138
test esi, esi
je 0x101b00f5
push dword [esi + 0x18]
call dword [0x106680dc]
push dword [esi + 0x14]
call dword [0x106680dc]
mov edi, dword [esi + 0x1c]
push esi
call dword [0x106680dc]
add esp, 0xc
mov esi, edi
test edi, edi
jne 0x101b00d0
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 [0x106680dc]
push edi
call dword [0x106680dc]
add esp, 8
jmp 0x101b00b8
push edi
mov ebx, 8
call dword [0x106680dc]
add esp, 4
jmp 0x101b00b8
mov ebx, 8
jmp 0x101b00b8
test esi, esi
jne 0x101b0148
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