joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140077320
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x458
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 2
mov qword [rsp + 0x50], 0
mov r15d, 0x200
mov eax, 2
mov qword [rsp + 0x30], rax
xor edi, edi
mov r14d, 0xffffffff
xor r12d, r12d
cmp r15, 0x201
jae 0x1400773a0
jmp 0x14007738f
jae 0x140077465
cmp r15, 0x201
jae 0x1400773a0
mov ebx, 0x200
lea r13, [rsp + 0x58]
mov rbp, r15
jmp 0x1400773cf
sub r15, r12
mov rax, rdi
sub rax, r12
cmp r15, rax
ja 0x140077432
cmp rdi, r14
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rsp + 0x50], r12
mov rbx, r12
mov r13, qword [rsp + 0x30]
mov rbp, r12
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov rcx, r13
mov edx, ebp
call qword [sym.imp.kernel32.dll_GetSystemDirectoryW]
mov esi, eax
test eax, eax
jne 0x1400773f6
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140077498
mov r15d, esi
cmp rbp, r15
jne 0x140077380
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140077518
lea r15, [rbp*2]
cmp rbp, 0x7fffffff
cmova r15, r14
cmp r15, 0x201
jb 0x14007738f
jmp 0x1400773a0
mov qword [rsp + 0x20], 2
mov r9d, 2
lea rcx, [rsp + 0x40]
mov rdx, r12
mov r8, r15
call fcn.1400af2f0
mov rdi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
jmp 0x1400773b2
cmp rbx, r15
jb 0x140077518
lea r14, [r15 + r15]
test esi, esi
je 0x1400774c3
movzx eax, byte [0x1400d7030]
mov edx, 2
mov rcx, r14
call fcn.1400541c0
test rax, rax
je 0x14007751a
mov rsi, rax
jmp 0x1400774c8
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rbx, qword [rsp + 0x38]
mov qword [rbx + 8], rax
movabs rax, 0x8000000000000000
mov qword [rbx], rax
test rdi, rdi
jne 0x1400774eb
jmp 0x140077501
mov esi, 2
mov rcx, rsi
mov rdx, r13
mov r8, r14
call fcn.1400ae6d0
mov rbx, qword [rsp + 0x38]
mov qword [rbx], r15
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], r15
test rdi, rdi
je 0x140077501
add rdi, rdi
mov r8d, 2
mov rcx, qword [rsp + 0x30]
mov rdx, rdi
call fcn.1400541d0
mov rax, rbx
add rsp, 0x458
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
mov ecx, 2
mov rdx, r14
call fcn.14005f780
int3

Function at 0x140078590
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
call qword [sym.imp.kernel32.dll_GetSystemInfo]
mov ecx, dword [rsp + 0x40]
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, 0x58
ret
Function at 0x140079ea0
Capabilities:
Set socket configuration

Disassembly:
cmp qword [rcx + 0x18], 0xffffffffffffffff
je 0x140060c30
add rcx, 0x18
jmp 0x140072b10
ud2
jmp 0x140079ea0
sub rsp, 0x38
movzx eax, dl
mov rcx, qword [rcx]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 6
mov r8d, 1
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140079ed8
xor eax, eax
add rsp, 0x38
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

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

Disassembly:
sub rsp, 0x28
cmp r8, 0x7fffffff
mov eax, 0x7fffffff
cmovae r8, rax
mov rcx, qword [rcx]
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
je 0x140079f1f
movsxd rdx, eax
xor eax, eax
add rsp, 0x28
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0x28
ret

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

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rcx, qword [rax]
cmp r8, 0x7fffffff
mov eax, 0x7fffffff
cmovae r8, rax
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
je 0x140079f75
movsxd rdx, eax
xor ecx, ecx
mov rax, rcx
add rsp, 0x28
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
xor edx, edx
mov ecx, 0
cmp eax, 0x274a
je 0x140079f6d
shl rax, 0x20
or rax, 2
mov ecx, 1
mov rdx, rax
mov rax, rcx
add rsp, 0x28
ret

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

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
cmp r8, 0x7fffffff
mov ecx, 0x7fffffff
cmovae r8, rcx
mov rcx, qword [rax]
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
je 0x140079fe2
movsxd rdx, eax
xor eax, eax
add rsp, 0x28
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0x28
ret
Function at 0x14007c580
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
mov rsi, r9
mov rbx, r8
mov rdi, rcx
mov rax, qword [rdx]
mov r8, qword [rdx + 8]
mov rcx, r9
mov rdx, rax
call fcn.140083fc0
cmp byte [rbx], 0
jne 0x14007c5c2
lea rdx, str.exe.NULcmd.exemaximum_number_of_ProcThreadAttributes_exceeded
mov r8d, 3
mov rcx, rsi
call fcn.140084960
movabs r15, 0x8000000000000000
mov rdx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
lea rcx, [rsp + 0x38]
call fcn.140075ed0
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
cmp rax, r15
je 0x14007c623
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rcx
lea rcx, [rsp + 0x20]
lea rdx, [rsp + 0x50]
call fcn.14008b790
mov r14, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x28]
cmp r14, r15
jne 0x14007c6b0
mov eax, ebx
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x14007c67a
test rax, rax
je 0x14007c67a
mov r14, qword [rbx - 1]
mov r12, qword [rbx + 7]
mov rax, qword [r12]
test rax, rax
je 0x14007c64d
mov rcx, r14
call rax
dec rbx
mov rdx, qword [r12 + 8]
test rdx, rdx
je 0x14007c667
mov r8, qword [r12 + 0x10]
mov rcx, r14
call fcn.1400541d0
mov edx, 0x18
mov r8d, 8
mov rcx, rbx
call fcn.1400541d0
mov qword [rdi], r15
mov rdx, qword [rsi]
test rdx, rdx
je 0x14007c6a1
mov rcx, qword [rsi + 8]
mov r8d, 1
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp fcn.1400541d0
nop
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r12, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14007c6d0
mov qword [rdi], r14
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], r12
jmp 0x14007c67d
mov qword [rdi], r15
test r14, r14
je 0x14007c67d
add r14, r14
mov r8d, 2
mov rcx, rbx
mov rdx, r14
call fcn.1400541d0
jmp 0x14007c67d
Function at 0x14007c6f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rsi, rcx
movabs r14, 0x8000000000000000
lea rcx, [rsp + 0x40]
call fcn.140075ed0
mov rax, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
cmp rax, r14
je 0x14007c753
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rcx
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x58]
call fcn.14008b790
mov rbx, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
cmp rbx, r14
jne 0x14007c7b9
mov eax, edi
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x14007c7a7
test rax, rax
je 0x14007c7a7
mov rbx, qword [rdi - 1]
mov r15, qword [rdi + 7]
mov rax, qword [r15]
test rax, rax
je 0x14007c77c
mov rcx, rbx
call rax
dec rdi
mov rdx, qword [r15 + 8]
test rdx, rdx
je 0x14007c794
mov r8, qword [r15 + 0x10]
mov rcx, rbx
call fcn.1400541d0
mov edx, 0x18
mov r8d, 8
mov rcx, rdi
call fcn.1400541d0
mov qword [rsi], r14
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov r15, qword [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14007c7d9
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r15
jmp 0x14007c7aa
mov qword [rsi], r14
test rbx, rbx
je 0x14007c7aa
add rbx, rbx
mov r8d, 2
mov rcx, rdi
mov rdx, rbx
call fcn.1400541d0
jmp 0x14007c7aa
Function at 0x14007de50
Capabilities:
Delete file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov r8, rdx
mov rdx, rcx
movabs rbx, 0x8000000000000000
lea rcx, [rsp + 0x28]
call fcn.140075ed0
mov rax, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
cmp rax, rbx
je 0x14007deb5
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x40]
mov r8b, 1
call fcn.1400857b0
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
cmp rdi, rbx
jne 0x14007dec3
mov rbx, rsi
mov rax, rbx
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov rcx, rsi
call qword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
je 0x14007deed
test rdi, rdi
je 0x14007df18
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.1400541d0
xor ebx, ebx
jmp 0x14007deb8
call qword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rdi, rdi
je 0x14007deb8
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.1400541d0
jmp 0x14007deb8
xor ebx, ebx
jmp 0x14007deb8
Function at 0x140080460
Capabilities:
Read file on windows

Disassembly:
push rsi
sub rsp, 0x60
mov eax, 0xffffffff
cmp r8, rax
cmovae r8, rax
mov dword [rsp + 0x34], 0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x34]
mov qword [rsp + 0x58], rax
mov rcx, qword [rcx]
lea rax, [0x140080530]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
call qword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
je 0x1400804f0
mov rsi, qword [sym.imp.kernel32.dll_SleepEx]
nop dword [rax]
mov ecx, 0xffffffff
mov edx, 1
call rsi
cmp dword [rsp + 0x34], 0
je 0x1400804c0
mov eax, dword [rsp + 0x38]
mov esi, dword [rsp + 0x3c]
mov rcx, rax
shl rcx, 0x20
or rcx, 2
test eax, eax
cmovne rsi, rcx
jne 0x140080500
jmp 0x140080516
call qword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rcx, rsi
call fcn.14007fc20
mov ecx, eax
mov eax, 1
cmp cl, 0xb
jne 0x140080518
xor esi, esi
xor eax, eax
mov rdx, rsi
add rsp, 0x60
pop rsi
ret
Function at 0x140080d50
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, rcx
mov rdx, qword [rcx]
mov rcx, qword [rcx + 8]
mov rdi, qword [rsi + 0x10]
mov rbx, qword [rsi + 0x20]
mov r14, qword [rsi + 0x18]
mov ebp, 0xffffffff
lea r15, [rsp + 0x34]
mov r13, qword [sym.imp.kernel32.dll_ReadFile]
jmp 0x140080dad
mov r12d, dword [rsp + 0x34]
mov edx, 2
test r12, r12
je 0x140080ef7
mov qword [rsi], rdx
mov qword [rsi + 8], r12
mov rcx, r12
cmp rdx, 2
je 0x140080e40
cmp rdx, 1
jne 0x140080df0
mov dword [rsp + 0x30], 0
mov rcx, rbx
mov rdx, rdi
lea r8, [rsp + 0x30]
mov r9d, 1
call qword [sym.imp.kernel32.dll_GetOverlappedResult]
test eax, eax
je 0x140080df6
mov ecx, dword [rsp + 0x30]
jmp 0x140080e40
mov rdx, qword [r14 + 0x10]
jmp 0x140080e5b
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rdx, rax
movabs rcx, 0xffffffff00000000
and rdx, rcx
movabs rcx, 0x6d00000000
cmp rdx, rcx
je 0x140080e3c
mov ecx, 0
movabs r8, 0x2600000000
cmp rdx, r8
je 0x140080e40
jmp 0x140080ef9
xor ecx, ecx
nop
mov qword [rsi], 0
mov rdx, qword [r14 + 0x10]
add rdx, rcx
mov qword [r14 + 0x10], rdx
test rcx, rcx
je 0x140080ef7
mov r8, qword [r14]
cmp r8, rdx
je 0x140080eb3
sub r8, rdx
add rdx, qword [r14 + 8]
cmp r8, rbp
cmovae r8, rbp
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x20], rdi
mov rcx, rbx
mov r9, r15
call r13
test eax, eax
jne 0x140080d90
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
mov edx, 1
movabs rcx, 0x3e500000000
cmp rax, rcx
je 0x140080da3
jmp 0x140080ee8
test rdx, rdx
mov r8d, 1
mov eax, 0x10
cmove r8, rax
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, r14
call fcn.1400af2f0
mov r8, qword [r14]
mov rdx, qword [r14 + 0x10]
jmp 0x140080e63
movabs rcx, 0x6d00000000
cmp rax, rcx
jne 0x140080f0a
xor eax, eax
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
or rax, 2
jmp 0x140080ef9

Function at 0x140081000
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rbx, r8
mov r14, rdx
mov rdi, rcx
movzx eax, byte [0x1400d7030]
mov ecx, 0x10
mov edx, 8
call fcn.1400541c0
test rax, rax
je 0x1400810c9
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400810e0]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call qword [sym.imp.kernel32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400810bc
mov rdi, qword [rsi]
mov rbx, qword [rsi + 8]
mov rax, qword [rbx]
test rax, rax
je 0x14008107f
mov rcx, rdi
call rax
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x140081094
mov r8, qword [rbx + 0x10]
mov rcx, rdi
call fcn.1400541d0
mov edx, 0x10
mov r8d, 8
mov rcx, rsi
call fcn.1400541d0
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ebx, 1
mov rax, rbx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 8
mov edx, 0x10
call fcn.14005f780
int3
Function at 0x140082e70
Capabilities:
Read file on windows

Disassembly:
push rsi
sub rsp, 0xb0
mov rsi, rcx
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x70], r9
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x78], rax
movups xmm0, xmmword [0x1400bc418]
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
movaps xmmword [rsp + 0x60], xmm0
test r9, r9
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
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_NtReadFile]
cmp eax, 0x103
jne 0x140082efc
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0
cmp eax, 0xc0000011
je 0x140082f35
cmp eax, 0x103
je 0x140082f41
test eax, eax
js 0x140082f1e
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
jmp 0x140082f35
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ecx, 1
mov rax, rcx
add rsp, 0xb0
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x90], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x98], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x80]
call fcn.14008c340
mov rcx, rax
call fcn.140016f50
mov ecx, 7
int 0x29
ud2

Function at 0x140082fb0
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0xb0
mov rsi, rcx
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x70], r9
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x78], rax
movups xmm0, xmmword [0x1400bc418]
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
movaps xmmword [rsp + 0x60], xmm0
test r9, r9
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
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 0x140083043
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140083077
test eax, eax
js 0x140083057
mov rdx, qword [rsp + 0x68]
xor eax, eax
add rsp, 0xb0
pop rsi
ret
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb0
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x90], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x98], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x80]
call fcn.14008c340
mov rcx, rax
call fcn.140016f50
mov ecx, 7
int 0x29
ud2
Function at 0x1400877c0
Capabilities:
Create udp socket

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov edi, edx
cmp word [rcx], 0
mov eax, 2
mov ebx, 0x17
cmove ebx, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
xor r14d, r14d
mov ecx, ebx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140087895
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x140087820
mov esi, eax
cmp eax, 0x2726
jne 0x140087887
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x14008787f
mov rsi, rax
xor r14d, r14d
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
jne 0x140087895
call qword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rcx, rsi
call qword [sym.imp.ws2_32.dll_closesocket]
mov rsi, rdi
jmp 0x14008788f
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov r14d, 1
mov rax, r14
mov rdx, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400878b0
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x218
mov r14, r8
mov rdi, rdx
mov rsi, rcx
mov rbx, r8
jmp 0x1400878d5
cmp rbx, r14
ja 0x140087901
mov cl, 0x3a
mov rdx, rdi
mov r8, rbx
call fcn.140091990
cmp rax, 1
jne 0x1400878fc
mov rbx, rdx
cmp rdx, r14
jae 0x1400878d0
cmp byte [rdi + rbx], 0x3a
jne 0x1400878d0
lea rcx, [rbx + 1]
jmp 0x14008790d
test rax, rax
jne 0x14008790d
lea rax, str.invalid_socket_address
jmp 0x140087996
sub r14, rcx
add rcx, rdi
mov rdx, r14
call fcn.1400955e0
test al, 1
jne 0x14008798f
shr eax, 0x10
mov word [rsp + 0x36], ax
mov eax, dword [0x1400d7108]
cmp eax, 3
jne 0x140087a27
lea rax, [rsp + 0x36]
mov qword [rsp + 0x40], rax
cmp rbx, 0x17f
ja 0x140087a4a
lea r14, [rsp + 0x98]
mov rcx, r14
mov rdx, rdi
mov r8, rbx
call fcn.1400ae6d0
mov byte [rsp + rbx + 0x98], 0
inc rbx
lea rcx, [rsp + 0x48]
mov rdx, r14
mov r8, rbx
call fcn.14009a210
cmp qword [rsp + 0x48], 0
je 0x1400879b1
lea rax, str.file_name_contained_an_unexpected_NUL_byte
jmp 0x140087996
lea rax, str.invalid_port_value
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x218
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, qword [rsp + 0x50]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x68], 1
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0x60]
lea r9, [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x140087a07
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x140087a1b
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x36]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
jmp 0x1400879a1
lea rcx, [0x1400d7100]
call fcn.1400b2110
lea rax, [rsp + 0x36]
mov qword [rsp + 0x40], rax
cmp rbx, 0x17f
jbe 0x14008794d
lea rax, [0x1400bd2c8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
call fcn.1400b25a0
jmp 0x1400879a1
Function at 0x14009e988
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x14009e9d2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14009e9d2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14009e9d2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14009e9d2
cmp dword [rcx + 0x84], 0xe
jbe 0x14009e9d2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14009e9d4
xor al, al
add rsp, 0x28
ret

Function at 0x1400a49a0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400a479c
Function at 0x1400a7c58
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400a7c88
xor eax, eax
jmp 0x1400a7d4b
mov rbp, rbx
cmp word [rax], si
je 0x1400a7cad
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400a7c94
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400a7c90
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400a7b78
movsxd r14, eax
test eax, eax
jne 0x1400a7ceb
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
jmp 0x1400a7c81
mov rcx, r14
call fcn.1400a539c
mov rdi, rax
test rax, rax
jne 0x1400a7d04
xor ecx, ecx
call fcn.1400a53fc
jmp 0x1400a7ce0
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400a7b78
test eax, eax
jne 0x1400a7d35
mov rcx, rdi
call fcn.1400a53fc
jmp 0x1400a7d3f
xor ecx, ecx
call fcn.1400a53fc
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400ab450
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400a6c48
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400ab4da
cmp byte [rbp - 0x21], r15b
je 0x1400ab4d5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400ab510
call fcn.1400a92e4
test eax, eax
jne 0x1400ab4fc
cmp byte [rbp - 0x21], r15b
je 0x1400ab4f4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400ab510
cmp byte [rbp - 0x21], r15b
je 0x1400ab50d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400a6228
test eax, eax
jne 0x1400ab5b0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400a6c48
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400ab54f
cmp byte [rbp - 0x21], r15b
je 0x1400ab584
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400ab584
call fcn.1400a92e4
test eax, eax
jne 0x1400ab570
cmp byte [rbp - 0x21], r15b
je 0x1400ab569
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400ab584
cmp byte [rbp - 0x21], r15b
je 0x1400ab581
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400a6228
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400ab5b0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400ab5b3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400ab5c1
mov rcx, rdi
call fcn.1400a53fc
cmp byte [rbp + 0x3f], r15b
je 0x1400ab5d0
mov rcx, qword [rbp + 0x27]
call fcn.1400a53fc
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret