joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400430c0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
vmovdqu xmm4, xmmword [r9 - 0x80]
vmovdqu xmm2, xmmword [r11 + 0x20]
lea r13, [r10 - 1]
vmovups xmm15, xmmword [r9 - 0x70]
lea r12, [r9 - 0x60]
vpxor xmm9, xmm1, xmm4
add ebx, 0x6000000
jb 0x1400431e0
vpaddb xmm10, xmm1, xmm2
vpaddb xmm11, xmm10, xmm2
vpxor xmm10, xmm10, xmm4
vpaddb xmm12, xmm11, xmm2
vpxor xmm11, xmm11, xmm4
vpaddb xmm13, xmm12, xmm2
vpxor xmm12, xmm12, xmm4
vpaddb xmm14, xmm13, xmm2
vpxor xmm13, xmm13, xmm4
vpaddb xmm1, xmm14, xmm2
vpxor xmm14, xmm14, xmm4
jmp 0x140043120
vaesenc xmm9, xmm9, xmm15
vaesenc xmm10, xmm10, xmm15
vaesenc xmm11, xmm11, xmm15
vaesenc xmm12, xmm12, xmm15
vaesenc xmm13, xmm13, xmm15
vaesenc xmm14, xmm14, xmm15
vmovups xmm15, xmmword [r12]
lea r12, [r12 + 0x10]
dec r13d
jne 0x140043120
vmovdqu xmm3, xmmword [r12]
vaesenc xmm9, xmm9, xmm15
vpxor xmm4, xmm3, xmmword [rcx]
vaesenc xmm10, xmm10, xmm15
vpxor xmm5, xmm3, xmmword [rcx + 0x10]
vaesenc xmm11, xmm11, xmm15
vpxor xmm6, xmm3, xmmword [rcx + 0x20]
vaesenc xmm12, xmm12, xmm15
vpxor xmm8, xmm3, xmmword [rcx + 0x30]
vaesenc xmm13, xmm13, xmm15
vpxor xmm2, xmm3, xmmword [rcx + 0x40]
vaesenc xmm14, xmm14, xmm15
vpxor xmm3, xmm3, xmmword [rcx + 0x50]
lea rcx, [rcx + 0x60]
vaesenclast xmm9, xmm9, xmm4
vaesenclast xmm10, xmm10, xmm5
vaesenclast xmm11, xmm11, xmm6
vaesenclast xmm12, xmm12, xmm8
vaesenclast xmm13, xmm13, xmm2
vaesenclast xmm14, xmm14, xmm3
vmovups xmmword [rdx], xmm9
vmovups xmmword [rdx + 0x10], xmm10
vmovups xmmword [rdx + 0x20], xmm11
vmovups xmmword [rdx + 0x30], xmm12
vmovups xmmword [rdx + 0x40], xmm13
vmovups xmmword [rdx + 0x50], xmm14
lea rdx, [rdx + 0x60]
ret
vpshufb xmm6, xmm1, xmm0
vmovdqu xmm5, xmmword [r11 + 0x30]
vpaddd xmm10, xmm6, xmmword [r11 + 0x40]
vpaddd xmm11, xmm6, xmm5
vpaddd xmm12, xmm10, xmm5
vpshufb xmm10, xmm10, xmm0
vpaddd xmm13, xmm11, xmm5
vpshufb xmm11, xmm11, xmm0
vpxor xmm10, xmm10, xmm4
vpaddd xmm14, xmm12, xmm5
vpshufb xmm12, xmm12, xmm0
vpxor xmm11, xmm11, xmm4
vpaddd xmm1, xmm13, xmm5
vpshufb xmm13, xmm13, xmm0
vpxor xmm12, xmm12, xmm4
vpshufb xmm14, xmm14, xmm0
vpxor xmm13, xmm13, xmm4
vpshufb xmm1, xmm1, xmm0
vpxor xmm14, xmm14, xmm4
jmp 0x140043120
Function at 0x14004ee60
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov r12, qword [rcx + 0x10]
cmp r12, qword [rcx + 0x18]
je 0x14004eea6
mov r14, r12
test r14, r14
je 0x14004efa8
mov rax, qword [rdi]
mov qword [r14], rax
add qword [rsi + 0x10], 8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r15, qword [rsi]
mov rbx, qword [rsi + 8]
mov rax, rbx
sub rax, r15
jbe 0x14004ef08
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r13, rax
neg r13
shl rax, 3
mov r14, rbx
sub r14, rax
mov r15, r12
sub r15, rbx
je 0x14004eef4
mov rcx, r14
mov rdx, rbx
mov r8, r15
call fcn.1400a9230
mov r12, qword [rsi + 8]
add r14, r15
mov qword [rsi + 0x10], r14
lea rax, [r12 + r13*8]
mov qword [rsi + 8], rax
jmp 0x14004ee82
mov rax, r12
sub rax, r15
sar rax, 2
cmp r12, r15
mov r13d, 1
cmovne r13, rax
mov rax, r13
shr rax, 0x3d
jne 0x14004efae
lea rcx, [r13*8]
call fcn.1400a5638
mov rcx, r13
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
mov rdx, r12
mov r14, rcx
sub rdx, rbx
je 0x14004ef6e
lea r14, [rdx + rcx]
xor r8d, r8d
mov r9, rcx
add r9, r8
je 0x14004efb1
mov r10, qword [rbx + r8]
mov qword [r9], r10
add r8, 8
cmp rdx, r8
jne 0x14004ef56
lea rdx, [rax + r13*8]
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], rdx
cmp r12, rbx
je 0x14004ef8e
add r12, 0xfffffffffffffff8
jne 0x14004ef81
jmp 0x14004efab
test r15, r15
je 0x14004ee82
mov rcx, r15
call fcn.1400a5630
mov r14, qword [rsi + 0x10]
jmp 0x14004ee82
int3
int3
int3
int3

Function at 0x140051900
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [rcx + 8]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x140051937
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x140051937
movzx edx, word [rax + rcx + 0x14]
cmp edx, 0xf0
jne 0x140051937
movzx eax, word [rax + rcx + 0x18]
cmp eax, 0x20b
sete al
ret
xor eax, eax
jmp 0x140051936
Function at 0x140054730
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
sub rsp, 0x20
cmp dword [rcx + 0xb78], 0x8000
jne 0x140054844
mov rsi, rcx
movzx eax, word [0x14013c5f8]
lea rax, [rax + rax*4]
cmp dword [rcx + rax*8 + 0x60], 0x200
jne 0x140054847
lea rcx, [0x14013c5b0]
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14005484d
cmp byte [0x14014bf28], 0
je 0x1400547ba
lea rcx, [0x14013c5b0]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
xor eax, eax
lock cmpxchg qword [0x14014bf30], rsi
jne 0x14005484a
add rsi, 0x48
lea rax, [0x140054870]
mov qword [0x1401519e8], rax
xor eax, eax
lea rcx, [0x14014bee0]
jmp 0x14005481d
cmp qword [0x1401519d8], 0
jne 0x14005485e
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140054861
mov dword [0x14014bed8], eax
mov dword [0x1401519e0], eax
lea rax, [0x140016c10]
mov qword [0x1401519d8], rax
mov byte [0x14014bf28], 1
jmp 0x14005477f
mov dl, 0x80
jmp 0x14005480d
cmp edx, 0x201
setb dl
shl dl, 4
add dl, 0x10
mov byte [rax + rcx], dl
inc rax
add rsi, 0x28
cmp rax, 0x48
je 0x14005483a
cmp qword [rsi], 0
je 0x140054840
mov edx, dword [rsi + 0x18]
cmp edx, 0x81
jb 0x1400547fa
cmp edx, 0x101
jae 0x1400547fe
mov dl, 0x40
jmp 0x14005480d
add rsp, 0x20
pop rsi
ret
xor edx, edx
jmp 0x14005480d
int3
int3
int3
lea rcx, [0x14013c5b0]
call fcn.1400621e0
jmp 0x140054776
int3
int3
Function at 0x14007a7a0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
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 0x14007a89f
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x14007a824
call fcn.14007a8b0
mov r14, qword [rsi]
cmp qword [0x14014bb70], 0
je 0x14007a85b
mov rcx, qword [0x14014bb70]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [0x14012eaa8]
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14007a836
mov qword [rsi], rdi
call fcn.14007a8b0
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 0x14007a8a3
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x140128172]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14007a8a6
lea rcx, [sym.opera.exe_GetHandleVerifier]
cmp rax, rcx
je 0x14007a899
call qword [0x14012eaa8]
mov rcx, rax
xor edx, edx
call fcn.1400255c0
jmp 0x14007a807
xor ecx, ecx
mov dl, 1
jmp 0x14007a88f
mov byte [rsi + 8], 0
int3
xor ecx, ecx
jmp 0x14007a88d
Function at 0x14007d370
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rsi
sub rsp, 0x30
movapd xmmword [rsp + 0x20], xmm6
mov ecx, 0x20
call fcn.1400a5638
mov rsi, rax
mov edx, 4
mov rcx, rax
call fcn.14007cd90
mov r8, qword [rsi]
mov rdx, qword [rsi + 8]
mov rax, rdx
sub rax, r8
sar rax, 2
lea rcx, [rax - 1]
cmp rcx, 2
jb 0x14007d468
add rax, 0xfffffffffffffffd
movq xmm0, rax
punpckldq xmm0, xmmword [0x14011dd90]
subpd xmm0, xmmword [0x14011dda0]
haddpd xmm0, xmm0
mov edx, 1
movq xmm1, qword [0x14011dd90]
movapd xmm2, xmmword [0x14011dda0]
movsd xmm3, qword [0x140127c20]
nop
mov r8, qword [rsi]
mov r9, qword [rsi + 8]
sub r9, r8
sar r9, 2
cmp r9, rdx
jbe 0x14007d50e
movq xmm4, rax
punpckldq xmm4, xmm1
subpd xmm4, xmm2
movapd xmm5, xmm4
unpckhpd xmm5, xmm4
addsd xmm5, xmm4
lea r9, [rdx - 1]
movq xmm4, r9
punpckldq xmm4, xmm1
subpd xmm4, xmm2
movapd xmm6, xmm4
unpckhpd xmm6, xmm4
addsd xmm6, xmm4
addsd xmm6, xmm6
addsd xmm6, xmm5
divsd xmm6, xmm0
addsd xmm6, xmm3
cvttsd2si r9d, xmm6
mov dword [r8 + rdx*4], r9d
dec rax
inc rdx
cmp rdx, rcx
jne 0x14007d3f0
mov r8, qword [rsi]
mov rdx, qword [rsi + 8]
cmp rdx, r8
je 0x14007d511
mov dword [rdx - 4], 0x7fffffff
mov r8, qword [rsi]
mov rax, qword [rsi + 8]
mov rdx, rax
sub rdx, r8
je 0x14007d514
js 0x14007d518
mov rcx, rdx
shr rcx, 2
test dl, 1
jne 0x14007d4ef
mov rdx, r8
lea r9, [rax - 1]
cmp r9, r8
je 0x14007d4de
lea r8, [0x1401291c0]
movzx r9d, byte [rdx]
movzx r10d, cl
xor r10d, r9d
shr ecx, 8
xor ecx, dword [r8 + r10*4]
movzx r9d, byte [rdx + 1]
movzx r10d, cl
xor r10d, r9d
shr ecx, 8
xor ecx, dword [r8 + r10*4]
add rdx, 2
cmp rdx, rax
jne 0x14007d4b0
mov dword [rsi + 0x18], ecx
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x30
pop rsi
ret
movzx edx, byte [r8]
movzx r9d, cl
xor r9d, edx
lea rdx, [0x1401291c0]
shr ecx, 8
xor ecx, dword [rdx + r9*4]
lea rdx, [r8 + 1]
jmp 0x14007d4a0
int3
int3
xor ecx, ecx
jmp 0x14007d4de
int3
Function at 0x140097f50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
test r8, r8
je 0x14009806a
mov rcx, qword [rcx + 8]
movsxd r9, dword [rcx + 0x3c]
cmp dword [rcx + r9 + 0x84], 0
je 0x14009806a
add r9, rcx
xor eax, eax
cmp word [r9 + 0x14], 0x78
jb 0x140098063
add r9, 0x88
je 0x140098063
mov eax, dword [r9]
test rax, rax
je 0x14009806a
add rax, rcx
je 0x14009806a
cmp rdx, 0xffff
jbe 0x14009805d
mov r10d, dword [rax + 0x20]
lea r9, [rcx + r10]
test r10, r10
cmove r9, r10
mov r10d, dword [rax + 0x18]
lea r10, [r9 + r10*4]
lea r11, [rdx + 1]
mov rsi, r9
jmp 0x140097ff6
xor ebp, ebp
lea rdi, [rsi + rdi*2]
movzx ebp, bpl
movzx ebx, byte [rbx]
lea r14, [rdi + 4]
cmp ebp, ebx
cmovg rsi, r14
cmovs r10, rdi
cmp bpl, bl
je 0x140098042
cmp rsi, r10
je 0x14009806a
mov rdi, r10
sub rdi, rsi
mov rbx, rdi
sar rbx, 2
shr rdi, 0x3f
add rdi, rbx
and rdi, 0xfffffffffffffffe
mov r14d, dword [rsi + rdi*2]
lea rbx, [rcx + r14]
test r14, r14
cmove rbx, r14
mov bpl, byte [rdx]
test bpl, bpl
je 0x140097fd6
mov r14, r11
cmp bpl, byte [rbx]
jne 0x140097fd8
inc rbx
mov bpl, byte [r14]
inc r14
test bpl, bpl
jne 0x14009802d
jmp 0x140097fd6
mov edx, dword [rax + 0x24]
add rcx, rdx
test rdx, rdx
cmove rcx, rdx
sub rdi, r9
sar rdi, 1
movzx edx, word [rcx + rdi]
add dx, word [rax + 0x10]
mov word [r8], dx
mov al, 1
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
xor eax, eax
jmp 0x140098063
Function at 0x14009d700
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14013a028]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x14014b988]
mov ecx, dword [0x140148908]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14009d764
mov rax, qword [0x14014b980]
mov rsi, qword [rax + 0x58]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400a77a0
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x14014b988]
call fcn.1400a56f4
cmp dword [0x14014b988], 0xffffffff
jne 0x14009d73c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1400a98e0
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.1400a5638
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x14014b9d0]
mov ecx, dword [0x140148908]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14009d824
lea r8, [0x14014b9a0]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140011500
mov qword [0x14014b980], rsi
lea rcx, [0x14014b988]
call fcn.1400a5694
jmp 0x14009d73c
lea rcx, [0x14014b9d0]
call fcn.1400a56f4
cmp dword [0x14014b9d0], 0xffffffff
jne 0x14009d7f5
xorps xmm0, xmm0
movups xmmword [0x14014b9c0], xmm0
movups xmmword [0x14014b9b0], xmm0
movups xmmword [0x14014b9a0], xmm0
lea rcx, [0x14014b9a0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14014b9d0]
call fcn.1400a5694
jmp 0x14009d7f5

Function at 0x1400a6a94
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 0x1400a6b0c
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x1400a6b0c
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 0x1400a6b0c
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1400a6b00
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x1400a6b1e
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x1400a6aee
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 0x1400a6b0e

Function at 0x1400a71ac
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400a71f6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400a71f6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400a71f6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400a71f6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400a71f6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400a71f8
xor al, al
add rsp, 0x28
ret
Function at 0x1400b7898
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 0x1400b78cf
call fcn.1400a5674
mov dword [rax], 0x16
call fcn.1400c8cb4
xor eax, eax
jmp 0x1400b795d
mov rdx, r9
mov rcx, r8
call fcn.1400b7980
mov rbx, rax
test rax, rax
je 0x1400b795a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400b79f0]
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 0x1400b7947
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400ba768
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400b792e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400b793d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400a4c70
jmp 0x1400b795a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400b7957
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 0x1400b7ac4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400b7c0c
Function at 0x1400c2d70
Capabilities:
Parse pe header

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

Function at 0x1400cd1f8
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.1400c6914
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 0x1400cd299
cmp ebx, dword [rsp + 0x30]
je 0x1400cd292
test esi, esi
je 0x1400cd292
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400cd26d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400cd27a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400cd257
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400cd27e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400cd29b
mov eax, 1
jmp 0x1400cd29b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400cdfd4
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 0x1400ce004
xor eax, eax
jmp 0x1400ce0c7
mov rbp, rbx
cmp word [rax], si
je 0x1400ce029
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400ce010
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400ce00c
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.1400cdef4
movsxd r14, eax
test eax, eax
jne 0x1400ce067
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400cdffd
mov rcx, r14
call fcn.140051b80
mov rdi, rax
test rax, rax
jne 0x1400ce080
xor ecx, ecx
call fcn.1400a4c70
jmp 0x1400ce05c
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.1400cdef4
test eax, eax
jne 0x1400ce0b1
mov rcx, rdi
call fcn.1400a4c70
jmp 0x1400ce0bb
xor ecx, ecx
call fcn.1400a4c70
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 0x1400ce0e4
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 0x1400ce16b
mov rsi, rbx
cmp word [rax], bp
je 0x1400ce12a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400ce114
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400ce110
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140051b80
mov rdi, rax
test rax, rax
je 0x1400ce158
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400a9230
mov rbp, rdi
xor ecx, ecx
call fcn.1400a4c70
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 0x1400d0ebc
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14013a028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400d0f06
call fcn.1400ba748
mov dword [rax], 0xf
call fcn.1400a5674
mov dword [rax], 0xd
call fcn.1400c8cb4
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400a77a0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400d0f11
lea eax, [rbx + 1]
jmp 0x1400d0ef3
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 0x1400d0ef1
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400d0ef3
Function at 0x1400d14dc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400d14f2
mov al, 1
jmp 0x1400d1552
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400d1503
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400d1550
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400ba87c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400d1550
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400d1550
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400d1550
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400d1552
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400d4fa8
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.1400b2230
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400d5032
cmp byte [rbp - 0x21], r15b
je 0x1400d502d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400d5068
call fcn.1400c70e4
test eax, eax
jne 0x1400d5054
cmp byte [rbp - 0x21], r15b
je 0x1400d504c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400d5068
cmp byte [rbp - 0x21], r15b
je 0x1400d5065
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.1400b771c
test eax, eax
jne 0x1400d5108
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400b2230
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400d50a7
cmp byte [rbp - 0x21], r15b
je 0x1400d50dc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400d50dc
call fcn.1400c70e4
test eax, eax
jne 0x1400d50c8
cmp byte [rbp - 0x21], r15b
je 0x1400d50c1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400d50dc
cmp byte [rbp - 0x21], r15b
je 0x1400d50d9
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.1400b771c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400d5108
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400d510b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400d5119
mov rcx, rdi
call fcn.1400a4c70
cmp byte [rbp + 0x3f], r15b
je 0x1400d5128
mov rcx, qword [rbp + 0x27]
call fcn.1400a4c70
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