Function at 0x100018b1
Capabilities:
Encrypt or decrypt via wincrypt
Extract resource via kernel32 functions
Query environment variable
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x250
mov eax, esp
lea ecx, [esp + 0x240]
mov dword [eax + 8], ecx
mov dword [eax + 4], 0x6fc
mov dword [eax], 0x779cfd
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentConsoleFont]
call eax
sub esp, 0xc
mov ecx, esp
mov dword [ecx + 8], 0xde8
mov dword [ecx + 4], 0x3f0
mov dword [ecx], 0xde8
mov ecx, dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 0xc8], eax
call ecx
sub esp, 0xc
mov ecx, esp
mov dword [ecx], 0xa66443
mov ecx, dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0xc4], eax
call ecx
sub esp, 4
xor ecx, ecx
mov edx, 0x1c
lea esi, [esp + 0x220]
mov dword [esp], esi
mov dword [esp + 4], 0
mov dword [esp + 8], 0x1c
mov dword [esp + 0xc0], eax
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xb8], edx
call sub.msvcrt.dll_memset
mov eax, esp
lea ecx, [esp + 0x220]
mov dword [eax + 4], ecx
mov dword [eax], 0x5e0c9a
mov eax, dword [sym.imp.KERNEL32.dll_HeapWalk]
call eax
sub esp, 8
lea ecx, [esp + 0x170]
mov edx, esp
lea esi, [esp + 0x170]
mov dword [edx], esi
mov edx, dword [sym.imp.KERNEL32.dll_SetTimeZoneInformation]
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb0], ecx
call edx
sub esp, 4
xor ecx, ecx
lea edx, [esp + 0xcc]
lea esi, [esp + 0xe0]
lea edi, [esp + 0x100]
lea ebx, [esp + 0x128]
mov dword [esp + 0xac], eax
lea eax, [esp + 0x150]
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa0], edi
mov dword [esp + 0x9c], esi
mov dword [esp + 0x98], eax
mov dword [esp + 0x94], ecx
jmp 0x10001c0b
xor eax, eax
mov ecx, esp
lea edx, [esp + 0x148]
mov dword [ecx + 0x14], edx
mov dword [ecx + 0x10], 0x564
mov dword [ecx + 0xc], 0x87f
mov dword [ecx + 8], 0xcd7
mov dword [ecx + 4], 0x87f
mov dword [ecx], 0xb0aa20
mov ecx, dword [sym.imp.GDI32.dll_ScaleWindowExtEx]
mov dword [esp + 0x90], eax
call ecx
sub esp, 0x18
xor ecx, ecx
mov edx, dword [esp + 0x8c]
sub edx, 0x60
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], ecx
mov dword [esp + 0x80], edx
je 0x10001da6
jmp 0x10001a6d
mov eax, dword [esp + 0x8c]
sub eax, 0x11
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ecx
jne 0x10001e10
jmp 0x10001a8e
lea eax, [esp + 0xd0]
mov ecx, dword [esp + 0xa8]
mov dword [ecx + 0x10], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 8], 0
mov dword [ecx + 4], 0
mov dword [ecx], 0
mov edx, dword [esp + 0xa0]
mov dword [edx + 0x10], 0
mov dword [edx + 0xc], 0
mov dword [edx + 8], 0
mov dword [edx + 4], 0
mov dword [edx], 0
mov dword [esp + 0xfc], 0x42f
mov dword [esp + 0xf8], 0xcec
mov dword [esp + 0xf4], 0x58
mov esi, esp
lea edi, [esp + 0xf4]
mov dword [esi + 0x1c], edi
lea edi, [esp + 0xf8]
mov dword [esi + 0x18], edi
lea edi, [esp + 0xfc]
mov dword [esi + 0x14], edi
lea edi, [esp + 0x100]
mov dword [esi + 0x10], edi
lea edi, [esp + 0x118]
mov dword [esi + 0xc], edi
mov dword [esi], ecx
mov dword [esi + 8], 0x86f
mov dword [esi + 4], 0xa1425b
mov esi, dword [sym.imp.ADVAPI32.dll_AccessCheck]
mov dword [esp + 0x74], eax
call esi
sub esp, 0x20
mov ecx, esp
mov dword [ecx], 0x320658
mov ecx, dword [sym.imp.KERNEL32.dll_LocalLock]
mov dword [esp + 0x70], eax
call ecx
sub esp, 4
mov ecx, dword [esp + 0x9c]
mov dword [ecx + 0x10], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 8], 0
mov dword [ecx + 4], 0
mov dword [ecx], 0
mov dword [esp + 0xdc], 0x369
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd0], 0
mov edx, dword [esp + 0xa4]
mov esi, dword [esp + 0x74]
mov dword [edx], esi
mov edi, esp
lea ebx, [esp + 0xdc]
mov dword [edi + 0xc], ebx
lea ecx, [esp + 0xcc]
mov dword [edi + 8], ecx
mov dword [edi + 4], ebx
mov ecx, dword [esp + 0x9c]
mov dword [edi], ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
mov dword [esp + 0x6c], eax
call edi
sub esp, 0x10
mov dword [esp + 0x68], eax
jmp 0x10001e4c
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x94]
mov ecx, esp
mov dword [ecx + 4], 0x714
mov dword [ecx], 0xb08a2b
mov ecx, dword [sym.imp.GDI32.dll_SetStretchBltMode]
mov dword [esp + 0x8c], eax
call ecx
sub esp, 8
mov ecx, esp
lea edx, [esp + 0x168]
mov dword [ecx + 0xc], edx
mov dword [ecx + 8], edx
mov dword [ecx + 4], edx
mov dword [ecx], 0x35cd77
mov ecx, dword [sym.imp.KERNEL32.dll_GetFileTime]
mov dword [esp + 0x64], eax
call ecx
sub esp, 0x10
mov ecx, 0x246137
mov dword [esp + 0x164], ecx
mov ecx, esp
lea edx, [esp + 0x164]
mov dword [ecx + 0xc], edx
mov dword [ecx + 0x18], 0xd3c
mov dword [ecx + 0x14], 0xe3
mov dword [ecx + 0x10], 0xd3c
mov dword [ecx + 8], 0x50d913
mov dword [ecx + 4], 0x347639
mov dword [ecx], 0x347639
mov ecx, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov dword [esp + 0x60], eax
call ecx
sub esp, 0x1c
mov ecx, esp
mov dword [ecx + 8], 0x69d
mov dword [ecx + 4], 0x7ed
mov dword [ecx], 0x856c00
mov ecx, dword [sym.imp.GDI32.dll_PtInRegion]
mov dword [esp + 0x5c], eax
call ecx
sub esp, 0xc
xor ecx, ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], ecx
mov eax, dword [esp + 0x54]
mov ecx, 0xaaaaaaab
mov dword [esp + 0x50], eax
mul ecx
shr edx, 3
imul eax, edx, 0xc
mov ecx, dword [esp + 0x50]
sub ecx, eax
mov eax, ecx
sub eax, 7
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], eax
je 0x10001d2a
jmp 0x10001d05
mov eax, dword [esp + 0x4c]
sub eax, 5
mov dword [esp + 0x44], eax
jne 0x10001d89
jmp 0x10001d14
mov eax, esp
mov dword [eax], 0xc08969
mov eax, dword [sym.imp.USER32.dll_IsIconic]
call eax
sub esp, 4
mov dword [esp + 0x40], eax
xor eax, eax
mov ecx, 0xc
mov edx, dword [esp + 0x98]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 0xc
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ecx
call sub.msvcrt.dll_memset
mov eax, esp
lea ecx, [esp + 0x150]
mov dword [eax + 8], ecx
lea ecx, [esp + 0x160]
mov dword [eax + 4], ecx
mov dword [eax + 0xc], 0x304
mov dword [eax], 0x9aa30b
mov eax, dword [sym.imp.GDI32.dll_PlayEnhMetaFileRecord]
call eax
sub esp, 0x10
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x50]
add eax, 1
cmp eax, 0x3dd
mov dword [esp + 0x54], eax
je 0x10001a02
jmp 0x10001cd9
mov byte [esp + 0x147], 2
mov dword [esp + 0x140], 0x65b
mov eax, esp
lea ecx, [esp + 0x140]
mov dword [eax + 0x14], ecx
lea ecx, [esp + 0x147]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x18], 0x65b
mov dword [eax + 0xc], 0x54e
mov dword [eax + 8], 0x48a
mov dword [eax + 4], 0xe9b285
mov dword [eax], 0x9fd2e4
mov eax, dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
call eax
sub esp, 0x1c
mov ecx, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [esp + 0x30], eax
call ecx
mov dword [esp + 0x2c], eax
jmp 0x10001a8e
mov eax, dword [esp + 0x78]
mov ecx, esp
mov dword [ecx + 4], 0x2ea
mov dword [ecx], 0x30c031
mov ecx, dword [sym.imp.USER32.dll_ShowWindowAsync]
mov dword [esp + 0x28], eax
call ecx
sub esp, 8
mov ecx, dword [esp + 0x28]
add ecx, 1
cmp ecx, 0xa
mov dword [esp + 0x24], eax
mov dword [esp + 0x78], ecx
jne 0x10001e10
mov eax, esp
mov dword [eax + 4], 0x48cd07
mov dword [eax], 0x48cd07
call sub.USER32.dll_ImpersonateDdeClientWindow
sub esp, 8
mov ecx, dword [esp + 0x8c]
add ecx, 1
cmp ecx, 0xed
mov dword [esp + 0x20], eax
mov dword [esp + 0x94], ecx
je 0x10001c03
jmp 0x10001c0b