Function at 0x1001d610
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get thread local storage value
Hash data using sha256
Read file on windows
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x40
push 0x3000
push 0x10110
xor edi, edi
push edi
mov dword [ebp - 0xc], 0x10110
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x1001d6b4
mov eax, dword [0x100278f8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, edi
jne 0x1001d677
push edi
push edi
push 3
push edi
push edi
push edi
push str..dcrypt
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x1001d69e
mov ecx, dword [0x100278f8]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edi
lea edx, [ebp - 8]
push edx
push edi
push edi
push 8
lea eax, [ebp - 0x10]
push eax
push 0x2201f0
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1001d6ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x1001d6ad
mov ecx, dword [ebp - 0x10]
push 0x10110
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualLock]
mov esi, dword [ebp - 0x10]
cmp esi, edi
jne 0x1001d6c0
mov eax, 9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push edx
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1001d6f0
push esi
mov edi, 0xd
call sym.dcapi.dll_secure_free
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
mov dword [esi + 0x48], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
push 0x10000
lea edi, [esi + 0xd0]
push edi
push ebx
mov dword [esi], 0xf3bcc908
mov dword [esi + 4], 0x6a09e667
mov dword [esi + 8], 0x84caa73b
mov dword [esi + 0xc], 0xbb67ae85
mov dword [esi + 0x10], 0xfe94f82b
mov dword [esi + 0x14], 0x3c6ef372
mov dword [esi + 0x18], 0x5f1d36f1
mov dword [esi + 0x1c], 0xa54ff53a
mov dword [esi + 0x20], 0xade682d1
mov dword [esi + 0x24], 0x510e527f
mov dword [esi + 0x28], 0x2b3e6c1f
mov dword [esi + 0x2c], 0x9b05688c
mov dword [esi + 0x30], 0xfb41bd6b
mov dword [esi + 0x34], 0x1f83d9ab
mov dword [esi + 0x38], 0x137e2179
mov dword [esi + 0x3c], 0x5be0cd19
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001d7aa
mov eax, dword [ebp - 4]
test eax, eax
je 0x1001d7aa
push eax
push edi
call fcn.100154d0
push 0
lea ecx, [ebp - 4]
push ecx
push 0x10000
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001d785
lea edx, [esi + 0x100d0]
push edx
mov eax, esi
call fcn.10015400
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov ecx, 0x100
sub ecx, eax
push ecx
lea edx, [eax + edi + 4]
push 0
push edx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [edi + 8]
lea ecx, [esi + 0x100d4]
mov dword [ebp - 8], 4
mov edx, dword [ecx - 4]
add dword [eax - 4], edx
mov edx, dword [ecx]
add dword [eax], edx
mov edx, dword [ecx + 4]
add dword [eax + 4], edx
mov edx, dword [ecx + 8]
add dword [eax + 8], edx
add ecx, 0x10
add eax, 0x10
dec dword [ebp - 8]
jne 0x1001d7e4
mov eax, dword [edi]
cmp eax, 0x40
jg 0x1001d811
mov eax, 0x40
mov dword [edi], eax
xor edi, edi
test ebx, ebx
je 0x1001d820
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call sym.dcapi.dll_secure_free
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret