Function at 0x5b0cb0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [0x5b524c]
sub esp, 0x14
test eax, eax
push ebx
push ebp
push esi
push edi
jne 0x5b0d01
mov ax, word [0x5b8bf1]
test ax, ax
jl 0x5b0ceb
mov ecx, dword [0x5b8afc]
movsx eax, ax
shl eax, 6
test byte [eax + ecx + 0x28], 8
jne 0x5b0d01
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret
test byte [0x5b8adc], 8
jne 0x5b0d01
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret
mov ax, word [0x5b8c74]
cmp ax, 0x8005
jne 0x5b0d1a
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret
cmp ax, 0x8002
jne 0x5b0d36
cmp byte [0x5b8bf3], 5
je 0x5b0d36
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret
mov eax, dword [0x5b8df8]
test eax, eax
je 0x5b0d4c
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret
cmp word [0x5b5248], 0
jne 0x5b0d63
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret
cmp dword [0x5b8e0c], 2
jne 0x5b0d79
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret
push 0xbb80
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, eax
test ebp, ebp
jne 0x5b0d9b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, dword [0x5b8c6c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea edx, [esp + 0x14]
push edx
push 0x5b5258
push eax
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x5b0e20
mov edx, dword [0x5b8c6c]
lea ecx, [esp + 0x14]
push ecx
push 0x5b5258
push edx
call ebx
test eax, eax
je 0x5b0df8
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push ebp
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, dword [0x5b8c18]
push 0xa
push ebp
push eax
call fcn.005b2f78
mov ecx, dword [0x5b8c6c]
add esp, 0xc
push 0x14
push ebp
push 1
push 0x5b5258
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
cmp dword [0x5b8e0c], 1
jne 0x5b0e6b
test byte [0x5b8c14], 0xa
je 0x5b0e6b
mov ecx, dword [0x5b8c6c]
lea eax, [esp + 0x14]
push eax
push 0x5b5268
push ecx
call edi
test eax, eax
jne 0x5b0e66
mov edx, dword [esp + 0x14]
push edx
call esi
test byte [0x5b8c14], 0x20
jne 0x5b0e6b
call fcn.005b0a30
mov ecx, dword [0x5b8c4c]
mov edx, dword [0x5b8c6c]
lea eax, [esp + 0x14]
push eax
push ecx
push edx
call edi
test eax, eax
je 0x5b0ec1
mov ecx, dword [0x5b8c4c]
mov edx, dword [0x5b8c6c]
lea eax, [esp + 0x14]
push eax
push ecx
push edx
call ebx
test eax, eax
je 0x5b0ec1
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push ebp
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, dword [esp + 0x14]
push eax
call esi
test byte [0x5b8c14], 4
je 0x5b0f0f
mov al, byte [0x5b8bf3]
cmp al, 1
jne 0x5b0f4a
mov ecx, dword [0x5b8b60]
push 0x1010
xor esi, esi
push 0x5b8b7c
push ecx
push esi
mov word [0x5b8bdd], si
mov word [0x5b8bdf], si
mov dword [0x5b8dfc], esi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov word [0x5b8e10], si
mov edx, dword [0x5b8dfc]
mov ecx, 0x20
mov dword [0x5b8bf8], edx
mov esi, 0x5b8b80
mov edi, ebp
lea edx, [ebp + 0x80]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x10], 0x80
mov dword [esp + 0x1c], edx
mov ebx, 0x5b8da4
mov dword [esp + 0x20], 0x14
jmp 0x5b0fae
cmp al, 2
jne 0x5b0f0f
cmp word [0x5b8e10], 0
jne 0x5b0f0f
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push ebp
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov cl, byte [0x5b8e14]
mov eax, 0x70
test al, cl
jne 0x5b0f9d
mov edx, dword [0x5b8e14]
mov ecx, dword [0x5b8d80]
or edx, eax
xor ecx, eax
mov dword [0x5b8e14], edx
mov dword [0x5b8d80], ecx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret
mov edx, dword [esp + 0x1c]
mov edi, dword [ebx]
test edi, edi
je 0x5b0ff6
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x1c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x10]
not ecx
dec ecx
lea eax, [edx + ecx + 1]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], eax
call fcn.005b22b0
jmp 0x5b100b
mov byte [edx], 0
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
inc ecx
inc eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
add ebx, 4
dec eax
mov dword [esp + 0x20], eax
jne 0x5b0faa
push 0
push 0x5b8c7c
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll__llseek]
mov edx, dword [0x5b8c18]
mov esi, eax
push edi
xor esi, edx
call dword [sym.imp.KERNEL32.dll__lclose]
cmp dword [0x5b8e0c], 1
jne 0x5b10de
mov dword [ebp + 0x7c], esi
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push edx
mov edx, dword [esp + 0x18]
mov ecx, ebp
call fcn.005b2730
mov ecx, dword [0x5b8c4c]
mov edx, dword [0x5b8c6c]
mov eax, dword [esp + 0x10]
mov ebx, eax
push eax
mov eax, dword [esp + 0x1c]
push eax
push 1
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push ebp
mov dword [esp + 0x14], eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push eax
call edi
push ebp
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalFree]
push eax
call ebp
mov edx, ebx
mov ecx, dword [esp + 0x18]
call fcn.005b0250
test eax, eax
jne 0x5b114d
mov eax, dword [esp + 0x18]
push eax
call esi
push eax
call edi
mov ecx, dword [esp + 0x18]
push ecx
call esi
push eax
call ebp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
xor edi, edi
cmp word [0x5b8ad4], di
jne 0x5b1054
cmp word [0x5b8afa], di
je 0x5b1054
cmp dword [ebp + 0x7c], esi
je 0x5b1054
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push ebp
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov word [0x5b8e10], di
mov dword [0x5b5250], edi
push 0x1010
push 0x5b8b7c
push 0x5b53a4
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov edx, dword [esp + 0x18]
push edx
call esi
push eax
call edi
mov eax, dword [esp + 0x18]
push eax
call esi
push eax
call ebp
mov cl, byte [0x5b8e14]
mov eax, 0x70
test al, cl
mov dword [0x5b524c], 0
jne 0x5b1196
mov edx, dword [0x5b8e14]
mov ecx, dword [0x5b8d80]
or edx, eax
xor ecx, eax
mov dword [0x5b8e14], edx
mov dword [0x5b8d80], ecx
mov ecx, dword [esp + 0x10]
xor eax, eax
pop edi
pop esi
test ecx, ecx
pop ebp
pop ebx
sete al
add esp, 0x14
ret