Function at 0x140060150
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 [0x140090190], 0
mov r12, rcx
mov r13, rdx
mov rdi, r8
je 0x1400601d8
lea rdx, [0x14007f88a]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400602e0
mov rsi, qword [0x140090188]
jmp 0x140060195
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 0x140060190
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.14005e610
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 [0x140090188], rcx
test eax, eax
je 0x1400602c8
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 0x140060230
not eax
cmp r9d, eax
jne 0x140060367
mov byte [0x140090190], 1
jmp 0x14006016d
cmp byte [0x140090180], 0
jne 0x140060184
mov rbx, qword [sym.imp.python310.dll_PyDict_New]
call rbx
mov qword [0x1400901e0], rax
call rbx
mov qword [0x1400901d8], rax
call rbx
mov qword [0x1400901d0], rax
call rbx
mov qword [0x140090210], rax
call rbx
mov qword [0x140090208], rax
call rbx
mov qword [0x140090200], rax
call rbx
mov qword [0x1400901f0], rax
call rbx
mov byte [0x140090180], 1
mov qword [0x1400901e8], rax
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rax, qword [rax + 0x10]
add rax, 0xda0
mov qword [0x140090198], rax
jmp 0x140060184
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [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.python310.dll_PyArg_ParseTupleAndKeywords]
test eax, eax
je 0x1400605f0
xor ecx, ecx
lea rdi, [0x14007f894]
call fcn.140051320
mov r13, rax
mov rax, qword [0x140082860]
mov rbx, qword [rax]
mov rax, qword [r14 + 0x10]
test rax, rax
je 0x1400603e6
mov rdi, qword [rax]
mov r12, qword [rbx]
lea rbp, str.__main__
test r12, r12
jne 0x14006040c
jmp 0x140060572
mov r12, qword [rbx]
test r12, r12
je 0x140060572
mov eax, dword [rbx + 0x18]
test al, 0x10
je 0x140060419
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 0x140060400
mov rdx, rbp
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x140060400
cmp byte [r12 + rsi], 0
je 0x140060400
lea r15, [r12 + rsi + 1]
mov edx, 0x2e
mov rcx, r15
call sub.msvcrt.dll_strchr
test rax, rax
jne 0x140060400
cmp qword [r14 + 0x10], 0
je 0x1400605a0
mov rcx, r15
call qword [sym.imp.python310.dll_PyUnicode_FromString]
mov rcx, qword [rsp + 0x48]
cmp rcx, qword [sym.imp.python310.dll__Py_TrueStruct]
mov r12, rax
je 0x1400605be
cmp rcx, qword [sym.imp.python310.dll__Py_NoneStruct]
je 0x1400604d5
cmp rcx, qword [sym.imp.python310.dll__Py_FalseStruct]
je 0x1400604d5
call fcn.14003e3f0
test eax, eax
je 0x1400604d5
mov rcx, qword [rsp + 0x48]
mov rdx, r12
call qword [sym.imp.python310.dll_PyUnicode_Concat]
sub qword [r12], 1
mov rsi, rax
jne 0x1400605d0
mov rax, qword [r12 + 8]
mov rcx, r12
mov r12, rsi
call qword [rax + 0x30]
call fcn.140063560
test byte [rbx - 0x10], 2
mov r15, qword [r13 + 0x10]
mov qword [rax + 0x18], r12
mov rsi, rax
mov rax, qword [sym.imp.python310.dll__Py_TrueStruct]
cmove rax, qword [sym.imp.python310.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 0x14006051d
sar rax, 1
cmp r12, rax
jge 0x1400605e0
test r12, r12
je 0x140060590
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.python310.dll_PyMem_Realloc]
mov r9, qword [rsp + 0x38]
test rax, rax
mov rcx, rax
je 0x140060600
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 0x14006040c
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 0x14006053a
mov rcx, r12
call qword [sym.imp.python310.dll_PyUnicode_FromString]
mov rcx, qword [rsp + 0x48]
cmp rcx, qword [sym.imp.python310.dll__Py_TrueStruct]
mov r12, rax
jne 0x140060490
mov rcx, qword [sym.imp.python310.dll__Py_TrueStruct]
jmp 0x1400604b0
mov r12, rax
jmp 0x1400604d5
mov qword [r13 + 0x10], r12
jmp 0x140060562
xor r13d, r13d
jmp 0x140060572
call qword [sym.imp.python310.dll_PyErr_NoMemory]
jmp 0x140060400