Function at 0x405b7a
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x456507
call fcn.00430898
sub esp, 0x150
mov eax, dword [0x483cf0]
push ebx
push esi
push edi
xor edi, edi
push edi
mov dword [ebp - 0x10], eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [eax + 0x3c]
add esi, eax
cmp word [esi + 6], di
movzx eax, word [esi + 0x14]
lea eax, [eax + esi + 0x18]
mov dword [ebp - 0x128], edi
jbe 0x405c0f
mov dword [ebp - 0x12c], eax
push str..phs
push dword [ebp - 0x12c]
call fcn.00430270
test eax, eax
pop ecx
pop ecx
je 0x405bf0
movzx eax, word [esi + 6]
inc dword [ebp - 0x128]
add dword [ebp - 0x12c], 0x28
cmp dword [ebp - 0x128], eax
jl 0x405bbf
jmp 0x405c0f
mov eax, dword [ebp - 0x12c]
mov eax, dword [eax + 0xc]
add eax, dword [esi + 0x34]
push 0x1b4
push eax
push 0x484e48
call fcn.0042f7a0
add esp, 0xc
cmp dword [0x484e48], edi
je 0x405dcb
mov esi, 0x104
push esi
lea eax, [ebp - 0x124]
push edi
push eax
call fcn.0042fe20
add esp, 0xc
push esi
lea eax, [ebp - 0x124]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x124]
lea esi, [ebx + 0x24]
push eax
mov ecx, esi
call fcn.00404af7
push dword [0x484ff8]
push edi
push ebx
push esi
call fcn.00405a69
add esp, 0x10
test al, al
je 0x405db3
mov eax, dword [ebx + 4]
lea esi, [ebx + 0x10]
push eax
mov ecx, esi
call fcn.0040538e
cmp dword [0x484e48], edi
je 0x405dcb
mov eax, 0x1b4
xor byte [0x484e4c], 0xe3
dec eax
jne 0x405c90
push str..pecode
lea ecx, [ebp - 0x15c]
call fcn.00404d2a
lea eax, [ebp - 0x15c]
push eax
mov ecx, esi
call fcn.004053fd
push edi
push 1
lea ecx, [ebp - 0x15c]
mov esi, eax
call fcn.00401df9
cmp esi, edi
je 0x405dcb
test byte [esi + 0x27], 0x80
je 0x405dcb
cmp dword [esi + 0x10], edi
je 0x405dcb
push 0x10
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.0042fe20
push 0x10
lea eax, [ebp - 0x20]
push 0x484e4c
push eax
call fcn.0042f7a0
add esp, 0x18
lea ecx, [ebp - 0x130]
call fcn.00409859
push 1
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x130]
mov dword [ebp - 4], edi
call fcn.00409877
mov dword [ebp - 0x13c], edi
mov dword [ebp - 0x138], edi
mov dword [ebp - 0x134], edi
mov eax, dword [esi + 0x10]
push edi
push eax
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 1
call fcn.004059f2
push dword [ebp - 0x13c]
mov ecx, dword [ebx + 4]
mov eax, dword [esi + 0x14]
push dword [esi + 0x10]
add eax, ecx
push eax
lea ecx, [ebp - 0x130]
call fcn.00409994
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 8]
cmp eax, ecx
jb 0x405d70
mov eax, ecx
lea ecx, [ebp - 0x128]
push ecx
push eax
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x34]
push dword [ebp - 0x13c]
add eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
lea ecx, [ebp - 0x140]
jne 0x405db7
call fcn.00420ee9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x130]
call fcn.00409863
xor al, al
jmp 0x405dcd
call fcn.00420ee9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x130]
call fcn.00409863
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0043025e
leave
ret