joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003e3a0
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.140026130
test rax, rax
je 0x14003e500
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python310.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 0x1400999ae
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x14003e456
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x14003e448
test rbx, rbx
je 0x1400999ae
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 0x14003e408
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rdx, qword [0x1400bb7a0]
mov rsi, qword [rax + 0x1f0]
mov rax, qword [0x1400aa970]
mov rbx, qword [rax + 0x1c0]
test rdx, rdx
je 0x14003e558
mov r8, rbx
mov rcx, rsi
call fcn.140028ce0
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.14003a1c0
sub qword [rbx], 1
jne 0x14003e4e4
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 [0x1400bb060]
lea rsi, [0x1400bb060]
test bl, bl
je 0x14003e520
mov rax, qword [0x1400bb068]
lea rsi, [0x1400bb068]
test rax, rax
jne 0x14003e4e4
cmp byte [0x1400bb282], 0
jne 0x14003e536
movzx ecx, bl
call fcn.1400067d0
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400bb080]
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x14003e585
add qword [rax], 1
jmp 0x14003e4e4
mov rdx, qword [0x1400bb718]
mov rdi, qword [rax + 0x1b0]
test rdx, rdx
je 0x14003e590
mov r8, rdi
mov rcx, rsi
call fcn.140028ce0
mov qword [0x1400bb7a0], rax
mov rdx, rax
jmp 0x14003e4ae
call qword [sym.imp.python310.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x1400a3456]
call qword [sym.imp.python310.dll_PyImport_ImportModule]
mov qword [0x1400bb718], rax
mov rdx, rax
test rax, rax
je 0x1400999ae
jmp 0x14003e56b
Function at 0x14007ef90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400bb049], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x14007f018
lea rdx, [0x1400a66fa]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x14007f080
mov rbx, qword [0x1400baee8]
jmp 0x14007efd5
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, rdi
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 0x14007efd0
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, rbp
mov rdx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.14006e1c0
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 [0x1400baee8], rax
mov ebx, dword [rax]
mov qword [0x1400baee8], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1400baee8], rdx
call fcn.14007e0c0
cmp eax, ebx
jne 0x14007f107
mov byte [0x1400bb049], 1
jmp 0x14007efac
cmp byte [0x1400bb048], 0
jne 0x14007efc3
mov rbx, qword [sym.imp.python310.dll_PyDict_New]
call rbx
mov qword [0x1400bb9a8], rax
call rbx
mov qword [0x1400bb9a0], rax
call rbx
mov qword [0x1400bb998], rax
call rbx
mov qword [0x1400bb990], rax
call rbx
mov qword [0x1400bb988], rax
call rbx
mov qword [0x1400bb980], rax
call rbx
mov qword [0x1400bb978], rax
call rbx
mov byte [0x1400bb048], 1
mov qword [0x1400bb970], rax
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rax, qword [rax + 0x10]
add rax, 0xda0
mov qword [0x1400baee0], rax
jmp 0x14007efc3
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400876b0
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.140098e30
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.140098e30
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 0x140088382
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400bbe68]
test eax, eax
je 0x14008841a
lea rax, [0x1400bbe40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400bbe70]
mov qword [rbp - 8], rax
jmp 0x1400883fe
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 0x1400883f2
cmp qword [rbp - 0x10], 0
je 0x1400883f2
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 0x1400883b8
lea rax, [0x1400bbe40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14008841b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140088520
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 0x140088548
mov eax, 0
jmp 0x140088596
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 0x140088571
mov eax, 0
jmp 0x140088596
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 0x140088591
mov eax, 0
jmp 0x140088596
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14008859c
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 0x14008861a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140088611
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 0x140088611
mov rax, qword [rbp - 8]
jmp 0x14008862f
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 0x1400885e4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400c8f41
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x140131560
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp], 0
jmp 0x140131588
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp], rax
jae 0x1401315d2
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rsp + 0x20]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
movabs rax, 0x100000001b3
mov rcx, qword [rsp + 0x20]
imul rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
jmp 0x14013157d
mov rax, qword [rsp + 0x20]
add rsp, 0x18
ret
Function at 0x1400ca706
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140187830
mov rax, rcx
neg rcx
test rax, 7
je 0x14018784d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1401878a8
test al, 7
jne 0x140187840
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x140187861
mov rdx, qword [rax - 8]
test dl, dl
je 0x1401878d2
test dh, dh
je 0x1401878cc
shr rdx, 0x10
test dl, dl
je 0x1401878c6
test dh, dh
je 0x1401878c0
shr rdx, 0x10
test dl, dl
je 0x1401878ba
test dh, dh
je 0x1401878b4
shr edx, 0x10
test dl, dl
je 0x1401878ae
test dh, dh
jne 0x140187861
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1400ca73d
Capabilities:
Query environment variable

Disassembly:
jmp 0x14023aa10
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14023a590
lea rcx, [rsp + 0x20]
call fcn.14023a5e0
movzx eax, al
test eax, eax
jne 0x14023aa55
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.14023a5c0
mov rax, qword [rsp + 0x40]
jmp 0x14023ab4f
lea rcx, [rsp + 0x20]
call fcn.14023a6e0
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.14023a680
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, rax
call fcn.1400caae4
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400ca062
lea rcx, [rsp + 0x28]
call fcn.1400cb007
movzx eax, al
test eax, eax
jne 0x14023aaef
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1400cc5c4
lea rcx, [rsp + 0x20]
call fcn.14023a5c0
mov rax, qword [rsp + 0x50]
jmp 0x14023ab4f
lea rcx, [rsp + 0x20]
call fcn.14023a6e0
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1400cd64a
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.1400caa2b
lea rcx, [rsp + 0x28]
call fcn.1400ce06d
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1400cc5c4
lea rcx, [rsp + 0x20]
call fcn.14023a5c0
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x1400cac9c
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1401859e0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140185360
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140185a1f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1402dd020]
jmp 0x140185a29
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x1400caf2b
Capabilities:
Query environment variable

Disassembly:
jmp 0x14023a760
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14023a590
lea rcx, [rsp + 0x40]
call fcn.14023a710
movzx eax, al
test eax, eax
jne 0x14023a7a8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.14023a5c0
mov rax, qword [rsp + 0x70]
jmp 0x14023a979
lea rcx, [rsp + 0x40]
call fcn.14023a6e0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.14023a680
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.14023a6e0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.1400cc1d2
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14023a84e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.14023a5c0
mov rax, qword [rsp + 0x80]
jmp 0x14023a979
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400caae4
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400ca8b9
lea rcx, [rsp + 0x48]
call fcn.1400ca2a1
movzx eax, al
test eax, eax
jne 0x14023a8b5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400c8dbb
lea rcx, [rsp + 0x40]
call fcn.14023a5c0
mov rax, qword [rsp + 0x88]
jmp 0x14023a979
lea rcx, [rsp + 0x48]
call fcn.1400cb46c
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.14023a6e0
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.1400cc1d2
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14023a94b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400c8dbb
lea rcx, [rsp + 0x40]
call fcn.14023a5c0
mov rax, qword [rsp + 0xa0]
jmp 0x14023a979
lea rcx, [rsp + 0x48]
call fcn.1400ca86e
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400c8dbb
lea rcx, [rsp + 0x40]
call fcn.14023a5c0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x1400caf44
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140185910
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1401852e0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140185951
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1402dd020]
jmp 0x140185957
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x1400cb011
Capabilities:
Get geographical location

Disassembly:
jmp 0x14021aca0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.140219bd0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14021ad07
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x1402dd030]
jmp 0x14021ad29
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400ca210
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x1400cb02f
Capabilities:
Terminate process

Disassembly:
jmp 0x140163130
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret
Function at 0x1400cb403
Capabilities:
Print debug messages

Disassembly:
jmp 0x1402480c0
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x1402bf140]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x1402480e6
jmp 0x140248163
mov rcx, qword [rbp + 0x30]
call fcn.1400ca706
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x1402480ff
jmp 0x140248163
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14024811c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400c8ff0
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.1400c9635
test eax, eax
jne 0x140248163
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400caa08
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x1400cb868
Capabilities:
Set environment variable

Disassembly:
jmp 0x14023c8c0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret
Function at 0x1400cbbd8
Capabilities:
Parse pe header

Disassembly:
jmp 0x140164d00
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140164d20
xor al, al
jmp 0x140164da1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140164d33
xor al, al
jmp 0x140164da1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140164d5d
xor al, al
jmp 0x140164da1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140164d71
xor al, al
jmp 0x140164da1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140164d83
xor al, al
jmp 0x140164da1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140164d9f
xor al, al
jmp 0x140164da1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400cc4b1
Capabilities:
Terminate process

Disassembly:
jmp 0x1401869d0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1401869fe
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1400cd104
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400cd18b
Capabilities:
Print debug messages

Disassembly:
jmp 0x140215600
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x1400cd307
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140185a50
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1401853a0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140185a99
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1402dd020]
jmp 0x140185aa8
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x1400cd415
Capabilities:
Set environment variable

Disassembly:
jmp 0x140256b30
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.1400ca012
lea rcx, [rsp + 0x48]
call fcn.1400ca012
call fcn.1400cae9a
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.1400c9cb1
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140256b9f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.1400ca599
lea rcx, [rsp + 0x78]
call fcn.1400ca599
mov eax, dword [rsp + 0x24]
jmp 0x140256c30
call fcn.1400cae9a
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.1400c9cb1
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x140256be6
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.1400ca599
lea rcx, [rsp + 0x78]
call fcn.1400ca599
mov eax, dword [rsp + 0x2c]
jmp 0x140256c30
lea rcx, [rsp + 0x48]
call fcn.1400c9f18
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.1400c9f18
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.1400ca599
lea rcx, [rsp + 0x78]
call fcn.1400ca599
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x1402214e0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400c8ff0
sub rsp, rax
mov rax, qword [0x1402bf140]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1402c3f00]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1402216d2
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x140221626
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140221626
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x14022160b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x1402215a8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140221692
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1402216f1
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x1402216cd
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1402216f1
jmp 0x14022157e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400caa08
add rsp, 0x1498
pop rdi
pop rsi
ret