Function at 0x10057cd
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x548
mov eax, dword [0x100f05c]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x53c], eax
mov dword [ebp - 0x538], ecx
je 0x100580e
push dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x430]
push ecx
push eax
call fcn.01005206
test eax, eax
jne 0x1005815
xor eax, eax
jmp 0x1005bb5
push esi
push edi
lea eax, [ebp - 0x540]
push eax
mov edi, 0xf003f
push edi
push ebx
push 0x1001cb4
mov esi, 0x80000002
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
mov dword [ebp - 0x548], eax
je 0x1005894
cmp dword [ebp - 0x538], ebx
je 0x10059ab
push ebx
push 0x100
lea ecx, [ebp - 0x114]
push ecx
push ebx
push eax
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea eax, [ebp - 0x114]
push eax
push 0x1001cb4
push dword [ebp - 0x548]
push 0x1001c88
push dword [ebp + 0x10]
push dword [ebp - 0x538]
call fcn.01007522
add esp, 0x18
jmp 0x10059ab
push ebx
lea eax, [ebp - 0x544]
push eax
push ebx
push edi
push ebx
push ebx
push ebx
mov edi, 0x1001c50
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
cmp esi, ebx
je 0x10058eb
cmp dword [ebp - 0x538], ebx
je 0x10059ab
push ebx
push 0x100
lea eax, [ebp - 0x114]
push eax
push ebx
push esi
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea eax, [ebp - 0x114]
push eax
push edi
push esi
push 0x1001c20
jmp 0x100587e
push 0xc
mov eax, 0x1001c14
push eax
push 1
push ebx
push eax
push dword [ebp - 0x540]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
cmp esi, ebx
je 0x100593f
cmp dword [ebp - 0x538], ebx
je 0x100599f
push ebx
push 0x100
lea eax, [ebp - 0x114]
push eax
push ebx
push esi
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea eax, [ebp - 0x114]
push eax
push esi
push 0x1001bec
jmp 0x100598e
push 0x104
lea eax, [ebp - 0x534]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10059b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x538], ebx
mov esi, eax
je 0x100599f
push ebx
push 0x100
lea eax, [ebp - 0x114]
push eax
push ebx
push esi
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea eax, [ebp - 0x114]
push eax
push esi
push 0x1001bc0
push dword [ebp + 0x10]
push dword [ebp - 0x538]
call fcn.01007522
add esp, 0x14
push dword [ebp - 0x540]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1005bb3
xor eax, eax
mov cl, byte [ebp + eax - 0x534]
mov byte [ebp + eax - 0x32c], cl
inc eax
cmp cl, bl
jne 0x10059b4
mov eax, dword [ebp - 0x53c]
cmp dword [eax + 0x10], ebx
je 0x10059e7
lea edi, [ebp - 0x32c]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x10059d9
mov esi, 0x1001bbc
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x53c]
cmp dword [eax + 0x14], ebx
je 0x1005a07
lea edi, [ebp - 0x32c]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x10059f9
mov esi, 0x1001bb8
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x53c]
mov eax, dword [eax + 0x18]
cmp eax, ebx
je 0x1005ac4
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.0100415a
lea edi, [ebp - 0x32c]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x1005a29
mov esi, 0x1001bb4
lea eax, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1005a3c
lea edi, [ebp - 0x32c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x1005a4c
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x32c]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x1005a6b
mov eax, dword [ebp - 0x53c]
mov eax, dword [eax + 0x1c]
mov esi, 0x1001bb0
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1005a86
lea edi, [ebp - 0x32c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x1005a96
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x32c]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x1005ab5
mov esi, 0x1001bac
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x32c]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x1005acb
mov esi, 0x1001ba0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x430]
movsb byte es:[edi], byte [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1005ae3
lea edi, [ebp - 0x32c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x1005af3
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x32c]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x1005b12
mov esi, 0x1001bac
lea eax, [ebp - 0x32c]
movsw word es:[edi], word [esi]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1005b2a
sub eax, esi
push eax
lea eax, [ebp - 0x32c]
push eax
push 1
push ebx
push 0x1001b7c
push dword [ebp - 0x544]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
cmp esi, ebx
je 0x1005b9e
cmp dword [ebp - 0x538], ebx
je 0x1005ba9
push ebx
push 0x100
lea eax, [ebp - 0x114]
push eax
push ebx
push esi
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea eax, [ebp - 0x114]
push eax
push esi
push 0x1001b50
push dword [ebp + 0x10]
push dword [ebp - 0x538]
call fcn.01007522
add esp, 0x14
jmp 0x1005ba9
push dword [ebp - 0x540]
call edi
xor ebx, ebx
inc ebx
push dword [ebp - 0x544]
call edi
mov eax, ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01006af2
leave
ret 0xc