joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ab20
Capabilities:
Read .ini file

Disassembly:
push rdi
push r12
push r15
sub rsp, 0x50
cmp byte [rcx + 0x208], 0
mov r15, r8
mov r12, rdx
mov rdi, rcx
jne 0x14000ab48
xor eax, eax
add rsp, 0x50
pop r15
pop r12
pop rdi
ret
mov qword ss:[rsp + 0x70], rbx
mov ecx, 0x100
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x48], r13
call fcn.14001e3b0
xor r13d, r13d
mov rbx, rax
test rax, rax
je 0x14000ab87
xor edx, edx
mov r8d, 0x100
mov rcx, rax
call fcn.140047d20
jmp 0x14000ab8a
mov rbx, r13
mov qword [rsp + 0x38], r13
mov r9d, 0xffffffff
mov qword [rsp + 0x30], r13
mov r8, rdi
mov dword [rsp + 0x28], r13d
mov edx, 0x80
mov ecx, 0xfde9
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbp, eax
test eax, eax
jne 0x14000abcd
mov rcx, rbx
call fcn.14001e3b8
xor eax, eax
jmp 0x14000acc3
mov qword ss:[rsp + 0x80], rsi
mov rcx, rbp
mov qword [rsp + 0x40], r14
call fcn.14001e3b0
mov rsi, rax
test rax, rax
je 0x14000abfc
mov r8, rbp
xor edx, edx
mov rcx, rax
call fcn.140047d20
jmp 0x14000abff
mov rsi, r13
mov qword [rsp + 0x38], r13
mov r9d, 0xffffffff
mov qword [rsp + 0x30], r13
mov r8, rdi
mov dword [rsp + 0x28], ebp
mov edx, 0x80
mov ecx, 0xfde9
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.140027014
mov qword [rsp + 0x28], rsi
mov r9, rbx
xor r8d, r8d
mov dword [rsp + 0x20], 0x100
mov rdx, r15
mov rcx, r12
mov dword [rax], r13d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14, qword [rsp + 0x40]
test eax, eax
jne 0x14000ac9d
call fcn.140027014
cmp dword [rax], r13d
jne 0x14000ac9d
lea edx, ds:[rdi - 1]
cmp edx, 0xfc
jbe 0x14000ac90
cmp edi, 0x100
jb 0x14000ac9d
mov rcx, rsi
call fcn.14001e3b8
mov rax, rbx
jmp 0x14000acbb
xor eax, eax
mov rdi, rbx
mov ecx, 0x100
rep stosb byte [rdi], al
mov rcx, rbx
call fcn.14001e3b8
mov rcx, rsi
call fcn.14001e3b8
xor eax, eax
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r13, qword [rsp + 0x48]
add rsp, 0x50
pop r15
pop r12
pop rdi
ret
Function at 0x14000b180
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword ss:[rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x14006b680]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rdx
mov dword [rsp + 0x48], 0xff
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x1fe
call fcn.140047d20
xor esi, esi
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x40], rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop dword [rax + rax]
test eax, eax
je 0x14000b2de
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000b2de
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x50]
mov qword [rsp + 0x30], rsi
xor edx, edx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14000b28e
lea rax, [rsp + 0x50]
mov edx, 0xff
mov qword [rsp + 0x28], rax
lea r9, str._s_s
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x20], rbx
lea rcx, [0x14006daf0]
call fcn.1400022c0
cmp eax, 0xffffffff
jne 0x14000b27f
lea rcx, str._RegDelnodeRecurse__Failed_to_build_reg_path__r_n
call fcn.1400091e0
jmp 0x14000b2de
lea rdx, [0x14006daf0]
mov rcx, rdi
call fcn.14000b180
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r9, [0x14004ab58]
mov qword [rsp + 0x20], rbx
mov edx, 0xff
lea rcx, [0x14006daf0]
mov r8, 0xffffffffffffffff
call fcn.1400022c0
nop dword [rax]
cmp eax, 0xffffffff
jne 0x14000b2d3
lea rcx, str._RegDelnodeRecurse__Failed_to_build_reg_path___2__r_n
call fcn.1400091e0
jmp 0x14000b2de
mov rdx, rbx
mov rcx, rdi
call fcn.14000b180
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14001e390
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000c360
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14006b680]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, rdx
mov dword [rsp + 0x60], r8d
mov rdx, rcx
lea rax, [rsp + 0x50]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor esi, esi
mov rcx, 0xffffffff80000001
mov r9d, 0x20006
mov qword [rsp + 0x50], rsi
xor r8d, r8d
mov dword [rsp + 0x58], esi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000c3f3
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
lea rax, [rsp + 0x50]
mov rdx, rbx
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000c42b
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14001e390
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret

Function at 0x14000c460
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14006b680]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, rdx
mov dword [rsp + 0x60], r8d
mov rdx, rcx
lea rax, [rsp + 0x50]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor esi, esi
mov rcx, 0xffffffff80000002
mov r9d, 0x20206
mov qword [rsp + 0x50], rsi
xor r8d, r8d
mov dword [rsp + 0x58], esi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000c4f3
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
lea rax, [rsp + 0x50]
mov rdx, rbx
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x20206
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000c52b
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14001e390
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000c560
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14006b680]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rdx
lea rax, [rsp + 0x50]
mov rdx, rcx
mov qword [rsp + 0x20], rax
mov rbx, r8
mov rdi, rcx
xor ebp, ebp
mov rcx, 0xffffffff80000002
mov r9d, 0x20206
mov qword [rsp + 0x50], rbp
xor r8d, r8d
mov dword [rsp + 0x58], ebp
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000c5f5
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
lea rax, [rsp + 0x50]
mov rdx, rdi
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x20206
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000c641
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rbx + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x14000c600
mov rcx, qword [rsp + 0x50]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14001e390
mov rbx, qword [rsp + 0xa8]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000c660
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14006b680]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rdx
lea rax, [rsp + 0x50]
mov rdx, rcx
mov qword [rsp + 0x20], rax
mov rbx, r8
mov rdi, rcx
xor ebp, ebp
mov rcx, 0xffffffff80000001
mov r9d, 0x20006
mov qword [rsp + 0x50], rbp
xor r8d, r8d
mov dword [rsp + 0x58], ebp
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000c6f5
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
lea rax, [rsp + 0x50]
mov rdx, rdi
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000c741
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rbx + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x14000c700
mov rcx, qword [rsp + 0x50]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14001e390
mov rbx, qword [rsp + 0xa8]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x140018200
Capabilities:
Manipulate console buffer

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x14006b680]
xor rax, rsp
mov qword [rsp + 0x280], rax
movzx eax, word [0x14006d454]
movzx esi, r8b
movsx edi, cx
movzx ebx, dx
test ax, ax
jne 0x140018287
xor eax, eax
xorps xmm0, xmm0
mov ecx, 0xfffffff5
mov word [rsp + 0x48], ax
movups xmmword [rsp + 0x4a], xmm0
mov dword [rsp + 0x5a], eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x14001827b
lea rcx, str.GetConsoleScreenBufferInfo__FALSE_r_n
call fcn.1400091e0
jmp 0x140018368
movzx eax, word [rsp + 0x4e]
mov word [0x14006d454], ax
mov word [rsp + 0x40], di
test sil, sil
jne 0x140018294
add bx, ax
mov ecx, 0xfffffff5
mov word [rsp + 0x42], bx
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebx, dword [rsp + 0x40]
mov rcx, rax
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0x140018368
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x104
call fcn.140047d20
movsx edx, word [0x14006d454]
lea r9, str.x:_d_ny:_d_nOrgY:_d
mov dword [rsp + 0x30], edx
lea rcx, [rsp + 0x60]
shr ebx, 0x10
mov edx, 0x104
movsx eax, bx
mov r8, 0xffffffffffffffff
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edi
call fcn.140018730
xor edx, edx
lea rcx, [rsp + 0x170]
mov r8d, 0x104
call fcn.140047d20
nop word [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x60]
mov edx, 0x104
mov qword [rsp + 0x28], rcx
lea r9, str.SetConsoleCursorPosition_Failed__Error:__lu_r_n_r_n_s_r_n
lea rcx, [rsp + 0x170]
mov dword [rsp + 0x20], eax
mov r8, 0xffffffffffffffff
call fcn.140018730
lea rdx, [rsp + 0x170]
lea rcx, [0x140055e3c]
call fcn.1400091e0
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14001e390
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14001de54
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 0x14001decd
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x14001decd
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
cmp r9w, r11w
jae 0x14001decd
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x14001dec1
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x14001dedf
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x14001deaf
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 0x14001decf

Function at 0x14001f124
Capabilities:
Parse pe header

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

Function at 0x1400216f0
Capabilities:
Read file on windows

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, 0x20
mov rsi, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14002171e
xor eax, eax
jmp 0x14002180a
cmp qword [rcx + 0x68], 0
je 0x140021732
lfence
call fcn.140021830
jmp 0x14002180a
mov rax, qword [rcx + 0x38]
mov rbp, rsi
mov rdx, qword [rax]
test rdx, rdx
je 0x140021749
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14002174b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14002177d
cmp rax, rsi
mov rbx, rsi
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1400480e0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rbp, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140021801
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x1400217b4
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x1400217dd
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140034424
add r14, rax
sub rbp, rax
cmp rax, rbx
jne 0x140021801
cmp rbp, rbx
ja 0x1400217bb
test rbp, rbp
je 0x140021801
mov r9, qword [rdi + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, r14
call fcn.140034424
sub rbp, rax
sub rsi, rbp
mov rax, rsi
lfence
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14002fe28
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 0x14002fe5f
call fcn.140027014
mov dword [rax], 0x16
call fcn.14002eccc
xor eax, eax
jmp 0x14002feed
mov rdx, r9
mov rcx, r8
call fcn.14002fdc4
mov rbx, rax
test rax, rax
je 0x14002feea
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14002fcf0]
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 0x14002fed7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140026f88
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14002febe
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14002fecd
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140036678
jmp 0x14002feea
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14002fee7
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 0x1400301cc
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14003023b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003023b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003023b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003023b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003023b
cmp dword [rcx + 0x84], 0xe
jbe 0x14003023b
cmp dword [rcx + 0xf8], 0
je 0x14003023b
mov ecx, ebx
call fcn.1400302ec
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400300c8
nop
cmp dword [rbp + 0x20], 0
je 0x140030289
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140030294
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1400301cc

Function at 0x1400303d0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400301cc
Function at 0x14003b284
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 0x14003b2b4
xor eax, eax
jmp 0x14003b377
mov rbp, rbx
cmp word [rax], si
je 0x14003b2d9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14003b2c0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14003b2bc
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.1400382c4
movsxd r14, eax
test eax, eax
jne 0x14003b317
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14003b2ad
mov rcx, r14
call fcn.1400366b4
mov rdi, rax
test rax, rax
jne 0x14003b330
xor ecx, ecx
call fcn.140036678
jmp 0x14003b30c
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.1400382c4
test eax, eax
jne 0x14003b361
mov rcx, rdi
call fcn.140036678
jmp 0x14003b36b
xor ecx, ecx
call fcn.140036678
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 0x14003e8c8
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.140036040
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 0x14003e969
cmp ebx, dword [rsp + 0x30]
je 0x14003e962
test esi, esi
je 0x14003e962
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14003e93d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14003e94a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14003e927
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14003e94e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14003e96b
mov eax, 1
jmp 0x14003e96b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140040ca4
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.14001e9c0
sub rsp, rax
mov rax, qword [0x14006b680]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400378d0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140040cf3
mov rax, rbp
jmp 0x140040dfb
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 + 0x6f290]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140041f8c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x6f290]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140040df7
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 0x140040df7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140041f8c
test rax, rax
js 0x140040df7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140040df7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140040de9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140040de9
cmp byte [rcx], 0xd
jne 0x140040dcf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140040dde
cmp byte [rcx + 1], 0xa
jne 0x140040dde
inc rcx
jmp 0x140040dde
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x6c020]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140040db1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140040dfb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14001e390
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 0x140041118
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14004112e
mov al, 1
jmp 0x14004118e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14004113f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14004118c
mov ecx, dword [rcx + 0x18]
nop
call fcn.14003c1a4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14004118c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14004118c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14004118c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14004118e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14004132c
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, [0x14006f290]
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 0x140041383
cmp word [rdx], r13w
jne 0x140041383
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140041388
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400414ad
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400414ce
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400413c1
mov rdx, r9
mov word [rbx], cx
jmp 0x1400413e8
cmp r9, r8
jae 0x1400413f8
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 0x1400413a2
jmp 0x1400414ad
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 0x1400414a2
cmp dword [rsp + 0x80], esi
je 0x1400414a2
lea r8, [0x14006f290]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14004147a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14004144a
mov word [rbx], r13w
jmp 0x1400414aa
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 0x140041457
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400414aa
cmp word [rsp + 0x70], r13w
jne 0x140041487
cmp rbx, r14
je 0x140041444
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140041f94
cmp word [rsp + 0x70], r13w
je 0x1400414ad
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, [0x14006f290]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400414a7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400414ad