Function at 0x405fa0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407ec0
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
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 - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
lea edx, [ebp - 0xb0]
mov dword [ebp - 4], 0
call fcn.00405300
test al, al
je 0x4061d8
mov dword [ebp - 0xb8], 0x686a7a23
xor eax, eax
mov word [ebp - 0xb4], 0x65
mov byte [ebp - 0xb2], 1
nop dword [eax]
lea ecx, [eax + 0xd]
xor byte [ebp + eax - 0xb8], cl
inc eax
cmp eax, 5
jb 0x406020
mov esi, dword [ebp - 0x60]
mov ebx, dword [ebp - 0x5c]
mov byte [ebp - 0xb2], 0
cmp esi, ebx
je 0x406061
mov edi, dword [esi]
lea eax, [ebp - 0xb8]
push 8
push eax
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x406063
add esi, 4
cmp esi, ebx
jne 0x406041
xor edi, edi
mov dword [ebp - 0xc0], 0x716b7c23
xor ecx, ecx
mov dword [ebp - 0xbc], 0x1007365
nop dword [eax]
mov al, cl
add al, 0xd
xor byte [ebp + ecx - 0xc0], al
inc ecx
cmp ecx, 6
jb 0x406080
mov eax, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x60]
mov byte [ebp - 0xb9], 0
mov dword [ebp - 0xc4], eax
cmp esi, eax
je 0x4060d4
nop dword [eax + eax]
mov ebx, dword [esi]
lea eax, [ebp - 0xc0]
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 0x4060d6
add esi, 4
cmp esi, dword [ebp - 0xc4]
jne 0x4060b0
xor ebx, ebx
test edi, edi
je 0x4061d8
cmp edi, ebx
jae 0x4061d8
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x44], 2
mov dword [ebp - 0x40], 4
mov dword [ebp - 0x3c], 8
mov dword [ebp - 0x38], 0x10
mov dword [ebp - 0x34], 0x20
mov dword [ebp - 0x30], 0x40
mov dword [ebp - 0x2c], 0x80
mov dword [ebp - 0x28], pe_nt_image_headers32
mov dword [ebp - 0x24], 0x200
mov dword [ebp - 0x20], 0x400
mov dword [ebp - 0x1c], 0x80000000
mov dword [ebp - 0xc4], eax
nop dword [eax]
nop word [eax + eax]
mov esi, dword [eax]
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x4c], 0
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 8]
add eax, 0x1000
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x4c]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edx, [ebp - 0x18]
mov ecx, eax
call fcn.00405180
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x18], 0
mov eax, dword [eax + 0x1c]
add eax, dword [ebx + 0xc]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edx, [ebp - 0x4c]
mov ecx, eax
call fcn.00405180
mov eax, dword [ebp - 0xc4]
lea ecx, [ebp - 0x18]
add eax, 4
mov dword [ebp - 0xc4], eax
cmp eax, ecx
jne 0x406150
mov edx, dword [ebp - 0x60]
test edx, edx
je 0x406211
mov ecx, dword [ebp - 0x58]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x406207
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406207
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 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