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

Disassembly:
push ebp
push edi
push esi
mov esi, ecx
push ebx
sub esp, 0x4c
cmp byte [0x48c6c0], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
je 0x45dfc8
mov dword [esp + 4], 0x47d532
mov dword [esp], esi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x45e538
mov ebx, dword [0x48c6bc]
jmp 0x45df84
lea ebx, [eax + edx + 4]
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.msvcrt.dll_strcmp
mov dword [esp], ebx
mov edi, eax
call sub.msvcrt.dll_strlen
lea eax, [ebx + eax + 1]
mov edx, dword [eax]
test edi, edi
jne 0x45df80
lea ecx, [eax + 6]
movzx eax, word [eax + 4]
mov edx, dword [esp + 0x24]
mov dword [esp], eax
mov eax, dword [esp + 0x20]
call fcn.0045c920
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0xa
mov dword [esp + 4], 3
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
sub esp, 0xc
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
lea ebp, [eax + 8]
sub esp, 4
mov dword [0x48c6bc], ebp
mov eax, 0xffffffff
mov dword [esp + 0x2c], ecx
cmp ebx, 0x16
jbe 0x45e334
test ebp, 3
je 0x45e5fa
mov ecx, 0xffffffff
jmp 0x45e04c
test ebp, 3
je 0x45e5b3
add ebp, 1
mov eax, ecx
xor cl, byte [ebp - 1]
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x47e820]
mov ecx, eax
sub ebx, 1
jne 0x45e040
mov dword [esp + 0x3c], ebp
mov edx, 0xffffffff
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x14], 0
xor eax, eax
xor edi, edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], edx
mov edx, eax
lea esi, [esi]
nop
xor eax, dword [ebp + 0x10]
mov esi, dword [esp + 0x18]
add ebp, 0x14
xor esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword [esp + 0x1c], eax
mov eax, esi
mov ebx, dword [esp + 0x14]
xor ebx, dword [ebp - 0x10]
xor ecx, edi
movzx edi, al
mov eax, esi
xor edx, dword [ebp - 8]
shr eax, 0x18
mov edi, dword [edi*4 + 0x47d820]
xor edi, dword [eax*4 + 0x47e420]
mov eax, esi
shr esi, 0x10
movzx eax, ah
xor edi, dword [eax*4 + 0x47dc20]
mov eax, esi
movzx esi, al
xor edi, dword [esi*4 + 0x47e020]
movzx esi, bl
mov dword [esp + 0x18], edi
mov edi, ebx
mov esi, dword [esi*4 + 0x47d820]
shr edi, 0x18
xor esi, dword [edi*4 + 0x47e420]
movzx edi, bh
shr ebx, 0x10
movzx ebx, bl
xor esi, dword [edi*4 + 0x47dc20]
xor esi, dword [ebx*4 + 0x47e020]
mov ebx, ecx
shr ebx, 0x18
mov dword [esp + 0x14], esi
movzx esi, cl
mov edi, dword [esi*4 + 0x47d820]
xor edi, dword [ebx*4 + 0x47e420]
movzx ebx, ch
shr ecx, 0x10
xor edi, dword [ebx*4 + 0x47dc20]
movzx ecx, cl
mov ebx, edx
mov esi, dword [esp + 0x1c]
shr ebx, 0x18
xor edi, dword [ecx*4 + 0x47e020]
movzx ecx, dl
mov ecx, dword [ecx*4 + 0x47d820]
xor ecx, dword [ebx*4 + 0x47e420]
mov eax, esi
movzx ebx, dh
shr edx, 0x10
xor ecx, dword [ebx*4 + 0x47dc20]
movzx edx, dl
xor ecx, dword [edx*4 + 0x47e020]
mov edx, ecx
movzx ecx, al
mov eax, esi
shr eax, 0x18
mov ecx, dword [ecx*4 + 0x47d820]
xor ecx, dword [eax*4 + 0x47e420]
mov eax, esi
movzx ebx, ah
shr eax, 0x10
movzx eax, al
xor ecx, dword [ebx*4 + 0x47dc20]
xor ecx, dword [eax*4 + 0x47e020]
sub dword [esp + 0x28], 1
mov eax, ecx
jne 0x45e0a0
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x1c], eax
lea eax, [edx + edx*4]
mov edx, dword [esp + 0x3c]
lea ebp, [edx + eax*4]
xor ecx, dword [ebp]
xor edi, dword [ebp + 8]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x47e820]
mov eax, ecx
movzx ecx, cl
shr eax, 8
xor eax, dword [ecx*4 + 0x47e820]
mov ecx, dword [esp + 0x14]
mov edx, eax
movzx eax, al
xor ecx, dword [ebp + 4]
shr edx, 8
xor edx, dword [eax*4 + 0x47e820]
mov eax, edx
shr edx, 8
movzx eax, al
xor edx, ecx
xor edx, dword [eax*4 + 0x47e820]
movzx ecx, dl
mov eax, edx
shr eax, 8
xor eax, dword [ecx*4 + 0x47e820]
mov edx, eax
movzx eax, al
shr edx, 8
xor edx, dword [eax*4 + 0x47e820]
mov eax, edx
movzx edx, dl
shr eax, 8
xor eax, dword [edx*4 + 0x47e820]
mov edx, eax
movzx eax, al
shr edx, 8
xor edx, edi
xor edx, dword [eax*4 + 0x47e820]
movzx ecx, dl
mov eax, edx
shr eax, 8
xor eax, dword [ecx*4 + 0x47e820]
mov edx, eax
movzx eax, al
shr edx, 8
xor edx, dword [eax*4 + 0x47e820]
mov eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x47e820]
mov eax, dword [esp + 0x18]
mov ecx, edx
xor eax, dword [ebp + 0xc]
movzx edx, dl
shr ecx, 8
xor eax, ecx
xor eax, dword [edx*4 + 0x47e820]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x47e820]
add ebp, 0x14
mov edx, eax
movzx eax, al
shr edx, 8
xor edx, dword [eax*4 + 0x47e820]
mov eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x47e820]
mov eax, dword [esp + 0x1c]
mov ecx, edx
xor eax, dword [ebp - 4]
movzx edx, dl
shr ecx, 8
xor eax, ecx
xor eax, dword [edx*4 + 0x47e820]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x47e820]
mov edx, eax
movzx eax, al
shr edx, 8
xor edx, dword [eax*4 + 0x47e820]
mov eax, edx
movzx edx, dl
shr eax, 8
xor eax, dword [edx*4 + 0x47e820]
mov edx, eax
shr eax, 8
movzx edx, dl
xor eax, dword [edx*4 + 0x47e820]
cmp ebx, 7
jbe 0x45e473
mov edx, eax
xor al, byte [ebp]
lea ecx, [ebx - 8]
movzx eax, al
shr edx, 8
xor edx, dword [eax*4 + 0x47e820]
mov eax, edx
xor dl, byte [ebp + 1]
movzx edx, dl
shr eax, 8
xor eax, dword [edx*4 + 0x47e820]
mov edx, eax
xor al, byte [ebp + 2]
movzx eax, al
shr edx, 8
xor edx, dword [eax*4 + 0x47e820]
mov eax, edx
xor dl, byte [ebp + 3]
movzx edx, dl
shr eax, 8
xor eax, dword [edx*4 + 0x47e820]
mov edx, eax
xor al, byte [ebp + 4]
movzx eax, al
shr edx, 8
xor edx, dword [eax*4 + 0x47e820]
mov eax, edx
xor dl, byte [ebp + 5]
movzx edx, dl
shr eax, 8
xor eax, dword [edx*4 + 0x47e820]
mov edx, eax
xor al, byte [ebp + 6]
movzx eax, al
shr edx, 8
xor edx, dword [eax*4 + 0x47e820]
mov eax, edx
xor dl, byte [ebp + 7]
movzx edx, dl
shr eax, 8
xor eax, dword [edx*4 + 0x47e820]
cmp ecx, 7
jbe 0x45e469
mov edx, eax
xor al, byte [ebp + 8]
movzx eax, al
shr edx, 8
xor edx, dword [eax*4 + 0x47e820]
mov eax, edx
xor dl, byte [ebp + 9]
movzx edx, dl
shr eax, 8
xor eax, dword [edx*4 + 0x47e820]
mov edx, eax
xor al, byte [ebp + 0xa]
movzx eax, al
shr edx, 8
xor edx, dword [eax*4 + 0x47e820]
mov eax, edx
xor dl, byte [ebp + 0xb]
movzx edx, dl
shr eax, 8
xor eax, dword [edx*4 + 0x47e820]
mov edx, eax
xor al, byte [ebp + 0xc]
movzx eax, al
shr edx, 8
xor edx, dword [eax*4 + 0x47e820]
mov eax, edx
xor dl, byte [ebp + 0xd]
movzx edx, dl
shr eax, 8
xor eax, dword [edx*4 + 0x47e820]
mov edx, eax
xor al, byte [ebp + 0xe]
movzx eax, al
shr edx, 8
xor edx, dword [eax*4 + 0x47e820]
mov eax, edx
xor dl, byte [ebp + 0xf]
movzx edx, dl
shr eax, 8
xor eax, dword [edx*4 + 0x47e820]
shr ecx, 3
and ebx, 7
lea ebp, [ebp + ecx*8 + 8]
test ebx, ebx
je 0x45e51d
mov edx, eax
xor al, byte [ebp]
movzx eax, al
shr edx, 8
xor edx, dword [eax*4 + 0x47e820]
mov eax, edx
cmp ebx, 1
je 0x45e51d
xor al, byte [ebp + 1]
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x47e820]
mov eax, edx
cmp ebx, 2
je 0x45e51d
xor al, byte [ebp + 2]
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x47e820]
mov eax, edx
cmp ebx, 3
je 0x45e51d
xor al, byte [ebp + 3]
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x47e820]
mov eax, edx
cmp ebx, 4
je 0x45e51d
xor al, byte [ebp + 4]
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x47e820]
mov eax, edx
cmp ebx, 5
je 0x45e51d
xor al, byte [ebp + 5]
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x47e820]
mov eax, edx
cmp ebx, 6
je 0x45e51d
xor al, byte [ebp + 6]
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x47e820]
mov eax, edx
not eax
cmp dword [esp + 0x2c], eax
jne 0x45e61e
mov byte [0x48c6c0], 1
jmp 0x45df5a
cmp byte [0x48c6b8], 0
jne 0x45df72
mov ebx, dword [sym.imp.python38.dll_PyDict_New]
mov edi, 0xfffffffb
call ebx
mov dword [0x48c6e4], eax
call ebx
mov dword [0x48c6e0], eax
call ebx
mov dword [0x48c6dc], eax
call ebx
mov dword [0x48c6fc], eax
call ebx
mov dword [0x48c6f8], eax
call ebx
mov dword [0x48c6f4], eax
call ebx
mov dword [0x48c6ec], eax
call ebx
mov ebx, dword [sym.imp.python38.dll_PyLong_FromLong]
mov dword [0x48c6e8], eax
nop
mov dword [esp], edi
call ebx
mov dword [edi*4 + 0x48c214], eax
add edi, 1
cmp edi, 0x101
jne 0x45e590
mov byte [0x48c6b8], 1
jmp 0x45df72
mov eax, 0xcccccccd
mul ebx
shr edx, 4
lea eax, [edx + edx*4]
shl eax, 2
sub ebx, eax
lea eax, [edx - 1]
mov dword [esp + 0x28], eax
mov edx, eax
test edx, edx
je 0x45e5db
mov dword [esp + 0x3c], ebp
jmp 0x45e079
mov dword [esp + 0x1c], 0
xor edi, edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
jmp 0x45e1e8
mov eax, 0xcccccccd
mov ecx, 0xffffffff
mul ebx
mov eax, edx
shr eax, 4
lea edx, [eax + eax*4]
sub eax, 1
shl edx, 2
mov dword [esp + 0x28], eax
sub ebx, edx
mov edx, eax
jmp 0x45e5ce
mov dword [esp], str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
lea eax, [esp + 0x3c]
mov dword [esp + 0xc], 0x4787d0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 8], str.O:iter_modules
mov dword [esp + 4], eax
mov eax, dword [esp + 0x64]
mov dword [esp], eax
call dword [sym.imp.python38.dll_PyArg_ParseTupleAndKeywords]
test eax, eax
je 0x45e840
mov dword [esp], 0
mov ebp, 0x47d292
call dword [sym.imp.python38.dll_PyList_New]
mov ebx, dword [0x48bb30]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x60]
mov eax, dword [eax + 8]
test eax, eax
je 0x45e698
mov ebp, dword [eax]
lea esi, [esi]
mov edi, dword [ebx]
test edi, edi
je 0x45e7cd
mov eax, dword [ebx + 0x10]
test al, 0x10
je 0x45e6af
sub eax, 0x10
mov dword [ebx + 0x10], eax
mov dword [esp], ebp
add ebx, 0x14
call sub.msvcrt.dll_strlen
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov esi, eax
mov dword [esp], ebp
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x45e698
mov dword [esp + 4], 0x47d54b
mov dword [esp], edi
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x45e698
cmp byte [edi + esi], 0
je 0x45e698
lea esi, [edi + esi + 1]
mov dword [esp + 4], 0x2e
mov dword [esp], esi
call sub.msvcrt.dll_strchr
test eax, eax
jne 0x45e698
mov eax, dword [esp + 0x60]
mov eax, dword [eax + 8]
test eax, eax
je 0x45e820
mov dword [esp], esi
call dword [sym.imp.python38.dll_PyUnicode_FromString]
mov edi, eax
mov eax, dword [esp + 0x3c]
call fcn.00402130
test eax, eax
jne 0x45e7f0
mov dword [esp], 2
call dword [sym.imp.python38.dll_PyTuple_New]
test byte [ebx - 4], 2
mov dword [eax + 0xc], edi
mov esi, eax
mov eax, dword [sym.imp.python38.dll__Py_FalseStruct]
cmovne eax, dword [sym.imp.python38.dll__Py_TrueStruct]
add dword [eax], 1
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
lea edi, [ecx + 1]
mov dword [esp + 0x28], ecx
cmp edi, edx
jg 0x45e777
sar edx, 1
cmp edi, edx
jge 0x45e830
test edi, edi
je 0x45e7e0
mov ecx, dword [esp + 0x28]
mov edx, edi
sar edx, 3
lea edx, [ecx + edx + 7]
and edx, 0xfffffffc
lea ecx, [edx*4]
mov dword [esp + 0x2c], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.python38.dll_PyMem_Realloc]
mov edx, dword [esp + 0x2c]
test eax, eax
je 0x45e858
mov ecx, dword [esp + 0x24]
mov dword [ecx + 0xc], eax
mov dword [ecx + 8], edi
mov dword [ecx + 0x10], edx
mov edx, dword [esp + 0x28]
mov edi, dword [ebx]
mov dword [eax + edx*4], esi
test edi, edi
jne 0x45e6a2
mov eax, dword [esp + 0x24]
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
xor ecx, ecx
xor edx, edx
jmp 0x45e792
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.python38.dll_PyUnicode_Concat]
sub dword [edi], 1
mov esi, eax
jne 0x45e811
mov eax, dword [edi + 4]
mov dword [esp], edi
call dword [eax + 0x18]
mov edi, esi
jmp 0x45e72d
mov dword [esp], edi
call dword [sym.imp.python38.dll_PyUnicode_FromString]
mov edi, eax
jmp 0x45e71c
mov edx, dword [esp + 0x24]
mov dword [edx + 8], edi
jmp 0x45e7bc
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x24]
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.python38.dll_PyErr_NoMemory]
jmp 0x45e698