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

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x140121038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edi, 0xffffffff
cmp r8, rdi
cmovae r8, rdi
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140050c10
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x140050c19
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140084b80
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x140050bf9
int3
mov rcx, qword [rcx + 8]
jmp 0x140050bb0

Function at 0x140053570
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r8
mov rsi, rdx
mov ebx, ecx
mov rax, qword [0x140121038]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x140053540]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x140136b68]
lea rdx, [0x1400533e0]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140053668
cmp dword [0x140136b70], 0
jne 0x140053675
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x140136b74]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x14005361c
mov ecx, 1
mov edx, 0x28
call fcn.140068b10
test rax, rax
je 0x140053675
mov r14, rax
mov ecx, dword [0x140136b74]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14005366d
lea r15, [0x140136b78]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x140136b80]
mov qword [rax + rbx*8], rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [r14 + rbx*8], rsi
mov esi, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140084b80
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14009c460
mov rcx, r14
call fcn.140068a70
mov rcx, rsi
mov rax, rdi
call qword [0x140114788]
xor esi, esi
jmp 0x14005364c

Function at 0x140054140
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x140136bb8], 0
jne 0x14005417d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140054170
mov dword [rdi], eax
mov dword [0x140136bc0], eax
mov qword [0x140136bb8], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3
Function at 0x140054e70
Capabilities:
Reference processor manufacturer constants

Disassembly:
push rsi
push rdi
mov r8, rcx
xor edi, edi
xor eax, eax
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
test eax, eax
jle 0x140054f91
mov r10d, eax
xor ecx, ecx
mov eax, 1
xchg rbx, r9
cpuid
xchg rbx, r9
mov r9d, ecx
mov r11d, edx
mov esi, eax
cmp r10d, 7
jb 0x140054fcd
mov eax, 7
xor ecx, ecx
xchg rbx, rdi
cpuid
xchg rbx, rdi
mov r10d, ecx
and edi, 0x20
shr edi, 5
shr r10b, 4
and r10b, 1
mov dword [r8], esi
mov eax, esi
and eax, 0xf
mov dword [r8 + 8], eax
shr esi, 0xc
and esi, 3
mov dword [r8 + 4], esi
mov eax, r11d
shr eax, 0x17
and al, 1
mov byte [r8 + 0xc], al
mov eax, r11d
shr eax, 0x19
and al, 1
mov byte [r8 + 0xd], al
shr r11d, 0x1a
and r11b, 1
mov byte [r8 + 0xe], r11b
mov eax, r9d
and al, 1
mov byte [r8 + 0xf], al
mov eax, r9d
shr eax, 9
and al, 1
mov byte [r8 + 0x10], al
mov eax, r9d
shr eax, 0x13
and al, 1
mov byte [r8 + 0x11], al
mov eax, r9d
shr eax, 0x14
and al, 1
mov byte [r8 + 0x12], al
mov eax, r9d
shr eax, 0x17
and al, 1
mov byte [r8 + 0x13], al
mov eax, r9d
shr eax, 0x1f
mov byte [r8 + 0x1a], al
mov eax, r9d
not eax
test eax, 0x1c000000
jne 0x140054fd5
xor ecx, ecx
xgetbv
not eax
test al, 6
sete al
mov byte [r8 + 0x14], al
mov ecx, r9d
shr ecx, 0x19
and cl, 1
mov byte [r8 + 0x17], cl
shr r9d, 0xc
and r9b, 1
mov byte [r8 + 0x15], r9b
test al, al
setne al
and al, dil
mov byte [r8 + 0x16], al
mov byte [r8 + 0x18], r10b
xor ecx, ecx
mov eax, 0x80000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp eax, 0x80000006
jle 0x140054fc7
xor ecx, ecx
mov eax, 0x80000007
xchg rbx, r9
cpuid
xchg rbx, r9
shr edx, 8
and dl, 1
mov byte [r8 + 0x19], dl
test dl, dl
je 0x140054fd9
pop rdi
pop rsi
ret
mov dl, byte [r8 + 0x19]
jmp 0x140054fc0
xor r10d, r10d
jmp 0x140054ecf
xor eax, eax
jmp 0x140054f64
cmp byte [r8 + 0x1a], 0
je 0x140054fc4
xor ecx, ecx
mov eax, 0x40000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp r9d, 0x7263694d
jne 0x140054fc4
cmp ecx, 0x666f736f
jne 0x140054fc4
cmp edx, 0x76482074
jne 0x140054fc4
mov byte [r8 + 0x19], 1
jmp 0x140054fc4
Function at 0x14005faa0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
xor eax, eax
test r8d, r8d
sete al
xor r8d, r8d
test edx, edx
sete r8b
xor ecx, ecx
mov edx, r8d
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x14005fb3a
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14005fb24
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14005fb01
mov qword [rsi], rdi
call fcn.140069450
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 0
inc rax
cmp rax, 1
jbe 0x14005fb3e
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140069450
mov rcx, qword [rsi]
call fcn.14006ac90
mov qword [rsi], 0
jmp 0x14005faef
mov byte [rsi + 8], 0
int3
Function at 0x14006acc0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140121038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1401336a0]
mov ecx, dword [0x14012fdc0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14006ad20
mov rsi, qword [0x140133698]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140084b80
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1401336a0]
call fcn.1400837b0
cmp dword [0x1401336a0], 0xffffffff
jne 0x14006acfc
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140086cd0
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.140083658
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1401336e8]
mov ecx, dword [0x14012fdc0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14006ade0
lea r8, [0x1401336b8]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140038bd0
mov qword [0x140133698], rsi
lea rcx, [0x1401336a0]
call fcn.140083848
jmp 0x14006acfc
lea rcx, [0x1401336e8]
call fcn.1400837b0
cmp dword [0x1401336e8], 0xffffffff
jne 0x14006adb1
xorps xmm0, xmm0
movups xmmword [0x1401336d8], xmm0
movups xmmword [0x1401336c8], xmm0
movups xmmword [0x1401336b8], xmm0
lea rcx, [0x1401336b8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401336e8]
call fcn.140083848
jmp 0x14006adb1

Function at 0x14006bc10
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.14006bad0
mov qword [rsi], 0
test rax, rax
je 0x14006bc63
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14006bc97
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14006bc5b
mov qword [rsi], rbx
call fcn.140069450
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 8]
lea rdx, [rdi + 8]
call fcn.1400655f0
lea rcx, [rsi + 0x20]
call fcn.14007b730
mov eax, dword [rdi + 0x24]
mov dword [rsi + 0x24], eax
mov al, byte [rdi + 0x28]
mov byte [rsi + 0x28], al
mov al, byte [rdi + 0x29]
mov byte [rsi + 0x29], al
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
call fcn.140069450
mov rcx, qword [rsi]
call fcn.14006ac90
mov qword [rsi], 0
jmp 0x14006bc49
Function at 0x14007ecd0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
mov rcx, qword [rdx + 8]
test rcx, rcx
js 0x14007ed0c
je 0x14007ed0b
mov rdx, qword [rdx]
xor r8d, r8d
lea r9, [0x14010d490]
nop word [rax + rax]
movzx r10d, byte [rdx + r8]
movzx r11d, al
xor r11d, r10d
shr eax, 8
xor eax, dword [r9 + r11*4]
inc r8
cmp rcx, r8
jne 0x14007ecf0
ret
int3
Function at 0x140080740
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x140121038]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x140053540]
mov qword [rsp + 0x20], rax
lea rcx, [0x140136b68]
lea rdx, [0x1400533e0]
lea r8, [rsp + 0x20]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1400807d4
cmp dword [0x140136b70], 0
jne 0x1400807d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x140136b74]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x1400807d0
movsxd rax, esi
mov rsi, qword [rdi + rax*8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140084b80
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x1400807b8
call fcn.14009c460
int3

Function at 0x140083e84
Capabilities:
Parse pe header

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

Function at 0x1400843a0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x140084418
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140084418
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x140084418
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x14008440c
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x14008442a
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x1400843fa
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x14008441a
Function at 0x140097148
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14009717f
call fcn.14009a1a4
mov dword [rax], 0x16
call fcn.14009c508
xor eax, eax
jmp 0x14009720d
mov rdx, r9
mov rcx, r8
call fcn.140097230
mov rbx, rax
test rax, rax
je 0x14009720a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400972a0]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400971f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14009a1e4
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400971de
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400971ed
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140068a70
jmp 0x14009720a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140097207
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14009a508
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 [0x140121038]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1400f1a38]
mov rbp, rcx
call fcn.1400ac3bc
xor edi, edi
test rax, rax
je 0x14009a5ee
mov ebx, edi
call fcn.14009a1a4
mov r14d, dword [rax]
call fcn.14009a1a4
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.14009edd0
mov rsi, rax
test rax, rax
je 0x14009a57f
call fcn.14009a1a4
mov dword [rax], r14d
jmp 0x14009a5a9
call fcn.14009a1a4
cmp dword [rax], 0x22
jne 0x14009a5e6
call fcn.14009a1a4
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.14009edd0
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14009a5e6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x14009a5ad
cmp rax, 3
je 0x14009a5c8
mov rcx, rsi
call fcn.14009a464
test al, al
je 0x14009a5d9
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14009a5d9
mov dil, 1
mov rcx, rbx
call fcn.140068a70
mov al, dil
jmp 0x14009a5f0
mov rcx, rbx
call fcn.140068a70
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140084b80
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 0x1400a3b20
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400a3b48
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400a3b48
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1400adb78
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.1400a76c4
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 0x1400adc19
cmp ebx, dword [rsp + 0x30]
je 0x1400adc12
test esi, esi
je 0x1400adc12
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400adbed
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400adbfa
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400adbd7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400adbfe
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400adc1b
mov eax, 1
jmp 0x1400adc1b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400aec3c
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 0x1400aec6c
xor eax, eax
jmp 0x1400aed2f
mov rbp, rbx
cmp word [rax], si
je 0x1400aec91
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400aec78
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400aec74
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.1400aeb5c
movsxd r14, eax
test eax, eax
jne 0x1400aeccf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400aec65
mov rcx, r14
call fcn.140035550
mov rdi, rax
test rax, rax
jne 0x1400aece8
xor ecx, ecx
call fcn.140068a70
jmp 0x1400aecc4
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.1400aeb5c
test eax, eax
jne 0x1400aed19
mov rcx, rdi
call fcn.140068a70
jmp 0x1400aed23
xor ecx, ecx
call fcn.140068a70
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 0x1400aed4c
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 0x1400aedd3
mov rsi, rbx
cmp word [rax], bp
je 0x1400aed92
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400aed7c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400aed78
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140035550
mov rdi, rax
test rax, rax
je 0x1400aedc0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140086620
mov rbp, rdi
xor ecx, ecx
call fcn.140068a70
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 0x1400b204c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140121038]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400b2096
call fcn.14009a1c4
mov dword [rax], 0xf
call fcn.14009a1a4
mov dword [rax], 0xd
call fcn.14009c508
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140084b80
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400b20a1
lea eax, [rbx + 1]
jmp 0x1400b2083
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 0x1400b2081
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400b2083

Function at 0x1400b266c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400b2682
mov al, 1
jmp 0x1400b26e2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400b2693
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400b26e0
mov ecx, dword [rcx + 0x18]
nop
call fcn.14009aa3c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400b26e0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400b26e0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400b26e0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400b26e2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400b6138
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.1400919b4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400b61c2
cmp byte [rbp - 0x21], r15b
je 0x1400b61bd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400b61f8
call fcn.1400a7e94
test eax, eax
jne 0x1400b61e4
cmp byte [rbp - 0x21], r15b
je 0x1400b61dc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400b61f8
cmp byte [rbp - 0x21], r15b
je 0x1400b61f5
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.140096fcc
test eax, eax
jne 0x1400b6298
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400919b4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400b6237
cmp byte [rbp - 0x21], r15b
je 0x1400b626c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400b626c
call fcn.1400a7e94
test eax, eax
jne 0x1400b6258
cmp byte [rbp - 0x21], r15b
je 0x1400b6251
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400b626c
cmp byte [rbp - 0x21], r15b
je 0x1400b6269
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.140096fcc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400b6298
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400b629b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400b62a9
mov rcx, rdi
call fcn.140068a70
cmp byte [rbp + 0x3f], r15b
je 0x1400b62b8
mov rcx, qword [rbp + 0x27]
call fcn.140068a70
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 0x1400d2e20
Capabilities:
Identify system language via api

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x278
mov qword [rsp + 0x48], r8
mov rbx, rdx
mov rdi, rcx
mov rax, qword [0x140121038]
xor rax, rsp
mov qword [rsp + 0x270], rax
movzx ebp, word [rcx + 0x28]
movzx esi, word [rcx + 0x2a]
mov r15, qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call r15
mov r14d, eax
movzx r13d, word [rdi + 0x2a]
movzx r12d, word [rdi + 0x28]
call r15
mov word [rsp + 0x46], ax
lea r15, [rsp + 0x60]
mov r8d, 0x208
mov rcx, r15
mov dl, 0xaa
call fcn.140086cd0
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], ebp
lea r9, str.StringFileInfo_04x_04x_ls
mov edx, 0x104
mov r8d, 0x104
mov rcx, r15
call fcn.14002a110
lea r8, [rsp + 0x58]
mov qword [r8], 0
lea r9, [rsp + 0x54]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rdi + 0x20]
mov rdx, r15
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1400d2f25
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x1400d2f25
mov r8d, dword [rsp + 0x54]
test r8d, r8d
je 0x1400d2f25
dec r8d
mov rcx, qword [rsp + 0x48]
call fcn.140061300
mov sil, 1
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140084b80
mov eax, esi
add rsp, 0x278
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r15, [rsp + 0x60]
mov r8d, 0x208
mov rcx, r15
mov dl, 0xaa
call fcn.140086cd0
movzx eax, r14w
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], eax
lea r9, str.StringFileInfo_04x_04x_ls
mov edx, 0x104
mov r8d, 0x104
mov rcx, r15
call fcn.14002a110
lea r8, [rsp + 0x58]
mov qword [r8], 0
lea r9, [rsp + 0x54]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rdi + 0x20]
mov rdx, r15
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1400d2fa6
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x1400d2fa6
mov r8d, dword [rsp + 0x54]
test r8d, r8d
jne 0x1400d2eef
lea r14, [rsp + 0x60]
mov r8d, 0x208
mov rcx, r14
mov dl, 0xaa
call fcn.140086cd0
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x20], r12d
mov dword [rsp + 0x28], 0x4e4
lea r9, str.StringFileInfo_04x_04x_ls
mov edx, 0x104
mov r8d, 0x104
mov rcx, r14
call fcn.14002a110
lea r8, [rsp + 0x58]
mov qword [r8], 0
lea r9, [rsp + 0x54]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rdi + 0x20]
mov rdx, r14
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1400d3027
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x1400d3027
mov r8d, dword [rsp + 0x54]
test r8d, r8d
jne 0x1400d2eef
lea r14, [rsp + 0x60]
mov r8d, 0x208
mov rcx, r14
mov dl, 0xaa
call fcn.140086cd0
movzx eax, word [rsp + 0x46]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], 0x4e4
lea r9, str.StringFileInfo_04x_04x_ls
mov edx, 0x104
mov r8d, 0x104
mov rcx, r14
call fcn.14002a110
lea r8, [rsp + 0x58]
mov qword [r8], 0
lea r9, [rsp + 0x54]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rdi + 0x20]
mov rdx, r14
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1400d30ac
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x1400d30ac
mov r8d, dword [rsp + 0x54]
test r8d, r8d
jne 0x1400d2eef
xor esi, esi
jmp 0x1400d2eff