Function at 0x417550
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa8
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x10], 0xf33ecd30
mov dword [esp + 0x14], 0xf711f163
mov dword [esp + 0x18], 0xfb16f515
mov dword [esp + 0x1c], 0xff3bf9d8
mov dword [esp + 0x20], 0xe376fd64
mov dword [esp + 0x24], 0xe774e105
mov dword [esp + 0x28], 0xeb03e573
mov dword [esp + 0x2c], 0xef7ce97b
mov dword [esp + 0x30], 0x9365edcc
mov dword [esp + 0x34], 0x97029175
mov dword [esp + 0x38], 0x9b739500
mov dword [esp + 0x3c], 0x9f75990a
mov dword [esp + 0x40], 0x837e9d0b
lea eax, [esp + 0x44]
mov word [esp + 0x44], 0x8180
mov dword [esp + 0x46], 0
mov dword [esp + 0x50], 0
mov ecx, dword [esp + 0x50]
cmp ecx, 0x39
ja 0x417631
nop
nop
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x50]
movzx edx, byte [esp + edx + 0x10]
lea esi, [ecx + 0x1e]
and esi, edx
mov edi, 0x9ef0dee1
sub edi, ecx
or edi, edx
not edi
add edi, edx
sub edi, esi
mov dword [esp + 0x6c], edi
mov ecx, dword [esp + 0x6c]
add cl, 0x2e
mov edx, dword [esp + 0x50]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 0x50]
mov ecx, dword [esp + 0x50]
cmp ecx, 0x3a
jb 0x4175f0
lea edi, [esp + 0x6c]
lea edx, [esp + 0x10]
mov ecx, 0xd
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
lea edi, [esp + 0xa0]
mov ecx, 1
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov esi, dword [ebx + 4]
mov eax, 0xfffffffe
nop
nop
nop
cmp word [esi + eax + 2], 0
lea eax, [eax + 2]
jne 0x417660
mov ecx, dword [ebp + 0x10]
mov edi, dword [ecx + 4]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x417680
mov edx, eax
sar edx, 1
sar ecx, 1
xor edx, 0x1b
and eax, 0x36
add eax, edx
mov edx, ecx
xor edx, eax
and eax, ecx
lea eax, [edx + eax*2]
test eax, eax
jns 0x4176ad
mov eax, 0xffffffff
jmp 0x4176af
add eax, eax
push eax
call fcn.00408d00
add esp, 4
movzx ecx, word [esi]
mov dword [esp + 8], eax
test cx, cx
je 0x4176e1
add esi, 2
mov eax, dword [esp + 8]
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [esi]
add esi, 2
test cx, cx
jne 0x4176d0
mov word [eax], 0
movzx ecx, word [esp + 0x6c]
test cx, cx
je 0x417711
lea edx, [esp + 0x6e]
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 0x417700
mov word [eax], 0
movzx ecx, word [edi]
test cx, cx
je 0x417741
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 0x417730
mov word [eax], 0
mov dword [esp + 0x10], 0x23672d5f
mov dword [esp + 0x14], 0x279221a8
mov dword [esp + 0x18], 0x3b882581
mov dword [esp + 0x1c], 0x3f87398f
mov dword [esp + 0x20], 0x33803d8f
mov dword [esp + 0x24], 0x37453187
lea eax, [esp + 0x28]
mov word [esp + 0x28], 0x3534
mov dword [esp + 0x2a], 0
mov dword [esp + 0x2d], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0x20
ja 0x4177e8
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x10]
lea esi, [ecx + 0x158d3c06]
lea edi, [ecx + 6]
mov ebx, edi
and ebx, esi
and ebx, edx
xor edi, esi
and edi, edx
add ecx, edx
add ecx, 0x158d3c06
lea edx, [edi + ebx*2]
sub ecx, edx
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x50]
add cl, 0xd6
mov edx, dword [esp]
mov byte [esp + edx + 0x10], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x21
jb 0x4177a0
lea edi, [esp + 0x50]
lea edx, [esp + 0x10]
mov ecx, 6
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
lea edi, [esp + 0x68]
mov ecx, 1
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [ecx]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + eax + 2], 0
lea eax, [eax + 2]
jne 0x417820
mov esi, dword [ecx + 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 0x417840
mov edx, dword [ebp + 0x10]
mov ebx, dword [edx]
mov edx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + edx + 2], 0
lea edx, [edx + 2]
jne 0x417860
sar eax, 1
sar ecx, 1
sar edx, 1
add ecx, eax
lea eax, [edx + ecx]
add eax, 0xe
test eax, eax
jns 0x417884
mov eax, 0xffffffff
jmp 0x41788c
add ecx, edx
lea eax, [ecx + ecx]
add eax, 0x1c
push eax
call fcn.00408d00
add esp, 4
movzx ecx, word [edi]
mov dword [esp + 0xc], eax
test cx, cx
je 0x4178c1
add edi, 2
mov eax, dword [esp + 0xc]
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 0x4178b0
mov word [eax], 0x2f
add eax, 2
movzx ecx, word [esi]
test cx, cx
je 0x4178f1
add esi, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [esi]
add esi, 2
test cx, cx
jne 0x4178e0
mov word [eax], 0
movzx ecx, word [esp + 0x50]
test cx, cx
je 0x417923
lea edx, [esp + 0x52]
mov esi, dword [esp + 8]
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 0x417910
jmp 0x417927
mov esi, dword [esp + 8]
mov word [eax], 0
movzx ecx, word [ebx]
test cx, cx
je 0x417951
add ebx, 2
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 0x417940
mov word [eax], 0
mov dword [esp + 0x10], 0x3332316a
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xf
ja 0x4179d5
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax + 0x7d08dea8]
add eax, 0xa8
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp], edx
mov eax, dword [esp]
mov ecx, eax
or ecx, 0x67
and eax, 0x67
add eax, ecx
inc al
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x10
jb 0x417990
push 0
push 0
push 0xc00000
lea eax, [esp + 0x1c]
push eax
push esi
push dword [esp + 0x20]
push dword [ebp + 8]
call fcn.0041a2d0
add esp, 0x1c
mov ebx, eax
mov eax, dword [0x441ef8]
mov ecx, 0x43e877d4
xor ecx, dword [0x441f00]
add eax, ecx
inc eax
jmp eax