joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180010ca0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov edi, dword [rsp + 0x70]
lea ebp, [rcx - 0x37bf]
mov edx, dword [rsp + 0x78]
lea esi, [r9 + 0x24c]
mov rbx, r8
xor edi, 0x1834
mov eax, 0xffffe6b3
mov dword [rsp + 0x70], edi
xor edx, 0x2c76
lea r8d, [r9 + 0x69f]
sub eax, dword [rbx + 0xc0]
add dword [rbx + 4], eax
mov eax, ebp
xor eax, 0x3bc7
cmp esi, eax
je 0x180010d83
lea eax, [rdx + 0x3ce1]
cmp esi, eax
jg 0x180010d0b
mov dword [rbx + 0x1c], 0x17de8
jmp 0x180010d83
mov eax, dword [rbx + 0x48]
xor eax, ebp
add eax, 0x30f9
cmp edi, eax
jb 0x180010d83
imul esi, edx
mov eax, ebp
and eax, 0x3ca7
mov dword [rsp + 0x50], eax
or esi, 0x353f
imul ecx, edx, 0x334a
mov dword [rsp + 0x68], ecx
nop word [rax + rax]
sub r8d, dword [rbx + 0x74]
mov edx, dword [rbx + 0x118]
mov r9d, r8d
mov dword [rsp + 0x28], eax
mov r8, rbx
or edx, 0x2c76
mov dword [rsp + 0x20], esi
call fcn.180010ca0
mov ecx, dword [rbx + 0x48]
inc edi
xor ecx, ebp
mov r8d, eax
mov eax, dword [rsp + 0x50]
add ecx, 0x30f9
cmp edi, ecx
mov ecx, dword [rsp + 0x68]
jae 0x180010d40
mov edi, dword [rsp + 0x70]
mov rbx, qword [rsp + 0x58]
xor edi, 0xa92
mov eax, edi
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x180011650
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r13d, dword [rsp + 0xa0]
add ecx, 0xfffffb7d
mov eax, dword [rsp + 0xa8]
mov rbx, r9
mov r8d, dword [rsp + 0xb0]
mov r14d, r8d
mov r15d, dword [rsp + 0xc0]
xor r14d, 0xa3b
lea edi, [r13 - 0xa9e]
mov dword [rsp + 0xa0], ecx
lea r9d, [rax - 0x37bf]
add r15d, 0xffffff18
lea edx, [rax - 0x6c6]
mov dword [rsp + 0xa8], r9d
mov eax, edi
lea r12d, [r13 - 0x1f5]
xor eax, 0x4d6
xor r13d, 0x19e2
cmp edx, eax
je 0x180011801
lea eax, [rdx + 0x5a3]
mov qword [rsp + 0x40], rbx
lea edx, [r14 - 0xbf]
mov dword [rsp + 0x38], r13d
lea r9d, [r8 - 0xe30]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], edx
lea r10d, [r14 - 0xa70]
mov r8d, r15d
mov dword [rsp + 0x20], r10d
lea edx, [r15 + 0x201]
xor r8d, 0x17b1
lea ecx, [rdi + 0x2bd]
call fcn.180011cb0
mov ecx, dword [rsp + 0xc0]
lea edx, [r14 + 0x123]
mov r9d, dword [rsp + 0xa0]
xor ecx, 0x11bf
mov esi, eax
mov qword [rsp + 0x30], rbx
xor r9d, 0x6d7
mov eax, r15d
mov dword [rsp + 0x28], r9d
mov r8d, r15d
lea r9d, [rcx - 0x645]
xor eax, 0xab
mov ecx, dword [rsp + 0xb0]
xor r8d, 0x19ab
mov dword [rsp + 0x20], eax
call fcn.180010540
mov edi, eax
lea r9d, [r15 + 0x106b]
mov eax, dword [rbx + 0x7c]
lea r11d, [r13 + 0x996]
xor eax, dword [rbx + 0x58]
lea ecx, [r15 + 0x201]
xor eax, 0x6a5beadb
xor esi, 0x2aa
lea r10d, [rdi + 0xb3c]
mov dword [rbx + 0x58], eax
lea eax, [r14 - 0x9af]
xor edi, 0x1be1
mov dword [rsp + 0x40], eax
xor r12d, 0x1d0d
mov dword [rsp + 0x38], r9d
lea edx, [rsi + 0x463]
mov dword [rsp + 0x30], r10d
mov r9d, edi
mov qword [rsp + 0x28], rbx
mov r8d, r12d
mov dword [rsp + 0x20], r11d
call fcn.18000fa40
mov eax, esi
jmp 0x1800118c2
mov eax, dword [rbx + 0x6c]
mov esi, r14d
imul eax, r14d
imul eax, dword [rbx + 0x10c]
cmp r14d, eax
ja 0x1800118c0
mov ebp, edx
lea r10d, [rdx + r14]
sub ebp, r12d
mov dword [rsp + 0xc0], r10d
mov r13d, edi
imul ebp, ecx
imul r13d, r14d
imul r12d, r14d
nop word [rax + rax]
mov ecx, dword [rbx + 0xd0]
mov eax, edi
mov edx, dword [rbx + 0xf8]
sub eax, r15d
mov r8d, dword [rbx + 0xdc]
add eax, r14d
imul ecx, r9d
xor edx, r9d
mov dword [rsp + 0x40], ebp
xor r15d, r14d
mov dword [rsp + 0x38], eax
add r15d, 0x2c76
add r8d, 0x2aa1
mov r9d, r10d
mov dword [rsp + 0x30], ecx
mov rcx, rbx
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r13d
call fcn.180010010
sub dword [rbx + 0x48], r12d
add esi, 2
mov ecx, dword [rbx + 0x6c]
mov r15d, eax
mov r9d, dword [rsp + 0xa8]
mov r10d, dword [rsp + 0xc0]
imul ecx, r14d
imul ecx, dword [rbx + 0x10c]
cmp esi, ecx
jbe 0x180011840
mov eax, edi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1800118e0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
mov edi, r9d
lea r15d, [r9 - 0x3e2]
add r9d, 0x533
lea r10d, [rcx - 0x7d4]
mov rbx, r8
xor edi, 0x3140
lea r8d, [rcx - 0x796]
add ecx, 0xfffff700
lea eax, [r9 - 0x96]
cmp ecx, eax
jg 0x1800119d5
mov eax, edx
xor eax, 0x1d36
cmp r9d, eax
jle 0x18001195f
mov eax, dword [rbx + 0xdc]
xor eax, 0x1a6759
mov dword [rbx + 0x70], eax
mov eax, dword [rbx + 0xf8]
sub eax, 0x1a908b
xor edi, 0x2d5e
mov dword [rbx + 0x58], eax
mov eax, edi
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
mov qword [rsp + 0x40], rbp
lea eax, [rdx - 0x2c76]
lea ebp, [r10 + 0x3c09]
mov qword [rsp + 0x48], rsi
mov esi, dword [rbx + 0x110]
xor ebp, eax
cmp esi, ebp
jle 0x1800119cb
sub r8d, r10d
mov qword [rsp + 0x50], r14
movsxd r14, r8d
nop dword [rax]
mov edx, dword [rbx + 0x3c]
mov rcx, r14
neg edx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edx, dword [rbx + 0xdc]
mov ecx, r15d
imul edx, dword [rbx + 0x74]
xor ecx, dword [rbx + 0xf8]
or ecx, dword [rbx + 0xf4]
add edx, edi
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
add esi, 2
cmp esi, ebp
jg 0x180011990
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor edi, 0x2d5e
mov eax, edi
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
Function at 0x140001b80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4550
je 0x140001bd4
xor eax, eax
jmp 0x140001cd1
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x20], 0
jmp 0x140001c55
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x20], eax
jae 0x140001ccf
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x58]
movzx eax, word [rcx + rax*2]
mov word [rsp + 0x30], ax
mov rcx, qword [rsp + 0x60]
call fcn.140001ce0
cmp dword [rsp + 0x98], eax
jne 0x140001cca
movzx eax, word [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
jmp 0x140001cd1
jmp 0x140001c4b
xor eax, eax
add rsp, 0x88
ret

Function at 0x140002030
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov rax, qword [rsp + 0x20]
mov qword [rsp], rax
mov rax, qword [rsp]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140002059
xor eax, eax
jmp 0x1400020af
mov rax, qword [rsp]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
cmp dword [rax], 0x4550
je 0x140002082
xor eax, eax
jmp 0x1400020af
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
mov eax, 1
add rsp, 0x18
ret

Function at 0x140002fc1
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, dword [0x1400045a0]
syscall
ret
Function at 0x14002982c
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.14001ce24
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001ce24
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002997c
cmp rax, 0xffffffffffffffff
je 0x14002997c
xor edi, edi
test rbp, rbp
jle 0x140029927
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f738
mov rbx, rax
test rax, rax
jne 0x1400298b4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002991d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a758
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.14001db00
cmp eax, 0xffffffff
je 0x1400298fd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400298c4
mov edx, r15d
mov ecx, r14d
call fcn.14001a758
jmp 0x14002991d
cmp byte [rsi + 0x38], dil
je 0x140029914
cmp dword [rsi + 0x34], 5
jne 0x140029914
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002991d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b4ec
jmp 0x140029990
jns 0x140029990
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001ce24
cmp rax, 0xffffffffffffffff
jne 0x140029948
cmp byte [rsi + 0x30], dil
je 0x140029990
mov edi, dword [rsi + 0x2c]
jmp 0x140029990
mov ecx, r14d
call fcn.140018c10
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029990
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 0x140029990
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029989
mov eax, dword [rsi + 0x2c]
jmp 0x14002998e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001ce24
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 0x14002aa80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002aaa8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002aaa8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140f54000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x140f5400a
jmp 0x140f5600f
jmp fcn.140a58058
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140336dc0]
mov dword [rax], 1
mov rax, qword [0x140336dd0]
mov dword [rax], 1
mov rax, qword [0x140336de0]
mov dword [rax], 1
mov rax, qword [0x140336d40]
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 0x1402aacf0
Capabilities:
Query environment variable

Disassembly:
push r14
mov eax, 0x10080
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14030e980
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 0x1402aad99
nop dword [rax]
mov rax, r14
lea rbx, [rbp + rsi*2]
sub rax, rsi
cmp word [rbp + rsi*2], 0
je 0x1402aad5e
nop dword [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x1402aad50
test rax, rax
je 0x14031f88e
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 0x1402aad38
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 0x1402aadc8
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 0x1402aade0
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 0x1402aae81
nop word [rax + rax]
mov rax, r13
lea rbx, [r15 + rsi*2]
sub rax, rsi
cmp word [r15 + rsi*2], 0
je 0x1402aae46
nop word [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x1402aae38
test rax, rax
je 0x14031f894
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 0x1402aae20
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 0x1402c1f20
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.1402aacf0
test rax, rax
je 0x1402c2060
mov rdx, 0xffffffffffffffff
mov rcx, rax
lea r14, [rsp + 0x40]
mov r15d, 0x4e
call qword [sym.imp.python310.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 0x1402c1f9e
nop
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x1402c1f90
test rax, rax
je 0x14031f946
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 0x1402c1f80
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rdx, qword [0x140362098]
mov rsi, qword [rax + 0x1f0]
mov rax, qword [0x140336f10]
mov rbx, qword [rax + 0x1b8]
test rdx, rdx
je 0x1402c20b8
mov r8, rbx
mov rcx, rsi
call fcn.1402ad790
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.1402bef60
sub qword [rbx], 1
jne 0x1402c2049
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 [0x140361968]
lea rsi, [0x140361968]
test bl, bl
je 0x1402c2080
mov rax, qword [0x140361970]
lea rsi, [0x140361970]
test rax, rax
jne 0x1402c2049
cmp byte [0x140361b82], 0
jne 0x1402c2096
movzx ecx, bl
call fcn.14028b800
mov rdx, 0xffffffffffffffff
lea rcx, [0x140361980]
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x1402c20e5
add qword [rax], 1
jmp 0x1402c2049
mov rdx, qword [0x140362010]
mov rdi, qword [rax + 0x1a8]
test rdx, rdx
je 0x1402c20f0
mov r8, rdi
mov rcx, rsi
call fcn.1402ad790
mov qword [0x140362098], rax
mov rdx, rax
jmp 0x1402c2013
call qword [sym.imp.python310.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x14032f6ee]
call qword [sym.imp.python310.dll_PyImport_ImportModule]
mov qword [0x140362010], rax
mov rdx, rax
test rax, rax
je 0x14031f946
jmp 0x1402c20cb
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.python310.dll_PyErr_NoMemory]
call sub.msvcrt.dll_abort
nop
Function at 0x140304290
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x140361951], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x140304318
lea rdx, [0x140332c92]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140304380
mov rbx, qword [0x140361808]
jmp 0x1403042d5
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 0x1403042d0
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.1402f34d0
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 [0x140361808], rax
mov ebx, dword [rax]
mov qword [0x140361808], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x140361808], rdx
call fcn.1403033c0
cmp eax, ebx
jne 0x140304407
mov byte [0x140361951], 1
jmp 0x1403042ac
cmp byte [0x140361950], 0
jne 0x1403042c3
mov rbx, qword [sym.imp.python310.dll_PyDict_New]
call rbx
mov qword [0x140362288], rax
call rbx
mov qword [0x140362280], rax
call rbx
mov qword [0x140362278], rax
call rbx
mov qword [0x140362270], rax
call rbx
mov qword [0x140362268], rax
call rbx
mov qword [0x140362260], rax
call rbx
mov qword [0x140362258], rax
call rbx
mov byte [0x140361950], 1
mov qword [0x140362250], rax
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rax, qword [rax + 0x10]
add rax, 0xda0
mov qword [0x140361800], rax
jmp 0x1403042c3
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x14030d660
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.14031edf0
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.14031edf0
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 0x14030e332
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140362748]
test eax, eax
je 0x14030e3ca
lea rax, [0x140362720]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140362750]
mov qword [rbp - 8], rax
jmp 0x14030e3ae
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 0x14030e3a2
cmp qword [rbp - 0x10], 0
je 0x14030e3a2
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 0x14030e368
lea rax, [0x140362720]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14030e3cb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14030e4d0
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 0x14030e4f8
mov eax, 0
jmp 0x14030e546
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 0x14030e521
mov eax, 0
jmp 0x14030e546
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 0x14030e541
mov eax, 0
jmp 0x14030e546
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14030e54c
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 0x14030e5ca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14030e5c1
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 0x14030e5c1
mov rax, qword [rbp - 8]
jmp 0x14030e5df
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 0x14030e594
mov eax, 0
add rsp, 0x20
pop rbp
ret