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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rdi, rcx
lea r8, [0x140077828]
lea rcx, [rbp - 0x48]
call fcn.14003678c
mov r15b, byte [rax + 8]
mov r14, qword [rax]
mov byte [rax + 8], 0
mov qword [rbp - 0x28], r14
mov byte [rbp - 0x20], r15b
cmp byte [rbp - 0x40], 0
je 0x1400372e1
mov byte [rbp - 0x40], 0
mov rcx, qword [rbp - 0x48]
call fcn.14006b94c
nop
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
and qword [rbp - 8], 0
lea r8, [rbp + 0x30]
mov edx, 0x100001
lea rcx, [rbp - 0x18]
call fcn.14000a538
mov r9, r14
mov edx, 1
mov r8d, 0x100000
mov rbx, qword [rbp - 0x18]
mov rcx, rbx
call fcn.14004b22c
mov rsi, rax
cmp rax, 0x100000
ja 0x140037400
mov rcx, r14
call fcn.140056534
test eax, eax
jne 0x14003741f
mov rcx, r14
call fcn.140056508
test eax, eax
je 0x14003743e
add rsi, rbx
mov rdx, rsi
mov rcx, rbx
call fcn.140036ab0
cmp rax, rsi
jne 0x14003745d
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
and qword [rdi + 0x10], 0
and qword [rdi + 0x18], 0
cmp rbx, rsi
jne 0x140037387
and qword [rdi + 0x10], 0
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
jmp 0x140037399
sub rsi, rbx
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call fcn.14000294c
nop
test rbx, rbx
je 0x1400373cf
mov rdx, qword [rbp - 8]
sub rdx, rbx
mov rax, rbx
cmp rdx, 0x1000
jb 0x1400373c6
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400373fa
mov rcx, rbx
call fcn.1400400ec
nop
test r15b, r15b
je 0x1400373dd
mov rcx, r14
call fcn.14006b94c
nop
mov rax, rdi
lea r11, [rsp + 0x70]
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
call fcn.140046b70
nop
mov edx, MsiSourceListClearAllA
lea rcx, [rbp - 0x48]
call fcn.14002818c
lea rdx, [0x140096188]
lea rcx, [rbp - 0x48]
call fcn.140041f40
int3
mov edx, 0x133
lea rcx, [rbp - 0x48]
call fcn.14002818c
lea rdx, [0x140096188]
lea rcx, [rbp - 0x48]
call fcn.140041f40
int3
mov edx, 0x13b
lea rcx, [rbp - 0x48]
call fcn.14002818c
lea rdx, [0x140096188]
lea rcx, [rbp - 0x48]
call fcn.140041f40
int3
mov edx, 0x13a
lea rcx, [rbp - 0x48]
call fcn.14002818c
lea rdx, [0x140096188]
lea rcx, [rbp - 0x48]
call fcn.140041f40
int3
Function at 0x140037fb8
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x2a0
mov rax, qword [0x1400981a8]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x2c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edx, eax
xor ecx, ecx
mov r8d, MsiSourceListClearAllA
call fcn.14002c384
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
lea rcx, [rsp + 0x80]
call fcn.14004c074
mov r8, rax
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x40]
call fcn.14000e2dc
nop
mov r8, qword [str._x_a_]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.1400232bc
nop
mov rdx, rax
mov rcx, rbx
call fcn.1400359d4
nop
lea rcx, [rsp + 0x60]
call fcn.140003c7c
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x1400380a9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400380a4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400380c5
call fcn.1400400ec
mov rax, rbx
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140040450
add rsp, 0x2a0
pop rbx
ret
call fcn.140046b70
int3

Function at 0x14003bbfc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
test rbx, rbx
jle 0x14003bc7e
and dword [rsp + 0x48], 0
cmp rsi, 0xffffffffffffffff
je 0x14003bc6f
mov r8d, 0x7fffffff
lea r9, [rsp + 0x48]
cmp rbx, r8
mov rdx, rdi
mov rcx, rsi
cmovl r8d, ebx
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14003bc59
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x14003bc79
jmp 0x14003bc6f
movsxd rax, dword [rsp + 0x48]
test eax, eax
jle 0x14003bc6a
add rdi, rax
sub rbx, rax
jmp 0x14003bc14
cmp eax, 0xffffffff
jne 0x14003bc79
call fcn.14004c44c
cmp dword [rax], 4
je 0x14003bc14
or eax, 0xffffffff
jmp 0x14003bc80
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140040d7c
Capabilities:
Parse pe header

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

Function at 0x140052c74
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x1400981a8]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1400802a8]
mov rbp, rcx
call fcn.14006038c
xor edi, edi
test rax, rax
je 0x140052d5a
mov ebx, edi
call fcn.14004c44c
mov r14d, dword [rax]
call fcn.14004c44c
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.1400602d8
mov rsi, rax
test rax, rax
je 0x140052ceb
call fcn.14004c44c
mov dword [rax], r14d
jmp 0x140052d15
call fcn.14004c44c
cmp dword [rax], 0x22
jne 0x140052d52
call fcn.14004c44c
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1400602d8
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x140052d52
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140052d19
cmp rax, 3
je 0x140052d34
mov rcx, rsi
call fcn.140052bd0
test al, al
je 0x140052d45
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140052d45
mov dil, 1
mov rcx, rbx
call fcn.140046ca8
mov al, dil
jmp 0x140052d5c
mov rcx, rbx
call fcn.140046ca8
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140040450
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140052f78
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.14005fd00
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14005fd00
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400530c8
cmp rax, 0xffffffffffffffff
je 0x1400530c8
xor edi, edi
test rbp, rbp
jle 0x140053073
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14005c1b0
mov rbx, rax
test rax, rax
jne 0x140053000
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140053069
mov edx, 0x8000
mov ecx, r14d
call fcn.140058a44
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.140053f58
cmp eax, 0xffffffff
je 0x140053049
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140053010
mov edx, r15d
mov ecx, r14d
call fcn.140058a44
jmp 0x140053069
cmp byte [rsi + 0x38], dil
je 0x140053060
cmp dword [rsi + 0x34], 5
jne 0x140053060
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140053069
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14005b514
jmp 0x1400530dc
jns 0x1400530dc
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14005fd00
cmp rax, 0xffffffffffffffff
jne 0x140053094
cmp byte [rsi + 0x30], dil
je 0x1400530dc
mov edi, dword [rsi + 0x2c]
jmp 0x1400530dc
mov ecx, r14d
call fcn.140055dc8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400530dc
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 0x1400530dc
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400530d5
mov eax, dword [rsi + 0x2c]
jmp 0x1400530da
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14005fd00
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 0x140055844
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400981a8]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14005588e
call fcn.14004c42c
mov dword [rax], 0xf
call fcn.14004c44c
mov dword [rax], 0xd
call fcn.140046b50
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140040450
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x140055899
lea eax, [rbx + 1]
jmp 0x14005587b
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x140055879
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14005587b

Function at 0x14005ebd8
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.140040740
sub rsp, rax
mov rax, qword [0x1400981a8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14005d484
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14005ec27
mov rax, rbp
jmp 0x14005ed2f
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 + 0x9c040]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14005fcf8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x9c040]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14005ed2b
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 0x14005ed2b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14005fcf8
test rax, rax
js 0x14005ed2b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14005ed2b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14005ed1d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14005ed1d
cmp byte [rcx], 0xd
jne 0x14005ed03
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14005ed12
cmp byte [rcx + 1], 0xa
jne 0x14005ed12
inc rcx
jmp 0x14005ed12
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x985c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14005ece5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14005ed2f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140040450
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 0x14005ef50
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14005ef66
mov al, 1
jmp 0x14005efc6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14005ef77
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14005efc4
mov ecx, dword [rcx + 0x18]
nop
call fcn.140055dc8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14005efc4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14005efc4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14005efc4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14005efc6
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14005f098
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, [0x14009c040]
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 0x14005f0ef
cmp word [rdx], r13w
jne 0x14005f0ef
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14005f0f4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14005f219
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14005f23a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14005f12d
mov rdx, r9
mov word [rbx], cx
jmp 0x14005f154
cmp r9, r8
jae 0x14005f164
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 0x14005f10e
jmp 0x14005f219
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 0x14005f20e
cmp dword [rsp + 0x80], esi
je 0x14005f20e
lea r8, [0x14009c040]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14005f1e6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14005f1b6
mov word [rbx], r13w
jmp 0x14005f216
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 0x14005f1c3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14005f216
cmp word [rsp + 0x70], r13w
jne 0x14005f1f3
cmp rbx, r14
je 0x14005f1b0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14005fd00
cmp word [rsp + 0x70], r13w
je 0x14005f219
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, [0x14009c040]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14005f213
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14005f219
Function at 0x140064c48
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 0x140064c78
xor eax, eax
jmp 0x140064d3b
mov rbp, rbx
cmp word [rax], si
je 0x140064c9d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140064c84
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140064c80
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.1400608a8
movsxd r14, eax
test eax, eax
jne 0x140064cdb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140064c71
mov rcx, r14
call fcn.14005c228
mov rdi, rax
test rax, rax
jne 0x140064cf4
xor ecx, ecx
call fcn.14005b514
jmp 0x140064cd0
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.1400608a8
test eax, eax
jne 0x140064d25
mov rcx, rdi
call fcn.14005b514
jmp 0x140064d2f
xor ecx, ecx
call fcn.14005b514
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 0x140064d58
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 0x140064ddf
mov rsi, rbx
cmp word [rax], bp
je 0x140064d9e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140064d88
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140064d84
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14005c228
mov rdi, rax
test rax, rax
je 0x140064dcc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140041450
mov rbp, rdi
xor ecx, ecx
call fcn.14005b514
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 0x140067800
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.14005b1b4
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 0x1400678a1
cmp ebx, dword [rsp + 0x30]
je 0x14006789a
test esi, esi
je 0x14006789a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140067875
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140067882
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14006785f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140067886
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400678a3
mov eax, 1
jmp 0x1400678a3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140001e60
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x280
mov rax, qword [0x14015a040]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1a
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
test eax, eax
js 0x140001f16
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140001ec1
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.14000c2e0
nop
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
lea r8, [rdx + rcx*2]
lea rdx, [rsp + 0x40]
cmova rdx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.14000b950
nop
lea rcx, [rsp + 0x40]
call fcn.14000b600
jmp 0x140001f3b
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
xor r8d, r8d
lea rdx, [0x140134052]
mov rcx, rbx
call fcn.14000c790
mov rax, rbx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140112f50
add rsp, 0x280
pop rbx
ret

Function at 0x140004a80
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140435314]
mov edx, ecx
test ecx, ecx
je 0x140004acb
sub edx, 1
je 0x140004aab
cmp edx, 1
jne 0x140004af3
mov byte [0x140435320], dl
mov byte [0x1404361c0], dl
add rsp, 0x28
ret
mov ecx, dword [0x140435310]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, dword [0x140435314]
test ax, ax
setne al
mov byte [0x140435320], al
jmp 0x140004afa
mov ecx, dword [0x140435310]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, dword [0x140435314]
test al, 1
je 0x140004af3
cmp byte [0x140435320], 0
sete al
mov byte [0x140435320], al
jmp 0x140004afa
movzx eax, byte [0x140435320]
test ecx, ecx
jne 0x140004b1a
test al, al
je 0x140004b36
cmp byte [0x1404361c0], cl
mov byte [0x140435320], cl
sete byte [0x1404361c0]
add rsp, 0x28
ret
cmp ecx, 1
jne 0x140004b2a
mov byte [0x1404361c0], al
add rsp, 0x28
ret
cmp ecx, 2
jne 0x140004b36
mov byte [0x1404361c0], 1
add rsp, 0x28
ret

Function at 0x14000f2d0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14000f32d
lea rbx, [0x140135070]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x14000f314
cmp r10, 2
jb 0x14000f314
cmp byte [r9], r8b
jne 0x14000f314
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x14000f2f0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000f36f
lea rbx, [0x140135070]
cmp r8b, 0x23
jne 0x14000f353
cmp byte [r9], r8b
jne 0x14000f353
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x14000f340
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x14000f4b0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x14000f4ca
mov qword [r8], 0
lea rdx, [0x14013ba60]
call fcn.14000f380
mov rbx, rax
test rax, rax
jne 0x14000f4ea
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x14000f5c3
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000f5c3
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14000f5c3
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000f5c3
cmp rdi, 0xffffffffffffffff
je 0x14000f5c3
mov rax, qword [0x140436228]
test rax, rax
je 0x14000f560
inc dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x14000f5c3
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x14000f5b0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140436228]
test rax, rax
je 0x14000f5a5
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000f5cc
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14000f5be
mov qword [r14], rdi
mov rax, rsi
jmp 0x14000f5ce
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret