joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001ff40
Capabilities:
Get system information on windows

Disassembly:
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x50]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [rbp - 0x10]
xor eax, eax
test rcx, rcx
sete al
lea rdx, str.The_number_of_hardware_threads_is_not_known_for_the_target_platform
cmovne rdx, rcx
add rsp, 0x50
pop rbp
ret

Function at 0x14001ff80
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x140020020
jmp 0x14002000f
jae 0x1400200df
cmp r8, 0x201
jae 0x140020020
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x140020077
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x14002004f
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.1400447c0
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x1400200a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14002014b
mov r8d, r13d
cmp r12, r8
jne 0x140020000
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14002017f
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14002000f
jmp 0x140020020
cmp r14, r8
jb 0x140020199
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.140022fe0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x140020134
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.140003310
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x14002011f
jmp 0x140020134
lea rcx, [0x140049228]
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.140045750
jmp 0x1400201ae
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.140045b00
ud2
Function at 0x1400267a0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10b8
call fcn.140041240
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1020], xmm6
mov qword [rbp + 0x1018], 0xfffffffffffffffe
mov qword [rbp + 0x1008], rdx
mov r15, rcx
lea r12, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r12
xor edx, edx
call sub.VCRUNTIME140.dll_memset
xorps xmm6, xmm6
lea r13, [rbp + 0xffc]
lea rbx, [0x14002bf10]
lea r14, [rbp + 0xfb0]
mov rsi, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov rdi, qword [sym.imp.KERNEL32.dll_SleepEx]
mov qword [rbp + 0x1010], r15
mov r8d, 0x1000
mov rcx, r15
mov rdx, r12
call fcn.14002bce0
mov r15, rdx
mov qword [rbp + 0xfd8], rax
mov qword [rbp + 0xfe0], rdx
test rax, rax
jne 0x140026990
test r15, r15
je 0x14002695c
cmp r15, 0x1000
ja 0x1400269b2
xor r12d, r12d
nop word cs:[rax + rax]
mov r8d, r15d
sub r8d, r12d
lea rdx, [r12 + rbp]
add rdx, 0xffffffffffffffb0
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r13
mov qword [rsp + 0x20], rbx
mov rcx, qword [rbp + 0x1008]
mov r9, r14
call rsi
test eax, eax
je 0x140026930
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x1400268c0
mov ecx, dword [rbp + 0x1000]
mov eax, dword [rbp + 0x1004]
mov rdx, rcx
shl rdx, 0x20
or rdx, 2
xor r8d, r8d
test ecx, ecx
setne r8b
cmove rdx, rax
mov qword [rbp + 0xfe8], r8
mov qword [rbp + 0xff0], rdx
jne 0x140026950
add r12, rax
cmp r12, r15
je 0x140026920
jbe 0x140026870
jmp 0x14002699e
mov r15, qword [rbp + 0x1010]
lea r12, [rbp - 0x50]
jmp 0x14002681e
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0xfe8], 1
mov qword [rbp + 0xff0], rax
lea rcx, [rbp + 0xff0]
call fcn.14001a160
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1010]
call rsi
mov rcx, qword [rbp + 0x1008]
call rsi
movaps xmm6, xmmword [rbp + 0x1020]
add rsp, 0x10b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0xfe0]
call fcn.14001a160
jmp 0x14002695c
lea r8, str.library_std_src_syspalwindowspipe.rs
mov rcx, r12
mov rdx, r15
call fcn.140045b70
jmp 0x1400269c6
lea r8, str.library_std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r15
call fcn.140045b00
ud2
Function at 0x14002a730
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x14004b208]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x14002a768
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14002a7c6
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x14002a7f3
test eax, eax
js 0x14002a7d2
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x14002a7e9
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.140022bc0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.14001a880
mov ecx, 7
int 0x29
ud2
Function at 0x14003fd20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x14003fdaa
mov rax, rdx
mov rdx, qword [rbp + 0x50]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14003fda0
cmp r11, r10
ja 0x14003fe26
cmp r10, rdx
ja 0x14003fe38
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x14003fda2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14003fd80
jmp 0x14003fe07
ja 0x14003fdaa
mov r11, r10
cmp rax, r8
jne 0x14003fd47
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x14003fe0b
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14003fde0
mov r8, r10
sub ecx, r9d
jns 0x14003fdfe
jmp 0x14003fe0d
cmp r10, rdx
je 0x14003fe1a
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14003fe0d
xor al, 1
cmp r8, rdx
jne 0x14003fdc0
jmp 0x14003fe0d
xor eax, eax
jmp 0x14003fe0d
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.140045610
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140045b70
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140045b00
int3

Function at 0x14004175c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400417a6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400417a6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400417a6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400417a6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400417a6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400417a8
xor al, al
add rsp, 0x28
ret
Function at 0x140001eb0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0xb0
mov rax, qword [0x140066010]
xor rax, rsp
mov qword [rsp + 0xa0], rax
cmp dword [0x140068158], 0
movsxd rbx, edx
jne 0x140001eeb
xor ecx, ecx
call fcn.14003c274
mov ecx, eax
mov dword [0x140068158], eax
call fcn.14003944c
call fcn.140039420
cmp dword [0x140068158], 0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x14005fbf0]
mulsd xmm0, qword [0x14005fc20]
cvttsd2si eax, xmm0
mov word [rsp + 0x20], ax
jne 0x140001f2e
xor ecx, ecx
call fcn.14003c274
mov ecx, eax
mov dword [0x140068158], eax
call fcn.14003944c
call fcn.140039420
mov byte [rsp + 0x30], 0x82
mov rdx, rbx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x14005fbf0]
mulsd xmm0, qword [0x14005fc20]
cvttsd2si eax, xmm0
mov word [rsp + 0x22], ax
cmp rbx, 0x7e
jae 0x140001f86
movzx eax, dl
mov r9d, 2
or al, 0x80
mov byte [rsp + 0x31], al
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x32], eax
test ebx, ebx
je 0x140002050
jmp 0x140002010
mov rcx, rdx
shr rcx, 8
cmp rdx, 0xffff
ja 0x140001fb3
mov eax, dword [rsp + 0x20]
mov r9d, 4
mov dword [rsp + 0x34], eax
mov byte [rsp + 0x31], 0xfe
mov byte [rsp + 0x32], cl
mov byte [rsp + 0x33], dl
jmp 0x140002010
mov rax, rdx
mov byte [rsp + 0x31], 0xff
shr rax, 0x38
mov r9d, 0xa
mov byte [rsp + 0x32], al
mov rax, rdx
shr rax, 0x30
mov byte [rsp + 0x33], al
mov rax, rdx
shr rax, 0x28
mov byte [rsp + 0x34], al
mov rax, rdx
shr rax, 0x20
mov byte [rsp + 0x35], al
mov rax, rdx
shr rax, 0x18
mov byte [rsp + 0x36], al
mov rax, rdx
shr rax, 0x10
mov byte [rsp + 0x37], al
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x3a], eax
mov byte [rsp + 0x38], cl
mov byte [rsp + 0x39], dl
lea r11, [0x140068220]
mov rax, r9
sub rax, r11
lea r10, [rsp + 0x34]
add r10, rax
xor r8d, r8d
nop dword [rax + rax]
mov rax, r8
lea rcx, [r8 + r11]
and eax, 3
inc r8
add rax, r9
movzx eax, byte [rsp + rax + 0x30]
xor al, byte [rcx]
mov byte [r10 + rcx], al
cmp r8, rdx
jb 0x140002030
mov rcx, qword [0x140068218]
add r9, 4
add dx, r9w
movsx r8, dx
lea rdx, [rsp + 0x30]
call fcn.140008500
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400354e0
add rsp, 0xb0
pop rbx
ret
Function at 0x140006400
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rdx], 0
mov rdi, rdx
mov rbx, rcx
jne 0x140006418
mov qword [rdx], rcx
cmp dword [rdx + 8], 0
jne 0x140006425
mov dword [rdx + 8], 0x400
cmp qword [rdx + 0x10], 0
jne 0x140006445
mov eax, dword [0x14006814c]
inc eax
mov dword [0x14006814c], eax
movsxd rax, dword [0x14006814c]
mov qword [rdx + 0x10], rax
mov qword [rsp + 0x40], rbp
add rcx, 0x178
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [rbx + 0x154], 0xffffffff
jne 0x14000647f
mov rcx, rbx
call fcn.140006370
test eax, eax
jne 0x140006610
movsxd rcx, dword [rbx + 0x154]
lea rdx, [0x14005c4b8]
xor r9d, r9d
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x1400064c3
call fcn.14000a830
mov rcx, rax
lea r9, str.hloop_post_event
lea r8, str._s:_hloop_post_event_failed_
mov edx, 4
call fcn.140009df0
jmp 0x140006610
xor ebp, ebp
lea r14d, [rbp + 0x10]
cmp qword [rbx + 0x168], rbp
jne 0x14000651b
mov qword [rbx + 0x170], rbp
mov qword [rbx + 0x160], rbp
mov qword [rbx + 0x168], r14
lock inc dword [0x140068150]
mov ecx, 0x400
call fcn.14003ce88
mov rsi, rax
test rax, rax
je 0x14000663a
xor edx, edx
mov r8d, 0x400
mov rcx, rax
call fcn.1400367b0
mov qword [rbx + 0x158], rsi
mov r8, qword [rbx + 0x160]
mov rsi, qword [rbx + 0x168]
cmp r8, rsi
jne 0x1400065a0
mov rcx, qword [rbx + 0x158]
lea eax, [rsi + rsi]
test eax, eax
cmove eax, r14d
shl rsi, 6
movsxd r12, eax
mov rbp, r12
shl rbp, 6
lock inc dword [0x140068150]
test rcx, rcx
je 0x14000655f
lock inc dword [0x140068154]
mov rdx, rbp
call fcn.14003ce90
mov r14, rax
test rax, rax
je 0x14000665e
cmp rbp, rsi
jbe 0x140006589
sub rbp, rsi
lea rcx, [rax + rsi]
mov r8, rbp
xor edx, edx
call fcn.1400367b0
mov r9, qword [rbx + 0x170]
mov qword [rbx + 0x158], r14
mov qword [rbx + 0x168], r12
jmp 0x1400065d2
mov r9, qword [rbx + 0x170]
lea rax, [r9 + r8]
cmp rax, rsi
jne 0x1400065d2
mov rcx, qword [rbx + 0x158]
shl r9, 6
shl r8, 6
lea rdx, [rcx + r9]
call fcn.140037460
mov r9, rbp
mov qword [rbx + 0x170], rbp
mov rdx, qword [rbx + 0x160]
movups xmm0, xmmword [rdi]
mov rax, qword [rbx + 0x158]
add rdx, r9
shl rdx, 6
movups xmmword [rdx + rax], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rdx + rax + 0x10], xmm1
movups xmm0, xmmword [rdi + 0x20]
movups xmmword [rdx + rax + 0x20], xmm0
movups xmm1, xmmword [rdi + 0x30]
movups xmmword [rdx + rax + 0x30], xmm1
inc qword [rbx + 0x160]
lea rcx, [rbx + 0x178]
mov r14, qword [rsp + 0x58]
mov r12, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, 2
call fcn.140039584
mov rcx, rax
lea rdx, str.malloc_failed__n
call fcn.140009680
mov ecx, 0xffffffff
call fcn.14003ea08
int3
mov ecx, 2
call fcn.140039584
mov rcx, rax
lea rdx, str.realloc_failed__n
call fcn.140009680
mov ecx, 0xffffffff
call fcn.14003ea08
int3
Function at 0x140007890
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rdi, rcx
mov qword [rsp + 0x50], rbx
xor ebp, ebp
nop dword [rax]
movsxd rcx, dword [rdi + 0x48]
lea r8, [rsp + 0x58]
mov rdx, qword [rdi + 0x60]
inc ebp
mov dword [rsp + 0x58], 0x1c
call qword [sym.imp.WS2_32.dll_accept]
mov rsi, rax
test eax, eax
js 0x1400079c0
mov rdx, qword [rdi + 0x58]
lea r8, [rsp + 0x58]
movsxd rcx, esi
mov dword [rsp + 0x58], 0x1c
call qword [sym.imp.WS2_32.dll_getsockname]
mov rcx, qword [rdi]
mov edx, esi
call fcn.140006e90
mov rbx, rax
mov rax, qword [rdi + 0x110]
mov qword [rbx + 0x110], rax
mov rax, qword [rdi + 0x20]
mov qword [rbx + 0x20], rax
mov rdx, qword [rdi + 0x178]
test rdx, rdx
je 0x140007929
mov rcx, rbx
call fcn.1400095a0
cmp dword [rdi + 0x40], 0x1000000
jne 0x140007993
cmp qword [rbx + 0x180], 0
jne 0x140007982
mov rax, qword [rdi + 0x188]
test rax, rax
jne 0x14000796c
mov rax, qword [0x140068170]
test rax, rax
jne 0x14000796c
call fcn.14000cca0
or dword [rdi + 0x3c], 0x8000
mov qword [rdi + 0x188], rax
test rax, rax
je 0x1400079b9
mov edx, esi
mov rcx, rax
call fcn.14000d160
test rax, rax
je 0x1400079b2
mov qword [rbx + 0x180], rax
mov rcx, rbx
mov dword [rbx + 0x40], 0x1000000
call fcn.1400076c0
jmp 0x1400079a4
mov rax, qword [rbx + 0x110]
test rax, rax
je 0x1400079a4
mov rcx, rbx
call rax
cmp ebp, 3
jl 0x1400078b0
jmp 0x140007a53
mov ebx, 0x412
jmp 0x1400079e6
mov ebx, 0x411
jmp 0x1400079e6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
je 0x140007a53
cmp eax, 0x2714
je 0x140007a53
lea rcx, str.accept
call fcn.14003d3cc
mov eax, ebx
mov dword [rdi + 0x4c], ebx
cdq
mov qword [rsp + 0x30], 0
xor eax, edx
mov dword [rsp + 0x28], pe_nt_image_headers64
sub eax, edx
lea rbx, [0x140068260]
mov r8d, eax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor edx, edx
mov ecx, 0x12ff
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
call fcn.14000a830
mov rcx, rax
lea r9, str.nio_accept
mov eax, dword [rdi + 0x4c]
lea r8, str._s:_listenfd_d_accept_error:__s:_d
mov dword [rsp + 0x30], eax
mov edx, 4
mov eax, dword [rdi + 0x48]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], eax
call fcn.140009df0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140007a70
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x40
mov rbx, rcx
mov dword [rsp + 0x60], 0x1c
movsxd rcx, dword [rcx + 0x48]
lea r8, [rsp + 0x60]
mov rdx, qword [rbx + 0x60]
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
jns 0x140007aa5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x140007b2c
movsxd rcx, dword [rbx + 0x48]
lea r8, [rsp + 0x60]
mov rdx, qword [rbx + 0x58]
mov dword [rsp + 0x60], 0x1c
call qword [sym.imp.WS2_32.dll_getsockname]
cmp dword [rbx + 0x40], 0x1000000
jne 0x140007c5b
mov rbp, qword [rbx + 0x180]
test rbp, rbp
jne 0x140007bac
mov rax, qword [rbx + 0x188]
test rax, rax
jne 0x140007b14
mov rax, qword [0x140068170]
test rax, rax
jne 0x140007b14
call fcn.14000cca0
or dword [rbx + 0x3c], 0x8000
mov qword [rbx + 0x188], rax
test rax, rax
jne 0x140007b14
mov eax, 0x411
jmp 0x140007b2c
mov edx, dword [rbx + 0x48]
mov rcx, rax
call fcn.14000d160
mov rbp, rax
test rax, rax
jne 0x140007ba5
mov eax, 0x412
mov dword [rbx + 0x4c], eax
lea rdi, [0x140068260]
cdq
xor ecx, ecx
mov qword [rsp + 0x30], rcx
xor eax, edx
sub eax, edx
mov dword [rsp + 0x28], pe_nt_image_headers64
mov r8d, eax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor edx, edx
mov ecx, 0x12ff
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
call fcn.14000a830
mov rcx, rax
lea r9, str.nio_connect
mov eax, dword [rbx + 0x4c]
lea r8, str._s:_connfd_d_connect_error:__s:_d
mov dword [rsp + 0x30], eax
mov edx, 3
mov eax, dword [rbx + 0x48]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
call fcn.140009df0
mov rcx, rbx
call fcn.140008960
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
mov qword [rbx + 0x180], rax
mov qword [rsp + 0x70], r14
mov r14, qword [rbx + 0x190]
test r14, r14
je 0x140007c46
mov rcx, 0xffffffffffffffff
mov qword [rsp + 0x68], rsi
mov rsi, rcx
inc rsi
cmp byte [r14 + rsi], 0
jne 0x140007bd0
cmp rsi, 0xff
ja 0x140007c41
mov r8, qword [rbp + 0x160]
test r8, r8
je 0x140007c0e
nop
inc rcx
cmp byte [r8 + rcx], 0
jne 0x140007bf0
test rcx, rcx
je 0x140007c06
mov rdi, r8
xor eax, eax
rep stosb byte [rdi], al
mov rcx, r8
call fcn.14003c2e4
lea rdx, [rsi + 1]
mov ecx, 1
call fcn.140039360
mov qword [rbp + 0x160], rax
test rax, rax
je 0x140007c41
mov r8, rsi
mov rdx, r14
mov rcx, rax
call fcn.140037460
mov rax, qword [rbp + 0x160]
mov byte [rsi + rax], 0
mov rsi, qword [rsp + 0x68]
mov rcx, rbx
call fcn.140007790
mov r14, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
mov rcx, qword [rbx + 0x140]
test rcx, rcx
je 0x140007c7b
call fcn.140006ce0
xor ecx, ecx
mov qword [rbx + 0x140], rcx
mov dword [rbx + 0x120], ecx
or dword [rbx + 0x3c], 0x10
mov rax, qword [rbx + 0x118]
test rax, rax
je 0x140007c90
mov rcx, rbx
call rax
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
Function at 0x140007cc0
Capabilities:
Get local ipv4 addresses
Get socket information
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov eax, dword [rcx + 0x40]
mov rsi, rdx
movsxd rdi, r8d
mov rbx, rcx
cmp eax, 0x100
je 0x140007e2d
cmp eax, 0x1000
je 0x140007e2d
cmp eax, 0x2000
je 0x140007e2d
cmp eax, 0x100000
je 0x140007e0d
cmp eax, 0x1000000
je 0x140007d28
mov ecx, dword [rcx + 0x48]
mov r8d, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp fcn.140042c24
mov rbx, qword [rcx + 0x180]
test rbx, rbx
je 0x140007df8
cmp qword [rbx], 0
je 0x140007df8
cmp dword [rbx + 8], 0x1b
je 0x140007d58
mov rcx, rbx
call fcn.14000df60
test eax, eax
jne 0x140007e84
mov rax, qword [rbx + 0x78]
mov rcx, rdi
mov edi, 0x4000
test rax, rax
je 0x140007d78
cmp dword [rax + 0x48], 0x304
mov edx, 0x3fff
cmove edi, edx
cmp rcx, rdi
cmovbe rdi, rcx
cmp qword [rbx + 0x150], 0
je 0x140007da9
mov rcx, rbx
call fcn.140010c00
test eax, eax
je 0x140007e82
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov qword [rbx + 0x148], rdi
mov dword [rbx + 0x140], reloc.WS2_32.dll_socket
test rdi, rdi
je 0x140007dd1
mov rcx, qword [rbx + 0x138]
mov r8, rdi
mov rdx, rsi
call fcn.140037460
mov edx, 1
mov rcx, rbx
call fcn.140010cc0
test eax, eax
jne 0x140007e84
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov eax, 0xffff8f00
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
movsxd rcx, dword [rcx + 0x48]
xor r9d, r9d
mov r8d, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.WS2_32.dll_send]
mov rdx, qword [rcx + 0x60]
mov eax, 0x1c
mov ecx, reloc.WS2_32.dll_recv
mov r8d, edi
cmp word [rdx], 2
cmove eax, ecx
movsxd rcx, dword [rbx + 0x48]
mov dword [rsp + 0x28], eax
xor r9d, r9d
mov qword [rsp + 0x20], rdx
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_sendto]
mov rdx, qword [rbx + 0x58]
mov edi, eax
cmp word [rdx + 2], 0
jne 0x140007e84
movsxd rcx, dword [rbx + 0x48]
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], 0x1c
call qword [sym.imp.WS2_32.dll_getsockname]
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140007ea0
Capabilities:
Read file on windows
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x30
mov rbx, rcx
mov qword [rsp + 0x48], rdi
mov ecx, dword [rcx + 0x40]
nop word [rax + rax]
mov rdx, qword [rbx + 0x90]
mov rbp, qword [rbx + 0x78]
add rbp, rdx
test byte [rbx + 0x98], 2
je 0x140007ee5
mov edi, dword [rbx + 0x9c]
add edi, dword [rbx + 0x88]
jmp 0x140007eeb
mov edi, dword [rbx + 0x80]
sub edi, edx
cmp ecx, 0x100
je 0x140007f48
cmp ecx, 0x1000
je 0x140007f48
cmp ecx, 0x2000
je 0x140007f48
mov rdx, rbp
cmp ecx, 0x100000
je 0x140007f36
cmp ecx, 0x1000000
je 0x140007f25
mov ecx, dword [rbx + 0x48]
mov r8d, edi
call fcn.140041ea0
jmp 0x140007f76
mov rcx, qword [rbx + 0x180]
movsxd r8, edi
call fcn.1400113d0
jmp 0x140007f76
movsxd rcx, dword [rbx + 0x48]
xor r9d, r9d
mov r8d, edi
call qword [sym.imp.WS2_32.dll_recv]
jmp 0x140007f76
movsxd rcx, dword [rbx + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov rax, qword [rbx + 0x60]
mov r8d, edi
mov rdx, rbp
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], 0x1c
call qword [sym.imp.WS2_32.dll_recvfrom]
mov esi, eax
test eax, eax
jns 0x140007f9b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x140008007
cmp eax, 0x2714
je 0x140008007
cmp eax, 0x2738
jne 0x140007ff2
mov esi, edi
test edi, edi
jne 0x140007fa7
mov eax, dword [rbx + 0x40]
test eax, 0xff00000
jne 0x140007fff
cmp esi, edi
jge 0x140007fb2
movsxd rax, esi
mov byte [rax + rbp], 0
movsxd rax, esi
mov r8d, esi
add qword [rbx + 0x90], rax
mov rdx, rbp
mov rax, qword [rbx]
mov rcx, qword [rax + 0x20]
mov qword [rbx + 0x68], rcx
mov rcx, rbx
call fcn.140009080
cmp esi, edi
jne 0x140008007
test byte [rbx + 0x3c], 0x20
jne 0x140008007
cmp dword [rbx + 0x40], 0x1000000
jne 0x140008007
mov ecx, 0x1000000
jmp 0x140007ec0
mov dword [rbx + 0x4c], eax
mov eax, dword [rbx + 0x40]
test eax, 0xff00000
je 0x140008007
mov rcx, rbx
call fcn.140008960
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret