Function at 0x1400278a0
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 [0x140051e00], 0
mov r12, rcx
mov r13, rdx
mov rdi, r8
je 0x140027928
lea rdx, [0x14004833a]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140027a30
mov rsi, qword [0x140051df8]
jmp 0x1400278e5
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 0x1400278e0
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.140025d20
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 [0x140051df8], rcx
test eax, eax
je 0x140027a18
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 0x140027980
not eax
cmp r9d, eax
jne 0x140027ab7
mov byte [0x140051e00], 1
jmp 0x1400278bd
cmp byte [0x140051df0], 0
jne 0x1400278d4
mov rbx, qword [sym.imp.python310.dll_PyDict_New]
call rbx
mov qword [0x140051e50], rax
call rbx
mov qword [0x140051e48], rax
call rbx
mov qword [0x140051e40], rax
call rbx
mov qword [0x140051e80], rax
call rbx
mov qword [0x140051e78], rax
call rbx
mov qword [0x140051e70], rax
call rbx
mov qword [0x140051e60], rax
call rbx
mov byte [0x140051df0], 1
mov qword [0x140051e58], rax
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rax, qword [rax + 0x10]
add rax, 0xda0
mov qword [0x140051e08], rax
jmp 0x1400278d4
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 0x140027d40
xor ecx, ecx
lea rdi, [0x140048344]
call fcn.140019380
mov r13, rax
mov rax, qword [0x14004a030]
mov rbx, qword [rax]
mov rax, qword [r14 + 0x10]
test rax, rax
je 0x140027b36
mov rdi, qword [rax]
mov r12, qword [rbx]
lea rbp, str.__main__
test r12, r12
jne 0x140027b5c
jmp 0x140027cc2
mov r12, qword [rbx]
test r12, r12
je 0x140027cc2
mov eax, dword [rbx + 0x18]
test al, 0x10
je 0x140027b69
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 0x140027b50
mov rdx, rbp
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x140027b50
cmp byte [r12 + rsi], 0
je 0x140027b50
lea r15, [r12 + rsi + 1]
mov edx, 0x2e
mov rcx, r15
call sub.msvcrt.dll_strchr
test rax, rax
jne 0x140027b50
cmp qword [r14 + 0x10], 0
je 0x140027cf0
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 0x140027d0e
cmp rcx, qword [sym.imp.python310.dll__Py_NoneStruct]
je 0x140027c25
cmp rcx, qword [sym.imp.python310.dll__Py_FalseStruct]
je 0x140027c25
call fcn.140004aa0
test eax, eax
je 0x140027c25
mov rcx, qword [rsp + 0x48]
mov rdx, r12
call qword [sym.imp.python310.dll_PyUnicode_Concat]
sub qword [r12], 1
mov rsi, rax
jne 0x140027d20
mov rax, qword [r12 + 8]
mov rcx, r12
mov r12, rsi
call qword [rax + 0x30]
call fcn.14002b570
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 0x140027c6d
sar rax, 1
cmp r12, rax
jge 0x140027d30
test r12, r12
je 0x140027ce0
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 0x140027d50
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 0x140027b5c
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 0x140027c8a
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 0x140027be0
mov rcx, qword [sym.imp.python310.dll__Py_TrueStruct]
jmp 0x140027c00
mov r12, rax
jmp 0x140027c25
mov qword [r13 + 0x10], r12
jmp 0x140027cb2
xor r13d, r13d
jmp 0x140027cc2
call qword [sym.imp.python310.dll_PyErr_NoMemory]
jmp 0x140027b50