Function at 0x418690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
push ebx
push esi
lea eax, [esp + 0x58]
mov dword [esp + 0x58], 0xc
mov dword [esp + 0x90], eax
mov esi, ecx
push edi
lea eax, [esp + 0x98]
mov dword [esp + 0x60], 2
push eax
mov word [esp + 0x68], 0
mov dword [esp + 0x84], 0x18
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x24], 0
mov word [esp + 0x28], 0x500
mov dword [esp + 0x44], 0x21212121
mov dword [esp + 0x48], 0x21212121
mov dword [esp + 0x40], 0
mov dword [esp + 0x7c], 0x3e7
mov dword [esp + 0x80], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
call fcn.00418a20
xor ecx, ecx
mov edi, 0xcc
xor word [eax + ecx*2], di
inc ecx
cmp ecx, 0x3f
jb 0x418758
lea ecx, [esp + 0x2c]
push ecx
push eax
call dword [0x4252e8]
lea eax, [esp + 0x98]
push eax
call fcn.00418b20
xor ecx, ecx
lea ecx, [ecx]
xor word [eax + ecx*2], di
inc ecx
cmp ecx, 0x40
jb 0x418780
lea ecx, [esp + 0x28]
push ecx
push eax
call dword [0x4252e8]
mov dword [esp + 0x12], 0xbe8fbb96
xor eax, eax
mov dword [esp + 0x16], 0xa9b8ada9
mov dword [esp + 0x1a], 0xa9a7a398
mov word [esp + 0x1e], 0xcca2
xor byte [esp + eax + 0x12], 0xcc
inc eax
cmp eax, 0xe
jb 0x4187b7
lea eax, [esp + 0x12]
push eax
push str.ntdll
call dword [0x425414]
push eax
call dword [0x4251a8]
mov dword [esp + 0x50], eax
test eax, eax
je 0x418a0d
mov edx, 1
mov ecx, esi
call fcn.004185e0
mov edx, 3
mov dword [esp + 0x30], eax
mov ecx, esi
call fcn.004185e0
mov edx, 2
mov dword [esp + 0x34], eax
mov ecx, esi
call fcn.004185e0
mov edx, 5
mov ecx, esi
mov edi, eax
call fcn.004185e0
mov edx, 6
mov dword [esp + 0x38], eax
mov ecx, esi
call fcn.004185e0
mov ebx, eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
lea eax, [esp + 0x48]
mov dword [esp + 0x7c], ebx
push eax
call dword [0x4250e0]
lea eax, [esp + 0x68]
push eax
call dword [0x425244]
mov eax, dword [esp + 0x68]
lea edx, [edi + 4]
mov dword [esp + 0x48], eax
xor esi, esi
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x4c], eax
cmp dword [edi], esi
jbe 0x4188cc
jmp 0x418880
mov ecx, dword [edx]
movzx eax, byte [ecx + 1]
mov eax, dword [ecx + eax*4 + 4]
cmp eax, 0xb
jne 0x41889c
mov eax, dword [esp + 0x28]
mov dword [edx], eax
mov eax, 4
jmp 0x4188c1
test eax, eax
jne 0x4188ad
mov eax, dword [esp + 0x2c]
mov dword [edx], eax
mov eax, 4
jmp 0x4188c1
cmp eax, 0x220
jne 0x4188bb
mov eax, 4
jmp 0x4188c1
mov eax, dword [edx + 4]
and eax, 0xffffffeb
mov dword [edx + 4], eax
inc esi
add edx, 8
cmp esi, dword [edi]
jb 0x418880
push 4
push 8
push dword [0x425ba8]
call dword [0x425358]
mov esi, eax
test esi, esi
jne 0x418903
push 0x80
call dword [0x425428]
push 4
push 8
push dword [0x425ba8]
call dword [0x425358]
mov esi, eax
test esi, esi
je 0x4188e2
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
mov dword [esi], eax
lea eax, [esp + 0x40]
push eax
push ebx
push dword [esp + 0x40]
lea eax, [esp + 0x7c]
mov dword [esp + 0x7c], 0xffffffff
push esi
push dword [esp + 0x44]
mov dword [esp + 0x88], 0xffffffff
push edi
push ecx
push eax
lea eax, [esp + 0x98]
push eax
push 2
lea eax, [esp + 0xa8]
push eax
push 0xf01ff
lea eax, [esp + 0x88]
push eax
call dword [esp + 0x84]
push dword [esp + 0x30]
mov ebx, eax
push 0
push dword [0x425ba8]
call dword [0x425290]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x418985
push eax
push 0
push dword [0x425ba8]
call dword [0x425290]
push edi
push 0
push dword [0x425ba8]
call dword [0x425290]
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4189ab
push eax
push 0
push dword [0x425ba8]
call dword [0x425290]
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4189c2
push eax
push 0
push dword [0x425ba8]
call dword [0x425290]
push esi
push 0
push dword [0x425ba8]
call dword [0x425290]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4189e0
push eax
call dword [0x4252d4]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4189ef
push eax
call dword [0x4252d4]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4189fe
push eax
call dword [0x42531c]
test ebx, ebx
jne 0x418a0d
mov eax, dword [esp + 0x58]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret