joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002310
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000235d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002354
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000235f
add rax, 0x28
cmp rax, r9
jne 0x140002340
xor eax, eax
ret

Function at 0x140002360
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400023f0
mov rdx, qword [0x14001d3a0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400023de
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400023de
cmp word [rax + 0x18], 0x20b
jne 0x1400023de
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400023f0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400023c9
add rbx, 0x28
cmp rbx, rdi
je 0x1400023f0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400023c0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002400
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14001d3a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002420
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002428
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002420
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000247d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002474
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002420
add rax, 0x28
cmp rax, r9
jne 0x140002460
xor eax, eax
ret

Function at 0x140002480
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001d3a0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000249f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400024a8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000249f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400024c0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14001d3a0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400024e0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400024e8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400024e0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002530
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002527
test rcx, rcx
je 0x1400024e0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002518
xor eax, eax
ret
Function at 0x140002540
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001d3a0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000255f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002568
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002580
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14001d3a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400025a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400025a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400025a0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400025a0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400025f4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002600
add rdx, 0x28
cmp rdx, r9
jne 0x1400025e0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002610
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14001d3a0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002632
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002640
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002632
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002632
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002632
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002695
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400026a8
add rdx, 0x28
cmp r10, rdx
jne 0x140002680
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400026b7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400026c7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000269e
test ecx, ecx
jg 0x1400026b0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1400028e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
lea rdi, str.ntdll.dll
call dbg.__main
mov rsi, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rdi
lea r12, [rsp + 0x38]
call rsi
mov rcx, rdi
call rsi
lea rdx, str.NtAllocateVirtualMemory
mov rcx, rax
call sym.gettingGetProcAddress_HINSTANCE____char_const_
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_FreeConsole]
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0x19800
call rbp
xor r8d, r8d
lea r9, [rsp + 0x40]
mov rdx, r12
mov rcx, rax
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0x3000
call rbx
mov edx, dword [section..data]
lea rbx, [0x140003020]
mov r9d, 0x10
lea r8, [0x14001c820]
mov rcx, rbx
call sym.ZsACxfMZ_char__unsigned_int__char__unsigned_long_long_
movss xmm0, dword [0x14001d030]
call sym.dUNosvaAcm_float_
mov rcx, qword [rsp + 0x38]
mov r8d, 0x19800
mov rdx, rbx
call sym.memcpy
movss xmm0, dword [0x14001d034]
call sym.dUNosvaAcm_float_
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x34]
mov r8d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140002a24
call qword [rsp + 0x38]
call qword [rsp + 0x38]
movss xmm0, dword [0x14001d038]
call sym.dUNosvaAcm_float_
mov rcx, rdi
call rsi
lea rdx, str.NtFreeVirtualMemory
mov rcx, rax
call sym.gettingGetProcAddress_HINSTANCE____char_const_
mov qword [rsp + 0x48], 0
mov rbx, rax
call rbp
mov r9d, 0x8000
lea r8, [rsp + 0x48]
mov rdx, r12
mov rcx, rax
call rbx
xor eax, eax
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
or eax, 0xffffffff
jmp 0x140002a19
Function at 0x1800026a0
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
cmp dword [0x180020a94], 0xa
jl 0x1800026d2
mov eax, dword [0x180020a98]
lea edx, [rax - 1]
imul edx, eax
and edx, 1
je 0x1800026d2
nop word cs:[rax + rax]
jmp 0x1800026d0
mov rax, qword gs:[0x60]
mov r10, qword [rax + 0x18]
add r10, 0x10
mov eax, dword [0x180020a80]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a7c], 0xa
setl r8b
or r8b, al
mov eax, dword [0x180020a9c]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020aa0], 0xa
setl r9b
or r9b, al
lea r11, [rcx - 1]
xor eax, eax
mov r14, r10
mov r14, qword [r14]
cmp r14, r10
je 0x1800027cb
mov rsi, r11
test r8b, r8b
je 0x1800027b0
cmp byte [rsi + 1], 0
lea rsi, [rsi + 1]
jne 0x180002740
sub rsi, rcx
je 0x1800027c2
test r9b, r9b
je 0x1800027c0
mov r15, qword [r14 + 0x60]
xor ebx, ebx
nop word [rax + rax]
movzx r13d, word [r15 + rbx*2]
lea edi, [r13 - 0x41]
lea ebp, [r13 + 0x20]
cmp di, 0x1a
cmovae ebp, r13d
movsx edi, byte [rcx + rbx]
lea r12d, [rdi - 0x41]
lea edx, [rdi + 0x20]
cmp r12b, 0x1a
cmovae edx, edi
sub ebp, edx
test r13d, r13d
je 0x1800027a0
test ebp, ebp
jne 0x1800027a0
add rbx, 1
cmp rsi, rbx
jne 0x180002760
jmp 0x1800027c7
test ebp, ebp
jne 0x18000272c
jmp 0x1800027c7
jmp 0x1800027b0
jmp 0x1800027c0
test r9b, r9b
je 0x1800027e0
mov rax, qword [r14 + 0x30]
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
jmp 0x1800027e0
Function at 0x2fc4e6880
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4e7940
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4e7282
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc50b108]
test eax, eax
je 0x2fc4e731a
lea rax, [0x2fc50b0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc50b110]
mov qword [rbp - 8], rax
jmp 0x2fc4e72fe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4e72f2
cmp qword [rbp - 0x10], 0
je 0x2fc4e72f2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4e72b8
lea rax, [0x2fc50b0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4e731b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4e7420
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4e7448
mov eax, 0
jmp 0x2fc4e7496
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4e7471
mov eax, 0
jmp 0x2fc4e7496
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4e7491
mov eax, 0
jmp 0x2fc4e7496
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4e749c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4e751a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4e7511
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4e7511
mov rax, qword [rbp - 8]
jmp 0x2fc4e752f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4e74e4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140032070
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rsi, rcx
mov r12d, 0x100
mov ecx, r12d
mov r14, r8
mov r15, rdx
xor edi, edi
call fcn.140067a78
mov rcx, rax
mov rbx, rax
lea rdx, [rax + 0x100]
call fcn.140032bac
xor eax, eax
mov r9, rbx
mov byte [r9], al
inc eax
inc r9
cmp eax, r12d
jl 0x1400320bc
mov r11, qword [rsi + 8]
xor r8d, r8d
sub r11, qword [rsi]
xor r9d, r9d
xor ebp, ebp
mov r10, rbx
movzx r13d, byte [r10]
xor edx, edx
mov rax, rbp
div r11
mov rax, qword [rsi]
movzx ecx, byte [rdx + rax]
add edi, ecx
add edi, r13d
and edi, 0x800000ff
jge 0x140032105
dec edi
or edi, 0xffffff00
inc edi
movsxd rcx, edi
inc rbp
mov al, byte [rcx + rbx]
mov byte [r10], al
inc r10
mov byte [rcx + rbx], r13b
sub r12, 1
jne 0x1400320db
test r14, r14
je 0x140032181
inc r8d
mov ecx, 0x800000ff
and r8d, ecx
jge 0x14003213d
dec r8d
or r8d, 0xffffff00
inc r8d
movsxd r10, r8d
movzx edx, byte [r10 + rbx]
add r9d, edx
and r9d, ecx
jge 0x14003215a
dec r9d
or r9d, 0xffffff00
inc r9d
movsxd rcx, r9d
mov al, byte [rcx + rbx]
mov byte [r10 + rbx], al
mov byte [rcx + rbx], dl
movzx ecx, byte [r10 + rbx]
add rcx, rdx
movzx eax, cl
mov cl, byte [rax + rbx]
xor byte [r15], cl
inc r15
sub r14, 1
jne 0x140032123
test rbx, rbx
je 0x140032193
mov edx, 0x100
mov rcx, rbx
call fcn.140067ab4
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x14005b71c
Capabilities:
Encode data using xor
Hash data using fnv

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

Function at 0x14005b730
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x14004110a
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x1400410ed
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x1400410d8
Function at 0x1400791e8
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 0x140078fdf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140078fdf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140078fdf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140078fdf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140078fdf
cmp dword [rcx + 0x84], 0xe
jbe 0x140078fdf
cmp dword [rcx + 0xf8], 0
je 0x140078fdf
mov ecx, ebx
call fcn.1400790f0
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.140078d44
nop
cmp dword [rbp + 0x20], 0
je 0x14007902d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140079038
int3
xor r8d, r8d
xor edx, edx
jmp 0x140078f70
Function at 0x1400ba314
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400ba32a
mov al, 1
jmp 0x1400ba38a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400ba33b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400ba388
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400c6d50
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400ba388
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400ba388
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400ba388
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400ba38a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400c53a8
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 0x1400c53d8
xor eax, eax
jmp 0x1400c549b
mov rbp, rbx
cmp word [rax], si
je 0x1400c53fd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400c53e4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400c53e0
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.1400c1504
movsxd r14, eax
test eax, eax
jne 0x1400c543b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400c53d1
mov rcx, r14
call fcn.1400bc278
mov rdi, rax
test rax, rax
jne 0x1400c5454
xor ecx, ecx
call fcn.1400b7140
jmp 0x1400c5430
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.1400c1504
test eax, eax
jne 0x1400c5485
mov rcx, rdi
call fcn.1400b7140
jmp 0x1400c548f
xor ecx, ecx
call fcn.1400b7140
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 0x1400c54b8
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 0x1400c553f
mov rsi, rbx
cmp word [rax], bp
je 0x1400c54fe
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400c54e8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400c54e4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400bc278
mov rdi, rax
test rax, rax
je 0x1400c552c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14006a1e0
mov rbp, rdi
xor ecx, ecx
call fcn.1400b7140
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 0x1400c9808
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.1400b6d98
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 0x1400c98a9
cmp ebx, dword [rsp + 0x30]
je 0x1400c98a2
test esi, esi
je 0x1400c98a2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400c987d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400c988a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400c9867
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400c988e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400c98ab
mov eax, 1
jmp 0x1400c98ab
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400cc81c
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, [0x14026faf0]
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 0x1400cc873
cmp word [rdx], r13w
jne 0x1400cc873
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400cc878
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400cc99d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400cc9be
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400cc8b1
mov rdx, r9
mov word [rbx], cx
jmp 0x1400cc8d8
cmp r9, r8
jae 0x1400cc8e8
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 0x1400cc892
jmp 0x1400cc99d
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 0x1400cc992
cmp dword [rsp + 0x80], esi
je 0x1400cc992
lea r8, [0x14026faf0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400cc96a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400cc93a
mov word [rbx], r13w
jmp 0x1400cc99a
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 0x1400cc947
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400cc99a
cmp word [rsp + 0x70], r13w
jne 0x1400cc977
cmp rbx, r14
je 0x1400cc934
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400cb9b8
cmp word [rsp + 0x70], r13w
je 0x1400cc99d
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, [0x14026faf0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400cc997
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400cc99d
Function at 0x1400d406c
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.1400cb9b8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400cb9b8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400d41bc
cmp rax, 0xffffffffffffffff
je 0x1400d41bc
xor edi, edi
test rbp, rbp
jle 0x1400d4167
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400bc2d8
mov rbx, rax
test rax, rax
jne 0x1400d40f4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400d415d
mov edx, 0x8000
mov ecx, r14d
call fcn.1400b2ed0
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.1400b9c80
cmp eax, 0xffffffff
je 0x1400d413d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400d4104
mov edx, r15d
mov ecx, r14d
call fcn.1400b2ed0
jmp 0x1400d415d
cmp byte [rsi + 0x38], dil
je 0x1400d4154
cmp dword [rsi + 0x34], 5
jne 0x1400d4154
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400d415d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400b7140
jmp 0x1400d41d0
jns 0x1400d41d0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400cb9b8
cmp rax, 0xffffffffffffffff
jne 0x1400d4188
cmp byte [rsi + 0x30], dil
je 0x1400d41d0
mov edi, dword [rsi + 0x2c]
jmp 0x1400d41d0
mov ecx, r14d
call fcn.1400c6d50
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400d41d0
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 0x1400d41d0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400d41c9
mov eax, dword [rsi + 0x2c]
jmp 0x1400d41ce
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400cb9b8
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