Function at 0x4bb8b0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x20c
xor edx, edx
push ebp
push esi
push edi
mov edi, dword [esp + 0x21c]
mov cl, byte [edi]
cmp cl, 0x5c
je 0x4bb8de
lea esi, [esp + 0x18]
mov eax, edi
sub esi, edi
mov byte [esi + eax], cl
mov cl, byte [eax + 1]
inc edx
inc eax
cmp cl, 0x5c
jne 0x4bb8d1
mov byte [esp + edx + 0x18], 0
inc edx
add edx, edi
xor ecx, ecx
mov al, byte [edx]
test al, al
je 0x4bb8fd
inc edx
mov byte [esp + ecx + 0x118], al
inc ecx
mov al, byte [edx]
test al, al
jne 0x4bb8ee
mov byte [esp + ecx + 0x118], 0
mov dword [esp + 0x10], 0xffffffff
mov esi, str.HKEY_CURRENT_USER
lea eax, [esp + 0x18]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4bb93a
test cl, cl
je 0x4bb936
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4bb93a
add eax, 2
add esi, 2
test cl, cl
jne 0x4bb916
xor eax, eax
jmp 0x4bb93f
sbb eax, eax
sbb eax, 0xffffffff
mov ebp, dword [esp + 0x224]
test eax, eax
jne 0x4bb9c6
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0xc30c0c
lea edx, [esp + 0x130]
push 0
push edx
push closesocket
mov dword [esp + 0x34], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4bbde0
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x10]
push ebp
push 1
push eax
mov eax, dword [esp + 0x230]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4bb9c6
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
or ax, 0xffff
pop ebp
add esp, 0x20c
ret
mov esi, str.HKEY_CLASSES_ROOT
lea eax, [esp + 0x18]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4bb9f3
test cl, cl
je 0x4bb9ef
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4bb9f3
add eax, 2
add esi, 2
test cl, cl
jne 0x4bb9cf
xor eax, eax
jmp 0x4bb9f8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4bba78
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0xc30c0c
lea edx, [esp + 0x130]
push 0
push edx
push closesocket
mov dword [esp + 0x34], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4bbde0
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x10]
push ebp
push 1
push eax
mov eax, dword [esp + 0x230]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4bba78
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
or ax, 0xffff
pop ebp
add esp, 0x20c
ret
mov esi, str.HKEY_LOCAL_MACHINE
lea eax, [esp + 0x18]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4bbaa5
test cl, cl
je 0x4bbaa1
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4bbaa5
add eax, 2
add esi, 2
test cl, cl
jne 0x4bba81
xor eax, eax
jmp 0x4bbaaa
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4bbb2a
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0xc30c0c
lea edx, [esp + 0x130]
push 0
push edx
push closesocket
mov dword [esp + 0x34], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4bbde0
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x10]
push ebp
push 1
push eax
mov eax, dword [esp + 0x230]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4bbb2a
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
or ax, 0xffff
pop ebp
add esp, 0x20c
ret
mov esi, str.HKEY_LOCAL_MACHINE
lea eax, [esp + 0x18]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4bbb57
test cl, cl
je 0x4bbb53
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4bbb57
add eax, 2
add esi, 2
test cl, cl
jne 0x4bbb33
xor eax, eax
jmp 0x4bbb5c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4bbbdc
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0xc30c0c
lea edx, [esp + 0x130]
push 0
push edx
push closesocket
mov dword [esp + 0x34], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4bbde0
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x10]
push ebp
push 1
push eax
mov eax, dword [esp + 0x230]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4bbbdc
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
or ax, 0xffff
pop ebp
add esp, 0x20c
ret
mov esi, str.HKEY_USERS
lea eax, [esp + 0x18]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4bbc09
test cl, cl
je 0x4bbc05
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4bbc09
add eax, 2
add esi, 2
test cl, cl
jne 0x4bbbe5
xor eax, eax
jmp 0x4bbc0e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4bbc8e
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0xc30c0c
lea edx, [esp + 0x130]
push 0
push edx
push reloc.WS2_32.dll_closesocket
mov dword [esp + 0x34], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4bbde0
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x10]
push ebp
push 1
push eax
mov eax, dword [esp + 0x230]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4bbc8e
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
or ax, 0xffff
pop ebp
add esp, 0x20c
ret
mov esi, str.HKEY_CURRENT_CONFIG
lea eax, [esp + 0x18]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4bbcbb
test cl, cl
je 0x4bbcb7
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4bbcbb
add eax, 2
add esi, 2
test cl, cl
jne 0x4bbc97
xor eax, eax
jmp 0x4bbcc0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4bbd40
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0xc30c0c
lea edx, [esp + 0x130]
push 0
push edx
push htons
mov dword [esp + 0x34], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4bbde0
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x10]
push ebp
push 1
push eax
mov eax, dword [esp + 0x230]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4bbd40
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
or ax, 0xffff
pop ebp
add esp, 0x20c
ret
mov esi, str.HKEY_DYN_DATA
lea eax, [esp + 0x18]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4bbd6d
test cl, cl
je 0x4bbd69
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4bbd6d
add eax, 2
add esi, 2
test cl, cl
jne 0x4bbd49
xor eax, eax
jmp 0x4bbd72
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4bbdee
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0xc30c0c
lea edx, [esp + 0x130]
push 0
push edx
push htons
mov dword [esp + 0x34], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4bbde0
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x10]
push ebp
push 1
push eax
mov eax, dword [esp + 0x230]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4bbdee
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
or ax, 0xffff
pop ebp
add esp, 0x20c
ret
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, word [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 0x20c
ret