joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14027ad60
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rsi, str.NUITKA_ONEFILE_BINARY
mov ebx, ecx
mov rcx, rsi
call fcn.14025b2d0
test rax, rax
je 0x14027aeb0
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r15, r14
lea r12, [rsi + 0x28]
mov word [rsp + 0x40], cx
mov r13, rax
lea rbp, [rsp + 0x3a]
mov eax, 0x4e
lea rdi, [rsp + 0x3c]
nop word [rax + rax]
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, rsi
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1402e612a
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x14027ae16
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x14027ae08
test rbx, rbx
je 0x1402e612a
mov word [rax], dx
add rsi, 1
xor edx, edx
add r15, 2
mov word [rax + 2], dx
movzx eax, byte [rsi]
test al, al
jne 0x14027adc8
mov rcx, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python312.dll_PyThreadState_Get]
mov rcx, qword [0x14031a920]
mov rsi, rax
mov rax, qword [0x1402fc340]
mov rbx, qword [rax + 0x1c0]
test rcx, rcx
je 0x14027af1d
mov rdx, rbx
call fcn.14024b9a0
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.14026e8d0
mov rdx, qword [rbx]
test edx, edx
js 0x14027ae92
sub rdx, 1
mov qword [rbx], rdx
je 0x14027af05
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x140319fc0]
lea rsi, [0x140319fc0]
test bl, bl
je 0x14027aed0
mov rax, qword [0x140319fc8]
lea rsi, [0x140319fc8]
test rax, rax
jne 0x14027ae92
cmp byte [0x14031a1e2], 0
je 0x14027af47
mov rdx, 0xffffffffffffffff
lea rcx, [0x140319fe0]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x14027af51
mov edx, dword [rax]
add edx, 1
je 0x14027ae92
mov dword [rax], edx
jmp 0x14027ae92
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [sym.imp.python312.dll__Py_Dealloc]
mov rax, qword [rsp + 0x28]
jmp 0x14027ae92
mov rcx, qword [0x14031a898]
mov rdi, qword [rax + 0x1b0]
test rcx, rcx
je 0x14027af5c
mov rdx, rdi
call fcn.14024b9a0
mov qword [0x14031a920], rax
mov rcx, rax
jmp 0x14027ae69
movzx ecx, bl
call fcn.14025bf50
jmp 0x14027aede
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x1402f33f3]
call qword [sym.imp.python312.dll_PyImport_ImportModule]
mov qword [0x14031a898], rax
mov rcx, rax
test rax, rax
je 0x1402e612a
jmp 0x14027af30
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
Function at 0x1402d1730
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x140319fa1], 0
mov rbp, rcx
mov rdi, rdx
mov r12, r8
je 0x1402d17d8
lea rdx, [0x1402f80ea]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1402d1840
mov rbx, qword [0x140319e40]
jmp 0x1402d1775
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, r12
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x1402d1770
movzx eax, word [rdx + 4]
lea r8, [rdx + 6]
test ax, ax
je 0x1402d17c7
lea rbx, [rdi + rax*8]
nop word cs:[rax + rax]
mov rdx, rdi
mov rcx, rbp
add rdi, 8
call fcn.1402c1730
mov r8, rax
cmp rdi, rbx
jne 0x1402d17b0
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x140319e40], rax
mov ebx, dword [rax]
mov qword [0x140319e40], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x140319e40], rdx
call fcn.1402d0860
cmp eax, ebx
jne 0x1402d18a8
mov byte [0x140319fa1], 1
jmp 0x1402d1750
cmp byte [0x140319fa0], 0
jne 0x1402d1767
mov rbx, qword [sym.imp.python312.dll_PyDict_New]
call rbx
mov qword [0x14031ab48], rax
call rbx
mov qword [0x14031ab40], rax
call rbx
mov qword [0x14031ab38], rax
call rbx
mov qword [0x14031ab30], rax
call rbx
mov qword [0x14031ab28], rax
call rbx
mov qword [0x14031ab20], rax
call rbx
mov qword [0x14031ab18], rax
call rbx
mov byte [0x140319fa0], 1
mov qword [0x14031ab10], rax
jmp 0x1402d1767
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x1402d3e40
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.1402e55d0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1402e55d0
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x1402d4b12
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14031b008]
test eax, eax
je 0x1402d4baa
lea rax, [0x14031afe0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14031b010]
mov qword [rbp - 8], rax
jmp 0x1402d4b8e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1402d4b82
cmp qword [rbp - 0x10], 0
je 0x1402d4b82
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1402d4b48
lea rax, [0x14031afe0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1402d4bab
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1402d4cb0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1402d4cd8
mov eax, 0
jmp 0x1402d4d26
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1402d4d01
mov eax, 0
jmp 0x1402d4d26
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1402d4d21
mov eax, 0
jmp 0x1402d4d26
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1402d4d2c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1402d4daa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1402d4da1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1402d4da1
mov rax, qword [rbp - 8]
jmp 0x1402d4dbf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1402d4d74
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400061ac
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.14000628c
mov ebx, eax
test eax, eax
jne 0x1400061dc
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x140006238
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000622f
test al, 0x10
je 0x14000622f
bt eax, 0xa
jae 0x140006228
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.140005ce8
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x140006224
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140006248
test edi, edi
jne 0x14000622f
and dword [rsp + 0x3c], 0
jmp 0x140006234
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.14000c470
int3

Function at 0x1400062dc
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 0x140006316
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000631b
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 0x140006364
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14001fd40]
cmp byte [rcx + rax], 0
je 0x140006364
dec r8
sub rdx, 1
jne 0x14000634a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140006d14
Capabilities:
Parse pe header

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

Function at 0x14000ad5c
Capabilities:
Parse pe header

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

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14000aea4
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 0x14000af13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000af13
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000af13
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000af13
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000af13
cmp dword [rcx + 0x84], 0xe
jbe 0x14000af13
cmp dword [rcx + 0xf8], 0
je 0x14000af13
mov ecx, ebx
call fcn.14000addc
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.14000b038
nop
cmp dword [rbp + 0x20], 0
je 0x14000af61
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000ae70
int3

Function at 0x14000ca50
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000ca78
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000ca78
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400151fc
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 0x14001522c
xor eax, eax
jmp 0x1400152ef
mov rbp, rbx
cmp word [rax], si
je 0x140015251
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140015238
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140015234
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.14001511c
movsxd r14, eax
test eax, eax
jne 0x14001528f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140015225
mov rcx, r14
call fcn.140012b80
mov rdi, rax
test rax, rax
jne 0x1400152a8
xor ecx, ecx
call fcn.14000ffb8
jmp 0x140015284
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.14001511c
test eax, eax
jne 0x1400152d9
mov rcx, rdi
call fcn.14000ffb8
jmp 0x1400152e3
xor ecx, ecx
call fcn.14000ffb8
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 0x14001a8b0
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.14000fff4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001a93a
cmp byte [rbp - 0x21], r15b
je 0x14001a935
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001a970
call fcn.140010e04
test eax, eax
jne 0x14001a95c
cmp byte [rbp - 0x21], r15b
je 0x14001a954
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001a970
cmp byte [rbp - 0x21], r15b
je 0x14001a96d
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.1400145cc
test eax, eax
jne 0x14001aa10
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000fff4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001a9af
cmp byte [rbp - 0x21], r15b
je 0x14001a9e4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001a9e4
call fcn.140010e04
test eax, eax
jne 0x14001a9d0
cmp byte [rbp - 0x21], r15b
je 0x14001a9c9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001a9e4
cmp byte [rbp - 0x21], r15b
je 0x14001a9e1
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.1400145cc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001aa10
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001aa13
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001aa21
mov rcx, rdi
call fcn.14000ffb8
cmp byte [rbp + 0x3f], r15b
je 0x14001aa30
mov rcx, qword [rbp + 0x27]
call fcn.14000ffb8
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14001b288
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, [0x14002fa80]
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 0x14001b2df
cmp word [rdx], r13w
jne 0x14001b2df
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001b2e4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001b409
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001b42a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001b31d
mov rdx, r9
mov word [rbx], cx
jmp 0x14001b344
cmp r9, r8
jae 0x14001b354
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 0x14001b2fe
jmp 0x14001b409
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 0x14001b3fe
cmp dword [rsp + 0x80], esi
je 0x14001b3fe
lea r8, [0x14002fa80]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001b3d6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001b3a6
mov word [rbx], r13w
jmp 0x14001b406
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 0x14001b3b3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001b406
cmp word [rsp + 0x70], r13w
jne 0x14001b3e3
cmp rbx, r14
je 0x14001b3a0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001b6e0
cmp word [rsp + 0x70], r13w
je 0x14001b409
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, [0x14002fa80]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001b403
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001b409
Function at 0x140080a30
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x14009e140]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov edi, ecx
mov ebp, r8d
mov rsi, rdx
xor ebx, ebx
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x30], bx
call sub.msvcrt.dll_memset
mov rcx, qword [str.P5_n_]
lea r14, str.P5_n_
cmp rcx, r14
je 0x140080aa3
test byte [rcx + 0x1c], 2
je 0x140080aa3
cmp byte [rcx + 0x19], 5
jb 0x140080aa3
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0xa]
lea r8, [0x140008c80]
call fcn.14000ffa8
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov edx, edi
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, ebx
mov edi, eax
jge 0x140080af5
mov rcx, qword [str.P5_n_]
cmp rcx, r14
je 0x140080b3c
test byte [rcx + 0x1c], 2
je 0x140080b3c
cmp byte [rcx + 0x19], 2
jb 0x140080b3c
mov rcx, qword [rcx + 0x10]
lea r8, [0x140008c80]
mov edx, 0xb
mov r9d, eax
call fcn.1400100e0
jmp 0x140080b3c
lea r8, [rsp + 0x30]
mov rdx, rbp
mov rcx, rsi
call fcn.14001191c
cmp eax, ebx
mov edi, eax
jge 0x140080b47
mov rcx, qword [str.P5_n_]
cmp rcx, r14
je 0x140080b3c
test byte [rcx + 0x1c], 2
je 0x140080b3c
cmp byte [rcx + 0x19], 2
jb 0x140080b3c
mov rcx, qword [rcx + 0x10]
lea r8, [0x140008c80]
movzx r9d, ax
mov edx, 0xc
call fcn.1400100e0
movzx ecx, di
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140080b4c
mov ebx, 1
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14008c5b0
add rsp, 0x250
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140080b74
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x680
mov rax, qword [0x14009e140]
xor rax, rsp
mov qword [rsp + 0x670], rax
mov rbx, rcx
mov edi, 0x208
lea rcx, [r11 - 0x226]
xor ebp, ebp
xor edx, edx
mov r8, rdi
mov word [rsp + 0x460], bp
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x42]
mov r8, rdi
xor edx, edx
mov word [rsp + 0x40], bp
call sub.msvcrt.dll_memset
lea r8d, [rdi - 2]
lea rcx, [rsp + 0x252]
xor edx, edx
mov word [rsp + 0x250], bp
call sub.msvcrt.dll_memset
mov dword [rsp + 0x34], 0x20a
cmp rbx, rbp
je 0x140080db8
lea r9d, [rbp + 1]
lea rdx, [0x14000d668]
mov rcx, 0xffffffff80000001
mov r8d, r9d
mov word [rbx], bp
call fcn.14007ac98
mov rdi, rax
cmp rax, rbp
je 0x140080db8
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
lea rdx, [0x14000d820]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x20], rax
invalid
invalid
invalid
invalid
Function at 0x140005870
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 0x140005892
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 0x14000590c
mov rdi, r14
mov rcx, rbx
call fcn.140007d40
test rax, rax
jle 0x1400058e4
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.1400101e0
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 0x1400058fc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140005904
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1400058a6
sub r14, rdi
jmp 0x1400059ef
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140005923
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140005925
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140005957
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1400101e0
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 0x1400059ec
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140005992
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 0x1400059cd
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14001853c
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1400059ec
cmp rbp, rax
ja 0x1400059a0
test rbp, rbp
je 0x1400059ec
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14001853c
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 0x14000ef24
Capabilities:
Parse pe header

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

Function at 0x14001d998
Capabilities:
Parse pe header

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