Function at 0x435550
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f6f8
push 0x51bf78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00452de0
mov eax, dword [eax]
cmp eax, dword [0x5c55a4]
je 0x435655
mov dword [ebp - 0x24], ebx
lea eax, [ebp - 0x24]
push eax
call fcn.00453060
mov esi, dword [eax]
cmp dword [ebp + 8], 0
jne 0x4355f1
mov dword [ebp - 0x28], edi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00452de0
mov eax, dword [eax]
cmp eax, dword [0x5c55a4]
je 0x43560f
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x2c], edi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00452de0
mov eax, dword [eax]
cmp eax, dword [0x5c55a4]
jne 0x4356ad
call fcn.004c6860
call fcn.004c7100
push 0x5aa140
mov edx, edi
xor ecx, ecx
call fcn.004c6960
add esp, 4
push 1
push 0x5aa140
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dl, 1
mov ecx, 0x5afc30
call fcn.004c66d0
mov esi, eax
mov dl, 1
mov ecx, ebx
call fcn.004c66d0
nop dword [eax]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x435690
test cl, cl
je 0x43568c
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x435690
add eax, 2
add esi, 2
test cl, cl
jne 0x435670
xor eax, eax
jmp 0x435695
sbb eax, eax
or eax, 1
test eax, eax
jne 0x435797
cmp byte [0x5c634c], al
je 0x4356c7
lea ecx, [eax + 0x2f]
call fcn.00424bb0
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.svchost
push edi
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
call esi
test eax, eax
jne 0x4356e5
push str.lsass.
push edi
call esi
test eax, eax
je 0x4356ef
mov ecx, 0x2d
call fcn.00424bb0
push 1
push str.c_.txt
push str.sample.dll
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4357e4
mov esi, 1
mov dword [ebp - 0x1c], esi
mov byte [0x5c634c], 1
mov eax, dword [0x5c60ec]
test eax, eax
jne 0x435748
push 0x100
call fcn.004da034
add esp, 4
mov dword [0x5c60ec], eax
test eax, eax
jne 0x435748
push ecx
lea ecx, [esi + 0x28]
call fcn.004c3fd0
add esp, 4
mov eax, dword [0x5c60ec]
push edi
push 0x100
push eax
call fcn.004d97bd
add esp, 0xc
mov dword [ebp - 0x30], edi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00452de0
mov eax, dword [eax]
cmp eax, dword [0x5c55a4]
je 0x4357e9
mov dword [ebp - 0x34], edi
lea eax, [ebp - 0x34]
push eax
call fcn.00452e60
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, ebx
call fcn.004c7060
mov edx, 1
test eax, eax
mov al, byte [0x5c6328]
movzx ecx, al
je 0x4357d9
test al, al
cmove ecx, edx
mov byte [0x5c6328], cl
mov esi, edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test al, al
cmove ecx, edx
mov byte [0x5c6328], cl
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret