Function at 0x100212c0
Capabilities:
Access peb ldr_data
Encode data using xor
Get number of processors
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10021c49
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b4
push esi
push edi
sub esp, 0x10
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x1c0]
call fcn.10001eb0
mov dword [ebp - 4], 0
mov edi, 0xf
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], edi
mov byte [ebp - 0x34], 0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x164], 0
je 0x100215ad
mov dword [ebp - 0x104], 0x1002f520
mov dword [ebp - 0xf4], 0x1002f518
mov dword [ebp - 0x9c], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
sub esp, 8
mov byte [ebp - 4], 2
lea eax, [ebp - 0xec]
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x104]
push eax
call fcn.100041d0
lea eax, [ebp - 0xf4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xf4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf4], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xf4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xf8], eax
mov eax, dword [ebp - 0x104]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_iostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x104]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x108], eax
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0x104]
push 8
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x104]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x108], eax
mov dword [ebp - 0xec], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10005ba1
mov esi, eax
push 1
mov byte [ebp - 4], 7
call fcn.10004b60
mov dword [esi + 4], eax
add esp, 8
lea eax, [ebp - 0xe8]
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xe0], eax
lea eax, [ebp - 0xe4]
mov dword [ebp - 0xdc], eax
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xd0], eax
lea eax, [ebp - 0xd4]
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0xc8]
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xec], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0
lea eax, [ebp - 0x1b0]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0xf4]
call fcn.100031c0
mov byte [ebp - 4], 9
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], edi
mov byte [ebp - 0x54], 0
mov dword [ebp - 0x14], 0x11
mov ecx, dword [ebp - 0xb0]
test cl, 2
jne 0x1002150f
mov eax, dword [ebp - 0xcc]
mov edx, dword [eax]
test edx, edx
je 0x1002150f
mov eax, dword [ebp - 0xdc]
cmp edx, dword [ebp - 0xb4]
cmovb edx, dword [ebp - 0xb4]
mov ecx, dword [eax]
sub edx, ecx
push edx
jmp 0x10021535
test cl, 4
jne 0x1002153e
mov eax, dword [ebp - 0xd0]
mov edx, dword [eax]
test edx, edx
je 0x1002153e
mov eax, dword [ebp - 0xe0]
mov ecx, dword [eax]
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax]
sub eax, ecx
add eax, edx
push eax
push ecx
lea ecx, [ebp - 0x54]
call fcn.10003da0
mov dword [ebp - 4], 8
lea ecx, [ebp - 0x1b0]
movups xmm0, xmmword [ebp - 0x54]
mov esi, dword [ebp - 0x44]
shr esi, 1
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x18], esi
movq xmm0, qword [ebp - 0x44]
movq qword [ebp - 0x24], xmm0
call fcn.10004110
test eax, eax
jne 0x10021599
mov eax, dword [ebp - 0x1c0]
lea ecx, [ebp - 0x1c0]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.10001b00
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], 1
call fcn.10001d80
mov edi, dword [ebp - 0x20]
jmp 0x100215b0
mov esi, dword [ebp - 0x18]
push esi
call fcn.1000c177
xor esi, esi
mov dword [ebp - 0x1c], eax
add esp, 4
cmp dword [ebp - 0x24], esi
jbe 0x1002165a
mov edx, dword [ebp - 0x34]
nop word [eax + eax]
cmp edi, 0x10
lea ecx, [ebp - 0x34]
cmovae ecx, edx
mov cl, byte [ecx + esi]
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x100215e8
sub cl, 0x30
jmp 0x10021602
lea eax, [ecx - 0x61]
cmp al, 5
ja 0x100215f4
sub cl, 0x57
jmp 0x10021602
lea eax, [ecx - 0x41]
cmp al, 5
ja 0x10021600
sub cl, 0x37
jmp 0x10021602
xor cl, cl
cmp edi, 0x10
lea eax, [ebp - 0x34]
cmovae eax, edx
mov dl, byte [eax + esi + 1]
lea eax, [edx - 0x30]
cmp al, 9
ja 0x1002161b
sub dl, 0x30
jmp 0x10021635
lea eax, [edx - 0x61]
cmp al, 5
ja 0x10021627
sub dl, 0x57
jmp 0x10021635
lea eax, [edx - 0x41]
cmp al, 5
ja 0x10021633
sub dl, 0x37
jmp 0x10021635
xor dl, dl
shl cl, 4
add cl, dl
mov eax, esi
test eax, eax
jns 0x10021643
add eax, 1
sar eax, 1
mov edx, dword [ebp - 0x1c]
add esi, 2
mov byte [eax + edx], cl
mov edx, dword [ebp - 0x34]
cmp esi, dword [ebp - 0x24]
jb 0x100215d0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x18]
mov dword [ebp - 0x10], esi
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx + esi + 0x78]
mov ecx, dword [ecx + esi + 0x7c]
mov dword [ebp - 0x38], ecx
lea ecx, [edx + esi]
mov dword [ebp - 0x38], ecx
cmp ecx, esi
je 0x100216d7
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x100216d7
mov ecx, dword [ecx + 0x20]
lea ecx, [ecx + edi*4]
add ecx, esi
sub ecx, 4
dec edi
mov dword [ebp - 0x14], ecx
mov ecx, dword [ecx]
add ecx, esi
mov esi, 0xe629add6
mov dl, byte [ecx]
inc ecx
test dl, dl
je 0x100216cd
nop word [eax + eax]
movsx edx, dl
lea ecx, [ecx + 1]
xor edx, esi
imul esi, edx, 0x1000193
mov dl, byte [ecx - 1]
test dl, dl
jne 0x100216b0
cmp esi, 0xdc9825e6
je 0x100216db
mov ecx, dword [ebp - 0x14]
mov esi, dword [eax + 0x18]
test edi, edi
jne 0x10021693
mov eax, dword [eax]
jmp 0x10021666
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
push 0x40
mov ecx, dword [eax + 0x1c]
mov eax, dword [eax + 0x24]
add ecx, edx
add eax, edx
push 0x3000
push esi
push 0
movzx eax, word [eax + edi*2]
mov eax, dword [ecx + eax*4]
add eax, edx
call eax
mov edi, eax
nop
push esi
push dword [ebp - 0x1c]
push edi
call fcn.100070f0
add esp, 0xc
nop
nop
call dword [sym.imp.KERNEL32.dll_CreateTimerQueue]
push 0
push 0
push 1
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0x64
push 0
push edi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateTimerQueueTimer]
pop edi
pop esi
test eax, eax
jne 0x10021758
push str.Fail
call fcn.10001080
add esp, 4
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1002177b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WaitForSingleObject_failed___d__n
call fcn.10001080
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb 0x100217b3
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100217a9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002183a
push edx
push ecx
call fcn.10005b93
add esp, 8
mov eax, dword [ebp - 0x1c0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1c0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x1c4], eax
lea ecx, [ebp - 0x1b0]
call fcn.10002ad0
mov eax, dword [ebp - 0x1c0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1c0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x1c4], eax
lea eax, [ebp - 0x150]
mov dword [ebp - 4], 0xa
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.10005038
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.1000bd60
int3