Function at 0x405d50
Capabilities:
Encode data using xor
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407e7d
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x419040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x70]
mov dword [ebp - 4], 0
call fcn.00405300
test al, al
je 0x405f40
mov dword [ebp - 0x9c], 0x686a7a23
xor ecx, ecx
mov word [ebp - 0x98], 0x65
mov byte [ebp - 0x96], 1
nop word [eax + eax]
mov al, cl
add al, 0xd
xor byte [ebp + ecx - 0x9c], al
inc ecx
cmp ecx, 5
jb 0x405dd0
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x1c]
mov byte [ebp - 0x96], 0
cmp esi, edi
je 0x405e18
mov ebx, dword [esi]
lea eax, [ebp - 0x9c]
push 8
push eax
push ebx
mov dword [ebp - 0xb0], ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x405e22
add esi, 4
cmp esi, edi
jne 0x405df2
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0x716b7c23
xor ecx, ecx
mov dword [ebp - 0xa8], 0x1007365
nop dword [eax + eax]
mov al, cl
add al, 0xd
xor byte [ebp + ecx - 0xac], al
inc ecx
cmp ecx, 6
jb 0x405e40
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
mov byte [ebp - 0xa5], 0
mov dword [ebp - 0x9c], eax
cmp esi, eax
je 0x405e90
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
nop
mov edi, dword [esi]
lea eax, [ebp - 0xac]
push 8
push eax
push edi
call ebx
add esp, 0xc
test eax, eax
je 0x405e92
add esi, 4
cmp esi, dword [ebp - 0x9c]
jne 0x405e70
xor edi, edi
mov dword [ebp - 0xa4], 0x646e6a23
xor ecx, ecx
mov word [ebp - 0xa0], 0x70
mov byte [ebp - 0x9e], 1
nop
mov al, cl
add al, 0xd
xor byte [ebp + ecx - 0xa4], al
inc ecx
cmp ecx, 5
jb 0x405eb0
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
mov byte [ebp - 0x9e], 0
mov dword [ebp - 0x9c], eax
cmp esi, eax
je 0x405f04
nop dword [eax + eax]
mov ebx, dword [esi]
lea eax, [ebp - 0xa4]
push 8
push eax
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x405f06
add esi, 4
cmp esi, dword [ebp - 0x9c]
jne 0x405ee0
xor ebx, ebx
mov eax, dword [ebp - 0xb0]
test eax, eax
je 0x405f40
cmp eax, edi
jae 0x405f40
cmp edi, ebx
jae 0x405f40
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [edi + 0xc]
xor edx, edx
mov ecx, dword [ebp - 0x78]
div ecx
test edx, edx
jne 0x405f40
mov eax, dword [ebx + 0xc]
div ecx
test edx, edx
jne 0x405f40
mov bl, 1
jmp 0x405f42
xor bl, bl
mov edx, dword [ebp - 0x20]
test edx, edx
je 0x405f7b
mov ecx, dword [ebp - 0x18]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x405f71
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x405f71
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00406b84
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00406b41
mov esp, ebp
pop ebp
ret