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 - 0x23a0], 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 - 0x23a0], 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 - 0x23a0], edi
mov esi, dword [ebp - 0x23a0]
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 - 0x23a8], eax
jne 0x10036da
jmp 0x1005dd9
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x241c
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 - 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 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 - 0x23a8]
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 - 0x23a8], 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 - 0x2398], 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 - 0x2398]
add esi, 0xc
cmp dword [ebp - 0x2398], 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.0100be45
mov esi, 0x667
jmp 0x1001ce0
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.01004283
pop ecx
lea eax, [ebp - 0x23c4]
push eax
push dword [ebp - 0x23ac]
push edi
push 0x1007100
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 - 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 0x1005d81
mov eax, dword [ebp - 0x23c8]
push edi
shr eax, 1
push eax
lea ecx, [ebp - 0x2168]
call fcn.01002465
test al, al
je 0x1003963
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 0x1005dc8
cmp dword [ebp - 0x23a8], 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 - 0x23a8]
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 - 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.01009934
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.01008cd9
lea eax, [ebp - 0x237c]
push eax
lea eax, [ebp - 0x2380]
push eax
mov dword [ebp - 0x2374], edi
call fcn.0100b816
pop ecx
pop ecx
test eax, eax
je 0x1006095
push dword [ebp - 0x237c]
lea eax, [ebp - 0x1208]
push eax
call fcn.0100a5ed
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.01008866
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.01008b41
test al, al
je 0x10060bd
mov eax, dword [ebp - 0x1a18]
push dword [ebp - 0x1a14]
mov dword [ebp - 0x23a4], eax
lea eax, [ebp - 0x23a4]
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.01009b91
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.01009b91
pop ecx
pop ecx
test eax, eax
je 0x1001c05
call fcn.0100be45
mov dword [ebp - 0x23a0], 0x667
call fcn.010045db
cmp dword [ebp - 0x23a0], 0
jne 0x1001cda
cmp dword [0x100e034], 0
jne 0x1006154
call fcn.0100be45
mov esi, 0x667
mov dword [ebp - 0x23a0], esi
xor edi, edi
cmp esi, edi
jne 0x1001cda
cmp dword [ebp - 0x23b8], edi
je 0x1006156
jmp 0x1006162
cmp ax, 0x45
jne 0x10060cc
mov dword [0x100e01c], 1
jmp 0x100606a
call fcn.0100be45
cmp dword [ebp - 0x2378], edi
mov dword [ebp - 0x23a0], 0x667
jle 0x1006039
push dword [ebp - 0x237c]
call fcn.01008866
pop ecx
jmp 0x1006039
mov dword [ebp - 0x23a0], 0xe
jmp 0x1006039
mov dword [ebp - 0x23b8], 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 - 0x23a0], 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.0100b591
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 0x10070e4
call fcn.01004361
pop ecx
cmp dword [ebp - 0x23b8], 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 - 0x23e4], ebx
jmp 0x10061c9
xor ebx, ebx
inc ebx
cmp dword [0x100e01c], edi
je 0x1006c98
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 0x1006c8e
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 0x1006c8e
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 0x10062a2
inc esi
inc esi
movzx eax, word [esi]
cmp ax, 0x43
jne 0x10063ae
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 0x10062f3
or dword [ebp - 0x2380], 0xffffffff
call ebx
cmp eax, 0x3f0
jne 0x1006c8e
cmp byte [ebp - 0x2391], 0
mov edi, dword [sym.imp.ADVAPI32.dll_RevertToSelf]
jne 0x1006304
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 0x1006327
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 0x100644e
lea eax, [ebp - 0x23a4]
push eax
call fcn.01003c62
pop ecx
test eax, eax
jne 0x100639d
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 0x100639d
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 0x1006487
cmp ax, 0x55
jne 0x10063c7
mov byte [ebp - 0x23b0], 1
mov byte [ebp - 0x2385], 1
jmp 0x10062b6
cmp ax, 0x41
jne 0x10063d9
mov byte [ebp - 0x23c0], 1
jmp 0x10062b6
cmp ax, 0x4d
je 0x1006445
cmp ax, 0x52
je 0x10063f5
cmp ax, 0x45
jne 0x10062b6
cmp ax, 0x52
jne 0x10063fc
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 0x1006c7b
cmp esi, 0xffffffff
je 0x1006c7b
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 0x10062b6
push edi
push 0x1007078
jmp 0x1006c87
mov byte [ebp - 0x2391], 1
jmp 0x10063f5
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 0x1007038
lea eax, [ebp - 0x2370]
push 0x104
push eax
call fcn.01008f42
add esp, 0x1c
cmp byte [ebp - 0x2385], 0
je 0x10064a0
cmp edi, 1
jne 0x1006499
push 9
jmp 0x100649f
test edi, edi
jne 0x10064b1
push 8
pop edi
cmp byte [ebp - 0x23c0], 0
je 0x10064c9
test edi, edi
jne 0x10064bd
push 6
jmp 0x10064c8
push 0
push 0x1006f70
jmp 0x1006c87
cmp edi, 1
jne 0x1006c8e
push 7
pop edi
xor esi, esi
mov ebx, 0x100
push 5
mov dword [ebp - 0x23d0], ebx
pop eax
cmp edi, esi
je 0x10064f6
cmp edi, 1
je 0x10064f6
cmp edi, 6
je 0x10064f6
cmp edi, 7
je 0x10064f6
cmp edi, 8
je 0x10064f6
cmp edi, 9
jne 0x10064f9
push 4
pop eax
push esi
push eax
lea eax, [ebp - 0x23d0]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.01002b95
add esp, 0x10
mov dword [ebp - 0x23a4], eax
cmp eax, esi
je 0x100653b
cmp dword [ebp - 0x2380], 0xffffffff
je 0x1006530
push dword [ebp - 0x2380]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x23a4]
jmp 0x1001ce0
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.01008d05
push dword [ebp - 0x23e8]
lea ecx, [ebp - 0x1f54]
call fcn.01008d05
push dword [ebp - 0x23d4]
lea ecx, [ebp - 0x1d3c]
call fcn.01008d05
push dword [ebp - 0x23d8]
lea ecx, [ebp - 0x1e48]
call fcn.01008d05
push dword [ebp - 0x23e0]
lea ecx, [ebp - 0x1c30]
call fcn.01008d05
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 0x100668f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x2380], 0xffffffff
mov esi, eax
je 0x1006622
push dword [ebp - 0x2380]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c2c], ebx
jle 0x1006636
push dword [ebp - 0x1c30]
call fcn.01008866
pop ecx
cmp dword [ebp - 0x1e44], ebx
jle 0x100664a
push dword [ebp - 0x1e48]
call fcn.01008866
pop ecx
cmp dword [ebp - 0x1d38], ebx
jle 0x100665e
push dword [ebp - 0x1d3c]
call fcn.01008866
pop ecx
cmp dword [ebp - 0x1f50], ebx
jle 0x1006672
push dword [ebp - 0x1f54]
call fcn.01008866
pop ecx
cmp dword [ebp - 0x1b20], ebx
jle 0x1001ce0
push dword [ebp - 0x1b24]
call fcn.01008866
pop ecx
jmp 0x1001ce0
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 0x1006747
cmp dword [ebp - 0x2380], 0xffffffff
je 0x10066c9
push dword [ebp - 0x2380]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x23a4]
push 0x1006f10
call fcn.0100b385
pop ecx
pop ecx
cmp dword [ebp - 0x1c2c], ebx
jle 0x10066ef
push dword [ebp - 0x1c30]
call fcn.01008866
pop ecx
cmp dword [ebp - 0x1e44], ebx
jle 0x1006703
push dword [ebp - 0x1e48]
call fcn.01008866
pop ecx
cmp dword [ebp - 0x1d38], ebx
jle 0x1006717
push dword [ebp - 0x1d3c]
call fcn.01008866
pop ecx
cmp dword [ebp - 0x1f50], ebx
jle 0x100672b
push dword [ebp - 0x1f54]
call fcn.01008866
pop ecx
cmp dword [ebp - 0x1b20], ebx
jle 0x1006c8e
push dword [ebp - 0x1b24]
call fcn.01008866
jmp 0x1006c8d
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x23ac], eax
cmp eax, esi
jne 0x100677a
cmp dword [ebp - 0x2380], 0xffffffff
je 0x10066db
push dword [ebp - 0x2380]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10066db
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x23f8], eax
cmp eax, esi
je 0x100675c
mov dword [ebp - 0x2384], esi
mov dword [ebp - 0x238c], esi
mov dword [ebp - 0x2390], esi
call fcn.0100b971
mov dword [ebp - 0x239c], eax
cmp eax, esi
jne 0x10067fa
cmp dword [ebp - 0x2380], 0xffffffff
je 0x10067c4
push dword [ebp - 0x2380]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0x1006eb0
call fcn.0100b385
mov eax, dword [ebp - 0x2390]
pop ecx
pop ecx
cmp eax, esi
je 0x10067e1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x238c]
cmp eax, esi
je 0x10066db
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x10066db
and dword [ebp - 0x23bc], 0
and dword [ebp - 0x23a4], 0
call fcn.01008115
mov esi, eax
test esi, esi
jne 0x100684e
cmp dword [ebp - 0x2380], 0xffffffff
je 0x1006828
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 0x1006844
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x238c]
test eax, eax
jmp 0x10067e9
mov eax, dword [esi]
lea ecx, [ebp - 0x238c]
mov dword [ebp - 0x2398], eax
call fcn.01008d4d
push eax
mov eax, dword [ebp - 0x2398]
push 0x1006ce8
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.01008d4d
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 0x10068f7
cmp dword [ebp - 0x2380], 0xffffffff
je 0x10068e4
push dword [ebp - 0x2380]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x1006e40
call fcn.0100b385
pop ecx
pop ecx
jmp 0x1006828
push dword [ebp - 0x23bc]
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x2398], eax
test eax, eax
jne 0x1006937
cmp dword [ebp - 0x2380], 0xffffffff
je 0x1006929
push dword [ebp - 0x2380]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1006dd0
jmp 0x10068eb
push dword [ebp - 0x2390]
call dword [0x100fe14]
test eax, eax
je 0x1006813
mov eax, dword [ebp - 0x238c]
mov ecx, dword [eax]
lea edx, [ebp - 0x2384]
push edx
push 0x1006cf8
push eax
call dword [ecx]
xor ecx, ecx
cmp edi, dword [ebp - 0x23cc]
jne 0x1006976
cmp edi, 8
je 0x1006976
cmp edi, 9
jne 0x100697c
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 0x1006a0f
push dword [ebp - 0x2380]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x2380], 0xffffffff
test edi, edi
je 0x1006a1f
push 0
push 0x1006d70
jmp 0x10068eb
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 0x1006a50
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x238c]
test eax, eax
je 0x1006a60
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 0x1006c35
cmp eax, 1
je 0x1006c44
cmp eax, 2
jne 0x1006b0d
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 0x1006c55
mov dword [ebp - 0x23f4], eax
jmp 0x1006c27
cmp eax, 3
je 0x1006bf9
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 0x1006b42
push dword [ebp - 0x1c30]
call fcn.01008866
pop ecx
cmp dword [ebp - 0x1e44], ebx
jle 0x1006b56
push dword [ebp - 0x1e48]
call fcn.01008866
pop ecx
cmp dword [ebp - 0x1d38], ebx
jle 0x1006b6a
push dword [ebp - 0x1d3c]
call fcn.01008866
pop ecx
cmp dword [ebp - 0x1f50], ebx
jle 0x1006b7e
push dword [ebp - 0x1f54]
call fcn.01008866
pop ecx
cmp dword [ebp - 0x1b20], ebx
jle 0x1006b92
push dword [ebp - 0x1b24]
call fcn.01008866
pop ecx
xor esi, esi
cmp dword [ebp - 0x23b8], esi
je 0x1006bb4
cmp dword [0x100e01c], esi
jne 0x1006bb4
mov eax, dword [0x100e0c0]
cmp eax, esi
je 0x1006bb4
push eax
call dword [sym.imp.ole32.dll_CoRevokeClassObject]
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [ebp - 0x23e4], esi
je 0x1001cda
mov esi, 0x641
push esi
call fcn.0100b591
jmp 0x1006689
cmp dword [ebp - 0x2414], 0x12
je 0x1006c13
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 0x1006c1a
jmp 0x1006bd6
mov byte [ebp - 0x2385], 1
cmp byte [ebp - 0x2385], 0
jne 0x1006b16
push esi
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x23f4]
push eax
push 3
call edi
test eax, eax
je 0x1006b16
jmp 0x1006aaa
push dword [ebp - 0x23ac]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1006b16
cmp dword [ebp - 0x2380], 0xffffffff
je 0x1006c6a
push dword [ebp - 0x2380]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1006dd0
jmp 0x10066d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1006d08
call fcn.0100b385
pop ecx
pop ecx
mov esi, 0x641
jmp 0x1001ce0
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 0x1006cca
cmp dword [0x100fe64], edi
je 0x1006b92
cmp dword [0x100e078], edi
je 0x1006b92
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 0x1006c9e