Function at 0x1001adf0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1234
call fcn.100feb80
mov eax, dword [ebp + 0xc]
push ebx
lea ecx, [eax + 0x1018]
push esi
push edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x44], ecx
cmp eax, ecx
ja case.0x1001b30a.30071
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp - 0xc]
lea ecx, [ecx]
mov eax, dword [ebp - 0x18]
cmp eax, 0x73bf
ja 0x1001b1d1
je 0x1001b1c3
cmp eax, 0x34a7
ja 0x1001b057
je 0x1001aeed
add eax, 0xffffcc21
cmp eax, 0xa0
ja case.0x1001b30a.29912
movzx eax, byte [eax + 0x1001b3e4]
jmp dword [eax*4 + 0x1001b3cc]
mov ecx, 0x74
mov word [ebp - 0x2a], cx
mov byte [ebp + 0xf], 1
mov dword [ebp - 0x10], 0xa
jmp case.0x1001b30a.29912
mov edx, 0x6a
mov eax, 0x6365
mov word [ebp - 0x2d], dx
mov word [ebp - 0x2c], ax
jmp case.0x1001b30a.29912
mov dword [ebp - 0x35], 0x707061
mov ecx, 0x4f
mov dword [ebp - 0x32], 0x676e69
mov edx, 0x62
mov word [ebp - 0x2f], cx
mov word [ebp - 0x2e], dx
jmp case.0x1001b30a.29912
mov dword [ebp - 0x3c], 0x46794d
jmp case.0x1001b30a.29912
mov eax, 0x69
mov word [ebp - 0x39], ax
mov ecx, 0x6c
mov edx, 0x65
mov word [ebp - 0x38], cx
mov eax, 0x4d
mov word [ebp - 0x37], dx
mov word [ebp - 0x36], ax
jmp case.0x1001b30a.29912
cmp dword [ebp - 0x10], 5
jle case.0x1001b30a.29912
jmp 0x1001af00
xor esi, esi
mov dword [ebp - 0xc], 0xc
lea esp, [esp]
cmp esi, 0x2c
ja case.0x1001af20.1
movzx ecx, byte [esi + 0x1001b4bc]
jmp dword [ecx*4 + 0x1001b488]
cmp byte [ebp - 8], 0
je 0x1001af45
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x78]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
dec dword [ebp - 0x10]
jmp case.0x1001af20.1
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
jmp case.0x1001af20.1
cmp byte [ebp - 7], 0
je 0x1001af6a
mov byte [ebp - 3], 0
cmp byte [ebp - 1], 0
je 0x1001af82
push 0
push 1
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dl, byte [ebp - 3]
mov byte [ebp - 8], dl
jmp case.0x1001af20.1
mov eax, 0x4d
mov word [ebp - 0x78], ax
jmp case.0x1001af20.1
xor eax, eax
mov dword [ebp - 0x56], 0x740063
mov word [ebp - 0x52], ax
mov byte [ebp - 3], 1
jmp case.0x1001af20.1
mov ecx, 0x70
mov edx, 0x6e
mov dword [ebp - 0x6c], 0x61004d
mov word [ebp - 0x68], cx
mov dword [ebp - 0x66], 0x690070
mov word [ebp - 0x62], dx
jmp case.0x1001af20.1
mov dword [ebp - 0x60], 0x4f0067
jmp case.0x1001af20.1
lea edx, [ebp - 0x78]
push edx
push 0x100
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x14], eax
test edi, edi
jne 0x1001affe
mov byte [ebp - 1], 0
cmp dword [ebp - 0x14], 0
sete byte [ebp - 7]
jmp case.0x1001af20.1
mov dword [ebp - 0x74], 0x690046
mov dword [ebp - 0x70], 0x65006c
jmp case.0x1001af20.1
mov byte [ebp - 1], 1
jmp case.0x1001af20.1
mov ecx, 0x79
mov word [ebp - 0x76], cx
jmp case.0x1001af20.1
mov edx, 0x65
mov dword [ebp - 0x5c], 0x6a0062
mov word [ebp - 0x58], dx
add esi, 4
dec dword [ebp - 0xc]
jne 0x1001af10
cmp dword [ebp - 0x10], 5
jg 0x1001af00
mov dword [ebp - 0xc], edi
jmp case.0x1001b30a.29912
add eax, 0xffffcb31
cmp eax, 0xa0
ja case.0x1001b30a.29912
movzx eax, byte [eax + 0x1001b504]
jmp dword [eax*4 + 0x1001b4ec]
xor eax, eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
jmp case.0x1001b30a.29912
mov ecx, dword [ebp + 0x14]
lea edx, [ebp - 0x3c]
push edx
push 0x100
push 0
push 4
push 0
push 0xffffffffffffffff
mov dword [ecx], 0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
mov eax, dword [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x16c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleProcessList]
jmp case.0x1001b30a.29912
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
jmp case.0x1001b30a.29912
mov dword [ebp - 0x4c], 0xa
jmp case.0x1001b30a.29912
test ebx, ebx
jne 0x1001b0f2
mov byte [ebp + 0xf], bl
jmp case.0x1001b30a.29912
cmp byte [ebp + 0xf], 0
je case.0x1001b30a.29912
mov edi, 0x722e
mov eax, edi
sub eax, 0x722e
je 0x1001b174
sub eax, 8
jne 0x1001b1ac
cmp byte [ebp + 0xf], al
je 0x1001b1ac
mov esi, 0x4ba3
cmp esi, esi
jne 0x1001b167
push 2
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x8c]
push eax
push ecx
push 0
push 0
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_LockFileEx]
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x8c]
push edx
push eax
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_UnlockFileEx]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0x2c
cmp esi, 0x4ba3
jbe 0x1001b123
jmp 0x1001b1ac
push 0
lea ecx, [ebp - 0x20]
push ecx
push 0x1000
lea edx, [ebp - 0x1234]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
sete al
test al, al
je 0x1001b1ac
cmp dword [ebp - 0x20], 0
setbe al
test al, al
je 0x1001b1ac
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp + 0xf], 0
add edi, 8
cmp edi, 0x7236
jbe 0x1001b101
mov edi, dword [ebp - 0xc]
jmp case.0x1001b30a.29912
xor eax, eax
mov word [ebp - 0xb8], ax
jmp case.0x1001b30a.29912
cmp eax, 0x74af
ja 0x1001b2f3
je 0x1001b2d3
add eax, 0xffff8c19
cmp eax, 0xa0
ja case.0x1001b30a.29912
movzx ecx, byte [eax + 0x1001b5c0]
jmp dword [ecx*4 + 0x1001b5a8]
push 7
lea edx, [ebp - 0xac]
push str.Mappin
push edx
call fcn.100fdf85
add esp, 0xc
jmp case.0x1001b30a.29912
push 0x34
lea eax, [ebp - 0xec]
push 0
push eax
mov dword [ebp - 0x50], 0x64
call fcn.100fefe0
add esp, 0xc
mov dword [ebp - 0xec], 0x34
jmp case.0x1001b30a.29912
push 3
lea ecx, [ebp - 0x98]
push 0x101637ec
push ecx
call fcn.100fdf85
add esp, 0xc
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0x101618ec]
mov word [ebp + eax - 0x94], cx
add eax, 2
test cx, cx
jne 0x1001b260
mov byte [ebp - 4], 1
mov byte [ebp - 2], 1
jmp case.0x1001b30a.29912
push 6
lea edx, [ebp - 0xb8]
push str.MyFile
push edx
call fcn.100fe1b7
add esp, 0xc
jmp case.0x1001b30a.29912
mov eax, dword [0x10163804]
mov cx, word [0x10163808]
push 3
lea edx, [ebp - 0x9c]
push 0x1016380c
push edx
mov dword [ebp - 0xa0], eax
mov word [ebp - 0x9c], cx
call fcn.100fdf85
add esp, 0xc
jmp case.0x1001b30a.29912
mov eax, dword [ebp - 0xec]
push 0xfffffffffffffff5
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x48], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x24], eax
jmp case.0x1001b30a.29912
add eax, 0xffff8b29
cmp eax, 0xa0
ja case.0x1001b30a.29912
movzx ecx, byte [eax + 0x1001b67c]
jmp dword [ecx*4 + 0x1001b664]
lea edx, [ebp - 0xb8]
push edx
push 0x100
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x40], eax
jne 0x1001b338
mov byte [ebp - 4], 0
test eax, eax
sete byte [ebp - 5]
jmp case.0x1001b30a.29912
cmp byte [ebp - 6], 0
je 0x1001b36d
mov ecx, dword [ebp - 0x50]
lea edx, [ebp - 0x90]
push edx
mov dword [ebp - 0x1c], 0x20050
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x24]
push ecx
lea edx, [ebp - 0x234]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputAttribute]
cmp byte [ebp - 2], 0
je case.0x1001b30a.29912
mov esi, dword [ebp - 0x40]
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0xec]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x1001b30a.29912
cmp byte [ebp - 5], 0
je 0x1001b39b
mov byte [ebp - 2], 0
mov al, byte [ebp - 4]
mov byte [ebp - 6], al
jmp case.0x1001b30a.29912
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
add eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
add eax, 0x28
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x44]
jbe 0x1001ae20
mov eax, dword [ebp - 0x28]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret