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

Disassembly:
push ebp
lea ebp, [esp - 0x204]
sub esp, 0x204
push 0xffffffffffffffff
push 0x100594cd
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10088020]
xor eax, ebp
mov dword [ebp + 0x200], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0x20c]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x20]
mov edi, dword [eax + 4]
push edx
or edi, 0x2001f
mov dword [ebp - 0x20], 0
push edi
push 0
push ecx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [ebp - 0x18]
test esi, esi
jne 0x10003b9d
xor esi, esi
test eax, eax
je 0x10003b08
push eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x20]
and edi, 0x300
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
test esi, esi
jne 0x10003b9d
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [ebp - 0x30]
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x100
push ecx
lea ecx, [ebp]
push ecx
push esi
push eax
call edi
test eax, eax
jne 0x10003b78
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
call fcn.10003a60
mov esi, eax
test esi, esi
jne 0x10003b9d
lea eax, [ebp - 0x30]
mov dword [ebp - 0x1c], 0x100
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp]
push eax
push esi
push dword [ebp - 0x18]
call edi
test eax, eax
je 0x10003b46
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10003b89
push eax
call ebx
mov dword [ebp - 0x18], 0
push dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x14], 0
call fcn.10003c50
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10003bb5
push eax
call ebx
mov dword [ebp - 0x18], 0
mov eax, esi
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x200]
xor ecx, ebp
call fcn.10044a98
lea esp, [ebp + 0x204]
pop ebp
ret 4
Function at 0x10004af0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x10059595
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10088020]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x410]
mov eax, dword [ebp + 0x414]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], 0
mov dword [ebp], 0
mov byte [ebp - 4], 1
push 0x60
push 0
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
call ebx
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x10004b98
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x1c], eax
test esi, esi
jne 0x10004b98
call fcn.10002e20
mov edi, eax
jmp 0x10004ca0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x10004bb5
call fcn.10002e20
jmp 0x10004c93
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
jne 0x10004bd0
call fcn.10002e20
jmp 0x10004c93
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x14], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x10004bee
mov edi, 0x8007000e
jmp 0x10004c95
mov byte [ebp - 4], 2
mov ecx, 2
mul ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
test edx, edx
ja 0x10004ce2
jb 0x10004c12
cmp eax, 0xffffffff
ja 0x10004ce2
cmp eax, 0x400
jbe 0x10004c2b
push eax
lea ecx, [ebp]
call fcn.10002df0
mov dword [ebp - 4], 1
jmp 0x10004c50
lea eax, [ebp + 4]
mov dword [ebp], eax
mov dword [ebp - 4], 1
jmp 0x10004c50
mov eax, dword [ebp]
test eax, eax
jne 0x10004c5e
mov edi, 0x8007000e
jmp 0x10004c95
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x10004c79
call fcn.10002e20
jmp 0x10004c93
xor edx, edx
mov eax, dword [ebp]
mov word [eax + ecx*2], dx
push dword [ebp + 0x41c]
push dword [ebp]
lea ecx, [ebp - 0x24]
call fcn.10004990
mov edi, eax
test esi, esi
je 0x10004ca0
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x10004cb4
lea ecx, [ebp]
call fcn.10002da0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.10044a98
lea esp, [ebp + 0x408]
pop ebp
ret 0x10
push 0x80070216
call fcn.10005390
int3
Function at 0x1000b150
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005a4d1
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x10088020]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword fs:[0x2c]
mov edx, dword [0x1008958c]
mov edx, dword [eax + edx*4]
mov eax, dword [0x10089e58]
cmp eax, dword [edx + 4]
jle 0x1000b1d2
push 0x10089e58
call fcn.10045034
add esp, 4
cmp dword [0x10089e58], 0xffffffff
jne 0x1000b1d2
mov dword [ebp - 4], 0
push 0x100647e0
call fcn.10044eec
mov dword [ebp - 4], 0xffffffff
push 0x10089e58
call fcn.10044fea
add esp, 8
mov edx, dword [ebp + 8]
mov edi, edx
cmp dword [edx + 0x14], 8
mov ebx, dword [edx + 0x10]
jb 0x1000b1e2
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
add ebx, ebx
je 0x1000b201
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x1000b1f0
push esi
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push edx
push eax
mov ecx, esi
call fcn.1000f0a0
mov eax, dword [eax + 4]
test eax, eax
je 0x1000b234
cmp eax, dword [esi + 4]
je 0x1000b234
add eax, 0x20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 0x10088aac
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1000f8b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005b080
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x10088020]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edx, dword [ebp + 0xc]
mov ebx, edx
cmp dword [edx + 0x14], 8
mov eax, dword [edx + 0x10]
jb 0x1000f8ed
mov ebx, dword [edx]
xor ecx, ecx
mov edi, 0x811c9dc5
add eax, eax
je 0x1000f914
mov esi, eax
nop word [eax + eax]
movzx eax, byte [ecx + ebx]
inc ecx
xor eax, edi
imul edi, eax, 0x1000193
cmp ecx, esi
jb 0x1000f900
mov esi, dword [ebp - 0x10]
push edi
push edx
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.1000f0a0
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x1000f945
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [esi + 8], 0x4924924
je 0x1000faa5
lea eax, [esi + 4]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
push 0x38
push 0x40
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
mov eax, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x14], ebx
lea ecx, [ebx + 8]
lea esi, [eax + 0x18]
mov dword [ebp + 0xc], ecx
call fcn.10005780
mov byte [ebp - 4], 3
lea ecx, [ebx + 0x20]
push esi
call fcn.10005780
mov dword [ebp - 4], 5
mov esi, dword [ebp - 0x10]
mov eax, dword [esi + 8]
inc eax
movss xmm3, dword [esi]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10079aa0]
mov eax, dword [esi + 0x1c]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
addsd xmm1, qword [eax*8 + 0x10079aa0]
movaps xmm2, xmm0
cvtpd2ps xmm1, xmm1
divss xmm2, xmm1
comiss xmm2, xmm3
jbe 0x1000fa37
divss xmm0, xmm3
call fcn.1000fab0
call fcn.10059100
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [esi + 0x1c]
cmp eax, ecx
jae 0x1000fa1b
cmp eax, 0x200
jae 0x1000fa19
shl eax, 3
cmp eax, ecx
jae 0x1000fa1b
mov eax, ecx
push eax
mov ecx, esi
call fcn.1000dcb0
push edi
lea eax, [ebx + 8]
mov ecx, esi
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.1000f0a0
mov edx, dword [eax]
jmp 0x1000fa3a
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 4]
inc dword [esi + 8]
mov dword [ebx + 4], eax
mov dword [ebx], edx
mov dword [eax], ebx
mov dword [edx + 4], ebx
mov ecx, dword [esi + 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [esi + 0x18]
and eax, edi
mov dword [ebp - 0x14], 0
mov edi, dword [ebp - 0x18]
mov esi, dword [ecx + eax*8]
cmp esi, dword [edi]
jne 0x1000fa6b
mov dword [ecx + eax*8], ebx
jmp 0x1000fa7d
cmp esi, edx
jne 0x1000fa74
mov dword [ecx + eax*8], ebx
jmp 0x1000fa81
mov edx, dword [ebp + 0xc]
cmp dword [ecx + eax*8 + 4], edx
jne 0x1000fa81
mov dword [ecx + eax*8 + 4], ebx
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [eax + 4], 1
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.100442a0
int3
Function at 0x10010a50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100599e0
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x10088020]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10010ad7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10010ad7
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x10010ab7
cmp esi, edx
jae 0x10010ad7
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x10010aa5
cmp esi, edx
jae 0x10010ad7
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10012650
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005b6c7
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x10088020]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x220], edi
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x224], edi
push 0
push eax
mov dword [ebp - 0x21c], 0
call fcn.10046750
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
lea ecx, [ebp - 0x218]
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
lea edx, [ecx + 2]
mov dword [edi + 0x14], 0
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100126e0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.10002c20
mov dword [ebp - 4], 0
mov dword [ebp - 0x21c], 1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10044a98
mov esp, ebp
pop ebp
ret
Function at 0x10012730
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005b726
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x10088020]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x44], esi
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x4c], esi
movups xmm0, xmmword [ebx + 8]
mov dword [ebp - 0x48], 0
movups xmmword [ebp - 0x40], xmm0
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0x400
lea eax, [ebp - 0x40]
mov dword [ebp - 0x48], 1
push eax
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x100128a1
mov edx, dword [ebp - 0x44]
xorps xmm0, xmm0
mov ecx, edx
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10012800
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.10002c20
mov dword [ebp - 4], 1
lea eax, [ebp - 0x2c]
cmp esi, eax
je 0x10012856
mov ecx, esi
call fcn.100055a0
movups xmm0, xmmword [ebp - 0x2c]
mov eax, 7
xor ecx, ecx
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
jmp 0x10012859
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x1001288d
mov ecx, dword [ebp - 0x2c]
lea eax, [eax*2 + 2]
mov edx, ecx
cmp eax, 0x1000
jb 0x10012882
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x100128cf
test ecx, ecx
je 0x1001288d
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x100128af
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10044a98
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.1004872f
int3
Function at 0x10014860
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x10088020]
xor eax, esp
mov dword [esp + 0x198], eax
mov eax, dword [0x10089d54]
push esi
mov esi, ecx
test eax, eax
jne 0x100148c4
push 0x190
push eax
lea eax, [esp + 0x10]
push eax
call fcn.10046750
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
inc dword [0x10089d54]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.10044a98
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x19c]
inc eax
mov dword [0x10089d54], eax
mov eax, esi
pop esi
xor ecx, esp
call fcn.10044a98
mov esp, ebp
pop ebp
ret

Function at 0x10014930
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x210]
sub esp, 0x210
push 0xffffffffffffffff
push 0x1005bd85
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x10088020]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
mov dword [edi], 0x10070b24
mov dword [edi + 4], 0
mov dword [ebp - 4], 0
lea eax, [ebp]
push 0x105
push eax
mov dword [edi + 8], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10014a75
cmp eax, 0x105
jae 0x10014a75
call fcn.10009f40
mov ecx, eax
test ecx, ecx
je 0x10014ac5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
lea eax, [ebp]
test eax, 0xffff0000
jne 0x100149f0
movzx esi, ax
mov ecx, esi
call fcn.10010990
test eax, eax
je 0x10014a12
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.10010af0
jmp 0x10014a12
lea ecx, [ebp]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100149f6
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.10007ca0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
push 1
push 0x10070aac
call fcn.10010b90
push 9
push str.ntdll.dll
lea ecx, [ebp - 0x10]
call fcn.10010b90
mov esi, dword [ebp - 0x10]
push 0x5c
push esi
call fcn.100463e5
add esp, 8
test eax, eax
jne 0x10014a4a
xor ebx, ebx
jmp 0x10014a57
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10014a77
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10014a77
xor ebx, ebx
mov eax, dword [edi + 4]
cmp ebx, eax
je 0x10014a8a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov dword [edi + 4], ebx
mov eax, ebx
test eax, eax
jne 0x10014a97
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 8], eax
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.10044a98
lea esp, [ebp + 0x210]
pop ebp
ret 8
push 0x80004005
call fcn.10005390
int3
Function at 0x10016840
Capabilities:
Stop service

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005c3dd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x10088020]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
push 0x24
push 0xf003f
call fcn.10016a60
mov edi, eax
mov dword [ebp - 0x3c], 0x10072798
mov dword [ebp - 0x38], edi
mov dword [ebp - 4], 0
test edi, edi
jne 0x100168b1
mov esi, dword [ebp - 0x34]
jmp 0x100168f3
lea eax, [ebp - 0x30]
mov dword [ebp - 0x18], 0
push eax
xorps xmm0, xmm0
push 1
push edi
movups xmmword [ebp - 0x30], xmm0
movq qword [ebp - 0x20], xmm0
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x100168e1
push 1
push edi
call fcn.10016b20
mov esi, eax
jmp 0x100168f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x426
jne 0x100168f3
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x3c], 0x10072798
test edi, edi
je 0x10016913
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x38], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10044a98
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x10016940
Capabilities:
Start service

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005c3dd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x10088020]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x30]
movq qword [ebp - 0x20], xmm0
push eax
movups xmmword [ebp - 0x30], xmm0
call fcn.10016790
test eax, eax
jne 0x100169b5
cmp dword [ebp - 0x2c], 4
jne 0x100169b5
mov ecx, esi
call fcn.10016840
test eax, eax
jne 0x10016a3d
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
push 0x14
push SysReAllocString
mov ecx, esi
call fcn.10016a60
mov esi, eax
mov dword [ebp - 0x3c], 0x10072798
mov dword [ebp - 0x38], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x10016a18
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x10016a0e
push 4
push esi
call fcn.10016b20
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x3c], 0x10072798
jmp 0x10016a2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x10016a1b
mov edi, dword [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x3c], 0x10072798
test esi, esi
je 0x10016a3b
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x38], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10044a98
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x10016b20
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
sub esp, 0x30
mov eax, dword [0x10088020]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
lea eax, [esp + 4]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
xorps xmm0, xmm0
push eax
push 0x24
lea eax, [esp + 0x18]
mov dword [esp + 0x10], 0
push eax
push 0
push ebx
movups xmmword [esp + 0x24], xmm0
mov dword [esp + 0x44], 0
movups xmmword [esp + 0x34], xmm0
call ebp
test eax, eax
jne 0x10016b85
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10044a98
add esp, 0x30
ret 8
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov esi, dword [esp + 0x48]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x1c], esi
je 0x10016bd9
nop dword [eax]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push 0x24
lea eax, [esp + 0x20]
push eax
push 0
push ebx
call ebp
test eax, eax
je 0x10016c0a
cmp dword [esp + 0x1c], esi
je 0x10016bd9
call edi
sub eax, dword [esp + 0x14]
cmp eax, 0x7530
ja 0x10016bf0
cmp dword [esp + 0x1c], esi
jne 0x10016ba0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10044a98
add esp, 0x30
ret 8
pop edi
pop esi
pop ebp
mov eax, 0x102
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10044a98
add esp, 0x30
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10044a98
add esp, 0x30
ret 8
Function at 0x100190d0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005c835
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10088020]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
cmp esi, edi
je 0x10019135
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.10018180
mov dword [ebp - 4], 0
mov ecx, eax
call fcn.10019200
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100055a0
add esi, 0x18
cmp esi, edi
jne 0x10019106
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
cmp esi, edi
je 0x1001915e
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.100055a0
add esi, 0x18
mov dword [ebp - 0x2c], esi
cmp esi, edi
jne 0x10019141
mov eax, dword [ebx]
mov dword [ebx + 4], eax
mov esi, dword [ebx + 0x10]
mov edi, dword [ebx + 0xc]
cmp esi, edi
je 0x1001919f
lea eax, [ebp - 0x28]
lea ecx, [esi - 0x18]
push eax
mov esi, ecx
call fcn.10018180
mov dword [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x10019185
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100055a0
cmp esi, edi
jne 0x10019168
mov esi, dword [ebx + 0xc]
mov edi, dword [ebx + 0x10]
cmp esi, edi
je 0x100191ce
mov dword [ebp - 0x2c], esi
nop dword [eax]
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.100055a0
add esi, 0x18
mov dword [ebp - 0x2c], esi
cmp esi, edi
jne 0x100191b0
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x10], eax
mov ecx, ebx
call fcn.10019400
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10044a98
mov esp, ebp
pop ebp
ret