Function at 0x457d4a
Capabilities:
Set registry value

Disassembly:
push 0x7c
mov eax, 0x60dddb
call fcn.0042d958
mov ebx, ecx
mov edi, dword [ebp + 8]
lea eax, [ebx + 0x80]
push eax
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x58], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x54], 1
and dword [ebp - 4], 0
call fcn.00459f1e
mov byte [ebp - 0x11], 0
test edi, edi
je 0x457fb1
mov eax, dword [ebx]
mov esi, dword [eax + 0x50]
lea eax, [ebp - 0x11]
push eax
push edi
push ebx
mov ecx, esi
call dword [0x62c6dc]
call esi
mov edi, eax
test edi, edi
js 0x457f9a
cmp byte [ebp - 0x11], 0
jne 0x457f9a
push 7
xor eax, eax
lea ecx, [ebp - 0x4c]
pop edi
push str.SoftwareMicrosoftOneDrive
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], edi
mov word [ebp - 0x4c], ax
call fcn.00414483
cmp dword [ebp - 0x38], 8
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x34]
cmovae eax, dword [ebp - 0x4c]
xor edx, edx
push edx
push ecx
push edx
push 0x2001f
push edx
push edx
push edx
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ecx, dword [ebp - 0x38]
mov esi, eax
cmp ecx, 8
jb 0x457e13
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x4c]
call fcn.004157b4
test esi, esi
jne 0x457f8c
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x34], esi
lea eax, [ebp - 0x4c]
push eax
mov ecx, ebx
call fcn.0045a071
cmp dword [eax + 0x14], 8
jb 0x457e3a
mov eax, dword [eax]
xor edx, edx
lea ecx, [ebp - 0x30]
push edx
push ecx
push edx
push 0x2001f
push 1
push edx
push edx
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea ecx, [ebp - 0x4c]
mov esi, eax
call fcn.00415bf1
test esi, esi
jne 0x457f8c
xor ecx, ecx
mov dword [ebp - 0x18], edi
xor eax, eax
mov dword [ebp - 0x1c], ecx
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
push ecx
push ecx
push dword [ebp - 0x30]
call fcn.0045a93b
mov edi, eax
test edi, edi
js 0x457f65
push dword [ebp - 0x50]
cmp dword [ebp - 0x1c], esi
jbe 0x457f37
lea ecx, [ebp - 0x88]
call fcn.00414308
mov esi, eax
and dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x4c]
xor eax, eax
mov byte [ebp - 4], 2
push 0x632c94
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
call fcn.00414483
push esi
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0045349f
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov byte [ebp - 4], 4
jb 0x457eef
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041461f
lea ecx, [ebp - 0x70]
call fcn.00415bf1
mov eax, dword [ebp - 0x38]
cmp eax, 8
jb 0x457f19
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x4c]
call fcn.004157b4
and dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x88]
xor eax, eax
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
call fcn.00415bf1
jmp 0x457f3f
lea ecx, [ebp - 0x2c]
call fcn.00414483
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], 8
lea ecx, [eax*2 + 2]
push ecx
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push 1
push 0
push 0
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x457f9a
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x2c]
call fcn.004157b4
jmp 0x457f9a
movzx edi, si
or edi, 0x80070000
test esi, esi
cmovle edi, esi
lea eax, [ebx + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
call fcn.0042d907
ret 4
push 0x80004005
call fcn.00415bd1
int3