Function at 0x1003419
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 0x1001a9d
push esi
call fcn.01002997
pop ecx
test al, al
jne 0x1005e5d
and dword [ebp - 0x23a0], 0
test si, si
je 0x1001c4d
mov edi, 0x104
cmp si, 0x2f
jne 0x1005e6f
mov eax, dword [ebp - 0x2380]
inc eax
inc eax
movzx esi, word [eax]
push eax
or esi, 0x20
call fcn.010021ac
pop ecx
mov ecx, eax
push 0x52
mov dword [ebp - 0x2380], ecx
mov edi, 0x10020b0
pop eax
movzx eax, ax
or eax, 0x20
cmp eax, esi
je 0x1001af5
inc edi
inc edi
movzx eax, word [edi]
test ax, ax
jne 0x1001ae1
movzx esi, word [edi]
test si, si
je 0x100603a
movzx eax, word [ecx]
cmp ax, 0x20
je 0x1001b13
test ax, ax
jne 0x1005ee8
xor ebx, ebx
lea eax, [ebp - 0x2380]
push eax
call fcn.01002399
lea eax, [ebp - 0xa08]
pop ecx
mov dword [ebp - 0x2384], eax
cmp si, 0x63
je 0x1005efa
cmp si, 0x50
je 0x1005f07
cmp si, 0x71
je 0x1003982
cmp si, 0x63
je 0x1003982
push 0x400
lea eax, [ebp - 0x2384]
push eax
lea eax, [ebp - 0x2380]
push eax
call fcn.01004557
add esp, 0xc
test al, al
je 0x1005cba
lea eax, [ebp - 0x2380]
push eax
call fcn.01002399
movzx esi, ax
movzx eax, word [edi]
pop ecx
cmp ax, 0x46
je 0x100398f
cmp ax, 0x71
je 0x100398f
cmp ax, 0x4a
je 0x100398f
cmp ax, 0x6c
je 0x100398f
movzx eax, word [edi]
cmp ax, 0x61
jae 0x1005faf
mov ecx, dword [0x100e034]
test ecx, ecx
jne 0x1005fd6
mov dword [0x100e034], edi
cmp ax, 0x50
je 0x1001bf4
mov eax, 0x400
push eax
push dword [ebp - 0x239c]
push eax
lea eax, [ebp - 0x1a08]
push eax
call fcn.01003aae
push 0x1e
push dword [ebp - 0x2390]
lea eax, [ebp - 0x108]
push 0x1e
push eax
call fcn.01003aae
mov eax, dword [0x100e034]
cmp word [eax], 0x45
je 0x1001c4d
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 0x1001ab2
mov ecx, dword [0x100e034]
xor edi, edi
cmp ecx, edi
je 0x1006049
movzx eax, word [ecx]
push 0x45
pop edx
cmp dx, ax
je 0x1001c83
push 0x59
pop edx
cmp dx, ax
je 0x1001c83
push 0x5a
pop edx
cmp dx, ax
je 0x1001c83
call fcn.010045eb
mov ecx, dword [0x100e034]
cmp word [ecx], 0x50
mov eax, dword [ebp - 0x1a18]
je 0x1001c95
lea eax, [ebp - 0x1a08]
push eax
sub ecx, 0x10020b0
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 - 0x23a0], esi
cmp ax, 0x59
je 0x1001cf0
cmp ax, 0x5a
je 0x1001cf0
cmp esi, edi
je 0x1006093
cmp esi, 0x8000
jne 0x10060e8
mov dword [0x100e01c], edi
mov dword [ebp - 0x23a0], edi
mov esi, dword [ebp - 0x23a0]
lea ecx, [ebp - 0x2168]
call fcn.01001df6
lea ecx, [ebp - 0x1a18]
call fcn.01001e1b
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01001d20
leave
ret
movzx eax, word [esi]
test ax, ax
je 0x1003709
push eax
call fcn.01002379
pop ecx
test al, al
je 0x10036ea
mov edi, dword [ebp - 0x238c]
lea eax, [edi - 1]
cmp eax, 1
jne 0x10033fa
push 0xffffffffffffffff
push 0x1003410
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 0x1005e10
lea eax, [edi - 1]
cmp dword [ebp - 0x23a8], eax
jne 0x10036ea
jmp 0x1005de9
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x241c
call fcn.0100404b
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.010021f5
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 0x1005c62
push 0x20
pop ecx
movzx eax, word [ebx]
cmp ax, di
je 0x10034c6
nop
nop
nop
nop
nop
nop
nop
cmp ax, cx
je 0x10034bf
inc ebx
inc ebx
movzx eax, word [ebx]
cmp ax, di
jne 0x10034b0
cmp word [ebx], di
je 0x10034c6
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 0x10034eb
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
jne 0x10034f1
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 - 0x23e4], 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 - 0x23b8], edi
mov dword [0x100e01c], edi
movzx eax, word [ebx]
cmp ax, 0x20
je 0x100396c
cmp ax, 9
je 0x100396c
movzx eax, word [ebx]
cmp ax, 0x2f
jne 0x1005c69
lea eax, [ebx + 2]
cmp eax, edi
je 0x100358d
mov ax, word [eax]
or ax, 0x20
cmp ax, 0x60
je 0x1005c78
lea eax, [ebp - 0x2384]
push eax
push 0x7fffffff
push ebx
mov dword [ebp - 0x2384], edi
call fcn.010024ef
test eax, eax
jl 0x1005ddf
mov eax, dword [ebp - 0x2384]
push edi
inc eax
push eax
lea ecx, [ebp - 0x2168]
call fcn.01002475
test al, al
je 0x1003973
mov ecx, dword [ebp - 0x2168]
xor eax, eax
mov word [ecx], ax
mov esi, 0x100393c
lea edi, [ebp - 0x8c]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, 0x1003934
lea edi, [ebp - 0x84]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, 0x1003924
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, 0x1003904
lea edi, [ebp - 0xcc]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x23a8]
xor edx, edx
push ecx
mov eax, 0x100214c
push 0x7fffffff
push eax
mov dword [ebp - 0x7c], 0x10038f4
mov dword [ebp - 0x78], edx
mov byte [ebp - 0x74], dl
mov dword [ebp - 0x70], 0x10038e0
mov dword [ebp - 0x6c], edx
mov byte [ebp - 0x68], dl
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], 0x10038d8
mov byte [ebp - 0x5c], 1
mov dword [ebp - 0x58], 0x10038cc
mov dword [ebp - 0x54], 0x10038c4
mov byte [ebp - 0x50], 1
mov dword [ebp - 0x4c], 0x10038b8
mov dword [ebp - 0x48], 0x10038b0
mov byte [ebp - 0x44], 1
mov dword [ebp - 0x40], 0x10038a0
mov dword [ebp - 0x3c], 0x1003874
mov byte [ebp - 0x38], 1
mov dword [ebp - 0x34], 0x1003860
mov dword [ebp - 0x30], 0x1003834
mov byte [ebp - 0x2c], 1
mov dword [ebp - 0x28], 0x1003818
mov dword [ebp - 0x24], 0x10037fc
mov byte [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0x10037e0
mov dword [ebp - 0x18], 0x10037c0
mov byte [ebp - 0x14], 1
mov dword [ebp - 0x10], 0x10037b8
mov dword [ebp - 0xc], 0x10037b0
mov byte [ebp - 8], 1
mov dword [ebp - 0x23a8], edx
call fcn.010024ef
test eax, eax
jl 0x1005ddf
and dword [ebp - 0x238c], 0
mov dword [ebp - 0x2384], ebx
lea eax, [ebp - 0x238c]
push eax
lea eax, [ebp - 0x2384]
push eax
call fcn.010028e5
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10033ac
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.010028e5
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x1003942
mov esi, dword [ebp - 0x2168]
and dword [ebp - 0x2384], 0
lea eax, [ebp - 0x2384]
push eax
push 0x7fffffff
push esi
call fcn.010024ef
test eax, eax
jl 0x1005ddf
mov eax, dword [ebp - 0x2384]
test eax, eax
jbe 0x1001a7a
lea esi, [esi + eax*2 - 2]
movzx eax, word [esi]
push eax
call fcn.01002997
pop ecx
test al, al
je 0x1001a7a
cmp esi, dword [ebp - 0x2168]
jb 0x1001a7a
xor eax, eax
mov word [esi], ax
dec esi
dec esi
jmp 0x1003788
movzx eax, word [edi]
test ax, ax
je 0x100374f
push eax
call fcn.01002379
pop ecx
test al, al
je 0x10039cd
mov ebx, dword [ebp - 0x238c]
and dword [ebp - 0x2398], 0
dec ebx
lea esi, [ebp - 0x7c]
jmp 0x100399c
inc ebx
inc ebx
jmp 0x1003551
push 0xe
pop esi
jmp 0x1001cf0
mov esi, eax
jmp 0x1001cf0
test ebx, ebx
jne 0x1001b56
jmp 0x1001b79
test ebx, ebx
jne 0x1005f49
jmp 0x1001bb4
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 0x1005e2c
inc dword [ebp - 0x2398]
add esi, 0xc
cmp dword [ebp - 0x2398], 0xa
jb 0x100399c
push 1
push dword [ebp - 0x238c]
lea eax, [ebp - 0x2168]
push edi
push eax
mov dword [ebp - 0x2160], 0x104
call fcn.010039fe
add esp, 0x10
test eax, eax
je 0x1003730
jmp 0x100397b
inc ebx
inc ebx
jmp 0x10034a1
cmp ax, 0x2d
je 0x1003575
jmp 0x100358d
lea eax, [ebp - 0x2380]
add ebx, 4
push eax
mov dword [ebp - 0x2380], ebx
call fcn.01002399
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.01004557
add esp, 0xc
test al, al
jne 0x1005cc9
call fcn.0100be55
mov esi, 0x667
jmp 0x1001cf0
mov eax, dword [ebp - 0x2164]
add eax, eax
mov dword [ebp - 0x23c8], eax
lea eax, [ebp - 0x23ac]
push eax
mov dword [ebp - 0x23a8], edi
mov dword [ebp - 0x23ac], 0x20019
call fcn.01004293
pop ecx
lea eax, [ebp - 0x23c4]
push eax
push dword [ebp - 0x23ac]
push edi
push 0x1007110
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x1005dd8
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x23c8]
push eax
push dword [ebp - 0x2168]
lea eax, [ebp - 0x23a8]
push eax
push edi
lea eax, [ebp - 0xa08]
push eax
push dword [ebp - 0x23c4]
call esi
mov ebx, eax
cmp ebx, 0xea
jne 0x1005d91
mov eax, dword [ebp - 0x23c8]
push edi
shr eax, 1
push eax
lea ecx, [ebp - 0x2168]
call fcn.01002475
test al, al
je 0x1003973
lea eax, [ebp - 0x23c8]
push eax
push dword [ebp - 0x2168]
lea eax, [ebp - 0x23a8]
push eax
push edi
lea eax, [ebp - 0xa08]
push eax
push dword [ebp - 0x23c4]
call esi
mov ebx, eax
push dword [ebp - 0x23c4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, edi
jne 0x1005dd8
cmp dword [ebp - 0x23a8], 1
jne 0x1005dd8
mov eax, dword [ebp - 0x2168]
mov dword [ebp - 0x2380], eax
mov eax, dword [ebp - 0x2380]
movzx esi, word [eax]
cmp si, 0x20
je 0x1005dcf
cmp si, 9
jne 0x1001a9d
add dword [ebp - 0x2380], 2
jmp 0x1005db6
xor esi, esi
jmp 0x1001cf0
mov esi, 0x65b
jmp 0x1001cf0
push dword [ebp - 0x23a8]
dec edi
push 0x100214c
push edi
add esi, 2
push esi
push 1
push 0x409
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x10036ea
lea eax, [ebp - 0xac]
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x74], 0
lea eax, [ebp - 0xcc]
mov byte [ebp - 0x68], 0
jmp 0x1003720
mov eax, dword [ebp - 0x2398]
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.01009944
add esp, 0xc
jmp 0x10039ef
add dword [ebp - 0x2380], 2
mov eax, dword [ebp - 0x2380]
jmp 0x1001a86
cmp si, 0x2d
je 0x1001abc
lea ecx, [ebp - 0x237c]
call fcn.01008ce9
lea eax, [ebp - 0x237c]
push eax
lea eax, [ebp - 0x2380]
push eax
mov dword [ebp - 0x2374], edi
call fcn.0100b826
pop ecx
pop ecx
test eax, eax
je 0x10060a5
push dword [ebp - 0x237c]
lea eax, [ebp - 0x1208]
push eax
call fcn.0100a5fd
lea eax, [ebp - 0x2380]
push eax
call fcn.01002399
add esp, 0xc
cmp dword [ebp - 0x2378], edi
movzx esi, ax
jle 0x1001c44
push dword [ebp - 0x237c]
call fcn.01008876
pop ecx
jmp 0x1001c44
cmp ax, 9
je 0x1001b13
xor ebx, ebx
inc ebx
jmp 0x1001b15
test ebx, ebx
je 0x1001b38
jmp 0x100603a
push 0
push dword [ebp - 0x2380]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 0xa
push eax
lea ecx, [ebp - 0x1a18]
call fcn.01008b51
test al, al
je 0x10060cd
mov eax, dword [ebp - 0x1a18]
push dword [ebp - 0x1a14]
mov dword [ebp - 0x23a4], eax
lea eax, [ebp - 0x23a4]
jmp 0x1001b61
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 0x1001bb4
push 0x400
lea eax, [ebp - 0x2384]
push eax
lea eax, [ebp - 0x2380]
push eax
call fcn.01004557
add esp, 0xc
test al, al
je 0x1005cba
lea eax, [ebp - 0x2380]
push eax
call fcn.01002399
pop ecx
movzx esi, ax
jmp 0x1001bb4
cmp ax, 0x7a
ja 0x1001bc1
push dword [ebp - 0x239c]
sub edi, 0x10020b0
push dword [ebp - 0x2390]
sar edi, 1
call dword [edi*4 + 0x100fc48]
jmp 0x1006030
cmp ax, 0x50
jne 0x1006017
cmp word [ecx], 0x41
jne 0x1006017
lea eax, [ebp - 0x1a08]
push eax
push 0x41
call fcn.01009ba1
pop ecx
pop ecx
test eax, eax
jne 0x100603a
push 0x1e
push dword [ebp - 0x2390]
lea eax, [ebp - 0x108]
push 0x1e
push eax
mov dword [0x100e034], edi
call fcn.01003aae
jmp 0x1001c15
cmp word [ecx], 0x50
jne 0x100603a
cmp ax, 0x41
jne 0x100603a
push dword [ebp - 0x239c]
push 0x41
call fcn.01009ba1
pop ecx
pop ecx
test eax, eax
je 0x1001c15
call fcn.0100be55
mov dword [ebp - 0x23a0], 0x667
call fcn.010045eb
cmp dword [ebp - 0x23a0], 0
jne 0x1001cea
cmp dword [0x100e034], 0
jne 0x1006164
call fcn.0100be55
mov esi, 0x667
mov dword [ebp - 0x23a0], esi
xor edi, edi
cmp esi, edi
jne 0x1001cea
cmp dword [ebp - 0x23b8], edi
je 0x1006166
jmp 0x1006172
cmp ax, 0x45
jne 0x10060dc
mov dword [0x100e01c], 1
jmp 0x100607a
call fcn.0100be55
cmp dword [ebp - 0x2378], edi
mov dword [ebp - 0x23a0], 0x667
jle 0x1006049
push dword [ebp - 0x237c]
call fcn.01008876
pop ecx
jmp 0x1006049
mov dword [ebp - 0x23a0], 0xe
jmp 0x1006049
mov dword [ebp - 0x23b8], 1
jmp 0x100607a
cmp ax, 0x52
je 0x1006158
cmp ax, 0x55
je 0x1006158
mov eax, 0x4eb
cmp esi, eax
jg 0x100612c
je 0x100607a
cmp esi, 0xfffffffe
jl 0x1006158
cmp esi, edi
jl 0x1001cea
cmp esi, 1
jle 0x1006158
cmp esi, 3
jle 0x100611f
cmp esi, 0x7b
jne 0x1006158
mov esi, 0x653
mov dword [ebp - 0x23a0], esi
jmp 0x1006158
cmp esi, 0x642
jl 0x1006158
cmp esi, 0x644
jle 0x100607a
cmp esi, 0x669
je 0x100607a
cmp esi, 0xbc2
je 0x100607a
push esi
call fcn.0100b5a1
pop ecx
jmp 0x100607a
xor edi, edi
cmp dword [0x100e01c], edi
je 0x1001cea
push edi
cmp dword [0x100e01c], edi
je 0x1006184
push edi
call dword [0x100e060]
jmp 0x1006195
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x10070f4
call fcn.01004371
pop ecx
cmp dword [ebp - 0x23b8], edi
je 0x10061e5
cmp dword [0x100e01c], edi
jne 0x10061f4
xor ebx, ebx
xor esi, esi
mov edi, 0x10020a0
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 0x10061dd
add edi, 0x10
add esi, 4
cmp edi, 0x10020b0
jl 0x10061af
xor edi, edi
jmp 0x10061e8
mov dword [ebp - 0x23e4], ebx
jmp 0x10061d9
xor ebx, ebx
inc ebx
cmp dword [0x100e01c], edi
je 0x1006ca8
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 0x1006232
cmp ax, 0x39
ja 0x1006232
mov ecx, ebx
and ecx, 0x80000001
jns 0x1006226
dec ecx
or ecx, 0xfffffffe
inc ecx
neg ecx
movzx eax, ax
sbb ecx, ecx
sub eax, 0x30
jmp 0x1006257
cmp ax, 0x41
jb 0x100627e
cmp ax, 0x46
ja 0x100627e
mov ecx, ebx
and ecx, 0x80000001
jns 0x100624d
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 0x1006c9e
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 0x1006208
cmp ebx, 0x20
jne 0x1006c9e
cmp word [esi], 0
mov byte [ebp - 0x23b0], 0
mov byte [ebp - 0x2391], 0
mov byte [ebp - 0x23b4], 0
mov byte [ebp - 0x2385], 0
mov byte [ebp - 0x23c0], 0
je 0x10062b2
inc esi
inc esi
movzx eax, word [esi]
cmp ax, 0x43
jne 0x10063be
mov byte [ebp - 0x23b0], 1
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 ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1006303
or dword [ebp - 0x2380], 0xffffffff
call ebx
cmp eax, 0x3f0
jne 0x1006c9e
cmp byte [ebp - 0x2391], 0
mov edi, dword [sym.imp.ADVAPI32.dll_RevertToSelf]
jne 0x1006314
call edi
mov esi, 0x80000001
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
push eax
push eax
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp byte [ebp - 0x2391], 0
je 0x1006337
call edi
lea eax, [ebp - 0x23dc]
push eax
push 8
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100645e
lea eax, [ebp - 0x23a4]
push eax
call fcn.01003c72
pop ecx
test eax, eax
jne 0x10063ad
lea eax, [ebp - 0x241c]
push eax
push 0x50
lea eax, [ebp - 0x54]
push eax
push 1
push dword [ebp - 0x23dc]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x10063ad
push dword [ebp - 0x23a4]
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov edi, eax
xor eax, eax
cmp byte [ebp - 0x23b4], al
sete al
neg edi
sbb edi, edi
lea eax, [eax + eax + 2]
and edi, eax
push dword [ebp - 0x23dc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1006497
cmp ax, 0x55
jne 0x10063d7
mov byte [ebp - 0x23b0], 1
mov byte [ebp - 0x2385], 1
jmp 0x10062c6
cmp ax, 0x41
jne 0x10063e9
mov byte [ebp - 0x23c0], 1
jmp 0x10062c6
cmp ax, 0x4d
je 0x1006455
cmp ax, 0x52
je 0x1006405
cmp ax, 0x45
jne 0x10062c6
cmp ax, 0x52
jne 0x100640c
mov byte [ebp - 0x23b4], 1
add esi, 4
push esi
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
test esi, esi
je 0x1006c8b
cmp esi, 0xffffffff
je 0x1006c8b
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x10062c6
push edi
push 0x1007088
jmp 0x1006c97
mov byte [ebp - 0x2391], 1
jmp 0x1006405
call ebx
mov esi, eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x2370], ax
lea eax, [ebp - 0x236e]
push eax
call sub.msvcrt.dll_memset
push esi
push 0x1007048
lea eax, [ebp - 0x2370]
push 0x104
push eax
call fcn.01008f52
add esp, 0x1c
cmp byte [ebp - 0x2385], 0
je 0x10064b0
cmp edi, 1
jne 0x10064a9
push 9
jmp 0x10064af
test edi, edi
jne 0x10064c1
push 8
pop edi
cmp byte [ebp - 0x23c0], 0
je 0x10064d9
test edi, edi
jne 0x10064cd
push 6
jmp 0x10064d8
push 0
push 0x1006f80
jmp 0x1006c97
cmp edi, 1
jne 0x1006c9e
push 7
pop edi
xor esi, esi
mov ebx, 0x100
push 5
mov dword [ebp - 0x23d0], ebx
pop eax
cmp edi, esi
je 0x1006506
cmp edi, 1
je 0x1006506
cmp edi, 6
je 0x1006506
cmp edi, 7
je 0x1006506
cmp edi, 8
je 0x1006506
cmp edi, 9
jne 0x1006509
push 4
pop eax
push esi
push eax
lea eax, [ebp - 0x23d0]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.01002ba3
add esp, 0x10
mov dword [ebp - 0x23a4], eax
cmp eax, esi
je 0x100654b
cmp dword [ebp - 0x2380], 0xffffffff
je 0x1006540
push dword [ebp - 0x2380]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x23a4]
jmp 0x1001cf0
mov eax, dword [ebp - 0x23d0]
push eax
lea ecx, [ebp - 0x1b24]
mov dword [ebp - 0x23fc], eax
mov dword [ebp - 0x23e8], eax
mov dword [ebp - 0x23d4], eax
mov dword [ebp - 0x23d8], eax
mov dword [ebp - 0x23e0], eax
call fcn.01008d15
push dword [ebp - 0x23e8]
lea ecx, [ebp - 0x1f54]
call fcn.01008d15
push dword [ebp - 0x23d4]
lea ecx, [ebp - 0x1d3c]
call fcn.01008d15
push dword [ebp - 0x23d8]
lea ecx, [ebp - 0x1e48]
call fcn.01008d15
push dword [ebp - 0x23e0]
lea ecx, [ebp - 0x1c30]
call fcn.01008d15
lea eax, [ebp - 0x23e0]
push eax
push dword [ebp - 0x1c30]
lea eax, [ebp - 0x23d8]
push eax
push dword [ebp - 0x1e48]
lea eax, [ebp - 0x23d4]
push eax
push dword [ebp - 0x1d3c]
lea eax, [ebp - 0x23e8]
push eax
push dword [ebp - 0x1f54]
lea eax, [ebp - 0x23fc]
push eax
push dword [ebp - 0x1b24]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.ADVAPI32.dll_MakeAbsoluteSD]
test eax, eax
jne 0x100669f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x2380], 0xffffffff
mov esi, eax
je 0x1006632
push dword [ebp - 0x2380]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c2c], ebx
jle 0x1006646
push dword [ebp - 0x1c30]
call fcn.01008876
pop ecx
cmp dword [ebp - 0x1e44], ebx
jle 0x100665a
push dword [ebp - 0x1e48]
call fcn.01008876
pop ecx
cmp dword [ebp - 0x1d38], ebx
jle 0x100666e
push dword [ebp - 0x1d3c]
call fcn.01008876
pop ecx
cmp dword [ebp - 0x1f50], ebx
jle 0x1006682
push dword [ebp - 0x1f54]
call fcn.01008876
pop ecx
cmp dword [ebp - 0x1b20], ebx
jle 0x1001cf0
push dword [ebp - 0x1b24]
call fcn.01008876
pop ecx
jmp 0x1001cf0
push esi
push esi
push esi
push 2
push 3
push esi
push esi
push 0xffffffffffffffff
push dword [ebp - 0x1b24]
call dword [0x100e064]
mov dword [ebp - 0x23a4], eax
cmp eax, esi
je 0x1006757
cmp dword [ebp - 0x2380], 0xffffffff
je 0x10066d9
push dword [ebp - 0x2380]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x23a4]
push 0x1006f20
call fcn.0100b395
pop ecx
pop ecx
cmp dword [ebp - 0x1c2c], ebx
jle 0x10066ff
push dword [ebp - 0x1c30]
call fcn.01008876
pop ecx
cmp dword [ebp - 0x1e44], ebx
jle 0x1006713
push dword [ebp - 0x1e48]
call fcn.01008876
pop ecx
cmp dword [ebp - 0x1d38], ebx
jle 0x1006727
push dword [ebp - 0x1d3c]
call fcn.01008876
pop ecx
cmp dword [ebp - 0x1f50], ebx
jle 0x100673b
push dword [ebp - 0x1f54]
call fcn.01008876
pop ecx
cmp dword [ebp - 0x1b20], ebx
jle 0x1006c9e
push dword [ebp - 0x1b24]
call fcn.01008876
jmp 0x1006c9d
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x23ac], eax
cmp eax, esi
jne 0x100678a
cmp dword [ebp - 0x2380], 0xffffffff
je 0x10066eb
push dword [ebp - 0x2380]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10066eb
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x23f8], eax
cmp eax, esi
je 0x100676c
mov dword [ebp - 0x2384], esi
mov dword [ebp - 0x238c], esi
mov dword [ebp - 0x2390], esi
call fcn.0100b981
mov dword [ebp - 0x239c], eax
cmp eax, esi
jne 0x100680a
cmp dword [ebp - 0x2380], 0xffffffff
je 0x10067d4
push dword [ebp - 0x2380]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0x1006ec0
call fcn.0100b395
mov eax, dword [ebp - 0x2390]
pop ecx
pop ecx
cmp eax, esi
je 0x10067f1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x238c]
cmp eax, esi
je 0x10066eb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x10066eb
and dword [ebp - 0x23bc], 0
and dword [ebp - 0x23a4], 0
call fcn.01008125
mov esi, eax
test esi, esi
jne 0x100685e
cmp dword [ebp - 0x2380], 0xffffffff
je 0x1006838
push dword [ebp - 0x2380]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x239c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x2390]
test eax, eax
je 0x1006854
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x238c]
test eax, eax
jmp 0x10067f9
mov eax, dword [esi]
lea ecx, [ebp - 0x238c]
mov dword [ebp - 0x2398], eax
call fcn.01008d5d
push eax
mov eax, dword [ebp - 0x2398]
push 0x1006cf8
push esi
call dword [eax]
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [ebp - 0x238c]
mov dword [ebp - 0x2398], eax
mov eax, dword [ebp - 0x239c]
mov dword [ebp - 0x23cc], edi
mov esi, dword [eax]
lea eax, [ebp - 0x23a4]
push eax
lea ecx, [ebp - 0x2390]
add esi, 0x38
call fcn.01008d5d
push eax
lea eax, [ebp - 0x23bc]
push eax
push dword [ebp - 0x2398]
lea eax, [ebp - 0x9c]
push 0x10
push eax
lea eax, [ebp - 0x23cc]
push eax
push dword [ebp - 0x239c]
call dword [esi]
test eax, eax
je 0x1006907
cmp dword [ebp - 0x2380], 0xffffffff
je 0x10068f4
push dword [ebp - 0x2380]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x1006e50
call fcn.0100b395
pop ecx
pop ecx
jmp 0x1006838
push dword [ebp - 0x23bc]
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x2398], eax
test eax, eax
jne 0x1006947
cmp dword [ebp - 0x2380], 0xffffffff
je 0x1006939
push dword [ebp - 0x2380]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1006de0
jmp 0x10068fb
push dword [ebp - 0x2390]
call dword [0x100fe14]
test eax, eax
je 0x1006823
mov eax, dword [ebp - 0x238c]
mov ecx, dword [eax]
lea edx, [ebp - 0x2384]
push edx
push 0x1006d08
push eax
call dword [ecx]
xor ecx, ecx
cmp edi, dword [ebp - 0x23cc]
jne 0x1006986
cmp edi, 8
je 0x1006986
cmp edi, 9
jne 0x100698c
lea ecx, [ebp - 0x23cc]
mov eax, dword [ebp - 0x2384]
mov edx, dword [eax]
lea esi, [ebp - 0x9c]
push esi
push ecx
push eax
call dword [edx + 0xa0]
mov eax, dword [ebp - 0x2384]
push dword [ebp - 0x23ac]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xa8]
mov eax, dword [ebp - 0x2384]
mov esi, dword [ebp - 0x23f8]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0xac]
push dword [ebp - 0x2380]
mov eax, dword [ebp - 0x2384]
push dword [ebp - 0x23a4]
mov ecx, dword [eax]
push dword [ebp - 0x23b4]
push dword [ebp - 0x23c0]
push dword [ebp - 0x23b0]
push dword [ebp - 0x23bc]
push eax
call dword [ecx + 0xa4]
cmp dword [ebp - 0x2380], 0xffffffff
mov edi, eax
je 0x1006a1f
push dword [ebp - 0x2380]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x2380], 0xffffffff
test edi, edi
je 0x1006a2f
push 0
push 0x1006d80
jmp 0x10068fb
mov eax, dword [ebp - 0x2384]
push dword [ebp - 0x2390]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x9c]
mov eax, dword [ebp - 0x239c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x2390]
test eax, eax
je 0x1006a60
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x238c]
test eax, eax
je 0x1006a70
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x2398]
mov edi, 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 - 0x23ac]
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 0x1006c45
cmp eax, 1
je 0x1006c54
cmp eax, 2
jne 0x1006b1d
push dword [ebp - 0x2398]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2384]
and dword [ebp - 0x23b0], 0
mov ecx, dword [eax]
lea edx, [ebp - 0x23b0]
push edx
push eax
call dword [ecx + 0xb0]
push dword [ebp - 0x23b0]
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x2398], eax
test eax, eax
je 0x1006c65
mov dword [ebp - 0x23f4], eax
jmp 0x1006c37
cmp eax, 3
je 0x1006c09
mov eax, dword [ebp - 0x2384]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x2398]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c2c], ebx
jle 0x1006b52
push dword [ebp - 0x1c30]
call fcn.01008876
pop ecx
cmp dword [ebp - 0x1e44], ebx
jle 0x1006b66
push dword [ebp - 0x1e48]
call fcn.01008876
pop ecx
cmp dword [ebp - 0x1d38], ebx
jle 0x1006b7a
push dword [ebp - 0x1d3c]
call fcn.01008876
pop ecx
cmp dword [ebp - 0x1f50], ebx
jle 0x1006b8e
push dword [ebp - 0x1f54]
call fcn.01008876
pop ecx
cmp dword [ebp - 0x1b20], ebx
jle 0x1006ba2
push dword [ebp - 0x1b24]
call fcn.01008876
pop ecx
xor esi, esi
cmp dword [ebp - 0x23b8], esi
je 0x1006bc4
cmp dword [0x100e01c], esi
jne 0x1006bc4
mov eax, dword [0x100e0c0]
cmp eax, esi
je 0x1006bc4
push eax
call dword [sym.imp.ole32.dll_CoRevokeClassObject]
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [ebp - 0x23e4], esi
je 0x1001cea
mov esi, 0x641
push esi
call fcn.0100b5a1
jmp 0x1006699
cmp dword [ebp - 0x2414], 0x12
je 0x1006c23
lea eax, [ebp - 0x2418]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x2418]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x2418]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1006c2a
jmp 0x1006be6
mov byte [ebp - 0x2385], 1
cmp byte [ebp - 0x2385], 0
jne 0x1006b26
push esi
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x23f4]
push eax
push 3
call edi
test eax, eax
je 0x1006b26
jmp 0x1006aba
push dword [ebp - 0x23ac]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1006b26
cmp dword [ebp - 0x2380], 0xffffffff
je 0x1006c7a
push dword [ebp - 0x2380]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1006de0
jmp 0x10066e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1006d18
call fcn.0100b395
pop ecx
pop ecx
mov esi, 0x641
jmp 0x1001cf0
mov dword [0x100e018], ebx
push edi
push edi
push edi
lea eax, [ebp - 0x2418]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x1006cda
cmp dword [0x100fe64], edi
je 0x1006ba2
cmp dword [0x100e078], edi
je 0x1006ba2
lea eax, [ebp - 0x2418]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x2418]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x1006cae