Function at 0x130b6
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 0x2a758
push 0x2a536
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x104
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov esi, dword [ebp + 8]
mov al, byte [esi + 0x14c]
mov byte [ebp - 0x2c], al
mov byte [ebp - 0x20], bl
mov byte [ebp - 0x28], bl
mov byte [ebp - 0x34], bl
mov dword [ebp - 0xd8], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x104], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0xf0], 1
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x88]
rep stosd dword es:[edi], eax
mov dword [ebp - 4], ebx
push 0x12ca8
call sub.ntoskrnl.exe_DbgPrint
push dword [esi + 0x38]
movzx eax, byte [ebp - 0x2c]
push eax
push 0x12cb0
call sub.ntoskrnl.exe_DbgPrint
push 0x12cec
call sub.ntoskrnl.exe_DbgPrint
add esp, 0x14
cmp dword [0x2bbd0], ebx
je 0x131e6
cmp dword [0x2bbc0], ebx
je 0x131e6
cmp dword [0x2bbc8], ebx
je 0x131e6
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x94]
push eax
push dword [esi + 0x38]
call fcn.00020fe3
test al, al
je 0x131e6
mov eax, dword [ebp - 0xd8]
mov ecx, dword [eax*8 + 0x2b9c0]
mov dword [ebp - 0xf8], ecx
mov eax, dword [eax*8 + 0x2b9c4]
mov dword [ebp - 0xf4], eax
push 0x546b6c42
push 0x10000
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
mov dword [ebp - 0x24], edi
cmp edi, ebx
jne 0x131fa
push 0x12cf0
call sub.ntoskrnl.exe_DbgPrint
mov dword [esp], 0x12cf8
call sub.ntoskrnl.exe_DbgPrint
mov dword [esp], 0x12d28
call sub.ntoskrnl.exe_DbgPrint
pop ecx
mov byte [ebp - 0xf0], bl
or dword [ebp - 4], 0xffffffff
call fcn.0001393b
jmp 0x1395e
push edi
push ebx
push dword [esi + 0x144]
call fcn.00011b13
test al, al
je 0x13240
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
lea esi, [eax + 0x36e]
lea edi, [ebp - 0xa4]
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 byte [ebp - 0x8c], 1
mov cl, byte [eax + 0x3ff]
mov byte [ebp - 0x114], cl
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePool]
mov dword [ebp - 0x24], ebx
jmp 0x131e6
push 5
push 0x18
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0x100]
push eax
push dword [esi + 0x148]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov dword [ebp - 0xcc], eax
cmp eax, ebx
jl 0x131e6
push 5
push 0x18
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0x100]
push eax
push dword [esi + 0x144]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov dword [ebp - 0xcc], eax
cmp eax, ebx
jl 0x131e6
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0xc4], ebx
push 0xe
push 8
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x100]
push eax
push dword [esi + 0x148]
call dword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
mov dword [ebp - 0xcc], eax
cmp eax, ebx
jl 0x131e6
push ebx
push ebx
push 0x400
push edi
lea eax, [ebp - 0x100]
push eax
push ebx
push ebx
push ebx
push dword [esi + 0x148]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [ebp - 0xcc], eax
cmp eax, ebx
jge 0x13324
push 0x12d2c
call sub.ntoskrnl.exe_DbgPrint
push dword [ebp - 0xcc]
push 0x12d34
call sub.ntoskrnl.exe_DbgPrint
push 0x12d54
call sub.ntoskrnl.exe_DbgPrint
add esp, 0x10
jmp 0x131e6
mov dword [ebp - 0xdc], edi
mov al, byte [ebp - 0x2c]
mov byte [edi + 0x3ff], al
mov al, byte [edi + 0x375]
mov byte [ebp - 0x108], al
push 0x546b6c42
push 0x80
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0x104], eax
cmp eax, ebx
je 0x131e6
mov dword [ebp - 0x1c], 0x80
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x104]
push edi
call fcn.00016a6a
cmp dword [ebp - 0xf8], ebx
je 0x13386
cmp dword [ebp - 0xf4], ebx
jne 0x1339b
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xf4], eax
push 0x10
pop eax
cmp dword [ebp - 0xf4], eax
jge 0x133ac
mov eax, dword [ebp - 0xf4]
push dword [ebp - 0xf8]
push eax
call fcn.0002a284
test al, al
je 0x131e6
push dword [ebp - 0xf4]
push dword [ebp - 0xf8]
push edi
call fcn.00016a10
lea eax, [ebp - 0xb8]
push eax
push edi
call fcn.00016ac4
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0xc4], ebx
push 0xe
push 8
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x100]
push eax
push dword [esi + 0x148]
call dword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
mov dword [ebp - 0xcc], eax
cmp eax, ebx
jl 0x131e6
push ebx
push ebx
push 0x400
push edi
lea eax, [ebp - 0x100]
push eax
push ebx
push ebx
push ebx
push dword [esi + 0x148]
call dword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov dword [ebp - 0xcc], eax
cmp eax, ebx
jge 0x13463
push 0x12d58
call sub.ntoskrnl.exe_DbgPrint
push dword [ebp - 0xcc]
push 0x12d60
call sub.ntoskrnl.exe_DbgPrint
push 0x12d90
jmp 0x13317
mov dword [ebp - 0x110], 0x400
mov dword [ebp - 0x10c], ebx
push ebx
push ebx
push ebx
push edi
lea eax, [ebp - 0x100]
push eax
push ebx
push ebx
push ebx
push dword [esi + 0x148]
call dword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov dword [ebp - 0xcc], eax
cmp eax, ebx
jge 0x134bb
push 0x12d94
call sub.ntoskrnl.exe_DbgPrint
push dword [ebp - 0xcc]
push 0x12d9c
call sub.ntoskrnl.exe_DbgPrint
push 0x12dcc
jmp 0x13317
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0xc4], ebx
push 0xe
push 8
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x100]
push eax
push dword [esi + 0x144]
call dword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
mov dword [ebp - 0xcc], eax
cmp eax, ebx
jl 0x131e6
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x10c], ebx
push ebx
lea eax, [ebp - 0x110]
push eax
push ebx
push edi
lea eax, [ebp - 0x100]
push eax
push ebx
push ebx
push ebx
push dword [esi + 0x144]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [ebp - 0xcc], eax
cmp eax, ebx
jge 0x1354d
push 0x12dd0
call sub.ntoskrnl.exe_DbgPrint
push dword [ebp - 0xcc]
push 0x12dd8
call sub.ntoskrnl.exe_DbgPrint
push 0x12e08
jmp 0x13317
test byte [ebp - 0x2c], 1
je 0x135a4
test byte [ebp - 0x2c], 8
je 0x13578
xor eax, eax
mov dword [ebp - 0xd4], eax
cmp eax, dword [0x2bbc4]
jge 0x135a4
mov ecx, dword [0x2bbc0]
mov cl, byte [ecx + eax]
add byte [ebp - 0x20], cl
inc eax
jmp 0x1355b
mov dword [ebp - 0xd4], ebx
mov eax, dword [0x2bbcc]
cmp dword [ebp - 0xd4], eax
jge 0x135a4
mov eax, dword [0x2bbc8]
mov ecx, dword [ebp - 0xd4]
mov al, byte [eax + ecx]
add byte [ebp - 0x20], al
inc dword [ebp - 0xd4]
jmp 0x1357e
test byte [ebp - 0x2c], 2
je 0x135c9
xor eax, eax
mov dword [ebp - 0xd4], eax
cmp eax, dword [0x2bbd4]
jge 0x135c9
mov ecx, dword [0x2bbd0]
mov cl, byte [ecx + eax]
add byte [ebp - 0x34], cl
inc eax
jmp 0x135ac
test byte [ebp - 0x2c], 4
je 0x135fb
mov dword [ebp - 0xd4], ebx
mov eax, dword [0x2bbcc]
cmp dword [ebp - 0xd4], eax
jge 0x135fb
mov eax, dword [0x2bbc8]
mov ecx, dword [ebp - 0xd4]
mov al, byte [eax + ecx]
add byte [ebp - 0x28], al
inc dword [ebp - 0xd4]
jmp 0x135d5
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0xec], eax
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0xa8], ebx
push ebx
lea eax, [ebp - 0x110]
push eax
push 0x10000
push edi
lea eax, [ebp - 0x100]
push eax
push ebx
push ebx
push ebx
push dword [esi + 0x144]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xfc], 0x10000
je 0x1367f
push 0x12e0c
call sub.ntoskrnl.exe_DbgPrint
push dword [ebp - 0x110]
push dword [ebp - 0xfc]
push 0x12e14
call sub.ntoskrnl.exe_DbgPrint
push 0x12e6c
call sub.ntoskrnl.exe_DbgPrint
add esp, 0x14
cmp dword [ebp - 0xcc], ebx
jge 0x13756
mov edi, 0xc0000011
cmp dword [ebp - 0xcc], edi
je 0x13737
push 0x12e70
call sub.ntoskrnl.exe_DbgPrint
push dword [ebp - 0xcc]
push 0x12e78
call sub.ntoskrnl.exe_DbgPrint
push 0x12ea8
call sub.ntoskrnl.exe_DbgPrint
add esp, 0x10
push 5
push 0x18
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0x100]
push eax
push dword [esi + 0x144]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov dword [ebp - 0xcc], eax
cmp eax, ebx
jl 0x131e6
mov eax, dword [ebp - 0xb8]
add eax, 0x400
mov ecx, dword [ebp - 0xb4]
adc ecx, ebx
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xe4], ecx
push 0x14
push 8
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0x100]
push eax
push dword [esi + 0x148]
call dword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
mov dword [ebp - 0xcc], eax
jmp 0x131ec
push 0x12eac
call sub.ntoskrnl.exe_DbgPrint
push edi
push 0x12eb4
call sub.ntoskrnl.exe_DbgPrint
push 0x12ef4
jmp 0x136bb
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0x40], eax
test byte [ebp - 0x2c], 4
je 0x1376f
push dword [ebp - 0x28]
push eax
push edi
call fcn.00010d7a
test byte [ebp - 0x2c], 2
je 0x13781
push dword [ebp - 0x34]
push dword [ebp - 0x40]
push edi
call fcn.00010d7a
test byte [ebp - 0x2c], 0x10
je 0x137af
push dword [ebp - 0xf4]
push dword [ebp - 0xf8]
push dword [ebp - 0xa8]
mov eax, dword [ebp - 0xdc]
mov al, byte [eax + 0x371]
push eax
push dword [ebp - 0x40]
push edi
call fcn.00010e00
test byte [ebp - 0x2c], 1
je 0x137dd
push dword [ebp - 0xf4]
push dword [ebp - 0xf8]
push dword [ebp - 0xa8]
mov eax, dword [ebp - 0xdc]
mov al, byte [eax + 0x371]
push eax
push dword [ebp - 0x40]
push edi
call fcn.00010d96
mov eax, dword [ebp - 0x40]
add dword [ebp - 0xa8], eax
push 0xe
push 8
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x100]
push eax
push dword [esi + 0x144]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov dword [ebp - 0xcc], eax
cmp eax, ebx
jge 0x13835
push 0x12ef8
call sub.ntoskrnl.exe_DbgPrint
push dword [ebp - 0xcc]
push 0x12f00
call sub.ntoskrnl.exe_DbgPrint
push 0x12f3c
call sub.ntoskrnl.exe_DbgPrint
add esp, 0x10
mov eax, dword [ebp - 0xc8]
cmp dword [ebp - 0xb8], eax
jae 0x13874
push 0x12f40
call sub.ntoskrnl.exe_DbgPrint
mov dword [esp], 0x12f48
call sub.ntoskrnl.exe_DbgPrint
mov dword [esp], 0x12f74
call sub.ntoskrnl.exe_DbgPrint
pop ecx
cmp edi, ebx
je 0x1323b
push edi
jmp 0x13235
xor cl, cl
cmp cl, bl
jne 0x13884
sub eax, dword [ebp - 0x40]
add eax, 0x400
jmp 0x13887
sub eax, dword [ebp - 0x40]
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], ebx
push ebx
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x40]
push edi
lea eax, [ebp - 0x100]
push eax
push ebx
push ebx
push ebx
push dword [esi + 0x148]
call dword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0xfc]
je 0x138f0
push 0x12f78
call sub.ntoskrnl.exe_DbgPrint
push dword [ebp - 0xfc]
push dword [ebp - 0x40]
push 0x12f80
call sub.ntoskrnl.exe_DbgPrint
push 0x12fd8
call sub.ntoskrnl.exe_DbgPrint
add esp, 0x14
cmp dword [ebp - 0xcc], ebx
jge 0x1391c
push 0x12fdc
call sub.ntoskrnl.exe_DbgPrint
push dword [ebp - 0xcc]
push 0x12fe4
call sub.ntoskrnl.exe_DbgPrint
push 0x13014
jmp 0x13317
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x10c], eax
jmp 0x1361c
mov dword [ebp - 4], 1
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.ntoskrnl.exe_wcslen]
pop ecx
test eax, eax
jbe 0x1399e
dec dword [0x2b508]
push 4
push 0x2b508
push 4
push 0x13018
push 0x1302c
call fcn.00026892
jmp 0x1399e
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0xf0]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4