Function at 0x10056510
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x248
mov eax, dword [0x103b1004]
xor eax, esp
mov dword [esp + 0x244], eax
mov eax, dword [edx]
xorps xmm0, xmm0
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
mov ecx, dword [edx + 8]
xor edi, edi
mov dword [esp + 0x18], ecx
movaps xmmword [esp + 0x20], xmm0
movq qword [esp + 0x30], xmm0
cmp ecx, 0x3ffffffe
jle 0x10056635
mov eax, dword [esi + 4]
cmp eax, sym.python310.dll_PyModule_Type
je 0x100565cf
push sym.python310.dll_PyModule_Type
push eax
call sym.python310.dll_PyType_IsSubtype
add esp, 8
test eax, eax
jne 0x100565cf
mov edi, dword [0x103fb118]
mov esi, dword [sym.python310.dll_PyExc_TypeError]
push str.bad_argument_type_for_built_in_operation
call sym.python310.dll_PyUnicode_FromString
push eax
push esi
push edi
mov dword [esp + 0x20], eax
call sym.python310.dll__PyErr_SetObject
mov ecx, dword [esp + 0x20]
add esp, 0x10
test ecx, ecx
je 0x1005666f
add dword [ecx], 0xffffffff
jne 0x1005666f
mov eax, dword [ecx + 4]
push ecx
mov eax, dword [eax + 0x18]
call eax
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.1024a596
mov esp, ebp
pop ebp
ret
mov esi, dword [esi + 0x10]
test esi, esi
je 0x1005666f
mov esi, dword [esi]
mov edx, 0x1d
mov edi, dword [0x103fb118]
mov ecx, str.Too_much_data_for_base64_line
push 0
push 0
push 0
call fcn.101599e0
push eax
push esi
push edi
mov dword [esp + 0x28], eax
call sym.python310.dll__PyErr_SetObject
mov ecx, dword [esp + 0x28]
add esp, 0x18
test ecx, ecx
je 0x1005666f
add dword [ecx], 0xffffffff
jne 0x1005666f
mov eax, dword [ecx + 4]
push ecx
mov eax, dword [eax + 0x18]
call eax
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.1024a596
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [esp + 0x34], 1
cmp dword [ebp + 8], eax
lea ecx, [ecx*2 + 2]
mov dword [esp + 0x24], 0x200
setne al
add eax, ecx
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x28]
push eax
call sym.python310.dll__PyBytesWriter_Prepare
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10056685
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.1024a596
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x18], edi
jle 0x1005673c
mov ecx, dword [esp + 0x10]
xor edx, edx
movzx eax, byte [ecx]
add edx, 8
shl edi, 8
or edi, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], edi
cmp edx, 6
jl 0x100566f4
mov edi, dword [esp + 0x14]
lea ecx, [edx - 6]
mov eax, 0xaaaaaaab
mul edx
shr edx, 2
lea eax, [edx*4]
sub eax, edx
neg eax
lea edi, [edi + eax*2]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x1c]
mov eax, edi
shr eax, cl
sub ecx, 6
and eax, 0x3f
mov al, byte [eax + 0x1025cb70]
mov byte [esi], al
inc esi
sub edx, 1
jne 0x100566d4
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
inc ecx
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
test eax, eax
jg 0x10056695
cmp edx, 2
jne 0x10056724
and edi, 3
shl edi, 4
mov al, byte [edi + 0x1025cb70]
mov byte [esi], al
mov word [esi + 1], 0x3d3d
add esi, 3
jmp 0x1005673c
cmp edx, 4
jne 0x1005673c
and edi, 0xf
mov al, byte [edi*4 + 0x1025cb70]
mov byte [esi], al
mov byte [esi + 1], 0x3d
add esi, 2
cmp dword [ebp + 8], 0
je 0x10056746
mov byte [esi], 0xa
inc esi
lea eax, [esp + 0x20]
push esi
push eax
call sym.python310.dll__PyBytesWriter_Finish
mov ecx, dword [esp + 0x254]
add esp, 8
pop edi
pop esi
xor ecx, esp
call fcn.1024a596
mov esp, ebp
pop ebp
ret