joyce8/EMBER2024-capa huggingface dataset:
Function at 0x12ff1a20
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov eax, ebp
mov esi, dword [esp + 0x1c]
cdq
and edx, 7
push edi
add eax, edx
mov edi, ecx
mov ebx, eax
sar ebx, 3
test esi, esi
je 0x12ff1b42
test ebx, ebx
jl 0x12ff1b42
jle 0x12ff1b14
mov eax, dword [esp + 0x1c]
push 1
push eax
call fcn.12ff1df0
test ebx, ebx
jle 0x12ff1b14
add esi, 6
mov ebp, ebx
xor eax, eax
xor ecx, ecx
mov al, byte [esi - 6]
mov cl, byte [esi - 5]
shl eax, 0x18
shl ecx, 0x10
xor edx, edx
or eax, ecx
mov dh, byte [esi - 4]
xor ecx, ecx
mov cl, byte [esi - 3]
or eax, edx
or eax, ecx
xor edx, edx
mov dl, byte [esi - 1]
mov dword [esp + 0x10], eax
xor eax, eax
xor ecx, ecx
mov al, byte [esi - 2]
mov ch, byte [esi]
shl eax, 0x18
shl edx, 0x10
or eax, edx
xor edx, edx
mov dl, byte [esi + 1]
or eax, ecx
or eax, edx
mov ecx, edi
mov dword [esp + 0x14], eax
lea eax, [edi + 4]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.12ff2190
mov eax, dword [esp + 0x10]
add esi, 8
mov ecx, eax
mov edx, eax
shr ecx, 0x18
mov byte [esi - 0xe], cl
mov ecx, eax
shr edx, 0x10
shr ecx, 8
mov byte [esi - 0xd], dl
mov byte [esi - 0xc], cl
mov byte [esi - 0xb], al
mov eax, dword [esp + 0x14]
mov edx, eax
mov ecx, eax
shr edx, 0x18
mov byte [esi - 0xa], dl
mov edx, eax
shr ecx, 0x10
shr edx, 8
mov byte [esi - 9], cl
mov byte [esi - 8], dl
mov byte [esi - 7], al
dec ebp
jne 0x12ff1a6d
mov esi, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
shl ebx, 3
sub ebp, ebx
test ebp, ebp
lea eax, [ebx + esi]
jle 0x12ff1b33
mov ecx, dword [esp + 0x1c]
sub ecx, eax
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec ebp
jne 0x12ff1b26
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0xc
Function at 0x12ff1df0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0x178
push ebx
push ebp
mov dword [esp + 0xc], ecx
push esi
mov esi, dword [esp + 0x188]
push edi
xor ecx, ecx
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x1307ea14]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x50], al
inc ecx
cmp ecx, 0x38
jl 0x12ff1e07
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x190], 1
je 0x12ff1e48
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x8c]
lea ebp, [esp + eax*4 + 0x88]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x1307eabc]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x12ff1e7a
mov bl, byte [esp + ecx + 0x50]
jmp 0x12ff1e7e
mov bl, byte [esp + ecx + 0x34]
mov byte [esp + eax + 0x18], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x12ff1e6f
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x12ff1e9c
mov bl, byte [esp + ecx + 0x50]
jmp 0x12ff1ea0
mov bl, byte [esp + ecx + 0x34]
mov byte [esp + eax + 0x18], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x12ff1e91
xor ecx, ecx
mov eax, 0x1307ea24
xor ebx, ebx
mov bl, byte [ecx + 0x1307eacc]
cmp byte [esp + ebx + 0x18], 0
je 0x12ff1ecb
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x1307eae4]
cmp byte [esp + ebx + 0x18], 0
je 0x12ff1ee2
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x12ff1eb2
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x12ff1e3b
lea esi, [esp + 0x88]
lea edi, [esp + 0x108]
mov dword [esp + 0x10], 0x10
mov edx, dword [esi + 4]
mov eax, esi
add esi, 4
mov ecx, edx
mov eax, dword [eax]
mov ebx, edx
shr ecx, 4
and ecx, 0xfc000
and ebx, 0xfc0
or ecx, ebx
mov ebx, eax
and ebx, 0xfc0
mov ebp, eax
shl ebx, 4
and ebp, 0xfc0000
add edi, 4
or ebx, ebp
add edi, 4
shr ecx, 6
shl ebx, 6
or ecx, ebx
add esi, 4
mov dword [edi - 8], ecx
mov ecx, eax
and ecx, 0x3f
and eax, 0x3f000
shl ecx, 4
or ecx, eax
mov eax, edx
shr eax, 4
shl ecx, 0xc
and eax, 0x3f00
and edx, 0x3f
or ecx, eax
mov eax, dword [esp + 0x10]
or ecx, edx
dec eax
mov dword [edi - 4], ecx
mov dword [esp + 0x10], eax
jne 0x12ff1f18
mov eax, dword [esp + 0x14]
lea edi, [eax + 4]
lea ecx, [eax + 0x84]
cmp edi, ecx
jae 0x12ff1fb7
mov edx, edi
sub ecx, edi
sub edx, eax
add ecx, 3
shr ecx, 2
lea esi, [esp + edx + 0x104]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x178
ret 8
Function at 0x12ff24c0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov edx, dword [esp + 8]
mov eax, dword [ecx + 0x400]
push esi
mov esi, dword [ecx + 0x404]
push edi
xor edi, edi
test edx, edx
jle 0x12ff2527
push ebx
push ebp
mov ebp, dword [esp + 0x14]
inc eax
and eax, 0xff
mov edx, dword [ecx + eax*4]
add esi, edx
and esi, 0xff
mov ebx, dword [ecx + esi*4]
mov dword [ecx + eax*4], ebx
add ebx, edx
and ebx, 0xff
mov dword [ecx + esi*4], edx
mov dl, byte [ecx + ebx*4]
mov bl, byte [edi + ebp]
xor bl, dl
mov edx, dword [esp + 0x18]
mov byte [edi + ebp], bl
inc edi
cmp edi, edx
jl 0x12ff24de
pop ebp
pop ebx
mov dword [ecx + 0x404], esi
pop edi
mov dword [ecx + 0x400], eax
pop esi
ret 8
mov dword [ecx + 0x404], esi
pop edi
mov dword [ecx + 0x400], eax
pop esi
ret 8
Function at 0x12ff3660
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xa0
mov eax, dword [esp + 0xa8]
xor ecx, ecx
xor edx, edx
push ebx
mov ch, byte [eax]
mov dl, byte [eax + 2]
mov cl, byte [eax + 1]
push ebp
shl ecx, 8
or ecx, edx
xor edx, edx
mov dl, byte [eax + 3]
push esi
shl ecx, 8
or ecx, edx
xor edx, edx
mov dl, byte [eax + 6]
mov esi, ecx
xor ecx, ecx
push edi
mov ch, byte [eax + 4]
mov cl, byte [eax + 5]
shl ecx, 8
or ecx, edx
xor edx, edx
mov dl, byte [eax + 7]
shl ecx, 8
or ecx, edx
xor edx, edx
mov dl, byte [eax + 0xa]
mov edi, ecx
xor ecx, ecx
mov ch, byte [eax + 8]
mov cl, byte [eax + 9]
shl ecx, 8
or ecx, edx
xor edx, edx
mov dl, byte [eax + 0xb]
shl ecx, 8
or ecx, edx
xor edx, edx
mov dl, byte [eax + 0xe]
mov ebp, ecx
xor ecx, ecx
mov ch, byte [eax + 0xc]
mov cl, byte [eax + 0xd]
shl ecx, 8
or ecx, edx
xor edx, edx
mov dl, byte [eax + 0xf]
shl ecx, 8
or ecx, edx
mov edx, dword [0x1307f404]
mov eax, ecx
mov ecx, dword [0x1307f400]
xor ecx, esi
mov esi, dword [esp + 0xb4]
xor edx, edi
mov dword [esp + 0x20], ecx
mov ecx, dword [0x1307f408]
mov dword [esp + 0x24], edx
mov edx, dword [0x1307f40c]
xor ecx, ebp
xor edx, eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
xor ecx, ecx
mov eax, dword [ecx + 0x1307f410]
mov edx, dword [esp + ecx + 0x24]
mov ebp, dword [esp + ecx + 0x2c]
mov ebx, dword [esp + ecx + 0x28]
xor eax, edx
add ecx, 4
xor eax, ebp
xor eax, ebx
mov edx, eax
shr edx, 0x18
mov byte [esp + 0x10], dl
mov edx, eax
shr edx, 0x10
mov byte [esp + 0x11], dl
mov edx, eax
shr edx, 8
mov byte [esp + 0x12], dl
and eax, 0xff
mov edi, dword [esp + 0x11]
mov edx, dword [esp + 0x10]
mov al, byte [eax + 0x1307f300]
and edi, 0xff
and edx, 0xff
mov byte [esp + 0x1b], al
mov bl, byte [edi + 0x1307f300]
mov edi, dword [esp + 0x12]
mov dl, byte [edx + 0x1307f300]
and edi, 0xff
mov byte [esp + 0x19], bl
xor eax, eax
mov bl, byte [edi + 0x1307f300]
mov ah, dl
mov byte [esp + 0x1a], bl
mov edx, dword [esp + 0x19]
and edx, 0xff
or eax, edx
mov edx, dword [esp + 0x1a]
shl eax, 8
and edx, 0xff
or eax, edx
mov edx, dword [esp + 0x1b]
shl eax, 8
and edx, 0xff
or edx, eax
mov eax, edx
mov edi, edx
shr eax, 0x13
shl edi, 0xd
or eax, edi
mov edi, edx
mov ebx, edx
shl edi, 0x17
shr ebx, 9
or edi, ebx
mov ebx, dword [esp + ecx + 0x1c]
xor eax, edi
xor eax, ebx
xor eax, edx
cmp ecx, 0x80
mov dword [esp + ecx + 0x2c], eax
mov dword [ecx + esi - 4], eax
jb 0x12ff3721
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x12ff3ad0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x10
cmp eax, 1
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
push edi
jne 0x12ff3b69
test eax, eax
jle 0x12ff3bf8
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
add eax, 0xf
shr eax, 4
mov dword [esp + 0x2c], eax
mov ebp, esi
sub ecx, edi
mov eax, edi
sub ebp, edi
mov edx, 0x10
mov bl, byte [ecx + eax]
xor bl, byte [eax]
inc eax
dec edx
mov byte [eax + ebp - 1], bl
jne 0x12ff3b13
mov eax, dword [esp + 0x24]
push esi
add eax, 4
push esi
push eax
call fcn.12ff3890
mov ecx, dword [esp + 0x3c]
mov edx, esi
mov eax, ecx
add esp, 0xc
mov ebx, dword [edx]
add edi, 0x10
mov dword [eax], ebx
add esi, 0x10
mov ebx, dword [edx + 4]
mov dword [eax + 4], ebx
mov ebx, dword [edx + 8]
mov dword [eax + 8], ebx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x2c]
dec eax
mov dword [esp + 0x2c], eax
jne 0x12ff3b06
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
test eax, eax
jle 0x12ff3bf8
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
add eax, 0xf
add ecx, 4
shr eax, 4
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], eax
mov edx, edi
push esi
push edi
mov ebx, dword [edx]
mov eax, dword [edx + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [edx + 8]
push eax
mov dword [esp + 0x24], ecx
mov edx, dword [edx + 0xc]
mov dword [esp + 0x28], edx
call fcn.12ff3890
mov ecx, dword [esp + 0x3c]
add esp, 0xc
mov eax, esi
sub ecx, esi
mov ebp, 0x10
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec ebp
jne 0x12ff3bc3
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add edi, 0x10
mov dword [eax], ebx
add esi, 0x10
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x2c]
dec eax
mov dword [esp + 0x2c], eax
jne 0x12ff3b8e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x12ff3c00
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x14]
xor ecx, ecx
cmp dword [eax], edi
jae 0x12ff3c13
xor eax, eax
pop edi
ret
test edi, edi
jbe 0x12ff3c45
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x20]
push esi
sub ebx, ebp
mov eax, ecx
xor edx, edx
div dword [esp + 0x18]
mov eax, dword [esp + 0x14]
lea esi, [ecx + ebp]
mov dl, byte [edx + eax]
mov al, byte [ebx + esi]
xor dl, al
inc ecx
cmp ecx, edi
mov byte [esi], dl
jb 0x12ff3c24
pop esi
pop ebp
pop ebx
mov eax, dword [esp + 0x1c]
mov dword [eax], edi
mov eax, 1
pop edi
ret
Function at 0x12ff4240
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x13072708
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x1307f490
mov eax, dword [esi + 8]
mov dword [esp + 0x10], 7
cmp eax, 0xffffffff
je 0x12ff4281
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0xffffffff
lea ecx, [esi + 0x44]
call fcn.12f4bfa0
lea ecx, [esi + 0x34]
mov byte [esp + 0x10], 6
call fcn.12f4bfa0
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 5
call fcn.12f41f70
lea ecx, [esi + 0x2c]
mov byte [esp + 0x10], 4
call fcn.12f41f70
lea ecx, [esi + 0x28]
mov byte [esp + 0x10], 3
call fcn.12f41f70
lea ecx, [esi + 0x24]
mov byte [esp + 0x10], 2
call fcn.12f41f70
lea ecx, [esi + 0x20]
mov byte [esp + 0x10], 1
call fcn.12f41f70
lea ecx, [esi + 0x1c]
mov byte [esp + 0x10], 0
call fcn.12f41f70
lea ecx, [esi + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.12f41f70
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x12ff5a40
Capabilities:
Start service

Disassembly:
sub esp, 0x20
push edi
call fcn.12f9c530
test eax, eax
je 0x12ff5a5e
mov dword [0x131ca6b8], 0x32
xor eax, eax
pop edi
add esp, 0x20
ret
mov eax, dword [esp + 0x28]
xor edi, edi
cmp eax, edi
jne 0x12ff5a79
mov dword [0x131ca6b8], 0x57
xor eax, eax
pop edi
add esp, 0x20
ret
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push esi
push 2
push edi
push edi
mov dword [0x131ca6b8], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call ebp
mov esi, eax
cmp esi, edi
jne 0x12ff5aa8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
cmp esi, edi
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenServiceA]
je 0x12ff5aca
mov eax, dword [esp + 0x34]
push 0x10
push eax
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x12ff5b08
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
test edi, edi
je 0x12ff5b3f
jne 0x12ff5b08
test esi, esi
jne 0x12ff5aee
push 2
push esi
push esi
call ebp
mov esi, eax
test esi, esi
jne 0x12ff5aee
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
mov dword [esp + 0x14], eax
je 0x12ff5b08
mov ecx, dword [esp + 0x34]
push 0x10
push ecx
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x12ff5b08
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push edx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov ebp, eax
test ebp, ebp
jne 0x12ff5b5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
mov dword [0x131ca6b8], eax
jne 0x12ff5b48
mov dword [esp + 0x10], 1
mov ebp, dword [esp + 0x10]
jmp 0x12ff5b5f
mov eax, dword [0x131ca6b8]
mov ebp, dword [esp + 0x10]
test eax, eax
jne 0x12ff5b5f
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x12ff5b5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131ca6b8], eax
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x12ff5b6c
push edi
call ebx
test esi, esi
je 0x12ff5b73
push esi
call ebx
mov eax, ebp
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x20
ret
Function at 0x12ff5d80
Capabilities:
Query service status

Disassembly:
sub esp, 0x20
call fcn.12f9c530
test eax, eax
je 0x12ff5d9c
mov dword [0x131ca6b8], 0x32
xor eax, eax
add esp, 0x20
ret
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], ebp
push 1
rep stosd dword es:[edi], eax
push ebp
push ebp
mov dword [0x131ca6b8], ebp
mov dword [esp + 0x1c], ebp
xor ebx, ebx
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
cmp esi, ebp
jne 0x12ff5ddb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp esi, ebp
mov ebp, dword [esp + 0x34]
je 0x12ff5df9
push 4
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x12ff5e33
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test edi, edi
je 0x12ff5e4f
jne 0x12ff5e33
test esi, esi
jne 0x12ff5e1d
push 1
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x12ff5e1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x12ff5e33
push 4
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x12ff5e33
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov ebp, eax
test ebp, ebp
jne 0x12ff5e6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x12ff5e53
mov ebp, dword [esp + 0x10]
test ebx, ebx
je 0x12ff5e5f
mov dword [0x131ca6b8], ebx
jmp 0x12ff5e76
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x131ca6b8], eax
jmp 0x12ff5e76
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x18]
mov dword [ecx], edx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x12ff5e83
push edi
call ebx
test esi, esi
je 0x12ff5e8a
push esi
call ebx
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x12ff6750
Capabilities:
Modify service

Disassembly:
push 0xffffffffffffffff
push 0x1307285b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x620
push esi
push edi
lea ecx, [esp + 0x10]
xor esi, esi
call fcn.12f4bf90
mov eax, dword [esp + 0x658]
mov dword [esp + 0x630], esi
test eax, eax
je 0x12ff6794
push eax
lea ecx, [esp + 0x14]
call fcn.12f4c1e0
mov eax, dword [esp + 0x65c]
test eax, eax
je 0x12ff67a9
push eax
lea ecx, [esp + 0x14]
call fcn.12f4c1e0
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x229]
mov byte [esp + 0x228], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x14]
mov dword [esp + 8], 0x400
test eax, eax
jle 0x12ff6828
lea eax, [esp + 8]
lea ecx, [esp + 0x228]
push eax
push ecx
lea edx, [esp + 0x18]
push 0
push edx
call fcn.12f53b00
add esp, 0x10
test eax, eax
jne 0x12ff6821
lea ecx, [esp + 0x10]
mov dword [esp + 0x630], 0xffffffff
call fcn.12f4bfa0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x620]
mov dword fs:[0], ecx
add esp, 0x62c
ret
lea esi, [esp + 0x228]
mov eax, dword [esp + 0x648]
mov ecx, dword [esp + 0x664]
mov edx, dword [esp + 0x660]
push ebx
push ebp
push eax
mov eax, dword [esp + 0x660]
push ecx
mov ecx, dword [esp + 0x660]
push edx
mov edx, dword [esp + 0x658]
push esi
mov esi, dword [esp + 0x650]
push 0
push eax
mov eax, dword [esp + 0x660]
push ecx
mov ecx, dword [esp + 0x660]
push edx
push eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
mov ebp, eax
test ebp, ebp
je 0x12ff68e1
mov ebx, dword [esp + 0x654]
test ebx, ebx
je 0x12ff68e1
test esi, esi
je 0x12ff68e1
call fcn.130026f0
mov eax, dword [0x131cab80]
test eax, eax
je 0x12ff68e1
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2a]
mov word [esp + 0x28], 0
rep stosd dword es:[edi], eax
push 0
lea edx, [esp + 0x2c]
push 0x104
push edx
push 0xffffffffffffffff
push ebx
stosw word es:[edi], ax
call fcn.12f51100
add esp, 0x14
lea ecx, [esp + 0x14]
lea eax, [esp + 0x28]
push ecx
push 1
push esi
mov dword [esp + 0x20], eax
call dword [0x131cab80]
lea ecx, [esp + 0x18]
mov dword [esp + 0x638], 0xffffffff
call fcn.12f4bfa0
mov ecx, dword [esp + 0x630]
mov eax, ebp
pop ebp
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x62c
ret
Function at 0x12ff7130
Capabilities:
Set registry value

Disassembly:
push edi
mov edi, dword [esp + 0x10]
cmp edi, 0xffffffff
je 0x12ff714d
cmp edi, 4
jbe 0x12ff714d
mov dword [0x131ca6bc], 0x57
xor eax, eax
pop edi
ret
mov eax, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x10]
cmp eax, 0xffffffff
mov ebx, dword [esi]
je 0x12ff716c
push eax
mov eax, dword [str.Type]
push eax
mov ecx, esi
call fcn.12f58020
cmp edi, 0xffffffff
je 0x12ff7180
mov ecx, dword [str.Start]
push edi
push ecx
mov ecx, esi
call fcn.12f58020
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x12ff7198
mov edx, dword [str.ErrorControl]
push eax
push edx
mov ecx, esi
call fcn.12f58020
mov eax, dword [esp + 0x20]
test eax, eax
je 0x12ff71ae
push eax
mov eax, dword [str.DisplayName]
push eax
mov ecx, esi
call fcn.12f581d0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x12ff71c5
mov ecx, dword [str.Description]
push eax
push ecx
mov ecx, esi
call fcn.12f581d0
mov edx, dword [esp + 0x28]
test edx, edx
je 0x12ff71eb
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [str.ImagePath]
push 2
push eax
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x12ff7201
push eax
mov eax, dword [str.Group]
push eax
mov ecx, esi
call fcn.12f581d0
mov eax, dword [esp + 0x30]
test eax, eax
je 0x12ff7218
mov ecx, dword [str.DependOnGroup]
push eax
push ecx
mov ecx, esi
call fcn.12f58660
mov eax, dword [esp + 0x34]
test eax, eax
je 0x12ff722f
mov edx, dword [str.DependOnService]
push eax
push edx
mov ecx, esi
call fcn.12f58660
pop esi
pop ebx
mov eax, 1
pop edi
ret
Function at 0x12ff81d0
Capabilities:
Persist via run registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x13072aa0
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x12ff8203
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
cmp byte [esi], 0
jne 0x12ff821a
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
lea ecx, [esp + 4]
call fcn.12f56d80
mov eax, dword [str.SoftwareMicrosoftWindowsCurrentVersionRunServices]
push 0x20019
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0
call fcn.12f56ef0
test eax, eax
je 0x12ff82c6
push 1
push esi
lea ecx, [esp + 0xc]
call fcn.12f593b0
test eax, eax
jne 0x12ff827b
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.12f56e70
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push edi
mov edi, dword [esp + 0x28]
test edi, edi
je 0x12ff82ae
lea ecx, [esp + 0x28]
push esi
push ecx
lea ecx, [esp + 0x10]
call fcn.12f57520
push eax
mov ecx, edi
mov byte [esp + 0x1c], 1
call fcn.12f420f0
lea ecx, [esp + 0x28]
mov byte [esp + 0x18], 0
call fcn.12f41f70
mov eax, dword [esp + 0x24]
pop edi
test eax, eax
je 0x12ff838d
mov dword [eax], 0x10
jmp 0x12ff838d
mov edx, dword [0x1307d248]
mov dword [esp + 0x1c], edx
mov eax, dword [str.SystemCurrentControlSetServicesVxD]
push esi
push eax
lea ecx, [esp + 0x24]
push 0x130c4bec
push ecx
mov byte [esp + 0x24], 2
call fcn.12f44dd0
mov edx, dword [esp + 0x2c]
add esp, 0x10
lea ecx, [esp + 4]
push 0x20019
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.12f56ef0
test eax, eax
jne 0x12ff833a
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], al
call fcn.12f41f70
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.12f56e70
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov esi, dword [esp + 0x24]
test esi, esi
je 0x12ff8371
mov eax, dword [str.StaticVxD]
lea ecx, [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0xc]
call fcn.12f57520
push eax
mov ecx, esi
mov byte [esp + 0x18], 3
call fcn.12f420f0
lea ecx, [esp + 0x24]
mov byte [esp + 0x14], 2
call fcn.12f41f70
mov eax, dword [esp + 0x20]
test eax, eax
je 0x12ff837f
mov dword [eax], 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], 0
call fcn.12f41f70
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.12f56e70
mov ecx, dword [esp + 0xc]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret