Function at 0x419220
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xc0
mov dword [esp + 0x10], 0xeb88d5ba
mov dword [esp + 0x14], 0xef8de99b
mov dword [esp + 0x18], 0xe390ed89
mov dword [esp + 0x1c], 0xe7bbe1c2
mov dword [esp + 0x20], 0xfb90e56e
mov dword [esp + 0x24], 0xff8af981
mov dword [esp + 0x28], 0xf383fd8b
mov dword [esp + 0x2c], 0xf782f183
mov dword [esp + 0x30], 0xba1f5d6
mov dword [esp + 0x34], 0xf7c0971
mov dword [esp + 0x38], 0x3730d7a
mov dword [esp + 0x3c], 0x7790170
mov dword [esp + 0x40], 0x1b680573
mov word [esp + 0x44], 0x191a
mov dword [esp + 0x46], 0
mov dword [esp + 0x4a], 0
mov dword [esp + 0x4e], 0
mov dword [esp + 0x52], 0
mov byte [esp + 0x56], 0
mov dword [esp + 0x84], 0
mov eax, dword [esp + 0x84]
cmp eax, 0x46
ja 0x419314
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x84]
add al, 0x5d
xor al, byte [esp + ecx + 0x10]
add al, 0x75
mov ecx, dword [esp + 0x84]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 0x84]
mov eax, dword [esp + 0x84]
cmp eax, 0x47
jb 0x4192e0
mov esi, dword [ebp + 0xc]
movzx ecx, word [esp + 0x10]
lea eax, [esp + 0x84]
test cx, cx
je 0x419341
lea edx, [esp + 0x12]
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x419330
mov edx, dword [ebp + 0x10]
mov word [eax], 0
mov esi, dword [esi + 4]
xor eax, eax
nop
nop
cmp word [esi + eax], 0
lea eax, [eax + 2]
jne 0x419350
lea ecx, [esi + eax]
add ecx, 0xfffffffe
mov eax, esi
not eax
and eax, ecx
add eax, eax
xor ecx, esi
sub eax, ecx
sar eax, 1
mov edi, dword [edx]
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + ecx], 0
lea ecx, [ecx + 2]
jne 0x419380
lea edx, [edi + ecx]
add edx, 0xfffffffe
mov ecx, edi
not ecx
and ecx, edx
add ecx, ecx
xor edx, edi
sub ecx, edx
sar ecx, 1
lea edx, [eax + ecx]
add edx, 0x1b
test edx, edx
jns 0x4193af
mov eax, 0xffffffff
jmp 0x4193b6
add eax, ecx
add eax, eax
add eax, 0x36
push eax
call fcn.00409640
add esp, 4
movzx ecx, word [esi]
mov ebx, eax
test cx, cx
je 0x4193e1
add esi, 2
mov ebx, eax
nop
nop
mov word [ebx], cx
add ebx, 2
movzx ecx, word [esi]
add esi, 2
test cx, cx
jne 0x4193d0
mov dword [esp + 0x64], eax
mov word [ebx], 0
movzx ecx, word [esp + 0x84]
test cx, cx
je 0x419411
lea edx, [esp + 0x86]
nop
nop
mov word [ebx], cx
add ebx, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x419400
mov word [ebx], 0
movzx ecx, word [edi]
test cx, cx
je 0x419441
add edi, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebx], cx
add ebx, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x419430
mov word [ebx], 0
mov dword [esp + 0x10], 0x334f3567
mov dword [esp + 0x14], 0x2fbc31ba
mov dword [esp + 0x18], 0x2bbe2db5
mov dword [esp + 0x1c], 0x27bf29a7
mov dword [esp + 0x20], 0x23b625b7
mov dword [esp + 0x24], 0x5f7121af
mov word [esp + 0x28], 0x5d5e
mov dword [esp + 0x2a], 0
mov dword [esp + 0x2e], 0
mov word [esp + 0x32], 0
mov dword [esp + 0x68], 0
mov eax, dword [esp + 0x68]
cmp eax, 0x23
ja 0x4194d5
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x68]
add al, 0x29
xor al, byte [esp + ecx + 0x10]
add al, 0xe1
mov ecx, dword [esp + 0x68]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 0x68]
mov eax, dword [esp + 0x68]
cmp eax, 0x24
jb 0x4194b0
movzx ecx, word [esp + 0x10]
test cx, cx
mov edi, dword [ebp + 0xc]
lea eax, [esp + 0x68]
je 0x419501
lea edx, [esp + 0x12]
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x4194f0
mov word [eax], 0
mov esi, dword [edi]
xor eax, eax
nop
nop
nop
nop
nop
nop
cmp word [esi + eax], 0
lea eax, [eax + 2]
jne 0x419510
lea ecx, [esi + eax]
add ecx, 0xfffffffe
mov eax, esi
not eax
and eax, ecx
add eax, eax
xor ecx, esi
sub eax, ecx
mov dword [esp + 0xc], eax
mov ebx, dword [edi + 8]
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + ecx], 0
lea ecx, [ecx + 2]
jne 0x419540
lea edx, [ebx + ecx]
add edx, 0xfffffffe
mov ecx, ebx
not ecx
and ecx, edx
add ecx, ecx
xor edx, ebx
sub ecx, edx
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + 4]
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + edx], 0
lea edx, [edx + 2]
jne 0x419570
sar dword [esp + 0xc], 1
sar ecx, 1
lea eax, [edi + edx]
add eax, 0xfffffffe
mov edx, edi
not edx
and edx, eax
add edx, edx
xor eax, edi
sub edx, eax
sar edx, 1
add ecx, dword [esp + 0xc]
lea eax, [edx + ecx]
add eax, 0xe
test eax, eax
jns 0x4195a9
mov eax, 0xffffffff
jmp 0x4195b1
add ecx, edx
lea eax, [ecx + ecx]
add eax, 0x1c
push eax
call fcn.00409640
add esp, 4
movzx edx, word [esi]
mov ecx, eax
test dx, dx
je 0x4195e1
add esi, 2
mov ecx, eax
nop
nop
nop
nop
nop
nop
nop
mov word [ecx], dx
add ecx, 2
movzx edx, word [esi]
add esi, 2
test dx, dx
jne 0x4195d0
mov word [ecx], 0x2f
add ecx, 2
movzx edx, word [ebx]
test dx, dx
je 0x419611
add ebx, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ecx], dx
add ecx, 2
movzx edx, word [ebx]
add ebx, 2
test dx, dx
jne 0x419600
mov word [ecx], 0
movzx edx, word [esp + 0x68]
test dx, dx
je 0x419641
lea esi, [esp + 0x6a]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ecx], dx
add ecx, 2
movzx edx, word [esi]
add esi, 2
test dx, dx
jne 0x419630
mov word [ecx], 0
movzx edx, word [edi]
test dx, dx
je 0x419671
add edi, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ecx], dx
add ecx, 2
movzx edx, word [edi]
add edi, 2
test dx, dx
jne 0x419660
mov word [ecx], 0
mov byte [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0xfbf8f9dc
mov dword [esp + 8], 0
mov ecx, dword [esp + 8]
cmp ecx, 0x14
ja 0x4196f4
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx esi, byte [esp + ecx + 0x10]
lea ecx, [edx + esi]
add ecx, 0x7f
add edx, 0x7f
and edx, esi
add edx, edx
sub ecx, edx
add cl, 0x87
mov edx, dword [esp + 8]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 8]
mov ecx, dword [esp + 8]
cmp ecx, 0x15
jb 0x4196c0
lea ecx, [esp + 0x10]
push 0
push 0xc00000
push ecx
push dword [esp + 0x70]
push eax
push dword [ebp + 8]
call fcn.0041a350
add esp, 0x18
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret