joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003f590
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbx
push rsi
mov eax, 0x2068
call fcn.14007ca20
sub rsp, rax
mov rax, qword [0x1401c1050]
xor rax, rsp
mov qword [rsp + 0x2050], rax
mov rsi, rcx
mov r8b, 1
mov rcx, rdx
mov rbx, rdx
call fcn.1400421a0
test eax, eax
je 0x14003f5df
cmp eax, 1
jne 0x14003f5d8
mov rcx, rbx
call fcn.14002d370
test al, al
jne 0x14003f5df
xor al, al
jmp 0x14003f6fa
mov qword [rsp + 0x2090], rbp
xor ebp, ebp
cmp qword [rsi + 0x18], 8
mov qword [rsp + 0x2060], rdi
mov edi, ebp
jb 0x14003f5fd
mov rsi, qword [rsi]
xor r9d, r9d
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
mov rcx, rsi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp qword [rbx + 0x18], 8
mov rsi, rax
jb 0x14003f634
mov rbx, qword [rbx]
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 0x200080
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14003f680
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x14003f6ea
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbp
mov r8d, 0x1000
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003f6c1
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x44]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x14003f6c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp dword [rsp + 0x40], 0x1000
je 0x14003f680
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
sete al
mov rbp, qword [rsp + 0x2090]
mov rdi, qword [rsp + 0x2060]
mov rcx, qword [rsp + 0x2050]
xor rcx, rsp
call fcn.14007bb60
add rsp, 0x2068
pop rsi
pop rbx
ret
Function at 0x14004a990
Capabilities:
Hash data using murmur3

Disassembly:
push rsi
push r14
push r15
sub rsp, 0x40
cmp dword [rcx], 0
lea r14, [rcx + 0x10]
mov r15, rdx
lea rsi, [rcx + 8]
jne 0x14004ab29
mov rcx, qword [r14]
sub rcx, qword [rsi]
sar rcx, 4
cmp rcx, 2
jle 0x14004ab29
movups xmm0, xmmword [rdx]
mov qword [rsp + 0x60], rbx
mov rdx, rcx
shr rdx, 1
mov ebx, 1
add rdx, rcx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rdi
movups xmmword [rsp + 0x28], xmm0
cmp rbx, rdx
jae 0x14004a9f8
nop dword [rax]
add rbx, rbx
cmp rbx, rdx
jb 0x14004a9f0
lea rbp, [rbx*8]
mov rcx, r15
mov rdx, rbp
call fcn.140049730
mov rdi, rax
test rax, rax
jne 0x14004aa55
mov rcx, qword [r15]
mov rdi, qword [rsp + 0x28]
cmp rcx, rdi
je 0x14004aa30
mov rbx, qword [rcx]
call fcn.140082770
mov rcx, rbx
cmp rbx, rdi
jne 0x14004aa20
mov rax, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov qword [r15], rdi
mov rdi, qword [rsp + 0x70]
mov qword [r15 + 8], rax
add rsp, 0x40
pop r15
pop r14
pop rsi
ret
mov r8, rbp
xor edx, edx
mov rcx, rdi
call fcn.14007e870
mov rsi, qword [rsi]
mov r11, rsi
cmp rsi, qword [r14]
je 0x14004ab00
mov rax, qword [r11 + 8]
test rax, rax
je 0x14004aa7f
xor r8d, r8d
jmp 0x14004aa82
mov r8, qword [r11]
test rax, rax
cmovne r8, rax
test r8, r8
je 0x14004aaf3
mov eax, r8d
lea r10, [rbx - 1]
shr eax, 0x10
xor eax, r8d
imul ecx, eax, 0x85ebca6b
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul eax, eax, 0xc2b2ae35
mov ecx, eax
shr rax, 0x10
xor rax, rcx
and rax, r10
xor ecx, ecx
nop dword [rax]
mov rdx, qword [rdi + rax*8]
lea r9, [rdi + rax*8]
test rdx, rdx
je 0x14004aae5
cmp rdx, r8
je 0x14004aaf3
inc rax
add rax, rcx
inc rcx
and rax, r10
cmp rcx, r10
jbe 0x14004aac0
jmp 0x14004aaf3
mov qword [r9], r8
movups xmm0, xmmword [r11]
movups xmmword [rsi], xmm0
add rsi, 0x10
add r11, 0x10
cmp r11, qword [r14]
jne 0x14004aa71
mov rdi, qword [rsp + 0x28]
mov qword [r14], rsi
mov rcx, qword [r15]
cmp rcx, rdi
je 0x14004aa30
mov rbx, qword [rcx]
call fcn.140082770
mov rcx, rbx
cmp rbx, rdi
jne 0x14004ab14
jmp 0x14004aa30
mov r11, qword [r14]
mov rcx, qword [rsi]
mov rdx, r11
sub rdx, rcx
mov rax, rdx
and rax, 0xfffffffffffffff0
cmp rax, 0x10
jle 0x14004ab70
mov r10, qword [rcx]
mov r9, qword [rcx + 0x10]
cmp r10, r9
jne 0x14004ab58
mov rax, qword [rcx + 0x18]
cmp qword [rcx + 8], rax
je 0x14004ab70
sub rdx, 0x10
add rcx, 0x10
mov rax, rdx
mov r10, r9
and rax, 0xfffffffffffffff0
cmp rax, 0x10
jg 0x14004ab45
cmp rcx, r11
je 0x14004abb6
mov rdx, rcx
add rcx, 0x10
cmp rcx, r11
je 0x14004abb2
mov rax, qword [rdx]
cmp qword [rcx], rax
jne 0x14004ab9c
mov rax, qword [rdx + 8]
cmp qword [rcx + 8], rax
jne 0x14004ab9c
add rcx, 0x10
mov rax, rcx
jmp 0x14004abad
movups xmm0, xmmword [rcx]
add rdx, 0x10
lea rax, [rcx + 0x10]
mov rcx, rax
movups xmmword [rdx], xmm0
cmp rax, r11
jne 0x14004ab81
lea rcx, [rdx + 0x10]
mov qword [r14], rcx
add rsp, 0x40
pop r15
pop r14
pop rsi
ret
Function at 0x1400509a0
Capabilities:
Encode data using xor

Disassembly:
movzx eax, word [rdx]
xor r8d, r8d
mov r11, rdx
mov r10, rcx
mov r9, rdx
test ax, ax
je 0x1400509d7
movzx eax, ax
lea r9, [r9 + 2]
add eax, r8d
imul r8d, eax, 0x401
mov eax, r8d
shr eax, 6
xor r8d, eax
movzx eax, word [r9]
test ax, ax
jne 0x1400509b4
lea eax, [r8 + r8*8]
mov ecx, eax
shr rax, 0xb
xor rax, rcx
and eax, 0x3f
mov r8, qword [r10 + rax*8]
test r8, r8
je 0x140050a42
mov ecx, dword [r8]
sub ecx, 1
je 0x140050a17
sub ecx, 1
je 0x140050a11
sub ecx, 1
je 0x140050a11
cmp ecx, 1
je 0x140050a0b
xor eax, eax
jmp 0x140050a1b
lea rax, [r8 + 0x12]
jmp 0x140050a1b
lea rax, [r8 + 0x18]
jmp 0x140050a1b
lea rax, [r8 + 0x38]
mov r9, r11
sub r9, rax
movzx edx, word [rax]
movzx ecx, word [rax + r9]
sub edx, ecx
jne 0x140050a35
add rax, 2
test ecx, ecx
jne 0x140050a21
test edx, edx
je 0x140050a45
mov r8, qword [r8 + 8]
test r8, r8
jne 0x1400509f0
xor eax, eax
ret
mov rax, r8
ret
Function at 0x140058420
Capabilities:
Set http header

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1401c1050]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rdi, r8
mov rbx, rcx
xor esi, esi
mov rcx, qword [rdx + 0x10]
movabs rax, 0x7ffffffffffffffe
sub rax, rcx
cmp rax, 1
jb 0x14005859a
cmp qword [rdx + 0x18], 8
jb 0x14005846a
mov rdx, qword [rdx]
mov qword [rsp + 0x30], 1
lea rax, [0x14018c2dc]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov r9, rdx
lea rcx, [rsp + 0x48]
call fcn.1400072d0
nop
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.140006510
mov qword [rsp + 0x68], rsi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x78], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14005850f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005850a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400585a0
call fcn.14007c190
lea rdx, [rsp + 0x68]
cmp qword [rsp + 0x80], 8
cmovae rdx, qword [rsp + 0x68]
mov r9d, 0xa0000000
mov r8d, 0xffffffff
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov rdx, qword [rsp + 0x80]
cmp rdx, 8
jb 0x140058579
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140058574
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140058594
call fcn.14007c190
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14007bb60
add rsp, 0x90
pop rdi
pop rsi
pop rbx
ret
call fcn.140082b90
int3
call fcn.140002490
int3
call fcn.140082b90
int3
Function at 0x1400624d0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140062554
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14016c680]
cmp byte [rcx + rax], 0
je 0x140062554
dec r8
sub rdx, 1
jne 0x14006253a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14007cc90
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14007ccda
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14007ccda
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14007ccda
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14007ccda
cmp dword [rcx + 0x84], 0xe
jbe 0x14007ccda
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14007ccdc
xor al, al
add rsp, 0x28
ret
Function at 0x140092680
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.14007ca20
sub rsp, rax
mov rax, qword [0x1401c1050]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14009d40c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400926cf
mov rax, rbp
jmp 0x1400927d7
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 + 0x1cc9c0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400a134c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x1cc9c0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400927d3
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 0x1400927d3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400a134c
test rax, rax
js 0x1400927d3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400927d3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400927c5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400927c5
cmp byte [rcx], 0xd
jne 0x1400927ab
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400927ba
cmp byte [rcx + 1], 0xa
jne 0x1400927ba
inc rcx
jmp 0x1400927ba
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1c1620]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14009278d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400927d7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14007bb60
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 0x1400a03d8
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, [0x1401cc9c0]
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 0x1400a042f
cmp word [rdx], r13w
jne 0x1400a042f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400a0434
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400a0559
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400a057a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400a046d
mov rdx, r9
mov word [rbx], cx
jmp 0x1400a0494
cmp r9, r8
jae 0x1400a04a4
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 0x1400a044e
jmp 0x1400a0559
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 0x1400a054e
cmp dword [rsp + 0x80], esi
je 0x1400a054e
lea r8, [0x1401cc9c0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400a0526
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400a04f6
mov word [rbx], r13w
jmp 0x1400a0556
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 0x1400a0503
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400a0556
cmp word [rsp + 0x70], r13w
jne 0x1400a0533
cmp rbx, r14
je 0x1400a04f0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400a1354
cmp word [rsp + 0x70], r13w
je 0x1400a0559
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, [0x1401cc9c0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400a0553
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400a0559
Function at 0x1400a39d8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400a39ee
mov al, 1
jmp 0x1400a3a4e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400a39ff
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400a3a4c
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400a6f84
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400a3a4c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400a3a4c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400a3a4c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400a3a4e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400a5f78
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 0x1400a5fa8
xor eax, eax
jmp 0x1400a606b
mov rbp, rbx
cmp word [rax], si
je 0x1400a5fcd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400a5fb4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400a5fb0
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.14009fb54
movsxd r14, eax
test eax, eax
jne 0x1400a600b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400a5fa1
mov rcx, r14
call fcn.14009ab84
mov rdi, rax
test rax, rax
jne 0x1400a6024
xor ecx, ecx
call fcn.14009a460
jmp 0x1400a6000
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.14009fb54
test eax, eax
jne 0x1400a6055
mov rcx, rdi
call fcn.14009a460
jmp 0x1400a605f
xor ecx, ecx
call fcn.14009a460
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 0x1400a6088
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 0x1400a610f
mov rsi, rbx
cmp word [rax], bp
je 0x1400a60ce
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400a60b8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400a60b4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14009ab84
mov rdi, rax
test rax, rax
je 0x1400a60fc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14007e1c0
mov rbp, rdi
xor ecx, ecx
call fcn.14009a460
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 0x1400a9518
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.14009a820
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 0x1400a95b9
cmp ebx, dword [rsp + 0x30]
je 0x1400a95b2
test esi, esi
je 0x1400a95b2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400a958d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400a959a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400a9577
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400a959e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400a95bb
mov eax, 1
jmp 0x1400a95bb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400ac1e0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140084e0c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400ac26a
cmp byte [rbp - 0x21], r15b
je 0x1400ac265
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400ac2a0
call fcn.14009b188
test eax, eax
jne 0x1400ac28c
cmp byte [rbp - 0x21], r15b
je 0x1400ac284
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400ac2a0
cmp byte [rbp - 0x21], r15b
je 0x1400ac29d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14008f7fc
test eax, eax
jne 0x1400ac340
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140084e0c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400ac2df
cmp byte [rbp - 0x21], r15b
je 0x1400ac314
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400ac314
call fcn.14009b188
test eax, eax
jne 0x1400ac300
cmp byte [rbp - 0x21], r15b
je 0x1400ac2f9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400ac314
cmp byte [rbp - 0x21], r15b
je 0x1400ac311
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14008f7fc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400ac340
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400ac343
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400ac351
mov rcx, rdi
call fcn.14009a460
cmp byte [rbp + 0x3f], r15b
je 0x1400ac360
mov rcx, qword [rbp + 0x27]
call fcn.14009a460
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400ac648
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.1400a1354
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400a1354
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400ac798
cmp rax, 0xffffffffffffffff
je 0x1400ac798
xor edi, edi
test rbp, rbp
jle 0x1400ac743
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14009abe4
mov rbx, rax
test rax, rax
jne 0x1400ac6d0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400ac739
mov edx, 0x8000
mov ecx, r14d
call fcn.1400989b4
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.1400a35d8
cmp eax, 0xffffffff
je 0x1400ac719
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400ac6e0
mov edx, r15d
mov ecx, r14d
call fcn.1400989b4
jmp 0x1400ac739
cmp byte [rsi + 0x38], dil
je 0x1400ac730
cmp dword [rsi + 0x34], 5
jne 0x1400ac730
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400ac739
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14009a460
jmp 0x1400ac7ac
jns 0x1400ac7ac
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400a1354
cmp rax, 0xffffffffffffffff
jne 0x1400ac764
cmp byte [rsi + 0x30], dil
je 0x1400ac7ac
mov edi, dword [rsi + 0x2c]
jmp 0x1400ac7ac
mov ecx, r14d
call fcn.1400a6f84
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400ac7ac
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 0x1400ac7ac
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400ac7a5
mov eax, dword [rsi + 0x2c]
jmp 0x1400ac7aa
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400a1354
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