Function at 0x10021a40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10041523
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x1005b034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
lea edi, [ebx + 0x18]
mov eax, str.ataISf8BGjRKl0AC26bOw
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.10002d20
mov eax, esi
push eax
lea ecx, [ebp - 0x80]
push ecx
mov dword [ebp - 4], ebx
call fcn.10002580
add esp, 8
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 0x10
jb 0x10021ab6
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, 0xf
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x50], eax
lea edi, [eax + 9]
mov eax, str.QNDk1fnu_0tF5WAdvXvbg
lea esi, [ebp - 0x64]
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
call fcn.10002d20
mov eax, esi
push eax
lea ecx, [ebp - 0x48]
push ecx
mov byte [ebp - 4], 3
call fcn.10002580
add esp, 8
mov esi, 0x10
mov byte [ebp - 4], 5
cmp dword [ebp - 0x50], esi
jb 0x10021b0b
mov edx, dword [ebp - 0x64]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
cmp dword [ebp - 0x6c], esi
jae 0x10021b23
lea eax, [ebp - 0x80]
push ebx
lea ecx, [ebp - 0xa0]
push ecx
push ebx
push 0x20006
push ebx
push ebx
push ebx
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10021b74
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], esi
jae 0x10021b4f
lea eax, [ebp - 0x48]
mov edx, dword [ebp - 0xa0]
push 0x2d
push str.u7XCMg3n1mQAWfXr6em5TeS2OruG_AHS8b1W4lCobQ
push 1
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0xa0]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x80]
call fcn.10002420
add esp, 4
mov edi, eax
lea esi, [ebp - 0x80]
mov byte [ebp - 4], 6
call fcn.10003280
mov byte [ebp - 4], 5
cmp dword [ebp - 0x18], 0x10
jb 0x10021ba8
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x48]
call fcn.10002420
add esp, 4
mov edi, eax
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 7
call fcn.10003280
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov edi, 0x10
cmp dword [ebp - 0x88], edi
jb 0x10021be7
mov ecx, dword [ebp - 0x9c]
push ecx
call esi
add esp, 4
cmp dword [ebp - 0x34], edi
jb 0x10021bf5
mov edx, dword [ebp - 0x48]
push edx
call esi
add esp, 4
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
cmp dword [ebp - 0x6c], edi
jb 0x10021c10
mov eax, dword [ebp - 0x80]
push eax
call esi
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003e6b0
mov esp, ebp
pop ebp
ret