Function at 0x5a9be8
Capabilities:
Encode data using base64
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x18], 0x9170
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx + 0x14]
mov edi, dword [ebx + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 4]
cmp edi, esi
mov dword [ebp - 0x14], eax
jne 0x5a9c1c
mov edi, 0x5bcd13
mov ecx, dword [ebp + 8]
cmp ecx, esi
je 0x5aa1e1
cmp ebx, esi
je 0x5aa1e1
mov eax, dword [ebp + 0x10]
cmp eax, esi
jne 0x5a9c3e
mov eax, dword [0x6b7048]
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0x14], esi
jne 0x5a9c46
mov dword [ebp + 0x14], eax
cmp word [ebx + 0x38], 0x63
jne 0x5a9c5b
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov dword [ebp + 8], eax
jmp 0x5a9c77
mov ecx, dword [eax]
push 0x1778
push 1
push eax
call dword [ecx + 4]
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], esi
je 0x5aa1d0
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0x69e348
mov esi, dword [ebp - 4]
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [esi + 0x29c], edx
mov dword [esi + 0x1c], eax
movzx eax, word [ebx]
mov dword [esi + 0x298], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x2a4], eax
mov dword [esi + 0x2a8], edi
mov dword [esi + 0x2b0], 0x5b905b
mov dword [esi + 0x2ac], edx
cmp word [ebx + 0x38], 0x63
je 0x5a9dbe
movzx eax, word [ebx + 0x10]
mov edi, dword [ebp - 8]
mov dword [esi + 0x68], eax
movzx eax, word [ebx + 0x12]
mov dword [esi + 0x6c], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x78], edi
mov dword [esi + 0x28c], eax
mov eax, dword [ebp + 0x10]
cmp edi, edx
mov dword [esi + 0x290], eax
jle 0x5a9d22
lea ecx, [esi + 0x118]
cmp byte [ebx + 0x18], 0
jne 0x5a9d00
push 1
pop eax
jmp 0x5a9d05
movzx eax, byte [ebx + edx + 0x18]
mov dword [ecx], eax
cmp byte [ebx + 0x18], 0
jne 0x5a9d12
push 1
pop eax
jmp 0x5a9d17
movzx eax, byte [edx + ebx + 0x1c]
mov dword [ecx + 4], eax
inc edx
add ecx, 0x34
cmp edx, edi
jl 0x5a9cf5
mov dword [esi + 0x88], 1
movzx eax, byte [ebx + 0x15]
mov dword [esi + 0x84], eax
xor eax, eax
cmp byte [ebx + 0x17], al
setne al
mov dword [esi + 0x8c], eax
mov eax, 0x514
cmp dword [esi + 0x68], eax
jge 0x5a9d61
cmp dword [esi + 0x6c], eax
jge 0x5a9d61
fld dword [ebx + 0xc]
fcomp dword [0x63371c]
fnstsw ax
sahf
jbe 0x5a9d6b
mov dword [esi + 0x250], 0x12
fld dword [ebx + 0xc]
fcomp dword [0x633718]
fnstsw ax
sahf
ja 0x5a9d7e
push 0x55
pop eax
jmp 0x5a9d98
fld dword [ebx + 0xc]
fsub dword [0x625670]
fmul dword [0x633714]
fadd dword [0x633710]
call fcn.0044d7bc
lea ecx, [esi + 0x254]
mov edx, 0xff
cmp eax, edx
mov dword [ecx], eax
jle 0x5a9dab
mov dword [ecx], edx
fld dword [ebx + 0xc]
fstp dword [esi + 0x24c]
mov dword [esi + 0x114], 0x3f400000
call fcn.00593582
mov ecx, dword [eax]
and dword [ebp - 0x6c], 0
mov dword [ebp - 0x70], ecx
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x20], eax
mov dword [eax], ecx
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.005e81c8
mov edi, dword [ebp + 0xc]
pop ecx
test eax, eax
pop ecx
jne 0x5aa167
mov ebx, dword [ebp - 4]
cmp byte [edi + 0x16], 0
push 1
mov dword [ebp - 0xc], ebx
pop esi
jne 0x5a9e11
cmp dword [ebp - 8], esi
je 0x5a9e0c
cmp dword [ebp - 8], 3
jne 0x5a9e11
cmp byte [edi + 0x15], 1
jne 0x5a9e11
mov dword [ebp - 0x14], esi
jmp 0x5a9e15
and dword [ebp - 0x14], 0
xor eax, eax
cmp dword [ebp - 0x14], eax
je 0x5a9e25
movzx ecx, word [edi + 0x3c]
mov dword [ebp - 0x10], ecx
jmp 0x5a9e28
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], eax
je 0x5a9e40
cmp word [edi + 0x3e], 2
jbe 0x5a9e40
push 0x3c
push esi
push ebx
call fcn.005bcd25
add esp, 0xc
cmp word [edi + 0x34], 0xfffd
jbe 0x5a9e55
push 0x3d
push 2
push ebx
call fcn.005bcd25
add esp, 0xc
cmp word [edi + 0x26], 0
jbe 0x5a9e70
cmp word [edi + 0x24], 0
jne 0x5a9e70
push 0x3e
push 3
push ebx
call fcn.005bcd25
add esp, 0xc
cmp word [edi + 0x26], 0x8000
jb 0x5a9e85
push 0x3f
push 2
push ebx
call fcn.005bcd25
add esp, 0xc
fld dword [edi + 0xc]
fcomp dword [0x62565c]
fnstsw ax
sahf
jae 0x5a9e9f
push 0x40
push esi
push ebx
call fcn.005bcd25
add esp, 0xc
mov al, byte [edi + 0x16]
cmp al, 1
jbe 0x5a9eca
cmp al, 2
je 0x5a9eb6
push 0x41
push esi
push ebx
call fcn.005bcd25
add esp, 0xc
mov ax, word [edi + 0x36]
cmp ax, si
jb 0x5a9ec5
cmp ax, 4
jbe 0x5a9eca
call fcn.005a0049
xor ecx, ecx
cmp word [edi + 0x38], cx
je 0x5a9ed8
mov dword [ebx + 0x90], esi
mov ax, word [edi + 0x24]
neg ax
sbb eax, eax
and eax, 0x64
mov word [ebx + 0x246], ax
movzx eax, byte [edi + 0x16]
sub eax, ecx
je 0x5a9f27
dec eax
je 0x5a9f21
dec eax
jne 0x5a9f2d
mov dword [ebx + 0x90], esi
mov dword [ebx + 0x80], 2
movzx eax, word [edi + 0x36]
mov dword [ebx + 0xa0], eax
cmp word [edi + 0x3a], cx
jne 0x5a9f2d
mov dword [ebx + 0x284], esi
jmp 0x5a9f2d
mov dword [ebx + 0x260], esi
mov dword [ebx + 0x80], ecx
mov ax, word [edi + 0x3a]
cmp ax, cx
jbe 0x5a9f3f
movzx eax, ax
mov dword [ebx + 0x284], eax
mov eax, dword [ebx + 0x284]
cmp eax, ecx
jle 0x5a9f60
dec eax
mov dword [ebx + 0x280], esi
neg eax
sbb eax, eax
and eax, 4
add eax, 4
mov dword [ebx + 0x27c], eax
cmp dword [ebx + 0x80], 2
je 0x5a9fa7
cmp dword [edi + 0x44], ecx
jne 0x5a9fa7
cmp dword [ebp - 8], esi
mov edx, esi
jle 0x5a9f8d
xor ecx, ecx
cmp dword [ebp - 8], ecx
jle 0x5a9f8d
movzx eax, byte [edi + ecx + 0x18]
cmp eax, edx
jle 0x5a9f87
mov edx, eax
inc ecx
cmp ecx, dword [ebp - 8]
jl 0x5a9f7c
mov eax, dword [ebx + 0x68]
mov ecx, edx
shl ecx, 3
cmp dword [ebp - 8], esi
jg 0x5a9f9d
imul eax, edx
lea eax, [eax + ecx - 1]
cdq
idiv ecx
mov dword [ebx + 0x60], eax
mov ecx, dword [edi + 0x20]
lea eax, [ebx + 0x23c]
mov dword [eax], ecx
mov ecx, eax
mov eax, dword [ecx]
test eax, eax
je 0x5aa00e
cmp byte [eax + 8], 0xff
jne 0x5aa004
cmp byte [eax + 9], 0xe0
jne 0x5aa004
movzx edx, byte [eax + 0xa]
movzx ebx, byte [eax + 0xb]
shl edx, 8
add edx, ebx
cmp edx, 0xa
jbe 0x5aa004
cmp byte [eax + 0xc], 0x4a
jne 0x5aa004
cmp byte [eax + 0xd], 0x46
jne 0x5aa004
cmp byte [eax + 0xe], 0x49
jne 0x5aa004
cmp byte [eax + 0xf], 0x46
jne 0x5aa004
cmp byte [eax + 0x10], 0
jne 0x5aa004
cmp dword [ebp - 0x14], 0
je 0x5aa008
test esi, esi
je 0x5aa008
and dword [ebp - 0x10], 0
xor esi, esi
jmp 0x5a9fb2
mov eax, dword [eax]
mov dword [ecx], eax
jmp 0x5a9fb4
mov ax, word [edi + 0x34]
test ax, ax
jbe 0x5aa08b
movzx ebx, ax
mov eax, dword [ebp - 0xc]
add ebx, 4
mov eax, dword [eax + 0x290]
lea edx, [ebx + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x5aa0b1
and dword [esi], 0
lea eax, [ebx - 2]
mov ecx, eax
mov dword [esi + 4], ebx
or byte [esi + 8], 0xff
sub bl, 2
shr ecx, 8
push eax
mov byte [esi + 9], 0xfe
mov byte [esi + 0xa], cl
mov byte [esi + 0xb], bl
push dword [edi + 0x30]
lea eax, [esi + 0xc]
push eax
call fcn.005b9272
mov eax, dword [ebp - 0xc]
add esp, 0xc
add eax, 0x23c
mov eax, dword [eax]
test eax, eax
jne 0x5aa07f
mov ebx, dword [ebp - 0xc]
mov dword [ebx + 0x23c], esi
jmp 0x5aa08e
mov ecx, dword [eax]
test ecx, ecx
je 0x5aa089
mov eax, ecx
jmp 0x5aa07f
mov dword [eax], esi
mov ebx, dword [ebp - 0xc]
cmp dword [ebp - 0x10], 0
je 0x5aa134
mov eax, dword [ebx + 0x290]
push 0x1a
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 0xc
test eax, eax
jne 0x5aa0c3
jmp 0x5aa0b4
mov ebx, dword [ebp - 0xc]
push 0x42
push 7
push ebx
call fcn.005bcd25
add esp, 0xc
jmp 0x5aa134
movzx ecx, word [edi + 0x40]
movzx ebx, word [edi + 0x3e]
movzx edx, word [edi + 0x42]
test ecx, ecx
je 0x5aa0d7
test edx, edx
jne 0x5aa0e1
movzx ecx, word [edi + 0x10]
movzx edx, word [edi + 0x12]
xor ebx, ebx
or byte [eax + 8], 0xff
mov byte [eax + 0x13], bl
mov ebx, ecx
mov byte [eax + 0x15], cl
shr ebx, 8
mov ecx, edx
mov byte [eax + 0x14], bl
mov ebx, dword [ebp - 0xc]
mov byte [eax + 9], 0xe0
shr ecx, 8
mov byte [eax + 0x16], cl
lea ecx, [ebx + 0x23c]
mov byte [eax + 0xb], 0x10
mov byte [eax + 0xc], 0x4a
mov byte [eax + 0xf], 0x46
mov byte [eax + 0xd], 0x46
mov byte [eax + 0xe], 0x49
mov byte [eax + 0x11], 1
mov byte [eax + 0x12], 2
mov byte [eax + 0x17], dl
mov dword [eax + 4], 0x12
mov edx, dword [ecx]
mov dword [eax], edx
mov dword [ecx], eax
cmp dword [edi + 0x28], 0
je 0x5aa14d
movzx eax, word [edi + 0x26]
mov dword [ebx + 0x2b8], eax
mov eax, dword [edi + 0x28]
mov dword [ebx + 0x2bc], eax
push ebx
call fcn.005bdfa8
push dword [ebp - 4]
call fcn.005bd4c7
mov eax, dword [ebp - 0x20]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x70]
mov dword [eax], ecx
jmp 0x5aa17c
push dword [ebp - 4]
call fcn.005a4fa5
mov eax, dword [ebp - 0x64]
pop ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x18], eax
mov esi, dword [ebp - 4]
push edi
push esi
call fcn.005aa1e8
pop ecx
pop ecx
mov eax, dword [ebp - 4]
test byte [eax + 0xc], 0x10
je 0x5aa1c1
push esi
call fcn.005bccb6
mov esi, dword [esi + 0x290]
mov eax, dword [esi]
push dword [ebp - 4]
push esi
call dword [eax + 8]
add esp, 0xc
cmp dword [ebp - 0x18], 0x9170
je 0x5aa1e1
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.005935b8
pop ecx
pop ecx
jmp 0x5aa1e1
mov dword [esi + 0x2a0], 1
mov eax, dword [ebp - 4]
jmp 0x5aa1e3
push 0x1780
push dword [ebp - 0x14]
push edi
call fcn.005a960c
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret