Function at 0x419700
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x50
mov ebx, dword [esp + 0x68]
mov esi, dword [ebx + 4]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [esi + eax + 2], 0
lea eax, [eax + 2]
jne 0x419720
mov ecx, dword [esp + 0x6c]
mov edi, dword [ecx + 4]
mov edx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, edx
cmp word [edi + edx + 2], 0
lea edx, [edx + 2]
jne 0x419740
mov ecx, eax
sar ecx, 1
sar edx, 1
and eax, 0x36
mov dword [esp + 0x44], ecx
xor ecx, 0x1b
add ecx, eax
add ecx, edx
mov dword [esp + 0x48], edx
jns 0x41976e
mov ecx, 0xffffffff
jmp 0x419770
add ecx, ecx
push ecx
call fcn.00408770
add esp, 4
mov dword [esp + 8], 0x13661174
mov dword [esp + 0xc], 0x1f7d1d8b
mov dword [esp + 0x10], 0x1b8e1979
mov dword [esp + 0x14], 0x74b0524
mov dword [esp + 0x18], 0x39e0198
mov dword [esp + 0x1c], 0xf980d61
mov dword [esp + 0x20], 0xb63099b
mov dword [esp + 0x24], 0x37a035a3
mov dword [esp + 0x28], 0x33413110
mov dword [esp + 0x2c], 0x3fa23d51
mov dword [esp + 0x30], 0x3b5339a4
mov dword [esp + 0x34], 0x274925b2
mov dword [esp + 0x38], 0x234621b3
mov word [esp + 0x3c], 0x2d2c
mov dword [esp + 0x3e], 0
mov byte [esp + 0x42], 0
mov ebp, 0xe0f91504
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + ebp + 0x1f06eb04]
xor ecx, ebp
add ecx, 0x9b2296eb
mov edx, ecx
and edx, 1
xor ecx, 1
lea ecx, [ecx + edx*2]
mov byte [esp + ebp + 0x1f06eb04], cl
inc ebp
cmp ebp, 0xe0f9153f
jne 0x419800
movzx ecx, word [esi]
mov ebp, eax
test cx, cx
je 0x419852
add esi, 2
mov ebp, eax
nop
nop
nop
nop
nop
nop
mov word [ebp], cx
add ebp, 2
movzx ecx, word [esi]
add esi, 2
test cx, cx
jne 0x419840
mov word [ebp], 0
movzx ecx, word [esp + 8]
test cx, cx
je 0x419882
lea edx, [esp + 0xa]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebp], cx
add ebp, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x419870
mov word [ebp], 0
movzx ecx, word [edi]
test cx, cx
mov dword [esp + 0x4c], eax
je 0x4198b2
add edi, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebp], cx
add ebp, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x4198a0
mov word [ebp], 0
mov ebp, dword [ebx]
mov eax, 0xfffffffe
nop
cmp word [ebp + eax + 2], 0
lea eax, [eax + 2]
jne 0x4198c0
mov esi, dword [ebx + 8]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [esi + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x4198e0
mov edx, dword [esp + 0x6c]
mov edi, dword [edx]
mov edx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + edx + 2], 0
lea edx, [edx + 2]
jne 0x419900
sar eax, 1
sar ecx, 1
sar edx, 1
add ecx, eax
lea eax, [edx + ecx]
add eax, 0x13
test eax, eax
jns 0x419924
mov eax, 0xffffffff
jmp 0x41992d
add ecx, edx
lea eax, [ecx*2 + 0x26]
push eax
call fcn.00408770
add esp, 4
mov ebx, eax
movzx eax, word [ebp]
mov dword [esp + 4], ebx
test ax, ax
je 0x419962
add ebp, 2
mov ebx, dword [esp + 4]
nop
nop
nop
nop
mov word [ebx], ax
add ebx, 2
movzx eax, word [ebp]
add ebp, 2
test ax, ax
jne 0x419950
mov word [ebx], 0x2f
mov dword [esp + 8], 0x59015b35
mov dword [esp + 0xc], 0x5dea5fd0
mov dword [esp + 0x10], 0x51e053e7
mov dword [esp + 0x14], 0x55e957e5
mov dword [esp + 0x18], 0xa918abe5
mov dword [esp + 0x1c], 0xaddfaf1d
mov word [esp + 0x20], 0xa3ac
mov dword [esp + 0x22], 0
mov eax, 0xef
mov ecx, 0x10
movzx ebp, byte [esp + eax - 0xe7]
mov edx, ecx
xor edx, eax
and edx, ebp
xor edx, eax
add dl, 0x55
mov byte [esp + eax - 0xe7], dl
inc eax
dec ecx
cmp eax, 0x10d
jne 0x4199b0
add ebx, 2
movzx eax, word [esi]
test ax, ax
je 0x419a03
add esi, 2
mov ebp, dword [esp + 0x64]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebx], ax
add ebx, 2
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x4199f0
jmp 0x419a07
mov ebp, dword [esp + 0x64]
mov word [ebx], 0
movzx eax, word [esp + 8]
test ax, ax
je 0x419a31
lea ecx, [esp + 0xa]
nop
nop
nop
nop
nop
nop
mov word [ebx], ax
add ebx, 2
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419a20
mov word [ebx], 0
movzx eax, word [edi]
test ax, ax
je 0x419a61
add edi, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebx], ax
add ebx, 2
movzx eax, word [edi]
add edi, 2
test ax, ax
jne 0x419a50
mov word [ebx], 0
mov dword [esp + 8], 0x171619ce
mov word [esp + 0xc], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, eax
and edx, 2
xor edx, 0xba
mov ecx, eax
and ecx, 5
sub ecx, edx
xor cl, byte [esp + eax + 8]
add cl, 0xa2
mov byte [esp + eax + 8], cl
inc eax
cmp eax, 6
jne 0x419a80
lea eax, [esp + 8]
push 0
push 0
push 0xc00000
push eax
mov esi, dword [esp + 0x5c]
push esi
push dword [esp + 0x18]
push ebp
call fcn.0041d7f0
add esp, 0x1c
mov byte [esp + 3], al
jmp dword [0x446058]