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 - 0x239c], 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 - 0x2398]
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 - 0x2398], 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 - 0x239c], 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 - 0x239c], edi
mov esi, dword [ebp - 0x239c]
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 - 0x2398], 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 - 0x2394], 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 - 0x2394]
add esi, 0xc
cmp dword [ebp - 0x2394], 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.0100be35
mov esi, 0x667
jmp 0x1001ce0
mov eax, dword [ebp - 0x2164]
add eax, eax
mov dword [ebp - 0x23c4], eax
lea eax, [ebp - 0x23a8]
push eax
mov dword [ebp - 0x23a4], edi
mov dword [ebp - 0x23a8], 0x20019
call fcn.01004283
pop ecx
lea eax, [ebp - 0x23c0]
push eax
push dword [ebp - 0x23a8]
push edi
push 0x10070e8
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 - 0x2394]
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.0100991c
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.01008cc1
lea eax, [ebp - 0x237c]
push eax
lea eax, [ebp - 0x2380]
push eax
mov dword [ebp - 0x2374], edi
call fcn.0100b806
pop ecx
pop ecx
test eax, eax
je 0x1006095
push dword [ebp - 0x237c]
lea eax, [ebp - 0x1208]
push eax
call fcn.0100a5dd
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.0100884e
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.01008b29
test al, al
je 0x10060bd
mov eax, dword [ebp - 0x1a18]
push dword [ebp - 0x1a14]
mov dword [ebp - 0x23a0], eax
lea eax, [ebp - 0x23a0]
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 - 0x2398], 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 - 0x2398]
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.01009b79
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 - 0x2398]
push 0x41
call fcn.01009b79
pop ecx
pop ecx
test eax, eax
je 0x1001c05
call fcn.0100be35
mov dword [ebp - 0x239c], 0x667
call fcn.010045db
cmp dword [ebp - 0x239c], 0
jne 0x1001cda
cmp dword [0x100e034], 0
jne 0x1006154
call fcn.0100be35
mov esi, 0x667
mov dword [ebp - 0x239c], 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.0100be35
cmp dword [ebp - 0x2378], edi
mov dword [ebp - 0x239c], 0x667
jle 0x1006039
push dword [ebp - 0x237c]
call fcn.0100884e
pop ecx
jmp 0x1006039
mov dword [ebp - 0x239c], 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 - 0x239c], 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.0100b581
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 0x10070cc
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 0x1006c7d
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 0x1006c73
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 0x1006c73
cmp word [esi], 0
mov byte [ebp - 0x23ac], 0
mov byte [ebp - 0x23b0], 0
mov byte [ebp - 0x2385], 0
mov byte [ebp - 0x23bc], 0
je 0x100629b
inc esi
inc esi
movzx eax, word [esi]
cmp ax, 0x43
jne 0x10063a7
mov byte [ebp - 0x23ac], 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 0x10062ec
or dword [ebp - 0x2380], 0xffffffff
call ebx
cmp eax, 0x3f0
jne 0x1006c73
cmp byte [ebp - 0x23b0], 0
mov edi, dword [sym.imp.ADVAPI32.dll_RevertToSelf]
jne 0x10062fd
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 - 0x23b0], 0
je 0x1006320
call edi
lea eax, [ebp - 0x23d8]
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 0x1006433
lea eax, [ebp - 0x23a0]
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 - 0x23d8]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1006396
push dword [ebp - 0x23a0]
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov edi, eax
xor eax, eax
cmp byte [ebp - 0x23b0], al
sete al
neg edi
sbb edi, edi
lea eax, [eax + eax + 2]
and edi, eax
push dword [ebp - 0x23d8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100646c
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 - 0x23bc], 1
jmp 0x10062af
cmp ax, 0x4d
je 0x10063e3
cmp ax, 0x45
je 0x10063ea
jmp 0x10062af
mov byte [ebp - 0x23b0], 1
add esi, 4
push esi
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
test esi, esi
je 0x1006c60
cmp esi, 0xffffffff
je 0x1006c60
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 0x10062af
push edi
push 0x1007060
jmp 0x1006c6c
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 0x1007020
lea eax, [ebp - 0x2370]
push 0x104
push eax
call fcn.01008f2a
add esp, 0x1c
cmp byte [ebp - 0x2385], 0
je 0x1006485
cmp edi, 1
jne 0x100647e
push 9
jmp 0x1006484
test edi, edi
jne 0x1006496
push 8
pop edi
cmp byte [ebp - 0x23bc], 0
je 0x10064ae
test edi, edi
jne 0x10064a2
push 6
jmp 0x10064ad
push 0
push 0x1006f58
jmp 0x1006c6c
cmp edi, 1
jne 0x1006c73
push 7
pop edi
xor esi, esi
mov ebx, 0x100
push 5
mov dword [ebp - 0x23cc], ebx
pop eax
cmp edi, esi
je 0x10064db
cmp edi, 1
je 0x10064db
cmp edi, 6
je 0x10064db
cmp edi, 7
je 0x10064db
cmp edi, 8
je 0x10064db
cmp edi, 9
jne 0x10064de
push 4
pop eax
push esi
push eax
lea eax, [ebp - 0x23cc]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.01002b95
add esp, 0x10
mov dword [ebp - 0x23a0], eax
cmp eax, esi
je 0x1006520
cmp dword [ebp - 0x2380], 0xffffffff
je 0x1006515
push dword [ebp - 0x2380]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x23a0]
jmp 0x1001ce0
mov eax, dword [ebp - 0x23cc]
push eax
lea ecx, [ebp - 0x1b24]
mov dword [ebp - 0x23f8], eax
mov dword [ebp - 0x23e4], eax
mov dword [ebp - 0x23d0], eax
mov dword [ebp - 0x23d4], eax
mov dword [ebp - 0x23dc], eax
call fcn.01008ced
push dword [ebp - 0x23e4]
lea ecx, [ebp - 0x1f54]
call fcn.01008ced
push dword [ebp - 0x23d0]
lea ecx, [ebp - 0x1d3c]
call fcn.01008ced
push dword [ebp - 0x23d4]
lea ecx, [ebp - 0x1c30]
call fcn.01008ced
push dword [ebp - 0x23dc]
lea ecx, [ebp - 0x1e48]
call fcn.01008ced
lea eax, [ebp - 0x23dc]
push eax
push dword [ebp - 0x1e48]
lea eax, [ebp - 0x23d4]
push eax
push dword [ebp - 0x1c30]
lea eax, [ebp - 0x23d0]
push eax
push dword [ebp - 0x1d3c]
lea eax, [ebp - 0x23e4]
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 0x1006674
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x2380], 0xffffffff
mov esi, eax
je 0x1006607
push dword [ebp - 0x2380]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1e44], ebx
jle 0x100661b
push dword [ebp - 0x1e48]
call fcn.0100884e
pop ecx
cmp dword [ebp - 0x1c2c], ebx
jle 0x100662f
push dword [ebp - 0x1c30]
call fcn.0100884e
pop ecx
cmp dword [ebp - 0x1d38], ebx
jle 0x1006643
push dword [ebp - 0x1d3c]
call fcn.0100884e
pop ecx
cmp dword [ebp - 0x1f50], ebx
jle 0x1006657
push dword [ebp - 0x1f54]
call fcn.0100884e
pop ecx
cmp dword [ebp - 0x1b20], ebx
jle 0x1001ce0
push dword [ebp - 0x1b24]
call fcn.0100884e
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 - 0x23a0], eax
cmp eax, esi
je 0x100672c
cmp dword [ebp - 0x2380], 0xffffffff
je 0x10066ae
push dword [ebp - 0x2380]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x23a0]
push 0x1006ef8
call fcn.0100b375
pop ecx
pop ecx
cmp dword [ebp - 0x1e44], ebx
jle 0x10066d4
push dword [ebp - 0x1e48]
call fcn.0100884e
pop ecx
cmp dword [ebp - 0x1c2c], ebx
jle 0x10066e8
push dword [ebp - 0x1c30]
call fcn.0100884e
pop ecx
cmp dword [ebp - 0x1d38], ebx
jle 0x10066fc
push dword [ebp - 0x1d3c]
call fcn.0100884e
pop ecx
cmp dword [ebp - 0x1f50], ebx
jle 0x1006710
push dword [ebp - 0x1f54]
call fcn.0100884e
pop ecx
cmp dword [ebp - 0x1b20], ebx
jle 0x1006c73
push dword [ebp - 0x1b24]
call fcn.0100884e
jmp 0x1006c72
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x23a8], eax
cmp eax, esi
jne 0x100675f
cmp dword [ebp - 0x2380], 0xffffffff
je 0x10066c0
push dword [ebp - 0x2380]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10066c0
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x23f4], eax
cmp eax, esi
je 0x1006741
mov dword [ebp - 0x2384], esi
mov dword [ebp - 0x238c], esi
mov dword [ebp - 0x2390], esi
call fcn.0100b961
mov dword [ebp - 0x2398], eax
cmp eax, esi
jne 0x10067df
cmp dword [ebp - 0x2380], 0xffffffff
je 0x10067a9
push dword [ebp - 0x2380]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0x1006e98
call fcn.0100b375
mov eax, dword [ebp - 0x2390]
pop ecx
pop ecx
cmp eax, esi
je 0x10067c6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x238c]
cmp eax, esi
je 0x10066c0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x10066c0
and dword [ebp - 0x23b8], 0
and dword [ebp - 0x23a0], 0
call fcn.010080fd
mov esi, eax
test esi, esi
jne 0x1006833
cmp dword [ebp - 0x2380], 0xffffffff
je 0x100680d
push dword [ebp - 0x2380]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2398]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x2390]
test eax, eax
je 0x1006829
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x238c]
test eax, eax
jmp 0x10067ce
mov eax, dword [esi]
lea ecx, [ebp - 0x238c]
mov dword [ebp - 0x2394], eax
call fcn.01008d35
push eax
mov eax, dword [ebp - 0x2394]
push 0x1006ccc
push esi
call dword [eax]
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [ebp - 0x238c]
mov dword [ebp - 0x2394], eax
mov eax, dword [ebp - 0x2398]
mov dword [ebp - 0x23c8], edi
mov esi, dword [eax]
lea eax, [ebp - 0x23a0]
push eax
lea ecx, [ebp - 0x2390]
add esi, 0x38
call fcn.01008d35
push eax
lea eax, [ebp - 0x23b8]
push eax
push dword [ebp - 0x2394]
lea eax, [ebp - 0x9c]
push 0x10
push eax
lea eax, [ebp - 0x23c8]
push eax
push dword [ebp - 0x2398]
call dword [esi]
test eax, eax
je 0x10068dc
cmp dword [ebp - 0x2380], 0xffffffff
je 0x10068c9
push dword [ebp - 0x2380]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x1006e28
call fcn.0100b375
pop ecx
pop ecx
jmp 0x100680d
push dword [ebp - 0x23b8]
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x2394], eax
test eax, eax
jne 0x100691c
cmp dword [ebp - 0x2380], 0xffffffff
je 0x100690e
push dword [ebp - 0x2380]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1006db8
jmp 0x10068d0
push dword [ebp - 0x2390]
call dword [0x100fe14]
test eax, eax
je 0x10067f8
mov eax, dword [ebp - 0x238c]
mov ecx, dword [eax]
lea edx, [ebp - 0x2384]
push edx
push 0x1006cdc
push eax
call dword [ecx]
xor ecx, ecx
cmp edi, dword [ebp - 0x23c8]
jne 0x100695b
cmp edi, 8
je 0x100695b
cmp edi, 9
jne 0x1006961
lea ecx, [ebp - 0x23c8]
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 - 0x23a8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xa8]
mov eax, dword [ebp - 0x2384]
mov esi, dword [ebp - 0x23f4]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0xac]
push dword [ebp - 0x2380]
mov eax, dword [ebp - 0x2384]
push dword [ebp - 0x23a0]
mov ecx, dword [eax]
push dword [ebp - 0x23b0]
push dword [ebp - 0x23bc]
push dword [ebp - 0x23ac]
push dword [ebp - 0x23b8]
push eax
call dword [ecx + 0xa4]
cmp dword [ebp - 0x2380], 0xffffffff
mov edi, eax
je 0x10069f4
push dword [ebp - 0x2380]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x2380], 0xffffffff
test edi, edi
je 0x1006a04
push 0
push 0x1006d58
jmp 0x10068d0
mov eax, dword [ebp - 0x2384]
push dword [ebp - 0x2390]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x9c]
mov eax, dword [ebp - 0x2398]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x2390]
test eax, eax
je 0x1006a35
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x238c]
test eax, eax
je 0x1006a45
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x2394]
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
push 3
pop eax
mov dword [ebp - 0x23e8], esi
mov esi, 0x4ff
push esi
mov dword [ebp - 0x23f0], ecx
mov ecx, dword [ebp - 0x23a8]
push 0xffffffffffffffff
mov dword [ebp - 0x23ec], ecx
push 0
lea ecx, [ebp - 0x23f0]
push ecx
mov dword [0x100e018], eax
mov byte [ebp - 0x2385], 0
push eax
jmp 0x1006c1a
cmp eax, 1
je 0x1006c29
cmp eax, 2
jne 0x1006af2
push dword [ebp - 0x2394]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2384]
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 - 0x2394], eax
test eax, eax
je 0x1006c3a
mov dword [ebp - 0x23f0], eax
jmp 0x1006c0c
cmp eax, 3
je 0x1006bde
mov eax, dword [ebp - 0x2384]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x2394]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1e44], ebx
jle 0x1006b27
push dword [ebp - 0x1e48]
call fcn.0100884e
pop ecx
cmp dword [ebp - 0x1c2c], ebx
jle 0x1006b3b
push dword [ebp - 0x1c30]
call fcn.0100884e
pop ecx
cmp dword [ebp - 0x1d38], ebx
jle 0x1006b4f
push dword [ebp - 0x1d3c]
call fcn.0100884e
pop ecx
cmp dword [ebp - 0x1f50], ebx
jle 0x1006b63
push dword [ebp - 0x1f54]
call fcn.0100884e
pop ecx
cmp dword [ebp - 0x1b20], ebx
jle 0x1006b77
push dword [ebp - 0x1b24]
call fcn.0100884e
pop ecx
xor esi, esi
cmp dword [ebp - 0x23b4], esi
je 0x1006b99
cmp dword [0x100e01c], esi
jne 0x1006b99
mov eax, dword [0x100e0c0]
cmp eax, esi
je 0x1006b99
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.0100b581
jmp 0x100666e
cmp dword [ebp - 0x2410], 0x12
je 0x1006bf8
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 0x1006bff
jmp 0x1006bbb
mov byte [ebp - 0x2385], 1
cmp byte [ebp - 0x2385], 0
jne 0x1006afb
push esi
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x23f0]
push eax
push 3
call edi
test eax, eax
je 0x1006afb
jmp 0x1006a8f
push dword [ebp - 0x23a8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1006afb
cmp dword [ebp - 0x2380], 0xffffffff
je 0x1006c4f
push dword [ebp - 0x2380]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1006db8
jmp 0x10066b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1006cf0
call fcn.0100b375
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 0x1006caf
cmp dword [0x100fe64], edi
je 0x1006b77
cmp dword [0x100e078], edi
je 0x1006b77
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 0x1006c83