joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400dd410
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x168
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [r8]
mov rbp, qword [r8 + 8]
movabs r14, 0x8000000000000008
cmp rbx, rbp
je 0x1400dd4f9
mov r12, r8
lea r13, [rbx + 0x30]
mov qword [r8], r13
mov r15, qword [r8 + 0x10]
lea rcx, [rsp + 0x30]
mov rdx, r15
mov r8, rbx
call fcn.1400d7df0
mov rax, qword [rsp + 0x30]
mov r8d, dword [rsp + 0x38]
mov edx, dword [rsp + 0x3c]
movups xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0xc0], xmm0
movups xmm0, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0xd0], xmm0
movups xmm0, xmmword [rsp + 0x60]
and al, 0x60
movaps xmmword [rsp + 0xe0], xmm0
movups xmm0, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0xf0], xmm0
movups xmm0, xmmword [rsp + 0x80]
movaps xmmword [rsp + 0x100], xmm0
movups xmm0, xmmword [rsp + 0x90]
movaps xmmword [rsp + 0x110], xmm0
movups xmm0, xmmword [rsp + 0xa0]
movaps xmmword [rsp + 0x120], xmm0
cmp rax, r14
je 0x1400dd5a5
movabs rcx, 0x8000000000000009
cmp rax, rcx
movabs r14, 0x8000000000000008
or byte [rdi], 0x85
nop
add dword [rax], eax
invalid
cmp qword [rdi + 0x28], 0
jne 0x1400ddaa7
mov qword [rdi + 0x28], 0xffffffffffffffff
lea rdx, [rdi + 0x30]
mov dword [rsp + 0x148], 8
lea rcx, [rsp + 0x30]
lea r8, [rsp + 0x148]
call case.0x1400fc6c9.341
inc qword [rdi + 0x28]
mov rax, qword [rsp + 0x30]
cmp rax, r14
jne 0x1400dd54a
mov ecx, dword [rsp + 0x38]
mov dword [rsi + 8], ecx
mov dword [rsi + 0xc], ecx
jmp 0x1400dd684
mov ecx, dword [rsp + 0x38]
mov edx, dword [rsp + 0xac]
mov dword [rsi + 0x7c], edx
movups xmm0, xmmword [rsp + 0x9c]
movups xmmword [rsi + 0x6c], xmm0
movups xmm0, xmmword [rsp + 0x8c]
movups xmmword [rsi + 0x5c], xmm0
movups xmm0, xmmword [rsp + 0x7c]
and al, 0x7c
movups xmmword [rsi + 0x4c], xmm0
movups xmm0, xmmword [rsp + 0x6c]
movups xmmword [rsi + 0x3c], xmm0
movups xmm0, xmmword [rsp + 0x5c]
movups xmmword [rsi + 0x2c], xmm0
movups xmm0, xmmword [rsp + 0x4c]
movups xmmword [rsi + 0x1c], xmm0
movups xmm0, xmmword [rsp + 0x3c]
movups xmmword [rsi + 0xc], xmm0
mov dword [rsi + 8], ecx
jmp 0x1400dd684
cmp r13, rbp
je 0x1400dd673
add byte [rax], al
mov r14d, r8d
mov dword [rsp + 0xb0], edx
add rbx, 0x60
mov qword [r12], rbx
lea rcx, [rsp + 0x30]
mov rdx, r15
mov r8, r13
call fcn.1400d7df0
mov rax, qword [rsp + 0x30]
mov r13d, dword [rsp + 0x38]
mov r9d, dword [rsp + 0x3c]
movups xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0xc0], xmm0
test byte [rax + rax*8], ah
add byte [rax], al
add byte [rdi], cl
adc byte [rsp + 0x50], al
movaps xmmword [rsp + 0xd0], xmm0
movups xmm0, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0xe0], xmm0
movups xmm0, xmmword [rsp + 0x70]
lea rcx, str.C:Users_akita.cargo_registry_srcindex.crates.io_6f17d22bba15001f_regex_automata_0.4.3_src_nfa_thompsoncompiler.rs
call fcn.1403a6740
Function at 0x1400de560
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
mov r14, r8
invalid
mov r11, rdx
mov rdi, rcx
mov rbx, qword [r9 + 8]
mov r15, qword [r9 + 0x10]
test r15, r15
je 0x1400de705
lea rcx, [r15*8]
movabs rax, 0xcbf29ce484222325
xor edx, edx
movabs r8, 0x100000001b3
nop dword [rax + rax]
movzx esi, byte [rbx + rdx + 4]
xor rsi, rax
imul rsi, r8
movzx r10d, byte [rbx + rdx + 5]
xor r10, rsi
imul r10, r8
mov eax, dword [rbx + rdx]
xor rax, r10
imul rax, r8
add rdx, 8
cmp rcx, rdx
jne 0x1400de5b0
mov rcx, qword [r14 + 0x10]
test rcx, rcx
je 0x1400de71c
xor edx, edx
div rcx
mov rax, qword [r14 + 8]
mov r12, rdx
shl r12, 5
shl esp, 5
movabs rax, 0xcbf29ce484222325
mov rcx, qword [r14 + 0x10]
test rcx, rcx
jne 0x1400de5e9
lea rcx, str.attempt_to_calculate_the_remainder_with_a_divisor_of_zerotoo_much_time_has_elapsed_since_the_interval_was_supposed_to_tick
lea r8, str.C:Users_akita.cargo_registry_srcindex.crates.io_6f17d22bba15001f_regex_automata_0.4.3_src_nfa_thompsonmap.rs_e__
mov edx, 0x39
call fcn.1403a64b0
Function at 0x140105b90
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov r13, rdx
mov r14, rcx
mov rbx, qword [rcx + 8]
mov rdi, qword [rcx + 0x10]
test rdi, rdi
invalid
je 0x140105c0d
mov rax, rdi
lea r12, [rdi*4]
Function at 0x1401211b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
mov r12, rdx
mov rdi, rcx
mov rsi, qword [rdx]
mov rbx, qword [rdx + 0x10]
lea r13, [rsi + 0xa0]
mov rbp, qword [rsi + 0xa0]
cmp rbp, rbx
jne 0x140121272
mov rax, qword [r13 + 0x10]
mov qword [rsp + 0x78], rax
movups xmm0, xmmword [r13]
movups xmmword [rsp + 0x68], xmm0
mov rax, qword [r13 + 0x10]
mov qword [rsp + 0x60], rax
movups xmm0, xmmword [r13]
movaps xmmword [rsp + 0x50], xmm0
mov rbx, qword [r12 + 8]
test rbp, rbp
je 0x1401212a5
js 0x140121bc4
movzx eax, byte [0x1404b98a8]
mov rcx, qword [0x1404b9810]
test rcx, rcx
jne 0x14012124f
mov rsi, rbp
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x140121265
mov rcx, rax
mov qword [0x1404b9810], rax
mov rbp, rsi
xor edx, edx
mov rsi, rbp
mov r8, rbp
mov eax, ebp
call qword [sym.imp.kernel32.dll_HeapAlloc]
mov r14, rax
mov esi, eax
test rax, rax
jne 0x1401212ae
mov ecx, 1
mov rdx, rsi
call fcn.1403a5f80
mov dword [rsp + 0x9c], r8d
lea rax, [rsi + 0xa8]
mov qword [rsp + 0x30], rax
mov rax, qword [rsi + 0xa8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsi + 0xb0]
mov qword [rsp + 0x40], rax
mov r15, qword [r12 + 8]
jmp 0x140121313
mov rsi, rbp
mov r14d, 1
mov rcx, r14
mov rdx, rbx
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
movaps xmm0, xmmword [rsp + 0x50]
movaps xmm1, xmmword [rsp + 0x60]
movaps xmm2, xmmword [rsp + 0x70]
movups xmmword [rdi + 0x50], xmm0
movups xmmword [rdi + 0x60], xmm1
movups xmmword [rdi + 0x70], xmm2
mov qword [rdi], rsi
mov qword [rdi + 8], r14
mov dword [rdi + 8], esi

Function at 0x140121d70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
in al, dx
pop rax

Function at 0x140121f40
Capabilities:
Encode data using base64
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x168
in al, dx
invalid
add dword [rax], eax
invalid
Function at 0x140002f10
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400049b0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400049b0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002f80
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x1400030b0
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002fcb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140003055
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002fb0
mov rcx, rbx
call fcn.1400039d0
mov rdi, rax
test rax, rax
je 0x1400030d2
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003b10
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400030b7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000304e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140003060
add dword [0x14000a0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000304e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002f10
nop dword [rax]
xor esi, esi
jmp 0x140002fd8
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002f10
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002f10
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003640
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x14000369c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003693
test rsi, rsi
je 0x140003693
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003678
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400039d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006ae0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400039f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400039f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400039f0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140003a4d
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 0x140003a44
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400039f0
add rax, 0x28
cmp rax, r9
jne 0x140003a30
xor eax, eax
ret

Function at 0x140003a50
Capabilities:
Parse pe header

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

Function at 0x140003b10
Capabilities:
Parse pe header

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

Function at 0x14024eafc
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp], r11
sub r11w, word [rsp + 5]
lea r11, [0x1402729f8]
lea rsp, [rsp + 8]
mov r9d, 0xaf938c02
and r9w, 0x4424
movzx r9d, byte [rax]
push 0xffffffff9c8c6084
xor r9d, esi
push 0x7b046eae
shl word [rsp + 0xb], 0xc7
and r9d, 0xff
mov r9d, dword [r11 + r9*4]
shr esi, 8
xor esi, r9d
inc rax
not word [rsp + 6]
xor esi, 0x3c925fba
inc qword [rsp + 5]
dec rdx
mov qword [rsp + 8], 0xffffffffa81e4ab7
lea rsp, [rsp + 0x10]
jne 0x14024eb12
pop r9
pop r11
push 0xffffffff8eb0eba0
push 0x191d8621
not esi
jmp 0x14027ec14
jmp 0x14026cbaf
Function at 0x140004840
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140004862
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x1400048dc
mov rdi, r14
mov rcx, rbx
call fcn.1400030d0
test rax, rax
jle 0x1400048b4
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.140025820
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1400048cc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1400048d4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140004876
sub r14, rdi
jmp 0x1400049bf
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x1400048f3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400048f5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140004927
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140025820
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400049bc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140004962
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x14000499d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140013b4c
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1400049bc
cmp rbp, rax
ja 0x140004970
test rbp, rbp
je 0x1400049bc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140013b4c
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x14000b14c
Capabilities:
Parse pe header

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

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

Function at 0x1400197cc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400197e2
mov al, 1
jmp 0x140019842
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400197f3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140019840
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001fcb0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140019840
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140019840
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140019840
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140019842
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001b4a4
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14001b4c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140011e9c
or eax, 0xffffffff
jmp 0x14001b4c6
xor eax, eax
add rsp, 0x28
ret

Function at 0x14001ba00
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.14000ac10
sub rsp, rax
mov rax, qword [0x1400950c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140018c3c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001ba4f
mov rax, rbp
jmp 0x14001bb57
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 + 0x974b0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001c94c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x974b0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001bb53
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 0x14001bb53
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001c94c
test rax, rax
js 0x14001bb53
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001bb53
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001bb45
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001bb45
cmp byte [rcx], 0xd
jne 0x14001bb2b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001bb3a
cmp byte [rcx + 1], 0xa
jne 0x14001bb3a
inc rcx
jmp 0x14001bb3a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x95500]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001bb0d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001bb57
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000a2d0
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 0x14001bcec
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, [0x1400974b0]
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 0x14001bd43
cmp word [rdx], r13w
jne 0x14001bd43
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001bd48
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001be6d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001be8e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001bd81
mov rdx, r9
mov word [rbx], cx
jmp 0x14001bda8
cmp r9, r8
jae 0x14001bdb8
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 0x14001bd62
jmp 0x14001be6d
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 0x14001be62
cmp dword [rsp + 0x80], esi
je 0x14001be62
lea r8, [0x1400974b0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001be3a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001be0a
mov word [rbx], r13w
jmp 0x14001be6a
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 0x14001be17
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001be6a
cmp word [rsp + 0x70], r13w
jne 0x14001be47
cmp rbx, r14
je 0x14001be04
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001c954
cmp word [rsp + 0x70], r13w
je 0x14001be6d
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, [0x1400974b0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001be67
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001be6d
Function at 0x14001f3e4
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 0x14001f414
xor eax, eax
jmp 0x14001f4d7
mov rbp, rbx
cmp word [rax], si
je 0x14001f439
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001f420
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001f41c
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.14001d81c
movsxd r14, eax
test eax, eax
jne 0x14001f477
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001f40d
mov rcx, r14
call fcn.140018a64
mov rdi, rax
test rax, rax
jne 0x14001f490
xor ecx, ecx
call fcn.140018a28
jmp 0x14001f46c
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.14001d81c
test eax, eax
jne 0x14001f4c1
mov rcx, rdi
call fcn.140018a28
jmp 0x14001f4cb
xor ecx, ecx
call fcn.140018a28
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 0x140022204
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.14001847c
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 0x1400222a5
cmp ebx, dword [rsp + 0x30]
je 0x14002229e
test esi, esi
je 0x14002229e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140022279
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140022286
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140022263
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14002228a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400222a7
mov eax, 1
jmp 0x1400222a7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret