Function at 0x417660
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xb0
mov dword [esp + 0x10], 0x9bce99fc
mov dword [esp + 0x14], 0x97f595e3
mov dword [esp + 0x18], 0x93e691f1
mov dword [esp + 0x1c], 0xaff3ad8c
mov dword [esp + 0x20], 0xab26a920
mov dword [esp + 0x24], 0xa7d0a5d9
mov dword [esp + 0x28], 0xa3dba1d3
mov dword [esp + 0x2c], 0xbfc8bdcb
mov dword [esp + 0x30], 0xbbe9b998
mov dword [esp + 0x34], 0xb73ab5c9
mov dword [esp + 0x38], 0xb3cbb13c
mov dword [esp + 0x3c], 0xcfb1cdba
mov dword [esp + 0x40], 0xcbaec9bb
mov word [esp + 0x44], 0xc5c4
mov dword [esp + 0x46], 0
mov dword [esp + 0x4a], 0
mov word [esp + 0x4e], 0
mov dword [esp + 0x74], 0
mov eax, dword [esp + 0x74]
cmp eax, 0x3f
ja 0x41774f
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x74]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax + 0x14]
and edx, ecx
add eax, ecx
add edx, edx
sub eax, edx
add eax, 0xd8e08914
mov ecx, eax
xor ecx, 0x73
and eax, 0x73
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp + 0x74]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 0x74]
mov eax, dword [esp + 0x74]
cmp eax, 0x40
jb 0x417710
mov esi, dword [ebp + 0xc]
movzx ecx, word [esp + 0x10]
lea eax, [esp + 0x74]
test cx, cx
je 0x417781
lea edx, [esp + 0x12]
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 0x417770
mov edi, dword [ebp + 0x10]
mov word [eax], 0
mov esi, dword [esi + 4]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [esi + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x4177a0
mov edx, ecx
sar edx, 1
xor edx, 0x1b
mov edi, dword [edi]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + eax + 2], 0
lea eax, [eax + 2]
jne 0x4177c0
and ecx, 0x36
add edx, ecx
sar eax, 1
add eax, edx
jns 0x4177dd
mov eax, 0xffffffff
jmp 0x4177df
add eax, eax
push eax
call fcn.004088c0
add esp, 4
movzx ecx, word [esi]
mov ebx, eax
test cx, cx
je 0x417811
add esi, 2
mov ebx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebx], cx
add ebx, 2
movzx ecx, word [esi]
add esi, 2
test cx, cx
jne 0x417800
mov dword [esp + 0x54], eax
mov word [ebx], 0
movzx ecx, word [esp + 0x74]
test cx, cx
je 0x417841
lea edx, [esp + 0x76]
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebx], cx
add ebx, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x417830
mov word [ebx], 0
movzx ecx, word [edi]
test cx, cx
je 0x417871
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 0x417860
mov word [ebx], 0
mov dword [esp + 0x10], 0x7b3f7917
mov dword [esp + 0x14], 0x7fc87df2
mov dword [esp + 0x18], 0x73ce71d9
mov dword [esp + 0x1c], 0x77cf75c7
mov dword [esp + 0x20], 0x4bf649c7
mov dword [esp + 0x24], 0x4f3d4dff
mov word [esp + 0x28], 0x414e
mov dword [esp + 0x2a], 0
mov dword [esp + 0x2e], 0
mov dword [esp + 0x32], 0
mov dword [esp + 0x36], 0
mov dword [esp + 0x3a], 0
mov dword [esp + 0x58], 0
mov eax, dword [esp + 0x58]
cmp eax, 0x2d
ja 0x417926
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x58]
movzx eax, byte [esp + eax + 0x10]
lea edx, [ecx + 0x4f]
and edx, eax
mov esi, 0xb0
sub esi, ecx
or esi, eax
add esi, edx
sub eax, esi
add al, 0xd6
mov ecx, dword [esp + 0x58]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 0x58]
mov eax, dword [esp + 0x58]
cmp eax, 0x2e
jb 0x4178f0
movzx ecx, word [esp + 0x10]
test cx, cx
mov edi, dword [ebp + 0xc]
lea eax, [esp + 0x58]
je 0x417951
lea edx, [esp + 0x12]
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x417940
mov word [eax], 0
mov esi, dword [edi]
mov eax, 0xfffffffe
nop
nop
nop
cmp word [esi + eax + 2], 0
lea eax, [eax + 2]
jne 0x417960
mov ebx, dword [edi + 8]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x417980
mov edx, dword [ebp + 0x10]
mov edi, dword [edx + 4]
mov edx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + edx + 2], 0
lea edx, [edx + 2]
jne 0x4179a0
sar eax, 1
sar ecx, 1
sar edx, 1
add ecx, eax
lea eax, [edx + ecx]
add eax, 0xe
test eax, eax
jns 0x4179c4
mov eax, 0xffffffff
jmp 0x4179cc
add ecx, edx
lea eax, [ecx + ecx]
add eax, 0x1c
push eax
call fcn.004088c0
add esp, 4
movzx edx, word [esi]
mov ecx, eax
test dx, dx
je 0x417a01
add esi, 2
mov ecx, eax
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 0x4179f0
mov word [ecx], 0x2f
add ecx, 2
movzx edx, word [ebx]
test dx, dx
je 0x417a31
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 0x417a20
mov word [ecx], 0
movzx edx, word [esp + 0x58]
test dx, dx
je 0x417a61
lea esi, [esp + 0x5a]
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 0x417a50
mov word [ecx], 0
movzx edx, word [edi]
test dx, dx
je 0x417a91
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 0x417a80
mov word [ecx], 0
mov byte [esp + 0x28], 0
mov dword [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], 0xebd4d5e8
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0xc]
cmp ecx, 0x18
ja 0x417b19
nop
nop
nop
nop
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0xc]
movzx edx, byte [esp + edx + 0x10]
lea esi, [ecx + 0x22be2d5d]
and esi, edx
add ecx, edx
add ecx, 0x22be2d5d
add esi, esi
sub ecx, esi
add cl, 0x75
mov edx, dword [esp + 0xc]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
cmp ecx, 0x19
jb 0x417ae0
lea ecx, [esp + 0x10]
push 0
push 0xc00000
push ecx
push dword [esp + 0x60]
push eax
push dword [ebp + 8]
call fcn.00418950
add esp, 0x18
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret