Function at 0x1057480
Capabilities:
Encode data using base64

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
push esi
push edi
push 0x41
xor esi, esi
lea eax, [ebp - 0x50]
push esi
push eax
call sub.msvcrt.dll_memset
mov ecx, dword [ebp + 0x18]
push ecx
push 0x100c8fc
lea edx, [ebp - 0x50]
push 0x3f
push edx
call fcn.0102bdb0
mov edi, dword [ebp + 0x14]
add esp, 0x1c
xor ecx, ecx
mov al, byte [ebp + ecx - 0x4e]
test al, al
je 0x10574ca
test edi, edi
je 0x10574c9
cmp al, 0x5e
jne 0x10574c6
mov al, 0x78
mov byte [esi + edi], al
inc esi
inc ecx
cmp ecx, 6
jb 0x10574b4
test edi, edi
je 0x10574d8
mov byte [esi + edi], 0x5e
push ebx
mov ebx, dword [ebp + 0x10]
inc esi
lea ecx, [ebx + 0x3d]
mov edx, 0x20
mov al, byte [ecx]
test al, al
je 0x10574f9
test edi, edi
je 0x10574f8
cmp al, 0x5e
jne 0x10574f5
mov al, 0x78
mov byte [esi + edi], al
inc esi
inc ecx
sub edx, 1
jne 0x10574e5
test edi, edi
je 0x1057507
mov byte [esi + edi], 0x5e
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov byte [ebp - 4], al
mov eax, dword [ebx + 4]
mov ecx, eax
shr ecx, 8
movzx edx, cl
movzx ecx, al
shl ecx, 8
add edx, ecx
mov ecx, eax
shr ecx, 0x10
shl edx, 8
movzx ecx, cl
add edx, ecx
shl edx, 8
shr eax, 0x18
add edx, eax
mov dword [ebp + 0x18], edx
lea edx, [ebp - 0xc]
push edx
push 4
lea eax, [ebp + 0x18]
push eax
inc esi
call fcn.0102c830
lea eax, [ebp - 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1057553
sub eax, edx
mov edx, 0
je 0x105757f
mov cl, byte [ebp + edx - 0xc]
test cl, cl
je 0x105757a
test edi, edi
je 0x1057579
cmp cl, 0x5e
jne 0x1057576
mov cl, 0x78
mov byte [esi + edi], cl
inc esi
inc edx
cmp edx, eax
jb 0x1057563
test edi, edi
je 0x1057587
mov byte [esi + edi], 0x5e
inc esi
test edi, edi
je 0x1057591
lea edx, [esi + edi]
jmp 0x1057593
xor edx, edx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0xc]
mov ecx, dword [eax]
test ecx, ecx
jne 0x10575a3
xor eax, eax
jmp 0x10575bd
cmp word [ecx], 0
mov eax, ecx
je 0x10575b9
jmp 0x10575b0
add eax, 2
cmp word [eax], 0
jne 0x10575b0
sub eax, ecx
sar eax, 1
push 1
push eax
push ecx
push edx
call fcn.0103fa30
add esi, eax
test edi, edi
je 0x10575d1
mov byte [esi + edi], 0x5e
inc esi
cmp dword [ebx + 0x10], 0
mov ebx, 0x100cae0
jne 0x10575e2
mov ebx, 0x100f504
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10575e7
sub eax, edx
mov edx, 0
je 0x1057612
mov cl, byte [edx + ebx]
test cl, cl
je 0x105760d
test edi, edi
je 0x105760c
cmp cl, 0x5e
jne 0x1057609
mov cl, 0x78
mov byte [esi + edi], cl
inc esi
inc edx
cmp edx, eax
jb 0x10575f7
test edi, edi
je 0x105761a
mov byte [esi + edi], 0x5e
mov ebx, dword [ebp + 0x10]
mov al, byte [ebx + 0x78]
inc esi
xor ecx, ecx
test al, al
je 0x105762c
movzx ecx, al
jmp 0x1057637
cmp dword [ebx + 8], 0x10
jne 0x1057637
mov ecx, 0x1a
cmp dword [ebx + 8], 4
jne 0x1057644
mov ecx, 0x22
jmp 0x1057652
cmp ecx, 0xa
jge 0x1057652
test edi, edi
je 0x1057651
mov byte [esi + edi], 0x30
inc esi
push 0xa
lea edx, [ebp - 8]
push edx
push ecx
mov byte [ebp - 8], 0
call dword [sym.imp.msvcrt.dll__itoa]
lea eax, [ebp - 8]
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1057670
sub eax, edx
mov edx, 0
je 0x105769c
mov cl, byte [ebp + edx - 8]
test cl, cl
je 0x1057697
test edi, edi
je 0x1057696
cmp cl, 0x5e
jne 0x1057693
mov cl, 0x78
mov byte [esi + edi], cl
inc esi
inc edx
cmp edx, eax
jb 0x1057680
test edi, edi
je 0x10576a4
mov byte [esi + edi], 0x5e
inc esi
test edi, edi
je 0x10576ae
lea edx, [esi + edi]
jmp 0x10576b0
xor edx, edx
mov ecx, dword [ebx + 0x168]
test ecx, ecx
jne 0x10576be
xor eax, eax
jmp 0x10576d3
cmp word [ecx], 0
mov eax, ecx
je 0x10576cf
add eax, 2
cmp word [eax], 0
jne 0x10576c6
sub eax, ecx
sar eax, 1
push 1
push eax
push ecx
push edx
call fcn.0103fa30
add esi, eax
test edi, edi
je 0x10576e7
mov byte [esi + edi], 0x5e
inc esi
test edi, edi
je 0x10576f1
lea edx, [esi + edi]
jmp 0x10576f3
xor edx, edx
mov ecx, dword [ebx + 0x164]
test ecx, ecx
jne 0x1057701
xor eax, eax
jmp 0x105771d
cmp word [ecx], 0
mov eax, ecx
je 0x1057719
lea esp, [esp]
add eax, 2
cmp word [eax], 0
jne 0x1057710
sub eax, ecx
sar eax, 1
push 1
push eax
push ecx
push edx
call fcn.0103fa30
add esi, eax
test edi, edi
je 0x1057731
mov byte [esi + edi], 0x5e
inc esi
test edi, edi
je 0x105773b
lea edx, [esi + edi]
jmp 0x105773d
xor edx, edx
mov ecx, dword [ebx + 0x16c]
test ecx, ecx
jne 0x105774b
xor eax, eax
jmp 0x1057760
cmp word [ecx], 0
mov eax, ecx
je 0x105775c
add eax, 2
cmp word [eax], 0
jne 0x1057753
sub eax, ecx
sar eax, 1
push 1
push eax
push ecx
push edx
call fcn.0103fa30
add esi, eax
test edi, edi
je 0x1057774
mov byte [esi + edi], 0x5e
inc esi
test edi, edi
je 0x105777e
lea edx, [esi + edi]
jmp 0x1057780
xor edx, edx
mov ecx, dword [ebx + 0x170]
test ecx, ecx
jne 0x105778e
xor eax, eax
jmp 0x10577a3
cmp word [ecx], 0
mov eax, ecx
je 0x105779f
add eax, 2
cmp word [eax], 0
jne 0x1057796
sub eax, ecx
sar eax, 1
push 1
push eax
push ecx
push edx
call fcn.0103fa30
add esi, eax
test edi, edi
je 0x10577b7
mov byte [esi + edi], 0x5e
inc esi
test edi, edi
je 0x10577c1
lea edx, [esi + edi]
jmp 0x10577c3
xor edx, edx
mov ecx, dword [ebx + 0x174]
test ecx, ecx
jne 0x10577d1
xor eax, eax
jmp 0x10577ed
cmp word [ecx], 0
mov eax, ecx
je 0x10577e9
lea esp, [esp]
add eax, 2
cmp word [eax], 0
jne 0x10577e0
sub eax, ecx
sar eax, 1
push 1
push eax
push ecx
push edx
call fcn.0103fa30
add esi, eax
test edi, edi
je 0x1057801
mov byte [esi + edi], 0x5e
inc esi
cmp dword [ebx + 0x7c], 0
je 0x105782e
xor ecx, ecx
lea ebx, [ebx]
mov al, byte [ecx + 0x100f290]
test al, al
je 0x1057828
test edi, edi
je 0x1057827
cmp al, 0x5e
jne 0x1057824
mov al, 0x78
mov byte [esi + edi], al
inc esi
inc ecx
cmp ecx, 0xb
jb 0x1057810
test edi, edi
je 0x1057836
mov byte [esi + edi], 0x5e
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov byte [ebp - 4], al
mov eax, dword [ebx + 0x184]
and eax, 0x1bf7f9e4
mov ecx, eax
shr ecx, 8
movzx edx, cl
movzx ecx, al
shl ecx, 8
add edx, ecx
mov ecx, eax
shr ecx, 0x10
shl edx, 8
movzx ecx, cl
add edx, ecx
shl edx, 8
shr eax, 0x18
add edx, eax
mov dword [ebp + 0x10], edx
lea edx, [ebp - 0xc]
push edx
push 4
lea eax, [ebp + 0x10]
push eax
inc esi
call fcn.0102c830
lea eax, [ebp - 0xc]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1057890
sub eax, edx
mov edx, 0
je 0x10578bc
mov cl, byte [ebp + edx - 0xc]
test cl, cl
je 0x10578b7
test edi, edi
je 0x10578b6
cmp cl, 0x5e
jne 0x10578b3
mov cl, 0x78
mov byte [esi + edi], cl
inc esi
inc edx
cmp edx, eax
jb 0x10578a0
test edi, edi
je 0x10578c4
mov byte [esi + edi], 0x5e
mov ecx, dword [ebx + 0x180]
push ecx
inc esi
call fcn.01041170
pop ebx
test al, al
je 0x10578e4
test edi, edi
je 0x10578e3
cmp al, 0x5e
jne 0x10578e0
mov al, 0x78
mov byte [esi + edi], al
inc esi
test edi, edi
je 0x10578ec
mov byte [esi + edi], 0x5e
inc esi
test edi, edi
je 0x10578f5
mov byte [esi + edi], 0x5e
inc esi
test edi, edi
je 0x10578fe
mov byte [esi + edi], 0x5e
inc esi
test edi, edi
je 0x1057907
mov byte [esi + edi], 0x5e
inc esi
test edi, edi
je 0x1057910
mov byte [esi + edi], 0x5e
inc esi
test edi, edi
je 0x1057919
mov byte [esi + edi], 0xa
inc esi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x14