joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140049e10
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
lea r9, str.F:_vcpkg_vcpkg_buildtreescurl_srce5cd7b457b_ffb4748466.cleanlibgetenv.c
xor ebp, ebp
mov ebx, 1
mov edx, ebx
xor ecx, ecx
lea r8d, [rbp + 0x2d]
call fcn.140035fd0
mov rdi, rax
test rax, rax
je 0x140049e99
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x140049ecf
cmp ebx, esi
je 0x140049ecf
cmp ebx, 0x8000
ja 0x140049ecf
cmp ebx, esi
jb 0x140049eca
mov edx, ebx
lea r9, str.F:_vcpkg_vcpkg_buildtreescurl_srce5cd7b457b_ffb4748466.cleanlibgetenv.c
mov r8d, reloc.WLDAP32.dll_Ordinal_45
mov rcx, rdi
call fcn.140035fd0
mov rdi, rax
test rax, rax
jne 0x140049e50
mov edx, Ordinal_50
mov rcx, rbp
lea r8, str.F:_vcpkg_vcpkg_buildtreescurl_srce5cd7b457b_ffb4748466.cleanlibgetenv.c
call fcn.140035dd0
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x140049eaf
mov edx, Ordinal_60
mov rcx, rdi
jmp 0x140049ea1
Function at 0x140072268
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400722a2
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400722a7
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400722f0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1400722f0
dec r8
sub rdx, 1
jne 0x1400722d6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400729d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.140072380
mov ebx, eax
test eax, eax
jne 0x140072a00
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x140072a63
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140072a5a
test al, 0x10
je 0x140072a5a
bt eax, 0xa
jae 0x140072a53
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.140072a74
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x140072a4f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140072a4f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x140072a5a
and dword [rsp + 0x3c], 0
jmp 0x140072a5f
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400739d8
Capabilities:
Parse pe header

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, qword [rdx + 0x20]
mov r11, qword [rdx + 0x28]
lea r10, [r11 + 1]
mov qword [rdx + 0x28], r10
mov al, 1
cmp r10, rsi
jae 0x1400121d0
mov rax, qword [rdx + 0x18]
movzx edi, byte [rax + r10]
mov al, 1
cmp edi, 0x2b
je 0x1400121c5
cmp edi, 0x2d
jne 0x1400121d0
xor eax, eax
add r11, 2
mov qword [rdx + 0x28], r11
mov r10, r11
cmp r10, rsi
jae 0x140012364
mov rdi, qword [rdx + 0x18]
movzx r11d, byte [rdi + r10]
lea rbx, [r10 + 1]
mov qword [rdx + 0x28], rbx
add r11b, 0xd0
cmp r11b, 0xa
jae 0x14001236f
movzx r11d, r11b
cmp rbx, rsi
jae 0x14001226d
mov ebx, 1
sub rbx, rsi
add r10, 2
jmp 0x14001222c
movzx esi, sil
lea r11d, [r11 + r11*4]
lea r11d, [rsi + r11*2]
lea rsi, [rbx + r10]
inc rsi
inc r10
cmp rsi, 2
je 0x14001226d
movzx esi, byte [rdi + r10 - 1]
add sil, 0xd0
cmp sil, 0xa
jae 0x14001226d
mov qword [rdx + 0x28], r10
cmp r11d, 0xccccccb
jle 0x140012210
cmp r11d, 0xccccccc
jne 0x140012258
cmp sil, 7
jbe 0x140012210
test r9, r9
sete r9b
mov byte [rsp + 0x20], al
call fcn.140050ea0
jmp 0x140012351
mov r10d, dword [rsp + 0x80]
test al, al
je 0x14001228a
lea eax, [r10 + r11]
sar eax, 0x1f
add eax, 0x80000000
add r10d, r11d
jmp 0x14001229a
xor eax, eax
cmp r10d, r11d
setns al
add eax, 0x7fffffff
sub r10d, r11d
cmovo r10d, eax
movq xmm1, r9
punpckldq xmm1, xmmword [0x140054700]
subpd xmm1, xmmword [0x140054710]
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
mov eax, r10d
neg eax
cmovs eax, r10d
cmp eax, 0x135
jb 0x14001230c
xorpd xmm1, xmm1
movsd xmm2, qword [0x1400558c0]
nop dword [rax + rax]
ucomisd xmm0, xmm1
jne 0x1400122e8
jnp 0x14001233a
test r10d, r10d
jns 0x140012398
divsd xmm0, xmm2
add r10d, 0x134
mov eax, r10d
neg eax
cmovs eax, r10d
cmp eax, 0x134
ja 0x1400122e0
mov eax, eax
mov r9, qword [0x140072020]
movsd xmm1, qword [r9 + rax*8]
test r10d, r10d
js 0x140012359
mulsd xmm0, xmm1
movapd xmm1, xmmword [0x1400558d0]
andpd xmm1, xmm0
ucomisd xmm1, qword [0x1400558e0]
jae 0x140012398
test r8b, r8b
jne 0x140012347
xorpd xmm0, xmmword [0x1400558f0]
movsd qword [rcx + 8], xmm0
xor eax, eax
mov qword [rcx], rax
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
divsd xmm0, xmm1
test r8b, r8b
je 0x14001233f
jmp 0x140012347
mov qword [rsp + 0x28], 5
jmp 0x140012378
mov qword [rsp + 0x28], 0xd
lea rax, [rsp + 0x28]
mov rsi, rcx
mov rcx, rdx
mov rdx, rax
call fcn.140050f40
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x140012351
mov qword [rsp + 0x28], 0xe
lea rax, [rsp + 0x28]
mov rsi, rcx
mov rcx, rdx
mov rdx, rax
call fcn.140050f40
mov rcx, rsi
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x14001234e
Function at 0x140014aa0
Capabilities:
Get hostname

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov rsi, rcx
mov dword [rbp + 0x1c], 0
lea r8, [rbp + 0x1c]
mov ecx, 1
xor edx, edx
call qword [sym.imp.kernel32.dll_GetComputerNameExW]
test eax, eax
jne 0x140014afc
call fcn.14001d130
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x20], edx
test edx, edx
je 0x140014afc
test rax, rax
je 0x140014afc
lea rcx, [rbp - 0x28]
call fcn.14001d120
mov edi, dword [rbp + 0x1c]
test rdi, rdi
je 0x140014c7a
lea rcx, [rdi + rdi]
mov edx, 2
mov qword [rbp + 0x10], rcx
call fcn.14001d100
test rax, rax
je 0x140014cac
lea r8, [rbp + 0x1c]
mov ecx, 1
mov qword [rbp + 8], rax
mov rdx, rax
call qword [sym.imp.kernel32.dll_GetComputerNameExW]
test eax, eax
jne 0x140014b5b
call fcn.14001d130
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x20], edx
test edx, edx
je 0x140014b5b
test rax, rax
je 0x140014b5b
lea rcx, [rbp - 0x28]
call fcn.14001d120
mov eax, dword [rbp + 0x1c]
mov qword [rbp - 0x38], rax
lea rcx, [rdi - 1]
mov qword [rbp - 0x40], rcx
cmp rcx, rax
jne 0x140014cba
xor eax, eax
mov rcx, qword [rbp + 0x10]
mov rdx, qword [rbp + 8]
nop dword [rax]
cmp word [rdx + rax*2], 0
je 0x140014b92
inc rax
add rcx, 0xfffffffffffffffe
jne 0x140014b80
jmp 0x140014b95
mov rdi, rax
lea rcx, [rbp - 0x28]
mov r8, rdi
call fcn.14002c2d0
lea rcx, [rbp - 0x28]
call fcn.14003f060
mov r8, rdx
lea rcx, [rbp - 0x58]
mov rdx, rax
call fcn.14003f2a0
mov r15, qword [rbp - 0x50]
mov rdi, qword [rbp - 0x48]
test rdi, rdi
je 0x140014bf4
js 0x140014cfd
movzx eax, byte [0x140072141]
mov r14d, 1
mov edx, 1
mov rcx, rdi
call fcn.14001d0d0
test rax, rax
je 0x140014d00
mov rbx, rax
jmp 0x140014bf9
mov ebx, 1
mov rcx, rbx
mov rdx, r15
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [rbp - 0x58]
lea rax, [rdx*2]
test rax, rax
jne 0x140014c61
mov rdx, qword [rbp - 0x28]
test rdx, rdx
je 0x140014c30
mov rcx, qword [rbp - 0x20]
mov r8d, 1
call fcn.14001d0e0
mov qword [rsi], rdi
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], rdi
mov r8d, 2
mov rcx, qword [rbp + 8]
mov rdx, qword [rbp + 0x10]
call fcn.14001d0e0
mov rax, rsi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov r8d, 1
mov rcx, r15
call fcn.14001d0e0
mov rdx, qword [rbp - 0x28]
test rdx, rdx
jne 0x140014c21
jmp 0x140014c30
lea rax, str.GetComputerNameExW_did_not_provide_buffer_size
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], 1
mov qword [rbp - 0x18], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
lea rdx, str.srcmodswinapi.rs
lea rcx, [rbp - 0x28]
call fcn.140052f80
mov ecx, 2
mov rdx, qword [rbp + 0x10]
call fcn.140052e50
lea rax, str.GetComputerNameExW_changed_the_buffer_size_unexpectedly
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], 1
mov qword [rbp - 0x18], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
lea rax, str.srcmodswinapi.rs
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x38]
lea r8, [rbp - 0x40]
lea r9, [rbp - 0x28]
xor ecx, ecx
call fcn.140051190
jmp 0x140014d0f
xor r14d, r14d
mov qword [rbp - 0x30], r15
mov rcx, r14
mov rdx, rdi
call fcn.140052e50
ud2
Function at 0x140029240
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 0x1400292e0
jmp 0x1400292cf
jae 0x14002939f
cmp r8, 0x201
jae 0x1400292e0
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x140029337
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x14002930f
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.140051a40
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 0x140029360
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x14002940b
mov r8d, r13d
cmp r12, r8
jne 0x1400292c0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14002943f
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x1400292cf
jmp 0x1400292e0
cmp r14, r8
jb 0x140029459
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.14002c2d0
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 0x1400293f4
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.14001d0e0
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 0x1400293df
jmp 0x1400293f4
lea rcx, [0x14005b6b8]
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.140053040
jmp 0x14002946e
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.1400533f0
ud2
Function at 0x14002c190
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rsi, rdx
mov rcx, qword [rcx]
mov rax, qword [rdx + 8]
mov rdi, qword [rdx + 0x10]
sub rax, rdi
cmp rax, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, rax
mov rdx, qword [rdx]
add rdx, rdi
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
je 0x14002c1ed
cdqe
add rdi, rax
mov qword [rsi + 0x10], rdi
mov rax, qword [rsi + 0x18]
cmp rax, rdi
cmova rdi, rax
mov qword [rsi + 0x18], rdi
xor eax, eax
jmp 0x14002c206
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x14002c1fe
xor eax, eax
jmp 0x14002c206
shl rax, 0x20
or rax, 2
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret

Function at 0x14002c210
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 qword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
je 0x14002c246
movsxd rdx, eax
xor eax, eax
add rsp, 0x20
pop rbp
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14002c270
Capabilities:
Receive data
Receive 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 qword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
je 0x14002c2a2
movsxd rdx, eax
xor ecx, ecx
jmp 0x14002c2c6
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
xor edx, edx
mov ecx, 0
cmp eax, 0x274a
je 0x14002c2c6
shl rax, 0x20
or rax, 2
mov ecx, 1
mov rdx, rax
mov rax, rcx
add rsp, 0x20
pop rbp
ret

Function at 0x14002ec70
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rcx, qword [rcx]
mov eax, 0xffffffff
cmp r8, rax
cmovae r8, rax
mov dword [rbp - 4], 0
xorps xmm0, xmm0
movaps xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], 0
lea rax, [rbp - 4]
mov qword [rbp - 0x18], rax
lea rax, [0x140037220]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x30]
call qword [sym.imp.kernel32.dll_WriteFileEx]
test eax, eax
je 0x14002ed00
mov rsi, qword [sym.imp.kernel32.dll_SleepEx]
nop dword [rax]
mov ecx, 0xffffffff
mov edx, 1
call rsi
cmp dword [rbp - 4], 0
je 0x14002ecd0
mov ecx, dword [rbp]
mov edx, dword [rbp + 4]
mov r8, rcx
shl r8, 0x20
or r8, 2
xor eax, eax
test ecx, ecx
setne al
cmovne rdx, r8
jmp 0x14002ed15
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0x68
pop rsi
pop rbp
ret

Function at 0x14002ed20
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
mov rcx, qword [rcx]
pop rbp
jmp 0x140036d60
push rbp
push rsi
Function at 0x14002f2c0
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 qword [sym.imp.kernel32.dll_TerminateProcess]
test eax, eax
je 0x14002f2e6
xor eax, eax
jmp 0x14002f351
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 5
jne 0x14002f349
mov rdi, rax
mov rcx, rsi
xor edx, edx
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
test eax, eax
je 0x14002f30c
cmp eax, 0x102
je 0x14002f2e2
jmp 0x14002f324
mov dword [rbp - 4], 0
lea rdx, [rbp - 4]
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetExitCodeProcess]
test eax, eax
jne 0x14002f2e2
call qword [sym.imp.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.140023630
mov rax, rdi
shl rax, 0x20
or rax, 2
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400303c0
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.140050230
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, [0x140037220]
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.140036b30
mov r15, rdx
mov qword [rbp + 0xfd8], rax
mov qword [rbp + 0xfe0], rdx
test rax, rax
jne 0x1400305b0
test r15, r15
je 0x14003057c
cmp r15, 0x1000
ja 0x1400305d2
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 0x140030550
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x1400304e0
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 0x140030570
add r12, rax
cmp r12, r15
je 0x140030540
jbe 0x140030490
jmp 0x1400305be
mov r15, qword [rbp + 0x1010]
lea r12, [rbp - 0x50]
jmp 0x14003043e
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.140023630
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.140023630
jmp 0x14003057c
lea r8, str.library_std_src_syspalwindowspipe.rs
mov rcx, r12
mov rdx, r15
call fcn.140053460
jmp 0x1400305e6
lea r8, str.library_std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r15
call fcn.1400533f0
ud2
Function at 0x140035360
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x14005d7a8]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x140035398
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_NtReadFile]
cmp eax, 0x103
jne 0x1400353ef
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0xc0000011
jne 0x1400353fc
xor edx, edx
xor eax, eax
jmp 0x140035426
cmp eax, 0x103
je 0x140035430
test eax, eax
js 0x14003540f
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x140035426
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, [0x14005d808]
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.14002b930
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140023cc0
mov ecx, 7
int 0x29
ud2

Function at 0x140035480
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x14005d7a8]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x1400354b8
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 0x140035516
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x140035543
test eax, eax
js 0x140035522
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x140035539
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, [0x14005d808]
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.14002b930
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140023cc0
mov ecx, 7
int 0x29
ud2
Function at 0x1400355a0
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 qword [sym.imp.ws2_32.dll_WSASocketW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140035681
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x140035608
mov esi, eax
cmp eax, 0x2726
jne 0x140035674
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, r14d
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x14003566c
mov rsi, rax
xor ebx, ebx
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
jne 0x140035681
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 ebx, 1
mov rsi, rdi
jmp 0x140035681
call qword [sym.imp.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 0x140036160
Capabilities:
Create pipe

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x148
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0xb0], xmm6
mov qword [rbp + 0xa8], 0xfffffffffffffffe
mov qword [rbp + 0x60], rcx
mov byte [rbp + 0xa5], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x5c], ecx
mov r15d, 8
mov sil, 1
xorps xmm6, xmm6
lea r14, [rbp + 0x20]
mov r12, qword [sym.imp.bcryptprimitives.dll_ProcessPrng]
xor edi, edi
xor eax, eax
mov qword [rbp - 8], rax
nop word cs:[rax + rax]

Function at 0x140036d60
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
mov rcx, qword [rcx]
pop rbp
jmp 0x140036d60
push rbp
push rsi