Function at 0x1003d13
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1008028]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push esi
call fcn.01003aea
xor ebx, ebx
cmp eax, ebx
jne 0x100401f
push esi
call fcn.0100229c
cmp eax, ebx
jne 0x100401f
push edi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push dword [esi + 0x30]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
cmp edi, ebx
jne 0x100401c
mov eax, dword [esi + 0x34]
cmp eax, ebx
je 0x100401c
lea ecx, [ebp - 0x28]
push ecx
push ebx
lea ecx, [ebp - 0x30]
push ecx
push ebx
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x1003dc2
push dword [esi + 0x1c]
push dword [esi + 0x34]
push 0x1001700
call fcn.010025e9
test eax, eax
jne 0x1003dc2
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x100401e
mov eax, dword [esi + 8]
cmp eax, 2
jbe 0x1003fe5
cmp eax, 3
je 0x1003f2b
jbe 0x100400e
cmp eax, 5
jbe 0x1003ef8
cmp eax, 7
jne 0x100400e
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [esi + 0x40]
push eax
mov dword [ebp - 0x18], ebx
call edi
push dword [esi + 0x3c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], ebx
call edi
mov dword [ebp - 0x28], eax
add eax, 2
push 2
push eax
call dword [sym.imp.msvcrt.dll_calloc]
mov ebx, eax
mov eax, dword [esi + 0x3c]
add esp, 0x10
test ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x24], eax
jne 0x1003e92
push 8
pop edi
jmp 0x100401c
lea eax, [esi + 0x40]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.msvcrt.dll_wcsstr]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x1003e68
and dword [ebp - 0x14], 0
cmp eax, dword [ebp - 0x24]
je 0x1003e9c
push eax
call edi
cmp eax, dword [ebp - 0x20]
pop ecx
jne 0x1003e61
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0xc]
and word [eax], 0
push dword [ebp - 0x24]
push ebx
call dword [sym.imp.msvcrt.dll_wcscat]
push ebx
call edi
lea ebx, [ebx + eax*2 + 2]
mov eax, dword [ebp - 0xc]
add esp, 0xc
test eax, eax
je 0x1003ea3
cmp dword [ebp - 0x14], 0
jne 0x1003ea3
mov ecx, dword [ebp - 0x20]
lea eax, [eax + ecx*2]
mov dword [ebp - 0x24], eax
push eax
call edi
test eax, eax
pop ecx
ja 0x1003e32
jmp 0x1003ea3
mov dword [ebp - 0x18], 1
lea eax, [esi + 0x40]
push eax
push dword [esi + 0x3c]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x1003ee9
mov ebx, dword [ebp - 0x10]
add ebx, 4
sub ebx, dword [ebp - 0x10]
sar ebx, 1
shl ebx, 1
push ebx
push dword [ebp - 0x10]
push dword [esi + 8]
push 0
push dword [esi + 0x34]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x1004013
inc ebx
inc ebx
cmp dword [ebp - 0x18], 0
je 0x1003ebc
mov edi, 0xc352
jmp 0x1003eda
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x3c]
mov dword [ebp - 0x18], ebx
call dword [sym.imp.msvcrt.dll_wcstoul]
push dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
call dword [sym.imp.msvcrt.dll_wcslen]
add esp, 0x10
test eax, eax
ja 0x100400e
push 4
lea eax, [ebp - 0x20]
push eax
jmp 0x1003ffa
push dword [esi + 0x3c]
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
call edi
mov ecx, eax
mov dword [ebp - 0x28], eax
shr ecx, 1
and eax, 1
add ecx, eax
push 1
push ecx
call dword [sym.imp.msvcrt.dll_calloc]
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x1003e2a
mov word [ebp - 8], bx
mov dword [ebp - 0x10], ebx
mov ebx, dword [esi + 0x3c]
jmp 0x1003fb5
mov ax, word [ebx]
inc ebx
inc ebx
push ebx
mov word [ebp - 0xc], ax
call edi
test eax, eax
pop ecx
jbe 0x1003f81
mov ax, word [ebx]
inc ebx
mov word [ebp - 0xa], ax
inc ebx
jmp 0x1003f87
mov word [ebp - 0xa], 0x30
push 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.msvcrt.dll_wcstol]
push dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
call edi
add esp, 0x10
test eax, eax
ja 0x1003fde
mov edx, dword [ebp - 0x10]
mov al, byte [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
inc dword [ebp - 0x10]
mov byte [ecx + edx], al
push ebx
call edi
test eax, eax
pop ecx
ja 0x1003f65
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [esi + 8]
push 0
push dword [esi + 0x34]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
push dword [ebp - 0x14]
jmp 0x1003edd
mov edi, 0xc352
jmp 0x1003fd6
push dword [esi + 0x3c]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [esi + 0x3c]
mov dword [ebp - 0x28], eax
push dword [esi + 8]
push ebx
push dword [esi + 0x34]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
jmp 0x1004013
mov edi, 0xc352
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.01006c87
leave
ret 0xc