Function at 0x1003409
Capabilities:
Accept command line arguments
Check os version
Compare security identifiers
Parse pe header
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, dword [ebp - 0x2168]
mov dword [ebp - 0x2380], eax
movzx esi, word [eax]
test si, si
je 0x1001a8d
push esi
call fcn.01002987
pop ecx
test al, al
jne 0x1005e4d
and dword [ebp - 0x2398], 0
test si, si
je 0x1001c3d
mov edi, 0x104
cmp si, 0x2f
jne 0x1005e5f
mov eax, dword [ebp - 0x2380]
inc eax
inc eax
movzx esi, word [eax]
push eax
or esi, 0x20
call fcn.0100219c
pop ecx
mov ecx, eax
push 0x52
mov dword [ebp - 0x2380], ecx
mov edi, 0x10020a0
pop eax
movzx eax, ax
or eax, 0x20
cmp eax, esi
je 0x1001ae5
inc edi
inc edi
movzx eax, word [edi]
test ax, ax
jne 0x1001ad1
movzx esi, word [edi]
test si, si
je 0x100602a
movzx eax, word [ecx]
cmp ax, 0x20
je 0x1001b03
test ax, ax
jne 0x1005ed8
xor ebx, ebx
lea eax, [ebp - 0x2380]
push eax
call fcn.01002389
lea eax, [ebp - 0xa08]
pop ecx
mov dword [ebp - 0x2384], eax
cmp si, 0x63
je 0x1005eea
cmp si, 0x50
je 0x1005ef7
cmp si, 0x71
je 0x1003972
cmp si, 0x63
je 0x1003972
push 0x400
lea eax, [ebp - 0x2384]
push eax
lea eax, [ebp - 0x2380]
push eax
call fcn.01004547
add esp, 0xc
test al, al
je 0x1005caa
lea eax, [ebp - 0x2380]
push eax
call fcn.01002389
movzx esi, ax
movzx eax, word [edi]
pop ecx
cmp ax, 0x46
je 0x100397f
cmp ax, 0x71
je 0x100397f
cmp ax, 0x4a
je 0x100397f
cmp ax, 0x6c
je 0x100397f
movzx eax, word [edi]
cmp ax, 0x61
jae 0x1005f9f
mov ecx, dword [0x100e034]
test ecx, ecx
jne 0x1005fc6
mov dword [0x100e034], edi
cmp ax, 0x50
je 0x1001be4
mov eax, 0x400
push eax
push dword [ebp - 0x239c]
push eax
lea eax, [ebp - 0x1a08]
push eax
call fcn.01003a9e
push 0x1e
push dword [ebp - 0x2390]
lea eax, [ebp - 0x108]
push 0x1e
push eax
call fcn.01003a9e
mov eax, dword [0x100e034]
cmp word [eax], 0x45
je 0x1001c3d
lea eax, [ebp - 0xa08]
mov dword [ebp - 0x239c], eax
xor eax, eax
mov word [ebp - 0xa08], ax
lea eax, [ebp - 0x1208]
mov dword [ebp - 0x2390], eax
xor eax, eax
mov word [ebp - 0x1208], ax
mov edi, 0x104
test si, si
jne 0x1001aa2
mov ecx, dword [0x100e034]
xor edi, edi
cmp ecx, edi
je 0x1006039
movzx eax, word [ecx]
push 0x45
pop edx
cmp dx, ax
je 0x1001c73
push 0x59
pop edx
cmp dx, ax
je 0x1001c73
push 0x5a
pop edx
cmp dx, ax
je 0x1001c73
call fcn.010045db
mov ecx, dword [0x100e034]
cmp word [ecx], 0x50
mov eax, dword [ebp - 0x1a18]
je 0x1001c85
lea eax, [ebp - 0x1a08]
push eax
sub ecx, 0x10020a0
lea eax, [ebp - 0x108]
sar ecx, 1
push eax
call dword [ecx*4 + 0x100fc48]
mov esi, eax
mov eax, dword [0x100e034]
movzx eax, word [eax]
pop ecx
pop ecx
mov dword [ebp - 0x2398], esi
cmp ax, 0x59
je 0x1001ce0
cmp ax, 0x5a
je 0x1001ce0
cmp esi, edi
je 0x1006083
cmp esi, 0x8000
jne 0x10060d8
mov dword [0x100e01c], edi
mov dword [ebp - 0x2398], edi
mov esi, dword [ebp - 0x2398]
lea ecx, [ebp - 0x2168]
call fcn.01001de6
lea ecx, [ebp - 0x1a18]
call fcn.01001e0b
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01001d10
leave
ret
movzx eax, word [esi]
test ax, ax
je 0x10036f9
push eax
call fcn.01002369
pop ecx
test al, al
je 0x10036da
mov edi, dword [ebp - 0x238c]
lea eax, [edi - 1]
cmp eax, 1
jne 0x10033ec
push 0xffffffffffffffff
push 0x1003400
lea eax, [edi - 1]
push eax
lea eax, [esi + 2]
push eax
push 1
push 0x409
call dword [sym.imp.KERNEL32.DLL_CompareStringW]
cmp eax, 2
je 0x1005e00
lea eax, [edi - 1]
cmp dword [ebp - 0x23a4], eax
jne 0x10036da
jmp 0x1005dd9
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2418
call fcn.0100403b
mov eax, dword [0x100e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push 0x100e058
push edi
push edi
lea eax, [ebp - 0x1a0c]
push edi
push edi
mov dword [ebp - 0x1a14], 1
mov dword [ebp - 0x1a18], eax
call fcn.010021e5
mov ecx, dword [0x100ec10]
xor eax, eax
mov word [ecx], ax
mov ecx, dword [0x100e400]
mov word [ecx], ax
lea eax, [ebp - 0x215c]
add esp, 0x1c
mov dword [ebp - 0x2164], 0x104
mov dword [ebp - 0x2168], eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
push 0x22
mov ebx, eax
pop ecx
cmp word [ebx], cx
je 0x1005c52
push 0x20
pop ecx
movzx eax, word [ebx]
cmp ax, di
je 0x10034b6
nop
nop
nop
nop
nop
nop
nop
cmp ax, cx
je 0x10034af
inc ebx
inc ebx
movzx eax, word [ebx]
cmp ax, di
jne 0x10034a0
cmp word [ebx], di
je 0x10034b6
inc ebx
inc ebx
mov eax, dword [ebp + 8]
push 0xfffffffffffffff5
mov dword [0x100e014], eax
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov dword [0x100e030], eax
cmp eax, 0xffffffff
je 0x10034db
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileType]
test eax, eax
jne 0x10034e1
mov dword [0x100e030], edi
xor eax, eax
mov esi, 0x7fe
push esi
mov word [ebp - 0xa08], ax
lea eax, [ebp - 0xa06]
push edi
push eax
mov dword [ebp - 0x23e0], edi
call sub.msvcrt.dll_memset
xor eax, eax
push esi
mov word [ebp - 0x1208], ax
lea eax, [ebp - 0x1206]
push edi
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0xa08]
mov dword [ebp - 0x239c], eax
lea eax, [ebp - 0x1208]
add esp, 0x18
mov dword [ebp - 0x2390], eax
mov dword [ebp - 0x23b4], edi
mov dword [0x100e01c], edi
movzx eax, word [ebx]
cmp ax, 0x20
je 0x100395c
cmp ax, 9
je 0x100395c
movzx eax, word [ebx]
cmp ax, 0x2f
jne 0x1005c59
lea eax, [ebx + 2]
cmp eax, edi
je 0x100357d
mov ax, word [eax]
or ax, 0x20
cmp ax, 0x60
je 0x1005c68
lea eax, [ebp - 0x2384]
push eax
push 0x7fffffff
push ebx
mov dword [ebp - 0x2384], edi
call fcn.010024df
test eax, eax
jl 0x1005dcf
mov eax, dword [ebp - 0x2384]
push edi
inc eax
push eax
lea ecx, [ebp - 0x2168]
call fcn.01002465
test al, al
je 0x1003963
mov ecx, dword [ebp - 0x2168]
xor eax, eax
mov word [ecx], ax
mov esi, 0x100392c
lea edi, [ebp - 0x8c]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, 0x1003924
lea edi, [ebp - 0x84]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, 0x1003914
lea edi, [ebp - 0xac]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 8
pop ecx
movsw word es:[edi], word [esi]
mov esi, 0x10038f4
lea edi, [ebp - 0xcc]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x23a4]
xor edx, edx
push ecx
mov eax, 0x100213c
push 0x7fffffff
push eax
mov dword [ebp - 0x7c], 0x10038e4
mov dword [ebp - 0x78], edx
mov byte [ebp - 0x74], dl
mov dword [ebp - 0x70], 0x10038d0
mov dword [ebp - 0x6c], edx
mov byte [ebp - 0x68], dl
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], 0x10038c8
mov byte [ebp - 0x5c], 1
mov dword [ebp - 0x58], 0x10038bc
mov dword [ebp - 0x54], 0x10038b4
mov byte [ebp - 0x50], 1
mov dword [ebp - 0x4c], 0x10038a8
mov dword [ebp - 0x48], 0x10038a0
mov byte [ebp - 0x44], 1
mov dword [ebp - 0x40], 0x1003890
mov dword [ebp - 0x3c], 0x1003864
mov byte [ebp - 0x38], 1
mov dword [ebp - 0x34], 0x1003850
mov dword [ebp - 0x30], 0x1003824
mov byte [ebp - 0x2c], 1
mov dword [ebp - 0x28], 0x1003808
mov dword [ebp - 0x24], 0x10037ec
mov byte [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0x10037d0
mov dword [ebp - 0x18], 0x10037b0
mov byte [ebp - 0x14], 1
mov dword [ebp - 0x10], 0x10037a8
mov dword [ebp - 0xc], 0x10037a0
mov byte [ebp - 8], 1
mov dword [ebp - 0x23a4], edx
call fcn.010024df
test eax, eax
jl 0x1005dcf
and dword [ebp - 0x238c], 0
mov dword [ebp - 0x2384], ebx
lea eax, [ebp - 0x238c]
push eax
lea eax, [ebp - 0x2384]
push eax
call fcn.010028d5
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100339e
lea eax, [ebp - 0x84]
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x74], 1
lea eax, [ebp - 0x8c]
mov byte [ebp - 0x68], 1
and dword [ebp - 0x238c], 0
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x2384], ebx
lea eax, [ebp - 0x238c]
push eax
lea eax, [ebp - 0x2384]
push eax
call fcn.010028d5
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x1003932
mov esi, dword [ebp - 0x2168]
and dword [ebp - 0x2384], 0
lea eax, [ebp - 0x2384]
push eax
push 0x7fffffff
push esi
call fcn.010024df
test eax, eax
jl 0x1005dcf
mov eax, dword [ebp - 0x2384]
test eax, eax
jbe 0x1001a6a
lea esi, [esi + eax*2 - 2]
movzx eax, word [esi]
push eax
call fcn.01002987
pop ecx
test al, al
je 0x1001a6a
cmp esi, dword [ebp - 0x2168]
jb 0x1001a6a
xor eax, eax
mov word [esi], ax
dec esi
dec esi
jmp 0x1003778
movzx eax, word [edi]
test ax, ax
je 0x100373f
push eax
call fcn.01002369
pop ecx
test al, al
je 0x10039bd
mov ebx, dword [ebp - 0x238c]
and dword [ebp - 0x23a0], 0
dec ebx
lea esi, [ebp - 0x7c]
jmp 0x100398c
inc ebx
inc ebx
jmp 0x1003541
push 0xe
pop esi
jmp 0x1001ce0
mov esi, eax
jmp 0x1001ce0
test ebx, ebx
jne 0x1001b46
jmp 0x1001b69
test ebx, ebx
jne 0x1005f39
jmp 0x1001ba4
push 0xffffffffffffffff
push dword [esi]
lea eax, [edi + 2]
push ebx
push eax
push 1
push 0x409
call dword [sym.imp.KERNEL32.DLL_CompareStringW]
cmp eax, 2
je 0x1005e1c
inc dword [ebp - 0x23a0]
add esi, 0xc
cmp dword [ebp - 0x23a0], 0xa
jb 0x100398c
push 1
push dword [ebp - 0x238c]
lea eax, [ebp - 0x2168]
push edi
push eax
mov dword [ebp - 0x2160], 0x104
call fcn.010039ee
add esp, 0x10
test eax, eax
je 0x1003720
jmp 0x100396b
inc ebx
inc ebx
jmp 0x1003491
cmp ax, 0x2d
je 0x1003565
jmp 0x100357d
lea eax, [ebp - 0x2380]
add ebx, 4
push eax
mov dword [ebp - 0x2380], ebx
call fcn.01002389
lea eax, [ebp - 0xa08]
mov dword [ebp - 0x2384], eax
lea eax, [ebp - 0x2384]
mov dword [esp], 0x400
push eax
lea eax, [ebp - 0x2380]
push eax
call fcn.01004547
add esp, 0xc
test al, al
jne 0x1005cb9
call fcn.0100be15
mov esi, 0x667
jmp 0x1001ce0
mov eax, dword [ebp - 0x2164]
add eax, eax
mov dword [ebp - 0x23c4], eax
lea eax, [ebp - 0x23b0]
push eax
mov dword [ebp - 0x23a4], edi
mov dword [ebp - 0x23b0], 0x20019
call fcn.01004283
pop ecx
lea eax, [ebp - 0x23c0]
push eax
push dword [ebp - 0x23b0]
push edi
push 0x10070d0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x1005dc8
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x23c4]
push eax
push dword [ebp - 0x2168]
lea eax, [ebp - 0x23a4]
push eax
push edi
lea eax, [ebp - 0xa08]
push eax
push dword [ebp - 0x23c0]
call esi
mov ebx, eax
cmp ebx, 0xea
jne 0x1005d81
mov eax, dword [ebp - 0x23c4]
push edi
shr eax, 1
push eax
lea ecx, [ebp - 0x2168]
call fcn.01002465
test al, al
je 0x1003963
lea eax, [ebp - 0x23c4]
push eax
push dword [ebp - 0x2168]
lea eax, [ebp - 0x23a4]
push eax
push edi
lea eax, [ebp - 0xa08]
push eax
push dword [ebp - 0x23c0]
call esi
mov ebx, eax
push dword [ebp - 0x23c0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, edi
jne 0x1005dc8
cmp dword [ebp - 0x23a4], 1
jne 0x1005dc8
mov eax, dword [ebp - 0x2168]
mov dword [ebp - 0x2380], eax
mov eax, dword [ebp - 0x2380]
movzx esi, word [eax]
cmp si, 0x20
je 0x1005dbf
cmp si, 9
jne 0x1001a8d
add dword [ebp - 0x2380], 2
jmp 0x1005da6
xor esi, esi
jmp 0x1001ce0
mov esi, 0x65b
jmp 0x1001ce0
push dword [ebp - 0x23a4]
dec edi
push 0x100213c
push edi
add esi, 2
push esi
push 1
push 0x409
call dword [sym.imp.KERNEL32.DLL_CompareStringW]
cmp eax, 2
jne 0x10036da
lea eax, [ebp - 0xac]
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x74], 0
lea eax, [ebp - 0xcc]
mov byte [ebp - 0x68], 0
jmp 0x1003710
mov eax, dword [ebp - 0x23a0]
imul eax, eax, 0xc
movzx ecx, byte [ebp + eax - 0x74]
push ecx
push dword [ebp + eax - 0x78]
lea eax, [ebp - 0x2168]
push eax
mov dword [ebp - 0x2160], 0x104
call fcn.01009904
add esp, 0xc
jmp 0x10039df
add dword [ebp - 0x2380], 2
mov eax, dword [ebp - 0x2380]
jmp 0x1001a76
cmp si, 0x2d
je 0x1001aac
lea ecx, [ebp - 0x237c]
call fcn.01008ca9
lea eax, [ebp - 0x237c]
push eax
lea eax, [ebp - 0x2380]
push eax
mov dword [ebp - 0x2374], edi
call fcn.0100b7e6
pop ecx
pop ecx
test eax, eax
je 0x1006095
push dword [ebp - 0x237c]
lea eax, [ebp - 0x1208]
push eax
call fcn.0100a5bd
lea eax, [ebp - 0x2380]
push eax
call fcn.01002389
add esp, 0xc
cmp dword [ebp - 0x2378], edi
movzx esi, ax
jle 0x1001c34
push dword [ebp - 0x237c]
call fcn.01008836
pop ecx
jmp 0x1001c34
cmp ax, 9
je 0x1001b03
xor ebx, ebx
inc ebx
jmp 0x1001b05
test ebx, ebx
je 0x1001b28
jmp 0x100602a
push 0
push dword [ebp - 0x2380]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
add eax, 0xa
push eax
lea ecx, [ebp - 0x1a18]
call fcn.01008b11
test al, al
je 0x10060bd
mov eax, dword [ebp - 0x1a18]
push dword [ebp - 0x1a14]
mov dword [ebp - 0x23a8], eax
lea eax, [ebp - 0x23a8]
jmp 0x1001b51
lea ecx, [ebp - 0x1208]
mov dword [ebp - 0x2384], ecx
lea ecx, [ebp - 0xa08]
mov dword [ebp - 0x2390], ecx
lea ecx, [ebp - 0x1208]
mov dword [ebp - 0x239c], ecx
cmp ax, 0x71
je 0x1001ba4
push 0x400
lea eax, [ebp - 0x2384]
push eax
lea eax, [ebp - 0x2380]
push eax
call fcn.01004547
add esp, 0xc
test al, al
je 0x1005caa
lea eax, [ebp - 0x2380]
push eax
call fcn.01002389
pop ecx
movzx esi, ax
jmp 0x1001ba4
cmp ax, 0x7a
ja 0x1001bb1
push dword [ebp - 0x239c]
sub edi, 0x10020a0
push dword [ebp - 0x2390]
sar edi, 1
call dword [edi*4 + 0x100fc48]
jmp 0x1006020
cmp ax, 0x50
jne 0x1006007
cmp word [ecx], 0x41
jne 0x1006007
lea eax, [ebp - 0x1a08]
push eax
push 0x41
call fcn.01009b61
pop ecx
pop ecx
test eax, eax
jne 0x100602a
push 0x1e
push dword [ebp - 0x2390]
lea eax, [ebp - 0x108]
push 0x1e
push eax
mov dword [0x100e034], edi
call fcn.01003a9e
jmp 0x1001c05
cmp word [ecx], 0x50
jne 0x100602a
cmp ax, 0x41
jne 0x100602a
push dword [ebp - 0x239c]
push 0x41
call fcn.01009b61
pop ecx
pop ecx
test eax, eax
je 0x1001c05
call fcn.0100be15
mov dword [ebp - 0x2398], 0x667
call fcn.010045db
cmp dword [ebp - 0x2398], 0
jne 0x1001cda
cmp dword [0x100e034], 0
jne 0x1006154
call fcn.0100be15
mov esi, 0x667
mov dword [ebp - 0x2398], esi
xor edi, edi
cmp esi, edi
jne 0x1001cda
cmp dword [ebp - 0x23b4], edi
je 0x1006156
jmp 0x1006162
cmp ax, 0x45
jne 0x10060cc
mov dword [0x100e01c], 1
jmp 0x100606a
call fcn.0100be15
cmp dword [ebp - 0x2378], edi
mov dword [ebp - 0x2398], 0x667
jle 0x1006039
push dword [ebp - 0x237c]
call fcn.01008836
pop ecx
jmp 0x1006039
mov dword [ebp - 0x2398], 0xe
jmp 0x1006039
mov dword [ebp - 0x23b4], 1
jmp 0x100606a
cmp ax, 0x52
je 0x1006148
cmp ax, 0x55
je 0x1006148
mov eax, 0x4eb
cmp esi, eax
jg 0x100611c
je 0x100606a
cmp esi, 0xfffffffe
jl 0x1006148
cmp esi, edi
jl 0x1001cda
cmp esi, 1
jle 0x1006148
cmp esi, 3
jle 0x100610f
cmp esi, 0x7b
jne 0x1006148
mov esi, 0x653
mov dword [ebp - 0x2398], esi
jmp 0x1006148
cmp esi, 0x642
jl 0x1006148
cmp esi, 0x644
jle 0x100606a
cmp esi, 0x669
je 0x100606a
cmp esi, 0xbc2
je 0x100606a
push esi
call fcn.0100b561
pop ecx
jmp 0x100606a
xor edi, edi
cmp dword [0x100e01c], edi
je 0x1001cda
push edi
cmp dword [0x100e01c], edi
je 0x1006174
push edi
call dword [0x100e060]
jmp 0x1006185
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x10070b4
call fcn.01004361
pop ecx
cmp dword [ebp - 0x23b4], edi
je 0x10061d5
cmp dword [0x100e01c], edi
jne 0x10061e4
xor ebx, ebx
xor esi, esi
mov edi, 0x1002090
inc ebx
lea eax, [esi + 0x100e0c0]
push eax
push ebx
push 4
lea eax, [esi + 0x100e038]
push eax
push edi
call dword [sym.imp.ole32.dll_CoRegisterClassObject]
test eax, eax
jne 0x10061cd
add edi, 0x10
add esi, 4
cmp edi, 0x10020a0
jl 0x100619f
xor edi, edi
jmp 0x10061d8
mov dword [ebp - 0x23e0], ebx
jmp 0x10061c9
xor ebx, ebx
inc ebx
cmp dword [0x100e01c], edi
je 0x1006c69
mov esi, dword [ebp - 0x2380]
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x9c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
movzx eax, word [esi]
cmp ax, 0x30
jb 0x1006222
cmp ax, 0x39
ja 0x1006222
mov ecx, ebx
and ecx, 0x80000001
jns 0x1006216
dec ecx
or ecx, 0xfffffffe
inc ecx
neg ecx
movzx eax, ax
sbb ecx, ecx
sub eax, 0x30
jmp 0x1006247
cmp ax, 0x41
jb 0x100626e
cmp ax, 0x46
ja 0x100626e
mov ecx, ebx
and ecx, 0x80000001
jns 0x100623d
dec ecx
or ecx, 0xfffffffe
inc ecx
neg ecx
movzx eax, ax
sbb ecx, ecx
sub eax, 0x37
and ecx, 0xfffffff1
add ecx, 0x10
imul ecx, eax
cmp ebx, 0x20
jge 0x1006c5f
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
lea eax, [ebp + eax - 0x9c]
or byte [eax], cl
inc ebx
inc esi
inc esi
jmp 0x10061f8
cmp ebx, 0x20
jne 0x1006c5f
cmp word [esi], 0
mov byte [ebp - 0x23ac], 0
mov byte [ebp - 0x2391], 0
mov byte [ebp - 0x2385], 0
mov byte [ebp - 0x23c8], 0
je 0x100629b
inc esi
inc esi
movzx eax, word [esi]
cmp ax, 0x43
jne 0x10063a7
mov byte [ebp - 0x23ac], 1
xor ebx, ebx
or dword [ebp - 0x2380], 0xffffffff
lea eax, [ebp - 0x2380]
push eax
push 1
push 2
call dword [sym.imp.KERNEL32.DLL_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x10062ee
or dword [ebp - 0x2380], 0xffffffff
call edi
cmp eax, 0x3f0
jne 0x1006c5f
cmp byte [ebp - 0x2391], 0
jne 0x10062fd
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov esi, 0x80000001
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp byte [ebp - 0x2391], 0
je 0x1006322
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
lea eax, [ebp - 0x23e4]
push eax
xor esi, esi
push 8
mov dword [ebp - 0x2384], esi
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1006434
lea eax, [ebp - 0x23a8]
push eax
call fcn.01003c62
pop ecx
test eax, eax
jne 0x1006396
lea eax, [ebp - 0x2418]
push eax
push 0x50
lea eax, [ebp - 0x54]
push eax
push 1
push dword [ebp - 0x23e4]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1006396
push dword [ebp - 0x23a8]
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov esi, eax
neg esi
sbb esi, esi
and esi, 2
mov dword [ebp - 0x2384], esi
push dword [ebp - 0x23e4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x100646d
cmp ax, 0x55
jne 0x10063c0
mov byte [ebp - 0x23ac], 1
mov byte [ebp - 0x2385], 1
jmp 0x10062af
cmp ax, 0x41
jne 0x10063d2
mov byte [ebp - 0x23c8], 1
jmp 0x10062af
cmp ax, 0x4d
je 0x10063e3
cmp ax, 0x45
je 0x10063ea
jmp 0x10062af
mov byte [ebp - 0x2391], 1
add esi, 4
push esi
xor ebx, ebx
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.DLL_OpenEventW]
mov esi, eax
cmp esi, ebx
je 0x1006c4c
cmp esi, 0xffffffff
je 0x1006c4c
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp edi, ebx
je 0x10062b1
push edi
push 0x1007048
jmp 0x1006c58
call edi
mov edi, eax
xor eax, eax
push 0x206
mov word [ebp - 0x2370], ax
lea eax, [ebp - 0x236e]
push ebx
push eax
call sub.msvcrt.dll_memset
push edi
push 0x1007008
lea eax, [ebp - 0x2370]
push 0x104
push eax
call fcn.01008f12
add esp, 0x1c
cmp byte [ebp - 0x2385], 0
je 0x100648c
cmp esi, 1
jne 0x100647f
push 7
jmp 0x1006485
cmp esi, ebx
jne 0x10064a1
push 6
pop esi
mov dword [ebp - 0x2384], esi
cmp byte [ebp - 0x23c8], 0
push 5
pop eax
je 0x10064bd
cmp esi, ebx
jne 0x10064ac
push 4
pop esi
jmp 0x10064b7
push ebx
push 0x1006f40
jmp 0x1006c58
cmp esi, 1
jne 0x1006c5f
mov esi, eax
mov dword [ebp - 0x2384], esi
mov edi, 0x100
mov dword [ebp - 0x23d0], edi
cmp esi, ebx
je 0x10064e4
cmp esi, 1
je 0x10064e4
cmp esi, 4
je 0x10064e4
cmp esi, eax
je 0x10064e4
cmp esi, 6
je 0x10064e4
cmp esi, 7
jne 0x10064e7
push 4
pop eax
push ebx
push eax
lea eax, [ebp - 0x23d0]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.01002b95
mov esi, eax
add esp, 0x10
cmp esi, ebx
je 0x1006523
cmp dword [ebp - 0x2380], 0xffffffff
je 0x1001ce0
push dword [ebp - 0x2380]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x1001ce0
mov eax, dword [ebp - 0x23d0]
push eax
lea ecx, [ebp - 0x1b24]
mov dword [ebp - 0x23f8], eax
mov dword [ebp - 0x23d4], eax
mov dword [ebp - 0x23e8], eax
mov dword [ebp - 0x23dc], eax
mov dword [ebp - 0x23d8], eax
call fcn.01008cd5
push dword [ebp - 0x23d4]
lea ecx, [ebp - 0x1f54]
call fcn.01008cd5
push dword [ebp - 0x23e8]
lea ecx, [ebp - 0x1d3c]
call fcn.01008cd5
push dword [ebp - 0x23dc]
lea ecx, [ebp - 0x1c30]
call fcn.01008cd5
push dword [ebp - 0x23d8]
lea ecx, [ebp - 0x1e48]
call fcn.01008cd5
lea eax, [ebp - 0x23d8]
push eax
push dword [ebp - 0x1e48]
lea eax, [ebp - 0x23dc]
push eax
push dword [ebp - 0x1c30]
lea eax, [ebp - 0x23e8]
push eax
push dword [ebp - 0x1d3c]
lea eax, [ebp - 0x23d4]
push eax
push dword [ebp - 0x1f54]
lea eax, [ebp - 0x23f8]
push eax
push dword [ebp - 0x1b24]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.ADVAPI32.dll_MakeAbsoluteSD]
test eax, eax
jne 0x1006677
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp dword [ebp - 0x2380], 0xffffffff
mov esi, eax
je 0x100660a
push dword [ebp - 0x2380]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x1e44], edi
jle 0x100661e
push dword [ebp - 0x1e48]
call fcn.01008836
pop ecx
cmp dword [ebp - 0x1c2c], edi
jle 0x1006632
push dword [ebp - 0x1c30]
call fcn.01008836
pop ecx
cmp dword [ebp - 0x1d38], edi
jle 0x1006646
push dword [ebp - 0x1d3c]
call fcn.01008836
pop ecx
cmp dword [ebp - 0x1f50], edi
jle 0x100665a
push dword [ebp - 0x1f54]
call fcn.01008836
pop ecx
cmp dword [ebp - 0x1b20], edi
jle 0x1001ce0
push dword [ebp - 0x1b24]
call fcn.01008836
pop ecx
jmp 0x1001ce0
push ebx
push ebx
push ebx
push 2
push 3
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x1b24]
call dword [0x100e064]
mov esi, eax
cmp esi, ebx
je 0x1006726
cmp dword [ebp - 0x2380], 0xffffffff
je 0x10066ad
push dword [ebp - 0x2380]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
push 0x1006ee0
call fcn.0100b355
pop ecx
pop ecx
cmp dword [ebp - 0x1e44], edi
jle 0x10066ce
push dword [ebp - 0x1e48]
call fcn.01008836
pop ecx
cmp dword [ebp - 0x1c2c], edi
jle 0x10066e2
push dword [ebp - 0x1c30]
call fcn.01008836
pop ecx
cmp dword [ebp - 0x1d38], edi
jle 0x10066f6
push dword [ebp - 0x1d3c]
call fcn.01008836
pop ecx
cmp dword [ebp - 0x1f50], edi
jle 0x100670a
push dword [ebp - 0x1f54]
call fcn.01008836
pop ecx
cmp dword [ebp - 0x1b20], edi
jle 0x1006c5f
push dword [ebp - 0x1b24]
call fcn.01008836
jmp 0x1006c5e
mov esi, dword [sym.imp.KERNEL32.DLL_CreateEventW]
push ebx
push ebx
push 1
push ebx
call esi
mov dword [ebp - 0x23b0], eax
cmp eax, ebx
jne 0x100675b
cmp dword [ebp - 0x2380], 0xffffffff
je 0x10066ba
push dword [ebp - 0x2380]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x10066ba
push ebx
push ebx
push ebx
push ebx
call esi
mov dword [ebp - 0x23cc], eax
cmp eax, ebx
je 0x100673d
xor esi, esi
mov dword [ebp - 0x239c], esi
mov dword [ebp - 0x238c], esi
mov dword [ebp - 0x2390], esi
call fcn.0100b941
mov ebx, eax
cmp ebx, esi
jne 0x10067d5
cmp dword [ebp - 0x2380], 0xffffffff
je 0x100679f
push dword [ebp - 0x2380]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
push 0x1006e80
call fcn.0100b355
mov eax, dword [ebp - 0x2390]
pop ecx
pop ecx
cmp eax, esi
je 0x10067bc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x238c]
cmp eax, esi
je 0x10066ba
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x10066ba
mov dword [ebp - 0x23b8], esi
mov dword [ebp - 0x23a8], esi
call fcn.010080e5
mov esi, eax
test esi, esi
jne 0x1006821
cmp dword [ebp - 0x2380], 0xffffffff
je 0x1006801
push dword [ebp - 0x2380]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov eax, dword [ebp - 0x2390]
test eax, eax
je 0x1006817
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x238c]
test eax, eax
jmp 0x10067c4
mov eax, dword [esi]
lea ecx, [ebp - 0x238c]
mov dword [ebp - 0x23a0], eax
call fcn.01008d1d
push eax
mov eax, dword [ebp - 0x23a0]
push 0x1006cb8
push esi
call dword [eax]
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [ebp - 0x2384]
mov dword [ebp - 0x23bc], eax
mov eax, dword [ebp - 0x238c]
mov esi, dword [ebx]
mov dword [ebp - 0x23a0], eax
lea eax, [ebp - 0x23a8]
push eax
lea ecx, [ebp - 0x2390]
add esi, 0x38
call fcn.01008d1d
push eax
lea eax, [ebp - 0x23b8]
push eax
push dword [ebp - 0x23a0]
lea eax, [ebp - 0x9c]
push 0x10
push eax
lea eax, [ebp - 0x23bc]
push eax
push ebx
call dword [esi]
test eax, eax
je 0x10068c5
cmp dword [ebp - 0x2380], 0xffffffff
je 0x10068b2
push dword [ebp - 0x2380]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0
push 0x1006e10
call fcn.0100b355
pop ecx
pop ecx
jmp 0x1006801
push dword [ebp - 0x23b8]
push 0
push 0x100000
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov dword [ebp - 0x23a0], eax
test eax, eax
jne 0x1006905
cmp dword [ebp - 0x2380], 0xffffffff
je 0x10068f7
push dword [ebp - 0x2380]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x1006da0
jmp 0x10068b9
push dword [ebp - 0x2390]
call dword [0x100fe14]
test eax, eax
je 0x10067ec
mov eax, dword [ebp - 0x238c]
mov ecx, dword [eax]
lea edx, [ebp - 0x239c]
push edx
push 0x1006cc8
push eax
call dword [ecx]
mov eax, dword [ebp - 0x2384]
xor ecx, ecx
cmp eax, dword [ebp - 0x23bc]
jne 0x100694a
cmp eax, 6
je 0x100694a
cmp eax, 7
jne 0x1006950
lea ecx, [ebp - 0x23bc]
mov eax, dword [ebp - 0x239c]
mov edx, dword [eax]
lea esi, [ebp - 0x9c]
push esi
push ecx
push eax
call dword [edx + 0xa0]
mov eax, dword [ebp - 0x239c]
push dword [ebp - 0x23b0]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xa8]
mov eax, dword [ebp - 0x239c]
mov esi, dword [ebp - 0x23cc]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0xac]
push dword [ebp - 0x2380]
mov eax, dword [ebp - 0x239c]
push dword [ebp - 0x23a8]
mov ecx, dword [eax]
push dword [ebp - 0x23c8]
push dword [ebp - 0x23ac]
push dword [ebp - 0x23b8]
push eax
call dword [ecx + 0xa4]
cmp dword [ebp - 0x2380], 0xffffffff
mov dword [ebp - 0x23cc], eax
je 0x10069e1
push dword [ebp - 0x2380]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
or dword [ebp - 0x2380], 0xffffffff
cmp dword [ebp - 0x23cc], 0
je 0x10069f6
push 0
push 0x1006d40
jmp 0x10068b9
mov eax, dword [ebp - 0x239c]
push dword [ebp - 0x2390]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x9c]
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov eax, dword [ebp - 0x2390]
test eax, eax
je 0x1006a21
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x238c]
test eax, eax
je 0x1006a31
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x23a0]
mov ebx, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
push 3
pop eax
mov dword [ebp - 0x23ec], esi
mov esi, 0x4ff
push esi
mov dword [ebp - 0x23f4], ecx
mov ecx, dword [ebp - 0x23b0]
push 0xffffffffffffffff
mov dword [ebp - 0x23f0], ecx
push 0
lea ecx, [ebp - 0x23f4]
push ecx
mov dword [0x100e018], eax
mov byte [ebp - 0x2385], 0
push eax
jmp 0x1006c06
cmp eax, 1
je 0x1006c15
cmp eax, 2
jne 0x1006ade
push dword [ebp - 0x23a0]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x239c]
and dword [ebp - 0x23ac], 0
mov ecx, dword [eax]
lea edx, [ebp - 0x23ac]
push edx
push eax
call dword [ecx + 0xb0]
push dword [ebp - 0x23ac]
push 0
push 0x100000
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov dword [ebp - 0x23a0], eax
test eax, eax
je 0x1006c26
mov dword [ebp - 0x23f4], eax
jmp 0x1006bf8
cmp eax, 3
je 0x1006bca
mov eax, dword [ebp - 0x239c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x23a0]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x1e44], edi
jle 0x1006b13
push dword [ebp - 0x1e48]
call fcn.01008836
pop ecx
cmp dword [ebp - 0x1c2c], edi
jle 0x1006b27
push dword [ebp - 0x1c30]
call fcn.01008836
pop ecx
cmp dword [ebp - 0x1d38], edi
jle 0x1006b3b
push dword [ebp - 0x1d3c]
call fcn.01008836
pop ecx
cmp dword [ebp - 0x1f50], edi
jle 0x1006b4f
push dword [ebp - 0x1f54]
call fcn.01008836
pop ecx
cmp dword [ebp - 0x1b20], edi
jle 0x1006b63
push dword [ebp - 0x1b24]
call fcn.01008836
pop ecx
xor esi, esi
cmp dword [ebp - 0x23b4], esi
je 0x1006b85
cmp dword [0x100e01c], esi
jne 0x1006b85
mov eax, dword [0x100e0c0]
cmp eax, esi
je 0x1006b85
push eax
call dword [sym.imp.ole32.dll_CoRevokeClassObject]
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [ebp - 0x23e0], esi
je 0x1001cda
mov esi, 0x641
push esi
call fcn.0100b561
jmp 0x1006671
cmp dword [ebp - 0x2410], 0x12
je 0x1006be4
lea eax, [ebp - 0x2414]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x2414]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x2414]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1006beb
jmp 0x1006ba7
mov byte [ebp - 0x2385], 1
cmp byte [ebp - 0x2385], 0
jne 0x1006ae7
push esi
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x23f4]
push eax
push 3
call ebx
test eax, eax
je 0x1006ae7
jmp 0x1006a7b
push dword [ebp - 0x23b0]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x1006ae7
cmp dword [ebp - 0x2380], 0xffffffff
je 0x1006c3b
push dword [ebp - 0x2380]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x1006da0
jmp 0x10066b3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x1006cd8
call fcn.0100b355
pop ecx
pop ecx
mov esi, 0x641
jmp 0x1001ce0
mov dword [0x100e018], ebx
push edi
push edi
push edi
lea eax, [ebp - 0x2414]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x1006c9b
cmp dword [0x100fe64], edi
je 0x1006b63
cmp dword [0x100e078], edi
je 0x1006b63
lea eax, [ebp - 0x2414]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x2414]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x1006c6f