Function at 0x418716
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4692f5
call fcn.004685c0
sub esp, 0x100
push ebx
xor ebx, ebx
push esi
mov esi, ebx
mov edx, ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], ebx
movaps xmm0, xmmword [0x47fa60]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
movups xmmword [ebp - 0x57], xmm0
mov word [ebp - 0x47], 0xa9b8
mov byte [ebp - 0x45], bl
mov cl, byte [ebp - 0x57]
not cl
xor byte [ebp + edx - 0x56], cl
inc edx
cmp edx, 0x11
jb 0x41874f
cmp dword [0x48aba8], 0x10
mov eax, 0x48ab94
mov byte [ebp - 0x45], bl
cmovae eax, dword [0x48ab94]
push eax
call fcn.0044759e
pop ecx
lea edx, [ebp - 0x56]
mov ecx, eax
call fcn.004354d9
mov byte [ebp - 0x30], bl
lea edx, [ebp - 0x80]
push dword [ebp - 0x30]
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
call fcn.004157f9
pop ecx
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 1
call fcn.0040cd0e
lea ecx, [ebp - 0x9c]
mov byte [ebp - 0x15], al
mov byte [ebp - 4], bl
call fcn.00413b3d
cmp byte [ebp - 0x15], 0
je 0x418d52
mov cl, 0x74
mov dword [ebp - 0x44], 0xe7eadc74
mov dword [ebp - 0x40], 0xf8ffeee7
mov edx, ebx
mov byte [ebp - 0x3c], bl
not cl
xor byte [ebp + edx - 0x43], cl
inc edx
cmp edx, 7
jae 0x4187f3
mov cl, byte [ebp - 0x44]
jmp 0x4187e2
mov byte [ebp - 0x3c], bl
call fcn.00435972
lea edx, [ebp - 0x43]
mov ecx, eax
call fcn.004354d9
mov edi, eax
mov dword [ebp - 0x4c], ebx
push edi
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], bl
call fcn.00413d68
lea ecx, [ebp - 0x5c]
call fcn.0040d215
lea ecx, [ebp - 0x5c]
call fcn.00413d07
mov cl, 0x47
mov dword [ebp - 0x50], 0xd9fce447
mov dword [ebp - 0x4c], 0xd4d9dcdd
mov edx, ebx
mov dword [ebp - 0x48], 0xe4cbcd
not cl
xor byte [ebp + edx - 0x4f], cl
inc edx
cmp edx, 0xa
jae 0x418857
mov cl, byte [ebp - 0x50]
jmp 0x418846
lea edx, [ebp - 0x4f]
mov byte [ebp - 0x45], bl
mov ecx, edi
call fcn.004354d9
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], bl
call fcn.00413d68
lea ecx, [ebp - 0x74]
call fcn.0040d215
lea ecx, [ebp - 0x74]
call fcn.00413d07
mov byte [ebp - 0x78], bl
lea edx, [ebp - 0x80]
push dword [ebp - 0x78]
lea ecx, [ebp - 0x9c]
call fcn.004157f9
pop ecx
lea eax, [ebp - 0x9c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0xc0]
call fcn.0040c695
lea ecx, [ebp - 0x9c]
call fcn.00413b3d
lea eax, [ebp - 0xc0]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040d946
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], edi
lea eax, [ebp - 0xc0]
push eax
lea ecx, [ebp - 0xe4]
call fcn.0040d946
mov ecx, dword [ebp - 0xe0]
xorps xmm0, xmm0
movlpd qword [ebp - 0xac], xmm0
mov edx, ebx
mov dword [ebp - 0xac], edx
mov dword [ebp - 0xa8], ebx
test ecx, ecx
je 0x418929
call fcn.0040b03f
mov edx, ebx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x2c]
cmp eax, edx
je 0x418d2f
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.0040c2ea
test al, al
je 0x418a43
mov edi, dword [ebp - 0x78]
lea eax, [ebp - 0xfc]
push eax
lea ecx, [edi + 0x20]
call fcn.0040bc87
push ecx
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 8
push ecx
or esi, 1
mov ecx, eax
mov dword [ebp - 0x20], esi
call fcn.004143b3
or esi, 0x100
mov dword [ebp - 4], 9
or esi, 2
mov dword [ebp - 0x1c], esi
mov cl, 0x23
mov dword [ebp - 0x20], esi
mov edx, ebx
mov dword [ebp - 0x37], 0xbfbd9f23
mov word [ebp - 0x33], 0xb9b4
mov byte [ebp - 0x31], bl
not cl
xor cl, byte [ebp + edx - 0x36]
mov byte [ebp + edx - 0x36], cl
inc edx
cmp edx, 5
jae 0x4189b2
mov cl, byte [ebp - 0x37]
jmp 0x41899d
push ecx
lea eax, [ebp - 0x36]
mov byte [ebp - 0x31], bl
push eax
lea ecx, [ebp - 0x74]
call fcn.00413247
cmp eax, 0xffffffff
jne 0x418a43
lea eax, [ebp - 0xd8]
push eax
lea ecx, [edi + 0x20]
call fcn.0040bc87
push ecx
lea ecx, [ebp - 0x9c]
mov dword [ebp - 4], 0xa
push ecx
or esi, 4
mov ecx, eax
mov dword [ebp - 0x20], esi
call fcn.004143b3
or esi, 0x808
mov dword [ebp - 0x2b], 0xe2ebe07c
mov dword [ebp - 0x1c], esi
mov cl, 0x7c
mov dword [ebp - 0x20], esi
mov edx, ebx
mov word [ebp - 0x27], 0xedea
mov byte [ebp - 0x25], bl
not cl
xor cl, byte [ebp + edx - 0x2a]
mov byte [ebp + edx - 0x2a], cl
inc edx
cmp edx, 5
jae 0x418a27
mov cl, byte [ebp - 0x2b]
jmp 0x418a12
push ecx
lea eax, [ebp - 0x2a]
mov byte [ebp - 0x25], bl
push eax
lea ecx, [ebp - 0x9c]
call fcn.00413247
mov byte [ebp - 0x15], 1
cmp eax, 0xffffffff
je 0x418a46
mov byte [ebp - 0x15], bl
mov eax, dword [ebp - 0x1c]
test al, 8
je 0x418a64
and eax, 0xfffffff7
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
call fcn.00413d07
mov eax, dword [ebp - 0x1c]
test al, 4
je 0x418a7f
and eax, 0xfffffffb
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
call fcn.00413b3d
mov eax, dword [ebp - 0x1c]
test al, 2
je 0x418a97
and eax, 0xfffffffd
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
call fcn.00413d07
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 7
test al, 1
je 0x418ab6
and eax, 0xfffffffe
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
call fcn.00413b3d
cmp byte [ebp - 0x15], 0
je 0x418be3
mov eax, dword [ebp - 0x78]
lea ecx, [ebp - 0xfc]
push ecx
lea ecx, [eax + 0x20]
call fcn.0040bc87
push ecx
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0xb
push ecx
mov ecx, eax
call fcn.004143b3
mov esi, dword [ebp - 0x1c]
or esi, 0x4000
mov dword [ebp - 0x20], esi
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x74]
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x60], 0x10
cmovae edx, dword [ebp - 0x74]
call fcn.004354d9
mov edi, eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x1c], edi
call fcn.00413d07
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 7
call fcn.00413b3d
push edi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], bl
call fcn.00413d68
lea ecx, [ebp - 0x74]
call fcn.0040d215
lea ecx, [ebp - 0x74]
call fcn.00413d07
mov byte [ebp - 0xb0], bl
lea edx, [ebp - 0x1c]
push dword [ebp - 0xb0]
lea ecx, [ebp - 0xd8]
call fcn.004157f9
pop ecx
push ecx
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x74]
mov ecx, dword [ebp - 0x78]
push eax
lea ecx, [ecx + 0x20]
call fcn.004143b3
or esi, 0x80000
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0xb4], bl
lea edx, [ebp - 0x74]
push dword [ebp - 0xb4]
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0xe
call fcn.004157c7
pop ecx
push 0x12
lea edx, [ebp - 0xd8]
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x9c]
call fcn.0040d185
pop ecx
lea ecx, [ebp - 0x9c]
call fcn.00413b3d
lea ecx, [ebp - 0x74]
call fcn.00413d07
lea ecx, [ebp - 0xd8]
call fcn.00413b3d
push edi
call fcn.0044061a
pop ecx
jmp 0x418cc3
mov esi, dword [ebp - 0x78]
lea eax, [ebp - 0x44]
push eax
mov ecx, esi
call fcn.0040c36d
mov ecx, eax
cmp dword [ecx], 2
mov eax, dword [ecx + 4]
mov dword [ebp - 0x78], eax
jne 0x418cc0
lea eax, [ebp - 0xfc]
lea edi, [esi + 0x20]
push eax
mov ecx, edi
call fcn.0040bc87
push ecx
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0x10
push ecx
mov ecx, eax
call fcn.004143b3
mov esi, dword [ebp - 0x1c]
or esi, 0x1000000
mov dword [ebp - 0x20], esi
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x9c]
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x88], 0x10
cmovae edx, dword [ebp - 0x9c]
call fcn.004354d9
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], bl
call fcn.00413d68
push ecx
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 0x12
push eax
mov ecx, edi
call fcn.004143b3
or esi, 0x8000000
lea edx, [ebp - 0x74]
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
call fcn.00416050
lea ecx, [ebp - 0xd8]
call fcn.00413d07
lea ecx, [ebp - 0x74]
call fcn.00413d07
lea ecx, [ebp - 0x9c]
call fcn.00413d07
lea ecx, [ebp - 0xfc]
call fcn.00413b3d
jmp 0x418cc3
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 4], 6
jmp 0x418d0a
lea ecx, [ebp - 0xa4]
call fcn.0040c6e2
mov eax, dword [ebp - 0xa4]
mov edi, dword [ebp - 0xa0]
mov edx, dword [ebp - 0xac]
mov dword [ebp - 0x78], eax
jmp 0x418930
test edi, edi
je 0x418d3a
mov ecx, edi
call fcn.0040b03f
mov ecx, dword [ebp - 0xbc]
test ecx, ecx
je 0x418d49
call fcn.0040b03f
push dword [ebp - 0x30]
call fcn.0044061a
pop ecx
push dword [ebp - 0x84]
call fcn.0044061a
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret