Function at 0x10038bd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a8ab0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x102184e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x14]
xor esi, esi
push eax
mov ecx, str.112233445566
mov dword [ebp - 0x14], esi
call fcn.10001c90
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
mov eax, dword [edi + 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
add edi, 0x20
push edi
call fcn.1003e960
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
cmp dword [ecx - 0xc], esi
je 0x10038c61
mov eax, dword [ebp - 0x14]
xor edx, edx
cmp eax, esi
setne dl
cmp edx, esi
jne 0x10038c46
push 0x80004005
call fcn.10001300
push eax
push ecx
call fcn.100c1b5c
add esp, 8
cmp eax, esi
je 0x10038c61
mov edx, dword [ebp - 0x10]
cmp dword [edx - 0xc], 0xc
je 0x10038e06
lea eax, [ebp - 0x24]
push eax
mov ecx, str.gma.dll
call fcn.10001c90
mov byte [ebp - 4], 2
mov edx, dword [0x10218444]
mov eax, dword [edx + 0xc]
mov ecx, 0x10218444
call eax
add eax, 0x10
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, str.aptdir
mov byte [ebp - 4], 3
call fcn.10001c90
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x24]
push edx
lea esi, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.1003e3c0
mov byte [ebp - 4], 5
mov ecx, dword [eax]
mov esi, dword [ebp - 0x10]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x10038d07
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x10038cf9
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x10038cf9
call fcn.1001b030
mov dword [ebp + 0x10], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x10038cee
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp + 0x10]
add ecx, 0x10
mov dword [ebp - 0x10], ecx
jmp 0x10038d07
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.10002530
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10038d2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jne 0x10038dad
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.1001b030
mov edi, dword [ebp + 0xc]
add eax, 0x10
lea esi, [ebp - 0x24]
mov dword [edi], eax
call fcn.1003e360
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10038d71
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10038d97
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [edi + 0xc]
mov eax, dword [edi + 8]
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 8]
push 0
push edi
push 0
push edx
push 0
push 0
push 0
push eax
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [edi]
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push 0
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [edi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esi, [ebp - 0x24]
mov dword [edi], 0
mov byte [ebp - 4], 1
call fcn.1003e360
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.1001b030
mov esi, dword [ebp + 0xc]
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10038e3c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10038e62
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0xc