Function at 0x10078ab0
Capabilities:
Encode data using xor
Hash data using fnv
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1013f62d
push eax
mov dword fs:[0], esp
sub esp, 0x250
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x10], 0
je 0x10078c3d
push 0x208
lea eax, [ebp - 0x258]
mov dword [ebp + 0xc], 0
push 0
push eax
mov dword [ebp + 8], 0
mov dword [ebp - 0x28], 1
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x10078b14
mov edi, dword [edi]
push edi
push str.___s
lea eax, [ebp - 0x258]
push 0x104
push eax
call fcn.10070390
add esp, 0x10
lea eax, [ebp + 0xc]
push eax
push str.systemCurrentControlSetServices
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x10078b83
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jle 0x10078b56
push eax
call esi
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x10078c1e
push eax
call esi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xbf4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10078b8d
mov eax, dword [esi]
lea ecx, [ebp + 8]
push ecx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x10078b46
lea ecx, [ebp - 0x258]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10078bb0
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x258]
push eax
push 1
push 0
push str.ImagePath
push dword [ebp + 8]
call edi
test eax, eax
jne 0x10078b46
push 4
lea eax, [ebp - 0x28]
push eax
push 4
push 0
push str.Type
push dword [ebp + 8]
call edi
mov ecx, dword [ebp + 8]
mov ebx, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ecx, ecx
jle 0x10078c10
push ecx
call edi
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x10078c1a
push eax
call edi
test ebx, ebx
je 0x10078c3d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xbf4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 0x10]
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 0x34
jb 0x10078ea6
cmp dword [esi + 0x14], 8
jb 0x10078c58
mov esi, dword [esi]
push ecx
push esi
push 0x34
push 0x101971a8
push ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x4c]
call fcn.1006ece0
mov dword [ebp - 4], 0
call fcn.10063ca0
cmp dword [ebp - 0x38], 8
lea ecx, [ebp - 0x24]
mov esi, eax
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x4c]
mov dword [ebp + 8], esi
cmovae eax, dword [ebp - 0x4c]
push 0x14
push 0x10197214
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call fcn.100485f0
mov byte [ebp - 4], 1
call fcn.1007a8b0
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp - 0x10], 0x10
lea esi, [ebp - 0x24]
mov edi, dword [ebp - 0x24]
mov edx, 0x811c9dc5
mov ebx, dword [ebp - 0x14]
cmovae esi, edi
xor ecx, ecx
test ebx, ebx
je 0x10078cf1
nop
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x10078ce0
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x24]
push edx
push eax
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.10064540
mov eax, dword [eax + 4]
test eax, eax
je 0x10078d2e
cmp eax, dword [esi + 4]
je 0x10078d2e
mov ebx, dword [eax + 0x20]
lea eax, [esi + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push eax
call esi
test ebx, ebx
je 0x10078d3a
push dword [ebp + 0xc]
lea eax, [ebp - 0x34]
push eax
call ebx
jmp 0x10078d3a
lea eax, [esi + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push eax
call esi
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x10078d71
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x10078d67
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10078e81
push ecx
push edi
call fcn.1013b151
add esp, 8
call fcn.10063ca0
push 0xc
mov ebx, eax
mov dword [ebp - 0x24], 0
push 0x1019728c
lea ecx, [ebp - 0x24]
mov dword [ebp + 8], ebx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call fcn.100485f0
mov byte [ebp - 4], 2
call fcn.1007a8b0
lea eax, [ebx + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp - 0x10], 0x10
lea ebx, [ebp - 0x24]
mov edi, dword [ebp - 0x24]
mov edx, 0x811c9dc5
cmovae ebx, edi
xor ecx, ecx
cmp dword [ebp - 0x14], ecx
jbe 0x10078de2
nop dword [eax + eax]
movzx eax, byte [ecx + ebx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, dword [ebp - 0x14]
jb 0x10078dd0
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x24]
push edx
push eax
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
call fcn.10064540
mov eax, dword [eax + 4]
test eax, eax
je 0x10078e1b
cmp eax, dword [ebx + 4]
je 0x10078e1b
mov ebx, dword [eax + 0x20]
mov eax, dword [ebp + 8]
add eax, 0x20
push eax
call esi
test ebx, ebx
je 0x10078e21
lea eax, [ebp - 0x34]
push eax
call ebx
mov esi, eax
jmp 0x10078e26
lea eax, [ebx + 0x20]
push eax
call esi
mov esi, 0xc0000138
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x10078e55
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x10078e4b
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10078e81
push ecx
push edi
call fcn.1013b151
add esp, 8
mov ecx, dword [ebp - 0x38]
cmp ecx, 8
jb 0x10078e91
mov edx, dword [ebp - 0x4c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10078e87
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10078e87
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1013b151
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.100474b0
int3