Function at 0x401f90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov dword [ebp - 8], ecx
mov ecx, 0x524e73
push edi
call fcn.004e6414
mov edx, dword [ebp + 8]
lea esi, [ebp - 0x23]
add edx, 8
mov edi, 4
mov dword [ebp - 0x14], edx
nop word [eax + eax]
movzx eax, byte [edx - 8]
lea edx, [edx + 1]
mov byte [esi - 1], al
lea esi, [esi + 4]
movzx eax, byte [edx - 5]
mov byte [esi - 4], al
movzx eax, byte [edx - 1]
mov byte [esi - 3], al
movzx eax, byte [edx + 3]
mov byte [esi - 2], al
sub edi, 1
jne 0x401fc0
mov esi, dword [ebp - 8]
lea ecx, [ebp - 0x20]
mov edi, 4
lea edx, [esi + 0x2a8]
nop dword [eax + eax]
movzx eax, byte [edx - 4]
lea ecx, [ecx + 1]
xor byte [ecx - 5], al
lea edx, [edx + 1]
movzx eax, byte [edx - 1]
xor byte [ecx - 1], al
movzx eax, byte [edx + 3]
xor byte [ecx + 3], al
movzx eax, byte [edx + 7]
xor byte [ecx + 7], al
sub edi, 1
jne 0x402000
add esi, 0x298
mov dword [ebp - 0xc], 9
mov dword [ebp - 0x10], esi
nop word [eax + eax]
mov edi, 4
mov ecx, edi
mov dword [ebp - 4], ecx
nop word [eax + eax]
lea esi, [ecx - 1]
mov eax, esi
and eax, reloc.WS2_32.dll_closesocket
jns 0x402061
dec eax
or eax, 0xfffffffc
inc eax
add eax, edi
mov bl, byte [ebp + eax - 0x24]
mov eax, ecx
and eax, 3
add eax, edi
mov dl, byte [ebp + eax - 0x24]
lea eax, [ecx + 1]
and eax, reloc.WS2_32.dll_closesocket
jns 0x402081
dec eax
or eax, 0xfffffffc
inc eax
add eax, edi
mov cl, byte [ebp + eax - 0x24]
mov eax, dword [ebp - 4]
add eax, 2
and eax, reloc.WS2_32.dll_closesocket
jns 0x402099
dec eax
or eax, 0xfffffffc
inc eax
add eax, edi
mov dword [ebp - 4], esi
mov al, byte [ebp + eax - 0x24]
mov byte [ebp + edi - 0x22], cl
mov ecx, esi
mov byte [ebp + edi - 0x24], bl
mov byte [ebp + edi - 0x23], dl
mov byte [ebp + edi - 0x21], al
add edi, 4
cmp ecx, 1
jg 0x402050
mov esi, dword [ebp - 8]
lea edx, [ebp - 0x24]
xor ecx, ecx
lea ebx, [ebp - 0x22]
lea edi, [ebp - 0x21]
nop word [eax + eax]
movzx eax, byte [edx + ecx*4]
movzx eax, byte [eax + esi + 0x104]
mov byte [edx + ecx*4], al
movzx eax, byte [ebp + ecx*4 - 0x23]
movzx eax, byte [eax + esi + 0x104]
mov byte [ebp + ecx*4 - 0x23], al
movzx eax, byte [ebx + ecx*4]
movzx eax, byte [eax + esi + 0x104]
mov byte [ebx + ecx*4], al
movzx eax, byte [edi + ecx*4]
movzx eax, byte [eax + esi + 0x104]
mov byte [edi + ecx*4], al
inc ecx
cmp ecx, 4
jl 0x4020d0
mov esi, dword [ebp - 0x10]
xor edx, edx
mov eax, esi
nop dword [eax + eax]
movzx ecx, byte [eax - 4]
lea eax, [eax + 1]
xor byte [ebp + edx - 0x24], cl
movzx ecx, byte [eax - 1]
xor byte [ebp + edx - 0x20], cl
movzx ecx, byte [eax + 3]
xor byte [ebp + edx - 0x1c], cl
movzx ecx, byte [eax + 7]
xor byte [ebp + edx - 0x18], cl
inc edx
cmp edx, 4
jl 0x402120
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x402159
lea eax, [ebp - 0x24]
push eax
call fcn.00402310
dec ebx
sub esi, 0x10
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esi
test ebx, ebx
jns 0x402040
mov ebx, dword [ebp - 0x14]
lea edx, [ebp - 0x23]
mov esi, 4
nop word [eax + eax]
movzx eax, byte [edx - 1]
lea edx, [edx + 4]
movzx ecx, byte [edx - 3]
lea ebx, [ebx + 1]
mov byte [ebx - 9], al
movzx eax, byte [edx - 4]
mov byte [ebx - 1], cl
movzx ecx, byte [edx - 2]
mov byte [ebx - 5], al
mov byte [ebx + 3], cl
sub esi, 1
jne 0x402180
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4