Function at 0x1125c
Capabilities:
Get file attributes
Persist via application shimming
Print debug messages
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x2a718
push 0x2a536
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor esi, esi
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0x80], esi
and byte [ebp - 0x7c], 0
mov eax, dword [ebp + 0xc]
mov bl, byte [eax + 0x3ff]
mov byte [ebp - 0x2c], bl
and byte [ebp - 0x24], 0
and byte [ebp - 0x28], 0
and byte [ebp - 0x30], 0
and byte [ebp - 0xd8], 0
mov dword [ebp - 0xc8], esi
mov dword [ebp - 0x84], esi
mov dword [ebp - 0xc4], esi
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x78]
rep stosd dword es:[edi], eax
push 0x10e86
call sub.ntoskrnl.exe_DbgPrint
mov dword [esp], 0x10e8e
call sub.ntoskrnl.exe_DbgPrint
mov dword [esp], 0x10eae
call sub.ntoskrnl.exe_DbgPrint
pop ecx
mov dword [ebp - 4], esi
cmp dword [0x2bbd0], esi
je 0x118c9
cmp dword [0x2bbc0], esi
je 0x118c9
cmp dword [0x2bbc8], esi
je 0x118c9
push 0x10eb2
call sub.ntoskrnl.exe_DbgPrint
mov dword [esp], 0x10eba
call sub.ntoskrnl.exe_DbgPrint
mov dword [esp], 0x10ede
call sub.ntoskrnl.exe_DbgPrint
pop ecx
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp + 0x10]
call fcn.00020fe3
test al, al
je 0x11450
mov eax, dword [ebp - 0xc8]
mov ecx, dword [eax*8 + 0x2b9c0]
mov dword [ebp - 0xd4], ecx
mov edi, dword [eax*8 + 0x2b9c4]
mov dword [ebp - 0xd0], edi
push 0x10ee2
call sub.ntoskrnl.exe_DbgPrint
mov dword [esp], 0x10eea
call sub.ntoskrnl.exe_DbgPrint
mov dword [esp], 0x10f0e
call sub.ntoskrnl.exe_DbgPrint
pop ecx
cmp bl, 0x10
jne 0x113f9
mov eax, 0x80
mov dword [ebp - 0xb8], eax
push 0x546b6c42
push eax
push 1
mov ebx, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
call ebx
mov dword [ebp - 0xc4], eax
cmp eax, esi
je 0x118c9
mov esi, 0x10f12
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xd0], 0x80
mov edi, dword [ebp - 0xd0]
mov esi, 0x546b6c42
jmp 0x11404
mov esi, 0x546b6c42
mov ebx, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
cmp dword [ebp - 0xd4], 0
je 0x11450
test edi, edi
je 0x11450
push 0x10f26
call sub.ntoskrnl.exe_DbgPrint
mov dword [esp], 0x10f2e
call sub.ntoskrnl.exe_DbgPrint
mov dword [esp], 0x10f52
call sub.ntoskrnl.exe_DbgPrint
pop ecx
cmp edi, 0x10
jge 0x1143d
mov eax, edi
jmp 0x11440
push 0x10
pop eax
push dword [ebp - 0xd4]
push eax
call fcn.0002a284
test al, al
jne 0x11464
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call sub.ntoskrnl.exe__local_unwind2
pop ecx
pop ecx
xor al, al
jmp 0x11aa9
push 5
push 0x18
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xe8]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov dword [ebp - 0xac], eax
test eax, eax
jl 0x118c9
push edi
push dword [ebp - 0xd4]
push dword [ebp + 0xc]
call fcn.00016a10
test al, al
je 0x118c9
lea eax, [ebp - 0x98]
push eax
push dword [ebp + 0xc]
call fcn.00016ac4
test al, al
je 0x118c9
push esi
mov edi, 0x10000
push edi
push 1
call ebx
mov dword [ebp - 0xb0], eax
test eax, eax
je 0x118c9
push esi
push edi
push 1
call ebx
mov dword [ebp - 0x80], eax
test eax, eax
je 0x118c9
push esi
push 0x400
push 1
call ebx
mov dword [ebp - 0xb4], eax
xor esi, esi
cmp eax, esi
je 0x118c9
push eax
push esi
push dword [ebp + 8]
call fcn.00011b13
test al, al
je 0x11559
push 0x10
pop ecx
mov ebx, dword [ebp + 0xc]
lea edi, [ebx + 0x36e]
mov eax, dword [ebp - 0xb4]
lea esi, [eax + 0x36e]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x11530
sbb edx, edx
sbb edx, 0xffffffff
test edx, edx
jne 0x118c9
push dword [ebp - 0xc8]
push dword [ebp + 8]
push ebx
mov al, byte [eax + 0x3ff]
push eax
call fcn.000139f0
mov byte [ebp - 0xd8], al
jmp 0x118d0
mov dword [ebp - 0xa8], esi
mov dword [ebp - 0xa4], esi
push 0xe
push 8
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xe8]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
mov dword [ebp - 0xac], eax
cmp eax, esi
jl 0x118c9
mov cl, byte [ebp - 0x2c]
test cl, 1
je 0x115e6
test cl, 8
je 0x115ba
xor eax, eax
mov dword [ebp - 0xc0], eax
cmp eax, dword [0x2bbc4]
jge 0x115e6
mov edx, dword [0x2bbc0]
mov dl, byte [edx + eax]
add byte [ebp - 0x24], dl
inc eax
jmp 0x1159d
mov dword [ebp - 0xc0], esi
mov eax, dword [0x2bbcc]
cmp dword [ebp - 0xc0], eax
jge 0x115e6
mov eax, dword [0x2bbc8]
mov edx, dword [ebp - 0xc0]
mov al, byte [eax + edx]
add byte [ebp - 0x24], al
inc dword [ebp - 0xc0]
jmp 0x115c0
test cl, 2
je 0x1160a
xor eax, eax
mov dword [ebp - 0xc0], eax
cmp eax, dword [0x2bbd4]
jge 0x1160a
mov edx, dword [0x2bbd0]
mov dl, byte [edx + eax]
add byte [ebp - 0x30], dl
inc eax
jmp 0x115ed
test cl, 4
je 0x1163c
mov dword [ebp - 0xc0], esi
mov eax, dword [ebp - 0xc0]
cmp eax, dword [0x2bbcc]
jge 0x1163c
mov eax, dword [0x2bbc8]
mov ecx, dword [ebp - 0xc0]
mov al, byte [eax + ecx]
add byte [ebp - 0x28], al
inc dword [ebp - 0xc0]
jmp 0x11615
mov ecx, 0x100
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp - 0xb0]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x38], 0x400
xor ebx, ebx
mov dword [ebp - 0xe0], ebx
mov dword [ebp - 0xdc], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x88], ebx
push ebx
lea eax, [ebp - 0xe0]
push eax
mov esi, 0x10000
push esi
push dword [ebp - 0x80]
lea eax, [ebp - 0xe8]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xe4], esi
je 0x116cd
push 0x10f56
call sub.ntoskrnl.exe_DbgPrint
push dword [ebp - 0xe4]
push dword [ebp - 0xac]
push esi
push 0x10f5e
call sub.ntoskrnl.exe_DbgPrint
push 0x10f9e
call sub.ntoskrnl.exe_DbgPrint
add esp, 0x18
cmp dword [ebp - 0xac], ebx
jge 0x117b2
mov edi, 0xc0000011
cmp dword [ebp - 0xac], edi
je 0x11786
push 0x10fa2
call sub.ntoskrnl.exe_DbgPrint
push dword [ebp - 0xe4]
push dword [ebp - 0xac]
push 0x10faa
call sub.ntoskrnl.exe_DbgPrint
push 0x10fea
call sub.ntoskrnl.exe_DbgPrint
add esp, 0x14
push 0x11162
call sub.ntoskrnl.exe_DbgPrint
mov dword [esp], 0x1116a
call sub.ntoskrnl.exe_DbgPrint
mov dword [esp], 0x1118a
call sub.ntoskrnl.exe_DbgPrint
pop ecx
push 0xe
push 8
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xe8]
push eax
push dword [ebp + 8]
mov esi, dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
call esi
mov dword [ebp - 0xac], eax
push 5
push 0x18
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xe8]
push eax
push dword [ebp + 8]
call esi
mov dword [ebp - 0xac], eax
mov byte [ebp - 0xd8], 1
jmp 0x118d0
push 0x10fee
call sub.ntoskrnl.exe_DbgPrint
push dword [ebp - 0xe4]
push edi
push 0x10ff6
call sub.ntoskrnl.exe_DbgPrint
push 0x11046
call sub.ntoskrnl.exe_DbgPrint
add esp, 0x14
mov byte [ebp - 0x7c], 1
mov edi, dword [ebp - 0xe4]
mov dword [ebp - 0x34], edi
push 0xe
push 8
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xe8]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov dword [ebp - 0xac], eax
cmp eax, ebx
jl 0x118c9
test byte [ebp - 0x2c], 4
je 0x117f6
push dword [ebp - 0x28]
push edi
push dword [ebp - 0x80]
call fcn.00010d7a
test byte [ebp - 0x2c], 2
je 0x11808
push dword [ebp - 0x30]
push edi
push dword [ebp - 0x80]
call fcn.00010d7a
test byte [ebp - 0x2c], 0x10
je 0x11833
push dword [ebp - 0xd0]
push dword [ebp - 0xd4]
push dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
mov al, byte [eax + 0x371]
push eax
push edi
push dword [ebp - 0x80]
call fcn.00010e00
test byte [ebp - 0x2c], 1
je 0x1185e
push dword [ebp - 0xd0]
push dword [ebp - 0xd4]
push dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
mov al, byte [eax + 0x371]
push eax
push edi
push dword [ebp - 0x80]
call fcn.00010d96
add dword [ebp - 0x88], edi
mov eax, dword [ebp - 0x98]
cmp eax, dword [ebp - 0x88]
jae 0x11876
mov byte [ebp - 0x7c], 1
push ebx
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [ebp - 0x80]
lea eax, [ebp - 0xe8]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [ebp - 0xac], eax
cmp eax, ebx
jge 0x118de
push 0x1104a
call sub.ntoskrnl.exe_DbgPrint
push dword [ebp - 0xe4]
push dword [ebp - 0xac]
push 0x11052
call sub.ntoskrnl.exe_DbgPrint
push 0x11096
call sub.ntoskrnl.exe_DbgPrint
add esp, 0x14
and byte [ebp - 0xd8], 0
or dword [ebp - 4], 0xffffffff
call fcn.000119f3
jmp 0x11a3f
push ebx
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x38]
push dword [ebp - 0xb0]
lea eax, [ebp - 0xe8]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0xe4]
je 0x11940
push 0x1109a
call sub.ntoskrnl.exe_DbgPrint
push dword [ebp - 0xe4]
push dword [ebp - 0xac]
push dword [ebp - 0x38]
push 0x110a2
call sub.ntoskrnl.exe_DbgPrint
push 0x110de
call sub.ntoskrnl.exe_DbgPrint
add esp, 0x18
cmp dword [ebp - 0xac], ebx
jge 0x119a0
push 0x110e2
call sub.ntoskrnl.exe_DbgPrint
push dword [ebp - 0xe4]
push dword [ebp - 0xac]
push dword [ebp - 0x38]
push 0x110ea
call sub.ntoskrnl.exe_DbgPrint
push 0x11122
call sub.ntoskrnl.exe_DbgPrint
push 0x11126
call sub.ntoskrnl.exe_DbgPrint
push 0x400
push 0x1112e
call sub.ntoskrnl.exe_DbgPrint
push 0x1115e
call sub.ntoskrnl.exe_DbgPrint
add esp, 0x28
jmp 0x118c9
cmp byte [ebp - 0x7c], 0
jne 0x11717
add dword [ebp - 0xe0], edi
adc dword [ebp - 0xdc], ebx
mov eax, dword [ebp - 0x38]
add dword [ebp - 0x20], eax
adc dword [ebp - 0x1c], ebx
cmp edi, esi
mov ecx, edi
jb 0x119c7
mov ecx, esi
mov esi, dword [ebp - 0x80]
mov edi, dword [ebp - 0xb0]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, 0x10000
cmp dword [ebp - 0x34], eax
jae 0x119eb
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
jmp 0x1166d
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.ntoskrnl.exe_wcslen]
pop ecx
test eax, eax
jbe 0x11a80
mov dword [ebp - 4], 1
dec dword [0x2b508]
push 4
push 0x2b508
push 4
push 0x1118e
push 0x111a2
call fcn.00026892
jmp 0x11a7c
or dword [ebp - 4], 0xffffffff
push 0x1122e
call sub.ntoskrnl.exe_DbgPrint
mov dword [esp], 0x11236
call sub.ntoskrnl.exe_DbgPrint
mov dword [esp], 0x1125a
call sub.ntoskrnl.exe_DbgPrint
pop ecx
mov al, byte [ebp - 0xd8]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0xc