Function at 0x100017ed
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, 0x258
mov eax, esp
lea ecx, [esp + 0x248]
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 + 0xd0], eax
call ecx
sub esp, 0xc
mov ecx, esp
mov dword [ecx], 0xa66443
mov ecx, dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0xcc], eax
call ecx
sub esp, 4
xor ecx, ecx
mov edx, 0x1c
lea esi, [esp + 0x228]
mov dword [esp], esi
mov dword [esp + 4], 0
mov dword [esp + 8], 0x1c
mov dword [esp + 0xc8], eax
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xc0], edx
call sub.msvcrt.dll_memset
mov eax, esp
lea ecx, [esp + 0x228]
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 + 0x178]
mov edx, esp
lea esi, [esp + 0x178]
mov dword [edx], esi
mov edx, dword [sym.imp.KERNEL32.dll_SetTimeZoneInformation]
mov dword [esp + 0xbc], eax
mov dword [esp + 0xb8], ecx
call edx
sub esp, 4
xor ecx, ecx
lea edx, [esp + 0xd4]
lea esi, [esp + 0xe8]
lea edi, [esp + 0x108]
lea ebx, [esp + 0x130]
mov dword [esp + 0xb4], eax
lea eax, [esp + 0x158]
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xac], edx
mov dword [esp + 0xa8], edi
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa0], eax
mov dword [esp + 0x9c], ecx
jmp 0x10001b35
mov byte [esp + 0x14f], 2
mov dword [esp + 0x148], 0x65b
mov eax, esp
lea ecx, [esp + 0x148]
mov dword [eax + 0x14], ecx
lea ecx, [esp + 0x14f]
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 + 0x98], eax
call ecx
mov dword [esp + 0x94], eax
jmp 0x10001c77
xor eax, eax
mov ecx, esp
lea edx, [esp + 0x150]
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, 0x11
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], ecx
mov dword [esp + 0x80], edx
je 0x10001c77
jmp 0x10001a19
mov eax, dword [esp + 0x8c]
sub eax, 0x60
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ecx
je 0x1000193e
jmp 0x10001af3
xor eax, eax
mov ecx, 0xc
mov edx, dword [esp + 0xa0]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 0xc
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], ecx
call sub.msvcrt.dll_memset
mov eax, esp
lea ecx, [esp + 0x158]
mov dword [eax + 8], ecx
lea ecx, [esp + 0x168]
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 + 0x6c], eax
jmp 0x10001c5d
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
sete dl
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], ecx
mov byte [esp + 0x63], dl
mov al, byte [esp + 0x63]
test al, 1
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x9c], ecx
jne 0x10001dec
jmp 0x10001b35
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 + 0x5c], eax
call ecx
sub esp, 8
mov ecx, dword [esp + 0x5c]
add ecx, 1
cmp ecx, 0xa
mov dword [esp + 0x58], eax
mov dword [esp + 0x78], ecx
je 0x10001aa1
jmp 0x10001af3
mov eax, dword [esp + 0x9c]
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 + 0x170]
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 + 0x54], eax
call ecx
sub esp, 0x10
mov ecx, 0x246137
mov dword [esp + 0x16c], ecx
mov ecx, esp
lea edx, [esp + 0x16c]
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 + 0x50], 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 + 0x4c], eax
call ecx
sub esp, 0xc
xor ecx, ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], ecx
mov eax, dword [esp + 0x44]
mov ecx, 0xaaaaaaab
mov dword [esp + 0x40], eax
mul ecx
shr edx, 3
imul eax, edx, 0xc
mov ecx, dword [esp + 0x40]
sub ecx, eax
mov eax, ecx
sub eax, 7
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], eax
je 0x10001a3d
jmp 0x10001c33
mov eax, dword [esp + 0x3c]
sub eax, 5
mov dword [esp + 0x34], eax
jne 0x10001c5d
jmp 0x10001c42
mov eax, esp
mov dword [eax], 0xc08969
mov eax, dword [sym.imp.USER32.dll_IsIconic]
call eax
sub esp, 4
mov dword [esp + 0x30], eax
jmp 0x10001a3d
mov eax, dword [esp + 0x40]
add eax, 1
cmp eax, 0x3dd
mov dword [esp + 0x44], eax
je 0x100019ae
jmp 0x10001c03
lea eax, [esp + 0xd8]
mov ecx, dword [esp + 0xb0]
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 + 0xa8]
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 + 0x104], 0x42f
mov dword [esp + 0x100], 0xcec
mov dword [esp + 0xfc], 0x58
mov esi, esp
lea edi, [esp + 0xfc]
mov dword [esi + 0x1c], edi
lea edi, [esp + 0x100]
mov dword [esi + 0x18], edi
lea edi, [esp + 0x104]
mov dword [esi + 0x14], edi
lea edi, [esp + 0x108]
mov dword [esi + 0x10], edi
lea edi, [esp + 0x120]
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 + 0x2c], eax
call esi
sub esp, 0x20
mov ecx, esp
mov dword [ecx], 0x320658
mov ecx, dword [sym.imp.KERNEL32.dll_LocalLock]
mov dword [esp + 0x28], eax
call ecx
sub esp, 4
mov ecx, dword [esp + 0xa4]
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 + 0xe4], 0x369
mov dword [esp + 0xdc], 0
mov dword [esp + 0xd8], 0
mov edx, dword [esp + 0xac]
mov esi, dword [esp + 0x2c]
mov dword [edx], esi
mov edi, esp
lea ebx, [esp + 0xe4]
mov dword [edi + 0xc], ebx
lea ecx, [esp + 0xd4]
mov dword [edi + 8], ecx
mov dword [edi + 4], ebx
mov ecx, dword [esp + 0xa4]
mov dword [edi], ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
mov dword [esp + 0x24], eax
call edi
sub esp, 0x10
mov dword [esp + 0x20], eax
jmp 0x10001aa1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret