Function at 0x406aa0
Capabilities:
Check if file exists
Get file attributes
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4271e6
mov eax, dword fs:[0]
push eax
sub esp, 0x1f8
mov eax, dword [0x434040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1cc], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c0], eax
call fcn.00408150
test al, al
je 0x406dad
cmp dword [ebx + 0x30], 7
lea edi, [ebx + 0x1c]
mov eax, edi
jbe 0x406af9
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x406b8a
mov edi, dword [ebx + 0x7c]
add ebx, 0x34
inc edi
cmp dword [ebx + 0x14], 7
jbe 0x406b18
mov ebx, dword [ebx]
lea eax, [ebp - 0x1c8]
mov dword [ebp - 0x1c4], 0
push eax
lea eax, [ebp - 0x1c4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push ebx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x406dad
mov esi, dword [ebp - 0x1c4]
test esi, esi
je 0x406dad
push 4
lea eax, [ebp - 0x1c0]
mov dword [ebp - 0x1c0], edi
push eax
push 4
push 0
push str.AlreadyRunCount
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x406dad
cmp dword [ebx + 0x14], 0x20
jne 0x406b09
xor eax, eax
push 0x20
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
call fcn.0040f117
mov ecx, dword [str.Kugou.exe]
mov edx, eax
add esp, 4
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x34], 9
mov dword [ebp - 0x30], 0xf
mov dword [edx], ecx
mov ecx, dword [0x430160]
mov dword [edx + 4], ecx
mov eax, dword [0x430164]
mov dword [edx + 8], eax
mov eax, dword [0x430168]
mov dword [edx + 0xc], eax
mov ax, word [0x43016c]
mov word [edx + 0x10], ax
xor eax, eax
mov word [edx + 0x12], ax
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], eax
call fcn.0040b760
mov dword [ebp - 4], 0xffffffff
mov esi, eax
mov ecx, dword [ebp - 0x30]
cmp ecx, 7
jbe 0x406c3b
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406c31
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407a30
push ecx
push edx
call fcn.0040f14c
add esp, 8
cmp esi, 1
jg 0x406dad
cmp dword [ebx], 3
jne 0x406dcd
cmp dword [edi + 0x14], 7
mov esi, dword [edi + 0x10]
jbe 0x406c58
mov edi, dword [edi]
test esi, esi
je 0x406d2b
push 0x100
lea eax, [ebp - 0x1bc]
push 0
push eax
call fcn.00411010
add esp, 0xc
mov ecx, 0x42ff60
mov edx, 0x100
movzx eax, word [ecx]
cmp ax, dx
jae 0x406cd2
movzx eax, al
add ecx, 2
mov byte [ebp + eax - 0x1bc], 1
cmp ecx, 0x42ff64
jne 0x406c80
or ecx, 0xffffffff
lea eax, [esi - 1]
cmp eax, ecx
cmovb ecx, eax
lea edx, [edi + ecx*2]
mov ecx, 0x100
movzx eax, word [edx]
cmp ax, cx
jae 0x406cc3
cmp byte [ebp + eax - 0x1bc], 0
jne 0x406ccc
cmp edx, edi
je 0x406d2b
sub edx, 2
jmp 0x406cb1
sub edx, edi
sar edx, 1
jmp 0x406d2e
lea eax, [esi - 1]
or ecx, 0xffffffff
cmp eax, ecx
cmovb ecx, eax
lea edx, [edi + ecx*2]
movzx ebx, word [edx]
mov eax, 0x5c
mov ecx, 0x42ff60
lea esi, [eax - 0x5a]
cmp ax, bx
je 0x406d1f
cmp esi, 1
je 0x406d0b
movzx eax, word [ecx + 2]
add ecx, 2
dec esi
cmp ax, bx
jne 0x406cf5
test ecx, ecx
jne 0x406d1f
cmp edx, edi
je 0x406d14
sub edx, 2
jmp 0x406ce0
mov ebx, dword [ebp - 0x1cc]
or edx, 0xffffffff
jmp 0x406d2e
mov ebx, dword [ebp - 0x1cc]
sub edx, edi
sar edx, 1
jmp 0x406d2e
or edx, 0xffffffff
cmp edx, 0xffffffff
je 0x406dad
lea ecx, [ebx + 0x1c]
push ecx
push 0xffffffffffffffff
lea eax, [edx + 1]
push eax
push ecx
lea ecx, [ebp - 0xbc]
call fcn.00409210
lea ecx, [ebp - 0xbc]
mov dword [ebp - 4], 1
call fcn.0040b760
cmp eax, 1
jl 0x406d6d
mov eax, dword [ebp - 0x1c0]
test eax, eax
je 0x406d6d
mov byte [eax], 1
mov ecx, dword [ebp - 0xa8]
cmp ecx, 7
jbe 0x406dad
mov edx, dword [ebp - 0xbc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406da3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407a30
push ecx
push edx
call fcn.0040f14c
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040f104
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov dword [ebp - 0x90], 0xf
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], eax
mov byte [ebp - 0xa4], al
mov dword [ebp - 4], 2
cmp dword [edi + 0x14], 7
jbe 0x406e0c
mov edi, dword [edi]
lea eax, [ebp - 0xa4]
push eax
push ecx
mov ecx, edi
call fcn.0040d0e0
add esp, 8
test al, al
jne 0x406eb5
mov edi, dword [ebx + 0x7c]
add ebx, 0x34
inc edi
cmp dword [ebx + 0x14], 7
jbe 0x406e35
mov ebx, dword [ebx]
lea eax, [ebp - 0x1c8]
mov dword [ebp - 0x1c4], 0
push eax
lea eax, [ebp - 0x1c4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push ebx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x406e9a
mov esi, dword [ebp - 0x1c4]
test esi, esi
je 0x406e9a
push 4
lea eax, [ebp - 0x1c0]
mov dword [ebp - 0x1c0], edi
push eax
push 4
push 0
push str.AlreadyRunCount
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x90]
cmp ecx, 0xf
jbe 0x406dad
mov edx, dword [ebp - 0xa4]
inc ecx
jmp 0x406d85
xor eax, eax
lea esi, [ebx + 4]
cmp dword [esi + 0x14], 0xf
mov ebx, dword [esi + 0x10]
mov dword [ebp - 0x1c0], esi
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
jbe 0x406ee3
mov esi, dword [esi]
mov dword [ebp - 0x1c0], esi
cmp ebx, 0x7fffffff
ja 0x407a35
cmp ebx, 0xf
ja 0x406f1b
mov eax, dword [esi + 4]
mov edi, 0xf
mov ecx, dword [esi]
mov dword [ebp - 0x58], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x54], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x50], eax
jmp 0x406fa9
mov edi, ebx
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x406f51
mov ecx, 0x80000000
mov edi, 0x7fffffff
add ecx, 0x23
push ecx
call fcn.0040f117
add esp, 4
test eax, eax
je 0x407a30
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x406f85
mov eax, 0x16
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
test eax, eax
jne 0x406f66
xor esi, esi
jmp 0x406f85
cmp eax, 0x1000
jb 0x406f7a
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x407a3a
jmp 0x406f35
push eax
call fcn.0040f117
add esp, 4
mov esi, eax
lea eax, [ebx + 1]
mov dword [ebp - 0x1c4], esi
push eax
push dword [ebp - 0x1c0]
mov dword [ebp - 0x5c], esi
push esi
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], edi
call fcn.00410960
add esp, 0xc
mov ecx, esi
mov byte [ebp - 4], 3
test ebx, ebx
je 0x406ff8
cmp edi, 0xf
mov dword [ebp - 0x24], 0xa4
lea esi, [ebp - 0x5c]
mov dword [ebp - 0x20], 0xd1
cmova esi, ecx
mov dword [ebp - 0x1c], 0xc4
mov dword [ebp - 0x18], 0x6d
lea edi, [esi + ebx]
cmp esi, edi
je 0x406ff8
lea ecx, [ecx]
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
lea edx, [esi + 4]
call fcn.0040bbf0
add esi, 8
add esp, 4
cmp esi, edi
jne 0x406fe0
lea edx, [ebp - 0xa4]
lea ecx, [ebp - 0x8c]
call fcn.00406590
lea edx, [ebp - 0x5c]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x74]
call fcn.00406590
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x74]
cmp dword [ebp - 0x60], 0xf
lea edx, [ebp - 0x8c]
mov esi, dword [ebp - 0x7c]
cmova ecx, dword [ebp - 0x74]
cmp dword [ebp - 0x78], 0xf
cmova edx, dword [ebp - 0x8c]
cmp esi, dword [ebp - 0x64]
jne 0x4075dc
sub esi, 4
jb 0x407061
lea esp, [esp]
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x407066
add edx, 4
add ecx, 4
sub esi, 4
jae 0x407050
cmp esi, 0xfffffffc
je 0x40709a
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x407093
cmp esi, 0xfffffffd
je 0x40709a
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x407093
cmp esi, 0xfffffffe
je 0x40709a
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x407093
cmp esi, 0xffffffff
je 0x40709a
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x40709a
sbb eax, eax
or eax, 1
jmp 0x40709c
xor eax, eax
test eax, eax
jne 0x4075dc
mov eax, dword [0x435b64]
test eax, eax
jne 0x4070fb
push 0x28
call fcn.0040f117
add esp, 4
mov dword [ebp - 0x1c8], eax
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.00405dc0
mov edx, eax
mov byte [ebp - 4], 5
mov ecx, edx
mov esi, 0x435b64
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
je 0x4070ee
test edx, edx
je 0x4070ee
push 0x28
push edx
call fcn.0040f14c
add esp, 8
mov eax, dword [0x435b64]
test eax, eax
je 0x407224
mov ecx, dword [eax]
test ecx, ecx
je 0x407114
cmp ecx, 1
jne 0x40721b
cmp dword [eax + 0x10], 3
jge 0x407224
mov ecx, dword [ebp - 0x60]
cmp ecx, 0xf
jbe 0x407148
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40713e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407a30
push ecx
push edx
call fcn.0040f14c
add esp, 8
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
cmp ecx, 0xf
jbe 0x407191
mov edx, dword [ebp - 0x8c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407187
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407a30
push ecx
push edx
call fcn.0040f14c
add esp, 8
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], 0
cmp ecx, 0xf
jbe 0x4071da
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4071d0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407a30
push ecx
push edx
call fcn.0040f14c
add esp, 8
mov ecx, dword [ebp - 0x90]
cmp ecx, 0xf
jbe 0x407214
mov edx, dword [ebp - 0xa4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40720a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407a30
push ecx
push edx
call fcn.0040f14c
add esp, 8
mov al, 1
jmp 0x406daf
cmp ecx, 2
je 0x407114
mov byte [ebp - 0x200], 0
mov dword [ebp - 0x1fc], 0
mov dword [ebp - 0x1f8], 0
mov dword [ebp - 0x1f4], 0
mov dword [ebp - 0x1f0], 0
mov dword [ebp - 0x1ec], 0
mov dword [ebp - 0x1e8], 0
mov dword [ebp - 0x1e4], 0
mov dword [ebp - 0x1e0], 0
mov dword [ebp - 0x1dc], 0
mov dword [ebp - 0x1d8], 0
mov dword [ebp - 0x1d4], 0
mov dword [ebp - 0x1d0], 0
mov edi, dword [ebp - 0x1cc]
sub esp, 0x18
mov ecx, esp
mov byte [ebp - 4], 9
lea eax, [edi + 0x1c]
push eax
call fcn.00409080
push 0
lea ecx, [ebp - 0x200]
call fcn.0040c360
mov byte [ebp - 4], 5
mov ebx, eax
mov ecx, dword [ebp - 0x1fc]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ecx, ecx
je 0x4072e1
push ecx
call esi
mov eax, dword [ebp - 0x1f8]
test eax, eax
je 0x4072ee
push eax
call esi
cmp ebx, 2
je 0x407114
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov word [ebp - 0x44], ax
mov byte [ebp - 4], 0xa
push 0x20
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
call fcn.0040f117
mov ecx, dword [str.Signature]
mov edx, eax
mov dword [ebp - 0x2c], edx
add esp, 4
mov dword [ebp - 0x1c], 9
mov dword [ebp - 0x18], 0xf
mov dword [edx], ecx
mov ecx, dword [0x430120]
mov dword [edx + 4], ecx
mov eax, dword [0x430124]
mov dword [edx + 8], eax
mov eax, dword [0x430128]
mov dword [edx + 0xc], eax
mov ax, word [0x43012c]
mov word [edx + 0x10], ax
xor eax, eax
mov word [edx + 0x12], ax
lea eax, [edi + 0x34]
cmp dword [eax + 0x14], 7
jbe 0x40737c
mov eax, dword [eax]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea ecx, [ebp - 0x1c8]
push ecx
lea ecx, [ebp - 0x1c0]
mov dword [ebp - 0x1c0], 0
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push eax
push 0x80000001
call esi
test eax, eax
jne 0x407415
mov esi, dword [ebp - 0x1c0]
test esi, esi
je 0x40740f
cmp dword [ebp - 0x30], 7
lea edx, [ebp - 0x44]
lea ebx, [ebp - 0x2c]
cmova edx, dword [ebp - 0x44]
cmp dword [ebp - 0x18], 7
mov ecx, edx
cmova ebx, dword [ebp - 0x2c]
lea eax, [ecx + 2]
mov dword [ebp - 0x1c4], eax
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4073e0
sub ecx, dword [ebp - 0x1c4]
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x40744f
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x407445
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407a3f
push ecx
push edx
call fcn.0040f14c
add esp, 8
mov ecx, dword [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp ecx, 7
jbe 0x40749d
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x407493
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407a3f
push ecx
push edx
call fcn.0040f14c
add esp, 8
mov ebx, dword [edi + 0x7c]
add edi, 0x34
inc ebx
cmp dword [edi + 0x14], 7
jbe 0x4074ac
mov edi, dword [edi]
lea eax, [ebp - 0x1c8]
mov dword [ebp - 0x1c0], 0
push eax
lea eax, [ebp - 0x1c0]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push edi
push 0x80000001
call esi
test eax, eax
jne 0x40750d
mov esi, dword [ebp - 0x1c0]
test esi, esi
je 0x40750d
push 4
lea eax, [ebp - 0x1c4]
mov dword [ebp - 0x1c4], ebx
push eax
push 4
push 0
push str.AlreadyRunCount
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x60]
cmp ecx, 0xf
jbe 0x407541
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407537
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407a30
push ecx
push edx
call fcn.0040f14c
add esp, 8
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
cmp ecx, 0xf
jbe 0x40758a
mov edx, dword [ebp - 0x8c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407580
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407a30
push ecx
push edx
call fcn.0040f14c
add esp, 8
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], 0
cmp ecx, 0xf
jbe 0x406e9a
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4075cd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407a30
push ecx
push edx
call fcn.0040f14c
add esp, 8
jmp 0x406e9a
mov edi, dword [ebp - 0x1cc]
xor eax, eax
mov dword [ebp - 0x2c], eax
xor ecx, ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov eax, 7
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x1c], ecx
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 6
mov eax, dword [edi + 0x14]
add eax, eax
cmp eax, 7
jbe 0x407625
push dword [ebp - 0x1c8]
lea ecx, [ebp - 0x2c]
push eax
call fcn.00409390
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
cmp dword [edi + 0x18], 0xf
lea esi, [edi + 4]
jbe 0x407631
mov esi, dword [edi + 4]
cmp dword [edi + 0x18], 0xf
lea edx, [edi + 4]
jbe 0x40763d
mov edx, dword [edi + 4]
mov eax, dword [edi + 0x14]
add eax, edx
cmp esi, eax
je 0x4076f4
movzx ebx, byte [esi]
mov edx, dword [ebp - 0x18]
mov eax, ebx
shr eax, 4
movsx ax, byte [eax + str.0123456789ABCDEF_]
movzx eax, ax
mov dword [ebp - 0x1c0], eax
cmp ecx, edx
jae 0x40768d
lea eax, [ecx + 1]
cmp edx, 7
mov edx, dword [ebp - 0x1c0]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
mov word [eax + ecx*2], dx
xor edx, edx
mov word [eax + ecx*2 + 2], dx
jmp 0x40769e
push eax
push dword [ebp - 0x1c8]
lea ecx, [ebp - 0x2c]
push 1
call fcn.004094d0
mov ecx, dword [ebp - 0x1c]
and ebx, 0xf
movsx ax, byte [ebx + str.0123456789ABCDEF_]
mov ebx, dword [ebp - 0x18]
movzx edx, ax
cmp ecx, ebx
jae 0x4076da
lea eax, [ecx + 1]
cmp ebx, 7
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
mov word [eax + ecx*2], dx
xor edx, edx
mov word [eax + ecx*2 + 2], dx
inc esi
mov ecx, dword [ebp - 0x1c]
jmp 0x407631
push edx
push dword [ebp - 0x1c8]
lea ecx, [ebp - 0x2c]
push 1
call fcn.004094d0
mov ecx, dword [ebp - 0x1c]
inc esi
jmp 0x407631
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0xa8], eax
xor eax, eax
mov byte [ebp - 4], 7
push 0x20
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
call fcn.0040f117
mov ecx, dword [str.HashEqual]
mov edx, eax
mov ebx, dword [ebp - 0x1cc]
add esp, 4
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x34], 9
mov dword [ebp - 0x30], 0xf
mov dword [edx], ecx
mov ecx, dword [0x430108]
mov dword [edx + 4], ecx
mov eax, dword [0x43010c]
mov dword [edx + 8], eax
mov eax, dword [0x430110]
mov dword [edx + 0xc], eax
mov ax, word [0x430114]
mov word [edx + 0x10], ax
xor eax, eax
mov word [edx + 0x12], ax
lea eax, [ebx + 0x34]
cmp dword [eax + 0x14], 7
jbe 0x407798
mov eax, dword [eax]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea ecx, [ebp - 0x1c8]
push ecx
lea ecx, [ebp - 0x1c0]
mov dword [ebp - 0x1c0], 0
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push eax
push 0x80000001
call esi
test eax, eax
jne 0x407838
mov esi, dword [ebp - 0x1c0]
test esi, esi
je 0x407832
cmp dword [ebp - 0xa8], 7
lea edx, [ebp - 0xbc]
lea edi, [ebp - 0x44]
cmova edx, dword [ebp - 0xbc]
cmp dword [ebp - 0x30], 7
mov ecx, edx
cmova edi, dword [ebp - 0x44]
lea eax, [ecx + 2]
mov dword [ebp - 0x1c4], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407803
sub ecx, dword [ebp - 0x1c4]
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ecx, dword [ebp - 0x30]
cmp ecx, 7
jbe 0x407872
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x407868
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407a44
push ecx
push edx
call fcn.0040f14c
add esp, 8
mov ecx, dword [ebp - 0xa8]
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp ecx, 7
jbe 0x4078c6
mov edx, dword [ebp - 0xbc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4078bc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407a44
push ecx
push edx
call fcn.0040f14c
add esp, 8
mov edi, dword [ebx + 0x7c]
add ebx, 0x34
inc edi
cmp dword [ebx + 0x14], 7
jbe 0x4078d5
mov ebx, dword [ebx]
lea eax, [ebp - 0x1c8]
mov dword [ebp - 0x1c0], 0
push eax
lea eax, [ebp - 0x1c0]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push ebx
push 0x80000001
call esi
test eax, eax
jne 0x407936
mov esi, dword [ebp - 0x1c0]
test esi, esi
je 0x407936
push 4
lea eax, [ebp - 0x1c4]
mov dword [ebp - 0x1c4], edi
push eax
push 4
push 0
push str.AlreadyRunCount
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x60]
cmp ecx, 0xf
jbe 0x40796a
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407960
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407a30
push ecx
push edx
call fcn.0040f14c
add esp, 8
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
cmp ecx, 0xf
jbe 0x4079b3
mov edx, dword [ebp - 0x8c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4079a9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407a30
push ecx
push edx
call fcn.0040f14c
add esp, 8
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], 0
cmp ecx, 0xf
jbe 0x4079f8
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4079ee
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407a30
push ecx
push edx
call fcn.0040f14c
add esp, 8
mov ecx, dword [ebp - 0x90]
cmp ecx, 0xf
jbe 0x406dad
mov edx, dword [ebp - 0xa4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406da3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406da3
call fcn.00417f31
call fcn.0040118c
call fcn.00401115
call fcn.00417f31
call fcn.00417f31
int3