joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47d590
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
sub rsp, 0x80
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
mov edx, 0x10
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x47d5c6
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x80
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
mov byte [rsp + 0x30], 0
mov dword [rsp + 0x34], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x40], rax
lea rax, [0x004464f0]
mov qword [rsp + 0x48], rax
lea rax, [0x004cf8b0]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
lea rax, [0x004cf540]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rax, [rsp + 0x40]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 1
lea rdx, str.libstd_syswindows_rand.rs
lea rcx, [rsp + 0x50]
call fcn.00440ea0

Function at 0x47df60
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x80
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x00502170]
cmp rax, 3
je 0x47dfa9
mov byte [rsp + 0x50], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea rcx, [0x00502170]
lea r9, [0x004cd6f0]
lea r8, [rsp + 0x20]
xor edx, edx
call fcn.00468930
lea rcx, [rsp + 0x20]
mov rdx, rbx
mov r8, rdi
call fcn.00467270
cmp qword [rsp + 0x20], 1
jne 0x47dff9
movups xmm0, xmmword [rsp + 0x28]
movups xmm1, xmmword [rsp + 0x38]
movaps xmmword [rsp + 0x60], xmm1
movaps xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x70]
lea rdx, [rsp + 0x50]
call fcn.00445f40
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rsi + 8], xmm0
mov qword [rsi], 1
jmp 0x47e08c
mov rdi, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x30]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x50], 0
lea r8, [rsp + 0x20]
lea r9, [rsp + 0x50]
xor edx, edx
mov rcx, rdi
call sub.WS2_32.dll_getaddrinfo
test eax, eax
je 0x47e061
call sub.WS2_32.dll_WSAGetLastError
mov byte [rsi + 8], 0
mov cl, byte [rsp + 0x72]
mov byte [rsi + 0xb], cl
movzx ecx, word [rsp + 0x70]
mov word [rsi + 9], cx
mov dword [rsi + 0xc], eax
mov eax, 1
jmp 0x47e070
mov rax, qword [rsp + 0x50]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
je 0x47e08c
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.00409ea0
mov rax, rsi
add rsp, 0x80
pop rbx
pop rdi
pop rsi
ret

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

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
cmp r9, 0x7fffffff
mov eax, 0x7fffffff
cmovb eax, r9d
mov rcx, qword [rdx]
mov r9d, 2
mov rdx, r8
mov r8d, eax
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x47e4f0
cdqe
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x47e517
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x47e504
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x47e517
call sub.WS2_32.dll_WSAGetLastError
mov byte [rsi + 8], 0
mov dword [rsi + 0xc], eax
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x20
pop rsi
ret
Function at 0x47e520
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
cmp r9, 0x7fffffff
mov eax, 0x7fffffff
cmovb eax, r9d
mov rcx, qword [rdx]
xor r9d, r9d
mov rdx, r8
mov r8d, eax
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x47e55d
cdqe
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x47e584
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x47e571
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x47e584
call sub.WS2_32.dll_WSAGetLastError
mov byte [rsi + 8], 0
mov dword [rsi + 0xc], eax
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x20
pop rsi
ret

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

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
cmp r9, 0x7fffffff
mov eax, 0x7fffffff
cmovb eax, r9d
mov rcx, qword [rdx]
xor r9d, r9d
mov rdx, r8
mov r8d, eax
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
je 0x47e5c8
cdqe
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x47e5e9
call sub.WS2_32.dll_WSAGetLastError
mov byte [rsi + 8], 0
mov cl, byte [rsp + 0x2f]
mov byte [rsi + 0xb], cl
movzx ecx, word [rsp + 0x2d]
mov word [rsi + 9], cx
mov dword [rsi + 0xc], eax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x30
pop rsi
ret

Function at 0x47eb00
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
sub rsp, 0xc0
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x2c], pe_nt_image_headers64
mov rcx, qword [rdx]
lea rdx, [rsp + 0x40]
lea r8, [rsp + 0x2c]
call sub.WS2_32.dll_getsockname
cmp eax, 0xffffffff
je 0x47eb89
mov eax, dword [rsp + 0x2c]
movzx ecx, word [rsp + 0x40]
cmp ecx, 0x17
je 0x47ebb9
movzx ecx, cx
cmp ecx, 2
jne 0x47ebdf
cmp eax, 0x10
jb 0x47ec13
mov dword [rsi + 4], 0
jmp 0x47ebce
call sub.WS2_32.dll_WSAGetLastError
movzx ecx, word [rsp + 0x30]
mov word [rsp + 0x28], cx
mov cl, byte [rsp + 0x32]
mov byte [rsp + 0x2a], cl
mov byte [rsi + 8], 0
mov cl, byte [rsp + 0x2a]
mov byte [rsi + 0xb], cl
movzx ecx, word [rsp + 0x28]
mov word [rsi + 9], cx
mov dword [rsi + 0xc], eax
jmp 0x47ec01
cmp eax, 0x1c
jb 0x47ec2d
mov dword [rsi + 4], 1
movups xmm0, xmmword [rsp + 0x4c]
movups xmmword [rsi + 0x14], xmm0
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi + 8], xmm0
mov dword [rsi], 0
jmp 0x47ec07
lea r8, str.invalid_argument
lea rcx, [rsp + 0x30]
mov dl, 0xb
mov r9d, 0x10
call fcn.00446060
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi + 8], xmm0
mov dword [rsi], 1
mov rax, rsi
add rsp, 0xc0
pop rsi
ret
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___TcpStreamaddr
lea r8, str.libstd_sys_common_net.rs
mov edx, 0x42
call fcn.00441160
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
lea r8, str.libstd_sys_common_net.rs
mov edx, 0x43
call fcn.00441160
Function at 0x47eeb0
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x40
mov rsi, rcx
mov dword [rsp + 0x3c], r8d
mov rcx, qword [rdx]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x3c]
xor edx, edx
mov r8d, 4
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x47eee4
mov byte [rsi], 3
jmp 0x47ef11
call sub.WS2_32.dll_WSAGetLastError
movzx ecx, word [rsp + 0x39]
mov word [rsp + 0x36], cx
mov cl, byte [rsp + 0x3b]
mov byte [rsp + 0x38], cl
mov byte [rsi], 0
mov cl, byte [rsp + 0x38]
mov byte [rsi + 3], cl
movzx ecx, word [rsp + 0x36]
mov word [rsi + 1], cx
mov dword [rsi + 4], eax
mov rax, rsi
add rsp, 0x40
pop rsi
ret

Function at 0x47f090
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
movzx eax, r8b
mov dword [rsp + 0x2c], eax
mov rcx, qword [rdx]
lea r8, [rsp + 0x2c]
mov edx, 0x8004667e
call sub.WS2_32.dll_ioctlsocket
test eax, eax
je 0x47f0c3
call sub.KERNEL32.dll_GetLastError
mov byte [rsi], 0
mov dword [rsi + 4], eax
jmp 0x47f0c6
mov byte [rsi], 3
mov rax, rsi
add rsp, 0x30
pop rsi
ret

Function at 0x48a330
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
test r8, r8
je 0x48a39a
mov r11, qword [rsp + 0x60]
mov esi, ecx
shr esi, 8
lea r8, [rdx + r8*2]
xor eax, eax
movzx edi, byte [rdx + 1]
lea r10, [rax + rdi]
cmp byte [rdx], sil
lea rdx, [rdx + 2]
jne 0x48a390
cmp r10, rax
jb 0x48a40e
cmp r10, r11
ja 0x48a41b
add rax, r9
xor ebx, ebx
nop word cs:[rax + rax]
nop
cmp rdi, rbx
je 0x48a392
cmp byte [rax + rbx], cl
lea rbx, [rbx + 1]
jne 0x48a380
jmp 0x48a3f0
ja 0x48a39a
mov rax, r10
cmp rdx, r8
jne 0x48a34c
mov r8, qword [rsp + 0x70]
test r8, r8
je 0x48a3f4
mov rdx, qword [rsp + 0x68]
add r8, rdx
mov rsi, rdx
add rsi, 1
movzx ecx, cx
mov al, 1
nop dword [rax + rax]
movzx edi, byte [rdx]
test dil, dil
jns 0x48a3dc
cmp rsi, r8
je 0x48a400
movzx edx, byte [rsi]
add rsi, 1
and edi, 0x7f
shl edi, 8
or edi, edx
mov rdx, rsi
sub ecx, edi
js 0x48a3f6
xor al, 1
lea rsi, [rdx + 1]
cmp rdx, r8
jne 0x48a3c0
jmp 0x48a3f6
xor eax, eax
jmp 0x48a3f6
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x004d2cc0]
call fcn.00488de0
mov rcx, rax
mov rdx, r10
call fcn.0048b4e0
mov rcx, r10
mov rdx, r11
call fcn.0048b450
Function at 0x4a5ec0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov ecx, dword [0x005027e4]
mov rdi, rdx
mov rbp, r8
test ecx, ecx
jle 0x4a5fe0
mov rax, qword [0x005027e8]
xor ebx, ebx
add rax, 0x18
mov rdx, qword [rax]
cmp rsi, rdx
jb 0x4a5f0c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rsi, rdx
jb 0x4a5fc6
add ebx, 1
add rax, 0x28
cmp ebx, ecx
jne 0x4a5ef0
mov rcx, rsi
call fcn.004a6b00
test rax, rax
mov r12, rax
je 0x4a6018
movsxd rbx, ebx
lea rbx, [rbx + rbx*4]
shl rbx, 3
mov r13, rbx
add r13, qword [0x005027e8]
mov qword [r13 + 0x20], rax
mov dword [r13], 0
call fcn.004a6c50
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 0x18], rax
mov rax, qword [0x005027e8]
mov rcx, qword [rax + rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4a5ffb
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4a5fbf
sub eax, 0x40
and eax, 0xffffffbf
je 0x4a5fbf
add rbx, qword [0x005027e8]
mov rcx, qword [rsp + 0x20]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4a5fe7
add dword [0x005027e4], 1
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.msvcrt.dll_memcpy
xor ebx, ebx
jmp 0x4a5f17
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.004a5e50
mov rax, qword [0x005027e8]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.004a5e50
lea rcx, str.Address__p_has_no_image_section
mov rdx, rsi
call fcn.004a5e50
nop
nop dword [rax + rax]

Function at 0x4a6770
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00502ac0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00502aa0]
test rbx, rbx
je 0x4a67c4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x4a67bb
test rsi, rsi
je 0x4a67bb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4a67a0
lea rcx, [0x00502ac0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x4a6b00
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x004ea220]
xor edx, edx
mov r8, rcx
cmp word [r9], 0x5a4d
je 0x4a6b20
mov rax, rdx
add rsp, 0x28
ret
mov rcx, r9
call fcn.004a69e0
test eax, eax
je 0x4a6b18
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add rax, r9
movzx edx, word [rax + 0x14]
lea rdx, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x4a6b7d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x4a6b74
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x4a6b18
add rdx, 0x28
cmp rdx, r9
jne 0x4a6b60
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret

Function at 0x4a7d10
Capabilities:
Read file on windows

Disassembly:
push rbp
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x80]
mov r12, qword [rbp]
mov rsi, qword [rbp + 0x10]
mov r13d, edx
mov rdi, rcx
mov edx, r8d
mov ecx, r13d
xor r8d, r8d
mov rbx, r9
call sub.msvcrt.dll__lseek
test eax, eax
js 0x4a7dd0
mov r9, qword [rbp + 8]
mov rcx, rdi
mov r8, r12
mov rdx, rbx
xor edi, edi
call fcn.004a7280
test rax, rax
mov qword [rsi + 8], rax
je 0x4a7d8d
mov qword [rsi], rax
mov r8d, ebx
mov rdx, rax
mov ecx, r13d
mov qword [rsi + 0x10], rbx
call sub.msvcrt.dll__read
test eax, eax
js 0x4a7e00
cdqe
mov edi, 1
cmp rbx, rax
ja 0x4a7da0
mov eax, edi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop rbp
ret
xor r8d, r8d
mov rcx, qword [rbp + 8]
xor edi, edi
lea rdx, str.file_too_short
call r12
mov rcx, qword [rsi + 8]
call fcn.004a6eb8
mov eax, edi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop rbp
ret
call qword [sym.imp.msvcrt.dll__errno]
mov rcx, qword [rbp + 8]
xor edi, edi
mov r8d, dword [rax]
lea rdx, str.lseek
call r12
mov eax, edi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop rbp
ret
call qword [sym.imp.msvcrt.dll__errno]
mov rcx, qword [rbp + 8]
lea rdx, str.read
mov r8d, dword [rax]
call r12
mov rcx, qword [rsi + 8]
call fcn.004a6eb8
jmp 0x4a7d8d

Function at 0x4abe10
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
test rdx, rdx
je 0x4abe64
test r8, r8
not ecx
je 0x4abe60
lea r10, [0x004ea440]
add r8, rdx
nop dword [rax + rax]
add rdx, 1
movzx r9d, byte [rdx - 1]
mov eax, ecx
shr eax, 4
xor ecx, r9d
shr r9b, 4
and ecx, 0xf
xor eax, dword [r10 + rcx*4]
mov ecx, eax
xor eax, r9d
and eax, 0xf
shr ecx, 4
xor ecx, dword [r10 + rax*4]
cmp rdx, r8
jne 0x4abe30
mov eax, ecx
not eax
ret
Function at 0x140006ec0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Inject apc

Disassembly:
push rbp
sub rsp, 0x350
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x2c8], 0xfffffffffffffffe
lea rdx, str.This_is_a_key_and_its_32_bytes_This_is_16_bytes___
mov qword [rbp - 8], rdx
lea rax, [0x14003c818]
mov qword [rbp - 0x28], rax
mov qword [rbp], rax
lea rax, [0x14003c82a]
mov qword [rbp - 0x30], rax
mov qword [rbp + 8], rax
lea rcx, [rbp + 0x10]
mov qword [rbp - 0x20], rcx
call fcn.14000d5e0
mov rcx, qword [rbp - 0x30]
lea rdx, str.srcmain.rs
call fcn.140007830
mov r8, qword [rbp - 0x28]
mov rcx, rax
mov r9, rdx
mov rdx, qword [rbp - 0x20]
mov rax, rsp
mov qword [rax + 0x28], r9
mov qword [rax + 0x20], rcx
lea rcx, [rbp + 0x1f8]
mov qword [rbp - 0x18], rcx
mov r9d, 0x12
call fcn.14000d720
mov rcx, qword [rbp - 0x18]
mov qword [rbp + 0x2a8], 0
mov qword [rbp + 0x2b0], 0
mov qword [rbp + 0x2c0], 0
mov rax, qword [rbp + 0x2c0]
mov qword [rbp + 0x2b8], rax
mov rax, qword [rbp + 0x2b8]
mov qword [rbp + 0x210], rax
call fcn.14000c870
mov qword [rbp - 0x10], rax
jmp 0x140006f9c
mov rax, qword [rbp - 0x10]
mov qword [rbp + 0x218], rax
mov rax, rsp
mov dword [rax + 0x28], 4
mov dword [rax + 0x20], 0x3000
mov rax, qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
xor ecx, ecx
mov r8d, ecx
mov rcx, 0xffffffffffffffff
lea rdx, [rbp + 0x210]
lea r9, [rbp + 0x218]
call rax
jmp 0x140006fdd
mov rax, qword [rbp + 0x210]
mov qword [rbp - 0x40], rax
lea rcx, [rbp + 0x1f8]
call fcn.14000a9c0
mov qword [rbp - 0x38], rax
jmp 0x140006ffa
lea rcx, [rbp + 0x1f8]
call fcn.14000c870
mov qword [rbp - 0x48], rax
jmp 0x14000700c
mov r9, qword [rbp - 0x48]
mov r8, qword [rbp - 0x38]
mov rdx, qword [rbp - 0x40]
mov qword [rbp + 0x248], 0
mov qword [rbp + 0x250], 0
mov qword [rbp + 0x260], 0
mov rax, qword [rbp + 0x260]
mov qword [rbp + 0x258], rax
mov rcx, qword [rbp + 0x258]
mov rax, rsp
mov qword [rax + 0x20], rcx
mov rax, qword [sym.imp.ntdll.dll_NtWriteVirtualMemory]
mov rcx, 0xffffffffffffffff
call rax
jmp 0x140007067
mov dword [rbp + 0x224], 4
mov rax, rsp
lea rcx, [rbp + 0x224]
mov qword [rax + 0x20], rcx
mov rax, qword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
mov rcx, 0xffffffffffffffff
lea rdx, [rbp + 0x210]
lea r8, [rbp + 0x218]
mov r9d, 0x40
call rax
jmp 0x1400070a5
mov rax, qword [rbp + 0x210]
mov qword [rbp + 0x228], rax
mov r8, qword [rbp + 0x210]
mov qword [rbp + 0x288], 0
mov qword [rbp + 0x290], 0
mov qword [rbp + 0x2a0], 0
mov rax, qword [rbp + 0x2a0]
mov qword [rbp + 0x298], rax
mov r9, qword [rbp + 0x298]
mov qword [rbp + 0x268], 0
mov qword [rbp + 0x270], 0
mov qword [rbp + 0x280], 0
mov rax, qword [rbp + 0x280]
mov qword [rbp + 0x278], rax
mov rcx, qword [rbp + 0x278]
mov rdx, qword [rbp + 0x228]
mov rax, rsp
mov qword [rax + 0x20], rcx
mov rax, qword [sym.imp.ntdll.dll_NtQueueApcThread]
mov rcx, 0xfffffffffffffffe
call rax
jmp 0x140007146
lea rcx, [rbp + 0x230]
call fcn.140005c70
jmp 0x140007154
lea rcx, [rbp + 0x230]
call fcn.1400032f0
jmp 0x140007162
mov rax, qword [sym.imp.ntdll.dll_NtTestAlert]
call rax
jmp 0x14000716d
lea rcx, [rbp + 0x1f8]
call fcn.14000c170
nop
add rsp, 0x350
pop rbp
ret
Function at 0x14001ac20
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 + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x14001acb0
jmp 0x14001ac9f
jae 0x14001ad70
cmp r8, 0x201
jae 0x14001acb0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x14001ad08
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14001acdf
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14003ac20
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x14001ad31
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14001add8
mov r8d, r14d
cmp r15, r8
jne 0x14001ac90
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14001adfb
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14001ac9f
jmp 0x14001acb0
cmp rsi, r8
jb 0x14001ae15
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.14001c820
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x14001adc1
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.14000b8e0
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 + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x14001ada9
jmp 0x14001adc1
lea rcx, str.internal_error:_entered_unreachable_code_
lea r8, str.e__n_
mov edx, 0x28
call fcn.14003b5f0
jmp 0x14001ae2a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14003ba40
ud2
Function at 0x14001ae80
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x60]
call fcn.14002ba90
mov rax, qword [rbp - 0x60]
mov qword [rbp + 0x408], rax
test rax, rax
je 0x14001b006
mov qword [rbp + 0x400], rsi
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x418], rax
mov qword [rbp + 0x3e8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3f0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x410], rax
xor edi, edi
xor ebx, ebx
xor r13d, r13d
cmp r8, 0x201
jae 0x14001af40
jmp 0x14001af2f
jae 0x14001b018
cmp r8, 0x201
jae 0x14001af40
mov r15d, 0x200
lea r14, [rbp - 0x60]
mov r12, r8
jmp 0x14001af98
sub r8, r13
sub rbx, r13
cmp rbx, r8
jae 0x14001af6f
lea rcx, [rbp + 0x3e8]
mov rdx, r13
call fcn.14003ac20
mov rax, qword [rbp + 0x3e8]
mov qword [rbp + 0x410], rax
mov rdi, qword [rbp + 0x3f0]
mov eax, 0xffffffff
cmp rdi, rax
mov r13d, 0xffffffff
cmovb r13, rdi
mov qword [rbp + 0x3f8], r13
mov rbx, rdi
mov r15, r13
mov r14, qword [rbp + 0x410]
mov r12, r13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x408]
mov rdx, r14
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x14001afc7
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14001b0eb
mov r8d, esi
cmp r12, r8
jne 0x14001af20
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14001b115
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14001af2f
jmp 0x14001af40
lea rcx, [rbp - 0x58]
call fcn.140015000
mov byte [rsi + 0x18], 2
jmp 0x14001b0aa
cmp r15, r8
jb 0x14001b12f
lea rcx, [rbp + 0x3a0]
mov rdx, r14
call fcn.14001c820
movups xmm0, xmmword [rbp + 0x3a0]
movups xmm1, xmmword [rbp + 0x3b0]
movaps xmmword [rbp + 0x3d0], xmm1
movaps xmmword [rbp + 0x3c0], xmm0
test rdi, rdi
je 0x14001b069
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x410]
mov rdx, rdi
call fcn.14000b8e0
cmp byte [rbp + 0x3d8], 2
jne 0x14001b0c1
mov rsi, qword [rbp + 0x400]
mov byte [rsi + 0x18], 2
lea rcx, [rbp + 0x3c0]
call fcn.140015000
mov rdx, qword [rbp + 0x418]
test rdx, rdx
je 0x14001b0aa
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x408]
call fcn.14000b8e0
mov rax, rsi
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movaps xmm0, xmmword [rbp + 0x3c0]
movaps xmm1, xmmword [rbp + 0x3d0]
mov rsi, qword [rbp + 0x400]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x418]
test rdx, rdx
jne 0x14001b095
jmp 0x14001b0aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3c0], rax
mov byte [rbp + 0x3d8], 2
test rdi, rdi
jne 0x14001b051
jmp 0x14001b069
lea rcx, str.internal_error:_entered_unreachable_code_
lea r8, str.e__n_
mov edx, 0x28
call fcn.14003b5f0
jmp 0x14001b144
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.14003ba40
ud2
Function at 0x14001f920
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.14003a170
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1020], xmm6
mov qword [rbp + 0x1018], 0xfffffffffffffffe
mov qword [rbp + 0x1008], rdx
mov r12, rcx
lea r13, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r13
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0xfe8]
xorps xmm6, xmm6
lea rbx, [rbp + 0xffc]
lea rsi, [0x1400251e0]
lea r15, [rbp + 0xfb0]
mov r14, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov rdi, qword [sym.imp.KERNEL32.dll_SleepEx]
mov qword [rbp + 0x1010], r12
mov r9d, 0x1000
mov rdx, r12
mov r8, r13
call fcn.140024f80
cmp qword [rbp + 0xfe8], 0
jne 0x14001faf7
mov r12, qword [rbp + 0xff0]
test r12, r12
je 0x14001fac3
cmp r12, 0x1000
ja 0x14001fb19
xor r13d, r13d
nop word cs:[rax + rax]
mov r8d, r12d
sub r8d, r13d
lea rdx, [r13 - 0x50]
add rdx, rbp
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], rbx
mov qword [rsp + 0x20], rsi
mov rcx, qword [rbp + 0x1008]
mov r9, r15
call r14
test eax, eax
je 0x14001fa97
nop word [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x14001fa40
movsxd rax, dword [rbp + 0x1000]
test rax, rax
jne 0x14001fa9d
mov eax, dword [rbp + 0x1004]
add r13, rax
cmp r13, r12
je 0x14001fa80
jbe 0x14001f9f0
jmp 0x14001fb05
mov r12, qword [rbp + 0x1010]
lea r13, [rbp - 0x50]
lea rcx, [rbp + 0xfe8]
jmp 0x14001f9a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0xfe0], rax
mov qword [rbp + 0xfd8], 1
lea rcx, [rbp + 0xfe0]
call fcn.140015000
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 + 0xff0]
call fcn.140015000
jmp 0x14001fac3
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r13
mov rdx, r12
call fcn.14003bac0
jmp 0x14001fb2d
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, r12
call fcn.14003ba40
ud2