Function at 0x77c9fd4f
Capabilities:
Get file attributes
Read file on windows
Write file on windows

Disassembly:
push dword [ebp - 0x78]
call fcn.77ca009d
and eax, 0x3ff
cmp eax, 4
je 0x77c86431
cmp eax, 0x16
je 0x77c86431
push 5
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x78]
call fcn.77ca00e5
mov edi, eax
cmp edi, ebx
jne 0x77c9fe80
jmp 0x77c86431
mov eax, 0x77c9ec80
lea edx, [eax + 2]
jmp 0x77c86455
mov edi, dword [ebp - 0x78]
jmp 0x77c9fe80
mov esi, 0x77c865d4
jmp 0x77c9fe64
push 0x57
pop edi
jmp 0x77cca264
mov esi, 0xc000000d
jmp 0x77c9ffce
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x77c86455
sub eax, edx
sar eax, 1
jmp 0x77c94a38
cmp eax, 7
je 0x77c9fdfd
test edi, 0x10000
je 0x77c86427
mov eax, 0x77c9e940
lea edx, [eax + 2]
jmp 0x77cca1ce
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x77c94a28
sub eax, esi
sar eax, 1
add eax, edx
mov dword [ebp - 0x94], 0x68
jmp 0x77c9fe29
mov ecx, dword [ebp - 0x90]
cmp ecx, ebx
je 0x77c9ffda
mov eax, dword [ebp - 0xd8]
mov edx, dword [ebp - 0x80]
add edx, eax
cmp dword [ecx], edx
jb 0x77c9ffda
push ebx
push ebx
push eax
push dword [ebp - 0x88]
lea eax, [ebp - 0xa4]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x7c]
call dword [sym.imp.ntdll.dll_NtReadFile]
mov edi, eax
cmp edi, ebx
jl 0x77cde7d3
mov edi, dword [ebp - 0xa4]
cmp edi, ebx
jl 0x77c9fd25
mov esi, dword [ebp - 0xd8]
cmp dword [ebp - 0xa0], esi
jne 0x77cde7c2
cmp dword [ebp - 0x8c], ebx
je 0x77c9fd08
cmp dword [ebp - 0x80], ebx
jbe 0x77c9fd08
cmp esi, 2
lea eax, [esi - 2]
jb 0x77cde7cc
push dword [ebp - 0x80]
mov ecx, dword [ebp - 0x88]
push dword [ebp - 0x8c]
add ecx, eax
push ecx
call sub.ntdll.dll_memcpy
add esp, 0xc
cmp edi, ebx
jl 0x77c9fd25
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x90]
add eax, esi
mov dword [ecx], eax
mov ecx, dword [ebp - 0xac]
cmp ecx, ebx
je 0x77c9fd25
mov dword [ecx], eax
push dword [ebp - 0x8c]
push 0x17f
push 0x77ca01f4
call fcn.77c9e3db
push dword [ebp - 0x7c]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, edi
jmp 0x77ca0038
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xe8
mov eax, dword [0x77d1a0c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0x18]
push ebx
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x78], eax
movzx eax, di
mov dword [ebp - 0xa8], eax
mov eax, edi
shr eax, 0x10
not al
and al, 1
push 0x77ca0050
mov byte [ebp - 0x81], al
push 0x32
lea eax, [ebp - 0x74]
xor ebx, ebx
push eax
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x80], ebx
call fcn.77c9e187
mov eax, dword [0x77d1f248]
and al, 0xf
cmp al, 4
jae 0x77cde628
mov eax, dword [ebp - 0xa8]
cmp eax, 7
je 0x77cca1bf
cmp eax, 8
mov dword [ebp - 0xb0], ebx
je 0x77cca1bf
cmp eax, 5
jne 0x77c94a06
test edi, 0x10000
mov dword [ebp - 0x94], 0x63
jne 0x77cca271
mov eax, 0x77c9e930
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x77c9fe1b
sub eax, edx
sar eax, 1
cmp dword [ebp - 0x78], ebx
jne 0x77c863f6
mov ecx, dword [ebp - 0x98]
mov edx, dword [ecx + 4]
lea esi, [edx + eax*2]
movzx edx, word [ecx]
lea eax, [eax + eax + 6]
cmp edx, eax
jb 0x77c86439
movzx ecx, word [esi]
cmp cx, 0x30
jb 0x77ccbadd
cmp cx, 0x39
ja 0x77ccbadd
push esi
call fcn.77ccba96
push 5
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.77ca00e5
mov edi, eax
cmp edi, ebx
je 0x77cde66f
movzx eax, word [edi + 6]
cmp ax, 0x30
jae 0x77cde676
mov dword [ebp - 0x78], ebx
cmp dword [ebp - 0x78], ebx
push 0x19
pop esi
jne 0x77cde68c
mov cx, word [ebp - 0x94]
lea eax, [esi + esi]
mov word [ebp + eax - 0x74], cx
mov cx, word [edi]
mov word [ebp + eax - 0x72], cx
lea ecx, [edi + 2]
mov dx, word [ecx]
inc ecx
inc ecx
cmp dword [ebp - 0x78], ebx
mov word [ebp + eax - 0x70], dx
mov dx, word [ecx]
mov word [ebp + eax - 0x6e], dx
jne 0x77cde6a4
mov eax, dword [0x77d1f248]
and al, 0xf
cmp al, 4
jae 0x77cde6b2
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0xe8]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
cmp dword [ebp - 0xb0], ebx
push 0x18
lea eax, [ebp - 0xe8]
pop esi
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xc8], esi
mov dword [ebp - 0xc4], ebx
mov dword [ebp - 0xbc], 0x40
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xb4], ebx
lea eax, [ebp - 0xa4]
jne 0x77cca1eb
push 0x60
push 7
push eax
lea eax, [ebp - 0xc8]
push eax
push 0x80100000
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.ntdll.dll_NtOpenFile]
mov esi, eax
cmp esi, ebx
jl 0x77cde740
push 5
push 0x18
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0xa4]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov esi, eax
cmp esi, ebx
jl 0x77cde795
cmp dword [ebp - 0xd4], ebx
jg 0x77cde769
cmp esi, ebx
jl 0x77cde795
cmp byte [ebp - 0x81], bl
je 0x77c9ffce
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x8c]
push eax
push dword [ebp - 0x94]
push edi
call fcn.77ca009d
push eax
call fcn.77ca0837
test eax, eax
jne 0x77c8644b
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x80], eax
xor esi, esi
cmp dword [ebp - 0x88], ebx
jne 0x77c9fc72
push dword [ebp - 0x7c]
call dword [sym.imp.ntdll.dll_NtClose]
push dword [ebp - 0x8c]
push 0x13c
push 0x77ca01f4
call fcn.77c9e3db
mov eax, dword [0x77d1f248]
and al, 0xf
cmp al, 4
jae 0x77cde800
mov edi, dword [ebp - 0xac]
cmp edi, ebx
je 0x77ca0013
mov dword [edi], ebx
cmp dword [ebp - 0x88], ebx
jne 0x77cde81c
mov eax, dword [ebp - 0x90]
cmp eax, ebx
je 0x77ca0036
mov ecx, dword [ebp - 0xd8]
mov edx, dword [ebp - 0x80]
add ecx, edx
mov dword [eax], ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.77cc744e
leave
ret 0x18
mov dword [ebp - 0xb0], 1
jmp 0x77c9fdf4
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x77cca1ce
sub eax, edx
sar eax, 1
mov edx, eax
mov eax, 0x77c9ec80
lea esi, [eax + 2]
jmp 0x77c94a28
push ebx
push ebx
push 0x20
push ebx
push 1
push 0x80
push ebx
push eax
lea eax, [ebp - 0xc8]
push eax
push 0x40100000
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x9c], ebx
call dword [sym.imp.ntdll.dll_NtCreateFile]
mov edi, eax
cmp edi, ebx
jl 0x77cde6ec
cmp dword [ebp - 0x88], ebx
je 0x77c86443
mov eax, dword [ebp - 0x90]
cmp eax, ebx
je 0x77c86443
push ebx
lea ecx, [ebp - 0x9c]
push ecx
push dword [eax]
lea eax, [ebp - 0xa4]
push dword [ebp - 0x88]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x7c]
call dword [sym.imp.ntdll.dll_NtWriteFile]
mov edi, eax
cmp edi, ebx
jge 0x77c9fd25
jmp 0x77cde716
mov eax, 0x77c9e940
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x77cca279
sub eax, edx
sar eax, 1
mov edx, eax
mov eax, 0x77c9e930
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x77cca291
sub eax, esi
sar eax, 1
add eax, edx
jmp 0x77c9fe29
inc esi
inc esi
inc eax
inc eax
cmp eax, 6
ja 0x77c9fe45
jmp 0x77c9fe64
mov edx, dword [esi + 4]
cmp edx, ebx
je 0x77cde648
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x77cde634
sub eax, esi
sar eax, 1
lea eax, [eax + eax + 2]
jmp 0x77cde64a
xor eax, eax
push ebx
push eax
push edx
push 4
lea eax, [ebp - 0xa8]
push eax
push ebx
push 0x10
push 0x18
push 0x6c
push 0x77ce207c
call fcn.77d1169e
add esp, 0x28
jmp 0x77c9fdd6
mov edi, esi
jmp 0x77c9fe80
cmp ax, 0x39
mov dword [ebp - 0x78], 1
ja 0x77c9fe8e
jmp 0x77c9fe91
push 0x18
pop esi
push 0x77cde868
push 0x32
lea eax, [ebp - 0x74]
push eax
call fcn.77c9e187
jmp 0x77c9fe9d
mov cx, word [ecx + 2]
mov word [ebp + eax - 0x6c], cx
jmp 0x77c9fed2
lea eax, [ebp - 0x74]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x77cde6b8
sub eax, edx
push ebx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push 1
push 0x18
push 0xc9
push 0x77ce207c
call fcn.77d1169e
add esp, 0x20
jmp 0x77c9fee1
mov eax, dword [0x77d1f248]
and al, 0xf
cmp al, 4
jb 0x77c9fd43
push ebx
push edi
push ebx
push esi
push 0xe7
push 0x77ce207c
call fcn.77d1169e
add esp, 0x18
jmp 0x77c9fd43
mov eax, dword [0x77d1f248]
and al, 0xf
cmp al, 4
jb 0x77c9fd3a
push ebx
push edi
push ebx
push esi
push 0xfc
push 0x77ce207c
call fcn.77d1169e
add esp, 0x18
jmp 0x77c9fd3a
mov eax, dword [0x77d1f248]
and al, 0xf
cmp al, 4
jb 0x77cde762
push ebx
push esi
push ebx
push 0x18
push 0x10f
push 0x77ce207c
call fcn.77d1169e
add esp, 0x18
mov eax, esi
jmp 0x77ca0038
mov eax, dword [0x77d1f248]
and al, 0xf
cmp al, 4
mov esi, 0x80000005
jb 0x77cde795
push ebx
push esi
push ebx
push 0x18
push 0x11d
push 0x77ce207c
call fcn.77d1169e
add esp, 0x18
jmp 0x77c9ff8b
mov eax, dword [0x77d1f248]
and al, 0xf
cmp al, 4
jb 0x77cde7b7
push ebx
push esi
push ebx
push 0x18
push 0x123
push 0x77ce207c
call fcn.77d1169e
add esp, 0x18
push dword [ebp - 0x7c]
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x77cde762
mov edi, 0xc0000011
jmp 0x77c9fd25
mov eax, esi
jmp 0x77c9fcee
mov eax, dword [0x77d1f248]
and al, 0xf
cmp al, 4
jb 0x77cde7f5
push ebx
push edi
push ebx
push 0x18
push 0x172
push 0x77ce207c
call fcn.77d1169e
add esp, 0x18
mov esi, dword [ebp - 0xd8]
jmp 0x77c9fd08
push ebx
push esi
push ebx
push 0x18
push 0x13e
push 0x77ce207c
call fcn.77d1169e
add esp, 0x18
jmp 0x77ca0007
mov eax, dword [0x77d1f248]
and al, 0xf
cmp al, 4
jb 0x77cde83e
push ebx
push esi
push ebx
push 0x18
push 0x145
push 0x77ce207c
call fcn.77d1169e
add esp, 0x18
mov eax, dword [ebp - 0x90]
cmp eax, ebx
je 0x77cde85b
cmp edi, ebx
je 0x77cde85b
mov ecx, dword [ebp - 0xd8]
mov edx, dword [ebp - 0x80]
add ecx, edx
mov dword [eax], ecx
mov dword [edi], ebx
mov eax, 0x80000005
jmp 0x77ca0038