Function at 0x1400415c0
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Hash data with crc32

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x14006bac8], 0
mov r12, rcx
mov r13, rdx
mov rdi, r8
je 0x140041648
lea rdx, [0x14006037a]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140041750
mov rsi, qword [0x14006bac0]
jmp 0x140041605
lea rsi, [rdx + rax + 4]
mov rdx, rsi
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rsi
mov ebx, eax
call sub.msvcrt.dll_strlen
lea rdx, [rsi + rax + 1]
mov eax, dword [rdx]
test ebx, ebx
jne 0x140041600
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, r12
mov rdx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp fcn.14003fa00
mov r8d, 0xa
mov edx, 3
xor ecx, ecx
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]
mov rdx, rax
mov r9d, dword [rax]
mov eax, dword [rax + 4]
lea rcx, [rdx + 8]
mov qword [0x14006bac0], rcx
test eax, eax
je 0x140041738
sub eax, 1
lea r8, [rdx + rax + 9]
mov eax, 0xffffffff
nop dword [rax + rax]
movzx edx, byte [rcx]
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
shr eax, 1
and edx, 1
add rcx, 1
neg edx
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor eax, edx
cmp r8, rcx
jne 0x1400416a0
not eax
cmp r9d, eax
jne 0x1400417b8
mov byte [0x14006bac8], 1
jmp 0x1400415dd
cmp byte [0x14006bab8], 0
jne 0x1400415f4
mov rbx, qword [sym.imp.python311.dll_PyDict_New]
call rbx
mov qword [0x14006bb10], rax
call rbx
mov qword [0x14006bb08], rax
call rbx
mov qword [0x14006bb00], rax
call rbx
mov qword [0x14006bb40], rax
call rbx
mov qword [0x14006bb38], rax
call rbx
mov qword [0x14006bb30], rax
call rbx
mov qword [0x14006bb20], rax
call rbx
mov byte [0x14006bab8], 1
mov qword [0x14006bb18], rax
jmp 0x1400415f4
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea r9, str.package
lea rax, [rsp + 0x48]
mov r14, rcx
mov rcx, rdx
mov rdx, r8
mov qword [rsp + 0x20], rax
lea r8, str.O:iter_modules
call qword [sym.imp.python311.dll_PyArg_ParseTupleAndKeywords]
test eax, eax
je 0x140041ad0
mov rbx, qword [sym.imp.python311.dll__PyRuntime]
mov rax, qword [rbx + 0x1f8]
mov rdx, qword [rax + 0x10]
mov eax, dword [rdx + 0x1188]
test eax, eax
je 0x140041aa0
sub eax, 1
mov dword [rdx + 0x1188], eax
cdqe
mov r13, qword [rdx + rax*8 + 0xf08]
mov qword [r13], 1
mov qword [r13 + 0x10], 0
lea rcx, [r13 - 0x10]
lea rdi, [0x140060384]
mov qword [r13 + 0x20], 0
mov rax, qword [rbx + 0x1f8]
mov qword [r13 + 0x18], 0
mov rax, qword [rax + 0x10]
mov rdx, qword [rax + 0x2e8]
mov rax, qword [r13 - 8]
mov r8, qword [rdx + 8]
and eax, 3
movq xmm0, rdx
or rax, r8
mov qword [r8], rcx
movq xmm1, rax
mov rax, qword [0x140061d60]
punpcklqdq xmm0, xmm1
mov rbx, qword [rax]
mov rax, qword [r14 + 0x10]
movups xmmword [r13 - 0x10], xmm0
mov qword [rdx + 8], rcx
test rax, rax
je 0x1400418bd
mov rdi, qword [rax]
mov r12, qword [rbx]
lea rbp, str.__main__
test r12, r12
jne 0x1400418e4
jmp 0x140041a4a
mov r12, qword [rbx]
test r12, r12
je 0x140041a4a
mov eax, dword [rbx + 0x18]
test al, 0x10
je 0x1400418f1
sub eax, 0x10
mov dword [rbx + 0x18], eax
mov rcx, rdi
add rbx, 0x28
call sub.msvcrt.dll_strlen
mov rdx, r12
mov rcx, rdi
mov r8, rax
mov rsi, rax
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x1400418d8
mov rdx, rbp
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x1400418d8
cmp byte [r12 + rsi], 0
je 0x1400418d8
lea r15, [r12 + rsi + 1]
mov edx, 0x2e
mov rcx, r15
call sub.msvcrt.dll_strchr
test rax, rax
jne 0x1400418d8
cmp qword [r14 + 0x10], 0
je 0x140041a70
mov rcx, r15
call qword [sym.imp.python311.dll_PyUnicode_FromString]
mov rcx, qword [rsp + 0x48]
cmp rcx, qword [sym.imp.python311.dll__Py_TrueStruct]
mov r12, rax
je 0x140041a8e
cmp rcx, qword [sym.imp.python311.dll__Py_NoneStruct]
je 0x1400419ad
cmp rcx, qword [sym.imp.python311.dll__Py_FalseStruct]
je 0x1400419ad
call fcn.140018700
test eax, eax
je 0x1400419ad
mov rcx, qword [rsp + 0x48]
mov rdx, r12
call qword [sym.imp.python311.dll_PyUnicode_Concat]
sub qword [r12], 1
mov rsi, rax
jne 0x140041ab8
mov rax, qword [r12 + 8]
mov rcx, r12
mov r12, rsi
call qword [rax + 0x30]
call fcn.14003d9a0
test byte [rbx - 0x10], 2
mov r15, qword [r13 + 0x10]
mov qword [rax + 0x18], r12
mov rsi, rax
mov rax, qword [sym.imp.python311.dll__Py_TrueStruct]
cmove rax, qword [sym.imp.python311.dll__Py_FalseStruct]
lea r12, [r15 + 1]
mov rcx, qword [r13 + 0x18]
add qword [rax], 1
mov qword [rsi + 0x20], rax
mov rax, qword [r13 + 0x20]
cmp r12, rax
jg 0x1400419f5
sar rax, 1
cmp r12, rax
jge 0x140041ac0
test r12, r12
je 0x140041a60
mov rax, r12
sar rax, 3
lea r9, [r15 + rax + 7]
and r9, 0xfffffffffffffffc
lea rdx, [r9*8]
mov qword [rsp + 0x38], r9
call qword [sym.imp.python311.dll_PyMem_Realloc]
mov r9, qword [rsp + 0x38]
test rax, rax
mov rcx, rax
je 0x140041ae0
mov qword [r13 + 0x18], rax
mov qword [r13 + 0x10], r12
mov qword [r13 + 0x20], r9
mov r12, qword [rbx]
mov qword [rcx + r15*8], rsi
test r12, r12
jne 0x1400418e4
mov rax, r13
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor edx, edx
xor r9d, r9d
jmp 0x140041a12
mov rcx, r12
call qword [sym.imp.python311.dll_PyUnicode_FromString]
mov rcx, qword [rsp + 0x48]
cmp rcx, qword [sym.imp.python311.dll__Py_TrueStruct]
mov r12, rax
jne 0x140041968
mov rcx, qword [sym.imp.python311.dll__Py_TrueStruct]
jmp 0x140041988
mov rcx, qword [sym.imp.python311.dll_PyList_Type]
call fcn.1400197f0
mov r13, rax
jmp 0x14004184a
mov r12, rax
jmp 0x1400419ad
mov qword [r13 + 0x10], r12
jmp 0x140041a3a
xor r13d, r13d
jmp 0x140041a4a
call qword [sym.imp.python311.dll_PyErr_NoMemory]
jmp 0x1400418d8