Function at 0x419840
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x50
mov ecx, dword [esp + 0x6c]
mov ebp, dword [esp + 0x68]
mov ebx, dword [ebp + 4]
mov edx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, edx
cmp word [ebx + edx + 2], 0
lea edx, [edx + 2]
jne 0x419860
mov edi, dword [ecx + 4]
mov esi, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, esi
cmp word [edi + esi + 2], 0
lea esi, [esi + 2]
jne 0x419880
mov ecx, edx
sar ecx, 1
sar esi, 1
lea eax, [ecx + esi]
add eax, 0x1b
test eax, eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], esi
jns 0x4198b0
mov eax, 0xffffffff
jmp 0x4198ba
lea eax, [ecx + esi]
lea eax, [eax*2 + 0x36]
push eax
call fcn.00408630
add esp, 4
mov dword [esp + 4], eax
mov dword [esp + 8], 0x81528720
mov dword [esp + 0xc], 0x8d2f8331
mov dword [esp + 0x10], 0x893a8f2f
mov dword [esp + 0x14], 0x95458b68
mov dword [esp + 0x18], 0x912a972c
mov dword [esp + 0x1c], 0x9d24933f
mov dword [esp + 0x20], 0x99359f21
mov dword [esp + 0x24], 0x652c9b29
mov dword [esp + 0x28], 0x61bb6784
mov dword [esp + 0x2c], 0x6dde63cf
mov dword [esp + 0x30], 0x69c56fd0
mov dword [esp + 0x34], 0x75c36bde
mov dword [esp + 0x38], 0x71d277c9
mov dword [esp + 0x3c], 0x7370
mov eax, 0xe1
mov ecx, 0x1e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + eax - 0xd9]
mov edx, ecx
xor edx, eax
and edx, esi
xor edx, eax
add dl, 0x9b
mov byte [esp + eax - 0xd9], dl
inc eax
dec ecx
cmp eax, 0x119
jne 0x419950
movzx ecx, word [ebx]
mov eax, dword [esp + 4]
test cx, cx
je 0x4199a1
add ebx, 2
mov eax, dword [esp + 4]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [ebx]
add ebx, 2
test cx, cx
jne 0x419990
mov word [eax], 0
movzx ecx, word [esp + 8]
test cx, cx
je 0x4199d1
lea edx, [esp + 0xa]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x4199c0
mov word [eax], 0
movzx ecx, word [edi]
test cx, cx
je 0x419a01
add edi, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x4199f0
mov word [eax], 0
mov esi, dword [ebp]
mov eax, 0xfffffffe
nop
nop
cmp word [esi + eax + 2], 0
lea eax, [eax + 2]
jne 0x419a10
mov ebp, dword [ebp + 8]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebp + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x419a30
mov edx, dword [esp + 0x6c]
mov ebx, dword [edx]
mov edx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + edx + 2], 0
lea edx, [edx + 2]
jne 0x419a50
sar eax, 1
sar ecx, 1
sar edx, 1
add ecx, eax
lea eax, [edx + ecx]
add eax, 0xd
mov ecx, eax
and ecx, 6
xor eax, 6
lea eax, [eax + ecx*2]
test eax, eax
jns 0x419a7f
mov eax, 0xffffffff
jmp 0x419a81
add eax, eax
push eax
call fcn.00408630
add esp, 4
movzx ecx, word [esi]
mov edi, eax
test cx, cx
je 0x419ab1
add esi, 2
mov edi, eax
nop
nop
nop
nop
nop
nop
nop
mov word [edi], cx
add edi, 2
movzx ecx, word [esi]
add esi, 2
test cx, cx
jne 0x419aa0
mov word [edi], 0x2f
mov dword [esp + 8], 0x1490735
mov dword [esp + 0xc], 0xd7e0378
mov dword [esp + 0x10], 0x9780f63
mov dword [esp + 0x14], 0x15610b75
mov dword [esp + 0x18], 0x11601765
mov dword [esp + 0x1c], 0x1d23136d
mov word [esp + 0x20], 0x1f1c
mov dword [esp + 0x22], 0
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, edx
add cl, 0x81
xor cl, byte [esp + edx + 8]
add cl, 0x7b
mov byte [esp + edx + 8], cl
inc edx
cmp edx, 0x1e
jne 0x419b00
add edi, 2
movzx ecx, word [ebp]
test cx, cx
mov esi, dword [esp + 0x6c]
je 0x419b42
add ebp, 2
nop
nop
nop
nop
nop
nop
nop
mov word [edi], cx
add edi, 2
movzx ecx, word [ebp]
add ebp, 2
test cx, cx
jne 0x419b30
mov word [edi], 0
movzx edx, word [esp + 8]
test dx, dx
je 0x419b71
lea ecx, [esp + 0xa]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [edi], dx
add edi, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x419b60
mov word [edi], 0
movzx ecx, word [ebx]
test cx, cx
je 0x419ba1
add ebx, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [edi], cx
add edi, 2
movzx ecx, word [ebx]
add ebx, 2
test cx, cx
jne 0x419b90
mov word [edi], 0
mov dword [esp + 8], 0x232221da
mov word [esp + 0xc], 0
mov byte [esp + 0xe], 0
xor edx, edx
nop
nop
nop
nop
mov ecx, edx
add cl, 0xc8
xor cl, byte [esp + edx + 8]
add cl, 0x18
mov byte [esp + edx + 8], cl
inc edx
cmp edx, 7
jne 0x419bc0
lea ecx, [esp + 8]
push 0
push 0
push 0xc00000
push ecx
mov ebx, dword [esp + 0x14]
push ebx
mov dword [esp + 0x54], eax
push eax
push dword [esp + 0x7c]
call fcn.0041d5f0
add esp, 0x1c
mov byte [esp + 3], al
jmp dword [0x4432e0]