Function at 0x40f520
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a4c32
mov eax, dword fs:[0]
push eax
sub esp, 0x384
mov eax, dword [0x4d8b40]
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 dword [ebp - 0x10], esp
xor ebx, ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
lea ecx, [ebp - 0x368]
mov dword [ebp - 0x378], ebx
mov dword [ebp - 0x370], ebx
call fcn.00402670
push 0x2f
lea eax, [ebp - 0x43]
push ebx
mov dword [ebp - 4], ebx
push eax
mov byte [ebp - 0x44], bl
call fcn.00465b60
add esp, 0xc
push 0x207
lea ecx, [ebp - 0x24f]
push ebx
push ecx
mov byte [ebp - 0x250], bl
call fcn.00465b60
add esp, 0xc
push 0x104
lea edx, [ebp - 0x358]
push ebx
push edx
mov dword [ebp - 0x388], 0x208
mov dword [ebp - 0x390], ebx
mov byte [ebp - 4], 1
call fcn.00465b60
add esp, 0xc
lea ecx, [ebp - 0x358]
call fcn.00420c70
lea eax, [ebp - 0x358]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40f5e0
mov ecx, dword [0x4c0b1c]
mov edx, dword [0x4c0b20]
mov dword [eax], ecx
mov ecx, dword [0x4c0b24]
mov dword [eax + 4], edx
lea edx, [ebp - 0x358]
push edx
mov dword [eax + 8], ecx
call fcn.00420d70
mov edi, eax
cmp edi, 1
mov dword [ebp - 0x35c], eax
jle 0x40f626
mov edi, 1
mov dword [ebp - 0x35c], edi
push 0x4c10b4
lea ecx, [ebp - 0x36c]
call fcn.00402670
mov byte [ebp - 4], 2
cmp edi, ebx
jne 0x40f647
push 9
push str.gmMgr_cse
jmp 0x40f653
cmp edi, 1
jne 0x40f65e
push 0x11
push str.CRCB_DFKEY_Client
lea ecx, [ebp - 0x36c]
call fcn.00402900
mov ecx, dword [ebp - 0x36c]
mov edx, dword [ecx - 8]
mov eax, 1
sub eax, dword [ecx - 4]
or edx, eax
jge 0x40f685
push ebx
lea ecx, [ebp - 0x36c]
call fcn.00402850
mov ecx, dword [ebp - 0x36c]
lea edx, [ebp - 0x44]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x40f688
push str.IsWow64Process
push str.kernel32
mov dword [ebp - 0x364], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x40f6c5
lea eax, [ebp - 0x364]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
lea ecx, [ebp - 0x368]
cmp dword [ebp - 0x364], ebx
je 0x40f6dc
push 0x39
push str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionRun
jmp 0x40f6e3
push 0x2d
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
call fcn.00402900
lea ecx, [ebp - 0x364]
push ecx
lea ecx, [ebp - 0x360]
mov dword [ebp - 0x360], ebx
mov dword [ebp - 0x364], ebx
call fcn.00428e90
mov ebx, dword [ebp - 0x360]
add esp, 4
xor esi, esi
cmp esi, dword [ebp - 0x364]
jae 0x40f7bb
test edi, edi
jne 0x40f75c
mov eax, esi
imul eax, eax, 0x402
add eax, ebx
push 0x4c2d18
push eax
call fcn.004605b0
add esp, 8
test eax, eax
je 0x40f7b5
xor eax, eax
push 0x4cf13c
lea edx, [ebp - 0x38c]
push edx
mov dword [ebp - 0x370], eax
mov dword [ebp - 0x38c], eax
call fcn.004679cb
cmp edi, 1
jne 0x40f7b5
mov eax, esi
imul eax, eax, 0x402
lea edi, [eax + ebx]
push 0x4c2d28
push edi
call fcn.004605b0
add esp, 8
test eax, eax
jne 0x40f790
push 0x4c2d40
push edi
call fcn.004605b0
add esp, 8
test eax, eax
je 0x40f7af
xor eax, eax
push 0x4cf13c
lea ecx, [ebp - 0x37c]
push ecx
mov dword [ebp - 0x370], eax
mov dword [ebp - 0x37c], eax
call fcn.004679cb
mov edi, dword [ebp - 0x35c]
inc esi
jmp 0x40f711
mov edx, dword [ebp - 0x368]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40f7e3
push 0
lea ecx, [ebp - 0x368]
call fcn.00402850
mov edx, dword [ebp - 0x368]
lea eax, [ebp - 0x378]
push eax
push 0x20019
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x370], eax
test eax, eax
je 0x40f81e
push 0x4cf13c
lea ecx, [ebp - 0x380]
push ecx
mov dword [ebp - 0x380], eax
call fcn.004679cb
lea edx, [ebp - 0x388]
push edx
lea eax, [ebp - 0x250]
push eax
mov eax, dword [ebp - 0x378]
lea ecx, [ebp - 0x390]
push ecx
push 0
lea edx, [ebp - 0x44]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x370], eax
test eax, eax
je 0x40f867
push 0x4cf13c
lea ecx, [ebp - 0x384]
push ecx
mov dword [ebp - 0x384], eax
call fcn.004679cb
push ecx
lea edx, [ebp - 0x250]
mov ecx, esp
mov dword [ebp - 0x374], esp
push edx
mov esi, 0x708
call fcn.00402670
mov ecx, esi
call fcn.0040fbc0
add esp, 4
cmp edi, 1
jne 0x40fb2d
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x360]
call fcn.00402670
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x360]
push 0x5c
push ecx
call fcn.004604da
add esp, 8
test eax, eax
jne 0x40f8c4
or eax, 0xffffffff
jmp 0x40f8ca
sub eax, dword [ebp - 0x360]
push eax
lea edx, [ebp - 0x374]
push edx
lea ecx, [ebp - 0x360]
call fcn.00407a40
push eax
lea ecx, [ebp - 0x360]
mov byte [ebp - 4], 4
call fcn.00402990
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x374]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f913
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x4c2d58
lea ecx, [ebp - 0x360]
push ecx
lea edx, [ebp - 0x35c]
push edx
call fcn.00414980
add esp, 0xc
xor edi, edi
mov byte [ebp - 4], 5
xor esi, esi
cmp esi, dword [ebp - 0x364]
jae 0x40f95d
mov eax, esi
imul eax, eax, 0x402
add eax, ebx
push 0x4c2d40
push eax
call fcn.004605b0
add esp, 8
test eax, eax
jne 0x40f9a6
inc esi
jmp 0x40f936
test edi, edi
jne 0x40f9a6
mov edx, dword [ebp - 0x35c]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
mov esi, 0x708
or ecx, eax
jge 0x40f98d
push edi
lea ecx, [ebp - 0x35c]
call fcn.00402850
mov edx, dword [ebp - 0x35c]
push ecx
mov ecx, esp
mov dword [ebp - 0x374], esp
push edx
call fcn.00402670
mov ecx, esi
call fcn.0040fbc0
add esp, 4
push str.CRCB_DFKEY_SRV.exe
lea eax, [ebp - 0x360]
push eax
lea ecx, [ebp - 0x374]
push ecx
call fcn.00414980
add esp, 0xc
mov byte [ebp - 4], 6
mov eax, dword [eax]
mov ebx, dword [ebp - 0x35c]
lea esi, [eax - 0x10]
add ebx, 0xfffffff0
cmp esi, ebx
je 0x40fa75
cmp dword [ebx + 0xc], 0
jl 0x40fa65
mov ecx, dword [esi]
cmp ecx, dword [ebx]
jne 0x40fa65
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40fa0c
cmp eax, dword [esi]
jne 0x40fa0c
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40fa41
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x40fa25
call fcn.00402a40
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
inc eax
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.0045f9db
add esp, 0x10
lea eax, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x40fa5a
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
add edi, 0x10
mov dword [ebp - 0x35c], edi
jmp 0x40fa75
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x35c]
call fcn.00402900
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x374]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fa9b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp - 0x35c]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
mov esi, 0x708
or ecx, eax
jge 0x40fac8
push 0
lea ecx, [ebp - 0x35c]
call fcn.00402850
mov edx, dword [ebp - 0x35c]
push ecx
mov ecx, esp
mov dword [ebp - 0x364], esp
push edx
call fcn.00402670
mov ecx, esi
call fcn.0040fbc0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x35c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fb07
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x360]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fb2d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x36c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fb53
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x378]
test eax, eax
je 0x40fb64
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x368]
add eax, 0xfffffff0
mov dword [ebp - 0x378], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fb97
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x370]
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.0045f97b
mov esp, ebp
pop ebp
ret