Function at 0x111d4840
Capabilities:
Create process on windows
Delete file
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 0x111ed115
mov eax, dword fs:[0]
push eax
sub esp, 0x524
mov eax, dword [0x11279148]
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 0x111d48c4
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x4ac]
call fcn.11004e40
push 9
push str.xbios.exe
lea ecx, [ebp - 0x4ac]
mov dword [ebp - 4], edi
call fcn.11051c30
cmp dword [ebp - 0x498], 8
mov eax, dword [ebp - 0x4ac]
jae 0x111d4910
lea eax, [ebp - 0x4ac]
push 0x111f88e8
push eax
call dword [sym.imp.MSVCR100.dll__wfopen]
mov esi, eax
add esp, 8
cmp esi, edi
je 0x111d4942
push esi
push 0x1f7f
push 1
push 0x11244e48
call dword [sym.imp.MSVCR100.dll_fwrite]
push esi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 0x14
push 0x44
lea edx, [ebp - 0x530]
push edi
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
xor ecx, ecx
push 1
mov word [ebp - 0x474], cx
push 0x111fa890
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.11004e40
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x111d49c0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x474]
call fcn.11051c30
push 0xb
push str.xbios.exe_
lea ecx, [ebp - 0x474]
call fcn.11051c30
lea eax, [ebp - 0x420]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x111d4a00
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x474]
call fcn.11051c30
push 9
push str.xbios.txt
lea ecx, [ebp - 0x474]
call fcn.11051c30
cmp dword [ebp - 0x460], 8
mov eax, dword [ebp - 0x474]
jae 0x111d4a49
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 0x111d5342
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 0x111d4ad0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x490]
call fcn.11004e40
push 9
push str.xbios.txt
lea ecx, [ebp - 0x490]
mov byte [ebp - 4], 2
call fcn.11051c30
mov eax, dword [ebp - 0x490]
mov edi, 8
cmp dword [ebp - 0x47c], edi
jae 0x111d4b21
lea eax, [ebp - 0x490]
push 0x1120888c
push eax
call dword [sym.imp.MSVCR100.dll__wfopen]
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x111d4bab
cmp dword [ebp - 0x47c], edi
jb 0x111d4b4d
mov eax, dword [ebp - 0x490]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
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 0x111d4b7e
mov edx, dword [ebp - 0x474]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
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 0x111d5392
mov ecx, dword [ebp - 0x4ac]
push ecx
jmp 0x111d538a
push 2
push 0
push esi
call dword [sym.imp.MSVCR100.dll_fseek]
lea edx, [ebp - 0x4ec]
push edx
push esi
call dword [sym.imp.MSVCR100.dll_fgetpos]
mov edi, dword [ebp - 0x4ec]
push esi
call dword [sym.imp.MSVCR100.dll_rewind]
lea ebx, [edi + 1]
add esp, 0x18
mov eax, ebx
call fcn.111d9480
mov eax, esp
push esi
push edi
push 1
push eax
mov dword [ebp - 0x4d0], eax
mov byte [eax + edi], 0
call dword [sym.imp.MSVCR100.dll_fread]
push esi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 0x14
lea eax, [edi + edi + 2]
call fcn.111d9480
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]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x111d4c40
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x43c]
call fcn.11004e40
mov eax, dword [ebp - 0x4ac]
mov edi, 8
mov byte [ebp - 4], 3
cmp dword [ebp - 0x498], edi
jae 0x111d4c79
lea eax, [ebp - 0x4ac]
mov esi, dword [sym.imp.MSVCR100.dll__wremove]
push eax
call esi
mov eax, dword [ebp - 0x490]
add esp, 4
cmp dword [ebp - 0x47c], edi
jae 0x111d4c99
lea eax, [ebp - 0x490]
push eax
call esi
add esp, 4
push 5
push 0
push str.Bven:
lea ecx, [ebp - 0x43c]
call fcn.110fe430
mov esi, eax
cmp esi, 0xffffffff
je 0x111d4d11
push 1
push esi
push 0x11203acc
lea ecx, [ebp - 0x43c]
call fcn.110fe430
cmp eax, 0xffffffff
je 0x111d4d11
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.11004c80
mov ebx, dword [ebp - 0x4cc]
push eax
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.11004cc0
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 3
call fcn.11004bc0
jmp 0x111d4d17
mov ebx, dword [ebp - 0x4cc]
push 5
push 0
push str.Bver:
lea ecx, [ebp - 0x43c]
call fcn.110fe430
mov esi, eax
cmp esi, 0xffffffff
je 0x111d4d82
push 1
push esi
push 0x11203acc
lea ecx, [ebp - 0x43c]
call fcn.110fe430
cmp eax, 0xffffffff
je 0x111d4d82
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.11004c80
push eax
lea ecx, [ebx + 0x1c]
mov byte [ebp - 4], 5
call fcn.11004cc0
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 3
call fcn.11004bc0
push 5
push 0
push str.Bdat:
lea ecx, [ebp - 0x43c]
call fcn.110fe430
mov esi, eax
cmp esi, 0xffffffff
je 0x111d4ded
push 1
push esi
push 0x11203acc
lea ecx, [ebp - 0x43c]
call fcn.110fe430
cmp eax, 0xffffffff
je 0x111d4ded
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.11004c80
push eax
lea ecx, [ebx + 0x38]
mov byte [ebp - 4], 6
call fcn.11004cc0
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 3
call fcn.11004bc0
push 5
push 0
push str.Sman:
lea ecx, [ebp - 0x43c]
call fcn.110fe430
mov esi, eax
cmp esi, 0xffffffff
je 0x111d4e58
push 1
push esi
push 0x11203acc
lea ecx, [ebp - 0x43c]
call fcn.110fe430
cmp eax, 0xffffffff
je 0x111d4e58
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.11004c80
push eax
lea ecx, [ebx + 0x54]
mov byte [ebp - 4], 7
call fcn.11004cc0
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 3
call fcn.11004bc0
push 5
push 0
push str.Spro:
lea ecx, [ebp - 0x43c]
call fcn.110fe430
mov esi, eax
cmp esi, 0xffffffff
je 0x111d4ec3
push 1
push esi
push 0x11203acc
lea ecx, [ebp - 0x43c]
call fcn.110fe430
cmp eax, 0xffffffff
je 0x111d4ec3
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.11004c80
push eax
lea ecx, [ebx + 0x70]
mov byte [ebp - 4], 8
call fcn.11004cc0
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 3
call fcn.11004bc0
push 5
push 0
push str.Sser:
lea ecx, [ebp - 0x43c]
call fcn.110fe430
mov esi, eax
cmp esi, 0xffffffff
je 0x111d4fac
push 1
push esi
push 0x11203acc
lea ecx, [ebp - 0x43c]
call fcn.110fe430
cmp eax, 0xffffffff
je 0x111d4f35
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.11004c80
push eax
lea ecx, [ebx + 0xa8]
mov byte [ebp - 4], 9
call fcn.11004cc0
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 3
call fcn.11004bc0
cmp dword [ebx + 0xb8], 0
jne 0x111d4fac
push 5
push 0
push str.Cser:
lea ecx, [ebp - 0x43c]
call fcn.110fe430
mov esi, eax
cmp esi, 0xffffffff
je 0x111d4fac
push 1
push esi
push 0x11203acc
lea ecx, [ebp - 0x43c]
call fcn.110fe430
cmp eax, 0xffffffff
je 0x111d4fac
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.11004c80
push eax
lea ecx, [ebx + 0xa8]
mov byte [ebp - 4], 0xa
call fcn.11004cc0
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 3
call fcn.11004bc0
push 5
push 0
push str.Cass:
lea ecx, [ebp - 0x43c]
call fcn.110fe430
mov esi, eax
cmp esi, 0xffffffff
je 0x111d501a
push 1
push esi
push 0x11203acc
lea ecx, [ebp - 0x43c]
call fcn.110fe430
cmp eax, 0xffffffff
je 0x111d501a
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.11004c80
push eax
lea ecx, [ebx + 0x8c]
mov byte [ebp - 4], 0xb
call fcn.11004cc0
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 3
call fcn.11004bc0
xor edi, edi
lea esp, [esp]
push 5
push edi
push str.Rdev:
lea ecx, [ebp - 0x43c]
call fcn.110fe430
mov esi, eax
cmp esi, 0xffffffff
je 0x111d52f5
push 1
push esi
push 0x11203acc
lea ecx, [ebp - 0x43c]
call fcn.110fe430
cmp eax, 0xffffffff
je 0x111d52ec
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.11004c80
push eax
lea ecx, [ebp - 0x4c8]
mov byte [ebp - 4], 0xd
call fcn.11004cc0
cmp dword [ebp - 0x444], 8
mov byte [ebp - 4], 0xc
jb 0x111d50c3
mov eax, dword [ebp - 0x458]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
push 5
push edi
push str.Rsiz:
lea ecx, [ebp - 0x43c]
call fcn.110fe430
mov esi, eax
cmp esi, 0xffffffff
je 0x111d5147
push 1
push esi
push 0x11203acc
lea ecx, [ebp - 0x43c]
call fcn.110fe430
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.11004c80
cmp dword [eax + 0x14], 8
jb 0x111d5118
mov eax, dword [eax]
push 0x10
push 0
push eax
call dword [sym.imp.MSVCR100.dll_wcstol]
movzx eax, ax
add esp, 0xc
cmp dword [ebp - 0x444], 8
mov dword [ebp - 0x4cc], eax
jb 0x111d5147
mov ecx, dword [ebp - 0x458]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
push 5
push edi
push str.Rtyp:
lea ecx, [ebp - 0x43c]
call fcn.110fe430
mov esi, eax
cmp esi, 0xffffffff
je 0x111d51cb
push 1
push esi
push 0x11203acc
lea ecx, [ebp - 0x43c]
call fcn.110fe430
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.11004c80
cmp dword [eax + 0x14], 8
jb 0x111d519c
mov eax, dword [eax]
push 0x10
push 0
push eax
call dword [sym.imp.MSVCR100.dll_wcstol]
movzx ecx, ax
add esp, 0xc
cmp dword [ebp - 0x444], 8
mov dword [ebp - 0x4d0], ecx
jb 0x111d51cb
mov edx, dword [ebp - 0x458]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
push 5
push edi
push str.Rspd:
lea ecx, [ebp - 0x43c]
call fcn.110fe430
push 1
mov esi, eax
push esi
push 0x11203acc
lea ecx, [ebp - 0x43c]
call fcn.110fe430
mov edi, eax
cmp esi, 0xffffffff
je 0x111d524d
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.11004c80
cmp dword [eax + 0x14], 8
jb 0x111d521e
mov eax, dword [eax]
push 0x10
push 0
push eax
call dword [sym.imp.MSVCR100.dll_wcstol]
movzx eax, ax
add esp, 0xc
cmp dword [ebp - 0x444], 8
mov dword [ebp - 0x4e4], eax
jb 0x111d524d
mov ecx, dword [ebp - 0x458]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
test dword [ebp - 0x4cc], 0x8000
jne 0x111d52d0
lea edx, [ebp - 0x4c8]
push edx
lea ecx, [ebx + 0xc4]
call fcn.11056680
lea eax, [ebp - 0x4cc]
push eax
lea ecx, [ebx + 0xe4]
call fcn.11172270
mov ecx, dword [ebp - 0x4d0]
push ecx
lea edx, [ebp - 0x458]
push edx
mov ecx, ebx
call fcn.111d43c0
push eax
lea ecx, [ebx + 0xd4]
mov byte [ebp - 4], 0xe
call fcn.11071f00
cmp dword [ebp - 0x444], 8
mov byte [ebp - 4], 0xc
jb 0x111d52be
mov eax, dword [ebp - 0x458]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [ebp - 0x4e4]
push ecx
lea ecx, [ebx + 0xf4]
call fcn.11172270
cmp dword [ebp - 0x4b4], 8
mov byte [ebp - 4], 3
jb 0x111d52ec
mov edx, dword [ebp - 0x4c8]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp esi, 0xffffffff
jne 0x111d5020
cmp dword [ebp - 0x428], 8
jb 0x111d530d
mov eax, dword [ebp - 0x43c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
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 0x111d5342
mov edx, dword [ebp - 0x490]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, 8
cmp dword [ebp - 0x460], esi
jb 0x111d535e
mov eax, dword [ebp - 0x474]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
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 0x111d5392
mov edx, dword [ebp - 0x4ac]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
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.111d9022
mov esp, ebp
pop ebp
ret