Function at 0x493cf9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov edx, 0xffffff9a
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x38
mov edi, dword [ebp + 8]
test edi, edi
je 0x494150
cmp dword [edi + 0x38], 0
je 0x494150
cmp dword [edi + 0x9c], 0
je 0x493d2c
push edi
call fcn.00493c7a
pop eax
push 0
mov dword [ebp - 0x24], 0
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x20], 0
add eax, dword [edi + 0x98]
mov dword [ebp - 0x28], 0
push eax
xor ebx, ebx
push dword [edi + 0x20]
push dword [edi + 0x1c]
call dword [edi + 0x10]
add esp, 0x10
test eax, eax
jne 0x493edc
lea eax, [ebp - 0x2c]
mov edx, dword [edi + 0x20]
push eax
mov eax, edi
call fcn.00492e17
pop esi
test eax, eax
je 0x493d7b
or ebx, 0xffffffff
jmp 0x493d89
cmp dword [ebp - 0x2c], 0x4034b50
je 0x493d89
mov ebx, 0xffffff99
mov edx, dword [edi + 0x20]
lea esi, [ebp - 0x30]
mov eax, edi
push esi
call fcn.00492dc1
pop ecx
test eax, eax
je 0x493d9f
or ebx, 0xffffffff
lea eax, [ebp - 0x34]
mov edx, dword [edi + 0x20]
push eax
mov eax, edi
call fcn.00492dc1
pop edx
test eax, eax
je 0x493db5
or ebx, 0xffffffff
mov edx, dword [edi + 0x20]
mov eax, edi
push esi
call fcn.00492dc1
pop ecx
test eax, eax
je 0x493dca
or ebx, 0xffffffff
jmp 0x493de4
test ebx, ebx
jne 0x493de4
mov eax, dword [ebp - 0x30]
cmp eax, dword [edi + 0x54]
jne 0x493ddf
test eax, eax
je 0x493de4
cmp eax, 8
je 0x493de4
mov ebx, 0xffffff99
mov edx, dword [edi + 0x20]
mov eax, edi
push esi
call fcn.00492e17
pop edx
test eax, eax
je 0x493df7
or ebx, 0xffffffff
mov edx, dword [edi + 0x20]
mov eax, edi
push esi
call fcn.00492e17
pop ecx
test eax, eax
je 0x493e0c
or ebx, 0xffffffff
jmp 0x493e23
test ebx, ebx
jne 0x493e23
mov eax, dword [edi + 0x5c]
cmp dword [ebp - 0x30], eax
je 0x493e23
test byte [ebp - 0x34], 8
jne 0x493e23
mov ebx, 0xffffff99
mov edx, dword [edi + 0x20]
mov eax, edi
push esi
call fcn.00492e17
pop edx
test eax, eax
je 0x493e38
or ebx, 0xffffffff
jmp 0x493e4f
test ebx, ebx
jne 0x493e4f
mov eax, dword [edi + 0x60]
cmp dword [ebp - 0x30], eax
je 0x493e4f
test byte [ebp - 0x34], 8
jne 0x493e4f
mov ebx, 0xffffff99
mov edx, dword [edi + 0x20]
mov eax, edi
push esi
call fcn.00492e17
pop esi
test eax, eax
je 0x493e64
or ebx, 0xffffffff
jmp 0x493e7b
test ebx, ebx
jne 0x493e7b
mov eax, dword [edi + 0x64]
cmp dword [ebp - 0x30], eax
je 0x493e7b
test byte [ebp - 0x34], 8
jne 0x493e7b
mov ebx, 0xffffff99
lea eax, [ebp - 0x38]
mov edx, dword [edi + 0x20]
push eax
mov eax, edi
call fcn.00492dc1
pop ecx
test eax, eax
je 0x493e93
or ebx, 0xffffffff
jmp 0x493ea4
test ebx, ebx
jne 0x493ea4
mov eax, dword [edi + 0x68]
cmp dword [ebp - 0x38], eax
je 0x493ea4
mov ebx, 0xffffff99
mov eax, dword [ebp - 0x38]
mov edx, dword [edi + 0x20]
add dword [ebp - 0x20], eax
lea eax, [ebp - 0x3c]
push eax
mov eax, edi
call fcn.00492dc1
pop edx
test eax, eax
je 0x493ec0
or ebx, 0xffffffff
mov eax, dword [ebp - 0x38]
add eax, dword [edi + 0x98]
add eax, 0x1e
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x3c]
add dword [ebp - 0x20], eax
mov dword [ebp - 0x28], eax
test ebx, ebx
je 0x493ee6
mov edx, 0xffffff99
jmp 0x494150
push 0x90
call sub.msvcrt.dll_malloc
pop esi
mov ebx, eax
mov edx, 0xffffff98
test eax, eax
je 0x494150
push 0x4000
call sub.msvcrt.dll_malloc
mov edx, dword [ebp - 0x24]
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x44], edx
mov edx, dword [ebp - 0x28]
mov dword [ebx + 0x48], edx
mov edx, dword [ebp + 0x14]
mov dword [ebx], eax
mov dword [ebx + 0x8c], edx
pop ecx
test eax, eax
jne 0x493f3e
push ebx
call fcn.0052eef0
pop edx
mov edx, 0xffffff98
jmp 0x494150
mov dword [ebx + 0x40], 0
cmp dword [ebp + 0xc], 0
je 0x493f53
mov edx, dword [ebp + 0xc]
mov eax, dword [edi + 0x54]
mov dword [edx], eax
cmp dword [ebp + 0x10], 0
je 0x493f9a
mov eax, dword [ebp + 0x10]
mov dword [eax], 6
mov eax, dword [edi + 0x50]
and eax, 6
cmp eax, 4
je 0x493f86
ja 0x493f76
cmp eax, 2
je 0x493f91
jmp 0x493f9a
cmp eax, 6
jne 0x493f9a
mov edx, dword [ebp + 0x10]
mov dword [edx], 1
jmp 0x493f9a
mov eax, dword [ebp + 0x10]
mov dword [eax], 2
jmp 0x493f9a
mov edx, dword [ebp + 0x10]
mov dword [edx], 9
mov eax, dword [edi + 0x5c]
mov edx, dword [edi + 0x54]
mov dword [ebx + 0x54], eax
mov eax, dword [edi + 0x20]
mov dword [ebx + 0x84], edx
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x50], 0
lea eax, [ebx + 0x60]
push 0x20
push edi
push eax
call fcn.0052ef10
mov eax, dword [edi + 0x2c]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x88], eax
add esp, 0xc
cmp dword [edi + 0x54], 8
sete dl
xor eax, eax
cmp dword [ebp + 0x14], 0
sete al
test edx, eax
je 0x494041
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
lea eax, [ebx + 4]
push 0x38
push 0x600071
push 0xfffffffffffffff1
push eax
call fcn.00518753
add esp, 0x10
mov esi, eax
test eax, eax
jne 0x494033
mov dword [ebx + 0x40], 1
jmp 0x494041
push ebx
call fcn.0052eef0
pop eax
mov edx, esi
jmp 0x494150
mov eax, dword [edi + 0x60]
mov dword [edi + 0x9c], ebx
mov dword [ebx + 0x58], eax
mov eax, dword [edi + 0x64]
mov dword [ebx + 0x5c], eax
mov eax, dword [ebp - 0x20]
add eax, dword [edi + 0x98]
mov dword [ebx + 8], 0
add eax, 0x1e
mov dword [ebx + 0x3c], eax
cmp dword [ebp + 0x18], 0
je 0x49414e
call fcn.00518310
lea esi, [edi + 0xa4]
mov dword [edi + 0xa4], 0x12345678
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x44], eax
mov dword [edi + 0xb0], eax
mov dword [esi + 4], 0x23456789
mov dword [esi + 8], 0x34567890
cmp byte [ebx], 0
je 0x4940b9
movsx eax, byte [ebx]
mov edx, dword [ebp - 0x44]
push eax
mov eax, esi
inc ebx
call fcn.00492d37
pop eax
jmp 0x4940a2
push 0
mov eax, dword [edi + 0x9c]
mov edx, dword [eax + 0x88]
add edx, dword [eax + 0x3c]
push edx
push dword [edi + 0x20]
push dword [edi + 0x1c]
call dword [edi + 0x10]
add esp, 0x10
mov edx, 0xffffff98
test eax, eax
jne 0x494150
lea eax, [ebp - 0x1c]
push 0xc
push eax
push dword [edi + 0x20]
push dword [edi + 0x1c]
call dword [edi + 4]
add esp, 0x10
mov edx, 0xffffff98
cmp eax, 0xb
jbe 0x494150
mov dword [ebp - 0x40], 0
mov ebx, dword [edi + 0xb0]
lea esi, [edi + 0xa4]
mov edx, ebx
mov eax, esi
call fcn.00492d20
mov edx, dword [ebp - 0x40]
xor al, byte [edx + ebp - 0x1c]
mov byte [edx + ebp - 0x1c], al
mov edx, ebx
movsx eax, al
push eax
mov eax, esi
call fcn.00492d37
inc dword [ebp - 0x40]
pop eax
cmp dword [ebp - 0x40], 0xb
jle 0x494103
mov eax, dword [edi + 0x9c]
mov dword [edi + 0xa0], 1
add dword [eax + 0x3c], 0xc
xor edx, edx
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret