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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x544
mov eax, dword [0x1005004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x430]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x540], eax
mov dword [ebp - 0x544], 0x215
test ebx, ebx
jne 0x100327b
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010041df
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0x10]
push ecx
push edi
push 0x104
lea edx, [ebp - 0x534]
push edx
push ebx
call fcn.01003070
test eax, eax
je 0x1003267
push esi
lea eax, [ebp - 0x538]
push eax
push 0xf003f
push 0
push 0x10016e8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
je 0x1003315
test edi, edi
je 0x10035a1
push 0
push 0x100
lea ecx, [ebp - 0x114]
push ecx
push 0
push esi
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x114]
push edx
push 0x10016e8
push esi
push 0x10016bc
push eax
push edi
call fcn.01001d80
add esp, 0x18
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010041df
mov esp, ebp
pop ebp
ret 0xc
push 0
lea ecx, [ebp - 0x53c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x1001684
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
test esi, esi
je 0x10033a4
test edi, edi
je 0x1003382
push 0
push 0x100
lea edx, [ebp - 0x114]
push edx
push 0
push esi
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x114]
push eax
push 0x1001684
push esi
push 0x1001654
push ecx
push edi
call fcn.01001d80
add esp, 0x18
mov edx, dword [ebp - 0x538]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010041df
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0x538]
push 0xc
push 0x1001648
push 1
push 0
push 0x1001648
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test esi, esi
je 0x10033ff
test edi, edi
je 0x1003589
push 0
push 0x100
lea ecx, [ebp - 0x114]
push ecx
push 0
push esi
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea edx, [ebp - 0x114]
push edx
push esi
push 0x1001620
jmp 0x100357c
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1003457
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test edi, edi
je 0x1003589
push 0
push 0x100
lea ecx, [ebp - 0x114]
push ecx
push 0
push esi
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea edx, [ebp - 0x114]
push edx
push esi
push 0x10015f4
jmp 0x100357c
cmp dword [ebx + 0x14], 0
mov ecx, 0x10015f0
jne 0x1003467
mov ecx, 0x10011b6
cmp dword [ebx + 0x10], 0
mov eax, 0x10015ec
jne 0x1003477
mov eax, 0x10011b6
push ecx
push eax
lea eax, [ebp - 0x218]
push eax
push 0x10015e0
push 0
lea ecx, [ebp - 0x544]
push ecx
lea edx, [ebp - 0x540]
push edx
lea eax, [ebp - 0x430]
push 0x215
push eax
call fcn.01002b00
mov eax, dword [ebx + 0x18]
add esp, 0x24
test eax, eax
je 0x10034ef
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.01002010
mov edx, dword [ebx + 0x1c]
push edx
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x544]
push 0x10015d0
push 0
lea ecx, [ebp - 0x544]
push ecx
mov ecx, dword [ebp - 0x540]
lea edx, [ebp - 0x540]
push edx
push eax
push ecx
call fcn.01002b00
add esp, 0x20
mov eax, dword [ebp - 0x544]
mov ecx, dword [ebp - 0x540]
lea edx, [ebp - 0x534]
push edx
push 0x10015c0
push eax
push ecx
call fcn.01001d80
lea eax, [ebp - 0x430]
add esp, 0x10
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003520
sub eax, edx
push eax
mov eax, dword [ebp - 0x53c]
lea edx, [ebp - 0x430]
push edx
push 1
push 0
push 0x100159c
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test esi, esi
je 0x10035b6
test edi, edi
je 0x1003589
push 0
push 0x100
lea ecx, [ebp - 0x114]
push ecx
push 0
push esi
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea edx, [ebp - 0x114]
push edx
push esi
push 0x1001570
mov eax, dword [ebp + 0x10]
push eax
push edi
call fcn.01001d80
add esp, 0x14
mov ecx, dword [ebp - 0x53c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [ebp - 0x538]
push edx
call esi
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010041df
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0x538]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [ebp - 0x53c]
push ecx
call esi
mov ecx, dword [ebp - 4]
pop esi
pop edi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.010041df
mov esp, ebp
pop ebp
ret 0xc