Function at 0x10003310
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10009f14
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x11c
cmp eax, 2
push ebx
push esi
push edi
jne 0x100034bf
mov eax, dword [esp + 0x13c]
mov esi, 0x1000e41c
mov edi, dword [eax + 4]
mov eax, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x10003374
test cl, cl
je 0x10003370
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x10003374
add eax, 2
add esi, 2
test cl, cl
jne 0x1000334c
xor eax, eax
jmp 0x10003379
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1000342e
lea eax, [esp + 0x28]
push 0xff
push eax
push 0x1000e410
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0xc]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareSohu_RDRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x100033e2
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x11c]
mov dword fs:[0], ecx
add esp, 0x128
ret
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x1c]
push str.p4pipc
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x11c]
mov dword fs:[0], ecx
add esp, 0x128
ret
mov esi, 0x1000e3ec
mov eax, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x1000345d
test cl, cl
je 0x10003459
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x1000345d
add eax, 2
add esi, 2
test cl, cl
jne 0x10003435
xor eax, eax
jmp 0x10003462
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10003414
push eax
lea eax, [esp + 0x10]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareSohu_RDRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x100034aa
mov ecx, dword [esp + 0x128]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret
mov ecx, dword [esp + 0xc]
push str.p4pipc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x10003414
mov ecx, dword [0x1000ecb8]
push str.Logger
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [0x1000ecb8]
mov dword [0x1000ecb4], eax
push str.ThreadManager
mov eax, dword [ecx]
call dword [eax + 8]
push 0
push 1
lea ecx, [esp + 0x14]
push 5
push ecx
push 0x7d0
lea ecx, [esp + 0x30]
mov dword [0x1000ecb0], eax
call fcn.10008fc0
push str.P4PIPC
push 1
mov dword [esp + 0x138], 0
call fcn.100032b0
mov edx, dword [esp + 0x14]
add esp, 8
push edx
push 0x1000e3ac
push 1
call fcn.100032b0
mov ecx, dword [0x1000ecf4]
add esp, 0xc
test ecx, ecx
jne 0x100035ce
push 0x14
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
test esi, esi
mov byte [esp + 0x130], 1
je 0x10003576
mov eax, dword [str.SoftwareSohu_RDDownload]
lea ecx, [esp + 0x13]
push ecx
push eax
lea ecx, [esi + 4]
mov dword [esi], 0x80000002
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
jmp 0x10003578
xor esi, esi
test esi, esi
setne bl
mov byte [esp + 0x14], bl
mov dword [esp + 0x18], esi
mov ecx, dword [0x1000ecf4]
mov byte [esp + 0x130], 2
cmp ecx, esi
je 0x100035b3
mov al, byte [0x1000ecf0]
test al, al
je 0x100035ab
test ecx, ecx
je 0x100035ab
push 1
call fcn.100037a0
mov byte [0x1000ecf0], bl
jmp 0x100035be
test bl, bl
je 0x100035be
mov byte [0x1000ecf0], 1
mov ecx, esi
mov byte [esp + 0x130], 0
mov dword [0x1000ecf4], ecx
mov edx, dword [esp + 0xc]
push edx
push str.IPCPort
call fcn.10008a10
push 0x1000e390
push 1
call fcn.100032b0
add esp, 8
lea ecx, [esp + 0x1c]
call fcn.10009150
push 0x1000e378
push 1
mov esi, eax
call fcn.100032b0
push 0xc
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0xc
test eax, eax
je 0x1000362b
test esi, esi
setne cl
mov byte [eax + 4], cl
mov dword [eax + 8], esi
mov ecx, eax
mov dword [eax], 0x1000b268
call fcn.10003070
jmp 0x100035dd
xor eax, eax
mov ecx, eax
call fcn.10003070
jmp 0x100035dd