Function at 0x1004d740
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100d00b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x206
lea eax, [ebp - 0x20a]
mov dword [ebp - 0x210], ecx
push 0
push eax
mov ebx, edx
call fcn.1006fa30
movups xmm0, xmmword [str.SYSTEMCurrentControlSetServices_]
mov eax, dword [0x100c3120]
add esp, 0xc
mov edx, dword [ebp - 0x210]
mov esi, edx
movups xmmword [ebp - 0x20c], xmm0
mov dword [ebp - 0x1cc], eax
mov ecx, esi
movups xmm0, xmmword [0x100c30f0]
mov ax, word [0x100c3124]
mov word [ebp - 0x1c8], ax
movups xmmword [ebp - 0x1fc], xmm0
movups xmm0, xmmword [0x100c3100]
movups xmmword [ebp - 0x1ec], xmm0
movups xmm0, xmmword [0x100c3110]
movups xmmword [ebp - 0x1dc], xmm0
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1004d7d0
push edi
lea edi, [ebp - 0x20c]
sub esi, ecx
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x1004d7f0
mov ecx, esi
shr ecx, 2
mov dword [ebp - 0x214], esi
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x214]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x20c]
add ecx, 0xfffffffe
nop
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x1004d820
mov eax, dword [str.Instances_]
mov esi, edx
mov dword [ecx], eax
mov eax, dword [0x100c312c]
mov dword [ecx + 4], eax
mov eax, dword [0x100c3130]
mov dword [ecx + 8], eax
mov eax, dword [0x100c3134]
mov dword [ecx + 0xc], eax
mov eax, dword [0x100c3138]
mov dword [ecx + 0x10], eax
mov eax, dword [0x100c313c]
mov dword [ecx + 0x14], eax
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1004d860
lea edi, [ebp - 0x20c]
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x1004d876
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x20c]
add ecx, 0xfffffffe
pop edi
nop word [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x1004d8a0
mov eax, dword [str._Instance]
mov dword [ecx], eax
mov eax, dword [0x100c3144]
mov dword [ecx + 4], eax
mov eax, dword [0x100c3148]
mov dword [ecx + 8], eax
mov eax, dword [0x100c314c]
mov dword [ecx + 0xc], eax
mov eax, dword [0x100c3150]
mov dword [ecx + 0x10], eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push 0xf003f
push 0
push 0x100c30d8
push 0
lea eax, [ebp - 0x20c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1004d919
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006c2b1
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20c]
sub ecx, ebx
movzx eax, word [ebx]
lea ebx, [ebx + 2]
mov word [ecx + ebx - 2], ax
test ax, ax
jne 0x1004d921
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004d940
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push str.Altitude
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1004d907
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.1006c2b1
mov esp, ebp
pop ebp
ret