joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140016200
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x250
mov rax, qword [0x14006e020]
xor rax, rsp
mov qword [rbp + 0x140], rax
xor r15d, r15d
lea rax, [rsp + 0x30]
mov qword [r8], r15
lea rdx, [rsp + 0x30]
sub rcx, rax
mov r14, r8
mov r9d, 0x104
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x140016271
movzx eax, word [rcx + rdx]
test ax, ax
je 0x140016271
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x14001624f
test r9, r9
lea rax, [rdx - 2]
lea r8, [0x14005f5c8]
cmovne rax, rdx
lea rcx, [rsp + 0x30]
mov word [rax], r15w
call fcn.140014568
mov ebx, 0x1f0003
lea r8, [rsp + 0x30]
mov ecx, ebx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rdi, rax
test rax, rax
jne 0x1400162d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1400162bd
mov esi, r15d
jmp 0x140016303
mov rcx, qword [rbp + 0x168]
mov edx, 0xc9
call fcn.140016058
mov esi, eax
jmp 0x140016303
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], r15d
mov rcx, rdi
mov dword [rsp + 0x24], r15d
call fcn.1400160a4
mov esi, eax
test eax, eax
jns 0x14001633a
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xcf
call fcn.140016038
test rdi, rdi
jne 0x1400163d1
mov eax, esi
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140026fe0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
lea r8, [0x14005f5d0]
lea rcx, [rsp + 0x30]
call fcn.140014568
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rbx, rax
test rax, rax
jne 0x140016377
mov rcx, qword [rbp + 0x168]
mov edx, 0xd5
call fcn.140016058
mov esi, eax
jmp 0x1400163d1
lea rdx, [rsp + 0x24]
mov rcx, rbx
call fcn.1400160a4
mov esi, eax
test eax, eax
jns 0x1400163ad
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xd7
call fcn.140016038
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1400163f5
jmp 0x1400163d1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1400163e3
movsxd rcx, dword [rsp + 0x24]
mov esi, r15d
movsxd rax, dword [rsp + 0x20]
shl rcx, 0x1f
or rcx, rax
mov qword [r14], rcx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140016407
jmp 0x14001630c
mov rcx, qword [rbp + 0x168]
mov edx, 0x942
call fcn.140016074
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x942
call fcn.140016074
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x942
call fcn.140016074
int3
Function at 0x1400173f4
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x13c0]
mov eax, 0x14c0
call fcn.140027ab0
sub rsp, rax
mov r14d, edx
mov r15, rcx
mov rsi, qword [rbp + 0x1418]
xor r12d, r12d
mov word [rbp + 0x3c0], r12w
mov byte [rbp - 0x40], r12b
mov rbx, qword [rbp + 0x1420]
mov ecx, dword [rbx]
mov dword [rsp + 0x28], ecx
mov eax, dword [rbx + 4]
mov dword [rsp + 0x2c], eax
call fcn.140014c04
mov edi, eax
mov dword [rsp + 0x20], 3
mov ecx, r12d
lea eax, [r12 + 8]
cmp dword [rbx + 8], 1
cmove ecx, eax
mov dword [rsp + 0x24], ecx
lea ecx, [rax - 7]
lock xadd dword [0x1400751f0], ecx
inc ecx
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x38], r12
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x40], eax
lea rax, str.C:C3_buildwindows_webview2packagesMicrosoft.Windows.ImplementationLibrary.1.0.230824.2includewil_resource.h
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], r14d
mov dword [rsp + 0x64], edi
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
mov qword [rbp - 0x58], rsi
mov qword [rbp - 0x50], r15
mov qword [rsp + 0x68], r12
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rax
xorps xmm1, xmm1
movups xmmword [rsp + 0x70], xmm1
mov qword [rbp - 0x80], rax
mov rax, qword [0x1400751e0]
test rax, rax
je 0x1400174e6
call rax
mov qword [rbp - 0x60], rax
jmp 0x1400174ea
mov qword [rbp - 0x60], r12
mov rax, qword [0x140075168]
test rax, rax
je 0x1400174fd
lea rcx, [rsp + 0x20]
call rax
mov rax, qword [0x140075198]
test rax, rax
je 0x14001751a
mov r8d, 0x400
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x20]
call rax
mov rax, qword [0x140075190]
test rax, rax
je 0x14001752d
lea rcx, [rsp + 0x20]
call rax
mov rax, qword [0x1400751b8]
test rax, rax
je 0x140017547
test byte [rsp + 0x24], 2
jne 0x140017547
lea rcx, [rsp + 0x20]
call rax
cmp dword [rsp + 0x28], r12d
jl 0x140017560
mov ecx, 0x8000ffff
mov dword [rsp + 0x28], ecx
call fcn.140014dfc
mov dword [rsp + 0x2c], eax
cmp byte [0x140075150], r12b
jne 0x14001758e
mov rax, qword [0x140075140]
test rax, rax
je 0x14001757c
call rax
movzx ecx, al
jmp 0x14001758a
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, r12d
test eax, eax
setne cl
test ecx, ecx
je 0x140017595
test byte [rsp + 0x24], 2
je 0x1400175b8
mov rax, qword [0x140075158]
test rax, rax
je 0x14001760e
cmp byte [0x140075178], r12b
jne 0x14001760e
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x20]
call rax
jmp 0x14001760e
mov ebx, 0x800
mov rax, qword [0x140075158]
test rax, rax
je 0x1400175e3
cmp byte [0x140075178], r12b
jne 0x1400175e3
mov r8d, ebx
lea rdx, [rbp + 0x3c0]
lea rcx, [rsp + 0x20]
call rax
cmp word [rbp + 0x3c0], r12w
jne 0x140017601
lea r8, [rsp + 0x20]
mov rdx, rbx
lea rcx, [rbp + 0x3c0]
call fcn.140014750
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test byte [rsp + 0x24], 4
jne 0x14001761e
cmp byte [0x140075160], r12b
je 0x14001762d
mov rax, qword [0x1400751a8]
test rax, rax
je 0x14001762d
call rax
nop
lea rcx, [rsp + 0x20]
call fcn.140015eb4
int3
Function at 0x14001c1a0
Capabilities:
Read file via mapping

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
mov rax, qword [0x14006e020]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r12, r8
mov rbx, rdx
lea r15, [rcx + 0xc8]
mov r8, rdx
lea rdx, [rbp - 0x29]
mov rcx, r15
call fcn.140004e98
mov rdi, qword [rbp - 0x19]
cmp byte [rdi + 0x19], 0
jne 0x14001c249
lea rdx, [rdi + 0x20]
cmp qword [rdi + 0x38], 0x10
jb 0x14001c1fa
mov rdx, qword [rdi + 0x20]
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14001c207
mov rcx, qword [rbx]
mov r14, qword [rdi + 0x30]
mov rsi, qword [rbx + 0x10]
mov r8, rsi
cmp r14, rsi
cmovb r8, r14
call fcn.140029b80
test eax, eax
jne 0x14001c234
cmp rsi, r14
jae 0x14001c22c
or eax, 0xffffffff
jmp 0x14001c234
xor eax, eax
cmp rsi, r14
seta al
shr eax, 0x1f
test al, al
jne 0x14001c249
cmp rdi, qword [r15]
je 0x14001c249
mov rax, qword [rdi + 0x50]
jmp 0x14001c386
mov rdx, r12
lea rcx, [rbp - 0x29]
call fcn.140018290
nop
mov rdx, rax
lea rcx, [rbp - 9]
call fcn.14001851c
nop
lea rcx, [rbp - 0x29]
call fcn.14000328c
lea rcx, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rcx, qword [rbp - 9]
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14001c378
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rsi, rax
test rax, rax
je 0x14001c378
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
test rax, rax
je 0x14001c378
xorps xmm0, xmm0
movups xmmword [rbp - 0x61], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x51], xmm1
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14001c315
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rbp - 0x61]
call fcn.140003594
mov qword [rbp - 0x41], r14
mov qword [rbp - 0x39], rsi
mov qword [rbp - 0x31], rdi
lea r8, [rbp - 0x61]
lea rdx, [rbp - 0x29]
mov rcx, r15
call fcn.1400221f8
nop
mov rdx, qword [rbp - 0x49]
cmp rdx, 0x10
jb 0x14001c37a
inc rdx
mov rcx, qword [rbp - 0x61]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c371
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001c3a4
call fcn.140027000
jmp 0x14001c37a
xor edi, edi
lea rcx, [rbp - 9]
call fcn.14000328c
mov rax, rdi
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140026fe0
add rsp, 0xd0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14002da34
nop
int3
Function at 0x140027e58
Capabilities:
Parse pe header

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

Function at 0x140036ed4
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140036f0b
call fcn.140035cd8
mov dword [rax], 0x16
call fcn.14002da14
xor eax, eax
jmp 0x140036f99
mov rdx, r9
mov rcx, r8
call fcn.140036e70
mov rbx, rax
test rax, rax
je 0x140036f96
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140036d9c]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140036f83
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140035c4c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140036f6a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140036f79
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14003d044
jmp 0x140036f96
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140036f93
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140037714
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x14006e020]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1400559e8]
mov rbp, rcx
call fcn.14003f8a0
xor edi, edi
test rax, rax
je 0x1400377fa
mov ebx, edi
call fcn.140035cd8
mov r14d, dword [rax]
call fcn.140035cd8
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.14003f7ec
mov rsi, rax
test rax, rax
je 0x14003778b
call fcn.140035cd8
mov dword [rax], r14d
jmp 0x1400377b5
call fcn.140035cd8
cmp dword [rax], 0x22
jne 0x1400377f2
call fcn.140035cd8
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.14003f7ec
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1400377f2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1400377b9
cmp rax, 3
je 0x1400377d4
mov rcx, rsi
call fcn.140037670
test al, al
je 0x1400377e5
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1400377e5
mov dil, 1
mov rcx, rbx
call fcn.1400382a0
mov al, dil
jmp 0x1400377fc
mov rcx, rbx
call fcn.1400382a0
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140026fe0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140039d74
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140039b70

Function at 0x140040780
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400749a0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400407d7
cmp word [rdx], r13w
jne 0x1400407d7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400407dc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140040901
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140040922
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140040815
mov rdx, r9
mov word [rbx], cx
jmp 0x14004083c
cmp r9, r8
jae 0x14004084c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400407f6
jmp 0x140040901
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400408f6
cmp dword [rsp + 0x80], esi
je 0x1400408f6
lea r8, [0x1400749a0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400408ce
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14004089e
mov word [rbx], r13w
jmp 0x1400408fe
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400408ab
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400408fe
cmp word [rsp + 0x70], r13w
jne 0x1400408db
cmp rbx, r14
je 0x140040898
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14004bb54
cmp word [rsp + 0x70], r13w
je 0x140040901
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400749a0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400408fb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140040901
Function at 0x140045d74
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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140045da4
xor eax, eax
jmp 0x140045e67
mov rbp, rbx
cmp word [rax], si
je 0x140045dc9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140045db0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140045dac
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400439b0
movsxd r14, eax
test eax, eax
jne 0x140045e07
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140045d9d
mov rcx, r14
call fcn.14003d080
mov rdi, rax
test rax, rax
jne 0x140045e20
xor ecx, ecx
call fcn.14003d044
jmp 0x140045dfc
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400439b0
test eax, eax
jne 0x140045e51
mov rcx, rdi
call fcn.14003d044
jmp 0x140045e5b
xor ecx, ecx
call fcn.14003d044
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140045e84
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 0x140045f0b
mov rsi, rbx
cmp word [rax], bp
je 0x140045eca
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140045eb4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140045eb0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14003d080
mov rdi, rax
test rax, rax
je 0x140045ef8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400290a0
mov rbp, rdi
xor ecx, ecx
call fcn.14003d044
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 0x140048b34
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14003cce4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140048bd5
cmp ebx, dword [rsp + 0x30]
je 0x140048bce
test esi, esi
je 0x140048bce
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140048ba9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140048bb6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140048b93
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140048bba
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140048bd7
mov eax, 1
jmp 0x140048bd7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14004acec
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14006e020]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14004ad36
call fcn.140035cb8
mov dword [rax], 0xf
call fcn.140035cd8
mov dword [rax], 0xd
call fcn.14002da14
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140026fe0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x14004ad41
lea eax, [rbx + 1]
jmp 0x14004ad23
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x14004ad21
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14004ad23
Function at 0x14004e594
Capabilities:
Clear file content

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
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14004bb54
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14004bb54
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14004e6e4
cmp rax, 0xffffffffffffffff
je 0x14004e6e4
xor edi, edi
test rbp, rbp
jle 0x14004e68f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14003e8ac
mov rbx, rax
test rax, rax
jne 0x14004e61c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14004e685
mov edx, 0x8000
mov ecx, r14d
call fcn.14003ad8c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14004c744
cmp eax, 0xffffffff
je 0x14004e665
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14004e62c
mov edx, r15d
mov ecx, r14d
call fcn.14003ad8c
jmp 0x14004e685
cmp byte [rsi + 0x38], dil
je 0x14004e67c
cmp dword [rsi + 0x34], 5
jne 0x14004e67c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14004e685
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14003d044
jmp 0x14004e6f8
jns 0x14004e6f8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14004bb54
cmp rax, 0xffffffffffffffff
jne 0x14004e6b0
cmp byte [rsi + 0x30], dil
je 0x14004e6f8
mov edi, dword [rsi + 0x2c]
jmp 0x14004e6f8
mov ecx, r14d
call fcn.14003ffcc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14004e6f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14004e6f8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14004e6f1
mov eax, dword [rsi + 0x2c]
jmp 0x14004e6f6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14004bb54
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140001180
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
lea r8d, [rdx + 6]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor r11d, r11d
lea rsi, [0x14000f040]
mov r10, rax
sub rbx, rax
movabs rdi, 0xa0a0a0a0a0a0a0a1
lea r9, [rax + 1]
nop dword [rax + rax]
movsxd r8, r11d
mov rax, rdi
mul r8
mov rcx, r8
shr rdx, 8
imul rax, rdx, 0x198
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 1]
xor al, byte [rbx + r9 - 1]
mov byte [r9 - 1], al
mov rax, rdi
mul rcx
shr rdx, 8
imul rax, rdx, 0x198
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 2]
xor al, byte [rbx + r9]
mov byte [r9], al
mov rax, rdi
mul rcx
shr rdx, 8
imul rax, rdx, 0x198
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 3]
xor al, byte [rbx + r9 + 1]
mov byte [r9 + 1], al
mov rax, rdi
mul rcx
shr rdx, 8
imul rax, rdx, 0x198
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 4]
xor al, byte [rbx + r9 + 2]
mov byte [r9 + 2], al
mov rax, rdi
mul rcx
shr rdx, 8
imul rax, rdx, 0x198
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 5]
xor al, byte [rbx + r9 + 3]
mov byte [r9 + 3], al
mov rax, rdi
mul rcx
shr rdx, 8
imul rax, rdx, 0x198
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 6]
xor al, byte [rbx + r9 + 4]
mov byte [r9 + 4], al
mov rax, rdi
mul rcx
shr rdx, 8
imul rax, rdx, 0x198
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 7]
xor al, byte [rbx + r9 + 5]
mov byte [r9 + 5], al
mov rax, rdi
mul rcx
shr rdx, 8
imul rax, rdx, 0x198
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 8]
xor al, byte [rbx + r9 + 6]
mov byte [r9 + 6], al
mov rax, rdi
mul rcx
shr rdx, 8
imul rax, rdx, 0x198
sub rcx, rax
movzx eax, byte [rcx + rsi]
xor al, byte [rbx + r9 + 7]
mov byte [r9 + 7], al
lea rcx, [r8 + 9]
mov rax, rdi
lea r9, [r9 + 0xe]
mul rcx
add r11d, 0xe
shr rdx, 8
imul rax, rdx, 0x198
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 0xa]
xor al, byte [rbx + r9 - 6]
mov byte [r9 - 6], al
mov rax, rdi
mul rcx
shr rdx, 8
imul rax, rdx, 0x198
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 0xb]
xor al, byte [rbx + r9 - 5]
mov byte [r9 - 5], al
mov rax, rdi
mul rcx
shr rdx, 8
imul rax, rdx, 0x198
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 0xc]
xor al, byte [rbx + r9 - 4]
mov byte [r9 - 4], al
mov rax, rdi
mul rcx
shr rdx, 8
imul rax, rdx, 0x198
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 0xd]
xor al, byte [rbx + r9 - 3]
mov byte [r9 - 3], al
mov rax, rdi
mul rcx
shr rdx, 8
imul rax, rdx, 0x198
sub rcx, rax
movzx eax, byte [rcx + rsi]
xor al, byte [rbx + r9 - 2]
mov byte [r9 - 2], al
cmp r11d, 0xe
jb 0x1400011d0
mov rbx, qword [rsp + 0x30]
mov rax, r10
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140001400
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
lea r8d, [rdx + 0x72]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor r10d, r10d
lea rsi, [0x14000f040]
mov r11, rax
sub rbx, rax
movabs rdi, 0xa0a0a0a0a0a0a0a1
lea r9, [rax + 1]
nop dword [rax + rax]
movsxd r8, r10d
lea r9, [r9 + 2]
mov rax, rdi
mov rcx, r8
mul r8
add r10d, 2
shr rdx, 8
imul rax, rdx, 0x198
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 1]
xor al, byte [rbx + r9 - 3]
mov byte [r9 - 3], al
mov rax, rdi
mul rcx
shr rdx, 8
imul rax, rdx, 0x198
sub rcx, rax
movzx eax, byte [rcx + rsi]
xor al, byte [rbx + r9 - 2]
mov byte [r9 - 2], al
cmp r10d, 0x7a
jb 0x140001450
mov rbx, qword [rsp + 0x30]
mov rax, r11
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret