joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006c8e0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xf8
mov rax, qword [0x140100140]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x98]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x14006c951
xor edx, edx
mov rcx, qword [rsp + 0x100]
call fcn.140001b80
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x100]
jmp 0x14006cb53
mov dword [rsp + 0x24], 1
jmp 0x14006c965
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x98]
cmp dword [rsp + 0x24], eax
jge 0x14006cb21
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx + rax*8]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call fcn.140061220
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call fcn.14006c4b0
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0xcc24713d
jne 0x14006cb1c
mov eax, dword [rsp + 0x98]
dec eax
cmp dword [rsp + 0x24], eax
jge 0x14006cb1c
mov eax, dword [rsp + 0x24]
inc eax
cdqe
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rcx + rax*8]
lea rcx, [rsp + 0xc0]
call fcn.140020c10
nop
lea rcx, [rsp + 0x28]
call fcn.140001890
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0xc0]
call fcn.1400698a0
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0xc0]
call fcn.140067d80
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x78], rax
mov r9, qword [rsp + 0x68]
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0xa0]
call fcn.14005eac0
nop
lea rcx, [rsp + 0xa0]
call fcn.140041020
cmp rax, 3
je 0x14006cacc
lea rdx, [0x1400debd8]
mov rcx, qword [rsp + 0x100]
call fcn.140001b80
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0xa0]
call fcn.140002090
nop
lea rcx, [rsp + 0xc0]
call fcn.140024820
mov rax, qword [rsp + 0x100]
jmp 0x14006cb53
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x100]
call fcn.1400201b0
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0xa0]
call fcn.140002090
nop
lea rcx, [rsp + 0xc0]
call fcn.140024820
mov rax, qword [rsp + 0x100]
jmp 0x14006cb53
jmp 0x14006c95b
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rdx, [0x1400debd9]
mov rcx, qword [rsp + 0x100]
call fcn.140001b80
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x100]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140097cf0
add rsp, 0xf8
ret
Function at 0x14006e7b0
Capabilities:
Enumerate processes

Disassembly:
mov byte [rsp + 0x18], r8b
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0x338
mov rax, qword [0x140100140]
xor rax, rsp
mov qword [rsp + 0x320], rax
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x14006e80e
mov dword [rsp + 0x30], 0xffffffff
mov rcx, qword [rsp + 0x340]
call fcn.140024820
mov eax, dword [rsp + 0x30]
jmp 0x14006ea08
lea rdx, [0x1400debd4]
lea rcx, [rsp + 0xc0]
call fcn.140020c10
nop
mov dword [rsp + 0xe0], 0x238
mov byte [rsp + 0x20], 0
lea rdx, [rsp + 0xe0]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x14006e9d4
mov dword [rsp + 0x24], 0
lea rdx, [rsp + 0x10c]
lea rcx, [rsp + 0xc0]
call fcn.1400627f0
nop
mov rdx, qword [rsp + 0x340]
lea rcx, [rsp + 0xc0]
call fcn.14005f150
movzx eax, al
test eax, eax
je 0x14006e9ba
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x40], rax
lea rdx, str.cnlFySVU1mOEFXMQlZ3rWnJQYTUIfLCiAtmMlAWYJC8ndUxTlDCEUp1THzPG4vyaRaK7ZTq8z23a97cP6q2HWQ_44
mov rcx, qword [rsp + 0x40]
call fcn.140020c10
mov qword [rsp + 0x48], rax
mov r8d, 0x11
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x78]
call fcn.14006cb70
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call fcn.14000d520
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.140020c10
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140033370
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x340]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
call fcn.140004d90
mov byte [rsp + 0x21], al
lea rcx, [rsp + 0x80]
call fcn.140024820
nop
lea rcx, [rsp + 0x78]
call fcn.140023f20
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x14006e993
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
movzx eax, byte [rsp + 0x348]
cmp eax, 1
jne 0x14006e96d
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x34], eax
mov ecx, dword [rsp + 0x34]
call fcn.140065d10
nop
cmp dword [rsp + 0x24], 5
jbe 0x14006e97d
mov byte [rsp + 0x20], 1
jmp 0x14006e9d4
movzx eax, byte [rsp + 0x350]
cmp eax, 1
jne 0x14006e991
mov byte [rsp + 0x20], 1
jmp 0x14006e9d4
jmp 0x14006e9ba
movzx eax, byte [rsp + 0x348]
cmp eax, 1
jne 0x14006e9b5
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x38], eax
mov ecx, dword [rsp + 0x38]
call fcn.140065d10
nop
mov byte [rsp + 0x20], 1
lea rdx, [rsp + 0xe0]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x14006e855
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
movzx eax, byte [rsp + 0x20]
mov dword [rsp + 0x3c], eax
lea rcx, [rsp + 0xc0]
call fcn.140024820
nop
mov rcx, qword [rsp + 0x340]
call fcn.140024820
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.140097cf0
add rsp, 0x338
ret
Function at 0x14006ea20
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x2a8
mov rax, qword [0x140100140]
xor rax, rsp
mov qword [rsp + 0x290], rax
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x14006ea73
mov byte [rsp + 0x20], 0
mov rcx, qword [rsp + 0x2b0]
call fcn.140024820
movzx eax, byte [rsp + 0x20]
jmp 0x14006eb53
mov dword [rsp + 0x50], 0x238
mov dword [rsp + 0x24], 0
lea rdx, [0x1400dec98]
lea rcx, [rsp + 0x30]
call fcn.140020c10
nop
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x14006eb25
lea rdx, [rsp + 0x7c]
lea rcx, [rsp + 0x30]
call fcn.1400627f0
nop
mov rdx, qword [rsp + 0x2b0]
lea rcx, [rsp + 0x30]
call fcn.14005f150
movzx eax, al
test eax, eax
je 0x14006eb12
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 2
jl 0x14006eb12
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov byte [rsp + 0x21], 1
lea rcx, [rsp + 0x30]
call fcn.140024820
nop
mov rcx, qword [rsp + 0x2b0]
call fcn.140024820
movzx eax, byte [rsp + 0x21]
jmp 0x14006eb53
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x14006eaa8
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov byte [rsp + 0x22], 0
lea rcx, [rsp + 0x30]
call fcn.140024820
nop
mov rcx, qword [rsp + 0x2b0]
call fcn.140024820
movzx eax, byte [rsp + 0x22]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140097cf0
add rsp, 0x2a8
ret

Function at 0x140071ca8
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 0x140071ce2
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140071ce7
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 0x140071d30
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400e3130]
cmp byte [rcx + rax], 0
je 0x140071d30
dec r8
sub rdx, 1
jne 0x140071d16
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14008cf98
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x140079b16
movzx eax, byte [rcx + rdx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x140079af9
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x140079ae4

Function at 0x140096f64
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x28
call fcn.1400a8ab4
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x140096fb6
and dword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov r9d, 2
lea edx, [r9 + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx ecx, word [rsp + 0x30]
sub ecx, 0x30
je 0x140096fb6
sub ecx, 1
je 0x140096faf
cmp ecx, 1
je 0x140096fa8
xor eax, eax
jmp 0x140096fbb
mov eax, 3
jmp 0x140096fbb
mov eax, 1
jmp 0x140096fbb
mov eax, 2
add rsp, 0x28
ret

Function at 0x140098810
Capabilities:
Parse pe header

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

Function at 0x1400a7f48
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 0x1400a7fb7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400a7fb7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400a7fb7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400a7fb7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400a7fb7
cmp dword [rcx + 0x84], 0xe
jbe 0x1400a7fb7
cmp dword [rcx + 0xf8], 0
je 0x1400a7fb7
mov ecx, ebx
call fcn.1400a8068
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.1400a7e44
nop
cmp dword [rbp + 0x20], 0
je 0x1400a8005
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400a8010
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400a7f48
Function at 0x1400a814c
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 0x1400a7fb7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400a7fb7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400a7fb7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400a7fb7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400a7fb7
cmp dword [rcx + 0x84], 0xe
jbe 0x1400a7fb7
cmp dword [rcx + 0xf8], 0
je 0x1400a7fb7
mov ecx, ebx
call fcn.1400a8068
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.1400a7e44
nop
cmp dword [rbp + 0x20], 0
je 0x1400a8005
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400a8010
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400a7f48
Function at 0x1400b2260
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.140097e20
sub rsp, rax
mov rax, qword [0x140100140]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400b0a20
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400b22af
mov rax, rbp
jmp 0x1400b23b7
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 + 0x103f90]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400b3548
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x103f90]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400b23b3
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 0x1400b23b3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400b3548
test rax, rax
js 0x1400b23b3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400b23b3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400b23a5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400b23a5
cmp byte [rcx], 0xd
jne 0x1400b238b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400b239a
cmp byte [rcx + 1], 0xa
jne 0x1400b239a
inc rcx
jmp 0x1400b239a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1005b0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400b236d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400b23b7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140097cf0
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 0x1400b26d4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400b26ea
mov al, 1
jmp 0x1400b274a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400b26fb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400b2748
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400b9900
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400b2748
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400b2748
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400b2748
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400b274a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400b28e8
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, [0x140103f90]
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 0x1400b293f
cmp word [rdx], r13w
jne 0x1400b293f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400b2944
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400b2a69
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400b2a8a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400b297d
mov rdx, r9
mov word [rbx], cx
jmp 0x1400b29a4
cmp r9, r8
jae 0x1400b29b4
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 0x1400b295e
jmp 0x1400b2a69
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 0x1400b2a5e
cmp dword [rsp + 0x80], esi
je 0x1400b2a5e
lea r8, [0x140103f90]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400b2a36
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400b2a06
mov word [rbx], r13w
jmp 0x1400b2a66
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 0x1400b2a13
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400b2a66
cmp word [rsp + 0x70], r13w
jne 0x1400b2a43
cmp rbx, r14
je 0x1400b2a00
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400b3550
cmp word [rsp + 0x70], r13w
je 0x1400b2a69
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, [0x140103f90]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400b2a63
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400b2a69
Function at 0x1400b8ce4
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 0x1400b8d6b
mov rsi, rbx
cmp word [rax], bp
je 0x1400b8d2a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400b8d14
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400b8d10
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400b37b4
mov rdi, rax
test rax, rax
je 0x1400b8d58
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400c1000
mov rbp, rdi
xor ecx, ecx
call fcn.1400af2d4
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 0x1400bbe54
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.1400aef74
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 0x1400bbef5
cmp ebx, dword [rsp + 0x30]
je 0x1400bbeee
test esi, esi
je 0x1400bbeee
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400bbec9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400bbed6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400bbeb3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400bbeda
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400bbef7
mov eax, 1
jmp 0x1400bbef7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400c01f0
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.1400b3550
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400b3550
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400c0340
cmp rax, 0xffffffffffffffff
je 0x1400c0340
xor edi, edi
test rbp, rbp
jle 0x1400c02eb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400af7b4
mov rbx, rax
test rax, rax
jne 0x1400c0278
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400c02e1
mov edx, 0x8000
mov ecx, r14d
call fcn.1400ad020
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.1400b192c
cmp eax, 0xffffffff
je 0x1400c02c1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400c0288
mov edx, r15d
mov ecx, r14d
call fcn.1400ad020
jmp 0x1400c02e1
cmp byte [rsi + 0x38], dil
je 0x1400c02d8
cmp dword [rsi + 0x34], 5
jne 0x1400c02d8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400c02e1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400af2d4
jmp 0x1400c0354
jns 0x1400c0354
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400b3550
cmp rax, 0xffffffffffffffff
jne 0x1400c030c
cmp byte [rsi + 0x30], dil
je 0x1400c0354
mov edi, dword [rsi + 0x2c]
jmp 0x1400c0354
mov ecx, r14d
call fcn.1400b9900
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400c0354
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 0x1400c0354
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400c034d
mov eax, dword [rsi + 0x2c]
jmp 0x1400c0352
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400b3550
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 0x1400c0cb0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400c0cd8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400c0cd8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x4133c0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x41354b
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x0061e360]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x413425
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x413434
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x413453
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x413463
cmp rbx, 0x1000
jae 0x41342b
jmp 0x4134cd
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x413475
xor edx, edx
jmp 0x4134c4
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x0061e360]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x413459
jmp 0x413448
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x0061e360]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call sym.runtime.printlock
lea rax, [0x004fe719]
mov ebx, 0x18
nop dword [rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x004fed34]
mov ebx, 0x19
nop dword [rax + rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x30]
call sym.runtime.printuint
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x00501837]
mov ebx, 0x21
call sym.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.runtime.sysUnusedOS