Function at 0x140046320
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 [0x140073388], 0
mov r12, rcx
mov r13, rdx
mov rdi, r8
je 0x1400463a8
lea rdx, [0x140067a62]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400464b0
mov rsi, qword [0x140073380]
jmp 0x140046365
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 0x140046360
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.140044ae0
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 [0x140073380], rcx
test eax, eax
je 0x140046498
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 0x140046400
not eax
cmp r9d, eax
jne 0x140046537
mov byte [0x140073388], 1
jmp 0x14004633d
cmp byte [0x140073378], 0
jne 0x140046354
mov rbx, qword [sym.imp.python310.dll_PyDict_New]
call rbx
mov qword [0x1400733d0], rax
call rbx
mov qword [0x1400733c8], rax
call rbx
mov qword [0x1400733c0], rax
call rbx
mov qword [0x140073400], rax
call rbx
mov qword [0x1400733f8], rax
call rbx
mov qword [0x1400733f0], rax
call rbx
mov qword [0x1400733e0], rax
call rbx
mov byte [0x140073378], 1
mov qword [0x1400733d8], rax
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rax, qword [rax + 0x10]
add rax, 0xda0
mov qword [0x140073408], rax
jmp 0x140046354
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 0x1400467c0
xor ecx, ecx
lea rdi, [0x140067a6c]
call fcn.140036f50
mov r13, rax
mov rax, qword [0x1400699f0]
mov rbx, qword [rax]
mov rax, qword [r14 + 0x10]
test rax, rax
je 0x1400465b6
mov rdi, qword [rax]
mov r12, qword [rbx]
lea rbp, str.__main__
test r12, r12
jne 0x1400465dc
jmp 0x140046742
mov r12, qword [rbx]
test r12, r12
je 0x140046742
mov eax, dword [rbx + 0x18]
test al, 0x10
je 0x1400465e9
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 0x1400465d0
mov rdx, rbp
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x1400465d0
cmp byte [r12 + rsi], 0
je 0x1400465d0
lea r15, [r12 + rsi + 1]
mov edx, 0x2e
mov rcx, r15
call sub.msvcrt.dll_strchr
test rax, rax
jne 0x1400465d0
cmp qword [r14 + 0x10], 0
je 0x140046770
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 0x14004678e
cmp rcx, qword [sym.imp.python310.dll__Py_NoneStruct]
je 0x1400466a5
cmp rcx, qword [sym.imp.python310.dll__Py_FalseStruct]
je 0x1400466a5
call fcn.140019bb0
test eax, eax
je 0x1400466a5
mov rcx, qword [rsp + 0x48]
mov rdx, r12
call qword [sym.imp.python310.dll_PyUnicode_Concat]
sub qword [r12], 1
mov rsi, rax
jne 0x1400467a0
mov rax, qword [r12 + 8]
mov rcx, r12
mov r12, rsi
call qword [rax + 0x30]
call fcn.14004b670
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 0x1400466ed
sar rax, 1
cmp r12, rax
jge 0x1400467b0
test r12, r12
je 0x140046760
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 0x1400467d0
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 0x1400465dc
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 0x14004670a
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 0x140046660
mov rcx, qword [sym.imp.python310.dll__Py_TrueStruct]
jmp 0x140046680
mov r12, rax
jmp 0x1400466a5
mov qword [r13 + 0x10], r12
jmp 0x140046732
xor r13d, r13d
jmp 0x140046742
call qword [sym.imp.python310.dll_PyErr_NoMemory]
jmp 0x1400465d0