joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140066f60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movzx eax, byte [rcx + 0xd4]
lea r14, [rcx + 0xb8]
movzx r12d, word [r14]
and al, 0x1f
mov rdi, rcx
cmp al, 0xe
jne 0x140066fc8
movzx edx, word [rcx + 0x208]
cmp edx, r12d
jbe 0x140066fc8
movzx eax, word [rcx + 0x226]
cmp eax, r12d
jbe 0x140066fc8
nop
cmp eax, edx
jb 0x14006711d
mov ecx, eax
mov rax, qword [rdi + 0x20]
movzx eax, word [rax + rcx*8 + 6]
cmp eax, r12d
ja 0x140066fb0
movzx eax, word [rdi + 0x228]
cmp eax, r12d
jbe 0x140067121
mov rbx, qword [rdi + 0x20]
mov ebp, 0x8000
mov dword [rsp + 0x50], ebp
nop word [rax + rax]
lea r13, [rbx + rax*8]
movzx eax, word [rbx + rax*8]
movzx ecx, word [rbx + rax*8 + 2]
lea rdx, [rbx + rax*8]
cmp r14, rdx
je 0x14006711d
movzx r9d, word [r14 + 2]
cmp byte [rbx + r9*8 + 5], 0x1e
lea r8, [rbx + r9*8]
jne 0x140067023
movzx r9d, word [r8]
lea r8, [rbx + r9*8]
cmp byte [rbx + rcx*8 + 5], 0x1e
lea r10, [rbx + rcx*8]
jne 0x140067036
movzx ecx, word [r10]
lea r10, [rbx + rcx*8]
movzx r11d, byte [r14 + 5]
lea eax, [r11 - 0x38]
cmp al, 1
jbe 0x140067049
movzx eax, word [r14]
jmp 0x140067051
movzx eax, word [r14]
movzx eax, word [rbx + rax*8]
movzx r15d, ax
movzx eax, byte [rdx + 5]
sub al, 0x38
cmp al, 1
jbe 0x140067064
movzx eax, word [rdx]
jmp 0x14006706b
movzx eax, word [rdx]
movzx eax, word [rbx + rax*8]
movzx esi, ax
cmp r9d, ecx
je 0x1400670f2
cmp r9d, ebp
jae 0x140067080
cmp ecx, ebp
jb 0x140067109
cmp r11b, 0x38
jne 0x1400670e5
xor r11d, r11d
xor edx, edx
cmp byte [r8 + 5], 0x29
mov ebp, r9d
jne 0x1400670b2
movzx eax, word [r8 + 2]
cmp ax, word [rsp + 0x50]
jae 0x1400670b2
movzx ebp, word [r8]
mov r11d, dword [rbx + rax*8]
cmp ebp, ecx
jne 0x1400670b2
test r11d, r11d
jne 0x140067109
cmp byte [r10 + 5], 0x29
jne 0x1400670da
movzx eax, word [r10 + 2]
mov r8d, 0x8000
cmp ax, r8w
jae 0x1400670da
movzx ecx, word [r10]
mov edx, dword [rbx + rax*8]
cmp r9d, ecx
jne 0x1400670da
test edx, edx
jne 0x140067109
cmp ebp, ecx
jne 0x1400670f2
cmp r11d, edx
je 0x1400670f2
jmp 0x140067109
movzx eax, byte [r10 + 4]
xor al, byte [r8 + 4]
test al, 0x1f
jne 0x140067109
cmp r15d, esi
je 0x14006711d
mov rcx, rdi
mov r8d, esi
mov edx, r15d
call fcn.140066030
test eax, eax
jne 0x14006711d
movzx eax, word [r13 + 6]
cmp eax, r12d
jbe 0x140067121
mov ebp, 0x8000
jmp 0x140066ff0
xor eax, eax
jmp 0x140067126
mov eax, 1
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140067400
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
push r15
movzx esi, dx
mov r14, rcx
movzx r9d, word [rcx + rsi*2 + 0x1a2]
cmp r9d, r8d
jbe 0x14006749d
mov r11, qword [rcx + 0x20]
mov eax, r8d
lea rbp, [r11 + rax*8]
nop word [rax + rax]
movzx eax, byte [r11 + r9*8 + 4]
lea rbx, [r11 + r9*8]
movzx ecx, word [rbx]
and al, 0x1f
cmp ecx, r8d
je 0x1400674e1
test al, al
jne 0x140067493
movzx r9d, word [r11 + rcx*8 + 2]
movzx r10d, word [rbp + 2]
cmp esi, 0x42
je 0x14006747c
movzx edx, byte [r11 + r10*8 + 4]
xor dl, byte [r11 + r9*8 + 4]
test dl, 0x1f
jne 0x140067493
cmp r9d, r10d
je 0x1400674c6
cmp r9d, 0x8000
jae 0x1400674c6
cmp r10d, 0x8000
jae 0x1400674c6
movzx r9d, word [rbx + 6]
cmp r9d, r8d
ja 0x140067440
movzx eax, word [r14 + rsi*2 + 0x192]
cmp eax, r8d
jbe 0x1400674c6
mov rdx, qword [r14 + 0x20]
nop
lea rcx, [rdx + rax*8]
movzx eax, word [rdx + rax*8]
cmp eax, r8d
je 0x1400674ec
movzx eax, word [rcx + 6]
cmp eax, r8d
ja 0x1400674b0
xor eax, eax
mov rbx, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
pop r15
pop r14
ret
xor ecx, ecx
test al, al
setne cl
mov eax, ecx
jmp 0x1400674c8
test byte [rcx + 4], 0x1f
mov ecx, 0
setne cl
mov eax, ecx
jmp 0x1400674c8
Function at 0x140068590
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
push r14
push r15
sub rsp, 0x20
mov r10, qword [rcx + 0x20]
mov esi, r9d
movzx r14d, dx
mov r12d, r8d
mov r9d, edx
mov rbp, rcx
movzx r15d, byte [r10 + r14*8 + 5]
cmp r15d, 0x35
jb 0x1400686cf
cmp r15d, r8d
jg 0x1400686cf
xor edx, edx
add rcx, 0xb24
nop word [rax + rax]
cmp word [rcx], r14w
jne 0x1400685fa
mov eax, dword [rcx + 4]
cmp eax, esi
jb 0x1400685fa
xor eax, esi
test eax, 0xfff
je 0x1400686be
inc rdx
add rcx, 8
cmp rdx, 0x10
jl 0x1400685e0
movzx edx, word [r10 + r14*8]
mov r9d, esi
mov qword [rsp + 0x40], rbx
mov rcx, rbp
movzx ebx, word [r10 + r14*8 + 2]
mov qword [rsp + 0x48], rdi
call fcn.140068590
mov r9d, esi
mov r8d, r12d
mov edx, ebx
mov rcx, rbp
mov edi, eax
call fcn.140068590
mov ecx, 0xf4
mov word [rbp + 0xb8], di
add r15w, cx
mov word [rbp + 0xba], ax
movzx edx, r15w
mov ecx, 0x100
imul edx, ecx
mov r8d, esi
shr r8d, 5
mov rcx, rbp
and r8w, 0x1f
or r8w, dx
mov word [rbp + 0xbc], r8w
call fcn.140065bb0
mov ecx, dword [rbp + 0xba4]
mov r9d, eax
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
lea rdx, [rcx*8]
lea eax, [rcx + 1]
and eax, 0xf
mov dword [rbp + 0xba4], eax
mov word [rdx + rbp + 0xb24], r14w
mov word [rdx + rbp + 0xb26], r9w
mov dword [rdx + rbp + 0xb28], esi
jmp 0x14006870c
movzx ecx, word [rcx + 2]
movzx eax, byte [r10 + rcx*8 + 4]
shl eax, 0x18
add eax, ecx
jmp 0x14006870f
bt esi, 0xb
jae 0x14006870c
movzx ecx, byte [r10 + r14*8 + 4]
mov eax, 0x605fd9
and ecx, 0x1f
shr eax, cl
test al, 1
jne 0x14006870c
mov rcx, rbp
mov word [rbp + 0xbc], 0x5b15
mov word [rbp + 0xb8], r14w
mov word [rbp + 0xba], si
call fcn.140065bb0
mov r9d, eax
mov eax, r9d
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140072020
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdi, rcx
mov edx, 0x14
call fcn.14005c580
mov rcx, rdi
mov word [rdi + 0xbc], 0x548a
mov word [rdi + 0xb8], ax
mov word [rdi + 0xba], bx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140065bb0

Function at 0x1400742b4
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 0x1400742ee
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400742f3
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 0x14007433c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400b3790]
cmp byte [rcx + rax], 0
je 0x14007433c
dec r8
sub rdx, 1
jne 0x140074322
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400767b4
Capabilities:
Parse pe header

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

Function at 0x140080334
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 0x1400803a3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400803a3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400803a3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400803a3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400803a3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400803a3
cmp dword [rcx + 0xf8], 0
je 0x1400803a3
mov ecx, ebx
call fcn.140080454
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.140080230
nop
cmp dword [rbp + 0x20], 0
je 0x1400803f1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400803fc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140080334

Function at 0x140080538
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 0x1400803a3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400803a3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400803a3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400803a3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400803a3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400803a3
cmp dword [rcx + 0xf8], 0
je 0x1400803a3
mov ecx, ebx
call fcn.140080454
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.140080230
nop
cmp dword [rbp + 0x20], 0
je 0x1400803f1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400803fc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140080334
Function at 0x140087510
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1400764f0
sub rsp, rax
mov rax, qword [0x1400d12c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140098184
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14008755f
mov rax, rbp
jmp 0x140087667
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xd3b60]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14009a610
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xd3b60]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140087663
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140087663
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14009a610
test rax, rax
js 0x140087663
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140087663
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140087655
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140087655
cmp byte [rcx], 0xd
jne 0x14008763b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14008764a
cmp byte [rcx + 1], 0xa
jne 0x14008764a
inc rcx
jmp 0x14008764a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xd1700]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14008761d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140087667
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140075eb0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14008ec10
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov r14, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.14008a1d8
mov rax, qword [rbp - 0x58]
mov edi, 0xfde9
cmp dword [rax + 0xc], edi
jne 0x14008ec5b
xor ebx, ebx
cmp byte [rbp - 0x48], bl
je 0x14008ec8f
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14008ec8f
call fcn.140096148
xor ebx, ebx
test eax, eax
jne 0x14008ec7d
cmp byte [rbp - 0x48], bl
je 0x14008ec76
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
mov edi, 1
jmp 0x14008ec8f
cmp byte [rbp - 0x48], bl
je 0x14008ec8d
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
mov edi, ebx
mov r9d, edi
mov qword [rbp - 0x30], rbx
lea r8, [rbp + 0x30]
mov qword [rbp - 0x28], rbx
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x20], rbx
mov rcx, rsi
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], rbx
mov byte [rbp - 8], bl
call fcn.14008e70c
mov esi, eax
test eax, eax
je 0x14008eccb
call fcn.14007fc9c
or edi, 0xffffffff
mov dword [rax], esi
jmp 0x14008ed24
mov r9d, edi
mov qword [rbp - 0x60], rbx
lea r8, [rbp + 0x30]
mov qword [rbp - 0x58], rbx
lea rdx, [rbp - 0x60]
mov qword [rbp - 0x50], rbx
mov rcx, r14
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], rbx
mov byte [rbp - 0x38], bl
call fcn.14008e70c
mov edi, eax
test eax, eax
je 0x14008ed07
call fcn.14007fc9c
mov dword [rax], edi
or edi, 0xffffffff
jmp 0x14008ed16
mov rdx, qword [rbp - 0x50]
mov rcx, qword [rbp - 0x20]
call fcn.14009f6c0
mov edi, eax
cmp byte [rbp - 0x38], bl
je 0x14008ed24
mov rcx, qword [rbp - 0x50]
call fcn.140094b24
cmp byte [rbp - 8], bl
je 0x14008ed32
mov rcx, qword [rbp - 0x20]
call fcn.140094b24
lea r11, [rsp + 0x80]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x140096488
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x1400bc4a8]
mov edi, ecx
lea rdx, str.GetTempPath2W
mov ecx, 5
lea r8, [0x1400bc4a0]
call fcn.140095f34
test rax, rax
je 0x1400964d2
movabs r10, 0xa3e5bf4030d1b870
mov rdx, rbx
mov ecx, edi
call qword [0x1400ad3d0]
jmp 0x1400964dd
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140098578
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14009858e
mov al, 1
jmp 0x1400985ee
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14009859f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400985ec
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400a31d8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400985ec
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400985ec
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400985ec
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400985ee
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14009872c
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, [0x1400d3b60]
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 0x140098783
cmp word [rdx], r13w
jne 0x140098783
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140098788
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400988ad
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400988ce
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400987c1
mov rdx, r9
mov word [rbx], cx
jmp 0x1400987e8
cmp r9, r8
jae 0x1400987f8
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 0x1400987a2
jmp 0x1400988ad
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 0x1400988a2
cmp dword [rsp + 0x80], esi
je 0x1400988a2
lea r8, [0x1400d3b60]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14009887a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14009884a
mov word [rbx], r13w
jmp 0x1400988aa
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 0x140098857
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400988aa
cmp word [rsp + 0x70], r13w
jne 0x140098887
cmp rbx, r14
je 0x140098844
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14009a618
cmp word [rsp + 0x70], r13w
je 0x1400988ad
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, [0x1400d3b60]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400988a7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400988ad
Function at 0x14009f698
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14009f6b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14007fc10
or eax, 0xffffffff
jmp 0x14009f6ba
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400a22dc
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 0x1400a230c
xor eax, eax
jmp 0x1400a23cf
mov rbp, rbx
cmp word [rax], si
je 0x1400a2331
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400a2318
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400a2314
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.14009f5b8
movsxd r14, eax
test eax, eax
jne 0x1400a236f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400a2305
mov rcx, r14
call fcn.140096e84
mov rdi, rax
test rax, rax
jne 0x1400a2388
xor ecx, ecx
call fcn.140094b24
jmp 0x1400a2364
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.14009f5b8
test eax, eax
jne 0x1400a23b9
mov rcx, rdi
call fcn.140094b24
jmp 0x1400a23c3
xor ecx, ecx
call fcn.140094b24
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 0x1400a23ec
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 0x1400a2473
mov rsi, rbx
cmp word [rax], bp
je 0x1400a2432
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400a241c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400a2418
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140096e84
mov rdi, rax
test rax, rax
je 0x1400a2460
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400aa4c0
mov rbp, rdi
xor ecx, ecx
call fcn.140094b24
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 0x1400a5710
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.140095b20
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 0x1400a57b1
cmp ebx, dword [rsp + 0x30]
je 0x1400a57aa
test esi, esi
je 0x1400a57aa
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400a5785
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400a5792
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400a576f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400a5796
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400a57b3
mov eax, 1
jmp 0x1400a57b3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400a7dbc
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.14009a618
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14009a618
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400a7f0c
cmp rax, 0xffffffffffffffff
je 0x1400a7f0c
xor edi, edi
test rbp, rbp
jle 0x1400a7eb7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140096aa0
mov rbx, rax
test rax, rax
jne 0x1400a7e44
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400a7ead
mov edx, 0x8000
mov ecx, r14d
call fcn.1400929f4
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.14009a0a0
cmp eax, 0xffffffff
je 0x1400a7e8d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400a7e54
mov edx, r15d
mov ecx, r14d
call fcn.1400929f4
jmp 0x1400a7ead
cmp byte [rsi + 0x38], dil
je 0x1400a7ea4
cmp dword [rsi + 0x34], 5
jne 0x1400a7ea4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400a7ead
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140094b24
jmp 0x1400a7f20
jns 0x1400a7f20
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14009a618
cmp rax, 0xffffffffffffffff
jne 0x1400a7ed8
cmp byte [rsi + 0x30], dil
je 0x1400a7f20
mov edi, dword [rsi + 0x2c]
jmp 0x1400a7f20
mov ecx, r14d
call fcn.1400a31d8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400a7f20
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 0x1400a7f20
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400a7f19
mov eax, dword [rsi + 0x2c]
jmp 0x1400a7f1e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14009a618
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