Function at 0x140037ca0
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 [0x1400612c8], 0
mov r12, rcx
mov r13, rdx
mov rdi, r8
je 0x140037d28
lea rdx, [0x140056942]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140037e30
mov rsi, qword [0x1400612c0]
jmp 0x140037ce5
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 0x140037ce0
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.140036340
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 [0x1400612c0], rcx
test eax, eax
je 0x140037e18
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 0x140037d80
not eax
cmp r9d, eax
jne 0x140037e98
mov byte [0x1400612c8], 1
jmp 0x140037cbd
cmp byte [0x1400612b8], 0
jne 0x140037cd4
mov rbx, qword [sym.imp.python311.dll_PyDict_New]
call rbx
mov qword [0x140061310], rax
call rbx
mov qword [0x140061308], rax
call rbx
mov qword [0x140061300], rax
call rbx
mov qword [0x140061340], rax
call rbx
mov qword [0x140061338], rax
call rbx
mov qword [0x140061330], rax
call rbx
mov qword [0x140061320], rax
call rbx
mov byte [0x1400612b8], 1
mov qword [0x140061318], rax
jmp 0x140037cd4
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 0x1400381b0
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 0x140038180
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, [0x14005694c]
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 [0x140058290]
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 0x140037f9d
mov rdi, qword [rax]
mov r12, qword [rbx]
lea rbp, str.__main__
test r12, r12
jne 0x140037fc4
jmp 0x14003812a
mov r12, qword [rbx]
test r12, r12
je 0x14003812a
mov eax, dword [rbx + 0x18]
test al, 0x10
je 0x140037fd1
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 0x140037fb8
mov rdx, rbp
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x140037fb8
cmp byte [r12 + rsi], 0
je 0x140037fb8
lea r15, [r12 + rsi + 1]
mov edx, 0x2e
mov rcx, r15
call sub.msvcrt.dll_strchr
test rax, rax
jne 0x140037fb8
cmp qword [r14 + 0x10], 0
je 0x140038150
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 0x14003816e
cmp rcx, qword [sym.imp.python311.dll__Py_NoneStruct]
je 0x14003808d
cmp rcx, qword [sym.imp.python311.dll__Py_FalseStruct]
je 0x14003808d
call fcn.140012cc0
test eax, eax
je 0x14003808d
mov rcx, qword [rsp + 0x48]
mov rdx, r12
call qword [sym.imp.python311.dll_PyUnicode_Concat]
sub qword [r12], 1
mov rsi, rax
jne 0x140038198
mov rax, qword [r12 + 8]
mov rcx, r12
mov r12, rsi
call qword [rax + 0x30]
call fcn.140033b80
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 0x1400380d5
sar rax, 1
cmp r12, rax
jge 0x1400381a0
test r12, r12
je 0x140038140
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 0x1400381c0
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 0x140037fc4
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 0x1400380f2
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 0x140038048
mov rcx, qword [sym.imp.python311.dll__Py_TrueStruct]
jmp 0x140038068
mov rcx, qword [sym.imp.python311.dll_PyList_Type]
call fcn.140013240
mov r13, rax
jmp 0x140037f2a
mov r12, rax
jmp 0x14003808d
mov qword [r13 + 0x10], r12
jmp 0x14003811a
xor r13d, r13d
jmp 0x14003812a
call qword [sym.imp.python311.dll_PyErr_NoMemory]
jmp 0x140037fb8