joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001cca0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
sub rsp, 0x40
mov rbx, qword [0x180050770]
cmp byte [rbx + 0x2f30], 0
je 0x18001cd8c
cmp qword [rbx + 0x2f38], 0
mov qword [rax - 0x18], rsi
lea rsi, [rax + 0x10]
mov qword [rax - 0x20], rdi
lea rdi, [rbx + 0x2f40]
je 0x18001cd74
mov r9d, dword [rdi + 4]
mov qword [rax - 0x10], rbp
xor ebp, ebp
test r9d, r9d
jns 0x18001cd1b
mov eax, r9d
mov rcx, rdi
cdq
sub eax, edx
mov edx, ebp
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.18001e5f0
mov rcx, qword [rsp + 0x50]
mov rdx, rcx
mov dword [rdi], ebp
mov rcx, rdi
mov r8, rsi
call fcn.18000e620
mov eax, dword [rdi]
mov edx, 1
mov r9, qword [rbx + 0x2f38]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rbx + 0x2f48]
cmove ecx, ebp
test rax, rax
movsxd r8, ecx
lea rcx, [0x18004fffa]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
ret
mov rdx, rcx
mov r8, rsi
mov rcx, rdi
call fcn.18000e620
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
ret

Function at 0x18001d100
Capabilities:
Write file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x20
mov rbx, qword [0x180050770]
xor r15d, r15d
mov r14, rcx
mov dword [rbx + 0x2ef8], r15d
test rcx, rcx
je 0x18001d224
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
lea rdi, [rbx + 0x2f00]
mov dword [rbx + 0x2ef8], r15d
mov ecx, dword [rdi + 4]
test ecx, ecx
jns 0x18001d164
mov eax, ecx
cdq
sub eax, edx
mov edx, r15d
sar eax, 1
add eax, ecx
mov rcx, rdi
test eax, eax
cmovg edx, eax
call fcn.18001e5f0
mov dword [rdi], r15d
cmp dword [rdi + 4], r15d
jne 0x18001d17a
mov edx, 8
mov rcx, rdi
call fcn.18001e5f0
movsxd rcx, dword [rdi]
mov ebp, r15d
mov rax, qword [rdi + 8]
mov byte [rcx + rax], r15b
inc dword [rdi]
cmp dword [rbx + 0x2f10], r15d
jle 0x18001d1c5
mov rsi, r15
nop word [rax + rax]
mov r9, qword [rbx + 0x2f18]
mov r8, rdi
add r9, rsi
mov rcx, rbx
mov rdx, r9
call qword [r9 + 0x20]
inc ebp
add rsi, 0x30
cmp ebp, dword [rbx + 0x2f10]
jl 0x18001d1a0
mov eax, dword [rdi]
test eax, eax
lea rdi, [0x18004fffa]
lea ecx, [rax - 1]
mov rax, qword [rbx + 0x2f08]
cmove ecx, r15d
test rax, rax
movsxd rsi, ecx
mov rcx, r14
cmovne rdi, rax
call fcn.18000dee0
mov rbp, qword [rsp + 0x40]
mov rbx, rax
test rax, rax
je 0x18001d21a
mov r9, rax
mov r8, rsi
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rbx
ret
Function at 0x1800282b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test r9d, 0xff000000
je 0x180028443
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
movss xmm3, dword [rsp + 0x70]
xorps xmm0, xmm0
comiss xmm3, xmm0
mov edi, r9d
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
jbe 0x180028320
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
call fcn.180027c70
mov r8d, dword [rbx + 0x80]
mov r9d, edi
mov rdx, qword [rbx + 0x88]
mov rcx, rbx
call fcn.1800272d0
mov dword [rbx + 0x80], 0
jmp 0x18002842f
mov edx, 6
movaps xmmword [rsp + 0x30], xmm6
mov r8d, 4
call fcn.180026230
movzx edx, word [rbx + 0x4c]
mov rax, qword [rbx + 0x38]
movss xmm1, dword [rsi]
movss xmm2, dword [rbp + 4]
movss xmm3, dword [rbp]
lea ecx, [rdx + 1]
movss xmm6, dword [rax + 4]
movss xmm5, dword [rax]
movss xmm4, dword [rsi + 4]
mov rax, qword [rbx + 0x58]
mov word [rax], dx
mov rax, qword [rbx + 0x58]
mov word [rax + 2], cx
lea ecx, [rdx + 2]
mov rax, qword [rbx + 0x58]
mov word [rax + 4], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 6], dx
add dx, 3
mov rax, qword [rbx + 0x58]
mov word [rax + 8], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 0xa], dx
movsd xmm0, qword [rbp]
mov rax, qword [rbx + 0x50]
movsd qword [rax], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 8], xmm5
movss dword [rax + 0xc], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x10], edi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x14], xmm1
movss dword [rax + 0x18], xmm2
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x1c], xmm5
movss dword [rax + 0x20], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x24], edi
movsd xmm0, qword [rsi]
mov rax, qword [rbx + 0x50]
movsd qword [rax + 0x28], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x30], xmm5
movss dword [rax + 0x34], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x38], edi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x3c], xmm3
movss dword [rax + 0x40], xmm4
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x44], xmm5
movss dword [rax + 0x48], xmm6
mov rax, qword [rbx + 0x50]
movaps xmm6, xmmword [rsp + 0x30]
mov dword [rax + 0x4c], edi
add qword [rbx + 0x50], 0x50
add dword [rbx + 0x4c], 4
add qword [rbx + 0x58], 0xc
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x180036b90
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x28
test dword [rcx + 0x58], 0x100000
mov r10, rdx
je 0x180036c1b
movzx r9d, byte [rdx]
lea r8, [rdx + 1]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x180036bf0
lea r10, [0x1800425b0]
nop dword [rax]
cmp r9b, 0x23
jne 0x180036bd3
cmp byte [r8], r9b
jne 0x180036bd3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r10 + rdx*4]
test r9b, r9b
jne 0x180036bc0
mov rcx, qword [0x180050770]
not eax
cmp dword [rcx + 0x1a60], eax
jne 0x180036c07
mov dword [rcx + 0x1a64], eax
cmp dword [rcx + 0x1a9c], eax
jne 0x180036c6d
mov byte [rcx + 0x1aa0], 1
add rsp, 0x28
ret
mov qword [rsp + 0x20], rbx
xor edx, edx
mov rbx, qword [0x180050770]
mov rcx, r10
mov r8, qword [rbx + 0x1a18]
movsxd rax, dword [r8 + 0xc0]
mov r8, qword [r8 + 0xc8]
mov r8d, dword [r8 + rax*4 - 4]
call fcn.18000de30
cmp dword [rbx + 0x1a60], eax
jne 0x180036c59
mov dword [rbx + 0x1a64], eax
cmp dword [rbx + 0x1a9c], eax
jne 0x180036c68
mov byte [rbx + 0x1aa0], 1
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret

Function at 0x18003a3d0
Capabilities:
Suspend thread

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 8], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0xc], 0
mov rcx, qword [rsp + 0x40]
call fcn.18003a1c0
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x18003a4a7
mov dword [rsp + 0x20], 0
jmp 0x18003a444
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x20], eax
jae 0x18003a4a7
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18003a4a5
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, dword [rsp + 0x50]
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
call fcn.180039fa0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18003a43a
add rsp, 0x30
pop rdi
ret
Function at 0x18003a4c0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x18003a564
mov dword [rsp + 0x20], 0
jmp 0x18003a4fd
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x20], eax
jae 0x18003a54d
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18003a54b
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18003a4f3
mov rax, qword [rsp + 0x40]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x18004f8c8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x30
pop rdi
ret
Function at 0x18003a570
Capabilities:
Allocate or change rwx memory

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x70
mov rdi, rsp
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x80]
mov eax, dword [rsp + 0x80]
imul rax, rax, 0x38
mov rcx, qword [0x180050df0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], 5
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x18003a5f4
mov rax, qword [rsp + 0x50]
sub rax, 5
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
add rax, 2
mov qword [rsp + 0x48], rax
lea r9, [rsp + 0x34]
mov r8d, 0x40
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18003a61d
mov eax, 0xa
jmp 0x18003a757
cmp dword [rsp + 0x88], 0
je 0x18003a68b
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov byte [rax], 0xe9
mov rax, qword [rsp + 0x50]
add rax, 5
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 8]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x58]
mov dword [rcx + 1], eax
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x18003a689
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov byte [rax], 0xeb
mov rax, qword [rsp + 0x60]
mov byte [rax + 1], 0xf9
jmp 0x18003a6d7
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x18003a6bb
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov r8d, 7
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call sub.VCRUNTIME140.dll_memcpy
jmp 0x18003a6d7
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov r8d, 5
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call sub.VCRUNTIME140.dll_memcpy
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx eax, byte [rsp + 0x88]
and al, 1
shl al, 1
mov rcx, qword [rsp + 0x20]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfd
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x20]
mov byte [rcx + 0x20], al
movzx eax, byte [rsp + 0x88]
and al, 1
shl al, 2
mov rcx, qword [rsp + 0x20]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfb
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x20]
mov byte [rcx + 0x20], al
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1800409d0]
call fcn.18003db74
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x18003bc40
Capabilities:
Check for software breakpoints

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x10
mov rdi, rsp
mov ecx, 4
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x20]
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
test eax, eax
je 0x18003bcae
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, 0x90
je 0x18003bcae
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, 0xcc
je 0x18003bcae
xor eax, eax
jmp 0x18003bcf5
mov dword [rsp], 1
jmp 0x18003bcbf
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp], eax
jae 0x18003bcf0
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x20]
movzx ecx, byte [rdx + rcx]
cmp eax, ecx
je 0x18003bcee
xor eax, eax
jmp 0x18003bcf5
jmp 0x18003bcb7
mov eax, 1
add rsp, 0x10
pop rdi
ret
Function at 0x1400079b0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [0x14002b080]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [rbp - 0x29], ebx
lea rdx, [rbp - 0x29]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rbx, rax
mov qword [rbp - 9], rax
test rax, rax
je 0x140007aee
mov r8, rax
mov edx, dword [rbp - 0x29]
lea rcx, [rbp - 0x21]
call fcn.140003e70
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rax, rax
je 0x140007a1d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
cmp qword [0x14002b028], 0
jne 0x140007b1d
mov rdx, qword [rbp - 0x21]
mov r8, qword [rbp - 0x19]
cmp rdx, r8
je 0x140007b3e
sub r8, rdx
sar r8, 5
lea rcx, [section..data]
call fcn.140002150
xor edx, edx
lea rcx, [rbp + 0x27]
call fcn.140007e40
mov rdx, rax
lea rcx, [0x14002b018]
call fcn.140005980
lea rcx, [rbp + 0x27]
call fcn.140006b60
cmp qword [0x14002b028], 0
je 0x140007b5f
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x140007acb
lea r8, [rbp - 0x21]
mov rdx, qword [rbp - 0x19]
call fcn.140002880
mov rdx, qword [rbp - 0x11]
mov rcx, qword [rbp - 0x21]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007ac6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007ae8
call fcn.14000b08c
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14000b400
mov rbx, qword [rsp + 0xb0]
add rsp, 0xa0
pop rbp
ret
call fcn.140010d04
nop
lea rdx, str.cannot_parse_command_line_string
lea rcx, [rbp + 0x27]
call fcn.1400048a0
nop
lea rdx, [rbp + 0x27]
lea rcx, [rbp - 1]
call fcn.140004c20
lea rdx, [0x140029380]
lea rcx, [rbp - 1]
call fcn.14000c134
nop
lea rdx, str.program_already_initialized
lea rcx, [rbp + 0x27]
call fcn.1400052d0
lea rdx, [0x140029280]
lea rcx, [rbp + 0x27]
call fcn.14000c134
int3
lea rdx, str.invalid_argv
lea rcx, [rbp + 0x27]
call fcn.1400051e0
lea rdx, [0x140029318]
lea rcx, [rbp + 0x27]
call fcn.14000c134
int3
lea rdx, str.program_not_initialized
lea rcx, [rbp + 0x27]
call fcn.1400052d0
lea rdx, [0x140029280]
lea rcx, [rbp + 0x27]
call fcn.14000c134
int3
Function at 0x1400085b0
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x14002b080]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp qword [rdx + 0x18], 7
jbe 0x1400085cf
mov rdx, qword [rdx]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
test eax, eax
jne 0x1400085ee
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14000b400
add rsp, 0x70
pop rbx
ret
lea rdx, str.cannot_remove_registry_key
lea rcx, [rsp + 0x48]
call fcn.1400048a0
nop
lea r8, [rsp + 0x48]
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.140004c80
lea rdx, [0x140029380]
lea rcx, [rsp + 0x20]
call fcn.14000c134
int3
Function at 0x140008d90
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x14002b080]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, r8
mov rdi, rdx
mov r14, rcx
mov qword [rbp - 0x79], rcx
xor r15d, r15d
lea rcx, [0x14001c5c0]
lea rax, [0x14001c5d0]
test r9b, r9b
cmovne rax, rcx
movups xmm0, xmmword [rax]
movups xmmword [rbp - 9], xmm0
mov qword [rbp - 0x79], r15
lea r9, [rbp - 0x79]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 9]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x140008f84
mov rbx, qword [rbp - 0x79]
mov qword [rbp - 0x61], rbx
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rbx + r8*2], 0
jne 0x140008e10
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x39], r15
mov qword [rbp - 0x31], r15
mov rdx, rbx
lea rcx, [rbp - 0x49]
call fcn.140002480
nop
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
cmp qword [rsi + 0x10], 0
je 0x140008e54
mov rdx, rsi
lea rcx, [rbp - 0x49]
call fcn.140005a80
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 7
jbe 0x140008e62
mov rdi, qword [rdi]
xorps xmm0, xmm0
movups xmmword [rbp - 0x69], xmm0
mov qword [rbp - 0x59], r15
mov qword [rbp - 0x51], r15
mov rdx, rdi
lea rcx, [rbp - 0x69]
call fcn.140002480
nop
lea rdx, [rbp - 0x69]
lea rcx, [rbp - 0x49]
call fcn.140005a80
nop
mov rdx, qword [rbp - 0x51]
cmp rdx, 7
jbe 0x140008ecc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008ec7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008fc1
call fcn.14000b08c
lea rax, [0x14001bc78]
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], 3
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
xor r8d, r8d
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x69]
call fcn.1400025b0
nop
lea rdx, [rbp - 0x69]
lea rcx, [rbp - 0x49]
call fcn.140008810
mov rdx, rax
mov rcx, r14
call fcn.140004a10
nop
lea rcx, [rbp - 0x69]
call fcn.140006b60
nop
mov rdx, qword [rbp - 0x31]
cmp rdx, 7
jbe 0x140008f58
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008f53
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008f7e
call fcn.14000b08c
mov rax, r14
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14000b400
mov rbx, qword [rsp + 0x108]
add rsp, 0xd0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.140010d04
int3
mov edx, eax
lea rcx, [rbp - 0x29]
call fcn.140009630
nop
mov r8, rax
lea rdx, str.cannot_get_known_folder_path:_error
lea rcx, [rbp + 7]
call fcn.1400017b0
nop
mov rdx, rax
lea rcx, [rbp - 0x69]
call fcn.140005360
lea rdx, [0x140029138]
lea rcx, [rbp - 0x69]
call fcn.14000c134
nop
call fcn.140010d04
int3
Function at 0x14000a90c
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 0x14000a946
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000a94b
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 0x14000a994
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14001c6d0]
cmp byte [rcx + rax], 0
je 0x14000a994
dec r8
sub rdx, 1
jne 0x14000a97a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14000bb28
Capabilities:
Parse pe header

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

Function at 0x140011154
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400111c3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400111c3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400111c3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400111c3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400111c3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400111c3
cmp dword [rcx + 0xf8], 0
je 0x1400111c3
mov ecx, ebx
call fcn.140011274
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140011050
nop
cmp dword [rbp + 0x20], 0
je 0x140011211
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001121c
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140011154

Function at 0x140011358
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140011154
Function at 0x1400149dc
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140014a63
mov rsi, rbx
cmp word [rax], bp
je 0x140014a22
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140014a0c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140014a08
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400134ec
mov rdi, rax
test rax, rax
je 0x140014a50
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400194b0
mov rbp, rdi
xor ecx, ecx
call fcn.140012acc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140019170
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140019198
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140019198
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140008740
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov rsi, rdx
mov rdi, rcx
add rcx, 0x48
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x20
call fcn.14000ee60
test rax, rax
je 0x1400087a2
mov rbx, rax
mov r14, rdx
mov rax, qword [rdx]
test rax, rax
je 0x14000878b
mov rcx, rbx
call rax
mov rdx, qword [r14 + 8]
test rdx, rdx
je 0x1400087f2
mov r8, qword [r14 + 0x10]
mov rcx, rbx
call fcn.14000c650
jmp 0x1400087f2
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x50], xmm1
movaps xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x70]
lea r8, [0x14015b668]
lea rdx, [rsp + 0x40]
mov r9d, 8
call fcn.14000ec50
movaps xmm0, xmmword [rsp + 0x70]
movaps xmm1, xmmword [rsp + 0x80]
movaps xmm2, xmmword [rsp + 0x90]
movaps xmmword [rdi + 0x20], xmm2
movaps xmmword [rdi + 0x10], xmm1
movaps xmmword [rdi], xmm0
mov qword [rdi + 0x40], 0
mov rax, 0xffffffffffffff00
add rax, qword [rdi + 0x30]
mov qword [rdi + 0x38], rax
mov rcx, rdi
mov edx, 6
mov r8, rsi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.14000c760