Function at 0xafa5c0
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xf0
cmp dword [ecx + 0x20], 0
je 0xafa611
mov esi, ecx
movzx eax, byte [ecx]
mov byte [esp + 0xf], 0
test eax, eax
je 0xafa618
cmp al, 0x64
jb 0xafa627
lea ecx, [eax + eax*4]
lea ecx, [eax + ecx*8]
movzx edx, cx
shr edx, 0xc
imul ecx, edx, 0x64
sub al, cl
movzx eax, al
movzx eax, word [eax + eax + 0xcbf528]
mov word [esp + 0xd], ax
mov ecx, 1
mov eax, edx
jmp 0xafa630
mov bl, 1
jmp 0xafac71
lea eax, [esp + 0xe]
mov dword [esp + 0x2c], eax
mov byte [esp + 0xe], 0x30
jmp 0xafa672
mov ecx, 3
cmp al, 9
ja 0xafa647
movzx eax, byte [eax + 0xcc069c]
lea edx, [esp + ecx]
add edx, 0xb
mov dword [esp + 0x2c], edx
mov byte [esp + ecx + 0xb], al
jmp 0xafa672
mov ecx, eax
and ecx, 2
mov edx, eax
or eax, 2
imul eax, ecx
xor ecx, 2
and edx, 0x7d
imul edx, ecx
movzx eax, word [edx + eax + 0xcbf528]
lea ecx, [esp + 0xd]
mov dword [esp + 0x2c], ecx
mov word [esp + 0xd], ax
lea eax, [esi + 0x10]
push eax
call fcn.00af77f0
add esp, 4
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0xc0], eax
lea ebx, [esp + 0xcb]
push ebx
call fcn.00b24f40
add esp, 4
mov dword [esp + 0xc4], edi
lea eax, [edi + 0x400]
push eax
call fcn.00af9490
add esp, 4
mov edi, eax
mov dword [esp + 0x30], 0xf7f3e6f4
mov byte [esp + 0x34], 0x68
mov dword [esp + 0x39], 0
mov dword [esp + 0x35], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xc
ja 0xafa73d
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx edx, byte [esp + ecx + 0x30]
mov ecx, 0xfed4604d
sub ecx, eax
add eax, 0xb2
and eax, edx
or ecx, edx
not ecx
add ecx, edx
sub ecx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
mov ecx, eax
xor ecx, 0x21
and eax, 0x21
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xd
jb 0xafa6f0
lea eax, [esp + 0x30]
mov ecx, esi
push ebx
mov ebx, eax
push eax
push edi
call fcn.00af9ed0
mov dword [esp + 0x30], 0x2b808a96
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov word [esp + 0x3c], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xd
ja 0xafa7c0
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x30]
lea edx, [eax + ecx]
add eax, 0x85
and eax, ecx
add eax, eax
sub edx, eax
add edx, 0xa26ad585
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
add al, 0x5d
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xe
jb 0xafa780
mov ecx, esi
push dword [esp + 0x2c]
push ebx
push edi
call fcn.00af9ed0
mov eax, dword [0xcc1c90]
mov dword [esp + 0x30], 0xbb08a8a
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0xf
ja 0xafa852
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x30]
lea ebx, [ecx + edx]
add ebx, 0x68641bad
add ecx, 0x68641bad
and ecx, edx
add ecx, ecx
sub ebx, ecx
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x10]
add cl, 0x45
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x30], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0x10
jb 0xafa810
mov ecx, esi
push eax
lea ebx, [esp + 0x34]
push ebx
push edi
call fcn.00af9ed0
mov dword [esp + 0x30], 0x7f467e4b
mov dword [esp + 0x34], 0x42734a73
mov dword [esp + 0x38], 0x74717a43
mov byte [esp + 0x3c], 0xda
mov dword [esp + 0x41], 0
mov dword [esp + 0x3d], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x14
ja 0xafa8df
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x30]
lea edx, [eax + 0xe3]
add eax, ecx
and edx, ecx
add edx, edx
sub eax, edx
add eax, 0x48cc2ce3
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0xcb
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x15
jb 0xafa8a0
mov dword [esp + 0x10], 0xeb203031
mov dword [esp + 0x14], 0
mov byte [esp + 0x18], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 8
ja 0xafa94f
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax + 0xbd]
and edx, ecx
add eax, ecx
add edx, edx
sub eax, edx
add eax, 0xf5d1b2bd
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0xd5
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 9
jb 0xafa910
lea eax, [esp + 0x10]
mov ecx, esi
push ebx
push eax
push edi
call fcn.00af9ed0
mov dword [esp + 0x30], 0x7c447a78
mov byte [esp + 0x34], 0xd2
mov dword [esp + 0x35], 0
mov dword [esp + 0x39], 0
mov word [esp + 0x3d], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xe
ja 0xafa9dd
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x30]
lea edx, [eax - 0x4424cc1d]
add eax, 0xe3
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
add al, 0xcb
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xf
jb 0xafa9a0
mov ecx, esi
push dword [esp + 0xc4]
push dword [esp + 0xc4]
push ebx
push edi
call fcn.00afa180
mov eax, dword [esi + 0x60]
mov dword [esp + 0x30], 0x338535eb
mov dword [esp + 0x34], 0xfbc3180
mov dword [esp + 0x38], 0xbbe0db5
mov dword [esp + 0x3c], 0x7fb0986
mov dword [esp + 0x40], 0x38305aa
mov dword [esp + 0x44], 0x1fbb01b2
mov dword [esp + 0x48], 0x1bfc1dd8
mov dword [esp + 0x4c], 0x179319a9
mov dword [esp + 0x50], 0x139815a2
mov dword [esp + 0x54], 0xefa011a5
mov dword [esp + 0x58], 0xeb62ed51
mov dword [esp + 0x5c], 0xe719e966
mov dword [esp + 0x60], 0xe355e55c
mov dword [esp + 0x64], 0xff53e16c
mov dword [esp + 0x68], 0xfb40fd0d
mov dword [esp + 0x6c], 0xf774f945
mov dword [esp + 0x70], 0xf331f549
mov dword [esp + 0x74], 0xcf4ef112
mov dword [esp + 0x78], 0xcb47cd7f
mov dword [esp + 0x7c], 0xc774c978
mov dword [esp + 0x80], 0xc34ac579
mov dword [esp + 0x84], 0xdf03c145
mov dword [esp + 0x88], 0xdb67dd60
mov dword [esp + 0x8c], 0xd713d912
mov dword [esp + 0x90], 0xd36fd56a
mov dword [esp + 0x94], 0xaf67d119
mov dword [esp + 0x98], 0xab10ad1e
mov dword [esp + 0x9c], 0xa715a91b
mov dword [esp + 0xa0], 0xa31fa511
mov dword [esp + 0xa4], 0xbf2ea12c
mov dword [esp + 0xa8], 0xbb73bd05
mov dword [esp + 0xac], 0xb7aeb9a9
mov word [esp + 0xb0], 0xb5b6
mov dword [esp + 0xba], 0
mov dword [esp + 0xb6], 0
mov dword [esp + 0xb2], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0x8d
ja 0xafaba4
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x30]
lea ebx, [ecx + 0xd9]
add ecx, edx
and ebx, edx
add ebx, ebx
sub ecx, ebx
add ecx, 0x72dfb9d9
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x10]
add cl, 0x11
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x30], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0x8e
jb 0xafab60
mov dword [esp + 0x10], 0xdb7bd90f
mov dword [esp + 0x14], 0xd74fd544
mov word [esp + 0x18], 0xd1d0
mov dword [esp + 0x1a], 0
mov dword [esp + 0x1e], 0
mov dword [esp + 0x22], 0
mov byte [esp + 0x26], 0
mov dword [esp + 8], 0
mov ecx, dword [esp + 8]
cmp ecx, 0x16
ja 0xafac3c
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 8]
mov edx, dword [esp + 8]
movzx ebx, byte [esp + edx + 0x10]
lea edx, [ecx + ebx]
add edx, 0x93a45124
add ecx, 0x93a45124
and ecx, ebx
add ecx, ecx
mov ebx, edx
not ebx
and ebx, ecx
not ecx
and ecx, edx
sub ecx, ebx
mov dword [esp + 4], ecx
mov ecx, dword [esp + 4]
add cl, 4
mov edx, dword [esp + 8]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 8]
mov ecx, dword [esp + 8]
cmp ecx, 0x17
jb 0xafabf0
push 0x493e0
push eax
push edi
push 0
push 0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00afe5d0
add esp, 0x1c
mov ebx, eax
push edi
call fcn.00af94a0
add esp, 4
mov eax, dword [esi + 0x60]
add dword [esi + 4], eax
mov dword [esi + 0x60], 0
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret