joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000fdb0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1438ad400]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1438ad3e0]
test rbx, rbx
je 0x14000fe04
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14000fdfb
test rsi, rsi
je 0x14000fdfb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000fde0
lea rcx, [0x1438ad400]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140010160
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1438a82b0]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x1400101cf
mov rcx, r9
call fcn.140010030
test eax, eax
je 0x1400101cf
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x1400101cd
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x1400101c4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400101cf
add rdx, 0x28
cmp rdx, r9
jne 0x1400101b0
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x14001a4d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1438a4520]
jmp 0x140010f90

Function at 0x14001a4e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1438a4520]
jmp 0x140010f90
Function at 0x140a86940
Capabilities:
Terminate process

Disassembly:
sub esi, edx
cmpsd dword [rsi], dword [rdi]
sahf
rol byte [rdx], 0xd0
loopne 0x1407f9924
in al, 0xc5
invalid
movabs al, byte [0x8bc0db6e8410f104]
sahf
lahf
or esi, esp
movabs dword [0xad286e949d4b35d8], eax
leave
sbb al, 0x1f
nop
jmp 0x1407f9977
cmp byte [rdx], bh
sbb al, ch
mov ecx, 0x148cf277
xchg ebx, eax
clc
xor eax, ebp
std
or byte [rcx + 0x4607a412], ch
invalid
cld
pop r11
jmp 0x140a8694d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140a8695d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140a86945
lea eax, [rcx + 1]
jmp 0x140a8696b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140a8697e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140a86964
sub eax, 3
jb 0x140a8699e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140a869ed
sar eax, 1
movsxd rbp, eax
jb 0x140a869d4
jmp 0x140a869ac
add ebx, ebx
jne 0x140a869aa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140a869d4
inc ecx
add ebx, ebx
jne 0x140a869ba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140a869d4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140a869cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140a869bc
add ecx, 2
jmp 0x140a869d9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140a86902
jmp 0x140a8694d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0xa7c000]
mov eax, dword [rdi]
or eax, eax
je 0x140a86a4d
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xa86000]
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 0x140a869fd
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 0x140a86a47
mov qword [rbx], rax
add rbx, 8
jmp 0x140a86a1d
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 0x140a86a91
cmp al, 0xef
ja 0x140a86a79
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140a86a59
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x140a86a68
mov eax, dword [rdi]
add rdi, 4
jmp 0x140a86a68
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 + 0x23f]
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
mov byte [fcn.140a86b10], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.140a86b10
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140a86b00
sub rsp, 0xffffffffffffff80
jmp 0x1407f990c
Function at 0x403fc7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x004120d8]
jne 0x402b6a
rol rcx, 0x10
test cx, 0xffff
jne 0x402b66
repz ret
ror rcx, 0x10
jmp 0x403f20
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x0048f920]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x0048fa18]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x403fa5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x0048f920]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x403fc7
mov rax, qword [rsp + 0x88]
mov qword [0x0048fa18], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x0048f9b8], rax
mov rax, qword [0x0048fa18]
mov qword [0x0048f890], rax
mov rax, qword [rsp + 0x90]
mov qword [0x0048f9a0], rax
mov dword [0x0048f880], 0xc0000409
mov dword [0x0048f884], 1
mov rax, qword [0x004120d8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x004120e0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x0048f918], eax
mov ecx, 1
call fcn.00404600
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x0040d538]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x0048f918], 0
jne 0x40404e
mov ecx, 1
call fcn.00404600
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x409cf0
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax - 8], r12
mov qword [rax - 0x10], r13
mov r13, rcx
mov edi, r8d
mov r12, rdx
call fcn.00404780
xor ebx, ebx
cmp qword [0x00490608], rbx
mov rsi, rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], ebx
jne 0x409e21
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rbp, rax
jne 0x409d53
xor eax, eax
jmp 0x409f01
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x409d4c
mov rcx, rax
call fcn.00404710
lea rdx, str.GetActiveWindow
mov rcx, rbp
mov qword [0x00490608], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00404710
lea rdx, str.GetLastActivePopup
mov rcx, rbp
mov qword [0x00490610], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00404710
lea rcx, [rsp + 0x30]
mov qword [0x00490618], rax
call fcn.00405050
test eax, eax
je 0x409dd7
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.00402e40
cmp dword [rsp + 0x30], 2
jne 0x409e21
lea rdx, str.GetUserObjectInformationA
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00404710
test rax, rax
mov qword [0x00490628], rax
je 0x409e21
lea rdx, str.GetProcessWindowStation
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00404710
mov qword [0x00490620], rax
mov rcx, qword [0x00490620]
cmp rcx, rsi
je 0x409eb3
cmp qword [0x00490628], rsi
je 0x409eb3
call fcn.004047e0
call rax
test rax, rax
mov rbp, rax
je 0x409e7e
mov rcx, qword [0x00490628]
call fcn.004047e0
lea rcx, [rsp + 0x38]
mov r9d, 0xc
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
lea r8, [rsp + 0x40]
mov rcx, rbp
call rax
test eax, eax
je 0x409e7e
test byte [rsp + 0x48], 1
jne 0x409eb3
lea rcx, [rsp + 0x34]
call fcn.004050a0
test eax, eax
je 0x409ea0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.00402e40
cmp dword [rsp + 0x34], 4
jb 0x409ead
bts edi, 0x15
jmp 0x409ee7
bts edi, 0x12
jmp 0x409ee7
mov rcx, qword [0x00490610]
cmp rcx, rsi
je 0x409ee7
call fcn.004047e0
call rax
test rax, rax
mov rbx, rax
je 0x409ee7
mov rcx, qword [0x00490618]
cmp rcx, rsi
je 0x409ee7
call fcn.004047e0
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x00490608]
call fcn.004047e0
mov r9d, edi
mov r8, r12
mov rdx, r13
mov rcx, rbx
call rax
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x140004d44
Capabilities:
Parse pe header

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

Disassembly:
push r15
mov eax, 0x10088
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.140089940
sub rsp, rax
xor edx, edx
mov rbp, rcx
xor ecx, ecx
mov word [rsp + 0x80], dx
lea r15, [rsp + 0x30]
movzx eax, byte [rbp]
mov word [rsp + 0x30], cx
test al, al
je 0x140026815
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14009a858
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x1400267f6
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x1400267e8
test rsi, rsi
je 0x14009a858
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x1400267a8
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140026844
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10088
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140026860
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
movzx eax, byte [rcx]
mov qword [rsp + 0xd8], rdx
xor edx, edx
mov rbp, rcx
lea r15, [rsp + 0x30]
mov word [rsp + 0x30], dx
test al, al
je 0x14002691d
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14009a85e
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x1400268fe
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x1400268f0
test rsi, rsi
je 0x14009a85e
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x1400268b0
mov rdx, qword [rsp + 0xd8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14003d620
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rbx, qword [0x1400be1f0]
mov rsi, rcx
test rbx, rbx
je 0x14003d6a0
mov rax, qword [0x1400ace70]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x14003d690
mov rdx, qword [0x1400be428]
test rdx, rdx
je 0x14003d798
mov rcx, rbx
mov rbx, qword [sym.imp.python310.dll_PyNumber_InPlaceAdd]
call rbx
mov rcx, rax
mov rdx, rsi
mov rax, rbx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp rax
mov rbx, qword [sym.imp.python310.dll_PyNumber_InPlaceAdd]
jmp 0x14003d671
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.140026750
test rax, rax
je 0x14003d7b8
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r13, r14
lea r12, [r15 + 0x28]
mov word [rsp + 0x40], cx
lea rbp, [rsp + 0x3a]
lea rdi, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov eax, 0x4e
nop
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, r15
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14009a910
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x14003d73e
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x14003d730
test rbx, rbx
je 0x14009a910
mov word [rax], dx
add r15, 1
xor edx, edx
add r13, 2
mov word [rax + 2], dx
movzx eax, byte [r15]
test al, al
jne 0x14003d6f0
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rax + 0x1f0]
call fcn.14003d560
mov rbx, rax
mov qword [0x1400be1f0], rbx
jmp 0x14003d642
lea rcx, [0x1400a9490]
call qword [sym.imp.python310.dll_PyUnicode_FromString]
mov qword [0x1400be428], rax
mov rdx, rax
jmp 0x14003d662
mov rbx, qword [0x1400be208]
test rbx, rbx
jne 0x14003d786
cmp byte [0x1400be422], 0
je 0x14003d7f6
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400be220]
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
mov qword [0x1400be208], rax
mov rbx, rax
test rax, rax
je 0x14003d802
add qword [rax], 1
jmp 0x14003d786
mov ecx, 1
call fcn.140027370
jmp 0x14003d7cd
call qword [sym.imp.python310.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop
call sub.msvcrt.dll_abort
nop
Function at 0x14003f140
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.140026750
test rax, rax
je 0x14003f2a0
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 0x14009a92e
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x14003f1f6
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x14003f1e8
test rbx, rbx
je 0x14009a92e
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 0x14003f1a8
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rdx, qword [0x1400beb60]
mov rsi, qword [rax + 0x1f0]
mov rax, qword [0x1400ace70]
mov rbx, qword [rax + 0x1c0]
test rdx, rdx
je 0x14003f2f0
mov r8, rbx
mov rcx, rsi
call fcn.1400297d0
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.14003ae50
sub qword [rbx], 1
jne 0x14003f284
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 [0x1400be200]
lea rsi, [0x1400be200]
test bl, bl
je 0x14003f2c0
mov rax, qword [0x1400be208]
lea rsi, [0x1400be208]
test rax, rax
jne 0x14003f284
cmp byte [0x1400be422], 0
je 0x14003f31d
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400be220]
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x14003f327
add qword [rax], 1
jmp 0x14003f284
mov rdx, qword [0x1400bead8]
mov rdi, qword [rax + 0x1b0]
test rdx, rdx
je 0x14003f332
mov r8, rdi
mov rcx, rsi
call fcn.1400297d0
mov qword [0x1400beb60], rax
mov rdx, rax
jmp 0x14003f24e
movzx ecx, bl
call fcn.140027370
jmp 0x14003f2ce
call qword [sym.imp.python310.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x1400a4e9e]
call qword [sym.imp.python310.dll_PyImport_ImportModule]
mov qword [0x1400bead8], rax
mov rdx, rax
test rax, rax
je 0x14009a92e
jmp 0x14003f303
Function at 0x14007fbc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400be1e9], 0
mov rbp, rcx
mov rdi, rdx
mov r12, r8
je 0x14007fc68
lea rdx, [0x1400a8c1a]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x14007fcd0
mov rbx, qword [0x1400be088]
jmp 0x14007fc05
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, r12
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x14007fc00
movzx eax, word [rdx + 4]
lea r8, [rdx + 6]
test ax, ax
je 0x14007fc57
lea rbx, [rdi + rax*8]
nop word cs:[rax + rax]
mov rdx, rdi
mov rcx, rbp
add rdi, 8
call fcn.14006eff0
mov r8, rax
cmp rdi, rbx
jne 0x14007fc40
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x1400be088], rax
mov ebx, dword [rax]
mov qword [0x1400be088], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1400be088], rdx
call fcn.14007ecf0
cmp eax, ebx
jne 0x14007fd57
mov byte [0x1400be1e9], 1
jmp 0x14007fbe0
cmp byte [0x1400be1e8], 0
jne 0x14007fbf7
mov rbx, qword [sym.imp.python310.dll_PyDict_New]
call rbx
mov qword [0x1400bed68], rax
call rbx
mov qword [0x1400bed60], rax
call rbx
mov qword [0x1400bed58], rax
call rbx
mov qword [0x1400bed50], rax
call rbx
mov qword [0x1400bed48], rax
call rbx
mov qword [0x1400bed40], rax
call rbx
mov qword [0x1400bed38], rax
call rbx
mov byte [0x1400be1e8], 1
mov qword [0x1400bed30], rax
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rax, qword [rax + 0x10]
add rax, 0xda0
mov qword [0x1400be080], rax
jmp 0x14007fbf7
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140088620
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.140099db0
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.140099db0
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 0x1400892f2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400bf228]
test eax, eax
je 0x14008938a
lea rax, [0x1400bf200]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400bf230]
mov qword [rbp - 8], rax
jmp 0x14008936e
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 0x140089362
cmp qword [rbp - 0x10], 0
je 0x140089362
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 0x140089328
lea rax, [0x1400bf200]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14008938b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140089490
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 0x1400894b8
mov eax, 0
jmp 0x140089506
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 0x1400894e1
mov eax, 0
jmp 0x140089506
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 0x140089501
mov eax, 0
jmp 0x140089506
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14008950c
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 0x14008958a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140089581
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 0x140089581
mov rax, qword [rbp - 8]
jmp 0x14008959f
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 0x140089554
mov eax, 0
add rsp, 0x20
pop rbp
ret