joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400652d8
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400463b4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140065362
cmp byte [rbp - 0x21], r15b
je 0x14006535d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140065398
call fcn.140057bac
test eax, eax
jne 0x140065384
cmp byte [rbp - 0x21], r15b
je 0x14006537c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140065398
cmp byte [rbp - 0x21], r15b
je 0x140065395
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14004b89c
test eax, eax
jne 0x140065438
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400463b4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400653d7
cmp byte [rbp - 0x21], r15b
je 0x14006540c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14006540c
call fcn.140057bac
test eax, eax
jne 0x1400653f8
cmp byte [rbp - 0x21], r15b
je 0x1400653f1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14006540c
cmp byte [rbp - 0x21], r15b
je 0x140065409
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14004b89c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140065438
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14006543b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140065449
mov rcx, rdi
call fcn.140054330
cmp byte [rbp + 0x3f], r15b
je 0x140065458
mov rcx, qword [rbp + 0x27]
call fcn.140054330
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140065fb4
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.1400599a4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400599a4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140066101
cmp rax, 0xffffffffffffffff
je 0x140066101
xor edi, edi
test rbp, rbp
jle 0x1400660af
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140057820
mov rbx, rax
test rax, rax
jne 0x14006603c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400660a5
mov edx, 0x8000
mov ecx, r14d
call fcn.14005201c
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.140056d90
cmp eax, 0xffffffff
je 0x140066085
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14006604c
mov edx, r15d
mov ecx, r14d
call fcn.14005201c
jmp 0x1400660a5
cmp byte [rsi + 0x38], dil
je 0x14006609c
cmp dword [rsi + 0x34], 5
jne 0x14006609c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400660a5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140054330
jmp 0x140066113
jns 0x140066113
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400599a4
cmp rax, 0xffffffffffffffff
jne 0x1400660cd
cmp byte [rsi + 0x30], dil
je 0x140066113
jmp 0x140066109
mov ecx, r14d
call fcn.14005f1cc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140066113
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 0x140066113
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14006610e
mov edi, dword [rsi + 0x2c]
jmp 0x140066113
mov edi, 0x16
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400599a4
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 0x140066980
Capabilities:
Parse pe header

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

Disassembly:
call 0x1409d01df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1409d0089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409d006f
add dl, dl
jne 0x1409d0096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409d00f6
xor eax, eax
add dl, dl
jne 0x1409d00a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409d01ad
add dl, dl
jne 0x1409d00b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409d00c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409d00d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409d00dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1409d00ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1409d007e
mov eax, 1
add dl, dl
jne 0x1409d0106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409d0113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409d00fb
sub eax, ebx
mov ebx, 1
jne 0x1409d014c
mov ecx, 1
add dl, dl
jne 0x1409d012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409d013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409d0123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409d007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1409d0168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409d0175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409d015d
cmp eax, 0x7d00
jae 0x1409d019b
cmp eax, 0x500
jb 0x1409d0196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409d007e
cmp eax, 0x7f
ja 0x1409d019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409d007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1409d01d2
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 0x1409d007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140524ae0]
mov dword [rax], 1
mov rax, qword [0x140524af0]
mov dword [rax], 1
mov rax, qword [0x140524b00]
mov dword [rax], 1
mov rax, qword [0x140524a80]
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 0x1404960c0
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.1404f91e0
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 0x140496185
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 0x14050a0e8
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x140496166
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x140496158
test rsi, rsi
je 0x14050a0e8
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x140496118
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 0x1404961b4
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 0x1404961d0
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 0x14049628d
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 0x14050a0ee
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14049626e
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x140496260
test rsi, rsi
je 0x14050a0ee
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x140496220
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 0x1404acf90
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 [0x1405609d0]
mov rsi, rcx
test rbx, rbx
je 0x1404ad010
mov rax, qword [0x140524c30]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x1404ad000
mov rdx, qword [0x140560c08]
test rdx, rdx
je 0x1404ad108
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 0x1404acfe1
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.1404960c0
test rax, rax
je 0x1404ad128
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 0x14050a1a0
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x1404ad0ae
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x1404ad0a0
test rbx, rbx
je 0x14050a1a0
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 0x1404ad060
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.1404aced0
mov rbx, rax
mov qword [0x1405609d0], rbx
jmp 0x1404acfb2
lea rcx, [0x140521270]
call qword [sym.imp.python310.dll_PyUnicode_FromString]
mov qword [0x140560c08], rax
mov rdx, rax
jmp 0x1404acfd2
mov rbx, qword [0x1405609e8]
test rbx, rbx
jne 0x1404ad0f6
cmp byte [0x140560c02], 0
je 0x1404ad166
mov rdx, 0xffffffffffffffff
lea rcx, [0x140560a00]
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
mov qword [0x1405609e8], rax
mov rbx, rax
test rax, rax
je 0x1404ad172
add qword [rax], 1
jmp 0x1404ad0f6
mov ecx, 1
call fcn.140496ce0
jmp 0x1404ad13d
call qword [sym.imp.python310.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop
call sub.msvcrt.dll_abort
nop
Function at 0x1404aeab0
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.1404960c0
test rax, rax
je 0x1404aec10
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 0x14050a1be
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x1404aeb66
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x1404aeb58
test rbx, rbx
je 0x14050a1be
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 0x1404aeb18
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rdx, qword [0x140561340]
mov rsi, qword [rax + 0x1f0]
mov rax, qword [0x140524c30]
mov rbx, qword [rax + 0x1c0]
test rdx, rdx
je 0x1404aec60
mov r8, rbx
mov rcx, rsi
call fcn.140499140
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.1404aa7c0
sub qword [rbx], 1
jne 0x1404aebf4
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 [0x1405609e0]
lea rsi, [0x1405609e0]
test bl, bl
je 0x1404aec30
mov rax, qword [0x1405609e8]
lea rsi, [0x1405609e8]
test rax, rax
jne 0x1404aebf4
cmp byte [0x140560c02], 0
je 0x1404aec8d
mov rdx, 0xffffffffffffffff
lea rcx, [0x140560a00]
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x1404aec97
add qword [rax], 1
jmp 0x1404aebf4
mov rdx, qword [0x1405612b8]
mov rdi, qword [rax + 0x1b0]
test rdx, rdx
je 0x1404aeca2
mov r8, rdi
mov rcx, rsi
call fcn.140499140
mov qword [0x140561340], rax
mov rdx, rax
jmp 0x1404aebbe
movzx ecx, bl
call fcn.140496ce0
jmp 0x1404aec3e
call qword [sym.imp.python310.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x14051cc7e]
call qword [sym.imp.python310.dll_PyImport_ImportModule]
mov qword [0x1405612b8], rax
mov rdx, rax
test rax, rax
je 0x14050a1be
jmp 0x1404aec73
Function at 0x1404ef530
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1405609c9], 0
mov rbp, rcx
mov rdi, rdx
mov r12, r8
je 0x1404ef5d8
lea rdx, [0x1405209fa]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1404ef640
mov rbx, qword [0x140560868]
jmp 0x1404ef575
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 0x1404ef570
movzx eax, word [rdx + 4]
lea r8, [rdx + 6]
test ax, ax
je 0x1404ef5c7
lea rbx, [rdi + rax*8]
nop word cs:[rax + rax]
mov rdx, rdi
mov rcx, rbp
add rdi, 8
call fcn.1404de960
mov r8, rax
cmp rdi, rbx
jne 0x1404ef5b0
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 [0x140560868], rax
mov ebx, dword [rax]
mov qword [0x140560868], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x140560868], rdx
call fcn.1404ee660
cmp eax, ebx
jne 0x1404ef6c7
mov byte [0x1405609c9], 1
jmp 0x1404ef550
cmp byte [0x1405609c8], 0
jne 0x1404ef567
mov rbx, qword [sym.imp.python310.dll_PyDict_New]
call rbx
mov qword [0x140561548], rax
call rbx
mov qword [0x140561540], rax
call rbx
mov qword [0x140561538], rax
call rbx
mov qword [0x140561530], rax
call rbx
mov qword [0x140561528], rax
call rbx
mov qword [0x140561520], rax
call rbx
mov qword [0x140561518], rax
call rbx
mov byte [0x1405609c8], 1
mov qword [0x140561510], rax
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rax, qword [rax + 0x10]
add rax, 0xda0
mov qword [0x140560860], rax
jmp 0x1404ef567
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1404f7ec0
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.140509640
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.140509640
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 0x1404f8b92
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140561a08]
test eax, eax
je 0x1404f8c2a
lea rax, [0x1405619e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140561a10]
mov qword [rbp - 8], rax
jmp 0x1404f8c0e
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 0x1404f8c02
cmp qword [rbp - 0x10], 0
je 0x1404f8c02
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 0x1404f8bc8
lea rax, [0x1405619e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1404f8c2b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1404f8d30
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 0x1404f8d58
mov eax, 0
jmp 0x1404f8da6
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 0x1404f8d81
mov eax, 0
jmp 0x1404f8da6
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 0x1404f8da1
mov eax, 0
jmp 0x1404f8da6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1404f8dac
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 0x1404f8e2a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1404f8e21
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 0x1404f8e21
mov rax, qword [rbp - 8]
jmp 0x1404f8e3f
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 0x1404f8df4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400040e0
Capabilities:
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [0x140101a58]
movzx ebp, r9b
movzx esi, dl
mov r10d, ecx
test r8b, r8b
je 0x14000411e
inc dword [0x140105da8]
add rbx, 0x150
mov qword [0x140101a58], rbx
mov rax, rbx
lea rcx, [0x140105c30]
mov edx, 2
nop dword [rax]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm1, xmmword [rcx - 0x70]
movups xmmword [rax - 0x70], xmm1
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x60], xmm0
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x50], xmm1
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x40], xmm0
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x30], xmm1
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x20], xmm0
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x10], xmm1
sub rdx, 1
jne 0x140004130
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rax + 0x40], xmm0
mov dword [rbx + 0x3c], r10d
test r8b, r8b
je 0x1400041be
lea rcx, [0x140108310]
call fcn.14001ad30
xor edi, edi
cmp dword [0x140105dc8], edi
mov qword [0x140108ec8], rdi
je 0x1400041f2
mov rax, qword [0x140103ef0]
lea rcx, [0x1400cfffc]
test rax, rax
je 0x1400041ec
mov rax, qword [rax]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test sil, sil
jne 0x14000427e
cmp byte [rbx + 0x12e], dil
jne 0x140004226
cmp bpl, 0x65
sete dil
mov byte [rbx + 0x12e], dil
test dil, dil
je 0x140004226
mov qword [rbx], 0xffffffffffffffff
mov dword [rbx + 0x34], 0xffffffff
cmp dword [0x140108ed4], 0
je 0x140004238
cmp dword [0x140108ed0], 0
jne 0x140004241
cmp byte [rbx + 0x12e], 0
je 0x14000427e
cmp byte [rbx + 0x12e], 0
mov byte [rbx + 0x12c], 0
jne 0x14000427e
cmp dword [0x140108ed4], 0
jge 0x140004266
mov dword [rbx + 0x120], 0xffffffff
jmp 0x14000427e
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x11c], eax
mov eax, dword [0x140108ed4]
mov dword [rbx + 0x120], eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret