joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004190
Capabilities:
Accept command line arguments
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14004b040]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor ecx, ecx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rcx
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], cx
jne 0x1400041e2
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14000b990
nop
mov rbx, qword [rsp + 0x30]
mov eax, 1
cmp rbx, rax
cmovb rax, rbx
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova rcx, qword [rsp + 0x20]
sub rbx, rax
lea r8, [rbx*2 + 2]
lea rdx, [rcx + rax*2]
call fcn.140035b50
mov qword [rsp + 0x30], rbx
lea r8, [rbx - 2]
cmp rbx, r8
jb 0x1400042f4
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova rdx, qword [rsp + 0x20]
lea rcx, [rbx - 2]
movzx eax, word [rdx + r8*2 + 4]
mov word [rdx + r8*2], ax
mov qword [rsp + 0x30], rcx
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova rdx, qword [rsp + 0x20]
mov r8, rdi
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_RtlCompareMemory]
cmp rax, rdi
sete bl
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x1400042ca
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400042c5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400042ee
call fcn.14000fa50
movzx eax, bl
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14000fa30
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
call fcn.14001d020
nop
call fcn.14000a920
nop
int3
Function at 0x1400043a0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x2b0
mov rax, qword [0x14004b040]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov rbx, rcx
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1400044c3
mov dword [rsp + 0x60], 0x238
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400044c3
xor r14d, r14d
movabs r15, 0x492492492492492
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
lea rax, [rsp + 0x8c]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140004434
lea rdx, [rsp + 0x8c]
lea rcx, [rsp + 0x30]
call fcn.14000b990
mov edi, dword [rsp + 0x68]
mov dword [rsp + 0x50], edi
mov rsi, qword [rbx]
cmp qword [rbx + 8], r15
je 0x1400044fb
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], r14
mov ecx, 0x38
call fcn.14000fa58
mov rcx, rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rax + 0x10], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rax + 0x20], xmm1
mov dword [rax + 0x30], edi
inc qword [rbx + 8]
mov rax, qword [rsi + 8]
mov qword [rcx], rsi
mov qword [rcx + 8], rax
mov qword [rsp + 0x28], r14
mov qword [rsi + 8], rcx
mov qword [rax], rcx
lea rdx, [rsp + 0x60]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140004413
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.14000fa30
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
lea rcx, str.list_too_long
call fcn.140010c50
int3
Function at 0x1400052c0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rax, qword [rcx]
mov r15, rdx
mov r12, rcx
mov rbx, qword [rax]
cmp rbx, rax
je 0x14000544b
xor r13d, r13d
movabs r9, 0x492492492492492
nop
mov r14d, r13d
lea rbp, [0x14005cd50]
nop word [rax + rax]
cmp qword [rbx + 0x28], 7
lea r8, [rbx + 0x10]
jbe 0x14000531f
mov r8, qword [rbx + 0x10]
mov rcx, r8
mov edx, r13d
call fcn.140003d60
test eax, eax
je 0x140005367
mov r9d, eax
nop dword [rax]
nop word [rax + rax]
movzx ecx, word [r8]
lea r8, [r8 + 2]
mov eax, ecx
ror ecx, 3
xor eax, 3
add edx, eax
rol edx, 3
add edx, ecx
sub r9, 1
jne 0x140005340
movabs r9, 0x492492492492492
cmp dword [rbp], edx
jne 0x140005423
mov rdi, qword [r15]
cmp qword [r15 + 8], r9
je 0x140005470
lea r8, [rbx + 0x10]
mov rdx, r15
lea rcx, [rsp + 0x20]
call fcn.14000dd80
inc qword [r15 + 8]
mov rax, qword [rsp + 0x28]
mov rcx, qword [rdi + 8]
mov qword [rax], rdi
mov rax, qword [rsp + 0x28]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov qword [rdi + 8], rax
mov qword [rsp + 0x28], r13
mov qword [rcx], rax
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x140005423
mov rdx, qword [rdi + 0x28]
cmp rdx, 7
jbe 0x1400053fe
mov rcx, qword [rdi + 0x10]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1400053f9
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000546a
mov rcx, r8
call fcn.14000fa50
mov qword [rdi + 0x20], r13
mov qword [rdi + 0x28], 7
mov word [rdi + 0x10], r13w
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140005423
mov edx, 0x38
call fcn.14000fa50
inc r14d
add rbp, 4
movabs r9, 0x492492492492492
cmp r14d, 0x2f
jb 0x140005310
mov rbx, qword [rbx]
cmp rbx, qword [r12]
jne 0x140005300
mov rbx, qword [rsp + 0x60]
mov al, 1
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.14001d020
int3
lea rcx, str.list_too_long
call fcn.140010c50
int3
Function at 0x1400057f0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14004b040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rdi, rdx
mov rsi, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp word [rdx + r8*2], 0
jne 0x140005832
lea rcx, [rsp + 0x50]
call fcn.14000b990
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
nop dword [rax]
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x140005860
mov r8, rbx
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.14000b990
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140005480
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x1400058cd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400058c8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400059b6
call fcn.14000fa50
movdqa xmm0, xmmword [0x140044430]
movdqu xmmword [rsp + 0x40], xmm0
xor ebx, ebx
mov word [rsp + 0x30], bx
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x140005924
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000591f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400059b0
call fcn.14000fa50
mov qword [rsp + 0x70], rbx
lea r8, [rsp + 0x70]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x14000594a
xor eax, eax
jmp 0x14000598e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax*2 + 1]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov r9d, 1
xor r8d, r8d
lea rdx, str.SMBSVC
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000fa30
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.14001d020
nop
call fcn.14001d020
nop
int3
Function at 0x140005fb0
Capabilities:
Get token membership

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x14004b040]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor ebx, ebx
mov word [rsp + 0x6c], 0x500
lea rax, [rsp + 0x60]
mov dword [rsp + 0x70], ebx
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x68]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x68], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140006031
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x140006039
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140006049
call qword [sym.imp.ADVAPI32.dll_FreeSid]
test ebx, ebx
jne 0x140006056
cmp dword [rsp + 0x70], ebx
setne al
jmp 0x140006058
xor al, al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000fa30
add rsp, 0x80
pop rbx
ret
Function at 0x1400068c0
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 0x1400068e2
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 0x14000695c
mov rdi, r14
mov rcx, rbx
call fcn.140009a00
test rax, rax
jle 0x140006934
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.140035b50
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 0x14000694c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140006954
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1400068f6
sub r14, rdi
jmp 0x140006a3f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140006973
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140006975
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400069a7
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140035b50
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 0x140006a3c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400069e2
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 0x140006a1d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14001c810
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x140006a3c
cmp rbp, rax
ja 0x1400069f0
test rbp, rbp
je 0x140006a3c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14001c810
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 0x14000f500
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
sub rsp, 0x58
mov rax, qword [0x14004b040]
xor rax, rsp
mov qword [rsp + 0x40], rax
call fcn.14000e8c0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1400080a0
nop
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [rsp + 0x20]
call fcn.140008030
lea rcx, [rsp + 0x20]
call fcn.140008010
lea rdx, [rax - 2]
mov r8d, 2
lea rcx, [rsp + 0x20]
call fcn.140008030
lea rcx, [rsp + 0x20]
call fcn.140008020
mov rcx, rax
call fcn.14000e520
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x140010638
Capabilities:
Parse pe header

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

Function at 0x14001da04
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001d800

Function at 0x140023118
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14002312e
mov al, 1
jmp 0x14002318e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14002313f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14002318c
mov ecx, dword [rcx + 0x18]
nop
call fcn.14002bd50
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002318c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14002318c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14002318c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14002318e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140027588
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.140035240
sub rsp, rax
mov rax, qword [0x14004b040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140022efc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400275d7
mov rax, rbp
jmp 0x1400276df
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 + 0x5c5d0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140028fa8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x5c5d0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400276db
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 0x1400276db
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140028fa8
test rax, rax
js 0x1400276db
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400276db
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400276cd
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400276cd
cmp byte [rcx], 0xd
jne 0x1400276b3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400276c2
cmp byte [rcx + 1], 0xa
jne 0x1400276c2
inc rcx
jmp 0x1400276c2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x4b550]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140027695
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400276df
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000fa30
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 0x140028348
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, [0x14005c5d0]
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 0x14002839f
cmp word [rdx], r13w
jne 0x14002839f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400283a4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400284c9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400284ea
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400283dd
mov rdx, r9
mov word [rbx], cx
jmp 0x140028404
cmp r9, r8
jae 0x140028414
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 0x1400283be
jmp 0x1400284c9
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 0x1400284be
cmp dword [rsp + 0x80], esi
je 0x1400284be
lea r8, [0x14005c5d0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140028496
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140028466
mov word [rbx], r13w
jmp 0x1400284c6
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 0x140028473
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400284c6
cmp word [rsp + 0x70], r13w
jne 0x1400284a3
cmp rbx, r14
je 0x140028460
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140028fb0
cmp word [rsp + 0x70], r13w
je 0x1400284c9
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, [0x14005c5d0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400284c3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400284c9
Function at 0x14002ada0
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 0x14002add0
xor eax, eax
jmp 0x14002ae93
mov rbp, rbx
cmp word [rax], si
je 0x14002adf5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002addc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002add8
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.14002acc0
movsxd r14, eax
test eax, eax
jne 0x14002ae33
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002adc9
mov rcx, r14
call fcn.140024f5c
mov rdi, rax
test rax, rax
jne 0x14002ae4c
xor ecx, ecx
call fcn.140024ad8
jmp 0x14002ae28
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.14002acc0
test eax, eax
jne 0x14002ae7d
mov rcx, rdi
call fcn.140024ad8
jmp 0x14002ae87
xor ecx, ecx
call fcn.140024ad8
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 0x14002e434
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.1400236a4
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 0x14002e4d5
cmp ebx, dword [rsp + 0x30]
je 0x14002e4ce
test esi, esi
je 0x14002e4ce
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14002e4a9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002e4b6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002e493
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14002e4ba
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002e4d7
mov eax, 1
jmp 0x14002e4d7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400328cc
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.14001d18c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140032956
cmp byte [rbp - 0x21], r15b
je 0x140032951
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14003298c
call fcn.140026a38
test eax, eax
jne 0x140032978
cmp byte [rbp - 0x21], r15b
je 0x140032970
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14003298c
cmp byte [rbp - 0x21], r15b
je 0x140032989
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.1400222f4
test eax, eax
jne 0x140032a2c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14001d18c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400329cb
cmp byte [rbp - 0x21], r15b
je 0x140032a00
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140032a00
call fcn.140026a38
test eax, eax
jne 0x1400329ec
cmp byte [rbp - 0x21], r15b
je 0x1400329e5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140032a00
cmp byte [rbp - 0x21], r15b
je 0x1400329fd
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.1400222f4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140032a2c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140032a2f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140032a3d
mov rcx, rdi
call fcn.140024ad8
cmp byte [rbp + 0x3f], r15b
je 0x140032a4c
mov rcx, qword [rbp + 0x27]
call fcn.140024ad8
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