joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400cb400]
mov dword [rax], 1
mov rax, qword [0x1400cb410]
mov dword [rax], 1
mov rax, qword [0x1400cb420]
mov dword [rax], 1
mov rax, qword [0x1400cb3a0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14002d8e0
Capabilities:
Query environment variable

Disassembly:
push r15
mov eax, 0x10088
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.1400a7640
sub rsp, rax
xor edx, edx
mov rbp, rcx
xor ecx, ecx
mov word [rsp + 0x80], dx
lea r15, [rsp + 0x30]
movzx eax, byte [rbp]
mov word [rsp + 0x30], cx
test al, al
je 0x14002d9a5
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1400b8542
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14002d986
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x14002d978
test rsi, rsi
je 0x1400b8542
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x14002d938
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x14002d9d4
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10088
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
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
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
mov rax, qword [8]
ud2

Function at 0x14002d9f0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
movzx eax, byte [rcx]
mov qword [rsp + 0xd8], rdx
xor edx, edx
mov rbp, rcx
lea r15, [rsp + 0x30]
mov word [rsp + 0x30], dx
test al, al
je 0x14002daad
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1400b8548
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14002da8e
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x14002da80
test rsi, rsi
je 0x1400b8548
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x14002da40
mov rdx, qword [rsp + 0xd8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14004c8b0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rbx, qword [0x1400dc4b0]
mov rsi, rcx
test rbx, rbx
je 0x14004c930
mov rax, qword [0x1400cb550]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x14004c920
mov rdx, qword [0x1400dc6e8]
test rdx, rdx
je 0x14004ca20
mov rcx, rbx
mov rbx, qword [sym.imp.python312.dll_PyNumber_InPlaceAdd]
call rbx
mov rcx, rax
mov rdx, rsi
mov rax, rbx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp rax
mov rbx, qword [sym.imp.python312.dll_PyNumber_InPlaceAdd]
jmp 0x14004c901
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.14002d8e0
test rax, rax
je 0x14004ca40
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r13, r14
lea r12, [r15 + 0x28]
mov word [rsp + 0x40], cx
lea rbp, [rsp + 0x3a]
lea rdi, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov eax, 0x4e
nop
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, r15
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1400b85e2
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x14004c9ce
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x14004c9c0
test rbx, rbx
je 0x1400b85e2
mov word [rax], dx
add r15, 1
xor edx, edx
add r13, 2
mov word [rax + 2], dx
movzx eax, byte [r15]
test al, al
jne 0x14004c980
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python312.dll_PyThreadState_Get]
mov rdx, qword [rsp + 0x28]
mov rcx, rax
call fcn.14004c740
mov rbx, rax
mov qword [0x1400dc4b0], rbx
jmp 0x14004c8d2
lea rcx, [0x1400c7a92]
call qword [sym.imp.python312.dll_PyUnicode_FromString]
mov qword [0x1400dc6e8], rax
mov rdx, rax
jmp 0x14004c8f2
mov rbx, qword [0x1400dc4c8]
test rbx, rbx
jne 0x14004ca11
cmp byte [0x1400dc6e2], 0
je 0x14004ca83
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400dc4e0]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [0x1400dc4c8], rax
mov rbx, rax
test rax, rax
je 0x14004ca8f
mov eax, dword [rax]
add eax, 1
je 0x14004ca11
mov dword [rbx], eax
jmp 0x14004ca11
mov ecx, 1
call fcn.14002e560
jmp 0x14004ca55
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop dword [rax + rax]
call sub.msvcrt.dll_abort
nop
Function at 0x14004d310
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.14002d8e0
test rax, rax
je 0x14004d460
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 0x1400b85fa
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x14004d3c6
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x14004d3b8
test rbx, rbx
je 0x1400b85fa
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 0x14004d378
mov rcx, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python312.dll_PyThreadState_Get]
mov rcx, qword [0x1400dce20]
mov rsi, rax
mov rax, qword [0x1400cb550]
mov rbx, qword [rax + 0x1c0]
test rcx, rcx
je 0x14004d4cd
mov rdx, rbx
call fcn.14001dfb0
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.140040ee0
mov rdx, qword [rbx]
test edx, edx
js 0x14004d442
sub rdx, 1
mov qword [rbx], rdx
je 0x14004d4b5
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x1400dc4c0]
lea rsi, [0x1400dc4c0]
test bl, bl
je 0x14004d480
mov rax, qword [0x1400dc4c8]
lea rsi, [0x1400dc4c8]
test rax, rax
jne 0x14004d442
cmp byte [0x1400dc6e2], 0
je 0x14004d4f7
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400dc4e0]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x14004d501
mov edx, dword [rax]
add edx, 1
je 0x14004d442
mov dword [rax], edx
jmp 0x14004d442
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [sym.imp.python312.dll__Py_Dealloc]
mov rax, qword [rsp + 0x28]
jmp 0x14004d442
mov rcx, qword [0x1400dcd98]
mov rdi, qword [rax + 0x1b0]
test rcx, rcx
je 0x14004d50c
mov rdx, rdi
call fcn.14001dfb0
mov qword [0x1400dce20], rax
mov rcx, rax
jmp 0x14004d419
movzx ecx, bl
call fcn.14002e560
jmp 0x14004d48e
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x1400c2673]
call qword [sym.imp.python312.dll_PyImport_ImportModule]
mov qword [0x1400dcd98], rax
mov rcx, rax
test rax, rax
je 0x1400b85fa
jmp 0x14004d4e0
Function at 0x1400a3d50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400dc4a1], 0
mov rbp, rcx
mov rdi, rdx
mov r12, r8
je 0x1400a3df8
lea rdx, [0x1400c736a]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400a3e60
mov rbx, qword [0x1400dc340]
jmp 0x1400a3d95
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 0x1400a3d90
movzx eax, word [rdx + 4]
lea r8, [rdx + 6]
test ax, ax
je 0x1400a3de7
lea rbx, [rdi + rax*8]
nop word cs:[rax + rax]
mov rdx, rdi
mov rcx, rbp
add rdi, 8
call fcn.140093d50
mov r8, rax
cmp rdi, rbx
jne 0x1400a3dd0
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 [0x1400dc340], rax
mov ebx, dword [rax]
mov qword [0x1400dc340], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1400dc340], rdx
call fcn.1400a2e80
cmp eax, ebx
jne 0x1400a3ec8
mov byte [0x1400dc4a1], 1
jmp 0x1400a3d70
cmp byte [0x1400dc4a0], 0
jne 0x1400a3d87
mov rbx, qword [sym.imp.python312.dll_PyDict_New]
call rbx
mov qword [0x1400dd048], rax
call rbx
mov qword [0x1400dd040], rax
call rbx
mov qword [0x1400dd038], rax
call rbx
mov qword [0x1400dd030], rax
call rbx
mov qword [0x1400dd028], rax
call rbx
mov qword [0x1400dd020], rax
call rbx
mov qword [0x1400dd018], rax
call rbx
mov byte [0x1400dc4a0], 1
mov qword [0x1400dd010], rax
jmp 0x1400a3d87
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x1400a6320
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.1400b7aa0
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.1400b7aa0
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 0x1400a6ff2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400dd508]
test eax, eax
je 0x1400a708a
lea rax, [0x1400dd4e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400dd510]
mov qword [rbp - 8], rax
jmp 0x1400a706e
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 0x1400a7062
cmp qword [rbp - 0x10], 0
je 0x1400a7062
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 0x1400a7028
lea rax, [0x1400dd4e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400a708b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400a7190
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 0x1400a71b8
mov eax, 0
jmp 0x1400a7206
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 0x1400a71e1
mov eax, 0
jmp 0x1400a7206
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 0x1400a7201
mov eax, 0
jmp 0x1400a7206
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1400a720c
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 0x1400a728a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400a7281
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 0x1400a7281
mov rax, qword [rbp - 8]
jmp 0x1400a729f
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 0x1400a7254
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000c3b0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x14000c3d5
cmp rax, rcx
je 0x14000c3db
cmp rdx, 4
jae 0x14000c3e2
xor eax, eax
xor r8d, r8d
jmp 0x14000c480
pop rbp
jmp fcn.140005680
xor eax, eax
jmp 0x14000c497
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14001c390]
movdqa xmm3, xmmword [0x14001c3a0]
pxor xmm1, xmm1
nop word cs:[rax + rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x14000c410
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14000c497
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14000c480
pop rbp
ret
Function at 0x140013310
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
movzx r9d, byte [rdx + 0x38]
cmp byte [rcx - 0x80], al
stc
add dword [rsi + 7], esi
movzx r8d, byte [rdx + 0x3a]
test r8b, 1
jne 0x14001337e
movzx eax, byte [rdx + 0x10]
lea r10d, [rax - 5]
Function at 0x140019ac4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x140019b0e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140019b0e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140019b0e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140019b0e
cmp dword [rcx + 0x84], 0xe
jbe 0x140019b0e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140019b10
xor al, al
add rsp, 0x28
ret
Function at 0x14000acd0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0xbd0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rax, qword [0x140036080]
xor rax, rsp
mov qword [rsp + 0xbc0], rax
mov edx, 0x409
mov rcx, qword [0x140038638]
call qword [0x14002e3a0]
mov r12, rax
mov qword [rsp + 0x278], 7
add al, byte [rax]
add byte [rdi], al
add byte [rax], al
add byte [rbp + 0x33], al
in eax, dx
Function at 0x140017ed0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
xor ecx, ecx
mov rdi, r8
mov rbx, rdx
call qword [0x14002e548]
mov rcx, qword [0x140038630]
xor r9d, r9d
lea rax, [rsp + 0x80]
lea edx, [r9 + 0x11]
xor r8d, r8d
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x20], rax
call qword [0x14002e388]
mov rax, qword [rsp + 0x80]
xor r11d, r11d
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], r11
mov qword [rsp + 0x38], rax
mov rax, qword [0x140038630]
mov qword [rsp + 0x40], r11
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x50], r11
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x58], r11
mov qword [rsp + 0x60], r11
mov qword [rsp + 0x68], r11
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], 0x11
call qword [0x14002e378]
mov rbx, rax
test rax, rax
je 0x140017f96
mov rdx, rdi
mov rcx, rax
call qword [0x14002e380]
mov rcx, rbx
call qword [0x14002e538]
mov rcx, qword [rsp + 0x80]
call qword [0x14002e538]
call qword [0x14002e540]
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x140018b50
Capabilities:
Get file version info

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x270
mov rax, qword [0x140036080]
xor rax, rsp
mov qword [rsp + 0x250], rax
cmp qword [rcx + 0x20], 8
mov r15, qword [rsp + 0x2d0]
mov r14, r9
mov r13, r8
mov r12, rdx
mov rbx, rcx
jb 0x140018b9a
lea rdi, [rcx + 8]
mov rcx, qword [rcx + 8]
jmp 0x140018ba1
lea rdi, [rcx + 8]
mov rcx, rdi
lea rdx, [rsp + 0x30]
call fcn.14001b2fe
mov esi, eax
test eax, eax
je 0x140018d76
mov rcx, rsi
mov qword [rsp + 0x268], rbp
call fcn.14001b514
cmp qword [rbx + 0x20], 8
mov rbp, rax
jb 0x140018bd2
mov rdi, qword [rdi]
mov r9, rax
mov r8d, esi
xor edx, edx
mov rcx, rdi
call fcn.14001b304
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
lea rdx, [0x1400305e8]
mov rcx, rbp
call fcn.14001b30a
test eax, eax
je 0x140018d10
mov rax, qword [rsp + 0x28]
lea r8, [0x1400312e8]
lea rcx, [rsp + 0x40]
mov ebx, dword [rax + 8]
mov esi, dword [rax + 0xc]
mov edx, 0x104
mov r9d, ebx
shr r9d, 0x10
call fcn.14001b7e8
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
lea rdx, [rsp + 0x40]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r12
call fcn.140008100
lea r8, [0x1400312e8]
lea rcx, [rsp + 0x40]
movzx r9d, bx
mov edx, 0x104
call fcn.14001b7e8
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
lea rdx, [rsp + 0x40]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r13
call fcn.140008100
mov r9d, esi
lea r8, [0x1400312e8]
lea rcx, [rsp + 0x40]
shr r9d, 0x10
mov edx, 0x104
call fcn.14001b7e8
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
lea rdx, [rsp + 0x40]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r14
call fcn.140008100
lea r8, [0x1400312e8]
lea rcx, [rsp + 0x40]
movzx r9d, si
mov edx, 0x104
call fcn.14001b7e8
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
lea rdx, [rsp + 0x40]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r15
call fcn.140008100
mov rcx, rbp
call fcn.14001c890
mov al, 1
jmp 0x140018d6e
lea rdx, [0x140030ca8]
mov r8d, 1
mov rcx, r12
call fcn.140008100
lea rdx, [0x140030ca8]
mov r8d, 1
mov rcx, r13
call fcn.140008100
lea rdx, [0x140030ca8]
mov r8d, 1
mov rcx, r14
call fcn.140008100
lea rdx, [0x140030ca8]
mov r8d, 1
mov rcx, r15
call fcn.140008100
mov rcx, rbp
call fcn.14001c890
xor al, al
mov rbp, qword [rsp + 0x268]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14001b530
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x140018e40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x280
mov rax, qword [0x140036080]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rcx
call qword [0x14002e0f8]
mov r11d, eax
cmp eax, 0xffffffff
jne 0x140018e94
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [0x14002e258]
cmp rax, 0xffffffffffffffff
jne 0x140018e86
or r11d, 0xffffffff
jmp 0x140018e94
mov rcx, rax
call qword [0x14002e158]
mov r11d, dword [rsp + 0x20]
cmp r11d, 0xffffffff
setne al
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14001b530
add rsp, 0x280
pop rbx
ret
Function at 0x140018ec0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov rbx, rdx
mov rdx, qword [r9 + 0x20]
mov rsi, r9
mov r12, r8
cmp rdx, 8
jb 0x140018ee9
mov rdi, qword [r9 + 8]
lea rcx, [r9 + 8]
jmp 0x140018ef0
lea rcx, [r9 + 8]
mov rdi, rcx
mov rax, qword [r9 + 0x18]
lea r8, [rdi + rax*2]
cmp rdx, 8
jb 0x140018f03
mov rax, qword [rcx]
jmp 0x140018f06
mov rax, rcx
cmp rdx, 8
jb 0x140018f0f
mov rcx, qword [rcx]
xor r13d, r13d
test rax, rax
jne 0x140018f1c
mov rdx, r13
jmp 0x140018f25
mov rdx, rax
sub rdx, rcx
sar rdx, 1
test r8, r8
jne 0x140018f2f
mov r8, r13
jmp 0x140018f35
sub r8, rax
sar r8, 1
mov rcx, r9
call fcn.140008370
cmp qword [rbx + 0x20], 8
jb 0x140018f4a
mov rdx, qword [rbx + 8]
jmp 0x140018f4e
lea rdx, [rbx + 8]
lea rax, [rsp + 0x78]
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [0x14002e038]
test eax, eax
jne 0x14001907a
cmp qword [r12 + 0x20], 8
mov dword [rsp + 0x68], r13d
jb 0x140018f8f
mov rdx, qword [r12 + 8]
lea rdi, [r12 + 8]
jmp 0x140018f97
lea rdi, [r12 + 8]
mov rdx, rdi
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], r13
call qword [0x14002e020]
test eax, eax
je 0x140018fd2
mov rcx, qword [rsp + 0x78]
call qword [0x14002e028]
add rsp, 0x30
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov ebx, dword [rsp + 0x68]
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x70], r14
test ebx, ebx
je 0x140018fe6
shr ebx, 1
lea ecx, [rbx + 1]
mov eax, 2
mov r14, 0xffffffffffffffff
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.14001b514
mov ecx, ebx
mov word [rax + rcx*2], r13w
cmp qword [r12 + 0x20], 8
mov rbp, rax
jb 0x140019019
mov rdi, qword [rdi]
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rbp
call qword [0x14002e020]
test eax, eax
jne 0x14001905d
xor eax, eax
mov rcx, r14
mov rdi, rbp
repne scasw ax, word [rdi]
mov rdx, rbp
not rcx
lea r8, [rcx - 1]
mov rcx, rsi
call fcn.140008100
mov rcx, rbp
call fcn.14001c890
mov rcx, qword [rsp + 0x78]
call qword [0x14002e028]
mov r14, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret