joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011880
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 0x140011910
jmp 0x1400118ff
jae 0x1400119d0
cmp r8, 0x201
jae 0x140011910
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140011968
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14001193f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.1400352a0
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 0x140011991
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140011a38
mov r8d, r14d
cmp r15, r8
jne 0x1400118f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140011a5b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1400118ff
jmp 0x140011910
cmp rsi, r8
jb 0x140011a75
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140013b80
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 0x140011a21
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.14000a4c0
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 0x140011a09
jmp 0x140011a21
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140035df0
jmp 0x140011a8a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.1400361e0
ud2
Function at 0x140017940
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1098
call fcn.140034690
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1000], xmm6
mov qword [rbp + 0xff8], 0xfffffffffffffffe
mov qword [rbp + 0xfd8], rdx
mov rbx, rcx
lea rsi, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0xfec], 0
xorps xmm6, xmm6
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
lea r14, [rbp + 0xfec]
mov qword [rbp + 0xfc8], r14
lea r15, [0x14001e0a0]
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0xfb0]
mov rcx, rbx
mov rdx, rsi
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x140017b31
mov r12, qword [sym.imp.KERNEL32.dll_SleepEx]
lea rsi, [rbp + 0xfb0]
mov r13, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov qword [rbp + 0xfe0], rbx
mov ecx, 0xffffffff
mov edx, 1
call r12
cmp dword [rbp + 0xfec], 0
je 0x140017a07
cmp dword [rbp + 0xff0], 0
jne 0x140017b46
mov eax, dword [rbp + 0xff4]
test rax, rax
je 0x140017b46
cmp eax, 0x1000
ja 0x140017b91
xor ebx, ebx
nop word cs:[rax + rax]
cmp rbx, rax
ja 0x140017b76
lea rdx, [rbx + rbp]
add rdx, 0xffffffffffffffb0
mov rdi, rax
mov r8d, eax
sub r8d, ebx
mov dword [rbp + 0xfec], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r14
mov qword [rsp + 0x20], r15
mov rcx, qword [rbp + 0xfd8]
mov r9, rsi
call r13
test eax, eax
je 0x140017b39
nop word [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r12
cmp dword [rbp + 0xfec], 0
je 0x140017ab0
cmp dword [rbp + 0xff0], 0
jne 0x140017b3f
mov eax, dword [rbp + 0xff4]
add rbx, rax
mov rax, rdi
cmp rbx, rdi
jne 0x140017a50
mov dword [rbp + 0xfec], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r14
mov qword [rsp + 0x20], r15
mov rbx, qword [rbp + 0xfe0]
mov rcx, rbx
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x140017a07
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140017b46
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rbp + 0xfe0]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call rsi
mov rcx, qword [rbp + 0xfd8]
call rsi
movaps xmm6, xmmword [rbp + 0x1000]
add rsp, 0x1098
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, rbx
mov qword [rbp + 0xfd0], rax
mov rdx, rax
call fcn.140036250
jmp 0x140017bac
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov qword [rbp + 0xfd0], rax
mov rcx, rax
call fcn.1400361e0
ud2
Function at 0x14001b630
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14003a858]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14001b674
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x14001b6d3
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x14001b6e2
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14001b71a
cmp eax, 0x103
je 0x14001b724
test eax, eax
js 0x14001b6ff
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14001b71a
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x20], 0
lea rdx, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
lea rsi, [rsp + 0x78]
lea r9, [rsp + 0x50]
mov r8d, 1
mov rcx, rsi
call fcn.14000ac10
lea rcx, [rsp + 0x58]
mov rdx, rsi
call fcn.140013920
mov rcx, rax
call fcn.14000bf70
mov ecx, 7
int 0x29
ud2

Function at 0x14001b780
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14003a858]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14001b7c4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14001b82a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14001b861
test eax, eax
js 0x14001b83b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14001b854
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x20], 0
lea rdx, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
lea rsi, [rsp + 0x78]
lea r9, [rsp + 0x50]
mov r8d, 1
mov rcx, rsi
call fcn.14000ac10
lea rcx, [rsp + 0x58]
mov rdx, rsi
call fcn.140013920
mov rcx, rax
call fcn.14000bf70
mov ecx, 7
int 0x29
ud2
Function at 0x14001d190
Capabilities:
Create pipe
Generate random numbers via winapi

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x128
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x90], xmm6
mov qword [rbp + 0x88], 0xfffffffffffffffe
mov qword [rbp + 0x38], rcx
mov byte [rbp + 0x85], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x34], ecx
xor edi, edi
mov ebx, 8
mov sil, 1
xorps xmm6, xmm6
mov r14, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
xor eax, eax
mov qword [rbp - 0x18], rax
nop

Function at 0x14001e550
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
cmp qword [rdx], 0
jne 0x14001e65f
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx + 8]
test rax, rax
jne 0x14001e588
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x14001e622
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x14001e641
sub rax, rdx
add rdx, qword [rbx]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x30], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x30]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001e5de
mov eax, dword [rsp + 0x30]
mov ecx, 2
test rax, rax
jne 0x14001e5fb
jmp 0x14001e5f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14001e5f6
cmp eax, 0x6d
jne 0x14001e612
mov byte [rsi + 1], 0
jmp 0x14001e606
mov ecx, 1
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
xor eax, eax
mov byte [rsi], al
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x14001e608
mov r8d, 0x10
mov rcx, rbx
call fcn.140035360
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x14001e595
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.140035360
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
jmp 0x14001e595
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140035180
ud2
Function at 0x140023120
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x88
movdqa xmmword [rsp + 0x70], xmm6
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.140024bc0
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
test rcx, rcx
leave

Function at 0x140023d70
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x140023db3
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x140012710]
mov qword [rbp - 0x28], rax
lea rax, [0x14003ad20]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.140035d50
ud2
Function at 0x140032c60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x140032cda
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140032cd0
cmp r11, r10
ja 0x140032d73
cmp r10, rdx
ja 0x140032d87
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140032cd2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140032cb0
jmp 0x140032d47
ja 0x140032cda
mov r11, r10
cmp rax, r8
jne 0x140032c82
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x140032d4b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140032d20
mov r8, r10
sub ecx, r9d
jns 0x140032d3e
jmp 0x140032d4d
cmp r10, rdx
je 0x140032d59
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x140032d4d
xor al, 1
cmp r8, rdx
jne 0x140032d00
jmp 0x140032d4d
xor eax, eax
jmp 0x140032d4d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuelibrarycore_src_nummod.rsfrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140035df0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140036250
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400361e0
ud2

Function at 0x140034bec
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x1400097c0]
mov rbx, rdx
mov qword [rsp + 0x38], rdi
mov edi, ecx
test rax, rax
jne 0x1400020d6
mov rcx, qword [0x1400098b8]
lea rdx, [0x140006b00]
call fcn.140003510
mov qword [0x1400097c0], rax
xor r8d, r8d
mov rdx, rbx
mov ecx, edi
call rax
mov rax, qword [0x1400097f0]
test rax, rax
jne 0x140002106
mov rcx, qword [0x1400098b8]
lea rdx, [0x140006d50]
call fcn.140003510
mov qword [0x1400097f0], rax
lea rcx, [0x140006660]
call rax
mov rbx, rax
test rax, rax
je 0x140002209
mov rax, qword [0x1400097d0]
mov qword [rsp + 0x30], rsi
test rax, rax
jne 0x140002146
mov rcx, qword [0x1400098b8]
lea rdx, [0x140006df0]
call fcn.140003510
mov qword [0x1400097d0], rax
xor r9d, r9d
lea rcx, str._MessageBox
xor r8d, r8d
xor edx, edx
call rax
mov rsi, qword [str._MessageBox]
mov rdi, rax
mov rax, qword [0x140009900]
test rax, rax
jne 0x140002187
mov rcx, qword [0x1400098b8]
lea rdx, [0x140006dd8]
call fcn.140003510
mov qword [0x140009900], rax
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call rax
mov rax, qword [0x1400097d0]
test rax, rax
jne 0x1400021b8
mov rcx, qword [0x1400098b8]
lea rdx, [0x140006df0]
call fcn.140003510
mov qword [0x1400097d0], rax
xor r9d, r9d
lea rcx, str._SHGetSpecialFolderPath
xor r8d, r8d
xor edx, edx
call rax
mov rsi, qword [str._SHGetSpecialFolderPath]
mov rdi, rax
mov rax, qword [0x140009900]
test rax, rax
jne 0x1400021f9
mov rcx, qword [0x1400098b8]
lea rdx, [0x140006dd8]
call fcn.140003510
mov qword [0x140009900], rax
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call rax
mov rsi, qword [rsp + 0x30]
call fcn.1400011c0
lea rcx, str.PYTHONINSPECT
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400022a7
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdi, rax
mov rax, qword [0x140009868]
test rax, rax
jne 0x140002257
mov rcx, qword [0x1400098b8]
lea rdx, [0x1400069f8]
call fcn.140003510
mov qword [0x140009868], rax
lea rdx, str._stdin_
mov rcx, rdi
call rax
test eax, eax
je 0x1400022a7
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdi, rax
mov rax, qword [0x140009960]
test rax, rax
jne 0x140002298
mov rcx, qword [0x1400098b8]
lea rdx, [0x140006a10]
call fcn.140003510
mov qword [0x140009960], rax
xor r8d, r8d
lea rdx, str._stdin_
mov rcx, rdi
call rax
mov rax, qword [0x1400097b8]
mov rdi, qword [rsp + 0x38]
test rax, rax
jne 0x1400022d2
mov rcx, qword [0x1400098b8]
lea rdx, [0x140006a98]
call fcn.140003510
mov qword [0x1400097b8], rax
call rax
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x140004902
Capabilities:
Access peb ldr_data
Get process filename

Disassembly:
test eax, eax
je fcn.14000472f
jmp 0x140007b9a
mov rcx, qword [rsp + 0x70]
call fcn.140003cb8
jmp 0x14000406f
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax*2 + 2]
mov qword [rsp + 0x38], rax
jmp 0x1400073b2
xor r9d, r9d
mov r8d, eax
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
call fcn.1400028c7
jmp 0x1400030f1
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword gs:[0x60]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x20]
sub rax, 0x10
jmp 0x140005fcf
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140007b9a
jmp 0x140007aac
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], 0
jmp 0x140005182
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax*2]
cmp eax, 0x5c
je 0x1400035e9
jmp 0x140007e5d
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax*2]
test eax, eax
je 0x140003554
jmp 0x140006a81
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x20], 0
jmp 0x1400080aa
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x10]
sub rax, 0x10
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x40]
cmp qword [rsp + 0x30], rax
jne 0x140005182
jmp 0x140003e8a
jmp 0x1400073b2
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax*2]
test eax, eax
je 0x140003554
jmp 0x140006a81
Function at 0x140002320
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x38
mov r8, qword [rcx + 0x320]
lea rdx, str.explore
xor ecx, ecx
mov dword [rsp + 0x28], 1
xor r9d, r9d
mov qword [rsp + 0x20], 0
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
add rsp, 0x38
ret

Function at 0x14000380c
Capabilities:
Parse pe header

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

Disassembly:
call fcn.1409c11df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1409c1089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409c106f
add dl, dl
jne 0x1409c1096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409c10f6
xor eax, eax
add dl, dl
jne 0x1409c10a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409c11ad
add dl, dl
jne 0x1409c10b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409c10c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409c10d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409c10dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1409c10ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1409c107e
mov eax, 1
add dl, dl
jne 0x1409c1106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409c1113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409c10fb
sub eax, ebx
mov ebx, 1
jne 0x1409c114c
mov ecx, 1
add dl, dl
jne 0x1409c112e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409c113b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409c1123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409c107e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1409c1168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409c1175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409c115d
cmp eax, 0x7d00
jae 0x1409c119b
cmp eax, 0x500
jb 0x1409c1196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409c107e
cmp eax, 0x7f
ja 0x1409c119e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409c107e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1409c11d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1409c107e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002100
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rsi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov rdi, rcx
movabs rbp, 0x9e3779b185ebca87
movabs r15, 0x27d4eb2f165667c5
movabs r14, 0xc2b2ae3d27d4eb4f
movabs r12, 0x7a1435883d4d519d
cmp rsi, 0x20
jb 0x1400021fb
mov rcx, qword [rcx + 8]
mov r8, qword [rdi + 0x18]
mov r9, qword [rdi + 0x20]
mov rax, r8
mov rdx, qword [rdi + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rdx
rol rax, 7
add r10, rax
mov rax, rcx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rcx, r14
imul rdx, r14
imul r8, r14
imul r9, r14
rol rcx, 0x1f
imul rcx, rbp
rol rdx, 0x1f
xor r10, rcx
rol r8, 0x1f
imul r10, rbp
imul rdx, rbp
imul r8, rbp
sub r10, r12
rol r9, 0x1f
xor r10, rdx
imul r10, rbp
imul r9, rbp
sub r10, r12
xor r10, r8
imul r10, rbp
sub r10, r12
xor r10, r9
imul r10, rbp
add rax, r10
add rax, rsi
jmp 0x140002203
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x14000223a
nop dword [rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, r14
add r11, 8
rol rcx, 0x1f
imul rcx, rbp
xor rax, rcx
rol rax, 0x1b
imul rax, rbp
sub rax, r12
cmp rdx, rbx
jbe 0x140002210
lea rdx, [r11 + 4]
movabs r9, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x140002265
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rbp
xor rax, rcx
rol rax, 0x17
imul rax, r14
add rax, r9
xor edx, edx
mov r8, rbx
sub r8, r11
cmp r11, rbx
cmova r8, rdx
test r8, r8
je 0x14000229f
nop dword [rax]
movzx ecx, byte [r11]
lea r11, [r11 + 1]
imul rcx, r15
inc rdx
xor rax, rcx
rol rax, 0xb
imul rax, rbp
cmp rdx, r8
jb 0x140002280
mov rbx, qword [rsp + 0x20]
mov rcx, rax
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
shr rcx, 0x21
xor rcx, rax
imul rcx, r14
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r9
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
pop r12
ret

Function at 0x14000b310
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14002a008]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000b355
xor al, al
jmp 0x14000b3a2
cmp word [rbx], 0
je 0x14000b36d
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000b360
cmp word [rsp + 0x30], 0
je 0x14000b39b
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000b3c3
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000b380
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000c500
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000e2b0
int3