Function at 0x5af06a
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 0x5af09e
mov edi, 0x5c2195
mov ecx, dword [ebp + 8]
cmp ecx, esi
je 0x5af663
cmp ebx, esi
je 0x5af663
mov eax, dword [ebp + 0x10]
cmp eax, esi
jne 0x5af0c0
mov eax, dword [0x6be5e8]
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0x14], esi
jne 0x5af0c8
mov dword [ebp + 0x14], eax
cmp word [ebx + 0x38], 0x63
jne 0x5af0dd
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov dword [ebp + 8], eax
jmp 0x5af0f9
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 0x5af652
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0x6a5810
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], 0x5be4eb
mov dword [esi + 0x2ac], edx
cmp word [ebx + 0x38], 0x63
je 0x5af240
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 0x5af1a4
lea ecx, [esi + 0x118]
cmp byte [ebx + 0x18], 0
jne 0x5af182
push 1
pop eax
jmp 0x5af187
movzx eax, byte [ebx + edx + 0x18]
mov dword [ecx], eax
cmp byte [ebx + 0x18], 0
jne 0x5af194
push 1
pop eax
jmp 0x5af199
movzx eax, byte [edx + ebx + 0x1c]
mov dword [ecx + 4], eax
inc edx
add ecx, 0x34
cmp edx, edi
jl 0x5af177
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 0x5af1e3
cmp dword [esi + 0x6c], eax
jge 0x5af1e3
fld dword [ebx + 0xc]
fcomp dword [0x6397ac]
fnstsw ax
sahf
jbe 0x5af1ed
mov dword [esi + 0x250], 0x12
fld dword [ebx + 0xc]
fcomp dword [0x6397a8]
fnstsw ax
sahf
ja 0x5af200
push 0x55
pop eax
jmp 0x5af21a
fld dword [ebx + 0xc]
fsub dword [0x62b690]
fmul dword [0x6397a4]
fadd dword [0x6397a0]
call fcn.0044d9cc
lea ecx, [esi + 0x254]
mov edx, 0xff
cmp eax, edx
mov dword [ecx], eax
jle 0x5af22d
mov dword [ecx], edx
fld dword [ebx + 0xc]
fstp dword [esi + 0x24c]
mov dword [esi + 0x114], 0x3f400000
call fcn.005989f0
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.005ed658
mov edi, dword [ebp + 0xc]
pop ecx
test eax, eax
pop ecx
jne 0x5af5e9
mov ebx, dword [ebp - 4]
cmp byte [edi + 0x16], 0
push 1
mov dword [ebp - 0xc], ebx
pop esi
jne 0x5af293
cmp dword [ebp - 8], esi
je 0x5af28e
cmp dword [ebp - 8], 3
jne 0x5af293
cmp byte [edi + 0x15], 1
jne 0x5af293
mov dword [ebp - 0x14], esi
jmp 0x5af297
and dword [ebp - 0x14], 0
xor eax, eax
cmp dword [ebp - 0x14], eax
je 0x5af2a7
movzx ecx, word [edi + 0x3c]
mov dword [ebp - 0x10], ecx
jmp 0x5af2aa
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], eax
je 0x5af2c2
cmp word [edi + 0x3e], 2
jbe 0x5af2c2
push 0x3c
push esi
push ebx
call fcn.005c21a7
add esp, 0xc
cmp word [edi + 0x34], 0xfffd
jbe 0x5af2d7
push 0x3d
push 2
push ebx
call fcn.005c21a7
add esp, 0xc
cmp word [edi + 0x26], 0
jbe 0x5af2f2
cmp word [edi + 0x24], 0
jne 0x5af2f2
push 0x3e
push 3
push ebx
call fcn.005c21a7
add esp, 0xc
cmp word [edi + 0x26], 0x8000
jb 0x5af307
push 0x3f
push 2
push ebx
call fcn.005c21a7
add esp, 0xc
fld dword [edi + 0xc]
fcomp dword [0x62b67c]
fnstsw ax
sahf
jae 0x5af321
push 0x40
push esi
push ebx
call fcn.005c21a7
add esp, 0xc
mov al, byte [edi + 0x16]
cmp al, 1
jbe 0x5af34c
cmp al, 2
je 0x5af338
push 0x41
push esi
push ebx
call fcn.005c21a7
add esp, 0xc
mov ax, word [edi + 0x36]
cmp ax, si
jb 0x5af347
cmp ax, 4
jbe 0x5af34c
call fcn.005a54b7
xor ecx, ecx
cmp word [edi + 0x38], cx
je 0x5af35a
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 0x5af3a9
dec eax
je 0x5af3a3
dec eax
jne 0x5af3af
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 0x5af3af
mov dword [ebx + 0x284], esi
jmp 0x5af3af
mov dword [ebx + 0x260], esi
mov dword [ebx + 0x80], ecx
mov ax, word [edi + 0x3a]
cmp ax, cx
jbe 0x5af3c1
movzx eax, ax
mov dword [ebx + 0x284], eax
mov eax, dword [ebx + 0x284]
cmp eax, ecx
jle 0x5af3e2
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 0x5af429
cmp dword [edi + 0x44], ecx
jne 0x5af429
cmp dword [ebp - 8], esi
mov edx, esi
jle 0x5af40f
xor ecx, ecx
cmp dword [ebp - 8], ecx
jle 0x5af40f
movzx eax, byte [edi + ecx + 0x18]
cmp eax, edx
jle 0x5af409
mov edx, eax
inc ecx
cmp ecx, dword [ebp - 8]
jl 0x5af3fe
mov eax, dword [ebx + 0x68]
mov ecx, edx
shl ecx, 3
cmp dword [ebp - 8], esi
jg 0x5af41f
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 0x5af490
cmp byte [eax + 8], 0xff
jne 0x5af486
cmp byte [eax + 9], 0xe0
jne 0x5af486
movzx edx, byte [eax + 0xa]
movzx ebx, byte [eax + 0xb]
shl edx, 8
add edx, ebx
cmp edx, 0xa
jbe 0x5af486
cmp byte [eax + 0xc], 0x4a
jne 0x5af486
cmp byte [eax + 0xd], 0x46
jne 0x5af486
cmp byte [eax + 0xe], 0x49
jne 0x5af486
cmp byte [eax + 0xf], 0x46
jne 0x5af486
cmp byte [eax + 0x10], 0
jne 0x5af486
cmp dword [ebp - 0x14], 0
je 0x5af48a
test esi, esi
je 0x5af48a
and dword [ebp - 0x10], 0
xor esi, esi
jmp 0x5af434
mov eax, dword [eax]
mov dword [ecx], eax
jmp 0x5af436
mov ax, word [edi + 0x34]
test ax, ax
jbe 0x5af50d
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 0x5af533
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.005be702
mov eax, dword [ebp - 0xc]
add esp, 0xc
add eax, 0x23c
mov eax, dword [eax]
test eax, eax
jne 0x5af501
mov ebx, dword [ebp - 0xc]
mov dword [ebx + 0x23c], esi
jmp 0x5af510
mov ecx, dword [eax]
test ecx, ecx
je 0x5af50b
mov eax, ecx
jmp 0x5af501
mov dword [eax], esi
mov ebx, dword [ebp - 0xc]
cmp dword [ebp - 0x10], 0
je 0x5af5b6
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 0x5af545
jmp 0x5af536
mov ebx, dword [ebp - 0xc]
push 0x42
push 7
push ebx
call fcn.005c21a7
add esp, 0xc
jmp 0x5af5b6
movzx ecx, word [edi + 0x40]
movzx ebx, word [edi + 0x3e]
movzx edx, word [edi + 0x42]
test ecx, ecx
je 0x5af559
test edx, edx
jne 0x5af563
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 0x5af5cf
movzx eax, word [edi + 0x26]
mov dword [ebx + 0x2b8], eax
mov eax, dword [edi + 0x28]
mov dword [ebx + 0x2bc], eax
push ebx
call fcn.005c342a
push dword [ebp - 4]
call fcn.005c2949
mov eax, dword [ebp - 0x20]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x70]
mov dword [eax], ecx
jmp 0x5af5fe
push dword [ebp - 4]
call fcn.005aa427
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.005af66a
pop ecx
pop ecx
mov eax, dword [ebp - 4]
test byte [eax + 0xc], 0x10
je 0x5af643
push esi
call fcn.005c2138
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 0x5af663
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.00598a26
pop ecx
pop ecx
jmp 0x5af663
mov dword [esi + 0x2a0], 1
mov eax, dword [ebp - 4]
jmp 0x5af665
push 0x1780
push dword [ebp - 0x14]
push edi
call fcn.005aea8e
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret