Function at 0x4609b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov ebx, dword [esi + 0xc]
mov edi, dword [esi + 0x20]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], edi
cmp edi, ebx
jge 0x460c5a
cmp dword [esi + 0x24], ebx
jge 0x460a38
test ebx, ebx
je 0x4609f2
lea eax, [ebx*4]
push 0x10
push eax
call fcn.004927e0
mov edx, dword [esi + 0x20]
add esp, 8
mov dword [ebp - 4], eax
jmp 0x4609fb
mov dword [ebp - 4], 0
mov edx, edi
xor ecx, ecx
test edx, edx
jle 0x460a15
mov ebx, dword [ebp - 4]
mov eax, dword [esi + 0x28]
mov eax, dword [eax + ecx*4]
mov dword [ebx + ecx*4], eax
inc ecx
cmp ecx, edx
jl 0x460a04
mov ebx, dword [ebp - 8]
mov eax, dword [esi + 0x28]
test eax, eax
je 0x460a2b
cmp byte [esi + 0x2c], 0
je 0x460a2b
push eax
call fcn.004927f0
add esp, 4
mov eax, dword [ebp - 4]
mov byte [esi + 0x2c], 1
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], ebx
mov edx, ebx
mov ecx, edi
sub edx, edi
cmp edx, 4
jb 0x460aa1
mov eax, dword [esi + 0x28]
lea ecx, [eax + edi*4]
lea eax, [eax + ebx*4]
mov dword [ebp - 0xc], ecx
add eax, 0xfffffffc
mov dword [ebp - 4], eax
lea eax, [esi + 0x28]
cmp ecx, eax
mov ecx, edi
ja 0x460a63
cmp dword [ebp - 4], eax
jae 0x460aa1
and edx, 0x80000003
jns 0x460a70
dec edx
or edx, 0xfffffffc
inc edx
mov eax, ebx
sub eax, edx
add ecx, 4
cmp ecx, eax
jl 0x460a74
sub eax, edi
mov dword [ebp - 4], ecx
mov edi, dword [ebp - 0xc]
add eax, 3
cdq
and edx, 3
lea ecx, [edx + eax]
xor eax, eax
sar ecx, 2
shl ecx, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 4]
cmp ecx, ebx
jge 0x460ab0
mov eax, dword [esi + 0x28]
mov dword [eax + ecx*4], 0
inc ecx
cmp ecx, ebx
jl 0x460aa1
mov dword [esi + 0x20], ebx
mov edi, dword [esi + 0x34]
cmp ebx, edi
jl 0x460baf
jle 0x460b29
cmp dword [esi + 0x38], ebx
jge 0x460b29
test ebx, ebx
je 0x460ae3
lea eax, [ebx*4]
push 0x10
push eax
call fcn.004927e0
mov edx, dword [esi + 0x34]
add esp, 8
mov dword [ebp - 4], eax
jmp 0x460aec
mov dword [ebp - 4], 0
mov edx, edi
xor ecx, ecx
test edx, edx
jle 0x460b06
mov ebx, dword [ebp - 4]
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + ecx*4]
mov dword [ebx + ecx*4], eax
inc ecx
cmp ecx, edx
jl 0x460af5
mov ebx, dword [ebp - 8]
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x460b1c
cmp byte [esi + 0x40], 0
je 0x460b1c
push eax
call fcn.004927f0
add esp, 4
mov eax, dword [ebp - 4]
mov byte [esi + 0x40], 1
mov dword [esi + 0x3c], eax
mov dword [esi + 0x38], ebx
mov edx, ebx
mov ecx, edi
sub edx, edi
cmp edi, ebx
jge 0x460baf
cmp edx, 4
jb 0x460ba0
mov eax, dword [esi + 0x3c]
lea ecx, [eax + edi*4]
lea eax, [eax + ebx*4]
mov dword [ebp - 8], ecx
add eax, 0xfffffffc
mov dword [ebp - 0xc], eax
lea eax, [esi + 0x3c]
cmp ecx, eax
mov ecx, edi
ja 0x460b58
cmp dword [ebp - 0xc], eax
jae 0x460ba0
and edx, 0x80000003
jns 0x460b65
dec edx
or edx, 0xfffffffc
inc edx
mov eax, ebx
sub eax, edx
nop dword [eax]
add ecx, 4
cmp ecx, eax
jl 0x460b70
sub eax, edi
mov dword [ebp - 0xc], ecx
mov edi, dword [ebp - 8]
add eax, 3
cdq
and edx, 3
lea ecx, [edx + eax]
xor eax, eax
sar ecx, 2
shl ecx, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, ebx
jge 0x460baf
nop dword [eax]
mov eax, dword [esi + 0x3c]
mov dword [eax + ecx*4], 0
inc ecx
cmp ecx, ebx
jl 0x460ba0
xor ecx, ecx
mov dword [esi + 0x34], ebx
test ebx, ebx
jle 0x460be0
nop dword [eax + eax]
mov eax, dword [esi + 0x28]
mov dword [eax + ecx*4], 0xffffffff
inc ecx
cmp ecx, ebx
jl 0x460bc0
xor ecx, ecx
mov eax, dword [esi + 0x3c]
mov dword [eax + ecx*4], 0xffffffff
inc ecx
cmp ecx, ebx
jl 0x460bd1
mov edi, dword [ebp - 0x10]
xor ebx, ebx
test edi, edi
jle 0x460c5a
xor eax, eax
mov dword [ebp - 8], eax
nop
mov ecx, dword [esi + 0x10]
add ecx, eax
mov eax, dword [ecx + 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ecx]
shl edx, 0x10
or edx, dword [eax + 0xc]
mov eax, edx
shl eax, 0xf
not eax
add edx, eax
mov eax, edx
shr eax, 0xa
xor eax, edx
lea edx, [eax + eax*8]
mov eax, edx
shr eax, 6
xor edx, eax
mov eax, edx
shl eax, 0xb
not eax
add edx, eax
mov eax, dword [esi + 0xc]
dec eax
mov ecx, edx
shr ecx, 0x10
xor ecx, edx
and ecx, eax
mov eax, dword [esi + 0x28]
lea edx, [ecx*4]
mov ecx, dword [esi + 0x3c]
mov eax, dword [edx + eax]
mov dword [ecx + ebx*4], eax
mov eax, dword [esi + 0x28]
mov dword [edx + eax], ebx
inc ebx
mov eax, dword [ebp - 8]
add eax, 0x10
mov dword [ebp - 8], eax
cmp ebx, edi
jl 0x460bf0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret