Function at 0x1054330
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 0x100c074
lea edx, [ebp - 0x50]
push 0x3f
push edx
call fcn.01029620
mov edi, dword [ebp + 0x14]
add esp, 0x1c
xor ecx, ecx
mov al, byte [ebp + ecx - 0x4e]
test al, al
je 0x105437a
test edi, edi
je 0x1054379
cmp al, 0x5e
jne 0x1054376
mov al, 0x78
mov byte [esi + edi], al
inc esi
inc ecx
cmp ecx, 6
jb 0x1054364
test edi, edi
je 0x1054388
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 0x10543a9
test edi, edi
je 0x10543a8
cmp al, 0x5e
jne 0x10543a5
mov al, 0x78
mov byte [esi + edi], al
inc esi
inc ecx
sub edx, 1
jne 0x1054395
test edi, edi
je 0x10543b7
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.0102a0a0
lea eax, [ebp - 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1054403
sub eax, edx
mov edx, 0
je 0x105442f
mov cl, byte [ebp + edx - 0xc]
test cl, cl
je 0x105442a
test edi, edi
je 0x1054429
cmp cl, 0x5e
jne 0x1054426
mov cl, 0x78
mov byte [esi + edi], cl
inc esi
inc edx
cmp edx, eax
jb 0x1054413
test edi, edi
je 0x1054437
mov byte [esi + edi], 0x5e
inc esi
test edi, edi
je 0x1054441
lea edx, [esi + edi]
jmp 0x1054443
xor edx, edx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0xc]
mov ecx, dword [eax]
test ecx, ecx
jne 0x1054453
xor eax, eax
jmp 0x105446d
cmp word [ecx], 0
mov eax, ecx
je 0x1054469
jmp 0x1054460
add eax, 2
cmp word [eax], 0
jne 0x1054460
sub eax, ecx
sar eax, 1
push 1
push eax
push ecx
push edx
call fcn.0103d130
add esi, eax
test edi, edi
je 0x1054481
mov byte [esi + edi], 0x5e
inc esi
cmp dword [ebx + 0x10], 0
mov ebx, 0x100c258
jne 0x1054492
mov ebx, 0x100ec24
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1054497
sub eax, edx
mov edx, 0
je 0x10544c2
mov cl, byte [edx + ebx]
test cl, cl
je 0x10544bd
test edi, edi
je 0x10544bc
cmp cl, 0x5e
jne 0x10544b9
mov cl, 0x78
mov byte [esi + edi], cl
inc esi
inc edx
cmp edx, eax
jb 0x10544a7
test edi, edi
je 0x10544ca
mov byte [esi + edi], 0x5e
mov ebx, dword [ebp + 0x10]
mov al, byte [ebx + 0x78]
inc esi
xor ecx, ecx
test al, al
je 0x10544dc
movzx ecx, al
jmp 0x10544e7
cmp dword [ebx + 8], 0x10
jne 0x10544e7
mov ecx, 0x1a
cmp dword [ebx + 8], 4
jne 0x10544f4
mov ecx, 0x22
jmp 0x1054502
cmp ecx, 0xa
jge 0x1054502
test edi, edi
je 0x1054501
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 0x1054520
sub eax, edx
mov edx, 0
je 0x105454c
mov cl, byte [ebp + edx - 8]
test cl, cl
je 0x1054547
test edi, edi
je 0x1054546
cmp cl, 0x5e
jne 0x1054543
mov cl, 0x78
mov byte [esi + edi], cl
inc esi
inc edx
cmp edx, eax
jb 0x1054530
test edi, edi
je 0x1054554
mov byte [esi + edi], 0x5e
inc esi
test edi, edi
je 0x105455e
lea edx, [esi + edi]
jmp 0x1054560
xor edx, edx
mov ecx, dword [ebx + 0x168]
test ecx, ecx
jne 0x105456e
xor eax, eax
jmp 0x1054583
cmp word [ecx], 0
mov eax, ecx
je 0x105457f
add eax, 2
cmp word [eax], 0
jne 0x1054576
sub eax, ecx
sar eax, 1
push 1
push eax
push ecx
push edx
call fcn.0103d130
add esi, eax
test edi, edi
je 0x1054597
mov byte [esi + edi], 0x5e
inc esi
test edi, edi
je 0x10545a1
lea edx, [esi + edi]
jmp 0x10545a3
xor edx, edx
mov ecx, dword [ebx + 0x164]
test ecx, ecx
jne 0x10545b1
xor eax, eax
jmp 0x10545cd
cmp word [ecx], 0
mov eax, ecx
je 0x10545c9
lea esp, [esp]
add eax, 2
cmp word [eax], 0
jne 0x10545c0
sub eax, ecx
sar eax, 1
push 1
push eax
push ecx
push edx
call fcn.0103d130
add esi, eax
test edi, edi
je 0x10545e1
mov byte [esi + edi], 0x5e
inc esi
test edi, edi
je 0x10545eb
lea edx, [esi + edi]
jmp 0x10545ed
xor edx, edx
mov ecx, dword [ebx + 0x16c]
test ecx, ecx
jne 0x10545fb
xor eax, eax
jmp 0x1054610
cmp word [ecx], 0
mov eax, ecx
je 0x105460c
add eax, 2
cmp word [eax], 0
jne 0x1054603
sub eax, ecx
sar eax, 1
push 1
push eax
push ecx
push edx
call fcn.0103d130
add esi, eax
test edi, edi
je 0x1054624
mov byte [esi + edi], 0x5e
inc esi
test edi, edi
je 0x105462e
lea edx, [esi + edi]
jmp 0x1054630
xor edx, edx
mov ecx, dword [ebx + 0x170]
test ecx, ecx
jne 0x105463e
xor eax, eax
jmp 0x1054653
cmp word [ecx], 0
mov eax, ecx
je 0x105464f
add eax, 2
cmp word [eax], 0
jne 0x1054646
sub eax, ecx
sar eax, 1
push 1
push eax
push ecx
push edx
call fcn.0103d130
add esi, eax
test edi, edi
je 0x1054667
mov byte [esi + edi], 0x5e
inc esi
test edi, edi
je 0x1054671
lea edx, [esi + edi]
jmp 0x1054673
xor edx, edx
mov ecx, dword [ebx + 0x174]
test ecx, ecx
jne 0x1054681
xor eax, eax
jmp 0x105469d
cmp word [ecx], 0
mov eax, ecx
je 0x1054699
lea esp, [esp]
add eax, 2
cmp word [eax], 0
jne 0x1054690
sub eax, ecx
sar eax, 1
push 1
push eax
push ecx
push edx
call fcn.0103d130
add esi, eax
test edi, edi
je 0x10546b1
mov byte [esi + edi], 0x5e
inc esi
cmp dword [ebx + 0x7c], 0
je 0x10546de
xor ecx, ecx
lea ebx, [ebx]
mov al, byte [ecx + 0x100e9e4]
test al, al
je 0x10546d8
test edi, edi
je 0x10546d7
cmp al, 0x5e
jne 0x10546d4
mov al, 0x78
mov byte [esi + edi], al
inc esi
inc ecx
cmp ecx, 0xb
jb 0x10546c0
test edi, edi
je 0x10546e6
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.0102a0a0
lea eax, [ebp - 0xc]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1054740
sub eax, edx
mov edx, 0
je 0x105476c
mov cl, byte [ebp + edx - 0xc]
test cl, cl
je 0x1054767
test edi, edi
je 0x1054766
cmp cl, 0x5e
jne 0x1054763
mov cl, 0x78
mov byte [esi + edi], cl
inc esi
inc edx
cmp edx, eax
jb 0x1054750
test edi, edi
je 0x1054774
mov byte [esi + edi], 0x5e
mov ecx, dword [ebx + 0x180]
push ecx
inc esi
call fcn.0103e610
pop ebx
test al, al
je 0x1054794
test edi, edi
je 0x1054793
cmp al, 0x5e
jne 0x1054790
mov al, 0x78
mov byte [esi + edi], al
inc esi
test edi, edi
je 0x105479c
mov byte [esi + edi], 0x5e
inc esi
test edi, edi
je 0x10547a5
mov byte [esi + edi], 0x5e
inc esi
test edi, edi
je 0x10547ae
mov byte [esi + edi], 0x5e
inc esi
test edi, edi
je 0x10547b7
mov byte [esi + edi], 0x5e
inc esi
test edi, edi
je 0x10547c0
mov byte [esi + edi], 0x5e
inc esi
test edi, edi
je 0x10547c9
mov byte [esi + edi], 0xa
inc esi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x14