Function at 0x10059040
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov edi, ecx
lea eax, [ebp - 0x28]
push ecx
mov ebx, edx
push edx
push eax
call fcn.1002a2f0
add esp, 0xc
cmp dword [ebp - 0x28], 0
jne 0x100590a5
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x100590a5
mov edi, dword [ebp - 0x20]
cmp edi, 2
jb 0x100590c1
cmp byte [esi], 0x2d
jne 0x100590c1
cmp edi, 2
jne 0x10059118
movzx eax, word [esi]
cmp eax, 0x2d2d
je 0x10059441
movzx eax, word [esi]
cmp eax, 0x2d2d
jne 0x10059126
jmp 0x1005914c
test edi, edi
je 0x100590c1
mov ecx, edi
mov esi, ebx
add ecx, ebx
movzx ebx, byte [ebx]
mov dword [ebp - 0x18], ecx
test bl, bl
js 0x100590d2
inc esi
xor edx, edx
jmp 0x100591a0
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x20], 3
mov eax, ecx
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
movzx edx, byte [esi + 1]
mov eax, ebx
and eax, 0x1f
and edx, 0x3f
cmp bl, 0xdf
jbe 0x10059158
movzx ecx, byte [esi + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp bl, 0xf0
jb 0x10059169
movzx ebx, byte [esi + 3]
and eax, 7
shl ecx, 6
add esi, 4
shl eax, 0x12
and ebx, 0x3f
or ebx, ecx
or ebx, eax
mov ecx, dword [ebp - 0x18]
cmp ebx, 0xffff
jbe 0x100590ba
jmp 0x10059182
movzx eax, word [esi]
cmp eax, 0x2d2d
je 0x1005944d
movzx eax, byte [esi + 1]
cmp al, 0xbf
jle 0x100596c0
inc esi
mov edx, 1
mov ecx, 0xffffffff
movzx eax, al
or eax, 0x10
cmp eax, 0x3d
jne 0x10059475
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x20], 5
jmp 0x100590c8
mov ecx, dword [ebp - 0x18]
shl eax, 6
add esi, 2
or eax, edx
xor edx, edx
mov ebx, eax
jmp 0x100591a0
shl eax, 0xc
add esi, 3
or ecx, eax
mov ebx, ecx
mov ecx, dword [ebp - 0x18]
cmp ebx, 0xffff
jbe 0x100590ba
lea eax, [ebx + 0xff0000]
and ebx, 0x3ff
shr eax, 0xa
or ebx, 0xdc00
or eax, 0xd800
mov edx, ebx
mov ebx, eax
mov eax, ecx
mov ecx, 0xffffffff
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], ebx
sub eax, esi
mov esi, 3
add eax, 3
cmovae ecx, eax
shr ecx, 2
cmp dx, 1
sbb ecx, 0xffffffff
cmp ecx, 4
cmovae esi, ecx
cmp esi, 0x3ffffffe
ja 0x100596b2
lea edi, [esi + esi + 2]
test edi, edi
js 0x100596b9
mov eax, dword [0x103564a0]
mov ebx, edx
movzx eax, byte [eax]
mov eax, dword [0x1035648c]
mov eax, dword [eax]
test eax, eax
jne 0x1005920c
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x100596a5
mov ecx, dword [0x1035648c]
mov dword [ecx], eax
push edi
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x100596a5
mov edx, eax
mov eax, dword [ebp - 0x10]
inc esi
mov word [edx], ax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], esi
xor esi, esi
mov dword [ebp - 0x20], 1
jmp 0x10059286
mov eax, dword [ebp - 0x18]
mov edx, ecx
mov ecx, 0xffffffff
mov dword [ebp - 0x10], edx
sub eax, dword [ebp - 0x14]
add eax, 3
cmovb eax, ecx
shr eax, 2
cmp dx, 1
sbb eax, 0
add eax, 2
mov edx, edi
lea ecx, [ebp - 0x28]
push eax
call fcn.10057940
add esp, 4
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov word [edx + esi*2 + 2], bx
add esi, 2
mov ebx, ecx
mov dword [ebp - 0x20], esi
mov esi, edi
mov edi, dword [ebp - 0x14]
test bx, bx
je 0x100592a0
mov dword [ebp - 0x14], edi
xor ecx, ecx
lea edi, [esi + 1]
cmp edi, dword [ebp - 0x24]
jne 0x10059277
jmp 0x10059240
cmp edi, dword [ebp - 0x18]
je 0x10059379
movzx ebx, byte [edi]
test bl, bl
js 0x100592c0
inc edi
xor ecx, ecx
mov dword [ebp - 0x14], edi
lea edi, [esi + 1]
cmp edi, dword [ebp - 0x24]
jne 0x10059277
jmp 0x10059240
mov dword [ebp - 0x10], esi
movzx esi, byte [edi + 1]
mov eax, ebx
and eax, 0x1f
and esi, 0x3f
cmp bl, 0xdf
jbe 0x1005930d
mov ecx, edx
movzx edx, byte [edi + 2]
shl esi, 6
and edx, 0x3f
or edx, esi
cmp bl, 0xf0
jb 0x10059330
movzx ebx, byte [edi + 3]
and eax, 7
shl edx, 6
add edi, 4
shl eax, 0x12
and ebx, 0x3f
or ebx, edx
or ebx, eax
cmp ebx, 0xffff
mov edx, ecx
mov dword [ebp - 0x14], edi
jbe 0x1005931a
jmp 0x10059347
shl eax, 6
add edi, 2
or eax, esi
mov dword [ebp - 0x14], edi
mov ebx, eax
mov esi, dword [ebp - 0x10]
xor ecx, ecx
lea edi, [esi + 1]
cmp edi, dword [ebp - 0x24]
jne 0x10059277
jmp 0x10059240
shl eax, 0xc
add edi, 3
or edx, eax
mov ebx, edx
cmp ebx, 0xffff
mov edx, ecx
mov dword [ebp - 0x14], edi
jbe 0x1005931a
lea eax, [ebx + 0xff0000]
mov esi, dword [ebp - 0x10]
and ebx, 0x3ff
shr eax, 0xa
or ebx, 0xdc00
or eax, 0xd800
mov ecx, ebx
mov ebx, eax
lea edi, [esi + 1]
cmp edi, dword [ebp - 0x24]
jne 0x10059277
jmp 0x10059240
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
lea ecx, [esi + 1]
mov dl, 3
cmp ecx, 2
mov dword [ebp - 0x14], eax
jae 0x10059391
mov ecx, dword [ebp + 8]
jmp 0x1005939a
cmp word [ebx], 0x2d
mov ecx, dword [ebp + 8]
je 0x100593bf
cmp dword [ebp - 0x14], 0
mov byte [ecx + 0x20], dl
je 0x100590c8
push ebx
push 0
mov eax, dword [0x1035648c]
push dword [eax]
mov esi, ecx
call sub.KERNEL32.dll_HeapFree
mov eax, esi
jmp 0x100590ca
mov edi, esi
mov eax, esi
cmp edi, 1
jne 0x100593d4
cmp dword [ebx], 0x2d002d
je 0x100595e8
mov edi, ebx
xor ebx, ebx
mov dl, 5
cmp dword [edi], 0x2d002d
sete bl
mov esi, ebx
not esi
add esi, eax
mov eax, esi
inc eax
jne 0x100593f2
mov ebx, edi
jmp 0x1005939a
mov dword [ebp - 0x10], edi
lea edi, [edi + ebx*2 + 2]
mov dword [ebp - 0x18], eax
cmp word [edi], 0x2d
je 0x100595ef
mov eax, ebx
cmp word [edi], 0x3d
mov ebx, dword [ebp - 0x10]
je 0x1005939a
inc eax
mov ecx, ebx
mov dword [ebp - 0x30], edi
xor edx, edx
mov ebx, eax
lea edi, [ecx + eax*2 + 2]
lea eax, [esi + esi + 2]
cmp word [edi - 2], 0x3d
je 0x100595f7
inc edx
add edi, 2
add eax, 0xfffffffe
jne 0x10059423
mov edx, dword [ebp - 0x18]
xor edi, edi
jmp 0x100595f9
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x20], 4
jmp 0x100590c8
movzx eax, byte [esi + 2]
cmp al, 0xbf
jle 0x100596ca
add esi, 2
mov edx, 2
mov ecx, 0xfffffffe
movzx eax, al
or eax, 0x10
cmp eax, 0x3d
je 0x1005914c
add edi, ecx
mov dword [ebp - 0x18], edx
mov eax, esi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], esi
mov edx, edi
jmp 0x1005949d
mov eax, dword [ebp - 0x14]
mov edx, edi
mov dword [ebp - 0x10], ecx
sub edx, ecx
lea eax, [eax + ecx]
jb 0x1005959e
cmp edx, 8
jae 0x100594c4
test edx, edx
je 0x1005959e
xor ebx, ebx
nop dword [eax]
cmp byte [eax + ebx], 0x3d
je 0x1005955f
inc ebx
cmp edx, ebx
jne 0x100594b0
jmp 0x1005959e
lea esi, [eax + 3]
and esi, 0xfffffffc
sub esi, eax
je 0x100594f3
je 0x100594f3
xor ebx, ebx
nop word cs:[eax + eax]
nop dword [eax]
cmp byte [eax + ebx], 0x3d
je 0x1005955f
inc ebx
cmp esi, ebx
jne 0x100594e0
mov dword [ebp - 0x30], edi
lea ebx, [edx - 8]
jmp 0x1005953e
lea ebx, [edx - 8]
xor esi, esi
mov dword [ebp - 0x30], edi
nop dword [eax + eax]
mov ecx, dword [eax + esi]
mov edi, ecx
xor ecx, 0x3d3d3d3d
not edi
add ecx, 0xfefefeff
and ecx, edi
test ecx, 0x80808080
jne 0x10059542
mov ecx, dword [eax + esi + 4]
mov edi, ecx
xor ecx, 0x3d3d3d3d
not edi
add ecx, 0xfefefeff
and ecx, edi
test ecx, 0x80808080
jne 0x10059542
add esi, 8
cmp esi, ebx
jbe 0x10059500
mov edi, dword [ebp - 0x30]
cmp edx, esi
je 0x1005959e
nop dword [eax]
cmp byte [eax + esi], 0x3d
je 0x1005955d
inc esi
cmp edx, esi
jne 0x10059550
jmp 0x1005959e
mov ebx, esi
mov ecx, dword [ebp - 0x10]
lea esi, [ebx + ecx]
lea ecx, [ebx + ecx + 1]
cmp esi, edi
jae 0x1005948a
mov eax, dword [ebp - 0x14]
cmp byte [eax + esi], 0x3d
jne 0x1005948a
mov edx, dword [ebp - 0x14]
push 0x10243420
push edi
call fcn.100573e0
add esp, 8
test eax, eax
mov dword [ebp - 0x10], edx
mov ebx, esi
sete dl
or dl, 2
jmp 0x100595a4
mov ebx, edi
mov dl, 3
xor eax, eax
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
movzx esi, word [ebp - 0x40]
mov dword [edi + 0x10], ecx
mov ecx, dword [ebp - 0x14]
mov dword [edi + 0x14], ecx
mov dword [edi + 0x18], ebx
mov byte [edi + 0x20], 2
mov word [edi + 0x21], si
mov ch, byte [ebp - 0x3e]
mov esi, dword [ebp - 0x10]
mov cl, byte [ebp - 0x26]
mov byte [edi + 0x23], ch
mov dword [edi], eax
mov dword [edi + 4], esi
mov byte [edi + 0xc], dl
movzx edx, word [ebp - 0x28]
mov byte [edi + 0xf], cl
mov ecx, edi
mov word [edi + 0xd], dx
jmp 0x100590c8
mov dl, 4
jmp 0x1005939a
mov ebx, dword [ebp - 0x10]
jmp 0x1005939a
sub esi, edx
push edx
push dword [ebp - 0x30]
lea eax, [ebp - 0x28]
push eax
call fcn.1014d9e0
add esp, 0xc
movsd xmm0, qword [ebp - 0x28]
movsd xmm1, qword [ebp - 0x20]
test edi, edi
movsd qword [ebp - 0x38], xmm1
movsd qword [ebp - 0x40], xmm0
je 0x10059654
push esi
push edi
lea eax, [ebp - 0x28]
push eax
call fcn.1014d9e0
add esp, 0xc
mov eax, dword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x28]
movzx ecx, word [ebp - 0x1b]
movzx edx, byte [ebp - 0x19]
mov dword [ebp - 0x44], eax
movzx eax, byte [ebp - 0x1c]
movsd qword [ebp - 0x4c], xmm0
mov word [ebp - 0x2c], cx
mov byte [ebp - 0x2a], dl
jmp 0x10059656
mov al, 3
mov edx, dword [ebp + 8]
movsd xmm0, qword [ebp - 0x40]
movsd xmm1, qword [ebp - 0x38]
mov ecx, dword [ebp - 0x44]
movzx esi, word [ebp - 0x2c]
cmp dword [ebp - 0x14], 0
mov dword [edx + 0x10], ebx
movsd qword [edx + 0x1c], xmm1
movsd qword [edx + 0x14], xmm0
movsd xmm1, qword [ebp - 0x4c]
mov dword [edx + 8], ecx
movzx ecx, byte [ebp - 0x2a]
mov ebx, dword [ebp - 0x10]
movsd qword [edx], xmm1
mov byte [edx + 0xc], al
mov byte [edx + 0xf], cl
mov ecx, edx
mov word [edx + 0xd], si
jne 0x100593a7
jmp 0x100590c8
push edi
push 2
call fcn.1001a7e0
add esp, 8
ud2
call fcn.1001a7a0
ud2
call fcn.1001a7a0
ud2
push 0x10243400
push edi
push 1
jmp 0x100596d2
push 0x10243410
push edi
push 2
push edi
push esi
call fcn.1002b1a0
add esp, 0x14
ud2