Function at 0x5032c8
Capabilities:
Encode data using base64

Disassembly:
push 0x90
mov eax, 0x6d1c18
call fcn.00401167
mov edi, ecx
mov dword [ebp - 0x2c], edi
mov ebx, dword [ebp + 8]
xor eax, eax
mov esi, dword [edi + 0x10]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], esi
and dword [ebx], 0xff000000
mov byte [ebp - 0x21], al
mov byte [ebp - 0x22], al
mov byte [ebx + 3], 0x8c
mov dword [ebx + 4], eax
mov dword [ebp - 0x34], 0x30
mov dword [ebp - 0x44], 0x55
mov dword [ebp - 0x3c], 0x3c
push ebx
push esi
mov ecx, edi
call fcn.00502ff9
test al, al
jne 0x503351
test byte [edi + 0x20], 0x20
jne 0x503351
mov eax, dword [edi]
lea ecx, [ebp - 0x5c]
and dword [ebp - 0x5c], 0
push ecx
push 1
push 0x259
push 1
push 0xfffffd
push dword [edi + 0x18]
mov ecx, edi
mov dword [ebp - 0x58], 0xfffffe
call dword [eax]
push 0x30
pop eax
or dword [edi + 0x20], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x20], ecx
movzx edx, word [ecx]
lea esi, [ecx + 2]
movzx eax, dx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x18], esi
cmp eax, 0x4d
ja 0x5040fa
je case.0x50411e.78
cmp eax, 0x4c
ja case.0x50411e.96
movzx eax, byte [eax + 0x504450]
jmp dword [eax*4 + 0x5043e0]
and dword [ebx + 8], 0
mov esi, ecx
mov dword [ebp - 0x18], esi
mov byte [ebx + 3], 0x8a
jmp case.0x503385.11
movzx eax, word [esi]
mov ecx, esi
cmp eax, 0x20
je 0x5033aa
cmp eax, 9
jne case.0x503385.11
lea esi, [ecx + 2]
mov dword [ebp - 0x18], esi
jmp case.0x503385.9
push 0xa
pop eax
cmp word [esi], ax
jne case.0x503385.10
add esi, 2
mov dword [ebp - 0x18], esi
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 8]
mov esi, dword [ebp - 0x18]
cmp byte [ebx + 3], 0x8c
je 0x503312
and dword [edi + 0x20], 0xfffffffd
test byte [edi + 0x20], 8
mov dword [edi + 0x10], esi
jne 0x5033fd
movzx eax, byte [ebx + 3]
shl eax, 4
mov eax, dword [eax + 0x485d44]
shr eax, 7
not eax
xor eax, dword [edi + 0x20]
and eax, 8
xor dword [edi + 0x20], eax
movzx eax, byte [ebx + 3]
call fcn.004026a3
ret 4
mov eax, dword [edi]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x18]
push ecx
mov ecx, edi
call dword [eax + 0xc]
test al, al
jne 0x5033c8
mov eax, dword [ebp - 0x18]
add eax, 2
mov dword [ebp - 0x18], eax
push eax
push dword [ebp - 0x20]
mov ecx, edi
push ebx
call fcn.00504582
jmp 0x5033c8
mov dword [ebp - 0x38], edi
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
jmp 0x5034b2
movzx edx, ax
lea esi, [ecx + 2]
push 0x5c
pop eax
mov dword [ebp - 0x18], esi
cmp dx, ax
jne 0x503493
movzx esi, word [esi]
lea eax, [ebp - 0x1c]
and dword [ebp - 0x1c], 0
mov ecx, edi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00503206
mov ecx, esi
movzx edx, ax
call fcn.00504682
test eax, eax
je 0x50347e
mov ecx, dword [ebp - 0x18]
sub ecx, 2
mov dword [ebp - 0x18], ecx
jmp 0x5034af
push edx
lea ecx, [edi + 0x24]
call fcn.005665a8
cmp word [ebp - 0x1c], 0
je 0x5034ac
push dword [ebp - 0x1c]
jmp 0x5034a4
mov ecx, edx
call fcn.00504682
test eax, eax
jne 0x5034bc
test dx, dx
je 0x5034bc
push edx
lea ecx, [edi + 0x24]
call fcn.005665a8
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x30]
movzx eax, word [ecx]
cmp ax, dx
je 0x5034f0
jmp 0x50343e
mov ecx, dword [ebp - 0x20]
lea edx, [esi - 2]
sub ecx, dword [edi + 0x14]
mov eax, dword [edi]
push 0
push 0
mov dword [ebp - 0x18], edx
sub edx, dword [ebp - 0x20]
push 0x241
sar edx, 1
sar ecx, 1
push edx
push ecx
push dword [edi + 0x18]
mov ecx, edi
call dword [eax]
or dword [ebx + 4], 0x20000000
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebx + 4]
test eax, 0x20000000
jne 0x503500
add ecx, 2
mov dword [ebp - 0x18], ecx
lea esi, [edi + 0x24]
cmp dx, 0x27
jne 0x50355a
mov eax, dword [esi]
mov edx, dword [eax - 0xc]
cmp edx, 1
je 0x503538
xor eax, eax
test edx, edx
setne al
add eax, 0x242
push eax
mov eax, dword [ebp - 0x20]
sub ecx, eax
sub eax, dword [edi + 0x14]
sar ecx, 1
push ecx
sar eax, 1
mov ecx, edi
push eax
push dword [edi + 0x18]
call fcn.005045d9
push 0x55
pop eax
mov ecx, esi
mov byte [ebx + 3], al
call fcn.0056661a
mov ax, word [eax]
mov word [ebx + 8], ax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
sar eax, 1
mov word [ebx + 0xa], ax
jmp 0x5035bb
or eax, 0x10000000
mov byte [ebx + 3], 0x53
mov dword [ebx + 4], eax
mov ecx, edi
mov eax, dword [esi]
mov edx, dword [edi]
mov eax, dword [eax - 0xc]
lea eax, [eax*2 + 0xc]
push eax
push ebx
call dword [edx + 0x14]
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x20]
mov dword [ebx + 8], eax
sar ecx, 1
mov dword [eax], ecx
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
mov eax, dword [ebx + 8]
mov dword [eax + 4], ecx
mov ecx, dword [ebx + 8]
lea eax, [ecx + 0xc]
mov dword [ecx + 8], eax
mov ecx, esi
mov eax, dword [ebx + 8]
mov eax, dword [eax + 4]
add eax, eax
push eax
call fcn.0056661a
push eax
mov eax, dword [ebx + 8]
push dword [eax + 8]
call fcn.00435014
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.0053321e
jmp 0x5033c8
movzx eax, word [esi]
push 0x2a
pop edx
cmp ax, dx
je 0x503723
push 0x2f
pop ecx
cmp ax, cx
je 0x50360c
push 0x3d
pop ecx
cmp ax, cx
je 0x5035f4
mov byte [ebx + 3], 0x7e
jmp 0x503901
push 0x64
pop eax
mov byte [ebx + 3], al
add esi, 2
mov dword [ebx + 8], 2
mov dword [ebp - 0x18], esi
jmp case.0x503385.11
cmp word [esi + 2], cx
jne 0x50361c
mov byte [ebp - 0x11], 1
cmp word [esi + 4], cx
jne 0x503620
mov byte [ebp - 0x11], 0
push 0x30
mov edx, esi
mov ecx, eax
pop ebx
call fcn.00504682
test eax, eax
jne 0x503681
sub edx, dword [edi + 0x14]
and edx, 0xfffffffe
cmp edx, 0x1fffffc
jl 0x50366f
test byte [edi + 0x20], 0x20
jne 0x50366f
and dword [ebp - 0x6c], eax
lea ecx, [ebp - 0x6c]
mov eax, dword [edi]
push ecx
push 1
push 0x259
push 1
push 0xfffffd
push dword [edi + 0x18]
mov ecx, edi
mov dword [ebp - 0x68], 0xfffffe
call dword [eax]
or dword [edi + 0x20], ebx
mov esi, dword [ebp - 0x18]
add esi, 2
mov dword [ebp - 0x18], esi
mov edx, esi
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x503627
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x10]
mov ebx, dword [ebp + 8]
test al, al
je 0x5033c8
cmp byte [ebp - 0x11], 0
je 0x503710
mov edi, dword [ebp - 0x18]
sub edi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x2c]
or dword [ebx + 4], 0x10000000
sar edi, 1
mov byte [ebx + 3], 0x57
mov edx, dword [ecx]
lea esi, [edi + 1]
lea eax, [esi*2 + 0xc]
push eax
push ebx
call dword [edx + 0x14]
mov ecx, dword [ebp - 0x2c]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ecx + 0x14]
sar eax, 1
push eax
push dword [ecx + 0x18]
lea ecx, [ebp - 0x94]
call fcn.0056505c
push edi
push dword [ebp - 0x20]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [ebx + 8]
push esi
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [ebx + 8]
add eax, 8
push eax
call fcn.00574864
mov eax, dword [ebx + 8]
add esp, 0x10
xor ecx, ecx
mov word [eax + edi*2 + 8], cx
mov edi, dword [ebp - 0x2c]
jmp 0x5033c8
mov esi, dword [ebp - 0x18]
mov eax, esi
sub eax, dword [ebp - 0x20]
mov byte [ebx + 3], 0x56
sar eax, 1
jmp 0x503931
cmp word [esi + 2], dx
jne 0x503733
mov byte [ebp - 0x11], 1
cmp word [esi + 4], dx
jne 0x503737
mov byte [ebp - 0x11], 0
add esi, 2
mov dword [ebp - 0x18], esi
movzx ecx, word [esi]
test cx, cx
je 0x50378b
cmp cx, dx
jne 0x503753
push 0x2f
pop eax
cmp word [esi + 2], ax
je 0x503783
call fcn.00504682
test eax, eax
je 0x503737
cmp ecx, 0xd
jne 0x50376d
push 0xa
pop ecx
cmp word [esi + 2], cx
jne 0x50376d
add esi, 2
mov eax, dword [edi]
add esi, 2
push esi
mov ecx, edi
mov dword [ebp - 0x18], esi
call dword [eax + 8]
mov esi, dword [ebp - 0x18]
push 0x2a
pop edx
jmp 0x50373d
add esi, 4
mov dword [ebp - 0x18], esi
jmp 0x5037bf
mov eax, dword [ebx]
mov ecx, edi
mov edx, dword [edi]
and eax, 0xffffff
push 0
push 0
push 0x25a
push 2
push eax
mov eax, dword [ebx + 4]
and eax, 0xfffffff
push eax
call dword [edx]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x10]
test al, al
je 0x5037bf
or dword [ebx + 4], 0x20000000
mov eax, dword [edi]
mov ecx, edi
and dword [edi + 0x20], 0xfffffffd
call dword [eax + 0x10]
test al, al
je 0x5033c8
or dword [ebx + 4], 0x10000000
cmp byte [ebp - 0x11], 0
je 0x50389d
mov edi, dword [ebp - 0x18]
sub edi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x2c]
sar edi, 1
mov byte [ebx + 3], 0x59
mov edx, dword [ecx]
lea esi, [edi + 1]
lea eax, [esi*2 + 0xc]
push eax
push ebx
call dword [edx + 0x14]
mov ecx, dword [ebp - 0x18]
mov edx, eax
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 8], edx
sub ecx, dword [eax + 0x14]
sar ecx, 1
push ecx
push dword [eax + 0x18]
lea ecx, [ebp - 0x9c]
call fcn.0056505c
push edi
push dword [ebp - 0x20]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [edx], ecx
mov dword [edx + 4], eax
mov eax, dword [ebx + 8]
add eax, 8
push esi
push eax
call fcn.00574864
mov eax, dword [ebx + 8]
xor ecx, ecx
add esp, 0x10
mov word [eax + edi*2 + 8], cx
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x18]
mov eax, esi
sub eax, dword [edi + 0x14]
and eax, 0xfffffffe
cmp eax, 0x1fffffc
jl case.0x503385.11
test byte [edi + 0x20], 0x20
jne case.0x503385.11
and dword [ebp - 0x7c], ecx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x78], 0xfffffe
mov eax, dword [edi]
push ecx
push 1
push 0x259
push 1
push 0xfffffd
push dword [edi + 0x18]
mov ecx, edi
call dword [eax]
push 0x30
pop eax
or dword [edi + 0x20], eax
jmp 0x5033c8
push 0x58
pop eax
mov byte [ebx + 3], al
mov ecx, edi
mov eax, dword [edi]
push 8
push ebx
call dword [eax + 0x14]
push eax
push dword [ebp - 0x18]
mov ecx, edi
mov dword [ebx + 8], eax
call fcn.00502ff9
test al, al
jne 0x5033c8
test byte [edi + 0x20], 0x20
jne 0x5033c8
and dword [ebp - 0x8c], 0
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x88], 0xfffffe
jmp 0x50387a
movzx eax, word [esi]
push 0x30
pop ecx
cmp ax, cx
jb 0x5038fd
push 0x39
pop ecx
cmp ax, cx
jbe 0x503eb1
mov byte [ebx + 3], 0x86
mov dword [ebx + 8], 1
jmp case.0x503385.11
push 0x5f
pop eax
mov byte [ebx + 3], al
jmp 0x503901
cmp word [esi], 0x3a
jne 0x503928
push 2
add esi, 2
pop eax
mov dword [ebp - 0x18], esi
push 0x6d
jmp 0x50392d
xor eax, eax
inc eax
push 0x6c
pop ecx
mov byte [ebx + 3], cl
mov dword [ebx + 8], eax
jmp case.0x503385.11
mov byte [ebx + 3], 0x5a
jmp 0x503901
push 0x3d
pop eax
cmp word [esi], ax
jne 0x503954
add esi, 2
mov cl, 0x74
push 2
mov dword [ebp - 0x18], esi
pop eax
jmp 0x50392e
xor eax, eax
mov cl, 0x81
inc eax
jmp 0x50392e
movzx eax, word [esi]
push 0x3d
pop ecx
cmp ax, cx
jne 0x50396c
mov byte [ebx + 3], 0x73
jmp 0x50397e
cmp byte [edi + 4], 0
je 0x503990
push 0x3e
pop ecx
cmp ax, cx
jne 0x503990
mov byte [ebx + 3], 0x88
add esi, 2
mov dword [ebx + 8], 2
mov dword [ebp - 0x18], esi
jmp case.0x503385.11
mov byte [ebx + 3], 0x60
jmp 0x503901
push 0x3d
pop eax
cmp word [esi], ax
jne 0x5039ae
add esi, 2
mov cl, 0x63
push 2
mov dword [ebp - 0x18], esi
pop eax
jmp 0x50392e
xor eax, eax
mov cl, 0x7d
inc eax
jmp 0x50392e
mov byte [ebx + 3], 0x84
jmp 0x503901
mov byte [ebx + 3], 0x5b
jmp 0x503901
cmp word [esi], 0x3f
jne 0x5039e0
add esi, 2
mov cl, 0x89
push 2
mov dword [ebp - 0x18], esi
pop eax
jmp 0x50392e
xor eax, eax
mov cl, 0x6b
inc eax
jmp 0x50392e
movzx eax, word [esi]
push 0x3d
pop ecx
cmp ax, cx
jne 0x5039fe
mov byte [ebx + 3], 0x61
jmp 0x5035fa
push 0x2b
pop ecx
cmp ax, cx
jne 0x503a0f
mov byte [ebx + 3], 0x82
jmp 0x5035fa
mov byte [ebx + 3], 0x7b
jmp 0x503901
movzx eax, word [esi]
push 0x3d
pop ecx
cmp ax, cx
jne 0x503a2c
mov byte [ebx + 3], 0x62
jmp 0x5035fa
push 0x2d
pop ecx
cmp ax, cx
jne 0x503a3d
mov byte [ebx + 3], 0x83
jmp 0x5035fa
push 0x3e
pop ecx
cmp ax, cx
jne 0x503a4e
mov byte [ebx + 3], 0x87
jmp 0x5035fa
push 0x7c
jmp 0x50390f
push 0x3d
pop eax
cmp word [esi], ax
jne 0x503a6d
push 2
add esi, 2
pop eax
mov dword [ebp - 0x18], esi
push 0x65
jmp 0x50392d
xor eax, eax
mov cl, 0x7f
inc eax
jmp 0x50392e
movzx eax, word [esi]
push 0x3d
pop ecx
cmp ax, cx
jne 0x503a89
push 0x66
jmp 0x5035f6
cmp eax, 0x26
jne 0x503a97
mov byte [ebx + 3], 0x6f
jmp 0x5035fa
mov byte [ebx + 3], 0x72
jmp 0x503901
movzx eax, word [esi]
push 0x3d
pop ecx
cmp ax, cx
jne 0x503abd
add esi, 2
mov byte [ebx + 3], 0x76
push 2
mov dword [ebp - 0x18], esi
pop eax
jmp 0x503931
push 0x3e
cmp ax, word [ebp - 0x3c]
jne 0x503af4
pop eax
cmp word [esi + 2], ax
jne 0x503ad3
push 0x75
jmp 0x50390f
add esi, 2
mov dword [ebp - 0x18], esi
cmp word [esi], cx
jne 0x503aea
add esi, 2
mov cl, 0x69
mov dword [ebp - 0x18], esi
push 3
jmp 0x503aee
push 2
mov cl, 0x79
pop eax
jmp 0x50392e
pop ecx
cmp ax, cx
jne 0x503b07
push 0x66
pop eax
cmp word [esi + 2], ax
je case.0x50411e.78
push 0x75
pop eax
mov byte [ebx + 3], al
xor eax, eax
inc eax
jmp 0x503931
push 0x3d
pop eax
cmp word [esi], ax
jne 0x503b2d
push 2
add esi, 2
pop eax
mov dword [ebp - 0x18], esi
push 0x78
jmp 0x50392d
xor eax, eax
mov cl, 0x77
inc eax
jmp 0x50392e
push 0x22
pop eax
cmp word [esi], ax
jne 0x503c94
mov dword [ebp - 0x40], edi
mov dword [ebp - 4], 1
lea esi, [edi + 0x24]
mov ecx, dword [ebp - 0x18]
add ecx, 2
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x18], ecx
movzx edx, word [ecx]
add ecx, 2
movzx eax, dx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], ecx
sub eax, 0
je 0x503bf6
sub eax, 0xa
je 0x503bcf
sub eax, 3
je 0x503bad
sub eax, 0x15
je 0x503b97
sub eax, 0x63
je 0x503bcf
sub eax, 0x1fa3
je 0x503bcf
sub eax, 1
jne 0x503be0
jmp 0x503bcf
push 0x22
pop eax
cmp word [ecx], ax
jne 0x503ba7
lea eax, [ecx + 2]
mov dword [ebp - 0x18], eax
jmp 0x503bda
mov byte [ebp - 0x11], 1
jmp 0x503bda
push 0xa
pop eax
cmp word [ecx], ax
jne 0x503bcf
lea esi, [edi + 0x24]
push edx
mov ecx, esi
call fcn.005665a8
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx]
add ecx, 2
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 8]
mov edx, dword [ebp - 0x1c]
cmp byte [ebp - 0x11], 0
jne 0x503c25
push edx
mov ecx, esi
call fcn.005665a8
cmp byte [ebp - 0x11], 0
jne 0x503c25
mov ecx, dword [ebp - 0x18]
jmp 0x503b5d
mov edx, dword [ebx]
mov ecx, dword [ebx + 4]
and edx, 0xffffff
mov eax, dword [edi]
and ecx, 0xfffffff
push 0
push 0
push 0x25e
push 2
push edx
push ecx
mov ecx, edi
call dword [eax]
or dword [ebx + 4], 0x20000000
sub dword [ebp - 0x18], 2
or dword [ebx + 4], 0x10000000
lea esi, [edi + 0x24]
mov byte [ebx + 3], 0x54
mov ecx, edi
mov eax, dword [esi]
mov edx, dword [edi]
invalid