Function at 0x1004efe0
Capabilities:
Get session user name
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x1007e760
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push esi
push edi
mov al, byte [0x1009739c]
mov ebx, 1
test bl, al
mov dword [esp + 0x50], ebx
jne 0x1004f03d
mov edx, dword [0x1009739c]
mov eax, dword [0x10098a04]
or edx, ebx
mov ecx, 0x10098a04
mov dword [0x1009739c], edx
call dword [eax + 0xc]
add eax, 0x10
push 0x10080730
mov dword [0x10097398], eax
call fcn.10069a52
add esp, 4
mov ecx, dword [0x10097398]
mov eax, dword [ecx - 0xc]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jne 0x1004f16f
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push 0x20019
push 0
push 0
push 0
push str.SOFTWARESohu_RDDownload
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1004f105
mov edx, dword [0x10097398]
mov dword [esp + 0x20], 0x40
mov eax, dword [edx - 4]
mov ecx, ebx
sub ecx, eax
mov eax, dword [edx - 8]
sub eax, 0x40
or eax, ecx
jge 0x1004f0b4
push 0x40
mov ecx, 0x10097398
call fcn.100029f0
mov edx, dword [0x10097398]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push ecx
push edx
lea edx, [esp + 0x38]
push edx
push 0
push str.UserID
push eax
call edi
mov edx, dword [0x10097398]
test edx, edx
jne 0x1004f0db
xor eax, eax
jmp 0x1004f0ef
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1004f0e0
sub eax, esi
js 0x1004f558
cmp eax, dword [edx - 8]
jg 0x1004f558
mov dword [edx - 0xc], eax
mov ecx, dword [0x10097398]
mov byte [ecx + eax], 0
mov edx, dword [0x10097398]
mov eax, dword [edx - 0xc]
test eax, eax
jne 0x1004f16f
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
mov byte [esp + 0x50], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1004f135
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
mov dword [esp + 0x50], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1004f15b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret
push str.1.0.0
lea ecx, [esp + 0x1c]
call fcn.10005e50
lea eax, [esp + 0x1c]
push eax
push 0x20019
push 0
push str.SOFTWARESohu_RDDownload
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0x64], 2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1004f1e4
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x3c]
push eax
push 0
push str.Version
push ecx
mov dword [esp + 0x38], 0x10
call edi
test eax, eax
jne 0x1004f1d9
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x1c]
call fcn.10005d60
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [0x10098a04]
mov ecx, 0x10098a04
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [0x10098a04]
mov ecx, 0x10098a04
mov byte [esp + 0x50], 3
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov edx, dword [0x10098a04]
mov ecx, 0x10098a04
mov byte [esp + 0x50], 4
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [0x10098a04]
mov ecx, 0x10098a04
mov byte [esp + 0x50], 5
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0xc]
mov dword [esp + 0x24], 0x64
mov eax, dword [edx - 8]
mov ecx, ebx
sub ecx, dword [edx - 4]
sub eax, 0x64
or eax, ecx
mov byte [esp + 0x50], 6
jge 0x1004f274
push 0x64
lea ecx, [esp + 0x10]
call fcn.100029f0
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov ecx, dword [esp + 0xc]
test ecx, ecx
jne 0x1004f28c
xor eax, eax
jmp 0x1004f2a0
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1004f291
sub eax, esi
js 0x1004f558
cmp eax, dword [ecx - 8]
jg 0x1004f558
mov dword [ecx - 0xc], eax
mov edx, dword [esp + 0xc]
mov byte [eax + edx], 0
lea eax, [esp + 0x14]
push eax
call fcn.1001f460
push 0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.1001f630
mov esi, eax
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0x6c], 7
call fcn.1001f630
mov edi, eax
push 0
lea edx, [esp + 0x48]
push 0x10097398
mov bl, 8
push edx
mov byte [esp + 0x78], bl
call fcn.1001f630
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x40]
mov eax, dword [eax]
push ecx
mov ecx, dword [esi]
push edx
mov edx, dword [edi]
push ecx
push edx
push eax
lea ecx, [esp + 0x5c]
push str.uid_suser_stime_sversion_s_s
push ecx
mov byte [esp + 0x94], 9
call fcn.10004e20
mov eax, dword [esp + 0x6c]
add eax, 0xfffffff0
add esp, 0x44
mov byte [esp + 0x50], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1004f352
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x50], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1004f375
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x50], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1004f398
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x5c]
push ebx
push ebp
lea eax, [esp + 0x1c]
push str.http:__p4p.so.sohu.com:8080_img__s__s
push eax
call fcn.10004e20
add esp, 0x10
push 0x10097380
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x14]
mov dword [0x10096f78], 0
mov esi, dword [edi - 0xc]
cmp esi, 0x200
jle 0x1004f40e
cmp dword [edi - 4], 1
jle 0x1004f3ef
mov ecx, esi
push ecx
lea ecx, [esp + 0x18]
call fcn.10001f10
mov edi, dword [esp + 0x14]
test esi, esi
mov byte [edi + 0x200], 0
jl 0x1004f54e
cmp esi, dword [edi - 8]
jg 0x1004f54e
mov dword [edi - 0xc], esi
mov byte [esi + edi], 0
push edi
push 0
push 0x1004ec20
call fcn.10069e0f
add esp, 0xc
cmp eax, 0xffffffff
je 0x1004f43f
mov eax, dword [0x10096f78]
test eax, eax
jne 0x1004f43f
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xa
call esi
mov eax, dword [0x10096f78]
test eax, eax
je 0x1004f432
push 0x10097380
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x54], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1004f46d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x54], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1004f490
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
mov byte [esp + 0x54], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1004f4af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add edi, 0xfffffff0
mov byte [esp + 0x54], 2
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1004f4ce
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x54], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1004f4f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov byte [esp + 0x54], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1004f510
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
mov dword [esp + 0x54], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1004f536
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x4c]
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret
push 0x80070057
call fcn.10001330
push 0x80070057
call fcn.10001330
int3