joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1012c720
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push ebx
test edx, edx
push esi
mov ebx, ecx
je 0x1012c756
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
lea esi, [esp + 0xc]
or eax, 0x20019
push esi
push eax
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x1012c758
mov esi, dword [ebx]
test esi, esi
je 0x1012c7e3
mov edx, dword [esp + 0x10]
push edi
lea eax, [esp + 0x14]
xor edi, edi
push eax
lea ecx, [esp + 0x14]
push edi
push ecx
push edi
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne case.0x1012c788.2
mov eax, dword [esp + 0x18]
cmp eax, 4
ja case.0x1012c788.2
jmp dword [eax*4 + 0x1012c7ec]
mov edi, 1
jmp case.0x1012c788.2
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, 4
sete al
mov edi, eax
jmp case.0x1012c788.2
mov eax, dword [esp + 0x10]
cmp eax, 1
je case.0x1012c788.0
cmp eax, 2
je case.0x1012c788.0
cmp eax, 6
je case.0x1012c788.0
cmp eax, 7
je case.0x1012c788.0
xor edi, edi
jmp case.0x1012c788.2
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp eax, 3
sete cl
mov edi, ecx
cmp esi, dword [ebx]
je 0x1012c7db
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x1012d270
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x1012d27b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp edi, 8
mov esi, edi
not eax
jb 0x1012d37d
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x10205b84]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x10205b84]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x10205b84]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x10205b84]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x10205b84]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x10205b84]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x10205b84]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x10205b84]
xor eax, edx
inc ecx
dec edi
jne 0x1012d296
test esi, esi
je 0x1012d39f
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x10205b84]
xor eax, edx
inc ecx
dec esi
jne 0x1012d381
pop edi
pop esi
not eax
pop ebx
ret
Function at 0x1012d3c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10205f88
push 0x100713f2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov ecx, dword [ebp + 8]
xor edx, edx
cmp ecx, edx
je 0x1012d452
mov dword [ebp - 4], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ecx
cmp word [ecx], 0x5a4d
jne 0x1012d44b
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x20], eax
cmp dword [eax], 0x4550
jne 0x1012d44b
cmp word [eax + 0x14], dx
je 0x1012d44b
cmp dword [ebp + 0xc], edx
je 0x1012d425
cmp word [eax + 4], 0x14c
jne 0x1012d44b
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1012d540
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
test ebx, ebx
push edi
je 0x1012d58d
mov edi, dword [esp + 0x18]
test edi, edi
je 0x1012d58d
mov eax, dword [ebx + 0x3c]
xor ecx, ecx
add eax, ebx
xor edx, edx
mov cx, word [eax + 0x14]
mov dx, word [eax + 6]
lea esi, [ecx + eax + 0x18]
xor ecx, ecx
test edx, edx
mov dword [esp + 0x14], esi
jbe 0x1012d58d
lea eax, [esi + 0x10]
mov esi, dword [eax - 4]
cmp edi, esi
jb 0x1012d585
mov ebp, dword [eax]
add ebp, esi
cmp edi, ebp
jb 0x1012d594
inc ecx
add eax, 0x28
cmp ecx, edx
jb 0x1012d576
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [esp + 0x14]
lea edx, [ecx + ecx*4]
mov esi, dword [eax + edx*8 + 0xc]
lea ecx, [eax + edx*8]
mov eax, dword [eax + edx*8 + 0x14]
sub eax, esi
add eax, ebx
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x1012de40
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10205f98
push 0x100713f2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x20]
push eax
mov edi, dword [ebp + 0x14]
push edi
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1012d6a0
add esp, 0x10
mov esi, eax
cmp esi, ebx
je 0x1012def3
mov eax, dword [esi]
push eax
mov eax, dword [ebp - 0x20]
push eax
call edi
add esp, 8
mov dword [ebp - 0x24], eax
mov edi, dword [ebp + 0x10]
sub edi, dword [ebp - 0x20]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], ebx
lea ecx, [ebp - 0x30]
push ecx
push 0x40
push 4
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call ebx
test eax, eax
je 0x1012deec
mov dword [esi], edi
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x30]
push eax
push 4
push esi
call ebx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1012fa30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x101ed3bc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea edi, [esi + 8]
mov ecx, edi
call sub.MFC42u.DLL_CString::CString_2
lea ebp, [esi + 0x18]
xor ebx, ebx
mov ecx, ebp
mov dword [esp + 0x1c], ebx
call sub.MFC42u.DLL_CString::CString_2
lea ecx, [esi + 0x20]
mov byte [esp + 0x1c], 1
call sub.MFC42u.DLL_CString::CString_2
lea ecx, [esi + 0x28]
mov byte [esp + 0x1c], 2
call fcn.10070fb4
mov eax, dword [esp + 0x24]
mov ecx, edi
push eax
mov byte [esp + 0x20], 3
mov dword [esi], 0x10205fb4
mov dword [esi + 4], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
mov word [esi + 0x24], 0xffff
call sub.MFC42u.DLL_CString::operator_1
mov eax, dword [esp + 0x28]
mov cx, word [esp + 0x30]
test eax, 0xffff0000
mov word [esi + 0x24], cx
mov dword [esi + 0x14], eax
je 0x1012fad5
push eax
mov ecx, ebp
call sub.MFC42u.DLL_CString::operator_1
mov edx, dword [ebp]
mov dword [esi + 0x14], edx
mov eax, dword [esp + 0x2c]
test eax, 0xffff0000
mov dword [esi + 0x1c], eax
je 0x1012faf3
lea edi, [esi + 0x20]
push eax
mov ecx, edi
call sub.MFC42u.DLL_CString::operator_1
mov eax, dword [edi]
mov dword [esi + 0x1c], eax
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10
Function at 0x10133b00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101ed930
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 0x102747b8
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 sub.MFC42u.DLL_CString::operator_1
mov eax, dword [ebp + 0xc]
lea ebx, [esi + 0x28]
push eax
mov ecx, ebx
call sub.MFC42u.DLL_CString::operator_1
mov ecx, ebx
call sub.MFC42u.DLL_CString::TrimLeft
mov ecx, ebx
call sub.MFC42u.DLL_CString::TrimRight_1
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x38]
test eax, eax
jne 0x10133b92
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.101ab7f0
mov ecx, dword [esi + 4]
call fcn.101ab9e0
mov ecx, dword [esi + 4]
push 0
mov dword [esi + 8], eax
call fcn.101ac110
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 0x1013c860
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 0x1013c883
or ebx, eax
jmp 0x1013c885
mov ebx, eax
push 2
push 0
push 0
push esi
call edi
cmp eax, 0xffffffff
mov dword [esp + 0x1c], 0xffffffff
je 0x1013c89f
mov dword [esp + 0x1c], eax
push 0
push ebx
push esi
call fcn.1013cba0
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 0x1013c8c7
mov dword [esp + 0x20], eax
push 0x8000
call sub.MFC42u.DLL_operatornew
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 0x1013c911
or eax, 0xffffffff
jmp 0x1013c94d
mov edi, dword [esp + 0x24]
mov eax, edi
test edi, edi
mov dword [esp + 0x14], eax
jle 0x1013c94d
push 0
push 0
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test edi, edi
je 0x1013c949
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 0x1013c958
cmp dword [esp + 0x10], edi
jne 0x1013c958
mov eax, dword [esp + 0x14]
add ebp, eax
cmp eax, 0x8000
jne 0x1013c96b
jmp 0x1013c8e1
push ebx
call sub.MFC42u.DLL_operatordelete
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 sub.MFC42u.DLL_operatordelete
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x10156ce6
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x101f0beb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 4]
call fcn.10077860
xor edi, edi
lea ecx, [esi + 8]
mov dword [esp + 0x14], edi
call fcn.10077860
mov ecx, dword [esp + 0xc]
mov eax, 0x102076a8
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x38], edi
mov dword [esi], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0xc], 2
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x101f0db1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov dword [esp + 8], edi
mov dword [esp + 0x18], 0
lea esi, [edi + 0x30]
mov dword [esp + 0xc], esi
mov dword [esi], 0x102076a8
mov eax, dword [esi + 4]
mov byte [esp + 0x18], 3
test eax, eax
je 0x1015706a
push eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov dword [esi], 0x101f9bdc
lea esi, [edi + 0x14]
mov dword [esp + 0xc], esi
mov dword [esi], 0x102076a8
mov eax, dword [esi + 4]
mov byte [esp + 0x18], 4
test eax, eax
je 0x10157092
push eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
lea ecx, [edi + 8]
mov dword [esi], 0x101f9bdc
mov byte [esp + 0x18], 0
call fcn.10078300
lea ecx, [edi + 4]
mov dword [esp + 0x18], 0xffffffff
call fcn.10078300
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x101612f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x101f1481
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov dword [esp + 8], edi
mov dword [esp + 0x18], 0
lea esi, [edi + 0x30]
mov dword [esp + 0xc], esi
mov dword [esi], 0x102076a8
mov eax, dword [esi + 4]
mov byte [esp + 0x18], 3
test eax, eax
je 0x1016133a
push eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov dword [esi], 0x101f9bdc
lea esi, [edi + 0x14]
mov dword [esp + 0xc], esi
mov dword [esi], 0x102076a8
mov eax, dword [esi + 4]
mov byte [esp + 0x18], 4
test eax, eax
je 0x10161362
push eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
lea ecx, [edi + 8]
mov dword [esi], 0x101f9bdc
mov byte [esp + 0x18], 0
call fcn.10078300
lea ecx, [edi + 4]
mov dword [esp + 0x18], 0xffffffff
call fcn.10078300
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x1017adf0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x101f380b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 4]
call fcn.10077860
xor edi, edi
lea ecx, [esi + 8]
mov dword [esp + 0x14], edi
call fcn.10077860
mov ecx, dword [esp + 0xc]
mov eax, 0x102076a8
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x38], edi
mov dword [esi], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0xc], 2
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x10199980
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x101f64c5
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 0x10199a80
inc edx
push ebp
mov dword [esp + 0x28], edx
mov dword [esp + 0x10], esi
test esi, esi
mov dword [esp + 0x1c], 0
je 0x10199a61
mov ecx, esi
call fcn.10077860
lea edi, [esi + 4]
mov byte [esp + 0x1c], 1
mov ecx, edi
call fcn.10077860
lea ebp, [esi + 8]
mov byte [esp + 0x1c], 2
mov ecx, ebp
call fcn.1013ce90
lea ebx, [esi + 0x3c]
mov byte [esp + 0x1c], 3
mov ecx, ebx
call fcn.1013ce90
lea ecx, [esi + 0x74]
mov byte [esp + 0x1c], 4
call fcn.10077860
push 0x102747b8
mov ecx, esi
mov byte [esp + 0x20], 5
call fcn.100785e0
push 0x102747b8
mov ecx, edi
call fcn.100785e0
mov ecx, ebp
call fcn.1013d140
mov ecx, ebx
call fcn.1013d140
push 0x102747b8
lea ecx, [esi + 0x74]
mov dword [esi + 0x70], 0
call fcn.100785e0
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 0x101999cd
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 0x10199aa0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x101f6518
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 0x10199bae
inc edx
push ebp
mov dword [esp + 0x28], edx
mov dword [esp + 0x10], esi
test esi, esi
mov dword [esp + 0x1c], 0
je 0x10199b8c
mov ecx, esi
call fcn.10077860
lea edi, [esi + 4]
mov byte [esp + 0x1c], 1
mov ecx, edi
call fcn.10077860
lea ebp, [esi + 8]
mov byte [esp + 0x1c], 2
mov ecx, ebp
call fcn.1013ce90
lea ebx, [esi + 0x3c]
mov byte [esp + 0x1c], 3
mov ecx, ebx
call fcn.1013ce90
lea ecx, [esi + 0x80]
mov byte [esp + 0x1c], 4
call fcn.10077860
push 0x102747b8
mov ecx, esi
mov byte [esp + 0x20], 5
call fcn.100785e0
push 0x102747b8
mov ecx, edi
call fcn.100785e0
mov ecx, ebp
call fcn.1013d140
mov ecx, ebx
call fcn.1013d140
xor eax, eax
push 0x102747b8
mov dword [esi + 0x78], eax
lea ecx, [esi + 0x80]
mov dword [esi + 0x70], eax
mov dword [esi + 0x7c], eax
call fcn.100785e0
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 0x10199aee
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 0x1019f040
Capabilities:
Modify service

Disassembly:
push 0xffffffffffffffff
push 0x101f6d7b
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.10071092
mov eax, dword [esp + 0xa60]
mov dword [esp + 0xa38], ebp
cmp eax, ebp
je 0x1019f087
push eax
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CStringArray::Append
mov eax, dword [esp + 0xa64]
cmp eax, ebp
je 0x1019f09c
push eax
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CStringArray::Append
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 0x1019f107
lea eax, [esp + 0xc]
lea ecx, [esp + 0x230]
push eax
push ecx
lea edx, [esp + 0x1c]
push ebp
push edx
call fcn.100c5620
add esp, 0x10
test eax, eax
jne 0x1019f100
lea ecx, [esp + 0x14]
mov dword [esp + 0xa38], 0xffffffff
call sub.MFC42u.DLL_CStringArray::CStringArray
xor eax, eax
jmp 0x1019f1d5
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 0x1019f1be
mov ebp, dword [esp + 0xa58]
test ebp, ebp
je 0x1019f1be
test esi, esi
je 0x1019f1be
call fcn.10125790
mov eax, dword [0x10284510]
test eax, eax
je 0x1019f1be
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.100c4210
add esp, 0x14
lea ecx, [esp + 0x14]
lea eax, [esp + 0x2c]
push ecx
push 1
push esi
mov dword [esp + 0x20], eax
call dword [0x10284510]
lea ecx, [esp + 0x18]
mov dword [esp + 0xa3c], 0xffffffff
call sub.MFC42u.DLL_CStringArray::CStringArray
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 0x1019fa10
Capabilities:
Set registry value

Disassembly:
push edi
mov edi, dword [esp + 0x10]
cmp edi, 0xffffffff
je 0x1019fa2d
cmp edi, 4
jbe 0x1019fa2d
mov dword [0x10284a34], 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 0x1019fa4c
push eax
mov eax, dword [str.Type]
push eax
mov ecx, esi
call fcn.10088270
cmp edi, 0xffffffff
je 0x1019fa60
mov ecx, dword [str.Start]
push edi
push ecx
mov ecx, esi
call fcn.10088270
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x1019fa78
mov edx, dword [str.ErrorControl]
push eax
push edx
mov ecx, esi
call fcn.10088270
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1019fa8e
push eax
mov eax, dword [str.DisplayName]
push eax
mov ecx, esi
call fcn.10088420
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1019faa5
mov ecx, dword [str.Description]
push eax
push ecx
mov ecx, esi
call fcn.10088420
mov edi, dword [esp + 0x28]
test edi, edi
je 0x1019face
push edi
call dword [sym.imp.MSVCRT.dll_wcslen]
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 0x1019fae5
mov ecx, dword [str.Group]
push eax
push ecx
mov ecx, esi
call fcn.10088420
mov eax, dword [esp + 0x30]
test eax, eax
je 0x1019fafc
mov edx, dword [str.DependOnGroup]
push eax
push edx
mov ecx, esi
call fcn.10088880
mov eax, dword [esp + 0x34]
test eax, eax
je 0x1019fb12
push eax
mov eax, dword [str.DependOnService]
push eax
mov ecx, esi
call fcn.10088880
pop esi
pop ebx
mov eax, 1
pop edi
ret