Function at 0x4027b0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x90
mov esi, esp
mov dword [esi + 8], edx
mov dword [esi + 0xc], ecx
mov eax, dword [0x450014]
xor eax, ebp
mov dword [esi + 0x88], eax
xor eax, eax
lea ecx, [esi + 0x30]
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov dword [ecx + 8], eax
pcmpeqd xmm0, xmm0
lea edi, [esi + 0x40]
movdqa xmmword [edi], xmm0
push edi
call dword [sym.imp.KERNEL32.DLL_GetSystemTime]
xor eax, eax
dec eax
lea ecx, [esi + 0x50]
mov dword [ecx + 0x30], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [ecx + 0x20], xmm0
movdqa xmmword [ecx + 0x10], xmm0
movdqa xmmword [ecx], xmm0
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov dword [esi + 4], eax
movzx eax, word [edi + 0xe]
mov dword [esi + 0x10], eax
movzx eax, word [edi]
mov edx, eax
shr edx, 2
imul edx, edx, 0x147b
shr edx, 0x11
imul edx, edx, 0x64
sub eax, edx
movzx edx, word [edi + 0xc]
movzx eax, ax
mov dword [esi + 0x1c], eax
movzx eax, word [edi + 0xa]
movzx ecx, word [edi + 8]
movzx ebx, word [edi + 6]
mov dword [esi + 0x14], ebx
movzx ebx, word [edi + 2]
mov dword [esi + 0x18], ebx
push dword [esi + 4]
push dword [esi + 0x10]
push edx
push eax
push ecx
push dword [esi + 0x14]
push dword [esi + 0x18]
push dword [esi + 0x1c]
push str._02d_02d_02d_02d_02d_02d_03d_d
push 0x1a
lea ebx, [esi + 0x50]
push ebx
call fcn.00402c80
add esp, 0x2c
lea ecx, [esi + 0x30]
push ebx
call fcn.0040b4a0
xor eax, eax
dec eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov edi, dword [esi + 8]
xor eax, eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], eax
movzx ebx, byte [edi + 0xb]
mov eax, ebx
test bl, bl
jns 0x4028a8
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
push str.Opera_installer_
call fcn.0041ce38
add esp, 4
test bl, bl
jns 0x4028be
mov edi, dword [edi]
mov ecx, dword [esi + 4]
lea ebx, [ecx + eax]
cmp ebx, 0x7ffffff0
jae 0x402bd4
mov dword [esi + 8], edi
cmp ebx, 4
mov dword [esi + 0x10], eax
ja 0x4028e3
lea edi, [esi + 0x20]
mov byte [edi + 0xb], cl
jmp 0x402909
add ebx, 8
and ebx, 0xfffffff8
lea eax, [ebx + ebx]
push eax
call fcn.0040bca2
add esp, 4
mov edi, eax
mov ecx, dword [esi + 4]
mov dword [esi + 0x20], eax
or ebx, 0x80000000
mov dword [esi + 0x28], ebx
mov dword [esi + 0x24], ecx
lea ebx, [esi + 0x30]
test ecx, ecx
je 0x402925
mov eax, dword [esi + 4]
add eax, eax
push eax
push dword [esi + 8]
push edi
call fcn.0040ed50
mov ecx, dword [esi + 4]
add esp, 0xc
mov word [edi + ecx*2], 0
lea edi, [esi + 0x20]
mov ecx, edi
push dword [esi + 0x10]
push str.Opera_installer_
call fcn.0040b5e0
movzx eax, byte [esi + 0x3b]
test al, al
cmovs eax, dword [esi + 0x34]
cmovs ebx, dword [esi + 0x30]
mov ecx, edi
push eax
push ebx
call fcn.0040b5e0
mov ecx, dword [eax + 8]
lea edi, [esi + 0x50]
mov dword [edi + 8], ecx
movsd xmm0, qword [eax]
movsd qword [edi], xmm0
xor ebx, ebx
mov dword [eax], ebx
mov dword [eax + 8], ebx
mov dword [eax + 4], ebx
mov ecx, edi
push 0x44a472
call fcn.00409820
mov ecx, dword [eax + 8]
mov dword [esi + 0x48], ecx
movsd xmm0, qword [eax]
movsd qword [esi + 0x40], xmm0
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax], ebx
cmp byte [edi + 0xb], 0
jns 0x4029a3
push dword [esi + 0x50]
call fcn.0040bcd2
add esp, 4
cmp byte [esi + 0x2b], 0
lea edi, [esi + 0x40]
jns 0x4029b7
push dword [esi + 0x20]
call fcn.0040bcd2
add esp, 4
cmp byte [esi + 0x4b], 0
jns 0x4029c0
mov edi, dword [esi + 0x40]
mov ebx, dword [ebp + 0x10]
sub esp, 0x1c
movaps xmm0, xmmword [0x44a210]
movups xmmword [esp + 4], xmm0
mov dword [esp], edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [esi + 4], eax
inc eax
mov dword [esi + 8], eax
cmp eax, 2
jae 0x402a87
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea edi, [esi + 0x50]
mov dword [edi], 0xc7
mov dword [edi + 4], eax
mov ecx, ebx
xor ebx, ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0x10], ebx
mov edx, edi
call fcn.00401f90
cmp byte [edi + 0x13], 0
jns 0x402a32
push dword [esi + 0x58]
call fcn.0040bcd2
add esp, 4
mov edi, dword [esi + 0xc]
mov dword [edi + 4], ebx
mov dword [edi], ebx
mov dword [edi + 8], ebx
mov ebx, dword [esi + 8]
cmp ebx, 2
jb 0x402a4e
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp byte [esi + 0x4b], 0
jns 0x402a5f
push dword [esi + 0x40]
call fcn.0040bcd2
add esp, 4
cmp byte [esi + 0x3b], 0
jns 0x402a70
push dword [esi + 0x30]
call fcn.0040bcd2
add esp, 4
mov ecx, dword [esi + 0x88]
xor ecx, ebp
call fcn.0040c1d8
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp ebx, edi
je 0x402abd
mov dword [esi + 0x20], 0xffffffff
mov eax, edi
sub eax, ebx
push 0
lea ecx, [esi + 0x20]
push ecx
push eax
push dword [ebp + 0xc]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x402ae7
mov eax, dword [esi + 0x20]
test eax, eax
je 0x402ae7
add ebx, eax
jmp 0x402a8c
mov ebx, esp
xor eax, eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x58], eax
push eax
sub esp, 8
mov ecx, esp
cmp byte [esi + 0x4b], 0
js 0x402b0e
mov eax, dword [esi + 0x48]
mov dword [ecx + 8], eax
movsd xmm0, qword [esi + 0x40]
movsd qword [ecx], xmm0
jmp 0x402b19
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea edi, [esi + 0x50]
mov dword [edi], 0xd0
mov dword [edi + 4], eax
xor ebx, ebx
lea eax, [esi + 0x58]
mov dword [eax + 8], ebx
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov ecx, dword [ebp + 0x10]
jmp 0x402a1a
push dword [esi + 0x44]
push dword [esi + 0x40]
call fcn.0040b440
lea edi, [esi + 0x50]
mov ecx, edi
call fcn.00402be0
mov esp, ebx
cmp byte [edi + 0xb], 0
js 0x402b42
mov eax, dword [esi + 0x58]
mov ecx, dword [esi + 0xc]
mov dword [ecx + 8], eax
movsd xmm0, qword [esi + 0x50]
movsd qword [ecx], xmm0
mov ebx, dword [esi + 8]
jmp 0x402b59
mov ecx, dword [esi + 0xc]
push dword [esi + 0x54]
push dword [esi + 0x50]
call fcn.0040b440
cmp byte [esi + 0x5b], 0
mov ebx, dword [esi + 8]
js 0x402bbe
mov word [esi + 0x50], 0
mov byte [esi + 0x5b], 0
mov ecx, dword [esi + 0x54]
xor eax, eax
test al, al
movzx edx, al
cmovs edx, ecx
test edx, edx
je 0x402ba3
test al, al
jns 0x402b7b
mov edi, dword [esi + 0x50]
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp byte [esi + 0x5b], 0
mov edi, dword [esi + 0xc]
jns 0x402a40
mov eax, dword [esi + 0x50]
mov word [eax], 0
mov dword [esi + 0x54], 0
mov al, byte [esi + 0x5b]
jmp 0x402ba6
mov edi, dword [esi + 0xc]
test al, al
jns 0x402a40
push dword [esi + 0x50]
call fcn.0040bcd2
add esp, 4
jmp 0x402a40
mov eax, dword [esi + 0x50]
mov word [eax], 0
mov dword [esi + 0x54], 0
xor ecx, ecx
mov al, byte [esi + 0x5b]
jmp 0x402b68
lea ecx, [esi + 0x20]
call fcn.0043fe20
int3