Function at 0x43a490
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
mov eax, ecx
push edi
xor edi, edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edi
mov ecx, dword [eax]
cmp dword [eax + 0x10], edi
jle 0x43a98a
push ebx
push ebp
push esi
nop
mov eax, dword [eax + 0x18]
mov ebx, ecx
mov ebp, dword [ebx]
lea ecx, [ecx + eax*4]
dec ebp
mov dword [esp + 0x3c], ecx
test ebp, ebp
jle 0x43a969
mov eax, dword [ebx + 4]
add ebx, 4
mov dword [esp + 0x30], eax
xor esi, esi
mov eax, dword [esp + 0x28]
mov edx, dword [eax + 8]
add edx, edi
mov edi, dword [esp + 0x44]
mov ecx, dword [edi]
mov eax, dword [ecx + 0xc]
imul eax, edx
sub edx, dword [edi + 0x10]
add eax, dword [ecx]
mov ecx, dword [esp + 0x30]
mov dword [edi + 0x14], eax
mov eax, dword [edi + 4]
imul edx, dword [eax + 0xc]
add edx, dword [eax]
sub ebp, 1
mov dword [edi + 0x18], edx
mov dword [esp + 0x34], ebp
js 0x43a852
nop dword [eax]
mov eax, dword [ebx + 4]
add ebx, 8
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], ebx
mov eax, dword [ebx]
mov dword [esp + 0x30], eax
cdq
and edx, 0xff
lea ebx, [edx + eax]
mov eax, ecx
cdq
and edx, 0xff
sar ebx, 8
mov dword [esp + 0x14], ebx
lea ebp, [edx + eax]
sar ebp, 8
mov dword [esp + 0x18], ebp
cmp ebx, ebp
jne 0x43a560
mov edx, dword [esp + 0x30]
mov eax, edx
sub eax, ecx
imul eax, dword [esp + 0x1c]
add esi, eax
jmp 0x43a841
movzx eax, cl
mov ecx, 0x100
sub ecx, eax
imul ecx, dword [esp + 0x1c]
lea eax, [esi + ecx]
cdq
and edx, 0xff
lea ecx, [edx + eax]
sar ecx, 8
test ecx, ecx
jle 0x43a689
mov eax, dword [edi]
mov edx, dword [edi + 0xc]
mov esi, dword [edi + 4]
mov ebx, dword [eax + 0x10]
mov eax, dword [edi + 0x14]
mov edi, dword [edi + 8]
imul ebx, ebp
add ebx, eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x20], ebx
cmp ecx, 0xff
jge 0x43a5b3
imul edi, ecx
sar edi, 8
mov ecx, ebp
sub ecx, edx
mov edx, 0x100
imul ecx, dword [esi + 0x10]
mov esi, dword [ebx]
add ecx, dword [eax + 0x18]
movzx ebp, byte [ecx + 1]
movzx ebx, byte [ecx + 2]
or ebp, 0xff0000
imul ebp, edi
shl ebx, 0x10
shr ebp, 8
and ebp, 0xff00ff
mov eax, ebp
shr eax, 0x10
sub edx, eax
movzx eax, byte [ecx]
or ebx, eax
mov eax, esi
and eax, 0xff00ff
shr esi, 8
imul eax, edx
and esi, 0xff00ff
imul esi, edx
mov edx, 0x100
imul ebx, edi
mov edi, dword [esp + 0x44]
shr eax, 8
and eax, 0xff00ff
shr esi, 8
shr ebx, 8
and esi, 0xff00ff
add ebp, esi
and ebx, 0xff00ff
add ebx, eax
mov eax, ebp
shr eax, 8
mov ecx, ebx
and eax, 0xff00ff
shr ecx, 8
sub edx, eax
and ecx, 0xff00ff
mov eax, ebp
shl edx, 8
shl eax, 8
or edx, eax
mov eax, 0x100
sub eax, ecx
mov ecx, 0x100
or eax, ebx
mov ebx, dword [esp + 0x14]
xor edx, eax
mov eax, ebp
shr eax, 8
and edx, 0xff00ff
and eax, 0xff00ff
shl ebp, 8
sub ecx, eax
mov eax, dword [esp + 0x20]
shl ecx, 8
or ecx, ebp
mov ebp, dword [esp + 0x18]
xor edx, ecx
mov dword [eax], edx
mov esi, dword [esp + 0x1c]
test esi, esi
jle 0x43a831
inc ebp
sub ebx, ebp
mov dword [esp + 0x14], ebx
test ebx, ebx
jle 0x43a831
mov edx, dword [edi]
mov ecx, dword [edi + 8]
imul ecx, esi
mov eax, dword [edx + 0x10]
mov dword [esp + 0x2c], eax
imul eax, ebp
sub ebp, dword [edi + 0xc]
sar ecx, 8
mov dword [esp + 0x20], ecx
add eax, dword [edi + 0x14]
cmp ecx, 0xfe
jge 0x43a7c5
nop
mov ecx, dword [edi + 4]
mov edx, ebp
inc ebp
mov dword [esp + 0x18], ebp
mov esi, dword [ecx + 0x10]
imul esi, edx
mov edx, 0x100
add esi, dword [edi + 0x18]
mov edi, dword [eax]
movzx ebp, byte [esi + 1]
movzx ebx, byte [esi + 2]
or ebp, 0xff0000
imul ebp, dword [esp + 0x20]
shl ebx, 0x10
shr ebp, 8
and ebp, 0xff00ff
mov ecx, ebp
shr ecx, 0x10
sub edx, ecx
movzx ecx, byte [esi]
or ebx, ecx
mov esi, 0x100
imul ebx, dword [esp + 0x20]
mov ecx, edi
and ecx, 0xff00ff
shr edi, 8
imul ecx, edx
and edi, 0xff00ff
imul edi, edx
shr ebx, 8
and ebx, 0xff00ff
shr ecx, 8
and ecx, 0xff00ff
shr edi, 8
add ebx, ecx
and edi, 0xff00ff
add ebp, edi
mov edx, ebx
mov ecx, ebp
mov edi, dword [esp + 0x44]
shr ecx, 8
and ecx, 0xff00ff
shr edx, 8
sub esi, ecx
and edx, 0xff00ff
shl esi, 8
mov ecx, ebp
shl ecx, 8
or esi, ecx
mov ecx, 0x100
sub ecx, edx
mov edx, 0x100
or ecx, ebx
xor esi, ecx
mov ecx, ebp
shr ecx, 8
and esi, 0xff00ff
and ecx, 0xff00ff
shl ebp, 8
sub edx, ecx
mov ecx, dword [esp + 0x14]
shl edx, 8
dec ecx
or edx, ebp
mov dword [esp + 0x14], ecx
mov ebp, dword [esp + 0x18]
xor esi, edx
mov dword [eax], esi
add eax, dword [esp + 0x2c]
test ecx, ecx
jg 0x43a6d0
jmp 0x43a831
mov ecx, dword [edi + 4]
mov esi, dword [ecx + 0x10]
mov dword [esp + 0x20], esi
imul esi, ebp
mov ebp, dword [esp + 0x20]
add esi, dword [edi + 0x18]
mov edi, dword [esp + 0x2c]
cmp edi, ebp
jne 0x43a800
cmp dword [ecx + 8], 1
jne 0x43a800
cmp dword [edx + 8], 1
jne 0x43a800
imul ebp, ebx
push ebp
push esi
push eax
call fcn.00514850
add esp, 0xc
jmp 0x43a831
mov cx, word [esi]
dec ebx
movzx edx, byte [esi + 2]
add esi, ebp
or edx, 0xffffff00
mov word [esp + 0x10], cx
movzx ecx, byte [esp + 0x11]
shl edx, 8
or edx, ecx
movzx ecx, byte [esp + 0x10]
shl edx, 8
or edx, ecx
mov dword [eax], edx
add eax, edi
test ebx, ebx
jg 0x43a800
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x44]
movzx esi, dl
imul esi, dword [esp + 0x1c]
sub dword [esp + 0x34], 1
mov ecx, edx
mov ebx, dword [esp + 0x38]
jns 0x43a510
mov eax, esi
cdq
and edx, 0xff
lea ebx, [edx + eax]
sar ebx, 8
test ebx, ebx
jle 0x43a969
mov eax, ecx
mov esi, dword [edi + 8]
mov ecx, dword [edi]
cdq
and edx, 0xff
lea ebp, [edx + eax]
mov edx, dword [ecx + 0x10]
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0xc]
sar ebp, 8
imul edx, ebp
sub ebp, ecx
mov ecx, 0x100
add edx, eax
mov eax, dword [edi + 4]
mov dword [esp + 0x20], edx
imul ebp, dword [eax + 0x10]
mov edx, dword [edx]
add ebp, dword [edi + 0x18]
movzx edi, byte [ebp + 2]
shl edi, 0x10
cmp ebx, 0xff
jge 0x43a8b7
imul esi, ebx
sar esi, 8
movzx ebx, byte [ebp + 1]
or ebx, 0xff0000
imul ebx, esi
shr ebx, 8
and ebx, 0xff00ff
mov eax, ebx
shr eax, 0x10
sub ecx, eax
movzx eax, byte [ebp]
or edi, eax
mov eax, edx
and eax, 0xff00ff
shr edx, 8
imul eax, ecx
and edx, 0xff00ff
imul edx, ecx
imul edi, esi
shr eax, 8
and eax, 0xff00ff
shr edx, 8
and edx, 0xff00ff
shr edi, 8
add ebx, edx
and edi, 0xff00ff
add edi, eax
mov edx, 0x100
mov eax, ebx
mov ecx, edi
shr eax, 8
and eax, 0xff00ff
shr ecx, 8
sub edx, eax
and ecx, 0xff00ff
mov eax, ebx
shl edx, 8
shl eax, 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 [esp + 0x20]
shl ecx, 8
or ecx, ebx
xor edx, ecx
mov dword [eax], edx
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
mov edi, eax
cmp eax, dword [ecx + 0x10]
mov eax, ecx
mov ecx, dword [esp + 0x3c]
jl 0x43a4b0
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x30
ret 4