Function at 0x485295
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 0x2c]
push edi
push dword [esi + 4]
call fcn.00443a6c
mov eax, dword [esi]
mov ebx, dword [eax + 8]
mov edi, dword [eax]
shl ebx, 4
add ebx, dword [eax]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], edi
cmp edi, ebx
je 0x485cc3
mov eax, ebx
mov esi, dword [edi + 8]
mov ebx, dword [edi + 4]
add esi, dword [edi]
mov edi, dword [edi + 0xc]
add edi, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], edi
cmp dword [esp + 0x48], ebx
jle 0x485cb0
cmp dword [esp + 0x40], edi
jge 0x485cb0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x4c]
cmp edx, dword [ecx]
jle 0x485cb0
cmp dword [esp + 0x44], esi
jge 0x485cb0
lea ecx, [esp + 0x30]
call fcn.00443bd3
test al, al
je 0x4855d9
cmp dword [esp + 0x50], 0
je 0x485409
cmp dword [esp + 0x40], ebx
jl 0x485409
mov esi, dword [ebp + 8]
mov edx, dword [esi]
mov ecx, dword [edx + 8]
imul ecx, dword [esp + 0x40]
mov eax, dword [edx]
add eax, ecx
mov ecx, pe_nt_image_headers32
mov dword [esi + 4], eax
mov ebx, dword [edx + 0xc]
mov edx, dword [esi + 8]
mov edi, edx
imul ebx, dword [esp + 0x30]
shr edi, 8
add ebx, eax
mov eax, 0xff00ff
and edi, eax
imul edi, dword [esp + 0x50]
mov esi, dword [ebx]
shr edi, 8
and edi, eax
mov eax, edi
shr eax, 0x10
sub ecx, eax
mov eax, esi
shr eax, 8
and eax, 0xff00ff
imul eax, ecx
shr eax, 8
and eax, 0xff00ff
add edi, eax
mov eax, 0xff00ff
and edx, eax
and esi, eax
imul edx, dword [esp + 0x50]
imul esi, ecx
shr edx, 8
and edx, eax
shr esi, 8
and esi, eax
mov eax, edi
shr eax, 8
add esi, edx
and eax, 0xff00ff
mov edx, pe_nt_image_headers32
sub edx, eax
mov ecx, esi
mov eax, edi
shr ecx, 8
shl eax, 8
and ecx, 0xff00ff
shl edx, 8
or edx, eax
mov eax, pe_nt_image_headers32
sub eax, ecx
mov ecx, pe_nt_image_headers32
or eax, esi
mov esi, 0xff00ff
xor edx, eax
mov eax, edi
shr eax, 8
and edx, esi
and eax, esi
shl edi, 8
sub ecx, eax
shl ecx, 8
or ecx, edi
mov edi, dword [esp + 0x20]
xor edx, ecx
mov dword [ebx], edx
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
cmp edi, eax
cmovl eax, edi
cmp ebx, dword [esp + 0x34]
mov dword [esp + 0x28], eax
cmovl ebx, dword [esp + 0x34]
mov dword [esp + 0x14], ebx
cmp ebx, eax
jge 0x4854f3
mov esi, dword [ebp + 8]
mov edx, dword [esi]
mov ecx, dword [edx + 8]
mov eax, dword [edx]
imul ecx, ebx
add eax, ecx
mov ecx, pe_nt_image_headers32
mov dword [esi + 4], eax
mov ebx, dword [edx + 0xc]
imul ebx, dword [esp + 0x30]
mov edx, dword [esi + 8]
add ebx, eax
movzx eax, byte [esi + 0xb]
sub ecx, eax
mov eax, 0xff00ff
mov edi, dword [ebx]
mov esi, edi
and esi, eax
shr edi, 8
imul esi, ecx
shr esi, 8
and esi, eax
mov eax, edx
and eax, 0xff00ff
shr edx, 8
add esi, eax
mov eax, 0xff00ff
and edi, eax
and edx, eax
imul edi, ecx
mov ecx, esi
shr ecx, 8
and ecx, 0xff00ff
shr edi, 8
and edi, eax
add edi, edx
mov edx, pe_nt_image_headers32
mov eax, edi
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, edi
shl eax, 8
shl edx, 8
or edx, eax
mov eax, pe_nt_image_headers32
sub eax, ecx
mov ecx, 0xff00ff
or eax, esi
xor edx, eax
mov eax, edi
and edx, ecx
shr eax, 8
and eax, ecx
shl edi, 8
mov ecx, pe_nt_image_headers32
sub ecx, eax
shl ecx, 8
or ecx, edi
xor edx, ecx
mov dword [ebx], edx
mov ebx, dword [esp + 0x14]
inc ebx
mov dword [esp + 0x14], ebx
cmp ebx, dword [esp + 0x28]
jl 0x48542b
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x58]
test edx, edx
je 0x485cac
cmp dword [esp + 0x3c], edi
jge 0x485cac
mov esi, dword [ebp + 8]
mov edx, dword [esi]
mov ecx, dword [edx + 8]
imul ecx, dword [esp + 0x3c]
mov eax, dword [edx]
add eax, ecx
mov ecx, pe_nt_image_headers32
mov dword [esi + 4], eax
mov ebx, dword [edx + 0xc]
mov edx, dword [esi + 8]
mov edi, edx
imul ebx, dword [esp + 0x30]
shr edi, 8
add ebx, eax
mov eax, 0xff00ff
and edi, eax
imul edi, dword [esp + 0x58]
mov esi, dword [ebx]
shr edi, 8
and edi, eax
mov eax, edi
shr eax, 0x10
sub ecx, eax
mov eax, esi
shr eax, 8
and eax, 0xff00ff
imul eax, ecx
shr eax, 8
and eax, 0xff00ff
add edi, eax
mov eax, 0xff00ff
and edx, eax
and esi, eax
imul edx, dword [esp + 0x58]
imul esi, ecx
shr edx, 8
and edx, eax
shr esi, 8
and esi, eax
mov eax, edi
shr eax, 8
add esi, edx
and eax, 0xff00ff
mov edx, pe_nt_image_headers32
sub edx, eax
mov ecx, esi
shr ecx, 8
mov eax, edi
shl eax, 8
and ecx, 0xff00ff
shl edx, 8
or edx, eax
mov eax, pe_nt_image_headers32
sub eax, ecx
mov ecx, 0xff00ff
or eax, esi
xor edx, eax
mov eax, edi
and edx, ecx
shr eax, 8
and eax, ecx
shl edi, 8
mov ecx, pe_nt_image_headers32
sub ecx, eax
shl ecx, 8
or ecx, edi
xor edx, ecx
mov dword [ebx], edx
jmp 0x485cac
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x30]
mov ecx, edx
mov edi, dword [esp + 0x38]
cmp edx, dword [eax]
cmovl ecx, dword [eax]
cmp esi, edi
mov dword [esp + 0x28], ecx
cmovl edi, esi
sub edi, ecx
cmp dword [esp + 0x54], 0
mov dword [esp + 0x1c], edi
je 0x48560f
mov ecx, dword [esp + 0x44]
mov byte [esp + 0x12], 1
cmp ecx, dword [eax]
jge 0x485614
mov byte [esp + 0x12], 0
cmp dword [esp + 0x5c], 0
je 0x485626
mov byte [esp + 0x13], 1
cmp dword [esp + 0x38], esi
jl 0x48562b
mov byte [esp + 0x13], 0
cmp dword [esp + 0x50], 0
mov esi, dword [ebp + 8]
je 0x485866
cmp dword [esp + 0x40], ebx
jl 0x485866
mov edx, dword [esi]
mov ecx, dword [edx + 8]
imul ecx, dword [esp + 0x40]
mov eax, dword [edx]
add eax, ecx
cmp byte [esp + 0x12], 0
mov dword [esi + 4], eax
je 0x485726
mov esi, dword [edx + 0xc]
mov ecx, pe_nt_image_headers32
imul esi, dword [esp + 0x44]
mov edx, dword [ebp + 8]
mov edi, dword [esp + 0x54]
imul edi, dword [esp + 0x50]
mov edx, dword [edx + 8]
add esi, eax
mov ebx, edx
mov dword [esp + 0x2c], esi
shr ebx, 8
mov eax, 0xff00ff
and ebx, eax
sar edi, 8
mov esi, dword [esi]
imul ebx, edi
shr ebx, 8
and ebx, eax
mov eax, ebx
shr eax, 0x10
sub ecx, eax
mov eax, esi
shr eax, 8
and eax, 0xff00ff
imul eax, ecx
shr eax, 8
and eax, 0xff00ff
add ebx, eax
mov eax, 0xff00ff
and edx, eax
and esi, eax
imul esi, ecx
imul edx, edi
mov edi, eax
shr esi, 8
and esi, eax
shr edx, 8
and edx, edi
mov eax, ebx
shr eax, 8
add esi, edx
and eax, edi
mov edx, pe_nt_image_headers32
sub edx, eax
mov ecx, esi
shr ecx, 8
mov eax, ebx
shl eax, 8
and ecx, edi
shl edx, 8
or edx, eax
mov eax, pe_nt_image_headers32
sub eax, ecx
mov ecx, pe_nt_image_headers32
or eax, esi
mov esi, dword [ebp + 8]
xor edx, eax
mov eax, ebx
shr eax, 8
and edx, edi
and eax, edi
shl ebx, 8
mov edi, dword [esp + 0x1c]
sub ecx, eax
mov eax, dword [esp + 0x2c]
shl ecx, 8
or ecx, ebx
xor edx, ecx
mov dword [eax], edx
test edi, edi
jle 0x48578f
mov eax, dword [esi + 8]
mov ebx, 0xff00ff
mov esi, dword [esp + 0x50]
mov ecx, eax
mov edx, eax
and ecx, ebx
shr edx, 8
inc esi
imul ecx, esi
and edx, 0xffff00ff
imul edx, esi
shr eax, 8
and eax, ebx
imul eax, esi
mov esi, dword [ebp + 8]
shr ecx, 8
xor ecx, edx
and ecx, ebx
xor ecx, eax
mov eax, dword [esi]
mov ebx, dword [eax + 0xc]
mov edx, ebx
imul edx, dword [esp + 0x28]
mov eax, ecx
shr eax, 0x18
add edx, dword [esi + 4]
cmp al, 0xff
jb 0x485785
mov eax, edi
mov dword [edx], ecx
add edx, ebx
dec eax
test eax, eax
jg 0x48577a
jmp 0x48578f
push edi
push ecx
push edx
mov ecx, esi
call fcn.0048e47b
cmp byte [esp + 0x13], 0
je 0x485866
mov ecx, dword [ebp + 8]
mov esi, dword [esp + 0x5c]
imul esi, dword [esp + 0x50]
mov eax, dword [ecx]
mov edi, dword [ecx + 8]
mov ebx, edi
shr ebx, 8
and edi, 0xff00ff
sar esi, 8
mov edx, dword [eax + 0xc]
mov eax, 0xff00ff
imul edx, dword [esp + 0x38]
and ebx, eax
imul ebx, esi
imul edi, esi
mov esi, 0xff00ff
add edx, dword [ecx + 4]
mov ecx, pe_nt_image_headers32
mov dword [esp + 0x2c], edx
shr ebx, 8
and ebx, eax
shr edi, 8
mov edx, dword [edx]
mov eax, ebx
shr eax, 0x10
and edi, esi
sub ecx, eax
mov eax, edx
shr eax, 8
and edx, esi
and eax, 0xff00ff
imul edx, ecx
imul eax, ecx
shr edx, 8
shr eax, 8
and edx, esi
and eax, 0xff00ff
add edi, edx
add ebx, eax
mov edx, pe_nt_image_headers32
mov eax, ebx
mov ecx, edi
shr eax, 8
and eax, esi
shr ecx, 8
sub edx, eax
and ecx, esi
shl edx, 8
mov eax, ebx
shl eax, 8
or edx, eax
mov eax, pe_nt_image_headers32
sub eax, ecx
mov ecx, pe_nt_image_headers32
or eax, edi
mov edi, dword [esp + 0x1c]
xor edx, eax
mov eax, ebx
shr eax, 8
and edx, esi
and eax, esi
shl ebx, 8
mov esi, dword [ebp + 8]
sub ecx, eax
mov eax, dword [esp + 0x2c]
shl ecx, 8
or ecx, ebx
xor edx, ecx
mov dword [eax], edx
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x20]
cmp ecx, edx
mov eax, dword [esp + 0x14]
cmovl edx, ecx
cmp eax, dword [esp + 0x34]
mov dword [esp + 0x2c], edx
cmovl eax, dword [esp + 0x34]
mov dword [esp + 0x14], eax
cmp eax, edx
jge 0x485a80
mov ebx, dword [esi]
mov ecx, dword [ebx + 8]
imul ecx, eax
mov eax, dword [ebx]
add eax, ecx
cmp byte [esp + 0x12], 0
mov dword [esi + 4], eax
je 0x485968
mov ebx, dword [ebx + 0xc]
mov ecx, pe_nt_image_headers32
mov esi, dword [esi + 8]
mov edi, esi
imul ebx, dword [esp + 0x44]
shr edi, 8
add ebx, eax
mov eax, 0xff00ff
and edi, eax
imul edi, dword [esp + 0x54]
mov edx, dword [ebx]
shr edi, 8
and edi, eax
mov eax, edi
shr eax, 0x10
sub ecx, eax
mov eax, edx
shr eax, 8
and eax, 0xff00ff
imul eax, ecx
shr eax, 8
and eax, 0xff00ff
add edi, eax
mov eax, 0xff00ff
and edx, eax
and esi, eax
imul esi, dword [esp + 0x54]
imul edx, ecx
shr esi, 8
and esi, eax
shr edx, 8
and edx, eax
mov eax, edi
shr eax, 8
add esi, edx
and eax, 0xff00ff
mov edx, pe_nt_image_headers32
sub edx, eax
mov ecx, esi
shr ecx, 8
mov eax, edi
shl eax, 8
and ecx, 0xff00ff
shl edx, 8
or edx, eax
mov eax, pe_nt_image_headers32
sub eax, ecx
mov ecx, 0xff00ff
or eax, esi
mov esi, dword [ebp + 8]
xor edx, eax
mov eax, edi
and edx, ecx
shr eax, 8
and eax, ecx
shl edi, 8
mov ecx, pe_nt_image_headers32
sub ecx, eax
shl ecx, 8
or ecx, edi
mov edi, dword [esp + 0x1c]
xor edx, ecx
mov dword [ebx], edx
test edi, edi
jle 0x48599d
mov eax, dword [esi]
mov ebx, dword [eax + 0xc]
mov ecx, ebx
imul ecx, dword [esp + 0x28]
add ecx, dword [esi + 4]
cmp byte [esi + 0xb], 0xff
jb 0x485991
mov eax, dword [esi + 8]
mov edx, edi
mov dword [ecx], eax
add ecx, ebx
dec edx
test edx, edx
jg 0x485986
jmp 0x48599d
push edi
push dword [esi + 8]
push ecx
mov ecx, esi
call fcn.0048e47b
cmp byte [esp + 0x13], 0
je 0x485a66
mov eax, dword [esi]
mov ecx, pe_nt_image_headers32
mov ebx, dword [eax + 0xc]
mov eax, 0xff00ff
imul ebx, dword [esp + 0x38]
add ebx, dword [esi + 4]
mov esi, dword [esi + 8]
mov edi, esi
shr edi, 8
and edi, eax
imul edi, dword [esp + 0x5c]
mov edx, dword [ebx]
shr edi, 8
and edi, eax
mov eax, edi
shr eax, 0x10
sub ecx, eax
mov eax, edx
shr eax, 8
and eax, 0xff00ff
imul eax, ecx
shr eax, 8
and eax, 0xff00ff
add edi, eax
mov eax, 0xff00ff
and edx, eax
and esi, eax
imul esi, dword [esp + 0x5c]
imul edx, ecx
shr esi, 8
and esi, eax
shr edx, 8
and edx, eax
mov eax, edi
shr eax, 8
add esi, edx
and eax, 0xff00ff
mov edx, pe_nt_image_headers32
sub edx, eax
mov ecx, esi
shr ecx, 8
mov eax, edi
shl eax, 8
and ecx, 0xff00ff
shl edx, 8
or edx, eax
mov eax, pe_nt_image_headers32
sub eax, ecx
mov ecx, 0xff00ff
or eax, esi
xor edx, eax
mov eax, edi
and edx, ecx
shr eax, 8
and eax, ecx
shl edi, 8
mov ecx, pe_nt_image_headers32
sub ecx, eax
shl ecx, 8
or ecx, edi
mov edi, dword [esp + 0x1c]
xor edx, ecx
mov dword [ebx], edx
mov eax, dword [esp + 0x14]
mov esi, dword [ebp + 8]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x2c]
jl 0x485890
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x58]
test edx, edx
je 0x485cac
cmp dword [esp + 0x3c], ecx
jge 0x485cac
mov ebx, dword [ebp + 8]
mov esi, dword [ebx]
mov ecx, dword [esi + 8]
imul ecx, dword [esp + 0x3c]
mov eax, dword [esi]
add eax, ecx
cmp byte [esp + 0x12], 0
mov dword [ebx + 4], eax
je 0x485b77
mov esi, dword [esi + 0xc]
mov ecx, pe_nt_image_headers32
imul esi, dword [esp + 0x44]
mov edi, dword [esp + 0x54]
imul edi, edx
mov edx, dword [ebx + 8]
mov ebx, edx
shr ebx, 8
add esi, eax
mov eax, 0xff00ff
and ebx, eax
mov dword [esp + 0x2c], esi
sar edi, 8
imul ebx, edi
mov esi, dword [esi]
shr ebx, 8
and ebx, eax
mov eax, ebx
shr eax, 0x10
sub ecx, eax
mov eax, esi
shr eax, 8
and eax, 0xff00ff
imul eax, ecx
shr eax, 8
and eax, 0xff00ff
add ebx, eax
mov eax, 0xff00ff
and edx, eax
and esi, eax
imul esi, ecx
imul edx, edi
mov edi, eax
shr esi, 8
and esi, eax
shr edx, 8
and edx, edi
mov eax, ebx
shr eax, 8
add esi, edx
and eax, edi
mov edx, pe_nt_image_headers32
sub edx, eax
mov ecx, esi
shl edx, 8
mov eax, ebx
shl eax, 8
or edx, eax
shr ecx, 8
and ecx, edi
mov eax, pe_nt_image_headers32
sub eax, ecx
mov ecx, pe_nt_image_headers32
or eax, esi
xor edx, eax
mov eax, ebx
shr eax, 8
and edx, edi
and eax, edi
shl ebx, 8
sub ecx, eax
mov eax, dword [esp + 0x2c]
shl ecx, 8
or ecx, ebx
mov ebx, dword [ebp + 8]
xor edx, ecx
mov dword [eax], edx
mov edx, dword [esp + 0x58]
mov edi, dword [esp + 0x1c]
test edi, edi
jle 0x485be1
mov eax, dword [ebx + 8]
lea esi, [edx + 1]
mov ecx, eax
mov edx, eax
shr edx, 8
and ecx, 0xff00ff
imul ecx, esi
and edx, 0xffff00ff
imul edx, esi
shr eax, 8
shr ecx, 8
xor ecx, edx
mov edx, 0xff00ff
and eax, edx
and ecx, edx
imul eax, esi
xor ecx, eax
mov eax, dword [ebx]
mov esi, dword [eax + 0xc]
mov edx, esi
imul edx, dword [esp + 0x28]
mov eax, ecx
shr eax, 0x18
add edx, dword [ebx + 4]
cmp al, 0xff
jb 0x485bd7
mov dword [edx], ecx
add edx, esi
dec edi
test edi, edi
jg 0x485bcc
jmp 0x485be1
push edi
push ecx
push edx
mov ecx, ebx
call fcn.0048e47b
cmp byte [esp + 0x13], 0
je 0x485cac
mov eax, dword [ebx]
mov ecx, pe_nt_image_headers32
mov edx, dword [ebx + 8]
mov edi, dword [esp + 0x5c]
imul edi, dword [esp + 0x58]
mov esi, dword [eax + 0xc]
mov eax, 0xff00ff
imul esi, dword [esp + 0x38]
sar edi, 8
add esi, dword [ebx + 4]
mov ebx, edx
shr ebx, 8
and ebx, eax
mov dword [esp + 0x2c], esi
imul ebx, edi
mov esi, dword [esi]
shr ebx, 8
and ebx, eax
mov eax, ebx
shr eax, 0x10
sub ecx, eax
mov eax, esi
shr eax, 8
and eax, 0xff00ff
imul eax, ecx
shr eax, 8
and eax, 0xff00ff
add ebx, eax
mov eax, 0xff00ff
and edx, eax
and esi, eax
imul esi, ecx
imul edx, edi
mov edi, eax
shr esi, 8
and esi, eax
shr edx, 8
and edx, edi
mov eax, ebx
shr eax, 8
add esi, edx
and eax, edi
mov edx, pe_nt_image_headers32
sub edx, eax
mov ecx, esi
shr ecx, 8
mov eax, ebx
shl eax, 8
and ecx, edi
shl edx, 8
or edx, eax
mov eax, pe_nt_image_headers32
sub eax, ecx
mov ecx, pe_nt_image_headers32
or eax, esi
xor edx, eax
mov eax, ebx
shr eax, 8
and edx, edi
and eax, edi
shl ebx, 8
sub ecx, eax
mov eax, dword [esp + 0x2c]
shl ecx, 8
or ecx, ebx
xor edx, ecx
mov dword [eax], edx
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
add edi, 0x10
mov dword [esp + 0x24], edi
cmp edi, eax
jne 0x4852cd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4