Function at 0x434c40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d0a6
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x45b010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
call fcn.0040638e
mov ecx, eax
test ecx, ecx
jne 0x434ca0
push 0x80004005
call fcn.00406864
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x434cb5
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x434cb7
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov ebx, str.SOFTWARETencentTGB
mov byte [ebp - 4], 1
or edi, 0xffffffff
test ebx, 0xffff0000
jne 0x434d71
movzx ebx, bx
mov ecx, ebx
call fcn.0040643e
mov dword [ebp - 0x18], eax
test eax, eax
je 0x434e8e
mov ecx, ebx
shr ecx, 4
inc ecx
push 6
movzx ecx, cx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x434e8e
mov ecx, dword [ebp - 0x18]
mov edx, eax
push ebx
call fcn.004064a8
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x434e8e
movzx edi, word [ebx]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x434d3d
push edi
lea ecx, [ebp - 0x10]
call fcn.004066e8
mov esi, dword [ebp - 0x10]
movzx ecx, word [ebx]
lea eax, [ebx + 2]
push ecx
push eax
push edi
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wmemcpy_s]
add esp, 0x10
cmp eax, 0x50
ja case.0x434d60.1
movzx eax, byte [eax + 0x434f9c]
jmp dword [eax*4 + 0x434f8c]
push 0x8007000e
call fcn.00406864
push str.SOFTWARETencentTGB
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov edi, eax
add esp, 4
test edi, edi
jne 0x434e1b
lea ecx, [esi - 0x10]
mov edi, dword [ecx]
cmp dword [ecx + 4], eax
je 0x434e8b
cmp dword [ecx + 0xc], eax
lea edx, [ecx + 0xc]
jge 0x434dbf
cmp dword [esi - 8], eax
jge 0x434dae
push 0x80070057
call fcn.00406864
xor eax, eax
mov dword [esi - 0xc], 0
mov word [esi], ax
jmp 0x434e8b
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x434dfa
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x434df6
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x434df6
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x434dfa
mov ecx, edx
call esi
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x434e12
lock inc dword [edi + 0x14]
lea eax, [edi + 8]
lea esi, [eax + 0x10]
jmp 0x434e8b
mov ecx, edi
call edx
lea esi, [eax + 0x10]
jmp 0x434e8b
mov eax, dword [esi - 0xc]
sub ebx, esi
sar ebx, 1
mov dword [ebp - 0x18], eax
test edi, edi
jns 0x434e33
push 0x80070057
call fcn.00406864
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x434e50
push edi
lea ecx, [ebp - 0x10]
call fcn.004066e8
mov esi, dword [ebp - 0x10]
mov ecx, esi
mov edx, dword [esi - 8]
cmp ebx, dword [ebp - 0x18]
ja 0x434e66
lea eax, [esi + ebx*2]
push edi
push eax
call fcn.00406775
jmp 0x434e76
lea eax, [edi + edi]
add edx, edx
push eax
push str.SOFTWARETencentTGB
call fcn.004067e1
add esp, 8
cmp edi, dword [esi - 8]
jg case.0x434d60.20
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
or edi, 0xffffffff
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 0
push eax
push 0x20019
push 0
push esi
push 0x80000001
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x434f31
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
push ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x28], eax
push ecx
push 0
push str.SetVMRebooted
push eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x434f25
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x434f23
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x434f23
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x434f25
call edx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x434f6d
push eax
call ebx
jmp 0x434f6b
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x434f6b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x434f69
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x434f69
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x434f6b
call edx
xor eax, eax
mov esi, dword [ebp - 0x14]
test eax, eax
je 0x434f77
push eax
call ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret