joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100e9ef0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101ed278
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
mov eax, dword [0x1028106c]
push ebx
push esi
xor esi, esi
push edi
cmp eax, esi
mov dword [ebp - 0x10], esp
jne 0x100ea0db
push 1
push 0x10281078
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push esi
push esi
push 1
push 0x10281078
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea ecx, [ebp - 0x34]
mov dword [0x10281090], 0xc
mov dword [0x10281098], esi
mov dword [0x10281094], 0x10281078
call fcn.100631e0
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], esi
call fcn.101d3302
mov eax, dword [0x102810cc]
mov byte [ebp - 4], 1
cmp eax, esi
mov dword [ebp - 0x24], str.S_1_1_0
mov dword [ebp - 0x20], str.S_1_15_2_1
mov dword [ebp - 0x1c], str.S_1_15_2_2
mov ebx, 3
jne 0x100e9ff1
mov ecx, 0x44
xor eax, eax
lea edi, [ebp - 0x158]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x15c], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x14c]
mov ecx, 2
cmp eax, ecx
jne 0x100e9fe7
mov eax, dword [ebp - 0x158]
cmp eax, 6
ja 0x100e9fdd
jne 0x100e9fe7
cmp dword [ebp - 0x154], ecx
jb 0x100e9fe7
mov dword [0x102810d0], 1
mov dword [0x102810cc], 1
cmp dword [0x102810d0], esi
jne 0x100e9ffe
mov ebx, 1
cmp ebx, esi
jle 0x100ea045
lea esi, [ebp - 0x24]
mov edi, ebx
mov ecx, dword [esi]
push ecx
lea ecx, [ebp - 0x14]
call fcn.1005bc60
mov edx, dword [ebp - 0x30]
push eax
push edx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.10063940
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.1005c4d0
mov eax, dword [ebp - 0x40]
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x48]
call fcn.101d3526
add esi, 4
dec edi
jne 0x100ea007
xor esi, esi
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x34]
push ecx
push edx
push 0x102810b0
mov byte [ebp - 4], 3
call fcn.100e9ab0
add esp, 0xc
cmp eax, esi
jne 0x100ea099
lea eax, [ebp - 0x18]
push 0x10220480
push eax
mov dword [ebp - 0x18], esi
call fcn.100455e6
push 1
push 0x102810b0
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
push 0x102810b0
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov eax, 0x100ea097
ret
mov eax, 1
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], eax
mov dword [0x102810a0], 0xc
mov dword [0x102810a8], esi
mov dword [0x102810a4], 0x102810b0
mov dword [0x1028106c], eax
mov byte [ebp - 4], 0
call fcn.101d3335
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.100631f0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100ea880
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101ed300
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
xor ebx, ebx
push eax
lea ecx, [esi + 0x20]
mov dword [ebp - 0x14], esi
mov dword [esi + 0xc], esi
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x24], ebx
call fcn.101d4b02
mov ecx, dword [ebp + 0xc]
lea edi, [esi + 0x28]
push ecx
mov ecx, edi
call fcn.101d4b02
mov ecx, edi
call fcn.101d23f4
mov ecx, edi
call fcn.101d2303
mov edx, dword [ebp + 8]
push ebx
push edx
call fcn.10179ed4
add esp, 8
test eax, eax
je 0x100ea914
mov dword [esi + 0x2c], ebx
mov dword [esi + 8], ebx
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 4]
push ebx
push ebx
push eax
mov dword [esi + 0x2c], 1
mov dword [ebp - 4], ebx
call fcn.10170780
mov ecx, dword [esi + 4]
call fcn.101709d0
mov ecx, dword [esi + 4]
push ebx
mov dword [esi + 8], eax
call fcn.10171100
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x100ea9a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101ed310
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x10], esp
xor eax, eax
push 0x10279924
lea ecx, [esi + 0x20]
mov dword [ebp - 0x14], esi
mov dword [esi + 0xc], esi
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x24], edi
call fcn.101d4b02
mov eax, dword [ebp + 0xc]
lea ebx, [esi + 0x28]
push eax
mov ecx, ebx
call fcn.101d4b02
mov ecx, ebx
call fcn.101d23f4
mov ecx, ebx
call fcn.101d2303
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x30]
test eax, eax
jne 0x100eaa32
mov dword [esi + 0x2c], eax
mov dword [esi + 8], eax
mov eax, 1
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 + 4]
push 0
push edi
mov dword [esi + 0x2c], 1
mov dword [ebp - 4], 0
call fcn.101707e0
mov ecx, dword [esi + 4]
call fcn.101709d0
mov ecx, dword [esi + 4]
push 0
mov dword [esi + 8], eax
call fcn.10171100
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100f3420
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
mov esi, 0x8000
push edi
cmp eax, esi
mov dword [esp + 0x14], esi
jbe 0x100f343e
mov dword [esp + 0x14], eax
mov esi, eax
push esi
call fcn.101d5034
mov ecx, esi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
mov ebp, dword [esp + 0x24]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
mov dword [esp + 0x10], ebx
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x24]
push 0
push 0
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
jne 0x100f347d
xor ebx, ebx
jmp 0x100f349a
lea eax, [esp + 0x24]
push 0
push eax
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100f3496
or ebx, 0xffffffff
jmp 0x100f349a
mov ebx, dword [esp + 0x24]
push 0
push 0
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x100f34ed
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x24]
push 0
push ecx
push eax
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100f34d2
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
cmp ecx, eax
je 0x100f34e9
mov ecx, dword [esp + 0x10]
push ecx
call fcn.101d505d
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x2c]
cmp ebx, esi
jae 0x100f3512
test ebx, ebx
je 0x100f35e6
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x2c]
push 0
push edx
push ebx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x100f35e6
lea ecx, [ebx + edi]
add edi, eax
push esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], edi
call fcn.101d5034
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esp + 0x24], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x100f3546
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
cmp ecx, eax
jg 0x100f3585
push 0
push 0
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
je 0x100f3585
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x28]
push 0
push eax
push esi
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100f357f
or esi, 0xffffffff
jmp 0x100f3587
mov esi, dword [esp + 0x28]
jmp 0x100f3587
xor esi, esi
mov edx, dword [esp + 0x2c]
push 0
push 0
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test ebx, ebx
je 0x100f35af
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push 0
push eax
push ebx
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
add edx, ebx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x20]
add edi, esi
mov dword [esp + 0x10], edx
test esi, esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], eax
mov ebx, esi
jg 0x100f3542
push eax
call fcn.101d505d
add esp, 4
mov eax, dword [esp + 0x10]
push eax
call fcn.101d505d
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x100f3600
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
push 0
push esi
call edi
cmp eax, 0xffffffff
jne 0x100f3623
or ebx, eax
jmp 0x100f3625
mov ebx, eax
push 2
push 0
push 0
push esi
call edi
cmp eax, 0xffffffff
mov dword [esp + 0x1c], 0xffffffff
je 0x100f363f
mov dword [esp + 0x1c], eax
push 0
push ebx
push esi
call fcn.100f3940
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
sub eax, ebp
sub ecx, ebp
add esp, 0xc
cmp ecx, eax
mov dword [esp + 0x20], ecx
jl 0x100f3667
mov dword [esp + 0x20], eax
push 0x8000
call fcn.101d5034
mov ebx, eax
add esp, 4
mov ecx, 0x2000
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x20]
push 0
push 0
lea ecx, [eax + ebp]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea edx, [esp + 0x24]
push 0
push edx
push 0x8000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100f36b1
or eax, 0xffffffff
jmp 0x100f36ed
mov edi, dword [esp + 0x24]
mov eax, edi
test edi, edi
mov dword [esp + 0x14], eax
jle 0x100f36ed
push 0
push 0
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test edi, edi
je 0x100f36e9
lea eax, [esp + 0x10]
push 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100f36f8
cmp dword [esp + 0x10], edi
jne 0x100f36f8
mov eax, dword [esp + 0x14]
add ebp, eax
cmp eax, 0x8000
jne 0x100f370b
jmp 0x100f3681
push ebx
call fcn.101d505d
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push 0
sub eax, ecx
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call fcn.101d505d
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x100f4890
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101edcaf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x101ff094]
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 8], eax
mov dword [esp + 0x28], 1
mov dword [esp + 0xc], eax
mov eax, dword [esi + 8]
mov byte [esp + 0x28], 2
cmp eax, edi
jle 0x100f49b0
push ebx
push ebp
mov bl, 4
mov eax, dword [esi + 4]
mov ecx, dword [eax + edi*8]
mov edx, dword [eax + edi*8 + 4]
lea eax, [eax + edi*8]
cmp ecx, edx
ja 0x100f49a2
jne 0x100f491a
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.101cec60
add esp, 8
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 3
call fcn.1005c680
mov byte [esp + 0x30], 2
lea ecx, [esp + 0x18]
jmp 0x100f4976
mov eax, dword [eax + 4]
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.101cec60
mov ebp, eax
mov edx, dword [esi + 4]
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], bl
mov eax, dword [edx + edi*8]
push eax
push ecx
call fcn.101cec60
add esp, 0x10
mov edx, dword [ebp]
mov eax, dword [eax]
push edx
push eax
lea ecx, [esp + 0x1c]
push str._s__s
push ecx
mov byte [esp + 0x40], 5
call fcn.1005f4e0
add esp, 0x10
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], bl
call fcn.1005c4d0
mov byte [esp + 0x30], 2
lea ecx, [esp + 0x20]
call fcn.1005c4d0
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
je 0x100f4994
push 0x1025b524
lea ecx, [esp + 0x14]
call fcn.1005d110
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
call fcn.1005d170
mov eax, dword [esi + 8]
inc edi
cmp edi, eax
jl 0x100f48db
pop ebp
pop ebx
mov esi, dword [esp + 0x30]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.1005ba50
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 1
call fcn.1005c4d0
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call fcn.1005c4d0
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x1015f8d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x101f77c5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov edx, dword [esp + 0x18]
push ebx
push esi
mov esi, dword [esp + 0x1c]
lea eax, [edx + edx*2]
push edi
mov edi, esi
lea ecx, [eax + eax*4]
xor eax, eax
shl ecx, 3
mov ebx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
dec edx
test eax, eax
je 0x1015f9c4
inc edx
push ebp
mov dword [esp + 0x28], edx
mov dword [esp + 0x10], esi
test esi, esi
mov dword [esp + 0x1c], 0
je 0x1015f9a5
mov ecx, dword [0x101ff094]
mov dword [esi], ecx
mov edx, dword [0x101ff094]
lea edi, [esi + 4]
mov dword [edi], edx
lea ebp, [esi + 8]
mov byte [esp + 0x1c], 2
mov ecx, ebp
call fcn.100f3c30
lea ebx, [esi + 0x3c]
mov byte [esp + 0x1c], 3
mov ecx, ebx
call fcn.100f3c30
mov eax, dword [0x101ff094]
mov dword [esi + 0x74], eax
push 0x10279924
mov ecx, esi
mov byte [esp + 0x20], 5
call fcn.1005c7b0
push 0x10279924
mov ecx, edi
call fcn.1005c7b0
mov ecx, ebp
call fcn.100f3ed0
mov ecx, ebx
call fcn.100f3ed0
push 0x10279924
lea ecx, [esi + 0x74]
mov dword [esi + 0x70], 0
call fcn.1005c7b0
mov eax, dword [esp + 0x28]
add esi, 0x78
dec eax
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], eax
jne 0x1015f91d
pop ebp
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x1015f9e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x101f7818
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov edx, dword [esp + 0x18]
push ebx
mov ecx, edx
push esi
mov esi, dword [esp + 0x1c]
push edi
shl ecx, 4
add ecx, edx
xor eax, eax
shl ecx, 3
mov ebx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
dec edx
test eax, eax
je 0x1015fae6
inc edx
push ebp
mov dword [esp + 0x28], edx
mov dword [esp + 0x10], esi
test esi, esi
mov dword [esp + 0x1c], 0
je 0x1015fac4
mov ecx, dword [0x101ff094]
mov dword [esi], ecx
mov edx, dword [0x101ff094]
lea edi, [esi + 4]
mov dword [edi], edx
lea ebp, [esi + 8]
mov byte [esp + 0x1c], 2
mov ecx, ebp
call fcn.100f3c30
lea ebx, [esi + 0x3c]
mov byte [esp + 0x1c], 3
mov ecx, ebx
call fcn.100f3c30
mov eax, dword [0x101ff094]
mov dword [esi + 0x80], eax
push 0x10279924
mov ecx, esi
mov byte [esp + 0x20], 5
call fcn.1005c7b0
push 0x10279924
mov ecx, edi
call fcn.1005c7b0
mov ecx, ebp
call fcn.100f3ed0
mov ecx, ebx
call fcn.100f3ed0
xor eax, eax
push 0x10279924
mov dword [esi + 0x78], eax
lea ecx, [esi + 0x80]
mov dword [esi + 0x70], eax
mov dword [esi + 0x7c], eax
call fcn.1005c7b0
mov eax, dword [esp + 0x28]
add esi, 0x88
dec eax
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], eax
jne 0x1015fa2e
pop ebp
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x10165520
Capabilities:
Modify service

Disassembly:
push 0xffffffffffffffff
push 0x101f815b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa24
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
xor ebp, ebp
xor esi, esi
call fcn.101d2d8d
mov eax, dword [esp + 0xa60]
mov dword [esp + 0xa38], ebp
cmp eax, ebp
je 0x10165567
push eax
lea ecx, [esp + 0x18]
call fcn.101d2f69
mov eax, dword [esp + 0xa64]
cmp eax, ebp
je 0x1016557c
push eax
lea ecx, [esp + 0x18]
call fcn.101d2f69
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x232]
mov word [esp + 0x230], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], 0x400
cmp eax, ebp
jle 0x101655e7
lea eax, [esp + 0xc]
lea ecx, [esp + 0x230]
push eax
push ecx
lea edx, [esp + 0x1c]
push ebp
push edx
call fcn.10090cd0
add esp, 0x10
test eax, eax
jne 0x101655e0
lea ecx, [esp + 0x14]
mov dword [esp + 0xa38], 0xffffffff
call fcn.101d2dc0
xor eax, eax
jmp 0x101656b5
lea esi, [esp + 0x230]
mov eax, dword [esp + 0xa50]
mov ecx, dword [esp + 0xa6c]
mov edx, dword [esp + 0xa68]
push ebx
push eax
mov eax, dword [esp + 0xa64]
push ecx
mov ecx, dword [esp + 0xa64]
push edx
mov edx, dword [esp + 0xa5c]
push esi
mov esi, dword [esp + 0xa54]
push ebp
push eax
mov eax, dword [esp + 0xa64]
push ecx
mov ecx, dword [esp + 0xa64]
push edx
push eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov ebx, eax
cmp ebx, ebp
je 0x1016569e
mov ebp, dword [esp + 0xa58]
test ebp, ebp
je 0x1016569e
test esi, esi
je 0x1016569e
call fcn.100a3200
mov eax, dword [0x1027f62c]
test eax, eax
je 0x1016569e
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], 0
rep stosd dword es:[edi], eax
push 0
lea edx, [esp + 0x30]
push 0x104
push edx
push 0xffffffffffffffff
push ebp
stosw word es:[edi], ax
call fcn.1008e310
add esp, 0x14
lea ecx, [esp + 0x14]
lea eax, [esp + 0x2c]
push ecx
push 1
push esi
mov dword [esp + 0x20], eax
call dword [0x1027f62c]
lea ecx, [esp + 0x18]
mov dword [esp + 0xa3c], 0xffffffff
call fcn.101d2dc0
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0xa30]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0xa30
ret
Function at 0x10165ef0
Capabilities:
Set registry value

Disassembly:
push edi
mov edi, dword [esp + 0x10]
cmp edi, 0xffffffff
je 0x10165f0d
cmp edi, 4
jbe 0x10165f0d
mov dword [0x10281188], 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 0x10165f2c
push eax
mov eax, dword [str.Type]
push eax
mov ecx, esi
call fcn.1006c190
cmp edi, 0xffffffff
je 0x10165f40
mov ecx, dword [str.Start]
push edi
push ecx
mov ecx, esi
call fcn.1006c190
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x10165f58
mov edx, dword [str.ErrorControl]
push eax
push edx
mov ecx, esi
call fcn.1006c190
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10165f6e
push eax
mov eax, dword [str.DisplayName]
push eax
mov ecx, esi
call fcn.1006c340
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10165f85
mov ecx, dword [str.Description]
push eax
push ecx
mov ecx, esi
call fcn.1006c340
mov edi, dword [esp + 0x28]
test edi, edi
je 0x10165fad
push edi
call fcn.10042d96
add esp, 4
lea edx, [eax + eax + 2]
mov eax, dword [str.ImagePath]
push edx
push edi
push 2
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x10165fc4
mov ecx, dword [str.Group]
push eax
push ecx
mov ecx, esi
call fcn.1006c340
mov eax, dword [esp + 0x30]
test eax, eax
je 0x10165fdb
mov edx, dword [str.DependOnGroup]
push eax
push edx
mov ecx, esi
call fcn.1006c790
mov eax, dword [esp + 0x34]
test eax, eax
je 0x10165ff1
push eax
mov eax, dword [str.DependOnService]
push eax
mov ecx, esi
call fcn.1006c790
pop esi
pop ebx
mov eax, 1
pop edi
ret
Function at 0x10166f90
Capabilities:
Persist via run registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x101f83a0
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x10166fc3
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
cmp word [esi], 0
jne 0x10166fdb
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.1006af30
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.1006b050
test eax, eax
je 0x10167087
push 1
push esi
lea ecx, [esp + 0xc]
call fcn.1006d500
test eax, eax
jne 0x1016703c
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.1006afd0
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 0x1016706f
lea ecx, [esp + 0x28]
push esi
push ecx
lea ecx, [esp + 0x10]
call fcn.1006b680
push eax
mov ecx, edi
mov byte [esp + 0x1c], 1
call fcn.101d4ab2
lea ecx, [esp + 0x28]
mov byte [esp + 0x18], 0
call fcn.101d496b
mov eax, dword [esp + 0x24]
pop edi
test eax, eax
je 0x1016714e
mov dword [eax], 0x10
jmp 0x1016714e
mov edx, dword [0x102562e4]
mov dword [esp + 0x1c], edx
mov eax, dword [str.SystemCurrentControlSetServicesVxD]
push esi
push eax
lea ecx, [esp + 0x24]
push 0x1023b350
push ecx
mov byte [esp + 0x24], 2
call fcn.101d2145
mov edx, dword [esp + 0x2c]
add esp, 0x10
lea ecx, [esp + 4]
push 0x20019
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.1006b050
test eax, eax
jne 0x101670fb
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], al
call fcn.101d496b
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.1006afd0
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 0x10167132
mov eax, dword [str.StaticVxD]
lea ecx, [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0xc]
call fcn.1006b680
push eax
mov ecx, esi
mov byte [esp + 0x18], 3
call fcn.101d4ab2
lea ecx, [esp + 0x24]
mov byte [esp + 0x14], 2
call fcn.101d496b
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10167140
mov dword [eax], 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], 0
call fcn.101d496b
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.1006afd0
mov ecx, dword [esp + 0xc]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret