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

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

Function at 0x14002d718
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 0x14002d583
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002d583
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002d583
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002d583
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002d583
cmp dword [rcx + 0x84], 0xe
jbe 0x14002d583
cmp dword [rcx + 0xf8], 0
je 0x14002d583
mov ecx, ebx
call fcn.14002d634
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.14002d410
nop
cmp dword [rbp + 0x20], 0
je 0x14002d5d1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14002d5dc
int3
xor r8d, r8d
xor edx, edx
jmp 0x14002d514
Function at 0x14003f170
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 0x14003f1f7
mov rsi, rbx
cmp word [rax], bp
je 0x14003f1b6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14003f1a0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14003f19c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14003a6f0
mov rdi, rax
test rax, rax
je 0x14003f1e4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400454f0
mov rbp, rdi
xor ecx, ecx
call fcn.14003b238
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 0x140042d6c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140042d82
mov al, 1
jmp 0x140042de2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140042d93
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140042de0
mov ecx, dword [rcx + 0x18]
nop
call fcn.14003f914
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140042de0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140042de0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140042de0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140042de2
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400452d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400452f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400452f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400012d0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140006040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov eax, ecx
movzx r8d, cl
mov edx, ecx
shr eax, 8
mov r9d, ecx
mov r10d, ecx
mov rcx, qword [0x140006790]
movabs rsi, 0x100000001b3
movzx eax, al
movabs rbp, 0xcbf29ce484222325
xor r8, rbp
shr edx, 0x10
imul r8, rsi
shr r9d, 0x18
xor edi, edi
xor r8, rax
mov dword [rsp + 0x30], r10d
imul r8, rsi
movzx eax, dl
mov rdx, qword [0x140006768]
xor r8, rax
imul r8, rsi
xor r8, r9
imul r8, rsi
and rcx, r8
shl rcx, 4
add rcx, qword [0x140006778]
mov rax, qword [rcx + 8]
cmp rax, rdx
je 0x140001382
mov rcx, qword [rcx]
cmp r10d, dword [rax + 0x10]
je 0x140001385
cmp rax, rcx
je 0x140001382
mov rax, qword [rax + 8]
cmp r10d, dword [rax + 0x10]
jne 0x140001371
jmp 0x140001385
mov rax, rdi
test rax, rax
mov rcx, rdx
cmovne rcx, rax
cmp rcx, rdx
je 0x1400014a5
lea r8, [rsp + 0x30]
mov qword [rsp + 0x58], rbx
lea rdx, [rsp + 0x20]
call fcn.140001c10
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x18]
mov rcx, rbx
call qword [0x140006758]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [rsp + 0x31]
mov r8d, dword [rsp + 0x30]
mov r9, qword [0x140006768]
mov rbx, qword [rsp + 0x58]
movzx edx, r8b
xor rdx, rbp
imul rdx, rsi
xor rdx, rax
movzx eax, byte [rsp + 0x32]
imul rdx, rsi
xor rdx, rax
movzx eax, byte [rsp + 0x33]
imul rdx, rsi
xor rdx, rax
imul rdx, rsi
and rdx, qword [0x140006790]
shl rdx, 4
add rdx, qword [0x140006778]
mov r10, qword [rdx + 8]
mov rax, r10
cmp r10, r9
je 0x140001442
mov rcx, qword [rdx]
cmp r8d, dword [r10 + 0x10]
je 0x14000143f
nop dword [rax]
cmp rax, rcx
je 0x140001442
mov rax, qword [rax + 8]
cmp r8d, dword [rax + 0x10]
jne 0x140001430
mov rdi, rax
test rdi, rdi
je 0x140001498
mov rax, qword [rdx]
cmp r10, rdi
jne 0x140001467
cmp rax, rdi
jne 0x14000145d
mov qword [rdx], r9
mov qword [rdx + 8], r9
jmp 0x140001472
mov r9, qword [rdi + 8]
mov qword [rdx + 8], r9
jmp 0x140001472
cmp rax, rdi
jne 0x140001472
mov rax, qword [rdi]
mov qword [rdx], rax
mov rdx, qword [rdi]
mov rcx, rdi
dec qword [0x140006770]
mov rax, qword [rdi + 8]
mov qword [rax], rdx
mov rax, qword [rdi + 8]
mov qword [rdx + 8], rax
mov edx, 0x20
call fcn.140002354
mov edx, 0x64
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Beep]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400020b0
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140001ef0
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x140001f21
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x140006768]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x140006778]
lea rdx, [rdi + rdi]
call fcn.140001ad0
mov rax, qword [0x140006768]
lea r9, [rdi - 1]
mov qword [0x140006790], r9
mov qword [0x140006798], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x140002094
mov qword [rsp + 0x40], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x140006778]
mov r9, qword [r11]
cmp r9, rbx
jne 0x140001fe0
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x140002055
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x14000201d
mov r10, qword [rdx]
cmp r10, rax
je 0x140002017
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x140002055
cmp r9, rdx
je 0x140002031
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x140002069
cmp r9, rdx
jne 0x140002022
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
je 0x14000208f
mov r9, qword [0x140006790]
jmp 0x140001f91
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140002055
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140002bf4
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1401791b0]
mov dword [rax], 1
mov rax, qword [0x1401791c0]
mov dword [rax], 1
mov rax, qword [0x1401791d0]
mov dword [rax], 1
mov rax, qword [0x140179160]
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 0x1400e9e70
Capabilities:
Query environment variable

Disassembly:
push r14
mov eax, 0x10080
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.1401548d0
sub rsp, rax
xor eax, eax
xor edx, edx
xor esi, esi
mov r14d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x80], ax
mov r12, rcx
lea rbp, [rsp + 0x30]
lea r13, [rsp + 0x2e]
mov word [rsp + 0x30], dx
test dil, dil
je 0x1400e9f19
nop dword [rax]
mov rax, r14
lea rbx, [rbp + rsi*2]
sub rax, rsi
cmp word [rbp + rsi*2], 0
je 0x1400e9ede
nop dword [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x1400e9ed0
test rax, rax
je 0x1401657de
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r13
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [r12 + rsi]
test dil, dil
jne 0x1400e9eb8
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, rbp
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x1400e9f48
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10080
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x1400e9f60
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
xor eax, eax
xor esi, esi
mov r13d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x30], ax
mov rbp, rcx
mov r14, rdx
lea r15, [rsp + 0x30]
lea r12, [rsp + 0x2e]
test dil, dil
je 0x1400ea001
nop word [rax + rax]
mov rax, r13
lea rbx, [r15 + rsi*2]
sub rax, rsi
cmp word [r15 + rsi*2], 0
je 0x1400e9fc6
nop word [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x1400e9fb8
test rax, rax
je 0x1401657e4
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r12
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [rbp + rsi]
test dil, dil
jne 0x1400e9fa0
mov rdx, r14
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 0x140112eb0
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.1400e9e70
test rax, rax
je 0x140112ff0
mov rdx, 0xffffffffffffffff
mov rcx, rax
lea r14, [rsp + 0x40]
mov r15d, 0x4e
call qword [sym.imp.python311.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 0x140112f2e
nop
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x140112f20
test rax, rax
je 0x140165884
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 0x140112f10
mov rcx, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python311.dll__PyRuntime]
mov rcx, qword [0x140190a40]
mov rsi, qword [rax + 0x1f8]
mov rax, qword [0x140179310]
mov rbx, qword [rax + 0x1b8]
test rcx, rcx
je 0x140113048
mov rdx, rbx
call fcn.1400d0090
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.1401070f0
sub qword [rbx], 1
jne 0x140112fd6
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 [0x140190300]
lea rsi, [0x140190300]
test bl, bl
je 0x140113010
mov rax, qword [0x140190308]
lea rsi, [0x140190308]
test rax, rax
jne 0x140112fd6
cmp byte [0x140190522], 0
jne 0x140113026
movzx ecx, bl
call fcn.1400d1fa0
mov rdx, 0xffffffffffffffff
lea rcx, [0x140190320]
call qword [sym.imp.python311.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x140113072
add qword [rax], 1
jmp 0x140112fd6
mov rcx, qword [0x1401909b8]
mov rdi, qword [rax + 0x1a8]
test rcx, rcx
je 0x14011307d
mov rdx, rdi
call fcn.1400d0090
mov qword [0x140190a40], rax
mov rcx, rax
jmp 0x140112fa3
call qword [sym.imp.python311.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x1401715c3]
call qword [sym.imp.python311.dll_PyImport_ImportModule]
mov qword [0x1401909b8], rax
mov rcx, rax
test rax, rax
je 0x140165884
jmp 0x14011305b
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call qword [sym.imp.python311.dll_PyErr_NoMemory]
call sub.msvcrt.dll_abort
nop
Function at 0x14014ab20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1401902e9], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x14014aba8
lea rdx, [0x140175082]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x14014ac10
mov rbx, qword [0x1401901a0]
jmp 0x14014ab65
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 0x14014ab60
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.140139cf0
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 [0x1401901a0], rax
mov ebx, dword [rax]
mov qword [0x1401901a0], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1401901a0], rdx
call fcn.140149c50
cmp eax, ebx
jne 0x14014ac78
mov byte [0x1401902e9], 1
jmp 0x14014ab3c
cmp byte [0x1401902e8], 0
jne 0x14014ab53
mov rbx, qword [sym.imp.python311.dll_PyDict_New]
call rbx
mov qword [0x140190c48], rax
call rbx
mov qword [0x140190c40], rax
call rbx
mov qword [0x140190c38], rax
call rbx
mov qword [0x140190c30], rax
call rbx
mov qword [0x140190c28], rax
call rbx
mov qword [0x140190c20], rax
call rbx
mov qword [0x140190c18], rax
call rbx
mov byte [0x1401902e8], 1
mov qword [0x140190c10], rax
jmp 0x14014ab53
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x1401535b0
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.140164d30
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.140164d30
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 0x140154282
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140191108]
test eax, eax
je 0x14015431a
lea rax, [0x1401910e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140191110]
mov qword [rbp - 8], rax
jmp 0x1401542fe
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 0x1401542f2
cmp qword [rbp - 0x10], 0
je 0x1401542f2
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 0x1401542b8
lea rax, [0x1401910e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14015431b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140154420
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 0x140154448
mov eax, 0
jmp 0x140154496
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 0x140154471
mov eax, 0
jmp 0x140154496
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 0x140154491
mov eax, 0
jmp 0x140154496
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14015449c
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 0x14015451a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140154511
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 0x140154511
mov rax, qword [rbp - 8]
jmp 0x14015452f
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 0x1401544e4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14219e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14219e1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14219e089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14219e06f
add dl, dl
jne 0x14219e096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14219e0f6
xor eax, eax
add dl, dl
jne 0x14219e0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14219e1ad
add dl, dl
jne 0x14219e0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14219e0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14219e0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14219e0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14219e0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14219e07e
mov eax, 1
add dl, dl
jne 0x14219e106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14219e113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14219e0fb
sub eax, ebx
mov ebx, 1
jne 0x14219e14c
mov ecx, 1
add dl, dl
jne 0x14219e12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14219e13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14219e123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14219e07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14219e168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14219e175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14219e15d
cmp eax, 0x7d00
jae 0x14219e19b
cmp eax, 0x500
jb 0x14219e196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14219e07e
cmp eax, 0x7f
ja 0x14219e19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14219e07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14219e1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14219e07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20