Function at 0x454490
Capabilities:
Create process on windows
Read file on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb9c
xor eax, eax
push ebx
push esi
push edi
mov byte [ebp - 0xb9c], 0
mov ecx, 0xff
lea edi, [ebp - 0xb9b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0x59c], 0
mov ecx, 0x7f
lea edi, [ebp - 0x59b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0x79c], 0
mov ecx, 0x7f
lea edi, [ebp - 0x79b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x4a6bb0]
test eax, eax
jne 0x4544f9
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
push edi
push 1
push 2
push 0x4a6ba8
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
test eax, eax
jne 0x45451a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ax, word [0x4a6ba8]
test ax, ax
je 0x4548a5
cmp dword [0x4a6bac], 0x7fff
jbe 0x4545df
lea eax, [ebp - 0xb9c]
push eax
push str.wapopupmsgbox.exe
push 0x4c7f00
call fcn.004107c0
add esp, 0xc
push 0x200
push 0x1393
call fcn.0040f3c0
add esp, 4
push eax
lea ecx, [ebp - 0x79c]
push ecx
call sub.MSVCRT.dll_memcpy
mov edx, dword [0x4a6bac]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
push edx
lea eax, [ebp - 0x79c]
push eax
lea ecx, [ebp - 0x59c]
push ecx
call esi
add esp, 0x18
lea edx, [ebp - 0x59c]
push edx
push 0x1392
call fcn.0040f3c0
add esp, 4
push eax
lea eax, [ebp - 0xb9c]
push str.__t__s__m__s
push eax
call sub.MSVCRT.dll_strlen
lea ecx, [ebp + eax - 0xb9c]
add esp, 4
push ecx
call esi
add esp, 0x10
push 0x18
lea edx, [ebp - 0xb9c]
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
movsx eax, ax
lea eax, [eax + eax*2]
shl eax, 1
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
mov dword [ebp - 0x10], esi
jne 0x454601
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movsx ecx, word [0x4a6ba8]
lea ebx, [esi + ecx*4]
push edi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.MSVCRT.dll_ftell]
mov dword [ebp - 0x18], eax
movsx eax, word [0x4a6ba8]
push edi
lea edx, [eax + eax*2]
push 1
shl edx, 1
push edx
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x14
test eax, eax
jne 0x454649
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov word [ebx], 0
mov ax, word [0x4a6ba8]
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
mov esi, 1
cmp ax, si
jle 0x454758
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
add eax, 2
add ecx, 4
mov edi, 0x104
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov dword [edx], 0xffffffff
mov word [eax], si
mov ecx, dword [0x4a6bb0]
push 0
push edi
push ecx
mov byte [ebp - 0x11c], 0
call ebx
mov edx, dword [0x4a6bb0]
push edx
push 1
lea eax, [ebp - 0x11c]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll_fread]
mov ecx, dword [0x4a6bb0]
push 0
push 0
push ecx
call ebx
add esp, 0x28
test edi, edi
mov dword [ebp - 4], 0
jle 0x45472b
mov edx, dword [0x4a6bb0]
push edx
push 1
lea eax, [ebp - 0x220]
push 0x104
push eax
mov byte [ebp - 0x220], 0
call dword [sym.imp.MSVCRT.dll_fread]
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x11c]
push edx
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 0x18
test eax, eax
je 0x454721
mov eax, dword [ebp - 4]
inc eax
cmp eax, esi
mov dword [ebp - 4], eax
jl 0x4546d7
jmp 0x45472b
mov ax, word [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov word [ecx], ax
mov edx, dword [ebp - 0xc]
mov ax, word [0x4a6ba8]
mov ecx, dword [ebp - 8]
add edx, 2
mov dword [ebp - 0xc], edx
movsx edx, ax
inc esi
add ecx, 4
add edi, 0x104
cmp esi, edx
mov dword [ebp - 8], ecx
jl 0x45467f
mov edi, dword [ebp + 8]
xor ecx, ecx
cmp ax, cx
mov dword [ebp - 0xc], ecx
jle 0x454849
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
mov dword [ebp + 8], edx
mov edx, dword [ebp + 8]
movsx edx, word [edx]
cmp edx, ecx
jne 0x454821
mov eax, dword [ebp - 8]
mov ecx, dword [0x4a6bb0]
push 0
push eax
push ecx
mov byte [ebp - 0x11c], 0
call ebx
mov edx, dword [0x4a6bb0]
push edx
push 1
lea eax, [ebp - 0x11c]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll_fread]
lea ecx, [ebp - 0x39c]
push ecx
lea edx, [ebp - 0x11c]
push edx
push 0x479648
call fcn.004107c0
lea eax, [ebp - 0x39c]
push eax
lea ecx, [ebp - 0x39c]
push 0x4c88e0
push ecx
call fcn.00411fd0
push edi
call dword [sym.imp.MSVCRT.dll_ftell]
push 1
lea edx, [ebp - 0x39c]
push edx
push edi
mov esi, eax
call fcn.004548c0
add esp, 0x44
test eax, eax
jne 0x454810
push eax
push esi
push edi
call ebx
add esp, 0xc
or esi, 0xffffffff
jmp 0x454813
add esi, 4
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dword [eax], esi
mov ax, word [0x4a6ba8]
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 8]
add edx, 2
mov dword [ebp + 8], edx
add dword [ebp - 4], 4
movsx edx, ax
inc ecx
add esi, 0x104
cmp ecx, edx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], esi
jl 0x454775
push edi
call dword [sym.imp.MSVCRT.dll_ftell]
mov esi, eax
mov eax, dword [ebp - 0x18]
push 0
push eax
push edi
call ebx
movsx eax, word [0x4a6ba8]
mov edx, dword [ebp - 0x10]
push edi
lea ecx, [eax + eax*2]
push 1
shl ecx, 1
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x20
test eax, eax
jne 0x454892
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
push 0
push esi
push edi
call ebx
add esp, 0x10
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret