joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003cff0
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.14001c690
test rax, rax
je 0x14003d120
mov rdx, 0xffffffffffffffff
mov rcx, rax
lea r14, [rsp + 0x40]
mov r15d, 0x4e
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov rdi, r14
lea r12, [rsi + 0x28]
lea rbp, [rsp + 0x3e]
mov r13, rax
xor eax, eax
mov word [rsp + 0x40], ax
nop
mov rax, r12
mov rbx, rdi
sub rax, rsi
cmp word [rdi], 0
je 0x14003d06e
nop
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x14003d060
test rax, rax
je 0x1400b001e
mov rcx, rbx
add rsi, 1
add rdi, 2
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, rbp
mov byte [rsp + 0x3e], r15b
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x3f], 0
call sub.msvcrt.dll_mbstowcs
movzx r15d, byte [rsi]
test r15b, r15b
jne 0x14003d050
mov rcx, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python312.dll_PyThreadState_Get]
mov rcx, qword [0x1400d3800]
mov rsi, rax
mov rax, qword [0x1400c1ea0]
mov rbx, qword [rax + 0x1b8]
test rcx, rcx
je 0x14003d195
mov rdx, rbx
call fcn.14000ad90
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.140031280
mov rdx, qword [rbx]
test edx, edx
js 0x14003d107
sub rdx, 1
mov qword [rbx], rdx
je 0x14003d17d
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x1400d30c8]
lea rsi, [0x1400d30c8]
test bl, bl
je 0x14003d140
mov rax, qword [0x1400d30d0]
lea rsi, [0x1400d30d0]
test rax, rax
jne 0x14003d107
cmp byte [0x1400d32e2], 0
jne 0x14003d156
movzx ecx, bl
call fcn.14000c9e0
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400d30e0]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x14003d1bf
mov edx, dword [rax]
add edx, 1
je 0x14003d107
mov dword [rax], edx
jmp 0x14003d107
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [sym.imp.python312.dll__Py_Dealloc]
mov rax, qword [rsp + 0x28]
jmp 0x14003d107
mov rcx, qword [0x1400d3778]
mov rdi, qword [rax + 0x1a8]
test rcx, rcx
je 0x14003d1ca
mov rdx, rdi
call fcn.14000ad90
mov qword [0x1400d3800], rax
mov rcx, rax
jmp 0x14003d0de
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x1400b99e3]
call qword [sym.imp.python312.dll_PyImport_ImportModule]
mov qword [0x1400d3778], rax
mov rcx, rax
test rax, rax
je 0x1400b001e
jmp 0x14003d1a8
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 0x14009b860
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400d30a9], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x14009b8e8
lea rdx, [0x1400bdf1a]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x14009b950
mov rbx, qword [0x1400d2f60]
jmp 0x14009b8a5
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 0x14009b8a0
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.1400889a0
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 [0x1400d2f60], rax
mov ebx, dword [rax]
mov qword [0x1400d2f60], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1400d2f60], rdx
call fcn.14009a990
cmp eax, ebx
jne 0x14009b9b8
mov byte [0x1400d30a9], 1
jmp 0x14009b87c
cmp byte [0x1400d30a8], 0
jne 0x14009b893
mov rbx, qword [sym.imp.python312.dll_PyDict_New]
call rbx
mov qword [0x1400d3a08], rax
call rbx
mov qword [0x1400d3a00], rax
call rbx
mov qword [0x1400d39f8], rax
call rbx
mov qword [0x1400d39f0], rax
call rbx
mov qword [0x1400d39e8], rax
call rbx
mov qword [0x1400d39e0], rax
call rbx
mov qword [0x1400d39d8], rax
call rbx
mov byte [0x1400d30a8], 1
mov qword [0x1400d39d0], rax
jmp 0x14009b893
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x14009dd50
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.1400af4d0
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.1400af4d0
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 0x14009ea22
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400d3ec8]
test eax, eax
je 0x14009eaba
lea rax, [0x1400d3ea0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400d3ed0]
mov qword [rbp - 8], rax
jmp 0x14009ea9e
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 0x14009ea92
cmp qword [rbp - 0x10], 0
je 0x14009ea92
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 0x14009ea58
lea rax, [0x1400d3ea0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14009eabb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14009ebc0
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 0x14009ebe8
mov eax, 0
jmp 0x14009ec36
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 0x14009ec11
mov eax, 0
jmp 0x14009ec36
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 0x14009ec31
mov eax, 0
jmp 0x14009ec36
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14009ec3c
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 0x14009ecba
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14009ecb1
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 0x14009ecb1
mov rax, qword [rbp - 8]
jmp 0x14009eccf
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 0x14009ec84
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400010d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, ecx
mov ecx, 0x20
call fcn.14001305c
mov rbx, rax
test rax, rax
je 0x1400011a4
xor ecx, ecx
movzx edi, di
mov edx, edi
lea r8d, [rcx + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x1400011a4
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rsi
xor ecx, ecx
mov dword [rbx + 8], eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400011a4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rbx], rax
test rax, rax
je 0x1400011a4
xor ecx, ecx
inc di
movzx edx, di
lea r8d, [rcx + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x1400011a4
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rdi
xor ecx, ecx
mov dword [rbx + 0x18], eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400011a4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
mov qword [rbx + 0x10], rax
test rax, rax
cmove rbx, rcx
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14000ad44
Capabilities:
Parse pe header

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

Function at 0x1400141dc
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x140036570]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14001423a
cmp word [rdx], r12w
jne 0x14001423a
or byte [rax + r8*8 + 0x38], cl
jmp 0x140014240
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14001439b
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140014376
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140014279
mov rcx, r9
jmp 0x14001429c
cmp r9, rdx
jae 0x1400142b3
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14001425d
jmp 0x14001439b
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140014370
cmp dword [rsp + 0x80], edi
je 0x140014370
mov rdx, r14
lea r11, [0x140036570]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140014349
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14001431c
mov word [rbx], r12w
jmp 0x140014397
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x140014325
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140014397
cmp word [rsp + 0x70], r12w
jne 0x140014356
cmp rbx, rsi
je 0x140014316
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1400132dc
cmp word [rsp + 0x70], r12w
je 0x14001439b
mov word [rbx], r13w
jmp 0x140014397
lea r11, [0x140036570]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140014393
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14001439b
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140015f84
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140023f20
sub rsp, rax
mov rax, qword [0x140035008]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400198e0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140015fd3
mov rax, rbp
jmp 0x1400160db
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x36570]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400132d4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x36570]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400160d7
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400160d7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400132d4
test rax, rax
js 0x1400160d7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400160d7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400160c9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400160c9
cmp byte [rcx], 0xd
jne 0x1400160af
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400160be
cmp byte [rcx + 1], 0xa
jne 0x1400160be
inc rcx
jmp 0x1400160be
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x35150]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140016091
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400160db
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000a320
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140017750
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140017540
Function at 0x14001c334
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400132dc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400132dc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14001c484
cmp rax, 0xffffffffffffffff
je 0x14001c484
xor edi, edi
test rbp, rbp
jle 0x14001c42f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140018bf4
mov rbx, rax
test rax, rax
jne 0x14001c3bc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14001c425
mov edx, 0x8000
mov ecx, r14d
call fcn.1400177cc
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140015964
cmp eax, 0xffffffff
je 0x14001c405
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14001c3cc
mov edx, r15d
mov ecx, r14d
call fcn.1400177cc
jmp 0x14001c425
cmp byte [rsi + 0x38], dil
je 0x14001c41c
cmp dword [rsi + 0x34], 5
jne 0x14001c41c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14001c425
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140018c6c
jmp 0x14001c498
jns 0x14001c498
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400132dc
cmp rax, 0xffffffffffffffff
jne 0x14001c450
cmp byte [rsi + 0x30], dil
je 0x14001c498
mov edi, dword [rsi + 0x2c]
jmp 0x14001c498
mov ecx, r14d
call fcn.14001c1c8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14001c498
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14001c498
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14001c491
mov eax, dword [rsi + 0x2c]
jmp 0x14001c496
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400132dc
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14001c8ec
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14001c91e
call fcn.140014f68
mov dword [rax], 0x16
call fcn.140018b8c
jmp 0x14001ca3d
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14001ca3d
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14001ca3d
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14001c94d
lock or dword [rcx + 0x14], 0x10
jmp 0x14001ca3d
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14001c961
call fcn.14002105c
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1400198e0
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140014688
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14001ca2b
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14001c9f6
mov rcx, rsi
call fcn.1400198e0
cmp eax, edi
je 0x14001c9e1
mov rcx, rsi
call fcn.1400198e0
cmp eax, 0xfffffffe
je 0x14001c9e1
mov rcx, rsi
call fcn.1400198e0
movsxd rbx, eax
lea r14, [0x140036570]
mov rcx, rsi
sar rbx, 6
call fcn.1400198e0
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14001c9e8
lea rdx, [0x140035270]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14001c9f6
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14001ca1a
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14001ca1a
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14001ca1a
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x14001ca40
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x14001e118
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 0x14001e148
xor eax, eax
jmp 0x14001e20b
mov rbp, rbx
cmp word [rax], si
je 0x14001e16d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001e154
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001e150
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.14001c4c8
movsxd r14, eax
test eax, eax
jne 0x14001e1ab
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001e141
mov rcx, r14
call fcn.140019a68
mov rdi, rax
test rax, rax
jne 0x14001e1c4
xor ecx, ecx
call fcn.140018c6c
jmp 0x14001e1a0
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.14001c4c8
test eax, eax
jne 0x14001e1f5
mov rcx, rdi
call fcn.140018c6c
jmp 0x14001e1ff
xor ecx, ecx
call fcn.140018c6c
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 0x14001e228
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14001e2af
mov rsi, rbx
cmp word [rax], bp
je 0x14001e26e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14001e258
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14001e254
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140019a68
mov rdi, rax
test rax, rax
je 0x14001e29c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000c310
mov rbp, rdi
xor ecx, ecx
call fcn.140018c6c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140023db0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140023dd8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140023dd8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140041a70
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140041a7d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140041a8d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140041a75
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140041aa5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140041a92
sub eax, 3
jb 0x140041abf
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140041af6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140041ae6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140041ae4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140041ad3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140041a32
jmp 0x140041a7d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x24a00
mov dl, 0xe
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140041b42
cmp rsi, rcx
jae 0x140041b4a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140041b29
cmp al, 0x8f
ja 0x140041b29
cmp byte [rsi - 2], 0xf
je 0x140041b2f
sub al, 0xe8
cmp al, 1
ja 0x140041b13
cmp rsi, rcx
jae 0x140041b4a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140041b19
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140041b4a
lodsb al, byte [rsi]
jmp 0x140041b29
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x3e000]
mov eax, dword [rdi]
or eax, eax
je 0x140041ba7
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x417ac]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140041b57
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140041ba1
mov qword [rbx], rax
add rbx, 8
jmp 0x140041b77
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140041be1
cmp al, 0xef
ja 0x140041bd3
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140041bb3
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140041bc2
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x22f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140041c35
sub rsp, 0xffffffffffffff80
jmp 0x140002280