Function at 0x11025590
Capabilities:
Create process on windows
Get common file path
Read file on windows
Terminate process
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x11051d15
mov eax, dword fs:[0]
push eax
sub esp, 0x524
mov eax, dword [0x11064c1c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x218]
push eax
push 0x104
mov dword [ebp - 0x4cc], ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x104
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
xor edi, edi
xor eax, eax
mov word [ebp - 0x4ac], ax
mov ebx, 7
lea eax, [ebp - 0x218]
mov dword [ebp - 0x498], ebx
mov dword [ebp - 0x49c], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x11025614
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x4ac]
call fcn.11023ca0
push 9
push str.xbios.exe
lea ecx, [ebp - 0x4ac]
mov dword [ebp - 4], edi
call fcn.11023b80
cmp dword [ebp - 0x498], 8
mov eax, dword [ebp - 0x4ac]
jae 0x11025660
lea eax, [ebp - 0x4ac]
push 0x1105bee8
push eax
call fcn.11029848
mov esi, eax
add esp, 8
cmp esi, edi
je 0x1102568f
push esi
push 0x1f7f
push 1
push 0x11059ba8
call fcn.1102a49d
push esi
call fcn.110292f8
add esp, 0x14
push 0x44
lea edx, [ebp - 0x530]
push edi
push edx
call fcn.110278e0
add esp, 0xc
xor eax, eax
xor ecx, ecx
push 1
mov word [ebp - 0x474], cx
push 0x1105bee4
lea ecx, [ebp - 0x474]
mov dword [ebp - 0x530], 0x44
mov dword [ebp - 0x504], 1
mov word [ebp - 0x500], ax
mov dword [ebp - 0x4e0], eax
mov dword [ebp - 0x4dc], eax
mov dword [ebp - 0x4d8], eax
mov dword [ebp - 0x4d4], eax
mov dword [ebp - 0x460], ebx
mov dword [ebp - 0x464], edi
call fcn.11023ca0
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x11025710
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x474]
call fcn.11023b80
push 0xb
push str.xbios.exe_
lea ecx, [ebp - 0x474]
call fcn.11023b80
lea eax, [ebp - 0x420]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x11025750
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x474]
call fcn.11023b80
push 9
push str.xbios.txt
lea ecx, [ebp - 0x474]
call fcn.11023b80
cmp dword [ebp - 0x460], 8
mov eax, dword [ebp - 0x474]
jae 0x11025799
lea eax, [ebp - 0x474]
lea ecx, [ebp - 0x4e0]
push ecx
lea edx, [ebp - 0x530]
push edx
push edi
push edi
push 0x8000000
push 1
push edi
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, edi
je 0x1102608f
mov eax, dword [ebp - 0x4e0]
push 0x4e20
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x4e0]
xor ebx, ebx
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp - 0x4e0]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x4dc]
push eax
call esi
xor ecx, ecx
lea eax, [ebp - 0x218]
mov dword [ebp - 0x47c], 7
mov dword [ebp - 0x480], ebx
mov word [ebp - 0x490], cx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x11025820
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x490]
call fcn.11023ca0
push 9
push str.xbios.txt
lea ecx, [ebp - 0x490]
mov byte [ebp - 4], 2
call fcn.11023b80
mov eax, dword [ebp - 0x490]
mov edi, 8
cmp dword [ebp - 0x47c], edi
jae 0x11025871
lea eax, [ebp - 0x490]
push 0x1105beb0
push eax
call fcn.11029848
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x110258fa
cmp dword [ebp - 0x47c], edi
jb 0x1102589c
mov eax, dword [ebp - 0x490]
push eax
call fcn.11027544
add esp, 4
xor ecx, ecx
mov esi, 7
mov dword [ebp - 0x47c], esi
mov dword [ebp - 0x480], ebx
mov word [ebp - 0x490], cx
cmp dword [ebp - 0x460], edi
jb 0x110258cd
mov edx, dword [ebp - 0x474]
push edx
call fcn.11027544
add esp, 4
xor eax, eax
mov dword [ebp - 0x460], esi
mov dword [ebp - 0x464], ebx
mov word [ebp - 0x474], ax
cmp dword [ebp - 0x498], edi
jb 0x110260df
mov ecx, dword [ebp - 0x4ac]
push ecx
jmp 0x110260d7
push 2
push 0
push esi
call fcn.1102a5a1
lea edx, [ebp - 0x4ec]
push edx
push esi
call fcn.1102c971
mov edi, dword [ebp - 0x4ec]
push esi
call fcn.1102c8b3
lea ebx, [edi + 1]
add esp, 0x18
mov eax, ebx
call fcn.11027ad0
mov eax, esp
push esi
push edi
push 1
push eax
mov dword [ebp - 0x4d0], eax
mov byte [eax + edi], 0
call fcn.1102aa7d
push esi
call fcn.110292f8
add esp, 0x14
lea eax, [edi + edi + 2]
call fcn.11027ad0
mov eax, dword [ebp - 0x4d0]
mov esi, esp
push ebx
push esi
push ebx
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
mov eax, esi
mov dword [ebp - 0x428], 7
mov dword [ebp - 0x42c], 0
mov word [ebp - 0x43c], cx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x11025990
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x43c]
call fcn.11023ca0
mov eax, dword [ebp - 0x4ac]
mov esi, 8
mov byte [ebp - 4], 3
cmp dword [ebp - 0x498], esi
jae 0x110259c9
lea eax, [ebp - 0x4ac]
push eax
call fcn.1102c878
mov eax, dword [ebp - 0x490]
add esp, 4
cmp dword [ebp - 0x47c], esi
jae 0x110259e6
lea eax, [ebp - 0x490]
push eax
call fcn.1102c878
add esp, 4
push 5
push 0
push str.Bven:
lea ecx, [ebp - 0x43c]
call fcn.11022ee0
mov esi, eax
cmp esi, 0xffffffff
je 0x11025a61
push 1
push esi
push 0x11053fa8
lea ecx, [ebp - 0x43c]
call fcn.11022ee0
cmp eax, 0xffffffff
je 0x11025a61
sub eax, esi
sub eax, 5
push eax
add esi, 5
push esi
lea edx, [ebp - 0x458]
push edx
lea ecx, [ebp - 0x43c]
call fcn.11024950
mov ebx, dword [ebp - 0x4cc]
push eax
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.11024990
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 3
call fcn.11023330
jmp 0x11025a67
mov ebx, dword [ebp - 0x4cc]
push 5
push 0
push str.Bver:
lea ecx, [ebp - 0x43c]
call fcn.11022ee0
mov esi, eax
cmp esi, 0xffffffff
je 0x11025ad2
push 1
push esi
push 0x11053fa8
lea ecx, [ebp - 0x43c]
call fcn.11022ee0
cmp eax, 0xffffffff
je 0x11025ad2
sub eax, esi
sub eax, 5
push eax
add esi, 5
push esi
lea eax, [ebp - 0x458]
push eax
lea ecx, [ebp - 0x43c]
call fcn.11024950
push eax
lea ecx, [ebx + 0x1c]
mov byte [ebp - 4], 5
call fcn.11024990
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 3
call fcn.11023330
push 5
push 0
push str.Bdat:
lea ecx, [ebp - 0x43c]
call fcn.11022ee0
mov esi, eax
cmp esi, 0xffffffff
je 0x11025b3d
push 1
push esi
push 0x11053fa8
lea ecx, [ebp - 0x43c]
call fcn.11022ee0
cmp eax, 0xffffffff
je 0x11025b3d
sub eax, esi
sub eax, 5
push eax
add esi, 5
push esi
lea ecx, [ebp - 0x458]
push ecx
lea ecx, [ebp - 0x43c]
call fcn.11024950
push eax
lea ecx, [ebx + 0x38]
mov byte [ebp - 4], 6
call fcn.11024990
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 3
call fcn.11023330
push 5
push 0
push str.Sman:
lea ecx, [ebp - 0x43c]
call fcn.11022ee0
mov esi, eax
cmp esi, 0xffffffff
je 0x11025ba8
push 1
push esi
push 0x11053fa8
lea ecx, [ebp - 0x43c]
call fcn.11022ee0
cmp eax, 0xffffffff
je 0x11025ba8
sub eax, esi
sub eax, 5
push eax
add esi, 5
push esi
lea edx, [ebp - 0x458]
push edx
lea ecx, [ebp - 0x43c]
call fcn.11024950
push eax
lea ecx, [ebx + 0x54]
mov byte [ebp - 4], 7
call fcn.11024990
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 3
call fcn.11023330
push 5
push 0
push str.Spro:
lea ecx, [ebp - 0x43c]
call fcn.11022ee0
mov esi, eax
cmp esi, 0xffffffff
je 0x11025c13
push 1
push esi
push 0x11053fa8
lea ecx, [ebp - 0x43c]
call fcn.11022ee0
cmp eax, 0xffffffff
je 0x11025c13
sub eax, esi
sub eax, 5
push eax
add esi, 5
push esi
lea eax, [ebp - 0x458]
push eax
lea ecx, [ebp - 0x43c]
call fcn.11024950
push eax
lea ecx, [ebx + 0x70]
mov byte [ebp - 4], 8
call fcn.11024990
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 3
call fcn.11023330
push 5
push 0
push str.Sser:
lea ecx, [ebp - 0x43c]
call fcn.11022ee0
mov esi, eax
cmp esi, 0xffffffff
je 0x11025cfc
push 1
push esi
push 0x11053fa8
lea ecx, [ebp - 0x43c]
call fcn.11022ee0
cmp eax, 0xffffffff
je 0x11025c85
sub eax, esi
sub eax, 5
push eax
add esi, 5
push esi
lea ecx, [ebp - 0x458]
push ecx
lea ecx, [ebp - 0x43c]
call fcn.11024950
push eax
lea ecx, [ebx + 0xa8]
mov byte [ebp - 4], 9
call fcn.11024990
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 3
call fcn.11023330
cmp dword [ebx + 0xb8], 0
jne 0x11025cfc
push 5
push 0
push str.Cser:
lea ecx, [ebp - 0x43c]
call fcn.11022ee0
mov esi, eax
cmp esi, 0xffffffff
je 0x11025cfc
push 1
push esi
push 0x11053fa8
lea ecx, [ebp - 0x43c]
call fcn.11022ee0
cmp eax, 0xffffffff
je 0x11025cfc
sub eax, esi
sub eax, 5
push eax
add esi, 5
push esi
lea edx, [ebp - 0x458]
push edx
lea ecx, [ebp - 0x43c]
call fcn.11024950
push eax
lea ecx, [ebx + 0xa8]
mov byte [ebp - 4], 0xa
call fcn.11024990
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 3
call fcn.11023330
push 5
push 0
push str.Cass:
lea ecx, [ebp - 0x43c]
call fcn.11022ee0
mov esi, eax
cmp esi, 0xffffffff
je 0x11025d6a
push 1
push esi
push 0x11053fa8
lea ecx, [ebp - 0x43c]
call fcn.11022ee0
cmp eax, 0xffffffff
je 0x11025d6a
sub eax, esi
sub eax, 5
push eax
add esi, 5
push esi
lea eax, [ebp - 0x458]
push eax
lea ecx, [ebp - 0x43c]
call fcn.11024950
push eax
lea ecx, [ebx + 0x8c]
mov byte [ebp - 4], 0xb
call fcn.11024990
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 3
call fcn.11023330
xor edi, edi
lea esp, [esp]
push 5
push edi
push str.Rdev:
lea ecx, [ebp - 0x43c]
call fcn.11022ee0
mov esi, eax
cmp esi, 0xffffffff
je 0x11026042
push 1
push esi
push 0x11053fa8
lea ecx, [ebp - 0x43c]
call fcn.11022ee0
cmp eax, 0xffffffff
je 0x11026039
xor ecx, ecx
mov dword [ebp - 0x4b4], 7
mov dword [ebp - 0x4b8], 0
mov word [ebp - 0x4c8], cx
sub eax, esi
sub eax, 5
push eax
add esi, 5
push esi
lea edx, [ebp - 0x458]
push edx
lea ecx, [ebp - 0x43c]
mov byte [ebp - 4], 0xc
call fcn.11024950
push eax
lea ecx, [ebp - 0x4c8]
mov byte [ebp - 4], 0xd
call fcn.11024990
cmp dword [ebp - 0x444], 8
mov byte [ebp - 4], 0xc
jb 0x11025e13
mov eax, dword [ebp - 0x458]
push eax
call fcn.11027544
add esp, 4
push 5
push edi
push str.Rsiz:
lea ecx, [ebp - 0x43c]
call fcn.11022ee0
mov esi, eax
cmp esi, 0xffffffff
je 0x11025e96
push 1
push esi
push 0x11053fa8
lea ecx, [ebp - 0x43c]
call fcn.11022ee0
mov ecx, 0xfffffffb
sub ecx, esi
add eax, ecx
push eax
add esi, 5
push esi
lea edx, [ebp - 0x458]
push edx
lea ecx, [ebp - 0x43c]
call fcn.11024950
cmp dword [eax + 0x14], 8
jb 0x11025e68
mov eax, dword [eax]
push 0x10
push 0
push eax
call fcn.1102c810
movzx eax, ax
add esp, 0xc
cmp dword [ebp - 0x444], 8
mov dword [ebp - 0x4cc], eax
jb 0x11025e96
mov ecx, dword [ebp - 0x458]
push ecx
call fcn.11027544
add esp, 4
push 5
push edi
push str.Rtyp:
lea ecx, [ebp - 0x43c]
call fcn.11022ee0
mov esi, eax
cmp esi, 0xffffffff
je 0x11025f19
push 1
push esi
push 0x11053fa8
lea ecx, [ebp - 0x43c]
call fcn.11022ee0
mov edx, 0xfffffffb
sub edx, esi
add eax, edx
push eax
add esi, 5
push esi
lea eax, [ebp - 0x458]
push eax
lea ecx, [ebp - 0x43c]
call fcn.11024950
cmp dword [eax + 0x14], 8
jb 0x11025eeb
mov eax, dword [eax]
push 0x10
push 0
push eax
call fcn.1102c810
movzx ecx, ax
add esp, 0xc
cmp dword [ebp - 0x444], 8
mov dword [ebp - 0x4d0], ecx
jb 0x11025f19
mov edx, dword [ebp - 0x458]
push edx
call fcn.11027544
add esp, 4
push 5
push edi
push str.Rspd:
lea ecx, [ebp - 0x43c]
call fcn.11022ee0
push 1
mov esi, eax
push esi
push 0x11053fa8
lea ecx, [ebp - 0x43c]
call fcn.11022ee0
mov edi, eax
cmp esi, 0xffffffff
je 0x11025f9a
sub eax, esi
sub eax, 5
push eax
lea ecx, [esi + 5]
push ecx
lea edx, [ebp - 0x458]
push edx
lea ecx, [ebp - 0x43c]
call fcn.11024950
cmp dword [eax + 0x14], 8
jb 0x11025f6c
mov eax, dword [eax]
push 0x10
push 0
push eax
call fcn.1102c810
movzx eax, ax
add esp, 0xc
cmp dword [ebp - 0x444], 8
mov dword [ebp - 0x4e4], eax
jb 0x11025f9a
mov ecx, dword [ebp - 0x458]
push ecx
call fcn.11027544
add esp, 4
test dword [ebp - 0x4cc], 0x8000
jne 0x1102601d
lea edx, [ebp - 0x4c8]
push edx
lea ecx, [ebx + 0xc4]
call fcn.11025500
lea eax, [ebp - 0x4cc]
push eax
lea ecx, [ebx + 0xe4]
call fcn.11024560
mov ecx, dword [ebp - 0x4d0]
push ecx
lea edx, [ebp - 0x458]
push edx
mov ecx, ebx
call fcn.11024b10
push eax
lea ecx, [ebx + 0xd4]
mov byte [ebp - 4], 0xe
call fcn.11025470
cmp dword [ebp - 0x444], 8
mov byte [ebp - 4], 0xc
jb 0x1102600b
mov eax, dword [ebp - 0x458]
push eax
call fcn.11027544
add esp, 4
lea ecx, [ebp - 0x4e4]
push ecx
lea ecx, [ebx + 0xf4]
call fcn.11024560
cmp dword [ebp - 0x4b4], 8
mov byte [ebp - 4], 3
jb 0x11026039
mov edx, dword [ebp - 0x4c8]
push edx
call fcn.11027544
add esp, 4
cmp esi, 0xffffffff
jne 0x11025d70
cmp dword [ebp - 0x428], 8
jb 0x1102605a
mov eax, dword [ebp - 0x43c]
push eax
call fcn.11027544
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x47c], 8
mov dword [ebp - 0x428], 7
mov dword [ebp - 0x42c], 0
mov word [ebp - 0x43c], cx
jb 0x1102608f
mov edx, dword [ebp - 0x490]
push edx
call fcn.11027544
add esp, 4
mov esi, 8
cmp dword [ebp - 0x460], esi
jb 0x110260ab
mov eax, dword [ebp - 0x474]
push eax
call fcn.11027544
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x460], 7
mov dword [ebp - 0x464], 0
mov word [ebp - 0x474], cx
cmp dword [ebp - 0x498], esi
jb 0x110260df
mov edx, dword [ebp - 0x4ac]
push edx
call fcn.11027544
add esp, 4
lea esp, [ebp - 0x540]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.110278cd
mov esp, ebp
pop ebp
ret