joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400012e0
Capabilities:
Access peb ldr_data
Encode data using xor
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x18
cmp dword [0x140059ea0], 0
jne 0x1400014c0
mov rax, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rax + 0x18]
mov r8, qword [rcx + 0x10]
mov rax, qword [r8 + 0x30]
test rax, rax
je 0x1400014ca
mov r9, rax
movsxd rax, dword [rax + 0x3c]
mov ecx, dword [rax + r9 + 0x88]
test ecx, ecx
je 0x14000134e
lea rdx, [r9 + rcx]
mov ecx, dword [r9 + rcx + 0xc]
mov eax, dword [rcx + r9]
or eax, 0x20202020
cmp eax, 0x6c64746e
jne 0x14000134e
mov eax, dword [rcx + r9 + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
je 0x14000135a
mov r8, qword [r8]
mov rax, qword [r8 + 0x30]
test rax, rax
jne 0x140001311
test rdx, rdx
je 0x1400014ca
mov qword [rsp + 0x20], rbx
mov ebx, dword [rdx + 0x18]
mov qword [rsp + 0x28], rbp
mov ebp, dword [rdx + 0x24]
mov qword [rsp + 0x30], rsi
add rbp, r9
mov esi, dword [rdx + 0x20]
mov qword [rsp + 0x38], rdi
add rsi, r9
mov qword [rsp + 0x10], r12
mov r12d, 0x775a
mov qword [rsp + 8], r14
mov r14d, dword [rdx + 0x1c]
add r14, r9
mov qword [rsp], r15
xor r8d, r8d
lea r15, [0x140059ea0]
nop dword [rax + rax]
dec ebx
mov r10d, dword [rsi + rbx*4]
add r10, r9
movzx eax, word [r10]
cmp ax, r12w
jne 0x140001413
xor r11d, r11d
mov edx, 0x5419d83a
test al, al
je 0x1400013ec
mov rax, r10
movzx eax, word [rax]
mov ecx, edx
ror ecx, 8
inc r11d
add ecx, eax
mov eax, r11d
add rax, r10
xor edx, ecx
cmp byte [rax], 0
jne 0x1400013d2
lea rcx, [r8*8]
inc r8d
mov dword [rcx + r15 + 4], edx
movzx eax, word [rbp + rbx*2]
mov eax, dword [r14 + rax*4]
mov dword [rcx + r15 + 8], eax
cmp r8d, 0x1f4
je 0x140001417
test ebx, ebx
jne 0x1400013b0
mov r14, qword [rsp + 8]
lea eax, [r8 - 1]
mov r12, qword [rsp + 0x10]
xor edx, edx
mov rsi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x28]
mov dword [0x140059ea0], r8d
test eax, eax
je 0x1400014b2
nop dword [rax]
mov ecx, r8d
xor eax, eax
sub ecx, edx
cmp ecx, 1
je 0x1400014a8
nop dword [rax]
mov ecx, eax
lea r9d, [rax + 1]
lea r10, [r9*8]
mov ebx, dword [r10 + r15 + 8]
lea r11, [rcx*8]
mov edi, dword [r11 + r15 + 8]
cmp edi, ebx
jbe 0x140001499
mov ecx, dword [r11 + r15 + 4]
mov eax, dword [r10 + r15 + 4]
mov dword [r11 + r15 + 4], eax
mov dword [r10 + r15 + 4], ecx
mov dword [r11 + r15 + 8], ebx
mov dword [r10 + r15 + 8], edi
mov r8d, dword [0x140059ea0]
mov ecx, r8d
mov eax, r9d
sub ecx, edx
dec ecx
cmp r9d, ecx
jb 0x140001450
inc edx
lea eax, [r8 - 1]
cmp edx, eax
jb 0x140001440
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x20]
mov r15, qword [rsp]
mov eax, 1
add rsp, 0x18
ret
xor eax, eax
add rsp, 0x18
ret

Function at 0x140001520
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x98b6d006
call fcn.1400014e0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret
Function at 0x140001560
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x192071d
call fcn.1400014e0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x1400015a0
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x310779d
call fcn.1400014e0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140001720
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0xd960111
call fcn.1400014e0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x14000410c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140003e70
Function at 0x140001498
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [rcx + 4], 0
mov r8, rcx
jne 0x1400014df
xor r9d, r9d
mov r10d, r9d
mov r11d, 8
mov edx, r10d
mov ecx, r10d
shr edx, 1
mov eax, edx
mov r10d, edx
xor eax, 0xedb88320
and cl, 1
cmovne r10d, eax
sub r11, 1
jne 0x1400014ad
inc r9d
mov dword [r8], r10d
add r8, 4
cmp r9d, 0x100
jb 0x1400014a4
repz ret

Function at 0x140001558
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov r10, r8
mov rbx, rdx
mov r11d, ecx
lea rsi, [0x140024700]
test r8, r8
je 0x1400015a1
test bl, 7
je 0x1400015a1
movzx ecx, byte [rbx]
movzx eax, r11b
inc rbx
xor rcx, rax
mov eax, r11d
mov r11d, dword [rsi + rcx*4]
shr eax, 8
xor r11d, eax
sub r10, 1
jne 0x14000157c
cmp r10, 8
jb 0x14000164e
mov rdi, r10
shr rdi, 3
mov rax, rdi
imul rax, rax, 0xfffffffffffffff8
add r10, rax
xor r11d, dword [rbx]
mov r9d, dword [rbx + 4]
add rbx, 8
mov eax, r9d
shr eax, 0x10
movzx edx, al
mov eax, r9d
mov r8d, dword [rsi + rdx*4 + 0x400]
shr eax, 0x18
movzx ecx, al
mov eax, r9d
xor r8d, dword [rsi + rcx*4]
shr eax, 8
movzx ecx, al
mov eax, r11d
xor r8d, dword [rsi + rcx*4 + 0x800]
shr eax, 0x18
movzx ecx, al
mov eax, r11d
xor r8d, dword [rsi + rcx*4 + 0x1000]
shr eax, 0x10
movzx ecx, al
mov eax, r11d
xor r8d, dword [rsi + rcx*4 + 0x1400]
shr eax, 8
movzx ecx, al
movzx eax, r9b
xor r8d, dword [rsi + rcx*4 + 0x1800]
xor r8d, dword [rsi + rax*4 + 0xc00]
movzx eax, r11b
mov r11d, r8d
xor r11d, dword [rsi + rax*4 + 0x1c00]
sub rdi, 1
jne 0x1400015bc
test r10, r10
je 0x140001673
movzx ecx, byte [rbx]
movzx eax, r11b
inc rbx
xor rcx, rax
mov eax, r11d
mov r11d, dword [rsi + rcx*4]
shr eax, 8
xor r11d, eax
sub r10, 1
jne 0x140001653
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov eax, r11d
ret

Function at 0x14000173c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1020
call fcn.14001aef0
sub rsp, rax
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x1400017b7
mov rcx, rdi
call fcn.1400101dc
mov rcx, rdi
mov rbx, rax
call fcn.140007684
test al, al
jne 0x140001793
lea rdx, [rsp + 0x20]
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rcx, [rsp + 0x20]
call fcn.1400101dc
lea rbx, [rbx + rax + 1]
mov edi, 0x104
cmp rbx, rdi
jbe 0x1400017b7
lea ecx, [rdi - 0x41]
call fcn.14000991c
lea rcx, [0x14001c768]
mov r8d, edi
mov rdx, rax
call fcn.14000b5f4
mov rbx, qword [rsp + 0x1030]
add rsp, 0x1020
pop rdi
ret

Function at 0x140001a64
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov ecx, 0x78
mov rsi, r8
mov rbx, rdx
call fcn.14000991c
mov r8, rsi
mov rdx, rax
mov rcx, rbx
call fcn.14000b5f4
mov rdx, rsi
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14000173c
Function at 0x140003cac
Capabilities:
Write file on windows

Disassembly:
test r8, r8
je 0x140003df6
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r13
sub rsp, 0x30
mov rdi, rcx
mov ecx, dword [rcx + 0x14]
mov rsi, r8
mov rbp, rdx
test ecx, ecx
je 0x140003cf7
sub ecx, 1
je 0x140003ce8
cmp ecx, 1
jne 0x140003cf7
mov ecx, 0xfffffff4
jmp 0x140003ced
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rdi + 8], rax
mov r13d, 0x4000
and dword [rsp + 0x60], 0
cmp dword [rdi + 0x14], 0
je 0x140003d50
xor ebx, ebx
test rsi, rsi
je 0x140003d75
mov eax, esi
mov r8d, r13d
mov rcx, rsi
sub rcx, rbx
sub eax, ebx
lea rdx, [rbx + rbp]
cmp rcx, r13
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x60]
cmovb r8d, eax
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete al
test al, al
je 0x140003d75
add rbx, r13
cmp rbx, rsi
jb 0x140003d0f
jmp 0x140003d71
mov rcx, qword [rdi + 8]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete al
test al, al
jne 0x140003de0
cmp byte [rdi + 0x1c], 0
je 0x140003de0
cmp dword [rdi + 0x14], 0
jne 0x140003de0
lea rdx, [rdi + 0x26]
lea rcx, [0x140045dd0]
xor r8d, r8d
call fcn.1400018f4
test al, al
je 0x140003dce
mov ecx, dword [rsp + 0x60]
cmp rcx, rsi
jae 0x140003cfd
test ecx, ecx
je 0x140003cfd
mov rbx, qword [rdi]
mov rcx, rdi
call qword [rbx + 0x18]
mov ecx, dword [rsp + 0x60]
xor r8d, r8d
sub rax, rcx
mov rcx, rdi
mov rdx, rax
call qword [rbx + 0x10]
jmp 0x140003cfd
lea r8, [rdi + 0x26]
lea rcx, [0x140045dd0]
xor edx, edx
call fcn.140001b20
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov byte [rdi + 0x10], 1
add rsp, 0x30
pop r13
pop rdi
pop rsi
ret

Function at 0x140003e84
Capabilities:
Clear file content

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, 1
sete al
add rsp, 0x28
ret

Function at 0x140003f18
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x14], 1
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
mov ebp, 0x4e20
jne 0x140003f56
cmp r8, rbp
mov ecx, 0xfffffff6
cmova rdi, rbp
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx + 8], rax
mov rcx, qword [rbx + 8]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140003fcb
mov rcx, rbx
call fcn.140003ea0
test al, al
je 0x140003f96
cmp rdi, rbp
jbe 0x140003f96
mov r8, rbp
mov rdx, rsi
mov rcx, rbx
call fcn.140003f18
jmp 0x140003fcf
cmp dword [rbx + 0x14], 1
jne 0x140003fab
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x140003fab
xor eax, eax
jmp 0x140003fcf
cmp dword [rbx + 0x14], 0
jne 0x140003fc6
mov ebp, 0x8000
cmp rdi, rbp
jbe 0x140003fc6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
je 0x140003f86
or eax, 0xffffffff
jmp 0x140003fcf
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14000433c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1020
call fcn.14001aef0
sub rsp, rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140004383
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rdi
call fcn.140007794
test al, al
je 0x140004383
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x1030]
add rsp, 0x1020
pop rdi
ret

Function at 0x140004398
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x1020
call fcn.14001aef0
sub rsp, rax
mov edi, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test bl, bl
jne 0x1400043ed
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rsi
call fcn.140007794
test al, al
je 0x1400043ed
lea rcx, [rsp + 0x20]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
lea r11, [rsp + 0x1020]
mov al, bl
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140004404
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1020
call fcn.14001aef0
sub rsp, rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test bl, bl
jne 0x140004450
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rdi
call fcn.140007794
test al, al
je 0x140004450
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
mov al, bl
mov rbx, qword [rsp + 0x1030]
add rsp, 0x1020
pop rdi
ret

Function at 0x140004648
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x1020
call fcn.14001aef0
sub rsp, rax
mov dil, dl
xor edx, edx
mov esi, r8d
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400046c8
mov rcx, rbx
call fcn.14000433c
cmp eax, 0xffffffff
jne 0x1400046aa
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rbx
call fcn.140007794
test al, al
je 0x1400046aa
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400046c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400046c1
cmp eax, 3
je 0x1400046c1
mov eax, 1
jmp 0x1400046d9
mov eax, 2
jmp 0x1400046d9
test dil, dil
je 0x1400046d7
mov edx, esi
mov rcx, rbx
call fcn.140004398
xor eax, eax
lea r11, [rsp + 0x1020]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140004b98
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x140037aa0], 0
je 0x140004bb3
or eax, 0xffffffff
jmp 0x140004c85
mov rax, qword [0x140026750]
test rax, rax
jg 0x140004bd3
dec rax
mov qword [0x140026750], rax
and qword [0x1400379a0], 0
jmp 0x140004bab
mov rbx, qword [0x1400379a0]
test rbx, rbx
jg 0x140004c2f
mov rcx, qword [0x140037990]
mov ebx, 0x2000
mov edx, ebx
call fcn.140004934
movsxd rcx, eax
mov qword [0x1400379a0], rcx
test eax, eax
je 0x140004c90
cmp rcx, 0xffffffffffffffff
je 0x140004c9a
mov rax, qword [0x140037990]
add qword [0x1400379e0], rbx
mov qword [0x140037998], rax
call fcn.1400048d4
mov rbx, qword [0x1400379a0]
mov rax, qword [0x140027978]
mov rdi, qword [0x140037998]
test byte [rax + 0x40], 1
je 0x140004c6e
test rbx, rbx
je 0x140004c6e
call fcn.14000e15c
xor byte [rdi], al
movzx ecx, byte [rdi]
call fcn.14000e17c
inc rdi
sub rbx, 1
jne 0x140004c48
mov rbx, qword [0x1400379a0]
mov rdi, qword [0x140037998]
dec rbx
mov qword [0x1400379a0], rbx
movzx eax, byte [rdi]
inc rdi
mov qword [0x140037998], rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp rcx, 0xffffffffffffffff
jne 0x140004bc9
lea rdx, [0x14004e0ea]
lea rcx, [0x140045dd0]
call fcn.140001b60
jmp 0x140004bc9
Function at 0x140005374
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
mov eax, 0x1270
call fcn.14001aef0
sub rsp, rax
mov rsi, rdx
mov rdi, r8
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov r12d, 0x800
cmp rcx, 0xffffffffffffffff
jne 0x14000541e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140005448
lea rdx, [rsp + 0x270]
mov r8, r12
mov rcx, rsi
call fcn.140007794
test al, al
je 0x1400053f5
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140005448
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140005411
cmp eax, 3
je 0x140005411
cmp eax, 0x12
je 0x140005411
mov eax, 1
jmp 0x140005413
xor eax, eax
mov byte [rdi + 0x1044], al
jmp 0x1400054de
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14000543e
or rbx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [rdi + 0x1044], al
cmp rbx, 0xffffffffffffffff
je 0x1400054de
mov r8, r12
mov rdx, rsi
mov rcx, rdi
call fcn.14000dbb0
lea rdx, [rsp + 0x4c]
mov r8, r12
mov rcx, rdi
call fcn.140007570
mov eax, dword [rsp + 0x40]
mov r11d, dword [rsp + 0x3c]
shl r11, 0x20
lea rcx, [rdi + 0x1010]
lea rdx, [rsp + 0x34]
add r11, rax
mov eax, dword [rsp + 0x20]
mov dword [rdi + 0x1008], eax
mov rax, qword [rsp + 0x24]
mov qword [rdi + 0x1000], r11
mov qword [rdi + 0x1028], rax
mov rax, qword [rsp + 0x2c]
mov qword [rdi + 0x1030], rax
mov rax, qword [rsp + 0x34]
mov qword [rdi + 0x1038], rax
call fcn.14000e01c
lea rcx, [rdi + 0x1018]
lea rdx, [rsp + 0x24]
call fcn.14000e01c
lea rcx, [rdi + 0x1020]
lea rdx, [rsp + 0x2c]
call fcn.14000e01c
and dword [rdi + 0x1040], 0
lea r11, [rsp + 0x1270]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r12
ret
Function at 0x140007794
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
mov eax, 0x1020
call fcn.14001aef0
sub rsp, rax
xor edi, edi
mov rsi, r8
mov r12, rdx
mov rbx, rcx
cmp word [rcx], di
je 0x140007964
call fcn.1400072fc
mov rcx, rbx
call fcn.1400101dc
mov rcx, rbx
mov rbp, rax
call fcn.140007684
cmp al, dil
je 0x140007880
mov rcx, rbx
call fcn.1400072fc
cmp al, dil
je 0x14000782c
lea rax, [rbp + 4]
cmp rsi, rax
jbe 0x140007964
lea r8d, [rdi + 4]
lea rdx, [0x14001cb30]
mov rcx, r12
call fcn.140011354
lea rcx, [r12 + 8]
mov rdx, rbx
call fcn.140010224
mov al, 1
jmp 0x140007966
mov edi, 0x5c
cmp word [rbx], di
jne 0x140007964
cmp word [rbx + 2], di
jne 0x140007964
lea rax, [rbp + 6]
cmp rsi, rax
jbe 0x140007964
lea r8d, [rdi - 0x58]
lea rdx, [0x14001cb30]
mov rcx, r12
call fcn.140011354
lea rcx, [r12 + 8]
lea rdx, [0x14001cb28]
call fcn.140010224
lea rcx, [r12 + 0xe]
lea rdx, [rbx + 2]
jmp 0x140007820
lea rdx, [rsp + 0x20]
mov ecx, 0x7ff
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, edi
je 0x140007964
cmp eax, 0x7ff
ja 0x140007964
movzx eax, word [rbx]
mov edi, 0x5c
cmp eax, edi
je 0x140007927
cmp eax, 0x2f
je 0x140007927
lea rcx, [rsp + 0x20]
mov edx, 0x800
call fcn.140007198
lea rcx, [rsp + 0x20]
call fcn.1400101dc
lea rcx, [rax + rbp + 4]
cmp rsi, rcx
jbe 0x140007964
lea r8d, [rdi - 0x58]
lea rdx, [0x14001cb30]
mov rcx, r12
call fcn.140011354
lea rcx, [r12 + 8]
lea rdx, [rsp + 0x20]
call fcn.140010224
cmp word [rbx], 0x2e
jne 0x140007914
movzx eax, word [rbx + 2]
cmp eax, edi
je 0x140007910
cmp eax, 0x2f
jne 0x140007914
add rbx, 4
mov r8, rsi
mov rdx, rbx
mov rcx, r12
call fcn.14000dbec
jmp 0x140007825
lea rax, [rbp + 6]
cmp rsi, rax
jbe 0x140007964
lea rdx, [0x14001cb30]
mov r8d, 4
mov rcx, r12
call fcn.140011354
lea rcx, [r12 + 8]
lea rdx, [rsp + 0x20]
mov r8d, 2
call fcn.140011354
lea rcx, [r12 + 0xc]
jmp 0x14000781d
xor al, al
lea r11, [rsp + 0x1020]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x140009b2c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov r9, qword [0x14003ac08]
xor ebx, ebx
mov bpl, r8b
mov rdi, rdx
mov rsi, rcx
cmp r9, rbx
jne 0x140009a6e
cmp byte [0x14003ac00], bl
jne 0x140009a6e
lea rcx, str.Crypt32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x14003abf8], rax
cmp rax, rbx
je 0x140009a57
lea rdx, str.CryptProtectMemory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14003abf8]
lea rdx, str.CryptUnprotectMemory
mov qword [0x14003ac08], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r11, rax
mov qword [0x14003ac10], rax
jmp 0x140009a5e
mov r11, qword [0x14003ac10]
mov r9, qword [0x14003ac08]
mov byte [0x14003ac00], 1
jmp 0x140009a75
mov r11, qword [0x14003ac10]
mov rax, rdi
mov rcx, rdi
and eax, 0xf
sub rcx, rax
cmp bpl, bl
je 0x140009ac7
cmp r9, rbx
je 0x140009ae4
mov edx, ecx
xor r8d, r8d
mov rcx, rsi
call r9
cmp eax, ebx
jne 0x140009aff
lea rdx, str.CryptProtectMemory_failed
lea rbx, [0x140045dd0]
mov rcx, rbx
call fcn.1400019e0
mov rcx, rbx
call fcn.140016c28
mov edx, 2
mov rcx, rbx
call fcn.140001b18
jmp 0x140009aff
cmp r11, rbx
je 0x140009ae4
mov edx, ecx
xor r8d, r8d
mov rcx, rsi
call r11
cmp eax, ebx
jne 0x140009aff
lea rdx, str.CryptUnprotectMemory_failed
jmp 0x140009aa1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp rdi, rbx
jbe 0x140009aff
add al, 0x4b
lea ecx, [rbx + rax]
xor byte [rbx + rsi], cl
inc rbx
cmp rbx, rdi
jb 0x140009af1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [rsp + 0x50]
mov rax, r8
mov rcx, r9
cmp rax, rbx
mov r8, rbx
mov rdi, r9
cmovb r8, rax
add r8, r8
call fcn.140010b50
mov r8b, byte [rsp + 0x58]
lea rdx, [rbx + rbx]
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x1400099d4

Function at 0x140009cc0
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x170
xor ebp, ebp
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
cmp qword [0x140023060], rbp
jne 0x140009d2a
lea r9d, [rbp + 0x64]
lea r8, [rax - 0xd8]
lea edx, [rbp + 0xf]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
movzx r11d, word [rsp + 0xa0]
lea rax, [0x14004f594]
mov word [0x14004f594], r11w
mov word [0x14004f596], bp
mov qword [0x140023060], rax
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14000dc38
lea r9, [0x140023048]
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x400
mov dword [rsp + 0x28], edi
mov word [rbx], bp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_GetNumberFormatW]
lea r11, [rsp + 0x170]
mov word [rbx + rdi*2 - 2], bp
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140009dac
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea rcx, [rsp + 0x48]
mov ebx, edx
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
lea r8, [rsp + 0x40]
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov rcx, qword [rsp + 0x40]
mov rdx, rdi
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000a770
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
mov eax, 0x2020
call fcn.14001aef0
sub rsp, rax
xor r12d, r12d
mov rsi, r8
mov rbx, rcx
cmp r9, r12
je 0x14000a7a3
mov byte [r9], r12b
mov rcx, qword [rsp + 0x2050]
cmp rcx, r12
je 0x14000a7b3
mov byte [rcx], r12b
cmp rbx, r12
je 0x14000a86a
movzx eax, word [rbx]
cmp ax, r12w
je 0x14000a86a
movsxd rbp, dword [rsp + 0x2058]
mov rdi, r12
mov r8d, r12d
add rbx, 2
cmp ax, 0x3d
jne 0x14000a7f9
cmp rsi, r12
je 0x14000a805
cmp rdi, r12
jne 0x14000a805
cmp r9, r12
je 0x14000a7f4
mov byte [r9], 1
mov rdi, rdx
jmp 0x14000a814
cmp ax, 0xd
je 0x14000a827
cmp ax, 0xa
je 0x14000a82b
mov word [rdx], ax
lea eax, [rbp - 2]
add rdx, 2
cmp r8d, eax
jg 0x14000a822
mov ax, word [rbx]
inc r8d
cmp ax, r12w
jne 0x14000a7d7
jmp 0x14000a82b
mov byte [rcx], 1
jmp 0x14000a82b
add rbx, 2
mov word [rdx], r12w
cmp rsi, r12
je 0x14000a865
mov word [rsi], r12w
cmp rdi, r12
je 0x14000a865
lea rdx, [rsp + 0x20]
mov r8d, 0x1000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rdx, [rsp + 0x20]
mov r8, rbp
mov rcx, rsi
call fcn.14000dbb0
mov word [rdi], r12w
mov rax, rbx
jmp 0x14000a86c
xor eax, eax
lea r11, [rsp + 0x2020]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret

Function at 0x14000a88c
Capabilities:
Delete file

Disassembly:
push rbx
mov eax, 0x1060
call fcn.14001aef0
sub rsp, rax
lea rcx, [rsp + 0x60]
mov edx, 0x800
call fcn.14000ff58
xor ebx, ebx
cmp byte [0x140043c81], bl
jne 0x14000a925
lea rcx, [rsp + 0x60]
call fcn.1400073bc
mov rdx, qword [str.RarSFX]
lea r8d, [rbx + 6]
mov rcx, rax
call fcn.14000e87c
cmp eax, ebx
jne 0x14000a925
lea rcx, [0x14001c918]
call fcn.14000ff40
lea rcx, [rsp + 0x60]
call fcn.1400101dc
lea r8d, [rbx + 0x38]
lea rcx, [rsp + 0x20]
xor edx, edx
mov word [rsp + rax*2 + 0x62], bx
call fcn.1400100f0
lea eax, [rbx + 0x14]
lea rcx, [rsp + 0x20]
mov word [rsp + 0x40], ax
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
add rsp, 0x1060
pop rbx
ret