joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140160993
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x34]
mov dword [rax], r9d
mov dword [rsp + 0x20], 4
mov r9, rax
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x140160947
xor eax, eax
jmp 0x14016094c
call fcn.14016064c
nop
add rsp, 0x38
ret
mov rcx, qword [rcx]
movzx r9d, dl
mov edx, 0xffff
mov r8d, 8
jmp 0x140160922

Function at 0x1401609aa
Capabilities:
Set socket configuration

Disassembly:
mov r9, rdx
mov rcx, qword [rcx]
mov edx, 0xffff
mov r8d, 0x1002
jmp 0x140160922

Function at 0x1401609c0
Capabilities:
Set socket configuration

Disassembly:
mov rcx, qword [rcx]
movzx r9d, dl
mov edx, 0xffff
mov r8d, 4
jmp 0x140160922

Function at 0x1401609d7
Capabilities:
Set socket configuration

Disassembly:
mov r9, rdx
mov rcx, qword [rcx]
mov edx, 0xffff
mov r8d, 0x1001
jmp 0x140160922

Function at 0x140161007
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x34]
mov dword [rax], r9d
mov dword [rsp + 0x20], 4
mov r9, rax
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14016102c
xor eax, eax
jmp 0x140161031
call fcn.140160ef4
nop
add rsp, 0x38
ret
mov rcx, qword [rcx]
movzx r9d, dl
mov edx, 0xffff
mov r8d, 8
jmp 0x140161007

Function at 0x140161038
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x34]
mov dword [rax], r9d
mov dword [rsp + 0x20], 4
mov r9, rax
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14016102c
xor eax, eax
jmp 0x140161031
call fcn.140160ef4
nop
add rsp, 0x38
ret
mov rcx, qword [rcx]
movzx r9d, dl
mov edx, 0xffff
mov r8d, 8
jmp 0x140161007
Function at 0x14017cae0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x488
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3e8], rcx
mov qword [rbp + 0x3f0], 0
mov qword [rbp + 0x3f8], 2
mov qword [rbp + 0x400], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e0], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x14017cb70
jmp 0x14017cb5f
jae 0x14017cc2b
cmp r8, 0x201
jae 0x14017cb70
mov r14d, 0x200
lea r15, [rbp - 0x60]
mov r12, r8
jmp 0x14017cbc7
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x14017cb9f
lea rcx, [rbp + 0x3f0]
mov rdx, rbx
call fcn.14016a210
mov rsi, qword [rbp + 0x3f0]
mov rax, qword [rbp + 0x3f8]
mov qword [rbp + 0x3e0], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x400], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3e0]
mov r12, rbx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov ecx, r12d
mov rdx, r15
call sub.KERNEL32.dll_GetCurrentDirectoryW
mov r13d, eax
test eax, eax
jne 0x14017cbed
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x14017cca3
mov r8d, r13d
cmp r12, r8
jne 0x14017cb50
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x14017ccd4
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14017cb5f
jmp 0x14017cb70
cmp r14, r8
jb 0x14017ccee
lea rcx, [rbp + 0x3c0]
mov rdx, r15
call fcn.140180660
movups xmm0, xmmword [rbp + 0x3c0]
movups xmm1, xmmword [rbp + 0x3d0]
movaps xmmword [rbp + 0x3b0], xmm1
movaps xmmword [rbp + 0x3a0], xmm0
mov rsi, qword [rbp + 0x3e8]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
cmp qword [rbp + 0x3f0], 0
je 0x14017cc8c
mov r8, qword [rbp + 0x3f8]
mov rcx, qword [0x1403c7148]
xor edx, edx
call fcn.140212404
mov rax, rsi
add rsp, 0x488
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e8]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
cmp qword [rbp + 0x3f0], 0
jne 0x14017cc77
jmp 0x14017cc8c
lea rcx, str.internal_error:_entered_unreachable_code8
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.140011b20
jmp 0x14017cd03
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.140016050
ud2
Function at 0x1401803a0
Capabilities:
Set socket configuration

Disassembly:
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rcx, qword [rcx]
movzx eax, dl
mov dword [rbp - 4], eax
mov dword [rsp + 0x20], 4
lea r9, [rbp - 4]
mov edx, 6
mov r8d, 1
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1401803d8
xor eax, eax
jmp 0x1401803e5
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbp
ret
push rbx
sub rsp, 0x20
mov ebx, edx
call fcn.1401b2f99
mov rcx, rax
mov edx, ebx
add rsp, 0x20
pop rbx
jmp 0x1401803a0

Function at 0x1401803f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rax, qword [rcx]
mov rcx, qword [rax]
or byte [rcx - 0x7f], cl
clc
invalid
invalid
invalid
jg 0x1401803c0
invalid
invalid
invalid
jg 0x140180459
cmovae eax, eax
xor r9d, r9d
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x140180424
movsxd rdx, eax
xor ecx, ecx
jmp 0x140180447
call sub.WS2_32.dll_WSAGetLastError
xor edx, edx
mov ecx, 0
cmp eax, 0x274a
je 0x140180447
shl rax, 0x20
or rax, 2
mov ecx, 1
mov rdx, rax
mov rax, rcx
add rsp, 0x20
pop rbp
ret

Function at 0x140180450
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
insb byte [rdi], dx
and al, 0x20
mov rax, qword [rcx]
mov rcx, qword [rax]
cmp r8, 0x7fffffff
mov eax, 0x7fffffff
cmovae r8, rax
xor r9d, r9d
call sub.WS2_32.dll_send
sbb eax, 0xf8830009
invalid
je 0x140180484
movsxd rdx, eax
xor eax, eax
jmp case.0x1401740bc.333
call sub.WS2_32.dll_WSAGetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1401804a0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push rsi
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov rax, qword [rcx]
mov rcx, qword [rax]
mov eax, 0xffffffff
cmp r8, rax
cmovae r8, rax
mov dword [rbp + 4], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 0
lea r9, [rbp + 4]
call sub.WS2_32.dll_WSASend
mov esi, eax
cmp esi, 0xffffffff
jne 0x1401804f1
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
xor ecx, ecx
cmp esi, 0xffffffff
sete cl
mov edx, dword [rbp + 4]
cmove rdx, rax
mov rax, rcx
add rsp, 0x48
pop rsi
pop rbp
ret

Function at 0x1401805a0
Capabilities:
Set socket configuration

Disassembly:
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rcx, qword [rcx]
movzx eax, dl
mov dword [rbp - 4], eax
lea r8, [rbp - 4]
mov edx, 0x8004667e
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x1401805ca
xor eax, eax
jmp 0x1401805d7
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbp
ret

Function at 0x140180610
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rcx, qword [rcx]
cmp r8, 0x7fffffff
mov eax, 0x7fffffff
cmovae r8, rax
xor r9d, r9d
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
je 0x140180641
movsxd rdx, eax
xor eax, eax
jmp 0x140180655
call sub.WS2_32.dll_WSAGetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1401838b0
Capabilities:
Terminate process

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov rsi, qword [rcx + 0x30]
mov rcx, rsi
mov edx, 1
call sub.KERNEL32.dll_TerminateProcess
test eax, eax
je 0x1401838d5
xor eax, eax
jmp 0x14018393c
call sub.KERNEL32.dll_GetLastError
cmp eax, 5
jne 0x140183934
mov rdi, rax
mov rcx, rsi
xor edx, edx
call sub.KERNEL32.dll_WaitForSingleObject
test eax, eax
je 0x1401838f9
cmp eax, 0x102
je 0x1401838d1
jmp 0x140183910
mov dword [rbp - 4], 0
lea rdx, [rbp - 4]
mov rcx, rsi
call sub.KERNEL32.dll_GetExitCodeProcess
test eax, eax
jne 0x1401838d1
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x18], 1
lea rcx, [rbp - 0x10]
call fcn.140163240
mov rax, rdi
shl rax, 0x20
or rax, 2
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x1401846a0
Capabilities:
Resolve dns

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov rbx, r9
mov rsi, rcx
lea rcx, [rbp - 0x28]
call fcn.140003d20
mov rax, qword [rbp - 0x28]
movabs rcx, 0x8000000000000000
cmp rax, rcx
jne 0x140184727
mov rdi, qword [rbp - 0x20]
mov r14, qword [rbp - 0x18]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x60], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x58], 1
mov qword [rbp - 8], 0
lea r8, [rbp - 0x60]
lea r9, [rbp - 8]
mov rcx, rdi
xor edx, edx
call sub.WS2_32.dll_getaddrinfo
test eax, eax
je 0x14018475d
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x140184771
lea rcx, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rcx
mov qword [rsi], 1
test rax, rax
je 0x140184791
mov r8, qword [rbp - 0x20]
mov rcx, qword [0x1403c7148]
xor edx, edx
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp fcn.140212404
mov rcx, qword [rbx]
mov rax, qword [rbp - 8]
movzx ecx, word [rcx]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov byte [rdi], 0
test r14, r14
je 0x140184791
mov rcx, qword [0x1403c7148]
xor edx, edx
mov r8, rdi
call fcn.140212404
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x140188a80
Capabilities:
Create directory

Disassembly:
push rbp
mov rbp, rsp
cmp byte [rcx], 0
je 0x14017d5e5
mov rcx, rdx
mov rdx, r8
pop rbp
jmp fcn.14017d600
add byte [rax], al
invalid
mov rcx, rdx
mov rdx, r8
mov edx, eax
pop rbp
jmp 0x140188a80
invalid
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov r8, rdx
mov rdx, rcx
movabs rdi, 0x8000000000000000
lea rcx, [rbp - 0x10]
call fcn.140190c00
mov rax, qword [rbp - 0x10]
mov rsi, qword [rbp - 8]
cmp rax, rdi
je 0x140188ae0
mov rcx, qword [rbp]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x28]
mov r8b, 1
call fcn.140192520
mov rbx, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
cmp rbx, rdi
jne 0x140188aec
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
xor edx, edx
call sub.KERNEL32.dll_CreateDirectoryW
test eax, eax
je 0x140188b14
test rbx, rbx
je 0x140188b3c
mov rcx, qword [0x1403c7148]
xor edx, edx
mov r8, rsi
call fcn.140212404
xor eax, eax
jmp 0x140188ae3
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
test rbx, rbx
je 0x140188ae3
mov rcx, qword [0x1403c7148]
xor edx, edx
mov r8, rsi
mov rsi, rax
call fcn.140212404
jmp 0x140188ae0
xor eax, eax
jmp 0x140188ae3
Function at 0x140189140
Capabilities:
Copy file

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov rdi, r9
mov rbx, r8
mov r8, rdx
mov rdx, rcx
movabs r15, 0x8000000000000000
lea rcx, [rbp - 0x28]
call fcn.140190c00
mov rax, qword [rbp - 0x28]
mov rsi, qword [rbp - 0x20]
cmp rax, r15
je 0x1401891aa
mov rcx, qword [rbp - 0x18]
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rsi
mov qword [rbp], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x10]
mov r8b, 1
call fcn.140192520
mov r14, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
cmp r14, r15
jne 0x1401891bf
mov eax, 1
mov rdx, rsi
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp - 0x28]
mov rdx, rbx
mov r8, rdi
call fcn.140190c00
mov rax, qword [rbp - 0x28]
mov rdx, qword [rbp - 0x20]
cmp rax, r15
je 0x140189208
mov rcx, qword [rbp - 0x18]
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rdx
mov qword [rbp], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x10]
mov r8b, 1
call fcn.140192520
mov rbx, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x38]
cmp rbx, r15
jne 0x140189230
mov eax, 1
test r14, r14
je 0x1401891b2
mov rcx, qword [0x1403c7148]
mov rdi, rdx
xor edx, edx
mov r8, rsi
call fcn.140212404
mov eax, 1
mov rdx, rdi
jmp 0x1401891b2
mov qword [rbp - 0x10], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [0x140189300]
lea r9, [rbp - 0x10]
mov rcx, rsi
mov rdi, rdx
call sub.KERNEL32.dll_CopyFileExW
test eax, eax
je 0x1401892a6
mov rdx, qword [rbp - 0x10]
test rbx, rbx
je 0x140189283
mov rcx, qword [0x1403c7148]
mov rbx, rdx
xor edx, edx
mov r8, rdi
call fcn.140212404
mov rdx, rbx
test r14, r14
je 0x14018929f
mov rcx, qword [0x1403c7148]
mov rdi, rdx
xor edx, edx
mov r8, rsi
call fcn.140212404
mov rdx, rdi
xor eax, eax
jmp 0x1401891b2
call sub.KERNEL32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
test rbx, rbx
je 0x140189208
mov r8d, 2
mov rcx, rdi
mov rdi, rdx
call fcn.140185f30
mov rdx, rdi
jmp 0x140189208
Function at 0x140189640
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x14032ad10]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x1401896a8
mov rcx, rsi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rbp]
cmp eax, 0xc0000011
jne 0x1401896b5
xor edx, edx
xor eax, eax
jmp 0x1401896de
cmp eax, 0x103
je 0x1401896e8
test eax, eax
js 0x1401896c8
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x1401896de
mov ecx, eax
call sub.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, [0x14032ad78]
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.14017fbd0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140163d50
mov ecx, 7
int 0x29
ud2

Function at 0x140189740
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x14032ad10]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x140189778
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 sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x1401897d4
mov rcx, rsi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rbp]
cmp eax, 0x103
je 0x140189800
test eax, eax
js 0x1401897e0
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x1401897f6
mov ecx, eax
call sub.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, [0x14032ad78]
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.14017fbd0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140163d50
mov ecx, 7
int 0x29
ud2
Function at 0x140189d90
Capabilities:
Create udp socket

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov edi, edx
cmp word [rcx], 0
mov eax, 2
mov r14d, 0x17
cmove r14d, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
xor ebx, ebx
mov ecx, r14d
xor r8d, r8d
xor r9d, r9d
call sub.WS2_32.dll_WSASocketW
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140189e6a
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2739
je 0x140189df6
mov esi, eax
cmp eax, 0x2726
jne 0x140189e5d
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, r14d
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call sub.WS2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x140189e56
mov rsi, rax
xor ebx, ebx
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.KERNEL32.dll_SetHandleInformation
test eax, eax
jne 0x140189e6a
call sub.KERNEL32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rcx, rsi
call sub.WS2_32.dll_closesocket
mov ebx, 1
mov rsi, rdi
jmp 0x140189e6a
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov ebx, 1
mov rax, rbx
mov rdx, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x140189e80
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0xc0
lea rbp, [rsp + 0x80]
mov r10, r8
mov rsi, rcx
mov eax, dword [rbp + 0x80]
xorps xmm0, xmm0
movaps xmmword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm0
mov dword [rbp + 0x3c], pe_nt_image_headers64
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
lea rcx, [rbp + 0x3c]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x50]
mov qword [rsp + 0x20], rcx
mov rcx, rdx
mov rdx, r10
mov r9d, eax
call sub.WS2_32.dll_recvfrom
cmp eax, 0xffffffff
je 0x140189f34
mov ecx, dword [rbp + 0x3c]
movzx edx, word [rbp - 0x50]
cmp edx, 0x17
je 0x140189f88
cmp edx, 2
jne 0x140189f7f
cmp ecx, 0xf
jbe 0x14018a04e
mov ecx, dword [rbp - 0x4c]
movzx edx, word [rbp - 0x4e]
rol dx, 8
movzx edx, dx
shl rdx, 0x20
or rdx, rcx
xor edi, edi
jmp 0x140189fb4
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x140189fde
mov eax, dword [rbp + 0x3c]
movzx ecx, word [rbp - 0x50]
cmp ecx, 0x17
je 0x140189ff1
cmp ecx, 2
jne 0x140189f7f
cmp eax, 0xf
jbe 0x14018a04e
mov eax, dword [rbp - 0x4c]
movzx ecx, word [rbp - 0x4e]
rol cx, 8
movzx ecx, cx
shl rcx, 0x20
or rcx, rax
xor r11d, r11d
jmp 0x14018a019
lea rax, str.invalid_argument
jmp 0x140189fe6
cmp ecx, 0x1b
jbe 0x14018a066
movzx ecx, word [rbp - 0x4e]
rol cx, 8
mov r9d, dword [rbp - 0x4c]
mov r8d, dword [rbp - 0x38]
mov edx, dword [rbp - 0x48]
shl rdx, 0x10
mov r11, qword [rbp - 0x44]
mov di, 1
mov r10d, dword [rbp - 0x3c]
cdqe
mov qword [rsi], rax
mov word [rsi + 8], di
mov dword [rsi + 0xa], edx
shr rdx, 0x20
mov word [rsi + 0xe], dx
mov qword [rsi + 0x10], r11
mov dword [rsi + 0x18], r10d
mov dword [rsi + 0x1c], r9d
mov dword [rsi + 0x20], r8d
mov word [rsi + 0x24], cx
jmp 0x14018a043
shl rax, 0x20
or rax, 2
mov qword [rsi], rax
mov word [rsi + 8], 2
jmp 0x14018a043
cmp eax, 0x1b
jbe 0x14018a066
movzx eax, word [rbp - 0x4e]
rol ax, 8
mov r8d, dword [rbp - 0x4c]
mov edx, dword [rbp - 0x38]
mov ecx, dword [rbp - 0x48]
shl rcx, 0x10
mov r10, qword [rbp - 0x44]
mov r11w, 1
mov r9d, dword [rbp - 0x3c]
mov qword [rsi], 0
mov word [rsi + 8], r11w
mov dword [rsi + 0xa], ecx
shr rcx, 0x20
mov word [rsi + 0xe], cx
mov qword [rsi + 0x10], r10
mov dword [rsi + 0x18], r9d
mov dword [rsi + 0x1c], r8d
mov dword [rsi + 0x20], edx
mov word [rsi + 0x24], ax
add rsp, 0xc0
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x14032ba71]
lea r8, str.library_std_src_sys_common_net.rsassertion_failed:_len___mem::size_of::_c::sockaddr_in___
mov edx, 0x39
call fcn.140011b20
lea rcx, str.assertion_failed:_len___mem::size_of::_c::sockaddr_in6___
lea r8, str.library_std_src_sys_common_net.rsassertion_failed:_len___mem::size_of::_c::sockaddr_in___
mov edx, 0x3a
call fcn.140011b20
int3
Function at 0x14018b590
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov rdi, rdx
cmp qword [rdx], 0
jne 0x14018b6f6
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx]
test rax, rax
jne 0x14018b5cd
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x14018b6e0
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x14018b6c3
sub rax, rdx
add rdx, qword [rbx + 8]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rbp + 4], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rbp + 4]
mov r8d, eax
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x14018b62b
mov eax, dword [rbp + 4]
mov ecx, 2
test rax, rax
je 0x14018b66d
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
jmp 0x14018b671
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x40], rax
movabs rcx, 0xffffffff00000000
and rcx, rax
movabs rdx, 0x6d00000000
cmp rcx, rdx
je 0x14018b675
movabs rdx, 0x3e500000000
cmp rcx, rdx
jne 0x14018b69f
lea rax, [rbp - 8]
jmp 0x14018b681
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x14018b6a5
mov qword [rbp - 8], 1
lea rax, [rbp - 0x10]
mov qword [rax], 0
lea rcx, [rbp - 0x40]
call fcn.140163240
mov rcx, qword [rbp - 8]
mov rax, qword [rbp - 0x10]
cmp rcx, 2
jne 0x14018b6b0
mov qword [rsi + 8], rax
mov al, 1
mov byte [rsi], al
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop rbp
ret
test rcx, rcx
jne 0x14018b614
mov ecx, 1
jmp 0x14018b61e
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.14016a2b0
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x14018b5da
mov r8d, 0x10
mov rcx, rbx
call fcn.14016a2b0
mov rax, qword [rbx]
jmp 0x14018b5cd
mov qword [rbp - 0x40], 0
lea rdx, [rbp - 0x40]
mov rcx, rdi
call fcn.140165dc0
int3
Function at 0x14018ece0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rsi, rcx
movabs rbx, 0x8000000000000000
lea rcx, [rbp - 0x28]
call fcn.140190c00
mov rcx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x20]
cmp rcx, rbx
jne 0x14018ed1e
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], rbx
jmp 0x14018ed44
mov rdx, qword [rbp - 0x18]
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rdx
lea rcx, [rbp - 0x10]
lea rdx, [rbp - 0x40]
call fcn.140188510
mov r14, qword [rbp - 0x10]
cmp r14, rbx
jne 0x14018ed5d
lea rcx, [rbp - 8]
call fcn.140163240
mov qword [rsi], rbx
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov rdi, qword [rbp - 8]
mov r15, qword [rbp]
mov rcx, rdi
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x14018ed7f
mov qword [rsi], r14
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r15
jmp 0x14018ed50
mov qword [rsi], rbx
test r14, r14
je 0x14018ed50
mov rcx, qword [0x1403c7148]
xor edx, edx
mov r8, rdi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
jmp fcn.140212404