Function at 0x4a470c
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x5015dd
call fcn.00500798
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x40], edx
mov esi, ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x20], 0xc23cea2f
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x3c], 0x8ca40452
mov dword [ebp - 0x18], 0x16
cmp dword [ebp - 0x18], 0xfffffffa
jge 0x4a498b
mov dword [ebp - 0x1c], 1
mov byte [ebp - 0x11], bl
cmp byte [ebp - 0x11], 0
je 0x4a477a
push 0x19c7
push 0x1905
push ebx
call dword [0xadb3f0]
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x18], ebx
jne 0x4a4788
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
inc ecx
mov eax, dword [ebp - 0x1c]
xor edx, edx
cmp ecx, eax
setg dl
mov eax, dword [ebp - 0x1c]
sub eax, edx
neg eax
sbb eax, eax
inc eax
shl eax, 2
mov ecx, dword [ebp - 0x18]
sub ecx, eax
neg ecx
sbb ecx, ecx
inc ecx
mov eax, dword [ebp - 0x1c]
xor edx, edx
cmp ecx, eax
setg dl
neg edx
mov eax, dword [ebp - 0x18]
xor ecx, ecx
cmp edx, eax
setg cl
mov dword [ebp - 0x28], ecx
imul eax, dword [ebp - 0x28], 0xfffffffd
xor edx, edx
cmp eax, 9
setg dl
sub edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
xor ecx, ecx
cmp edx, eax
setne cl
imul ecx, dword [ebp - 0x1c]
dec ecx
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x1c]
jne 0x4a47f8
cmp dword [ebp - 0x28], ebx
jne 0x4a47f8
mov eax, ebx
jmp 0x4a47fb
xor eax, eax
inc eax
cmp eax, dword [ebp - 0x34]
je 0x4a4911
mov dword [ebp - 0x30], 0x2194
cmp dword [ebp - 0x30], 0x223e
jle 0x4a48a7
mov dword [ebp - 0x28], ebx
mov esi, ebx
mov dword [ebp - 0x1c], ebx
mov edi, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x38], ebx
mov eax, esi
mov ecx, edi
shl eax, cl
mov dword [ebp - 0x3c], eax
mov esi, dword [ebp - 0x28]
mov edi, ebx
xor eax, edi
xor eax, esi
cdq
push edx
push eax
lea ecx, [ebp - 0x64]
call fcn.00401961
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x4a484f
mov eax, dword [eax]
push eax
call fcn.004eaff7
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.00412e4f
inc edi
cmp edi, 0x4ce5
mov eax, dword [ebp - 0x3c]
jl 0x4a4836
mov edi, dword [ebp - 0x24]
inc edi
mov dword [ebp - 0x24], edi
cmp edi, 0x5a73
mov esi, dword [ebp - 0x1c]
jl 0x4a4825
inc esi
mov dword [ebp - 0x1c], esi
cmp esi, 0x460e
jl 0x4a4820
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp eax, 0x30a0
jl 0x4a481b
push 0x16d1
call dword [0xadb178]
mov esi, dword [ebp - 0x2c]
mov byte [ebp - 0x11], bl
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x30], 0x1f3c
jge 0x4a48c1
push 0xabd0b0
call fcn.004eaff7
pop ecx
or dword [ebp - 4], 0xffffffff
jmp 0x4a48ea
cmp byte [ebp - 0x11], 0
je 0x4a4983
push 0x716
push ebx
push 0xfac
push 0x2143
push 0x663
call dword [0xadb154]
jmp 0x4a4983
mov dword [ebp - 0x30], 0xe83adeb9
mov dword [ebp - 0x3c], 0xfffffffd
mov dword [ebp - 0x20], ebx
jmp 0x4a497a
mov dword [ebp - 0x38], 7
push 2
lea ecx, [ebp - 0x4c]
call fcn.004128b0
mov dword [ebp - 0x24], ebx
jmp 0x4a494a
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x4c]
mov dword [eax + ecx*4], 0x97bd
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], 2
jl 0x4a493a
cmp dword [ebp - 0x3c], ebx
je 0x4a4958
mov eax, dword [ebp - 0x38]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x4c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x4c]
call fcn.00412982
dec dword [ebp - 0x20]
cmp dword [ebp - 0x20], 0xffffffea
je 0x4a4924
mov eax, dword [ebp - 0x18]
dec dword [ebp - 0x18]
jmp 0x4a474f
mov dword [ebp - 0x24], 0x43cc
cmp dword [ebp - 0x24], 0x464c
jle 0x4a4a0c
push ebx
push ebx
push 0xc96
push ebx
push ebx
call dword [0xadb024]
mov edi, ebx
mov dword [ebp - 0x28], ebx
mov eax, ebx
mov dword [ebp - 0x30], ebx
mov esi, ebx
mov edx, edi
mov ecx, eax
shl edx, cl
mov dword [ebp - 0x3c], edx
mov edi, ebx
mov ebx, dword [ebp - 0x3c]
mov eax, edi
and eax, esi
xor eax, ebx
cdq
push edx
push eax
mov ecx, 0xad7f58
call fcn.0041255b
inc edi
cmp edi, 0x5d0
jl 0x4a49c4
inc esi
cmp esi, 0x6f56
push 0
pop ebx
jl 0x4a49bf
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp eax, 0x604
mov edi, dword [ebp - 0x28]
jl 0x4a49b4
inc edi
mov dword [ebp - 0x28], edi
cmp edi, 0x207c
jl 0x4a49af
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 2
cmp dword [ebp - 0x24], 0x419b
jge 0x4a4a31
mov edx, 0xabd0f4
mov ecx, 0xad7f58
call fcn.00415010
or dword [ebp - 4], 0xffffffff
jmp 0x4a4a5a
mov dword [esi], ebx
jmp 0x4a4a6e
mov ecx, dword [esi]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
mov dword [eax + ecx*4], 0xfc24489b
inc dword [esi]
cmp dword [esi], 3
jl 0x4a4a5e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret