Function at 0x5b39b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5f1908
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push edi
mov dword [esp + 4], ecx
lea eax, [esp + 0x30]
lea ecx, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x2c], 0
call fcn.005aaa70
add esp, 8
lea ecx, [esp + 0xc]
push 1
call fcn.005a8410
mov edi, str.BASE64
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.BASE64
push edx
push eax
lea ecx, [esp + 0x40]
call fcn.005b09a0
test eax, eax
je 0x5b3a6c
mov edi, str.QUOTED_PRINTABLE
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x38]
not ecx
dec ecx
push ecx
push str.QUOTED_PRINTABLE
push eax
push 0
lea ecx, [esp + 0x40]
call fcn.005b09a0
test eax, eax
je 0x5b3a6c
push 1
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], 0xffffffff
call fcn.005a8410
mov eax, dword [esp + 0x2c]
pop edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0x18
mov ecx, dword [esp + 0x40]
push ebx
push ebp
push ecx
call fcn.005d03c7
mov ebx, eax
mov edi, str.BASE64
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov edx, dword [esp + 0x40]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], ebx
mov ebp, ecx
mov ecx, edx
cmp edx, ebp
jb 0x5b3a9e
mov ecx, ebp
push esi
mov esi, dword [esp + 0x40]
mov edi, str.BASE64
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x5b3ab3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x5b3b6b
cmp edx, ebp
jb 0x5b3b6b
cmp edx, ebp
setne al
test eax, eax
jne 0x5b3b6b
mov eax, dword [esp + 0x4c]
mov esi, ebx
mov ebx, dword [esp + 0x38]
xor ebp, ebp
xor edi, edi
mov ecx, ebx
test eax, eax
jle 0x5b3b5b
mov al, byte [ecx]
cmp al, 0xd
je 0x5b3b53
cmp al, 0xa
je 0x5b3b53
movsx edx, al
movsx eax, byte [edx + 0x834d40]
movsx edx, byte [ecx + 1]
shl eax, 0x12
inc ecx
movsx edx, byte [edx + 0x834d40]
shl edx, 0xc
add eax, edx
inc ecx
mov edx, eax
sar edx, 0x10
mov byte [esi], dl
mov dl, byte [ecx]
inc esi
inc edi
cmp dl, 0x3d
je 0x5b3b4e
movsx edx, dl
movsx edx, byte [edx + 0x834d40]
shl edx, 6
add eax, edx
inc ecx
mov edx, eax
sar edx, 8
mov byte [esi], dl
mov dl, byte [ecx]
inc esi
inc edi
cmp dl, 0x3d
je 0x5b3b4e
movsx edx, dl
movsx edx, byte [edx + 0x834d40]
add eax, edx
inc ecx
mov byte [esi], al
inc esi
inc edi
add ebp, 4
jmp 0x5b3b55
inc ecx
inc ebp
cmp ebp, dword [esp + 0x4c]
jl 0x5b3ae4
mov eax, dword [esp + 0x10]
mov byte [esi], 0
mov edx, dword [esp + 0x44]
mov dword [eax + 0x18], edi
jmp 0x5b3b6f
mov ebx, dword [esp + 0x38]
mov edi, str.QUOTED_PRINTABLE
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
mov ecx, edx
cmp edx, ebp
jb 0x5b3b88
mov ecx, ebp
mov esi, dword [esp + 0x40]
mov edi, str.QUOTED_PRINTABLE
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x5b3b9c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x5b3c1f
cmp edx, ebp
jb 0x5b3c1f
cmp edx, ebp
setne al
test eax, eax
jne 0x5b3c1f
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x14]
mov esi, ebx
xor ebp, ebp
xor ebx, ebx
test eax, eax
jle 0x5b3c0f
push 3
push 0x853d5c
push esi
call fcn.005cee20
add esp, 0xc
test eax, eax
jne 0x5b3bdb
add esi, 3
add ebp, 3
jmp 0x5b3c09
mov al, byte [esi]
cmp al, 0x3d
jne 0x5b3c03
cmp byte [esi + 1], 0x3d
je 0x5b3c89
push edi
push str._02X
push esi
call fcn.005d13b2
add esp, 0xc
inc edi
add esi, 3
add ebp, 3
jmp 0x5b3c08
mov byte [edi], al
inc edi
inc esi
inc ebp
inc ebx
cmp ebp, dword [esp + 0x4c]
jl 0x5b3bbf
mov byte [edi], 0
mov eax, ebx
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x38]
mov dword [edx + 0x18], eax
mov ecx, dword [esp + 0x4c]
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
mov edi, ebx
mov ecx, dword [eax + 0x18]
mov eax, dword [esp + 0x14]
mov edx, ecx
mov esi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test eax, eax
pop esi
je 0x5b3c60
push eax
call fcn.005d02de
add esp, 4
push 1
lea ecx, [esp + 0x3c]
mov dword [esp + 0x30], 0xffffffff
call fcn.005a8410
mov ecx, dword [esp + 0x24]
mov eax, ebx
pop ebp
pop ebx
pop edi
mov dword fs:[0], ecx
add esp, 0x24
ret 0x18
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x14]
push esi
push ecx
push edi
call fcn.005d01e0
add esp, 0xc
mov byte [edi + esi], 0
mov eax, esi
jmp 0x5b3c14