Function at 0x419b70
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1010
call fcn.00467220
mov eax, dword [esp + 0x1024]
mov edx, dword [esp + 0x1018]
push ebx
mov bl, byte [eax + 0x3030]
push ebp
push esi
mov esi, ecx
mov ecx, dword [eax + 0x10]
mov eax, dword [esp + 0x1020]
test ecx, ecx
push edi
lea edi, [eax + 4]
seta byte [esp + 0x13]
cmp edi, edx
mov byte [esp + 0x12], bl
ja 0x419bf6
test bl, bl
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov dword [esi + 0x10], eax
je 0x419bdd
mov ebp, eax
and eax, 0xff00
shl ebp, 0x10
add ebp, eax
xor eax, eax
mov ah, byte [esp + 0x16]
shl ebp, 8
add ebp, eax
movzx eax, byte [esi + 0x13]
add ebp, eax
mov dword [esi + 0x10], ebp
mov eax, dword [esi + 0x10]
test eax, eax
seta byte [esp + 0x23]
test eax, eax
je 0x419c0e
cmp byte [esp + 0x13], 0
je 0x419c06
cmp eax, ecx
je 0x419c06
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1010
ret 0x14
test eax, eax
mov bl, byte [esp + 0x12]
jne 0x419c22
cmp byte [esp + 0x13], 0
mov bl, byte [esp + 0x12]
je 0x419c1e
mov dword [esi + 0x10], ecx
jmp 0x419c30
test eax, eax
je 0x419c30
cmp byte [esp + 0x13], 0
jne 0x419c30
mov dword [esi + 0x10], 0
lea eax, [edi + 1]
cmp eax, edx
ja 0x419bf6
mov cl, byte [edi]
cmp cl, 0x59
jne 0x419c44
mov byte [esi + 0x20], 1
jmp 0x419c4d
cmp cl, 0x4e
jne 0x419c4d
mov byte [esi + 0x20], 0
lea ecx, [eax + 4]
cmp ecx, edx
ja 0x419bf6
test bl, bl
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov dword [esi], eax
je 0x419c7f
mov edi, eax
and eax, 0xff00
shl edi, 0x10
add edi, eax
xor eax, eax
mov ah, byte [esp + 0x16]
shl edi, 8
add edi, eax
movzx eax, byte [esi + 3]
add edi, eax
mov dword [esi], edi
mov eax, ecx
lea ecx, [eax + 4]
cmp ecx, edx
ja 0x419bf6
test bl, bl
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov dword [esi + 4], eax
je 0x419cb9
mov edi, eax
and eax, 0xff00
shl edi, 0x10
add edi, eax
xor eax, eax
mov ah, byte [esp + 0x16]
shl edi, 8
add edi, eax
movzx eax, byte [esi + 7]
add edi, eax
mov dword [esi + 4], edi
lea eax, [ecx + 4]
cmp eax, edx
ja 0x419bf6
test bl, bl
mov ecx, dword [ecx]
mov dword [esp + 0x14], ecx
mov dword [esi + 8], ecx
je 0x419cf2
mov edi, ecx
and ecx, 0xff00
shl edi, 0x10
add edi, ecx
xor ecx, ecx
mov ch, byte [esp + 0x16]
shl edi, 8
add edi, ecx
movzx ecx, byte [esi + 0xb]
add edi, ecx
mov dword [esi + 8], edi
mov cl, byte [esi + 0x20]
test cl, cl
je 0x419d33
lea edi, [eax + 4]
cmp edi, edx
ja 0x419bf6
test bl, bl
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov dword [esi + 0x14], eax
je 0x419d31
mov ebp, eax
and eax, 0xff00
shl ebp, 0x10
add ebp, eax
xor eax, eax
mov ah, byte [esp + 0x16]
shl ebp, 8
add ebp, eax
movzx eax, byte [esi + 0x17]
add ebp, eax
mov dword [esi + 0x14], ebp
mov eax, edi
lea edi, [eax + 4]
cmp edi, edx
ja 0x419bf6
test bl, bl
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov dword [esi + 0x18], eax
je 0x419d6b
mov ebx, eax
and eax, 0xff00
shl ebx, 0x10
add ebx, eax
xor eax, eax
mov ah, byte [esp + 0x16]
shl ebx, 8
add ebx, eax
movzx eax, byte [esi + 0x1b]
add ebx, eax
mov dword [esi + 0x18], ebx
test cl, cl
je 0x419deb
mov eax, dword [esi]
lea ebp, [eax*4]
lea ebx, [edi + ebp]
cmp ebx, edx
ja 0x419bf6
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004217e2
push ebp
push edi
push eax
mov dword [esi + 0x24], eax
call fcn.004667e0
mov eax, dword [esi]
mov ebp, ebx
lea edi, [eax + eax]
lea ebx, [edi + ebp]
add esp, 0x10
cmp ebx, dword [esp + 0x1028]
ja 0x419bf6
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004217e2
push edi
push ebp
push eax
mov dword [esi + 0x28], eax
call fcn.004667e0
mov edx, dword [esp + 0x1038]
add esp, 0x10
mov edi, ebx
mov eax, dword [esi]
lea ebp, [eax*4]
lea ebx, [edi + ebp]
cmp ebx, edx
ja 0x419bf6
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004217e2
push ebp
push edi
push eax
mov dword [esi + 0x2c], eax
call fcn.004667e0
mov eax, dword [esi]
mov edi, ebx
lea ebp, [eax + eax]
lea ebx, [edi + ebp]
add esp, 0x10
cmp ebx, dword [esp + 0x1028]
ja 0x419bf6
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004217e2
push ebp
push edi
push eax
mov dword [esi + 0x30], eax
call fcn.004667e0
add esp, 0x10
cmp byte [esp + 0x12], 0
mov ebp, ebx
je 0x419f0a
xor eax, eax
cmp dword [esi], eax
jbe 0x419f0a
cmp byte [esi + 0x20], 0
je 0x419ebd
mov ecx, dword [esi + 0x24]
lea edx, [ecx + eax*4]
mov ecx, dword [edx]
mov edi, ecx
mov dword [esp + 0x18], ecx
and ecx, 0xff00
shl edi, 0x10
add edi, ecx
movzx ecx, byte [edx + 3]
shl edi, 8
add edi, ecx
xor ecx, ecx
mov ch, byte [esp + 0x1a]
xor ebx, ebx
add edi, ecx
mov dword [edx], edi
mov edx, dword [esi + 0x28]
mov bh, byte [edx + eax*2]
lea ecx, [edx + eax*2]
movzx dx, byte [ecx + 1]
xor dx, bx
mov word [ecx], dx
mov ecx, dword [esi + 0x2c]
lea edx, [ecx + eax*4]
mov ecx, dword [edx]
mov edi, ecx
mov dword [esp + 0x18], ecx
and ecx, 0xff00
shl edi, 0x10
add edi, ecx
movzx ecx, byte [edx + 3]
shl edi, 8
add edi, ecx
xor ecx, ecx
mov ch, byte [esp + 0x1a]
xor ebx, ebx
add edi, ecx
mov dword [edx], edi
mov edx, dword [esi + 0x30]
mov bh, byte [edx + eax*2]
lea ecx, [edx + eax*2]
movzx dx, byte [ecx + 1]
add eax, 1
xor dx, bx
mov word [ecx], dx
cmp eax, dword [esi]
jb 0x419e75
cmp byte [esi + 0x20], 0
je 0x419f39
mov edi, dword [esi + 0x14]
lea ebx, [edi + ebp]
cmp ebx, dword [esp + 0x1028]
ja 0x419bf6
push edi
call fcn.004217e2
push edi
push ebp
push eax
mov dword [esi + 0x3c], eax
call fcn.004667e0
add esp, 0x10
mov ebp, ebx
mov edi, dword [esi + 0x18]
lea ebx, [edi + ebp]
cmp ebx, dword [esp + 0x1028]
ja 0x419bf6
push edi
call fcn.004217e2
push edi
push ebp
push eax
mov dword [esi + 0x40], eax
call fcn.004667e0
add esp, 0x10
cmp byte [esp + 0x12], 0
mov dword [esp + 0x1024], ebx
je 0x419fa7
mov ecx, dword [esi + 0x40]
xor eax, eax
test dword [esi + 0x18], 0xfffffffe
jbe 0x419fa7
lea esp, [esp]
movzx dx, byte [ecx + eax*2 + 1]
mov dword [esp + 0x18], ebx
xor ebx, ebx
mov bh, byte [ecx + eax*2]
add eax, 1
xor dx, bx
mov ebx, dword [esp + 0x18]
mov word [ecx + eax*2 - 2], dx
mov edx, dword [esi + 0x18]
shr edx, 1
cmp eax, edx
jb 0x419f80
cmp byte [esi + 0x20], 0
je 0x41a2e2
mov eax, dword [esi + 8]
lea ebp, [eax + eax]
lea edi, [ebx + ebp]
cmp edi, dword [esp + 0x1028]
ja 0x419bf6
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004217e2
push ebp
push ebx
push eax
mov dword [esi + 0x54], eax
call fcn.004667e0
mov eax, dword [esi + 8]
add eax, eax
add eax, eax
mov ecx, edi
lea edi, [eax + ecx]
add esp, 0x10
cmp edi, dword [esp + 0x1028]
ja 0x419bf6
push eax
push ecx
lea eax, [esp + 0x34]
push eax
call fcn.004667e0
add esp, 0xc
cmp byte [esp + 0x12], 0
mov ebx, edi
mov dword [esp + 0x1024], ebx
je 0x41a081
xor eax, eax
cmp dword [esi + 8], eax
jbe 0x41a081
lea ebx, [ebx]
mov ecx, dword [esi + 0x54]
movzx dx, byte [ecx + eax*2 + 1]
lea ecx, [ecx + eax*2]
mov dword [esp + 0x1c], ebx
xor ebx, ebx
mov bh, byte [ecx]
add eax, 1
xor dx, bx
mov word [ecx], dx
mov ecx, dword [esp + eax*4 + 0x28]
mov ebx, dword [esp + 0x1c]
mov edx, ecx
mov dword [esp + 0x18], ecx
shl edx, 0x10
and ecx, 0xff00
add edx, ecx
movzx ecx, byte [esp + eax*4 + 0x2b]
shl edx, 8
add edx, ecx
xor ecx, ecx
mov ch, byte [esp + 0x1a]
add edx, ecx
cmp eax, dword [esi + 8]
mov dword [esp + eax*4 + 0x28], edx
jb 0x41a030
cmp byte [esi + 0x20], 0
je 0x41a2e2
xor ebp, ebp
cmp dword [esi + 8], ebp
jbe 0x41a2e2
lea edx, [esp + 0x2c]
mov dword [esp + 0x14], edx
mov edi, edi
mov eax, dword [esi + 0x54]
movzx eax, word [eax + ebp*2]
mov edx, dword [esp + 0x1034]
lea ecx, [eax + eax*2]
mov ebx, dword [edx + ecx*4 + 0x3c]
lea eax, [edx + ecx*4 + 0x38]
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x14]
mov edi, dword [ecx]
mov dword [esp + 0x18], eax
xor ecx, ecx
lea eax, [edi + ebx]
mov edx, 4
mul edx
seto cl
mov dword [esp + 0x24], ebx
neg ecx
or ecx, eax
push ecx
call fcn.004217e2
mov ecx, dword [esi + 0x54]
movzx ecx, word [ecx + ebp*2]
lea edx, [ecx + ecx*2]
mov ecx, dword [esp + 0x1038]
add esp, 4
cmp byte [esp + 0x13], 0
mov dword [ecx + edx*4 + 0x40], eax
je 0x41a12c
test ebx, ebx
jbe 0x41a11f
mov ecx, dword [esp + 0x18]
sub ecx, eax
mov dword [esp + 0x1c], ebx
mov edx, dword [ecx + eax]
mov dword [eax], edx
add eax, 4
sub dword [esp + 0x1c], 1
jne 0x41a110
mov eax, dword [esp + 0x18]
push eax
call fcn.004217e7
add esp, 4
mov ecx, dword [esi + 0x54]
movzx eax, word [ecx + ebp*2]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x1034]
add dword [eax + edx*4 + 0x3c], edi
test edi, edi
lea eax, [eax + edx*4 + 0x3c]
mov dword [esp + 0x18], 0
jbe 0x41a2ca
mov ecx, dword [esp + 0x1024]
add ecx, 4
add ebx, ebx
mov dword [esp + 0x1c], ecx
add ebx, ebx
jmp 0x41a170
mov edx, dword [esp + 0x1c]
cmp edx, dword [esp + 0x1028]
ja 0x419bf6
cmp byte [esp + 0x12], 0
mov eax, dword [esp + 0x1024]
mov edi, dword [eax]
mov dword [esp + 0x28], edi
je 0x41a1b4
xor eax, eax
mov ah, byte [esp + 0x2a]
mov ecx, edi
mov edx, edi
shl ecx, 0x10
and edx, 0xff00
add ecx, edx
shl ecx, 8
add ecx, eax
shr edi, 0x18
add edi, ecx
cmp byte [esp + 0x23], 0
je 0x41a1e4
cmp byte [esp + 0x13], 0
je 0x41a1eb
mov edx, dword [esi + 0x54]
movzx eax, word [edx + ebp*2]
mov ecx, dword [esi + 0x10]
mov edx, dword [esp + 0x1034]
lea eax, [eax + eax*2]
mov eax, dword [edx + eax*4 + 0x40]
add ecx, edi
mov dword [ebx + eax], ecx
jmp 0x41a2a0
cmp byte [esp + 0x13], 0
jne 0x41a208
mov ecx, dword [esi + 0x54]
movzx eax, word [ecx + ebp*2]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x1034]
mov ecx, dword [eax + edx*4 + 0x40]
mov dword [ebx + ecx], edi
jmp 0x41a2a0
mov edx, dword [esi + 0x30]
movzx eax, word [edx + edi*2]
mov ecx, dword [esi + 0x2c]
mov edx, dword [ecx + edi*4]
add edx, dword [esi + 0x40]
push eax
mov eax, dword [esi + 0x28]
movzx ecx, word [eax + edi*2]
push edx
mov edx, dword [esi + 0x24]
mov eax, dword [edx + edi*4]
add eax, dword [esi + 0x3c]
push ecx
mov ecx, dword [esi + 0x54]
push eax
movzx eax, word [ecx + ebp*2]
mov ecx, dword [esp + 0x1044]
lea edx, [eax + eax*2]
mov eax, dword [ecx + edx*4 + 0x40]
mov edx, dword [esp + 0x34]
push eax
push edx
push edi
call fcn.00419a80
test al, al
je 0x41a283
mov eax, dword [esi + 0x28]
mov word [eax + edi*2], 0
mov ecx, dword [esi + 0x30]
mov word [ecx + edi*2], 0
mov edx, dword [esi + 0x54]
movzx eax, word [edx + ebp*2]
mov ecx, dword [esp + 0x1034]
lea eax, [eax + eax*2]
add dword [ecx + eax*4 + 0x3c], 0xffffffff
add dword [esi + 4], 0xffffffff
lea eax, [ecx + eax*4 + 0x3c]
jmp 0x41a2a3
mov eax, dword [esi + 0x54]
movzx eax, word [eax + ebp*2]
mov edx, dword [esi + 0x10]
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x1034]
mov ecx, dword [eax + ecx*4 + 0x40]
add edx, edi
mov dword [ebx + ecx], edx
add ebx, 4
mov edx, dword [esp + 0x14]
mov eax, 4
add dword [esp + 0x1024], eax
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, dword [edx]
mov dword [esp + 0x18], eax
jb 0x41a170
add dword [esp + 0x14], 4
add ebp, 1
cmp ebp, dword [esi + 8]
jb 0x41a0a0
mov ebx, dword [esp + 0x1024]
mov edx, dword [esp + 0x1028]
lea ecx, [ebx + 4]
cmp ecx, edx
ja 0x419bf6
cmp byte [esp + 0x12], 0
mov eax, dword [ebx]
mov dword [esp + 0x14], eax
mov dword [esi + 0xc], eax
je 0x41a324
mov edi, eax
and eax, 0xff00
shl edi, 0x10
add edi, eax
xor eax, eax
mov ah, byte [esp + 0x16]
shl edi, 8
add edi, eax
movzx eax, byte [esi + 0xf]
add edi, eax
mov dword [esi + 0xc], edi
cmp dword [esi + 0xc], 0
mov eax, ecx
je 0x41a511
lea ebx, [eax + 4]
cmp ebx, edx
ja 0x419bf6
cmp byte [esp + 0x12], 0
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov dword [esi + 0x1c], eax
je 0x41a36b
mov ecx, eax
and eax, 0xff00
shl ecx, 0x10
add ecx, eax
xor eax, eax
mov ah, byte [esp + 0x16]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 0x1f]
add ecx, eax
mov dword [esi + 0x1c], ecx
mov eax, dword [esi + 0xc]
lea ebp, [eax*4]
lea edi, [ebx + ebp]
cmp edi, edx
ja 0x419bf6
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004217e2
push ebp
push ebx
push eax
mov dword [esi + 0x58], eax
call fcn.004667e0
mov eax, dword [esi + 0xc]
lea ebp, [eax*4]
lea ebx, [edi + ebp]
add esp, 0x10
cmp ebx, dword [esp + 0x1028]
ja 0x419bf6
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004217e2
push ebp
push edi
push eax
mov dword [esi + 0x34], eax
call fcn.004667e0
mov eax, dword [esi + 0xc]
mov edi, ebx
lea ebp, [eax + eax]
lea ebx, [edi + ebp]
add esp, 0x10
cmp ebx, dword [esp + 0x1028]
ja 0x419bf6
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004217e2
push ebp
push edi
push eax
mov dword [esi + 0x38], eax
call fcn.004667e0
add esp, 0x10
cmp byte [esp + 0x12], 0
je 0x41a4b3
xor eax, eax
cmp dword [esi + 0xc], eax
jbe 0x41a4b3
mov ecx, dword [esi + 0x38]
movzx dx, byte [ecx + eax*2 + 1]
lea ecx, [ecx + eax*2]
mov dword [esp + 0x28], ebx
xor ebx, ebx
mov bh, byte [ecx]
xor dx, bx
mov word [ecx], dx
mov ecx, dword [esi + 0x34]
lea edx, [ecx + eax*4]
mov ecx, dword [edx]
mov edi, ecx
mov dword [esp + 0x24], ecx
shl edi, 0x10
and ecx, 0xff00
add edi, ecx
movzx ecx, byte [edx + 3]
shl edi, 8
add edi, ecx
xor ecx, ecx
mov ch, byte [esp + 0x26]
mov ebx, dword [esp + 0x28]
add edi, ecx
mov dword [edx], edi
mov edx, dword [esi + 0x58]
mov ecx, dword [edx + eax*4]
lea edx, [edx + eax*4]
mov edi, ecx
mov dword [esp + 0x24], ecx
shl edi, 0x10
and ecx, 0xff00
add edi, ecx
movzx ecx, byte [edx + 3]
shl edi, 8
add edi, ecx
xor ecx, ecx
mov ch, byte [esp + 0x26]
add eax, 1
add edi, ecx
mov dword [edx], edi
cmp eax, dword [esi + 0xc]
jb 0x41a434
mov eax, dword [esi + 0x1c]
lea edx, [eax + ebx]
cmp edx, dword [esp + 0x1028]
ja 0x419bf6
push eax
call fcn.004217e2
mov ecx, dword [esi + 0x1c]
push ecx
push ebx
push eax
mov dword [esi + 0x44], eax
call fcn.004667e0
add esp, 0x10
cmp byte [esp + 0x12], 0
je 0x41a511
mov ecx, dword [esi + 0x44]
xor eax, eax
test dword [esi + 0x1c], 0xfffffffe
jbe 0x41a511
movzx dx, byte [ecx + eax*2 + 1]
xor ebx, ebx
mov bh, byte [ecx + eax*2]
add eax, 1
xor dx, bx
mov word [ecx + eax*2 - 2], dx
mov edx, dword [esi + 0x1c]
shr edx, 1
cmp eax, edx
jb 0x41a4f2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1010
ret 0x14