Function at 0x480f70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5e8
mov eax, dword [0x5512ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x5e0], edi
cmp ebx, 0x100
jbe 0x480fab
mov eax, dword [esi + 0x400]
mov dword [ebp - 0x5cc], eax
jmp 0x480fb5
mov dword [ebp - 0x5cc], 0x10
push 0x44
lea eax, [ebp - 0x48]
xorps xmm0, xmm0
push 0
push eax
movlpd qword [ebp - 0x5bc], xmm0
call fcn.004ab0f0
add esp, 0xc
mov ecx, esi
mov edx, ebx
mov eax, dword [ecx]
lea ecx, [ecx + 4]
inc dword [ebp + eax*4 - 0x48]
sub edx, 1
jne 0x480fd4
cmp dword [ebp - 0x48], ebx
jne 0x481019
push 1
push 0x18
call fcn.004b6706
add esp, 8
mov word [eax + 8], 0x163
mov word [eax + 0x10], 0x163
add eax, 8
mov dword [edi], 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
mov ecx, 1
nop
cmp dword [ebp + ecx*4 - 0x48], 0
jne 0x48102d
inc ecx
cmp ecx, 0x10
jbe 0x481020
cmp dword [ebp - 8], 0
mov eax, 0x10
mov dword [ebp - 0x5a0], ecx
jne 0x48104c
nop
test eax, eax
je 0x48104c
dec eax
cmp dword [ebp + eax*4 - 0x48], 0
je 0x481040
mov edx, dword [edi]
mov dword [ebp - 0x5b4], eax
cmp edx, ecx
jae 0x48105c
mov edx, ecx
jmp 0x481061
cmp edx, eax
cmova edx, eax
mov dword [edi], edx
mov edx, 1
shl edx, cl
cmp ecx, eax
jae 0x48107d
nop
sub edx, dword [ebp + ecx*4 - 0x48]
js 0x48108b
inc ecx
add edx, edx
cmp ecx, eax
jb 0x481070
mov ecx, edx
sub edx, dword [ebp + eax*4 - 0x48]
mov dword [ebp - 0x5e8], edx
jns 0x4810a1
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
mov dword [ebp + eax*4 - 0x48], ecx
lea edx, [ebp - 0x44]
xor ecx, ecx
lea edi, [ebp - 0x84]
mov dword [ebp - 0x88], ecx
sub eax, 1
je 0x4810cf
nop dword [eax + eax]
add ecx, dword [edx]
lea edx, [edx + 4]
mov dword [edi], ecx
lea edi, [edi + 4]
sub eax, 1
jne 0x4810c0
push 0x484
lea eax, [ebp - 0x594]
push 0xff
push eax
call fcn.004ab0f0
add esp, 0xc
xor ecx, ecx
nop word [eax + eax]
mov edx, dword [esi]
lea esi, [esi + 4]
test edx, edx
je 0x48110f
mov eax, dword [ebp + edx*4 - 0x8c]
mov dword [ebp + eax*4 - 0x594], ecx
inc eax
mov dword [ebp + edx*4 - 0x8c], eax
inc ecx
cmp ecx, ebx
jb 0x4810f0
mov esi, dword [ebp - 0x5b4]
lea eax, [ebp - 0x5dc]
mov dword [ebp - 0x5d0], eax
xor ebx, ebx
lea eax, [ebp - 0x594]
mov dword [ebp - 0x5a8], ebx
xor edx, edx
mov dword [ebp - 0x5c0], eax
or eax, 0xffffffff
mov dword [ebp - 0x8c], ebx
xor edi, edi
mov dword [ebp - 0x598], eax
mov ecx, 1
mov dword [ebp - 0xd0], ebx
mov dword [ebp - 0x5dc], ecx
mov dword [ebp - 0x59c], edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 0x5d8], edi
mov dword [ebp - 0x5c4], edx
cmp dword [ebp - 0x5a0], esi
jg 0x4814ee
mov ecx, dword [ebp - 0x5a0]
lea esi, [ebp - 0x48]
lea esi, [esi + ecx*4]
mov dword [ebp - 0x5b0], esi
mov esi, dword [ebp - 0x5b8]
mov dword [ebp - 0x5a4], esi
mov esi, dword [ebp - 0x5b0]
mov esi, dword [esi]
mov dword [ebp - 0x5ac], esi
test esi, esi
je 0x4814c0
dec ecx
mov dword [ebp - 0x5c8], 1
shl dword [ebp - 0x5c8], cl
lea esi, [eax*4]
mov ecx, dword [ebp - 0x5ac]
nop dword [eax]
nop dword [eax + eax]
mov dword [ebp - 0x5e4], ecx
dec ecx
mov dword [ebp - 0x5ac], ecx
mov ecx, dword [ebp - 0x5a0]
cmp ecx, dword [ebp + esi - 0xcc]
jle 0x481373
mov ebx, dword [ebp - 0x5e0]
inc eax
mov dword [ebp - 0x598], eax
mov esi, dword [ebx]
lea edi, [eax*4]
mov edx, dword [ebp + edi - 0xd0]
mov ebx, ecx
mov eax, dword [ebp - 0x5b4]
sub eax, edx
mov dword [ebp - 0x5d4], edi
cmp eax, esi
mov dword [ebp - 0x59c], edx
cmovbe esi, eax
sub ebx, edx
mov eax, 1
mov ecx, ebx
shl eax, cl
cmp eax, dword [ebp - 0x5e4]
jbe 0x48127a
mov edx, dword [ebp - 0x5b0]
or ecx, 0xffffffff
sub ecx, dword [ebp - 0x5ac]
inc ebx
add eax, ecx
cmp ebx, esi
jae 0x481274
mov ecx, dword [edx + 4]
lea edx, [edx + 4]
add eax, eax
cmp eax, ecx
jbe 0x481274
inc ebx
sub eax, ecx
cmp ebx, esi
jb 0x481261
mov edx, dword [ebp - 0x59c]
mov ecx, dword [ebp - 0x5cc]
lea eax, [edx + ebx]
cmp eax, ecx
jbe 0x48128f
cmp edx, ecx
jge 0x48128f
mov ebx, ecx
sub ebx, edx
mov ecx, ebx
lea esi, [edx + ebx]
mov eax, 1
mov dword [ebp + edi - 0xcc], esi
shl eax, cl
mov dword [ebp - 0x5c4], eax
push 1
lea eax, [eax*8 + 8]
push eax
call fcn.004b6706
mov ecx, dword [ebp - 0x5d0]
add esp, 8
mov edx, dword [ebp - 0x5d4]
lea edi, [eax + 8]
add eax, 4
mov dword [ebp - 0x5d0], eax
mov eax, dword [ebp - 0x598]
mov dword [ebp - 0x5d8], edi
mov dword [ecx], edi
mov dword [ebp + edx - 0x110], edi
test eax, eax
je 0x481359
mov eax, dword [ebp - 0x5a8]
add bl, 0x10
mov ecx, dword [ebp - 0x59c]
mov dword [ebp + edx - 0x8c], eax
mov al, cl
sub al, byte [ebp + edx - 0xd4]
mov edx, 1
shl edx, cl
mov byte [ebp - 0x5bb], al
dec edx
mov eax, dword [ebp - 0x5d4]
mov byte [ebp - 0x5bc], bl
mov ebx, dword [ebp - 0x5a8]
and edx, ebx
mov dword [ebp - 0x5a4], edi
mov ecx, dword [ebp + eax - 0xd4]
mov eax, dword [ebp + eax - 0x114]
shr edx, cl
mov ecx, dword [ebp - 0x5bc]
mov dword [eax + edx*8], ecx
mov ecx, edi
mov dword [eax + edx*8 + 4], ecx
mov eax, dword [ebp - 0x598]
jmp 0x48135f
mov ebx, dword [ebp - 0x5a8]
mov ecx, dword [ebp - 0x5a0]
cmp ecx, esi
jg 0x481200
mov edx, dword [ebp - 0x59c]
mov esi, dword [ebp - 0x5c0]
sub cl, dl
mov byte [ebp - 0x5bb], cl
mov ecx, dword [esi]
cmp ecx, 0xffffffff
jne 0x481391
mov byte [ebp - 0x5bc], 0x63
jmp 0x4813d9
mov eax, dword [ebp + 0x10]
add esi, 4
mov dword [ebp - 0x5c0], esi
cmp ecx, eax
jae 0x4813b7
cmp ecx, 0x100
setb al
add al, 0xf
mov byte [ebp - 0x5bc], al
movzx eax, cx
jmp 0x4813d3
sub ecx, eax
mov dword [ebp - 0x5c0], esi
mov eax, dword [ebp + 0x14]
mov al, byte [ecx + eax + 0x3e]
mov byte [ebp - 0x5bc], al
mov eax, dword [ebp + 0x14]
movzx eax, word [eax + ecx*2]
mov dword [ebp - 0x5a4], eax
mov ecx, dword [ebp - 0x5a0]
mov esi, 1
sub ecx, edx
mov eax, ebx
shl esi, cl
mov ecx, edx
shr eax, cl
cmp eax, dword [ebp - 0x5c4]
jae 0x48141f
mov ecx, dword [ebp - 0x5bc]
mov edx, dword [ebp - 0x5a4]
mov dword [edi + eax*8], ecx
mov dword [edi + eax*8 + 4], edx
add eax, esi
cmp eax, dword [ebp - 0x5c4]
jb 0x481402
mov edx, dword [ebp - 0x59c]
mov ebx, dword [ebp - 0x5a8]
mov eax, dword [ebp - 0x5c8]
test ebx, eax
je 0x481438
nop dword [eax]
xor ebx, eax
shr eax, 1
test ebx, eax
jne 0x481430
mov esi, dword [ebp - 0x598]
xor ebx, eax
mov eax, 1
shl esi, 2
mov ecx, edx
mov dword [ebp - 0x5a8], ebx
shl eax, cl
dec eax
and eax, ebx
cmp eax, dword [ebp + esi - 0x8c]
je 0x4814a6
mov edi, dword [ebp - 0x598]
nop dword [eax]
nop dword [eax + eax]
dec edi
mov eax, 1
lea esi, [edi*4]
mov edx, dword [ebp + esi - 0xd0]
mov ecx, edx
shl eax, cl
dec eax
mov dword [ebp - 0x59c], edx
and eax, ebx
cmp eax, dword [ebp + esi - 0x8c]
jne 0x481470
mov dword [ebp - 0x598], edi
mov edi, dword [ebp - 0x5d8]
mov ecx, dword [ebp - 0x5ac]
mov eax, dword [ebp - 0x598]
test ecx, ecx
jne 0x4811e0
mov ecx, dword [ebp - 0x5a0]
mov esi, dword [ebp - 0x5b0]
inc ecx
add esi, 4
mov dword [ebp - 0x5a0], ecx
mov dword [ebp - 0x5b0], esi
cmp ecx, dword [ebp - 0x5b4]
jle 0x4811a6
mov ecx, dword [ebp - 0x5dc]
mov esi, dword [ebp - 0x5b4]
cmp dword [ebp - 0x5e8], 0
mov edx, dword [ebp - 0x5e0]
mov eax, dword [ebp - 0xcc]
mov dword [edx], eax
je 0x48150d
cmp esi, 1
je 0x48150d
or ecx, 1
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8b60
mov esp, ebp
pop ebp
ret