Function at 0x442800
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, ecx
push edi
xor edi, edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edi
mov ecx, dword [eax]
cmp dword [eax + 0x10], edi
jle 0x442dd1
push ebx
push esi
nop
mov eax, dword [eax + 0x18]
mov esi, ecx
lea ecx, [ecx + eax*4]
mov eax, dword [esi]
dec eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x24], eax
test eax, eax
jle 0x442db5
mov eax, dword [esi + 4]
add esi, 4
mov dword [ebp - 0x38], eax
xor ebx, ebx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], ebx
mov edx, dword [eax + 8]
add edx, edi
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x48]
mov dword [edi + 0x60], edx
mov eax, dword [ecx + 0xc]
imul eax, edx
add eax, dword [ecx]
sub dword [ebp - 0x24], 1
mov ecx, dword [ebp - 0x38]
mov dword [edi + 0x64], eax
js 0x442c5a
mov eax, dword [esi + 4]
add esi, 8
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x40], esi
mov eax, dword [esi]
mov dword [ebp - 0x38], eax
cdq
and edx, 0xff
lea esi, [edx + eax]
mov eax, ecx
cdq
and edx, 0xff
sar esi, 8
lea ebx, [edx + eax]
sar ebx, 8
mov dword [ebp - 0x18], ebx
cmp esi, ebx
jne 0x4428b9
mov edx, dword [ebp - 0x38]
mov eax, edx
mov ebx, dword [ebp - 0x20]
sub eax, ecx
imul eax, dword [ebp - 0x1c]
add ebx, eax
jmp 0x442c48
movzx eax, cl
mov ecx, 0x100
sub ecx, eax
imul ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x20]
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
sar eax, 8
mov dword [ebp - 0x34], eax
test eax, eax
jle 0x442aaf
mov ecx, edi
push 1
push ebx
cmp eax, 0xff
jl 0x4429c4
lea eax, [ebp - 4]
push eax
call fcn.004522f0
mov eax, dword [edi + 0x48]
mov edx, 0x100
mov ecx, dword [edi + 0x50]
mov ebx, dword [eax + 0x10]
imul ebx, dword [ebp - 0x18]
movzx eax, byte [ebp - 3]
or eax, 0xff0000
imul eax, ecx
add ebx, dword [edi + 0x64]
mov dword [ebp - 0x34], ebx
shr eax, 8
mov edi, dword [ebx]
and eax, 0xff00ff
movzx ebx, byte [ebp - 2]
mov dword [ebp - 0x20], eax
shr eax, 0x10
sub edx, eax
shl ebx, 0x10
movzx eax, byte [ebp - 4]
or ebx, eax
mov eax, edi
and eax, 0xff00ff
shr edi, 8
imul eax, edx
and edi, 0xff00ff
imul edi, edx
mov edx, 0x100
imul ebx, ecx
shr eax, 8
and eax, 0xff00ff
shr edi, 8
shr ebx, 8
and edi, 0xff00ff
add dword [ebp - 0x20], edi
and ebx, 0xff00ff
mov edi, dword [ebp - 0x20]
add ebx, eax
mov eax, edi
mov ecx, ebx
shr eax, 8
and eax, 0xff00ff
shr ecx, 8
sub edx, eax
and ecx, 0xff00ff
shl edx, 8
mov eax, edi
shl eax, 8
or edx, eax
mov eax, 0x100
sub eax, ecx
mov ecx, 0x100
or eax, ebx
xor edx, eax
mov eax, edi
shr eax, 8
and eax, 0xff00ff
sub ecx, eax
mov eax, dword [ebp - 0x34]
jmp 0x442a97
lea eax, [ebp - 8]
push eax
call fcn.004522f0
mov eax, dword [edi + 0x48]
mov edx, 0x100
mov ecx, dword [edi + 0x50]
imul ecx, dword [ebp - 0x34]
mov ebx, dword [eax + 0x10]
imul ebx, dword [ebp - 0x18]
movzx eax, byte [ebp - 7]
or eax, 0xff0000
shr ecx, 8
imul eax, ecx
add ebx, dword [edi + 0x64]
mov dword [ebp - 0x30], ebx
shr eax, 8
mov edi, dword [ebx]
and eax, 0xff00ff
movzx ebx, byte [ebp - 6]
mov dword [ebp - 0x20], eax
shr eax, 0x10
sub edx, eax
shl ebx, 0x10
movzx eax, byte [ebp - 8]
or ebx, eax
mov eax, edi
and eax, 0xff00ff
shr edi, 8
imul eax, edx
and edi, 0xff00ff
imul edi, edx
mov edx, 0x100
imul ebx, ecx
shr eax, 8
and eax, 0xff00ff
shr edi, 8
shr ebx, 8
and edi, 0xff00ff
add dword [ebp - 0x20], edi
and ebx, 0xff00ff
mov edi, dword [ebp - 0x20]
add ebx, eax
mov eax, edi
mov ecx, ebx
shr eax, 8
and eax, 0xff00ff
shr ecx, 8
sub edx, eax
and ecx, 0xff00ff
shl edx, 8
mov eax, edi
shl eax, 8
or edx, eax
mov eax, 0x100
sub eax, ecx
mov ecx, 0x100
or eax, ebx
xor edx, eax
mov eax, edi
shr eax, 8
and eax, 0xff00ff
sub ecx, eax
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x18]
and edx, 0xff00ff
shl edi, 8
shl ecx, 8
or ecx, edi
mov edi, dword [ebp + 8]
xor edx, ecx
mov dword [eax], edx
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
jle 0x442c3c
inc ebx
sub esi, ebx
mov dword [ebp - 0x18], ebx
test esi, esi
jle 0x442c3c
cmp esi, dword [edi + 0x6c]
jle 0x442ae7
mov dword [edi + 0x6c], esi
push dword [edi + 0x68]
call fcn.004c2bdc
lea eax, [esi + esi*2]
push eax
call fcn.004c2f64
add esp, 8
mov dword [edi + 0x68], eax
mov edi, dword [edi + 0x68]
mov ecx, dword [ebp + 8]
push esi
push ebx
push edi
call fcn.004522f0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x48]
mov edx, dword [ecx + 0x50]
imul edx, dword [ebp - 0x1c]
mov eax, dword [eax + 0x10]
mov ebx, eax
imul ebx, dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
sar edx, 8
mov dword [ebp - 0x30], edx
add ebx, dword [ecx + 0x64]
mov dword [ebp - 0x18], ebx
cmp edx, 0xfe
jge 0x442c07
mov ecx, edi
dec esi
add edi, 3
mov dword [ebp - 0x3c], edi
mov edi, dword [ebx]
movzx eax, byte [ecx + 1]
movzx ebx, byte [ecx + 2]
or eax, 0xff0000
imul eax, edx
mov edx, 0x100
shl ebx, 0x10
shr eax, 8
and eax, 0xff00ff
mov dword [ebp - 0x20], eax
shr eax, 0x10
sub edx, eax
movzx eax, byte [ecx]
or ebx, eax
mov eax, edi
imul ebx, dword [ebp - 0x30]
and eax, 0xff00ff
imul eax, edx
shr edi, 8
and edi, 0xff00ff
imul edi, edx
mov edx, 0x100
shr ebx, 8
shr eax, 8
and ebx, 0xff00ff
and eax, 0xff00ff
add ebx, eax
shr edi, 8
mov ecx, ebx
and edi, 0xff00ff
shr ecx, 8
add dword [ebp - 0x20], edi
and ecx, 0xff00ff
mov edi, dword [ebp - 0x20]
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, 0x100
sub eax, ecx
mov ecx, 0x100
or eax, ebx
mov ebx, dword [ebp - 0x18]
xor edx, eax
mov eax, edi
shr eax, 8
and edx, 0xff00ff
and eax, 0xff00ff
shl edi, 8
sub ecx, eax
shl ecx, 8
or ecx, edi
mov edi, dword [ebp - 0x3c]
xor edx, ecx
mov dword [ebx], edx
add ebx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x18], ebx
test esi, esi
jg 0x442b26
jmp 0x442c39
mov ecx, edi
dec esi
add edi, 3
mov ax, word [ecx]
movzx ecx, byte [ecx + 2]
or ecx, 0xffffff00
mov word [ebp - 0x14], ax
movzx eax, byte [ebp - 0x13]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 0x14]
shl ecx, 8
or ecx, eax
mov dword [ebx], ecx
add ebx, dword [ebp - 0x34]
test esi, esi
jg 0x442c07
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x38]
mov edi, dword [ebp + 8]
movzx ebx, dl
imul ebx, ecx
sub dword [ebp - 0x24], 1
mov ecx, edx
mov esi, dword [ebp - 0x40]
mov dword [ebp - 0x20], ebx
jns 0x442870
mov eax, ebx
cdq
and edx, 0xff
lea ebx, [edx + eax]
sar ebx, 8
test ebx, ebx
jle 0x442db5
mov eax, ecx
mov ecx, edi
cdq
and edx, 0xff
add eax, edx
sar eax, 8
mov dword [ebp - 0x38], eax
push 1
push eax
cmp ebx, 0xff
jl 0x442cd4
lea eax, [ebp - 0xc]
push eax
call fcn.004522f0
movzx ebx, byte [ebp - 0xb]
mov edx, 0x100
mov eax, dword [edi + 0x48]
or ebx, 0xff0000
mov ecx, dword [edi + 0x50]
imul ebx, ecx
mov esi, dword [eax + 0x10]
imul esi, dword [ebp - 0x38]
shr ebx, 8
and ebx, 0xff00ff
mov eax, ebx
add esi, dword [edi + 0x64]
movzx edi, byte [ebp - 0xa]
shr eax, 0x10
sub edx, eax
movzx eax, byte [ebp - 0xc]
jmp 0x442d1d
lea eax, [ebp - 0x10]
push eax
call fcn.004522f0
mov ecx, dword [edi + 0x50]
mov edx, 0x100
mov eax, dword [edi + 0x48]
imul ecx, ebx
movzx ebx, byte [ebp - 0xf]
or ebx, 0xff0000
mov esi, dword [eax + 0x10]
imul esi, dword [ebp - 0x38]
shr ecx, 8
imul ebx, ecx
add esi, dword [edi + 0x64]
movzx edi, byte [ebp - 0xe]
shr ebx, 8
and ebx, 0xff00ff
mov eax, ebx
shr eax, 0x10
sub edx, eax
movzx eax, byte [ebp - 0x10]
mov dword [ebp - 0x40], esi
mov esi, dword [esi]
shl edi, 0x10
or edi, eax
mov eax, esi
and eax, 0xff00ff
imul edi, ecx
imul eax, edx
shr esi, 8
and esi, 0xff00ff
imul esi, edx
mov edx, 0x100
shr edi, 8
shr eax, 8
and edi, 0xff00ff
and eax, 0xff00ff
add edi, eax
shr esi, 8
mov ecx, edi
and esi, 0xff00ff
shr ecx, 8
add ebx, esi
and ecx, 0xff00ff
mov eax, ebx
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, ebx
shl eax, 8
shl edx, 8
or edx, eax
mov eax, 0x100
sub eax, ecx
mov ecx, 0x100
or eax, edi
xor edx, eax
mov eax, ebx
shr eax, 8
and edx, 0xff00ff
and eax, 0xff00ff
shl ebx, 8
sub ecx, eax
mov eax, dword [ebp - 0x40]
shl ecx, 8
or ecx, ebx
xor edx, ecx
mov dword [eax], edx
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
mov edi, eax
cmp eax, dword [ecx + 0x10]
mov eax, ecx
mov ecx, dword [ebp - 0x44]
jl 0x442820
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4