joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008a4c0
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.140072c40
test rax, rax
je 0x14008a600
mov rdx, 0xffffffffffffffff
mov rcx, rax
lea r14, [rsp + 0x40]
mov r15d, 0x4e
call qword [sym.imp.python38.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 0x14008a53e
nop
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x14008a530
test rax, rax
je 0x1400e64a6
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 0x14008a520
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python38.dll__PyRuntime]
mov rdx, qword [0x14010e598]
mov rsi, qword [rax + 0x510]
mov rax, qword [0x1400f9f30]
mov rbx, qword [rax + 0x1b8]
test rdx, rdx
je 0x14008a658
mov r8, rbx
mov rcx, rsi
call fcn.140076440
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.140086130
sub qword [rbx], 1
jne 0x14008a5e9
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 [0x14010de70]
lea rsi, [0x14010de70]
test bl, bl
je 0x14008a620
mov rax, qword [0x14010de78]
lea rsi, [0x14010de78]
test rax, rax
jne 0x14008a5e9
cmp byte [0x14010e082], 0
jne 0x14008a636
movzx ecx, bl
call fcn.1400549e0
mov rdx, 0xffffffffffffffff
lea rcx, [0x14010de80]
call qword [sym.imp.python38.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x14008a685
add qword [rax], 1
jmp 0x14008a5e9
mov rdx, qword [0x14010e510]
mov rdi, qword [rax + 0x1a8]
test rdx, rdx
je 0x14008a690
mov r8, rdi
mov rcx, rsi
call fcn.140076440
mov qword [0x14010e598], rax
mov rdx, rax
jmp 0x14008a5b3
call qword [sym.imp.python38.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x1400f281e]
call qword [sym.imp.python38.dll_PyImport_ImportModule]
mov qword [0x14010e510], rax
mov rdx, rax
test rax, rax
je 0x1400e64a6
jmp 0x14008a66b
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 qword [sym.imp.python38.dll_PyErr_NoMemory]
call sub.msvcrt.dll_abort
nop
Function at 0x1400ca700
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp byte [0x14010de59], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x1400ca788
lea rdx, [0x1400f5df2]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400ca7f0
mov rbx, qword [0x14010dd18]
jmp 0x1400ca745
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 0x1400ca740
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, rbp
mov rdx, r12
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp fcn.1400b9a10
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 [0x14010dd18], rax
mov ebx, dword [rax]
mov qword [0x14010dd18], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x14010dd18], rdx
call fcn.1400c9830
cmp eax, ebx
jne 0x1400ca88a
mov byte [0x14010de59], 1
jmp 0x1400ca71e
cmp byte [0x14010de58], 0
jne 0x1400ca735
mov rbx, qword [sym.imp.python38.dll_PyDict_New]
lea rsi, [0x14010d508]
call rbx
mov qword [0x14010e788], rax
call rbx
mov qword [0x14010e780], rax
call rbx
mov qword [0x14010e778], rax
call rbx
mov qword [0x14010e770], rax
call rbx
mov qword [0x14010e768], rax
call rbx
mov qword [0x14010e760], rax
call rbx
mov qword [0x14010e758], rax
call rbx
mov r13, qword [sym.imp.python38.dll_PyLong_FromLong]
mov rbx, 0xfffffffffffffffb
mov qword [0x14010e750], rax
nop dword [rax]
mov ecx, ebx
call r13
mov qword [rsi + rbx*8], rax
add rbx, 1
cmp rbx, 0x101
jne 0x1400ca868
mov byte [0x14010de58], 1
jmp 0x1400ca735
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400d4260
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.1400e5950
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.1400e5950
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 0x1400d4f32
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14010ebe8]
test eax, eax
je 0x1400d4fca
lea rax, [0x14010ebc0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14010ebf0]
mov qword [rbp - 8], rax
jmp 0x1400d4fae
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 0x1400d4fa2
cmp qword [rbp - 0x10], 0
je 0x1400d4fa2
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 0x1400d4f68
lea rax, [0x14010ebc0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400d4fcb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400d50d0
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 0x1400d50f8
mov eax, 0
jmp 0x1400d5146
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 0x1400d5121
mov eax, 0
jmp 0x1400d5146
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 0x1400d5141
mov eax, 0
jmp 0x1400d5146
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1400d514c
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 0x1400d51ca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400d51c1
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 0x1400d51c1
mov rax, qword [rbp - 8]
jmp 0x1400d51df
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 0x1400d5194
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1800064f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], r8
push rbx
push rdi
push r14
sub rsp, 0x40
mov ebx, ecx
lea r8, [rsp + 0x70]
mov ecx, 4
mov qword [rsp + 0x70], 0
lea rdx, [0x180007b90]
mov r14, r9
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
mov rdi, qword [rsp + 0x70]
mov r8d, 0xff
mov rcx, rdi
movzx edx, bx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbx, rax
test rax, rax
jne 0x18000654a
add rsp, 0x40
pop r14
pop rdi
pop rbx
ret
mov rdx, rbx
mov qword [rsp + 0x68], rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
jne 0x180006571
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rbx
ret
mov rcx, rsi
mov qword [rsp + 0x60], rbp
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x1800065f1
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea ecx, [rbx + 1]
call fcn.180008ef8
mov r8d, ebx
mov rdx, rbp
mov rcx, rax
mov rdi, rax
call fcn.18000ff60
mov rcx, rsi
mov byte [rbx + rdi], 0
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [rsp + 0x88]
mov r8, rdi
mov qword [rsp + 0x30], rcx
mov ecx, dword [rsp + 0x80]
mov dword [rsp + 0x28], ecx
mov rcx, rdi
mov qword [rsp + 0x20], r14
call fcn.1800061a0
mov rcx, rdi
movzx ebx, al
call fcn.180008ef0
movzx eax, bl
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rbx
ret
Function at 0x180006610
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x90
mov rax, qword [0x18002a040]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rsi, rdx
mov ebx, ecx
lea rdx, [0x180007b90]
mov qword [rsp + 0x40], 0
mov ecx, 4
lea r8, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
mov rbp, qword [rsp + 0x40]
mov r8d, 0x7d00
mov rcx, rbp
movzx edx, bx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbx, rax
test rax, rax
je 0x1800067d2
mov rdx, rbx
mov qword [rsp + 0xc0], rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x1800067ca
mov rcx, rdi
mov qword [rsp + 0xc8], r14
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x1800067c2
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
mov ebx, eax
call fcn.180008ef8
mov r8d, ebx
mov rdx, r14
mov rcx, rax
mov rbp, rax
call fcn.18001b780
mov rcx, rdi
call qword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, 0x50
call fcn.180008f2c
mov qword [rsi], rax
mov r9d, ebx
mov rdx, qword [0x18002be18]
mov r8, rbp
mov qword [rsp + 0x30], 0
lea rcx, [rax + 8]
mov qword [rsp + 0x28], rcx
mov rcx, qword [0x18002ce40]
mov qword [rsp + 0x20], rax
call fcn.180008810
test eax, eax
jns 0x180006729
xor bl, bl
jmp 0x1800067b7
mov r8, qword [rsi]
lea rdx, [0x1800255d0]
mov rcx, qword [r8]
add r8, 0x10
mov rax, qword [rcx]
call qword [rax]
test eax, eax
js 0x180006722
mov rdx, qword [rsi]
mov rcx, qword [rdx + 0x10]
add rdx, 0x18
mov rax, qword [rcx]
call qword [rax + 0x50]
movdqa xmm0, xmmword [0x180025710]
lea rdx, [rsp + 0x48]
mov rcx, qword [0x18002ce40]
mov r8, qword [rsi]
movdqu xmmword [rsp + 0x48], xmm0
add r8, 0x48
mov dword [rsp + 0x58], 0
movaps xmm0, xmmword [0x180025db0]
movups xmmword [rsp + 0x64], xmm0
mov dword [rsp + 0x5c], 1
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x74], 0xff7fffff
mov dword [rsp + 0x78], 0x7f7fffff
mov rax, qword [rcx]
call qword [rax + 0xb8]
test eax, eax
setns bl
mov rcx, rbp
call fcn.180008ef0
movzx eax, bl
mov r14, qword [rsp + 0xc8]
mov rdi, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180008e00
add rsp, 0x90
pop rsi
pop rbp
pop rbx
ret
Function at 0x180013980
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 0x1800139b0
xor eax, eax
jmp 0x180013a73
mov rbp, rbx
cmp word [rax], si
je 0x1800139d5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800139bc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800139b8
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.1800138a0
movsxd r14, eax
test eax, eax
jne 0x180013a13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800139a9
mov rcx, r14
call fcn.180011d9c
mov rdi, rax
test rax, rax
jne 0x180013a2c
xor ecx, ecx
call fcn.180011ed8
jmp 0x180013a08
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.1800138a0
test eax, eax
jne 0x180013a5d
mov rcx, rdi
call fcn.180011ed8
jmp 0x180013a67
xor ecx, ecx
call fcn.180011ed8
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 0x180019180
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
lea r8, section..text
mov qword [rsp + 0x28], rbx
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor r9d, r9d
mov qword [rsp + 0x28], rbx
lea r8, [0x140001130]
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor r9d, r9d
mov qword [rsp + 0x28], rbx
lea r8, [0x140001170]
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
mov qword [rsp + 0x28], rbx
lea r8, [0x1400011d0]
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x140001d3c
Capabilities:
Parse pe header

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

Function at 0x140005aa8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140005913
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140005913
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140005913
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005913
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140005913
cmp dword [rcx + 0x84], 0xe
jbe 0x140005913
cmp dword [rcx + 0xf8], 0
je 0x140005913
mov ecx, ebx
call fcn.1400059c4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400057a0
nop
cmp dword [rbp + 0x20], 0
je 0x140005961
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000596c
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400058a4
Function at 0x140009e6c
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 0x140009e9c
xor eax, eax
jmp 0x140009f5f
mov rbp, rbx
cmp word [rax], si
je 0x140009ec1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140009ea8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140009ea4
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.140009d8c
movsxd r14, eax
test eax, eax
jne 0x140009eff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140009e95
mov rcx, r14
call fcn.14000a7e4
mov rdi, rax
test rax, rax
jne 0x140009f18
xor ecx, ecx
call fcn.140008460
jmp 0x140009ef4
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.140009d8c
test eax, eax
jne 0x140009f49
mov rcx, rdi
call fcn.140008460
jmp 0x140009f53
xor ecx, ecx
call fcn.140008460
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 0x14000f280
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x1400c7490]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x1400c74a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.1400a95b0
jmp 0x14000123c
mov rax, qword [0x1400c74a0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1400c74a0]
mov dword [rax], 1
mov rax, qword [0x1400c74e0]
mov rdx, rax
mov rax, qword [0x1400c74d0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x1400cb024], 1
mov rax, qword [0x1400c74a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1400c74c0]
mov rdx, rax
mov rax, qword [0x1400c74b0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x1400c74a0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x1400c7490]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x1400c73e0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x1400c73e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.1400a8838
mov rax, qword [0x1400c7520]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x1400c7480]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.1400a8030
mov eax, dword [0x1400cb004]
lea rdx, [0x1400cb008]
mov ecx, eax
call fcn.14000147c
call fcn.1400a7dc7
mov rax, qword [0x1400c7410]
mov rax, qword [rax]
mov rdx, qword [0x1400cb010]
mov qword [rax], rdx
mov rcx, qword [0x1400cb010]
mov rdx, qword [0x1400cb008]
mov eax, dword [0x1400cb004]
mov r8, rcx
mov ecx, eax
call fcn.1400016d0
mov dword [0x1400cb01c], eax
mov eax, dword [0x1400cb020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x1400cb01c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x1400cb024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x1400cb01c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400c7440]
mov dword [rax], 1
mov rax, qword [0x1400c7450]
mov dword [rax], 1
mov rax, qword [0x1400c7460]
mov dword [rax], 1
mov rax, qword [0x1400c7400]
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