joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10013473
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
mov eax, dword [esi + 0x18]
imul eax, dword [esi + 0x1c]
cmp dword [ebp + 0xc], 0
cmovne edi, dword [ebp + 0xc]
and dword [ebp + 0xc], 0
test byte [esi + 4], 0x80
mov dword [esi + 8], eax
je 0x10013505
test edx, edx
jne 0x100134d0
mov eax, dword [esi + 0x1c]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1008beb9
mov ecx, dword [esi + 0x1c]
mov ebx, eax
add ecx, ecx
mov dword [ebp + 0xc], ebx
push ecx
push edi
push ebx
call fcn.1008eae0
add esp, 0x10
mov edx, ebx
mov edi, ebx
mov ecx, dword [esi + 0x1c]
jmp 0x100134e2
dec ecx
movzx eax, word [edx + ecx*2]
rol ax, 8
mov word [edx + ecx*2], ax
test ecx, ecx
jne 0x100134d5
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
mov eax, esp
xor edx, edx
push ecx
and dword [eax], ecx
mov eax, esp
lea ecx, [esi + 0x20]
mov dword [eax], str.endian_swap
call fcn.10011699
add esp, 0x10
push dword [esi]
push 1
push dword [esi + 8]
push edi
call fcn.100a00c7
add esp, 0x10
lea ebx, [eax - 1]
mov eax, dword [ebp + 0xc]
neg ebx
sbb bl, bl
inc bl
test eax, eax
je 0x1001352c
push eax
call fcn.1008bec2
pop ecx
test bl, bl
je 0x10013564
mov eax, dword [esi + 8]
add dword [esi + 0x14], eax
lea eax, [esi + 0x38]
cmp dword [eax + 0x14], 8
push 0xffffffffffffffff
push dword [esi + 0x1c]
push ecx
mov ecx, esp
jb 0x10013549
mov eax, dword [eax]
push ecx
mov dword [ecx], eax
mov eax, esp
push 0x18
lea ecx, [esi + 0x20]
pop edx
mov dword [eax], str.write
call fcn.10011699
add esp, 0x10
jmp 0x1001356b
mov ecx, esi
call fcn.10012a8e
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret 8
Function at 0x10016ea0
Capabilities:
Check if file exists
Create directory
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0x218
mov eax, 0x100be96f
call fcn.1008c851
mov esi, dword [0x10112bfc]
mov ebx, dword [ebp + 8]
and dword [ebp - 0x220], 0
push str.RT_RCDATA
push 0x6f
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x10016eda
xor eax, eax
jmp 0x10016fb0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x224], eax
test eax, eax
je 0x10016ed3
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x10016ed3
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10016ed3
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.1008f060
push 0x104
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.10096be9
add esp, 0x18
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10016f5d
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0
push 0x80
push 2
push 0
push 1
push 0x10000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10016f89
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x10016ed3
push 0
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x224]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x10016f7d
xor eax, eax
inc eax
call fcn.1008c7fb
ret
Function at 0x100173bc
Capabilities:
Create process on windows

Disassembly:
push 0x74
mov eax, 0x100bea8f
call fcn.1008c851
mov edi, ecx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x68]
push 0x40
push 0
push eax
call fcn.1008f060
add esp, 0xc
mov dword [ebp - 0x6c], 0x44
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0x81
xor eax, eax
lea ecx, [ebp - 0x28]
movups xmmword [ebp - 0x7c], xmm0
push 0x100d3f58
mov word [ebp - 0x3c], ax
call fcn.100028c0
and dword [ebp - 4], 0
lea esi, [edi + 4]
cmp dword [esi + 0x14], 8
jb 0x10017414
mov esi, dword [esi]
push esi
call fcn.10001a48
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.10005760
mov esi, 0x100d3f58
push esi
call fcn.10001a48
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.10005760
mov esi, 0x100d3ccc
push esi
call fcn.10001a48
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.10005760
push ebx
call fcn.10001a48
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.10005760
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test ebx, ebx
je 0x100174b5
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], ecx
lea ecx, [edi + 0x38]
push eax
call fcn.1001943d
cmp dword [ebp - 0x80], 0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x100174ae
push dword [ebp - 0x80]
call esi
push dword [ebp - 0x78]
call esi
jmp 0x100174cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.10018a1a
mov dword [eax + 0x20], esi
mov dword [eax + 0x15c], esi
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.10001f53
mov eax, ebx
call fcn.1008c7fb
ret 4
Function at 0x100175a7
Capabilities:
Check if file exists
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1010e070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x100176b8
mov ecx, edi
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x100175cf
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jg 0x100176b8
add esi, esi
mov eax, esi
call fcn.1008c9b0
mov ecx, esp
mov edx, edi
push 3
push esi
call fcn.10019409
mov esi, eax
test esi, esi
je 0x100176b8
push 0x20a
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.1008f060
add esp, 0xc
lea ecx, [ebp - 0x210]
call fcn.100177c2
push str.Txdlproxy.dat
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001765c
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x100f24a4
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], ebx
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.1009f2dc
add esp, 0xc
cmp dword [ebp - 0x214], ebx
je 0x100176b8
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001768a
push dword [ebp - 0x214]
sub ecx, edx
lea eax, [ecx + 1]
push eax
push 1
push esi
call fcn.100a00c7
push dword [ebp - 0x214]
call fcn.100a0195
xor eax, eax
add esp, 0x14
inc eax
jmp 0x100176ba
xor eax, eax
lea esp, [ebp - 0x220]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008bb47
mov esp, ebp
pop ebp
ret 4

Function at 0x100176d3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x1010e070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x20a
xor edi, edi
lea eax, [ebp - 0x210]
push edi
push eax
mov esi, ecx
call fcn.1008f060
add esp, 0xc
lea ecx, [ebp - 0x210]
call fcn.100177c2
push 0x100f24a8
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x40
lea eax, [ebp - 0x250]
push edi
push eax
call fcn.1008f060
add esp, 0xc
mov dword [ebp - 0x254], 0x44
lea eax, [ebp - 0x264]
mov dword [ebp - 0x228], 0x80
xorps xmm0, xmm0
movups xmmword [ebp - 0x264], xmm0
push eax
lea eax, [ebp - 0x254]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test edi, edi
je 0x100177b0
mov ecx, dword [ebp - 0x264]
lea eax, [ebp - 0x268]
mov dword [ebp - 0x268], ecx
lea ecx, [esi + 0x38]
push eax
call fcn.1001943d
cmp dword [ebp - 0x268], 0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x100177a8
push dword [ebp - 0x268]
call esi
push dword [ebp - 0x260]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.1008bb47
mov esp, ebp
pop ebp
ret
Function at 0x10017800
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1010e070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov edi, ecx
call fcn.10001a48
pop ecx
push eax
push esi
lea ecx, [edi + 0x3c]
call fcn.10001ddf
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
push edi
push 0x1001788d
push ebx
push ebx
mov dword [edi + 0x58], ebx
mov dword [ebp - 8], ebx
call fcn.100974fc
add esp, 0x18
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
lea ecx, [edi + 0x38]
push eax
call fcn.1001943d
cmp dword [ebp - 0xc], ebx
je 0x10017863
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [edi + 0x38], ebx
je 0x10017878
push 0xffffffffffffffff
push dword [edi + 0x54]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [edi + 0x58]
jmp 0x1001787a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008bb47
mov esp, ebp
pop ebp
ret 4

Function at 0x10017a7f
Capabilities:
Check if file exists
Delete file
Write file on windows

Disassembly:
push 0x14
mov eax, 0x100beabf
call fcn.1008c851
mov edi, ecx
lea edx, [ecx + 2]
xor ebx, ebx
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x10017a92
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x10017ab0
mov edi, ebx
jmp 0x10017ac7
add esi, esi
mov eax, esi
call fcn.1008c9b0
mov ecx, esp
mov edx, edi
push 3
push esi
call fcn.10019409
mov edi, eax
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10017acc
sub esi, ecx
mov edx, edi
push esi
call fcn.1001a355
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ebx
call fcn.1001b2bf
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x14]
mov edx, eax
mov dword [esp], str.TxdlService.dat
call fcn.10001474
pop ecx
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.100018f3
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10017b21
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x100f24a4
push dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
push eax
call fcn.1009f2dc
add esp, 0xc
cmp dword [ebp - 0x1c], 0
je 0x10017b68
push dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push 1
push 4
push eax
call fcn.100a00c7
push dword [ebp - 0x1c]
lea eax, [esi + 1]
push eax
push 1
push edi
call fcn.100a00c7
push dword [ebp - 0x1c]
call fcn.100a0195
add esp, 0x24
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.100018f3
xor eax, eax
inc eax
lea esp, [ebp - 0x30]
call fcn.1008c7fb
ret
Function at 0x10017b92
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x1010e070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov ebx, ecx
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10017bc0
xor eax, eax
jmp 0x10017c0c
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x10017bff
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.10096f99
pop ecx
pop ecx
xor ecx, ecx
inc ecx
test eax, eax
lea eax, [ebp - 0x230]
push eax
push edi
cmove esi, ecx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x10017bda
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008bb47
mov esp, ebp
pop ebp
ret
Function at 0x1001854d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x1010e070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x101127c0
mov edi, 0xd2
push esi
push str.EntryPoint__g_szCmdline_s
push edi
mov ebx, str.D:qci_workspace_root_workspaces__qci_pipeline_10566830_1QQPCDownloadTxdlPackageLauncher.cpp
push ebx
call fcn.1006b794
mov ecx, esi
add esp, 0x10
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x10018586
sub ecx, edx
sar ecx, 1
jne 0x100185a8
push str.EntryPoint__g_szCmdline_is_empty
push edi
push ebx
call fcn.1006b794
add esp, 0xc
jmp 0x10018600
push 0x40
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.1008f060
add esp, 0xc
mov dword [ebp - 0x48], 0x44
xor eax, eax
mov dword [ebp - 0x1c], 0x81
mov word [ebp - 0x18], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push 0x101127c0
push esi
movups xmmword [ebp - 0x58], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10018600
push dword [ebp - 0x58]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x54]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008bb47
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10018613
Capabilities:
Get common file path

Disassembly:
push 0x42c
mov eax, 0x100bec04
call fcn.1008c851
mov esi, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x438]
mov ebx, 0x100d3f58
push ebx
call fcn.100028c0
and dword [ebp - 4], 0
lea eax, [esi + 4]
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x438]
call fcn.10002aa5
push ebx
call fcn.10001a48
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x438]
call fcn.10005760
mov esi, 0x100d3ccc
push esi
call fcn.10001a48
pop ecx
push eax
push esi
lea ecx, [ebp - 0x438]
call fcn.10005760
push edi
call fcn.10001a48
pop ecx
push eax
push edi
lea ecx, [ebp - 0x438]
call fcn.10005760
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
mov edi, 0x208
cmovae eax, dword [ebp - 0x438]
push eax
push edi
push 0x101127c0
call fcn.100968db
push edi
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.1008f060
add esp, 0x18
lea eax, [ebp - 0x218]
mov esi, 0x104
push esi
push eax
push dword [0x10112bfc]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
push str._EntryPoint
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.1009715a
push edi
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.1008f060
add esp, 0x18
lea eax, [ebp - 0x420]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.rundll32.exe
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push ecx
push ebx
push ecx
lea edx, [ebp - 0x218]
lea ecx, [ebp - 0x420]
call fcn.1001b4a1
add esp, 0xc
lea ecx, [ebp - 0x438]
mov esi, eax
push ebx
push 1
call fcn.10001f53
mov eax, esi
call fcn.1008c7fb
ret 4

Function at 0x10018831
Capabilities:
Get session user name
Schedule task via itaskscheduler

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.1001883a
Function at 0x1001883a
Capabilities:
Get session user name
Schedule task via itaskscheduler

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1010e070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
push esi
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x220], esi
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x10018a05
lea eax, [ebp - 0x21c]
push eax
push 0x100f28c8
push 1
push esi
push 0x100f28a8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x100189c6
mov eax, dword [ebp - 0x21c]
mov esi, str.qminstall_task
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x21c]
lea edx, [ebp - 0x218]
push edx
push 0x100f28d8
push 0x100f28b8
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x20]
mov esi, eax
test esi, esi
js 0x100189c6
lea edx, [ebx + 4]
cmp dword [edx + 0x14], 8
jb 0x100188e1
mov edx, dword [edx]
mov eax, dword [ebp - 0x218]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x80]
xor ebx, ebx
test edi, edi
je 0x1001891d
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x100188fc
sub ecx, edx
sar ecx, 1
je 0x1001891d
mov eax, dword [ebp - 0x218]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x218]
push 0x2002
push eax
mov ecx, dword [eax]
call dword [ecx + 0x70]
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.1008f060
add esp, 0xc
mov dword [ebp - 0x210], 0x104
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov eax, dword [ebp - 0x218]
lea edx, [ebp - 0x20c]
push ebx
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x78]
mov eax, dword [ebp - 0x218]
lea edx, [ebp - 0x220]
push edx
push 0x100c7760
push eax
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
test esi, esi
js 0x100189c6
mov eax, dword [ebp - 0x220]
push 1
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov esi, eax
test esi, esi
js 0x100189c6
mov eax, dword [ebp - 0x218]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [ebp - 0x218]
lea edx, [ebp - 0x214]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov ecx, dword [ebp - 0x220]
test ecx, ecx
je 0x100189d6
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x218]
test ecx, ecx
je 0x100189e6
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x21c]
test ecx, ecx
je 0x100189f6
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
not esi
shr esi, 0x1f
mov eax, esi
jmp 0x10018a07
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008bb47
mov esp, ebp
pop ebp
ret 4
Function at 0x10019191
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x1010e070]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
push edi
xor eax, eax
lea edi, [esp + 0x10]
stosd dword es:[edi], eax
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0xc], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebx + 4]
xor edi, edi
or eax, 0x2001f
mov dword [esp + 0x10], edi
push eax
push ecx
push dword [ebx]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call fcn.10003d94
mov esi, eax
test esi, esi
jne 0x10019251
lea eax, [esp + 0x20]
push eax
push edi
push edi
push edi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x3c]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x10019229
lea eax, [esp + 0x28]
push eax
call fcn.10019191
mov esi, eax
test esi, esi
jne 0x10019251
lea eax, [esp + 0x20]
xor ecx, ecx
push eax
push ecx
push ecx
push ecx
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x3c]
push eax
push ecx
push dword [esp + 0x2c]
mov dword [esp + 0x3c], 0x100
call edi
lea ecx, [esp + 0x10]
test eax, eax
je 0x10019204
call fcn.10003d7a
push dword [esp + 0xc]
mov ecx, ebx
call fcn.10019118
mov esi, eax
lea ecx, [esp + 0x10]
call fcn.10003d7a
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1008bb47
mov esp, ebp
pop ebp
ret 4

Function at 0x10019273
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1010e070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
lea edi, [ebp - 0x10]
xor eax, eax
stosd dword es:[edi], eax
push ecx
push ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ecx + 4]
xor edi, edi
or eax, 0x2001f
mov dword [ebp - 0x10], edi
push eax
push ecx
push ecx
push str.LocalServer32
push dword [ecx]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call fcn.1001937f
mov esi, eax
test esi, esi
jne 0x100192f3
test ebx, ebx
jne 0x100192c7
push 0xd
pop esi
jmp 0x100192f3
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x100192cc
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push ebx
push 1
push edi
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea ecx, [ebp - 0x10]
call fcn.10003d7a
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008bb47
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100194fc
Capabilities:
Create service
Modify service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x1010e070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 2
xor esi, esi
mov dword [ebp - 8], edx
push esi
push esi
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x1001952d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10019588
push esi
push esi
push esi
push esi
push str.COM_Infrastructure
push edi
push 1
push 3
push 0x110
push 0xf01ff
push str.Installer_Service
push dword [ebp - 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
test edi, edi
jne 0x10019564
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1001957f
lea eax, [ebp - 8]
mov dword [ebp - 8], str.Installer_Service
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008bb47
mov esp, ebp
pop ebp
ret

Function at 0x10019600
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1010e070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x20a
xor esi, esi
mov edi, str.InstallerSvcEx2014
push esi
push edi
mov ebx, ecx
call fcn.1008f060
push 0x104
push ebx
push edi
call fcn.10096be9
add esp, 0x18
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
jne 0x1001965a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x100196e5
push 0xf01ff
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x10019677
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x100196de
push esi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1001968e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x100196d7
mov dword [ebp - 0x28], 7
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0x20], esi
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x100196cc
cmp dword [ebp - 0x1c], 4
je 0x100196d4
mov eax, dword [ebp - 0x28]
dec eax
mov dword [ebp - 0x28], eax
test eax, eax
jg 0x10019695
jmp 0x100196d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov edi, dword [ebp - 0x24]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008bb47
mov esp, ebp
pop ebp
ret