Function at 0x100563b
Capabilities:
Encode data using base64

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x102416c]
and dword [ebp - 0x30], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
push dword [esi]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 8]
mov edi, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x1d], 0
call fcn.01004c30
test ax, ax
mov dword [ebp - 0x1c], eax
jne 0x100569b
test byte [0x102407c], 0x10
je 0x10058b5
push 0x1001328
push 0x38
jmp 0x10058a4
test ebx, ebx
jne 0x10056ab
mov dword [ebp - 0x18], 0x80004003
jmp 0x1005987
mov eax, dword [ebx]
lea ecx, [ebp - 0x30]
push ecx
push 0x10031dc
push ebx
call dword [eax]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x18], eax
jl 0x1005987
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [edi + 0x1b4]
cmp eax, ebx
je 0x1005712
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1005712
test byte [0x102407c], 0x10
je 0x1005706
push 0x1001328
push 0x39
push dword [0x1024074]
push dword [0x1024070]
call fcn.0100335b
mov dword [ebp - 0x18], 0x8004020d
jmp 0x1005987
cmp dword [esi + 0xc], ebx
ja 0x1005720
cmp dword [esi + 8], 0x7fffffff
jbe 0x100574d
test byte [0x102407c], 0x10
je 0x1005741
push 0x1001328
push 0x3a
push dword [0x1024074]
push dword [0x1024070]
call fcn.0100335b
mov dword [ebp - 0x18], 0x8004020e
jmp 0x1005987
lea eax, [ebp - 0x26]
push eax
push ebx
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push dword [esi]
mov ecx, edi
push eax
call fcn.01003cdd
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax + 0x24]
jmp 0x10057a3
push dword [ebx + 0xc]
push dword [esi]
call fcn.0101a13d
test eax, eax
pop ecx
pop ecx
je 0x10058c1
cmp word [ebp - 0x26], 0
je 0x10057a1
movsx eax, word [ebp - 0x26]
push eax
push dword [ebx + 0x10]
lea eax, [ebp - 0x14]
push eax
call fcn.0101a100
add esp, 0xc
test eax, eax
jne 0x10057a1
mov byte [ebp - 0x1d], 1
mov ebx, dword [ebx]
test ebx, ebx
jne 0x100576a
cmp word [ebp - 0x26], bx
je 0x10057b2
cmp byte [ebp - 0x1d], bl
je 0x10057c4
push 0
push dword [ebp - 0x24]
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.01003619
add dword [ebp - 0x1c], 2
movzx esi, word [ebp - 0x1c]
mov edi, dword [edi + 0xabc]
mov eax, dword [edi]
mov dword [ebp - 0x38], esi
add esi, 0x14
and esi, 0xfffffff8
add esi, 0x44
push esi
push edi
call dword [eax + 0xc]
mov ebx, eax
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x38]
mov dword [ebx + 0x14], esi
and byte [eax + 0x19], 0xef
mov eax, dword [ebp - 0x3c]
lea edi, [ebx + 0x44]
mov dword [ebx + 0xc], edi
mov esi, dword [eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 0x38]
lea edi, [ecx + eax]
mov al, byte [ebp - 0x1c]
mov dword [ebx + 0x10], edi
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x34]
sub al, 2
mov byte [ebx + 0x42], al
mov al, byte [ebp - 0x26]
mov byte [ebx + 0x43], al
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x24]
mov dword [ebx], ecx
mov ecx, dword [eax + 0x28]
mov dword [eax + 0x24], ebx
mov dword [ebx + 4], ecx
mov dword [eax + 0x28], ebx
and dword [ebx + 0x18], 0
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xa94]
add eax, dword [edi + 0x1d0]
push ebx
mov dword [ebx + 0x1c], eax
mov eax, dword [esi + 8]
mov dword [ebx + 0x20], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x38], eax
mov eax, dword [esi + 0x14]
mov ecx, edi
mov dword [ebx + 0x3c], eax
call fcn.01004c89
test al, al
jne 0x1005934
test byte [0x102407c], 0x10
je 0x10058b5
push 0x1001328
push 0x3e
push dword [0x1024074]
push dword [0x1024070]
call fcn.0100335b
mov dword [ebp - 0x18], 0x8004021d
jmp 0x1005987
test byte [ebx + 0x18], 2
jne 0x1005908
test byte [0x102407c], 0x10
je 0x10058ea
push dword [esi]
push 0x1001328
push 0x3b
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003381
cmp dword [ebp + 0x14], 0
jne 0x1005863
test byte [0x102407c], 0x10
je 0x100592b
push dword [esi]
push 0x1001328
push 0x3c
jmp 0x100591a
test byte [0x102407c], 0x10
je 0x100592b
push dword [esi]
push 0x1001328
push 0x3d
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003381
mov dword [ebp - 0x18], 0x80040224
jmp 0x1005987
mov eax, dword [edi + 0xabc]
mov ecx, dword [eax]
push 0x40000
push eax
call dword [ecx + 0xc]
test eax, eax
mov dword [ebp - 0x1c], eax
jne 0x1005955
mov dword [ebp - 0x18], 0x8007000e
jmp 0x1005972
mov esi, dword [ebx + 0x1c]
sub esi, dword [edi + 0x1d0]
mov ebx, dword [ebp - 0x2c]
shl esi, 0xb
test ebx, ebx
jne 0x100599c
push 1
lea ecx, [edi + 0x30]
call fcn.01013d4d
cmp dword [ebp - 0x1c], 0
je 0x1005987
mov edi, dword [edi + 0xabc]
push dword [ebp - 0x1c]
mov eax, dword [edi]
push edi
call dword [eax + 0x14]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
call fcn.01019a47
leave
ret 0x10
mov ebx, dword [ebp - 0x2c]
mov eax, dword [edi + 0x1b4]
test eax, eax
je 0x10059b7
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1005a5b
mov eax, 0x40000
cmp ebx, eax
jb 0x10059c7
mov ebx, eax
mov dword [ebp - 0x28], ebx
jmp 0x10059e3
mov edi, dword [ebp - 0x1c]
lea ecx, [ebx + 0x7ff]
and ecx, 0xfffff800
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
lea edx, [ebp - 0x44]
push edx
push ebx
push dword [ebp - 0x1c]
push eax
call dword [ecx + 0xc]
test eax, eax
mov dword [ebp - 0x18], eax
jl 0x1005972
cmp dword [ebp - 0x44], ebx
jne 0x1005a88
push dword [ebp - 0x1c]
add ebx, 0x7ff
mov dword [ebp - 0x24], ebx
and word [ebp - 0x24], 0xf800
push dword [ebp - 0x24]
mov ecx, edi
push esi
call fcn.01004097
test eax, eax
mov dword [ebp - 0x18], eax
jl 0x1005972
add esi, dword [ebp - 0x24]
shr ebx, 0xb
add dword [edi + 0xa94], ebx
mov eax, dword [edi + 0xa94]
cmp dword [edi + 0x1d4], eax
jbe 0x1005ab5
mov eax, dword [ebp - 0x28]
sub dword [ebp - 0x2c], eax
jne 0x1005999
jmp 0x1005968
test byte [0x102407c], 0x10
je 0x1005a7c
push 0x1001328
push 0x3f
push dword [0x1024074]
push dword [0x1024070]
call fcn.0100335b
mov dword [ebp - 0x18], 0x8004020d
jmp 0x1005972
test byte [0x102407c], 0x10
je 0x1005aa9
push 0x1001328
push 0x40
push dword [0x1024074]
push dword [0x1024070]
call fcn.0100335b
mov dword [ebp - 0x18], 0x80040217
jmp 0x1005972
test byte [0x102407c], 0x10
je 0x1005ad6
push 0x1001328
push 0x41
push dword [0x1024074]
push dword [0x1024070]
call fcn.0100335b
mov dword [ebp - 0x18], 0x8004021c
jmp 0x1005972