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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400afb70]
mov dword [rax], 1
mov rax, qword [str._b__f_]
mov dword [rax], 1
mov rax, qword [str._f__f_]
mov dword [rax], 1
mov rax, qword [0x1400afaf0]
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 0x14002b610
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.14008cbd0
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 0x14002b6d5
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 0x14009da52
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14002b6b6
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x14002b6a8
test rsi, rsi
je 0x14009da52
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x14002b668
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 0x14002b704
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

Function at 0x14002b720
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 0x14002b7dd
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 0x14009da58
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14002b7be
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x14002b7b0
test rsi, rsi
je 0x14009da58
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x14002b770
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 0x140042330
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 [0x1400c19d8]
mov rsi, rcx
test rbx, rbx
je 0x1400423b0
mov rax, qword [0x1400afcb0]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x1400423a0
mov rdx, qword [0x1400c1c08]
test rdx, rdx
je 0x1400424a8
mov rcx, rbx
mov rbx, qword [sym.imp.python38.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.python38.dll_PyNumber_InPlaceAdd]
jmp 0x140042381
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.14002b610
test rax, rax
je 0x1400424c8
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python38.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 0x14009db00
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x14004244e
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x140042440
test rbx, rbx
je 0x14009db00
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 0x140042400
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python38.dll__PyRuntime]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rax + 0x510]
call fcn.140042270
mov rbx, rax
mov qword [0x1400c19d8], rbx
jmp 0x140042352
lea rcx, [0x1400ac2c0]
call qword [sym.imp.python38.dll_PyUnicode_FromString]
mov qword [0x1400c1c08], rax
mov rdx, rax
jmp 0x140042372
mov rbx, qword [0x1400c19f0]
test rbx, rbx
jne 0x140042496
cmp byte [0x1400c1c02], 0
je 0x140042506
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400c1a00]
call qword [sym.imp.python38.dll_PyUnicode_FromWideChar]
mov qword [0x1400c19f0], rax
mov rbx, rax
test rax, rax
je 0x140042512
add qword [rax], 1
jmp 0x140042496
mov ecx, 1
call fcn.14002c280
jmp 0x1400424dd
call qword [sym.imp.python38.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop
call sub.msvcrt.dll_abort
nop
Function at 0x140044420
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.14002b610
test rax, rax
je 0x140044580
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python38.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 0x14009db1e
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x1400444d6
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x1400444c8
test rbx, rbx
je 0x14009db1e
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 0x140044488
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python38.dll__PyRuntime]
mov rdx, qword [0x1400c2340]
mov rsi, qword [rax + 0x510]
mov rax, qword [0x1400afcb0]
mov rbx, qword [rax + 0x1c0]
test rdx, rdx
je 0x1400445d0
mov r8, rbx
mov rcx, rsi
call fcn.14002f410
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.14003f390
sub qword [rbx], 1
jne 0x140044564
mov rdx, qword [rbx + 8]
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [rdx + 0x30]
mov rax, qword [rsp + 0x28]
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x1400c19e8]
lea rsi, [0x1400c19e8]
test bl, bl
je 0x1400445a0
mov rax, qword [0x1400c19f0]
lea rsi, [0x1400c19f0]
test rax, rax
jne 0x140044564
cmp byte [0x1400c1c02], 0
je 0x1400445fd
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400c1a00]
call qword [sym.imp.python38.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x140044607
add qword [rax], 1
jmp 0x140044564
mov rdx, qword [0x1400c22b8]
mov rdi, qword [rax + 0x1b0]
test rdx, rdx
je 0x140044612
mov r8, rdi
mov rcx, rsi
call fcn.14002f410
mov qword [0x1400c2340], rax
mov rdx, rax
jmp 0x14004452e
movzx ecx, bl
call fcn.14002c280
jmp 0x1400445ae
call qword [sym.imp.python38.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x1400a7f7e]
call qword [sym.imp.python38.dll_PyImport_ImportModule]
mov qword [0x1400c22b8], rax
mov rdx, rax
test rax, rax
je 0x14009db1e
jmp 0x1400445e3
Function at 0x140083160
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp byte [0x1400c19d1], 0
mov rbp, rcx
mov rdi, rdx
mov r12, r8
je 0x140083208
lea rdx, [0x1400abb72]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140083270
mov rbx, qword [0x1400c1878]
jmp 0x1400831ad
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 0x1400831a8
movzx eax, word [rdx + 4]
lea r8, [rdx + 6]
test ax, ax
je 0x1400831f7
lea rbx, [rdi + rax*8]
nop
mov rdx, rdi
mov rcx, rbp
add rdi, 8
call fcn.140072500
mov r8, rax
cmp rdi, rbx
jne 0x1400831e0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
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 [0x1400c1878], rax
mov ebx, dword [rax]
mov qword [0x1400c1878], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1400c1878], rdx
call fcn.140082290
cmp eax, ebx
jne 0x14008330a
mov byte [0x1400c19d1], 1
jmp 0x140083182
cmp byte [0x1400c19d0], 0
jne 0x140083199
mov rbx, qword [sym.imp.python38.dll_PyDict_New]
lea rsi, [0x1400c1068]
call rbx
mov qword [0x1400c2548], rax
call rbx
mov qword [0x1400c2540], rax
call rbx
mov qword [0x1400c2538], rax
call rbx
mov qword [0x1400c2530], rax
call rbx
mov qword [0x1400c2528], rax
call rbx
mov qword [0x1400c2520], rax
call rbx
mov qword [0x1400c2518], rax
call rbx
mov r13, qword [sym.imp.python38.dll_PyLong_FromLong]
mov rbx, 0xfffffffffffffffb
mov qword [0x1400c2510], rax
nop dword [rax]
mov ecx, ebx
call r13
mov qword [rsi + rbx*8], rax
add rbx, 1
cmp rbx, 0x101
jne 0x1400832e8
mov byte [0x1400c19d0], 1
jmp 0x140083199
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x14008b8b0
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.14009cfa0
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.14009cfa0
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 0x14008c582
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400c29a8]
test eax, eax
je 0x14008c61a
lea rax, [0x1400c2980]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400c29b0]
mov qword [rbp - 8], rax
jmp 0x14008c5fe
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 0x14008c5f2
cmp qword [rbp - 0x10], 0
je 0x14008c5f2
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 0x14008c5b8
lea rax, [0x1400c2980]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14008c61b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14008c720
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 0x14008c748
mov eax, 0
jmp 0x14008c796
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 0x14008c771
mov eax, 0
jmp 0x14008c796
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 0x14008c791
mov eax, 0
jmp 0x14008c796
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14008c79c
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 0x14008c81a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14008c811
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 0x14008c811
mov rax, qword [rbp - 8]
jmp 0x14008c82f
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 0x14008c7e4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140003fe4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x10
lea r10, [0x140086900]
xor ebx, ebx
mov r8, r10
mov edx, ebx
mov r9d, 8
mov ecx, edx
mov eax, edx
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xedb88320
mov edx, ecx
xor edx, eax
sub r9, 1
jne 0x140003ffe
mov dword [r8], edx
inc ebx
add r8, 4
cmp ebx, 0x100
jb 0x140003ff6
lea rbx, [0x140086d00]
mov r8d, 0x700
mov edx, dword [rbx - 0x400]
movzx ecx, dl
shr edx, 8
xor edx, dword [r10 + rcx*4]
mov dword [rbx], edx
lea rbx, [rbx + 4]
sub r8, 1
jne 0x140004037
xor ecx, ecx
lea rax, [0x140004130]
mov qword [0x1400868f8], rax
mov r11d, 0xf00
xor eax, eax
cpuid
mov r8d, ebx
mov r9d, ecx
mov r10d, edx
xor ecx, ecx
mov eax, 1
cpuid
mov ebx, eax
mov ecx, eax
shr ebx, 8
and eax, 0xf0
mov edx, ebx
and ecx, r11d
and edx, 0xff000
and ebx, r11d
or ebx, eax
or edx, ecx
shr edx, 8
lea rax, [0x14004b340]
shr ebx, 4
xor ecx, ecx
cmp dword [rax - 8], r8d
jne 0x1400040bd
cmp dword [rax - 4], r10d
jne 0x1400040bd
cmp dword [rax], r9d
je 0x1400040ca
inc ecx
add rax, 0xc
cmp ecx, 3
jae 0x140004121
jmp 0x1400040ac
test ecx, ecx
je 0x1400040f7
sub ecx, 1
je 0x1400040e4
cmp ecx, 1
jne 0x140004121
cmp edx, 6
jb 0x140004121
jne 0x140004113
cmp ebx, 0xf
jmp 0x140004111
cmp edx, 5
jb 0x140004121
jne 0x140004113
cmp ebx, 6
jb 0x140004121
cmp ebx, 0xa
je 0x140004121
jmp 0x140004113
cmp edx, 6
jb 0x140004121
jne 0x140004113
cmp ebx, 0x36
ja 0x140004113
movabs rcx, 0x6000c010000000
bt rcx, rbx
jb 0x140004121
lea rax, [0x140004200]
mov qword [0x1400868f8], rax
add rsp, 0x10
pop rbx
ret

Function at 0x1400052e4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rbx, qword [r8]
mov rdi, r8
mov rsi, rdx
mov r14, rcx
test rbx, rbx
je 0x140005352
and qword [r8], 0
mov r15d, 0x400000
and dword [rsp + 0x60], 0
lea r9, [rsp + 0x60]
mov rcx, qword [r14]
mov r8d, ebx
cmp rbx, r15
mov rdx, rsi
cmova r8d, r15d
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0x60]
add qword [rdi], rdx
add rsi, rdx
sub rbx, rdx
test eax, eax
je 0x140005368
test edx, edx
je 0x140005352
test rbx, rbx
jne 0x140005312
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140005354
Function at 0x140005370
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rbx, qword [r8]
mov rdi, r8
mov rsi, rdx
mov r14, rcx
test rbx, rbx
je 0x1400053de
and qword [r8], 0
mov r15d, 0x400000
and dword [rsp + 0x60], 0
lea r9, [rsp + 0x60]
mov rcx, qword [r14]
mov r8d, ebx
cmp rbx, r15
mov rdx, rsi
cmova r8d, r15d
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [rsp + 0x60]
add qword [rdi], rdx
add rsi, rdx
sub rbx, rdx
test eax, eax
je 0x1400053f4
test edx, edx
je 0x1400053de
test rbx, rbx
jne 0x14000539e
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400053e0
Function at 0x1400099dc
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x188]
sub rsp, 0x260
mov rax, qword [0x140076010]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov r15, r8
xor r13d, r13d
mov qword [r8], r13
mov r9d, 0x104
lea rdx, [rsp + 0x40]
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x140009a51
movzx eax, word [rcx + rdx]
test ax, ax
je 0x140009a51
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x140009a2f
lea rax, [rdx - 2]
test r9, r9
cmovne rax, rdx
mov word [rax], r13w
lea r8, [0x14004e990]
lea rcx, [rsp + 0x40]
call fcn.140007fbc
lea r8, [rsp + 0x40]
xor edx, edx
mov ebx, 0x1f0003
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rdi, rax
mov qword [rsp + 0x28], rax
test rax, rax
setne r12b
test rax, rax
jne 0x140009ac0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140009bb3
mov rcx, qword [rbp + 0x188]
mov edx, 0xcd
call fcn.140009824
mov esi, eax
jmp 0x140009bb6
mov dword [rsp + 0x24], r13d
mov dword [rsp + 0x20], r13d
lea rdx, [rsp + 0x24]
mov rcx, rdi
call fcn.14000989c
mov esi, eax
test eax, eax
jns 0x140009af6
mov rcx, qword [rbp + 0x188]
mov r9d, eax
mov edx, 0xd3
call fcn.140009804
jmp 0x140009bb6
lea r8, [0x14004e998]
lea rcx, [rsp + 0x40]
call fcn.140007fbc
lea r8, [rsp + 0x40]
xor edx, edx
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
setne r14b
test rax, rax
jne 0x140009b3f
mov rcx, qword [rbp + 0x188]
mov edx, 0xd9
call fcn.140009824
mov esi, eax
jmp 0x140009b67
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14000989c
mov esi, eax
test eax, eax
jns 0x140009b86
mov rcx, qword [rbp + 0x188]
mov r9d, eax
mov edx, 0xdb
call fcn.140009804
nop
test r14b, r14b
je 0x140009bb6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x188]
test eax, eax
je 0x140009c0c
jmp 0x140009bb6
test r14b, r14b
je 0x140009b9f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x188]
test eax, eax
je 0x140009c17
movsxd rcx, dword [rsp + 0x20]
shl rcx, 0x1f
movsxd rax, dword [rsp + 0x24]
or rax, rcx
mov qword [r15], rax
mov esi, r13d
test r12b, r12b
je 0x140009bcf
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x188]
test eax, eax
je 0x140009c01
mov eax, esi
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.140042f10
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov edx, 0x9cd
call fcn.140009840
nop
mov edx, 0x9cd
call fcn.140009840
nop
mov edx, 0x9cd
call fcn.140009840
int3
Function at 0x14000be30
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x250
movaps xmmword [rax - 0x18], xmm6
mov rax, qword [0x140076010]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor ebp, ebp
mov rsi, rcx
xor eax, eax
lock cmpxchg dword [0x140086420], ebp
mov ecx, eax
jne 0x14000bea7
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14000be9a
lea rdx, str.RemoveDllDirectory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [rbp + 2]
test rax, rax
jne 0x14000be9f
mov ecx, 1
mov eax, ecx
xchg dword [0x140086420], eax
cmp ecx, 1
jne 0x14000bf19
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14000bf8d
cmp word [rsp + 0x20], bp
je 0x14000bf8d
lea rcx, [rsp + 0x20]
call fcn.14000a304
mov rdi, rax
test rax, rax
je 0x14000bf8d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14000bf31
xor edx, edx
lea rcx, str.User32.dll
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rbx, rbx
je 0x14000bf8d
mov rcx, rsi
call qword [sym.imp.USER32.dll_IsWindow]
mov rcx, rbx
test eax, eax
je 0x14000bf63
lea rdx, str.GetDpiForWindow
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000bf8d
mov rcx, rsi
call qword [case.0x1400118dc.0]
jmp 0x14000bf7b
lea rdx, str.GetDpiForSystem
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000bf8d
call qword [case.0x1400118dc.0]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x140056a18]
jmp 0x14000bfc4
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rcx, rax
mov edx, 0x58
mov rbx, rax
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov rdx, rbx
xor ecx, ecx
movd xmm6, eax
cvtdq2pd xmm6, xmm6
call qword [sym.imp.USER32.dll_ReleaseDC]
divsd xmm6, qword [0x140056a18]
movaps xmm0, xmm6
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140042f10
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop rdi
ret