joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005b50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100792ca
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100a6204]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 5
lea eax, [ebx + 0x30]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 5
or esi, 0xffffffff
mov edx, dword [eax]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10005baa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
lea eax, [ebx + 0x2c]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
mov edx, dword [eax]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10005bd1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
lea eax, [ebx + 0x28]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
mov edx, dword [eax]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10005bf8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
lea edi, [ebx + 0x18]
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 0xb
mov ecx, edi
mov esi, dword [edi]
push dword [esi + 4]
call fcn.1000ff40
mov eax, dword [edi]
mov dword [eax + 4], esi
mov eax, dword [edi]
mov dword [eax], esi
mov eax, dword [edi]
mov dword [eax + 8], esi
mov dword [edi + 4], 0
mov byte [ebp - 4], 2
push 0x18
push dword [edi]
call fcn.10048fc3
add esp, 8
mov byte [ebp - 4], 1
lea eax, [ebx + 0x14]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
mov edx, dword [eax]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10005c5f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
lea edi, [ebx + 0xc]
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 0x10
mov ecx, edi
mov esi, dword [edi]
push dword [esi + 4]
call fcn.1000ffe0
mov eax, dword [edi]
mov dword [eax + 4], esi
mov eax, dword [edi]
mov dword [eax], esi
mov eax, dword [edi]
mov dword [eax + 8], esi
mov dword [edi + 4], 0
mov byte [ebp - 4], 0
push 0x28
push dword [edi]
call fcn.10048fc3
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, ebx
call fcn.100057c0
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 0x10007610
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10079878
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x100a6204]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, 0x7e2
cmp word [ebp - 0x20], ax
jae 0x10007745
call fcn.10008280
mov ecx, eax
test ecx, ecx
je 0x100077e5
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
push 0x100826f8
call fcn.100074e0
test al, al
jne 0x1000769d
push 0
push 0x100826f8
lea ecx, [ebp - 0x40]
call fcn.1000f980
mov dword [ebp - 4], 1
call fcn.10008280
mov ecx, eax
test ecx, ecx
je 0x100077ef
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3c]
push str.svc_force_updcfg
call fcn.100074e0
test al, al
jne 0x100076e4
push 0x10
push str.svc_force_updcfg
lea ecx, [ebp - 0x3c]
call fcn.1000f980
mov byte [ebp - 4], 3
lea eax, [ebp - 0x40]
push 0
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.10008140
mov ecx, eax
call fcn.10022460
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov edx, dword [ebp - 0x3c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000771f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x40]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x1000773e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
jmp 0x100077ca
call fcn.100081e0
push 0
lea ecx, [ebp - 0x38]
push ecx
mov ecx, eax
call fcn.1003fe50
mov dword [ebp - 4], 6
cmp dword [eax + 0x14], 8
jb 0x10007766
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x44]
call fcn.10003ca0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x38]
call fcn.100053f0
push dword [ebp - 0x44]
push 0
push str.config_time
push 0x10084604
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
test esi, esi
je 0x100077a6
call fcn.10008380
sub eax, esi
cmp eax, 0x15180
sbb esi, esi
neg esi
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edi, dword [ebp - 0x44]
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x100077c8
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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.10049342
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100074c0
push 0x80004005
call fcn.100074c0
int3
Function at 0x10007880
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100798e9
mov eax, dword fs:[0]
push eax
mov eax, 0x1010
call fcn.10049410
mov eax, dword [0x100a6204]
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
xor edi, edi
call fcn.100189f0
test eax, eax
je 0x100079fb
push 0x1000
lea eax, [ebp - 0x1010]
push edi
push eax
call fcn.10051fb0
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1010]
push 0x7ff
push eax
call dword [sym.imp.SHLWAPI.dll_wvnsprintfW]
mov edi, eax
test edi, edi
jle 0x100079fb
call fcn.10008280
mov ecx, eax
test ecx, ecx
je 0x10007a19
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1014], eax
mov dword [ebp - 4], 1
mov ecx, dword [0x100a7974]
test ecx, ecx
jne 0x10007981
push 0x100a5004
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100a7974], 0
jne 0x10007970
push 0x14
call fcn.10048f93
add esp, 4
mov dword [ebp - 0x1018], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x1000795e
mov ecx, eax
call fcn.10013af0
mov ecx, eax
jmp 0x10007960
xor ecx, ecx
mov byte [ebp - 4], 1
xchg dword [ebp - 0x1018], eax
mov dword [0x100a7974], ecx
push 0x100a5004
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x100a7974]
lea eax, [ebp - 0x101c]
push eax
call fcn.10013d30
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1010]
push ecx
push dword [eax]
lea eax, [ebp - 0x1014]
push str.__s__s
push eax
call fcn.10007b40
add esp, 0x10
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov edx, dword [ebp - 0x101c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100079d2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x1014]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x100079fb
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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 - 0x10]
xor ecx, ebp
call fcn.10049342
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100074c0
int3
Function at 0x10009a70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10079eb1
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x100a6204]
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
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x238], 0
push 0
push eax
call fcn.10051fb0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x100a79b4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.svc.dat
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10009cab
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10027d00
add esp, 8
test eax, eax
jne 0x10009b73
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.10005370
jmp 0x10009cab
cmp dword [ebp - 0x21c], 0x10
lea eax, [ebp - 0x230]
mov ecx, ebx
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.1000d100
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov ecx, dword [eax]
mov esi, dword [ebx + 0x14]
sub esi, 0x10
lea eax, [ecx - 0x10]
mov dword [ebp - 0x234], eax
cmp eax, esi
je 0x10009c03
cmp dword [esi + 0xc], 0
jl 0x10009bf7
mov eax, dword [ecx - 0x10]
cmp eax, dword [esi]
jne 0x10009bf7
push dword [ebp - 0x234]
call fcn.10007810
mov dword [ebp - 0x234], eax
lea ecx, [esi + 0xc]
add esp, 4
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x10009be9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x234]
add eax, 0x10
mov dword [ebx + 0x14], eax
jmp 0x10009c03
push dword [ecx - 0xc]
push ecx
lea ecx, [ebx + 0x14]
call fcn.1000f980
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x23c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x10009c22
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, ebx
call fcn.10007610
test eax, eax
je 0x10009b5c
cmp dword [ebp - 0x21c], 0x10
lea eax, [ebp - 0x230]
mov ecx, ebx
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.1000a730
mov dword [ebp - 0x238], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x21c]
cmp edx, 0x10
jb 0x10009c90
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10009c86
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10009ccd
push edx
push ecx
call fcn.10048fc3
add esp, 8
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
mov eax, dword [ebp - 0x238]
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.10049342
mov esp, ebp
pop ebp
ret
call fcn.100550e9
int3
Function at 0x1000fb20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000fb79
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000fb79
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x1000fb6a
cmp esi, edx
jae 0x1000fb79
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x1000fb58
cmp esi, edx
jae 0x1000fb79
cmp word [esi], 0
je 0x1000fb79
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x10014a60
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007b890
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x100a6204]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0
test ebx, ebx
jne 0x10014ab4
mov eax, 0x80004003
mov dword [ebp - 0x10], eax
jmp 0x10014b8b
xor esi, esi
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
push ebx
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x10014b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x41f
jne 0x10014b23
push 0x10c
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x10014b23
lea eax, [ebp - 0x1c]
push eax
push 0x10c
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceLockStatusW]
test eax, eax
je 0x10014b23
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 0x80004005
jmp 0x10014b6f
push 2
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x10014b2a
mov eax, 0x80004005
jmp 0x10014b6f
cmp dword [ebp + 0xc], 0
mov ecx, 4
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, 1
cmovne eax, ecx
push eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push dword [ebp - 0x10]
neg eax
sbb edi, edi
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
xor ecx, ecx
mov eax, 0x80004005
and edi, 1
cmovne eax, ecx
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0
test esi, esi
je 0x10014b8b
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x10014ba7
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], 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
Function at 0x100152e0
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007b9b0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x100a6204]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 4], 0
test esi, esi
jne 0x10015333
mov edi, 0x80004003
jmp 0x1001539e
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 1
push 0xf01ff
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x10015359
mov edi, 0x80004005
jmp 0x10015388
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0
push ecx
xorps xmm0, xmm0
push 1
push eax
movups xmmword [ebp - 0x2c], xmm0
movq qword [ebp - 0x1c], xmm0
call dword [sym.imp.ADVAPI32.dll_ControlService]
xor ecx, ecx
mov edi, 0x80004005
test eax, eax
mov eax, dword [ebp - 0x30]
cmovne edi, ecx
mov byte [ebp - 4], 0
test eax, eax
je 0x1001539e
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x100153b7
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x34], 0
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.10049342
mov esp, ebp
pop ebp
ret

Function at 0x10015430
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1009cbd8
push 0x10052150
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x100a6204]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x258], eax
xor esi, esi
mov dword [ebp - 0x250], esi
mov dword [ebp - 0x254], 0xffffffff
mov dword [ebp - 4], esi
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x254], edi
cmp edi, 0xffffffff
je 0x1001552b
push 0x22c
push esi
lea eax, [ebp - 0x248]
push eax
call fcn.10051fb0
add esp, 0xc
mov dword [ebp - 0x248], 0x22c
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1001552b
mov ebx, dword [ebp + 0xc]
push dword [ebp - 0x258]
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1001551a
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x1001551a
cmp dword [ebp - 0x24c], ebx
jne 0x1001551a
mov esi, dword [ebp - 0x240]
mov dword [ebp - 0x250], esi
jmp 0x1001552b
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x100154d0
mov dword [ebp - 4], 0xfffffffe
call fcn.10015563
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10049342
mov esp, ebp
pop ebp
ret 8
Function at 0x10015570
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007ba06
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push esi
push edi
mov eax, dword [0x100a6204]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
lea eax, [ebp - 0x1c]
push eax
call fcn.100243f0
add esp, 4
mov dword [ebp - 4], 0
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp - 0xd], al
mov dword [ebp - 4], 0xffffffff
or ebx, 0xffffffff
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x100155ed
mov ecx, ebx
lock xadd dword [esi + 4], ecx
jne 0x100155ed
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x100155ed
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x1001566a
lea eax, [ebp - 0x1c]
push eax
call fcn.100243f0
add esp, 4
mov dword [ebp - 4], 1
lea ecx, [ebp - 0xb4]
mov edi, dword [eax]
call fcn.10004540
mov esi, eax
mov byte [ebp - 4], 2
push str.FilterMsgHelper_Init_Start
push esi
call fcn.100027c0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 8]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb4]
call fcn.10006a00
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x1001566a
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1001566a
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x1001566a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ebx, dword [ebp - 0x14]
cmp dword [ebx + 8], 0
jne 0x1001568c
push 0
push 0
push ebx
push 0x100169d0
push 0
push 0
call fcn.10059644
add esp, 0x18
mov dword [ebx + 8], eax
mov al, 1
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 0x10017440
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007bedb
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x100a6204]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x200
push 0
push eax
call fcn.10051fb0
push dword [esi]
lea eax, [ebp - 0x210]
push str.SYSTEMCurrentControlSetServices_s
push 0xff
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x1c
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x210]
push 0x20219
push eax
push reloc.WS2_32.dll_bind
lea ecx, [ebp - 0x220]
call fcn.10017580
mov esi, dword [ebp - 0x220]
test eax, eax
je 0x100174ee
xor ebx, ebx
jmp 0x10017531
lea eax, [ebp - 0x224]
mov dword [ebp - 0x214], 2
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 0x224], 4
push eax
lea eax, [ebp - 0x228]
push eax
push 0
push str.Start
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ebx, ebx
cmp dword [ebp - 0x214], 2
sete bl
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1001754d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x220], 0
mov eax, ebx
mov dword [ebp - 0x21c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10049342
mov esp, ebp
pop ebp
ret 4
Function at 0x10018540
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007c20b
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x100a6204]
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, dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x200
push 0
push eax
mov dword [ebp - 0x224], ebx
call fcn.10051fb0
push dword [ebx]
lea eax, [ebp - 0x210]
push str.SYSTEMCurrentControlSetServices_s
push 0xff
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x1c
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x210]
push 0x2021b
push eax
push reloc.WS2_32.dll_bind
lea ecx, [ebp - 0x21c]
call fcn.10017580
mov edi, dword [ebp - 0x21c]
test eax, eax
je 0x100185f5
xor ebx, ebx
jmp 0x1001863b
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x220]
push 4
push eax
push 4
push 0
push str.Start
push edi
mov dword [ebp - 0x220], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x10018634
mov eax, dword [ebp - 0x224]
push esi
push ebx
push dword [eax]
push str.CInstallSvc::SetSvcStartType_fail_strSvcName__s__dwStartType__ld__lResult_ld
call fcn.10007880
add esp, 0x10
xor ebx, ebx
test esi, esi
sete bl
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x10018657
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x21c], 0
mov eax, ebx
mov dword [ebp - 0x218], 0
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.10049342
mov esp, ebp
pop ebp
ret 8