Function at 0x417290
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xc0
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x10], 0x8b5e8d68
mov dword [esp + 0x14], 0x8779897b
mov dword [esp + 0x18], 0x83768565
mov dword [esp + 0x1c], 0x9f4381a0
mov dword [esp + 0x20], 0x9b169d14
mov dword [esp + 0x24], 0x97649965
mov dword [esp + 0x28], 0x936b951b
mov dword [esp + 0x2c], 0xaf5c9163
mov dword [esp + 0x30], 0xab45ad8c
mov dword [esp + 0x34], 0xa72aa955
mov dword [esp + 0x38], 0xa35ba528
mov dword [esp + 0x3c], 0xbf45a152
mov dword [esp + 0x40], 0xbb5ebd33
lea eax, [esp + 0x44]
mov word [esp + 0x44], 0xb9b8
mov dword [esp + 0x46], 0
mov dword [esp + 0x4a], 0
mov dword [esp + 0x4e], 0
mov dword [esp + 0x52], 0
mov dword [esp + 0x56], 0
mov dword [esp + 0x84], 0
mov ecx, dword [esp + 0x84]
cmp ecx, 0x49
ja 0x417396
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x84]
add cl, 0xc2
xor cl, byte [esp + edx + 0x10]
add cl, 0xb2
mov edx, dword [esp + 0x84]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 0x84]
mov ecx, dword [esp + 0x84]
cmp ecx, 0x4a
jb 0x417360
lea edi, [esp + 0x84]
lea edx, [esp + 0x10]
mov ecx, 0xd
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
lea edi, [esp + 0xb8]
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
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [esi + eax + 2], 0
lea eax, [eax + 2]
jne 0x4173d0
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 0x4173f0
sar eax, 1
sar ecx, 1
lea edx, [eax + ecx]
add edx, 0x1b
test edx, edx
jns 0x417410
mov eax, 0xffffffff
jmp 0x417417
add eax, ecx
add eax, eax
add eax, 0x36
push eax
call fcn.00435d80
add esp, 4
movzx ecx, word [esi]
mov dword [esp + 0xc], eax
test cx, cx
je 0x417451
add esi, 2
mov eax, dword [esp + 0xc]
nop
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 0x417440
mov word [eax], 0
movzx ecx, word [esp + 0x84]
test cx, cx
je 0x417481
lea edx, [esp + 0x86]
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x417470
mov word [eax], 0
movzx ecx, word [edi]
test cx, cx
je 0x4174b1
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 0x4174a0
mov word [eax], 0
mov dword [esp + 0x10], 0xeb8fd5e7
mov dword [esp + 0x14], 0xef9ce962
mov dword [esp + 0x18], 0xe39eed95
mov dword [esp + 0x1c], 0xe79fe197
mov dword [esp + 0x20], 0xfb96e597
mov dword [esp + 0x24], 0xffc9f98f
mov word [esp + 0x28], 0xfdfe
mov dword [esp + 0x2a], 0
mov dword [esp + 0x2e], 0
mov dword [esp + 0x32], 0
mov dword [esp + 0x36], 0
mov dword [esp + 0x68], 0
mov eax, dword [esp + 0x68]
cmp eax, 0x29
ja 0x417557
nop
nop
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x68]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax - 0x6487e7a3]
and edx, ecx
add eax, ecx
add eax, 0x9b78185d
add edx, edx
sub eax, edx
add al, 0x75
mov ecx, dword [esp + 0x68]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 0x68]
mov eax, dword [esp + 0x68]
cmp eax, 0x2a
jb 0x417520
lea eax, [esp + 0x28]
lea edi, [esp + 0x68]
lea edx, [esp + 0x10]
mov ecx, 6
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
lea edi, [esp + 0x80]
mov ecx, 1
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov edi, dword [ebx]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + eax + 2], 0
lea eax, [eax + 2]
jne 0x417590
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 0x4175b0
sar eax, 1
sar ecx, 1
mov edx, dword [ebp + 0x10]
mov ebx, dword [edx]
inc eax
mov edx, ecx
and edx, eax
mov dword [esp + 8], edx
mov edx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + edx + 2], 0
lea edx, [edx + 2]
jne 0x4175e0
xor ecx, eax
sar edx, 1
mov eax, dword [esp + 8]
lea eax, [ecx + eax*2]
lea ecx, [edx + eax]
add ecx, 0xd
test ecx, ecx
jns 0x417607
mov eax, 0xffffffff
jmp 0x41760e
add eax, edx
add eax, eax
add eax, 0x1a
push eax
call fcn.00435d80
add esp, 4
movzx ecx, word [edi]
mov dword [esp + 8], eax
test cx, cx
je 0x417641
add edi, 2
mov eax, dword [esp + 8]
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x417630
mov word [eax], 0x2f
add eax, 2
movzx ecx, word [esi]
test cx, cx
je 0x417671
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 0x417660
mov word [eax], 0
movzx ecx, word [esp + 0x68]
test cx, cx
je 0x4176a3
lea edx, [esp + 0x6a]
mov esi, dword [esp + 0xc]
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 0x417690
jmp 0x4176a7
mov esi, dword [esp + 0xc]
mov word [eax], 0
movzx ecx, word [ebx]
test cx, cx
je 0x4176d1
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 0x4176c0
mov word [eax], 0
mov dword [esp + 0x2b], 0
mov dword [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], 0x4b545508
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x1e
ja 0x417772
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 + 0x4d]
and edx, ecx
add eax, ecx
add edx, edx
sub eax, edx
add eax, 0xb62214d
mov ecx, eax
xor ecx, 0xe4
and eax, 0x64
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x1f
jb 0x417730
push 0
push 0
push 0xc00000
lea eax, [esp + 0x1c]
push eax
push esi
push dword [esp + 0x1c]
push dword [ebp + 8]
call fcn.0041a470
add esp, 0x1c
mov ebx, eax
mov eax, dword [0x4429fc]
mov ecx, 0xbe5381de
xor ecx, dword [0x442a04]
add eax, ecx
inc eax
jmp eax