joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426866
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x426903
push ebx
push esi
call fcn.0042682f
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004267c3
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4268b0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x426902
push edi
push eax
call fcn.00422f36
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4268d0
call fcn.00421b3f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x426901
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004267c3
add esp, 0x20
test eax, eax
jne 0x4268ef
push edi
call fcn.00421b3f
jmp 0x4268f7
push ebx
call fcn.00421b3f
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x42e410
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42e43d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42e43d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x100049d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007ee1a
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x100ac1c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
lea eax, [edi + 0x50]
mov dword [edi], 0x10089ff0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edi
mov dword [eax], vtable.std::ios_base.0
mov dword [ebp - 4], 0
mov dword [eax], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], 1
lea esi, [edi + 4]
push 0
push 0
push esi
mov dword [ebp - 0x10], 1
call fcn.10003e10
mov dword [ebp - 4], 2
mov eax, dword [edi]
push 8
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], esi
lea eax, [ecx - 0x50]
mov dword [ecx + edi - 4], eax
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.1004771c
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10004a88
push 1
call fcn.1002b198
add esp, 4
mov dword [ebx + 4], eax
jmp 0x10004a8a
xor ebx, ebx
lea eax, [esi + 4]
mov dword [esi + 0x34], ebx
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov byte [ebp - 4], 3
mov dword [esi], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 4
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 esp, ebp
pop ebp
ret
Function at 0x10006050
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007f59a
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100ac1c4]
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 0x100060aa
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 0x100060d1
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 0x100060f8
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.10010570
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.1004774c
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 0x1000615f
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.10010610
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.1004774c
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, ebx
call fcn.10005c50
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 0x10007b10
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007fb48
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x100ac1c4]
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 0x10007c45
call fcn.100085e0
mov ecx, eax
test ecx, ecx
je 0x10007ce5
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 0x10089d54
call fcn.100079e0
test al, al
jne 0x10007b9d
push 0
push 0x10089d54
lea ecx, [ebp - 0x40]
call fcn.1000ffb0
mov dword [ebp - 4], 1
call fcn.100085e0
mov ecx, eax
test ecx, ecx
je 0x10007cef
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.100079e0
test al, al
jne 0x10007be4
push 0x10
push str.svc_force_updcfg
lea ecx, [ebp - 0x3c]
call fcn.1000ffb0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x40]
push 0
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.100084a0
mov ecx, eax
call fcn.100227f0
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 0x10007c1f
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 0x10007c3e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
jmp 0x10007cca
call fcn.10008540
push 0
lea ecx, [ebp - 0x38]
push ecx
mov ecx, eax
call fcn.1003a650
mov dword [ebp - 4], 6
cmp dword [eax + 0x14], 8
jb 0x10007c66
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x44]
call fcn.10003cf0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x38]
call fcn.10005880
push dword [ebp - 0x44]
push 0
push str.config_time
push 0x1008a364
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
test esi, esi
je 0x10007ca6
call fcn.100086e0
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 0x10007cc8
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.10047acb
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100079c0
push 0x80004005
call fcn.100079c0
int3
Function at 0x10009d80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10080111
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x100ac1c4]
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 dword [ebp - 0x238], ebx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100503b0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x100ad9c4]
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 0x10009fa1
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.10028080
add esp, 8
test eax, eax
jne 0x10009e7f
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.10005800
jmp 0x10009fa1
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.1000d780
mov byte [ebp - 4], 1
lea edx, [ebx + 0x14]
mov ecx, dword [eax]
or edi, 0xffffffff
mov esi, dword [edx]
sub esi, 0x10
lea eax, [ecx - 0x10]
mov dword [ebp - 0x234], eax
cmp eax, esi
je 0x10009f1b
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x10009f0a
mov eax, dword [eax]
cmp eax, dword [esi]
jne 0x10009f0a
push dword [ebp - 0x234]
call fcn.10007d10
add esp, 4
mov dword [ebp - 0x234], eax
mov ecx, edi
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x10009efc
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x234]
mov ebx, dword [ebp - 0x238]
add eax, 0x10
mov dword [ebx + 0x14], eax
jmp 0x10009f1b
push dword [ecx - 0xc]
push ecx
mov ecx, edx
call fcn.1000ffb0
mov ebx, dword [ebp - 0x238]
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 0x10009f3a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, ebx
call fcn.10007b10
test eax, eax
je 0x10009e68
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x21c]
cmp edx, 0x10
jb 0x10009f86
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10009f7c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10009fbf
push edx
push ecx
call fcn.1004774c
add esp, 8
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
xor eax, eax
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.10047acb
mov esp, ebp
pop ebp
ret
call fcn.100534b3
int3
Function at 0x10010150
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 0x100101a9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100101a9
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 0x1001019a
cmp esi, edx
jae 0x100101a9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x10010188
cmp esi, edx
jae 0x100101a9
cmp word [esi], 0
je 0x100101a9
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x100153c0
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10081b10
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x100ac1c4]
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 0x10015414
mov eax, 0x80004003
mov dword [ebp - 0x10], eax
jmp 0x100154eb
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 0x1001546e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x41f
jne 0x10015483
push 0x10c
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x10015483
lea eax, [ebp - 0x1c]
push eax
push 0x10c
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceLockStatusW]
test eax, eax
je 0x10015483
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 0x80004005
jmp 0x100154cf
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 0x1001548a
mov eax, 0x80004005
jmp 0x100154cf
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 0x100154eb
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 0x10015507
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 0x10015c40
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10081c30
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x100ac1c4]
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 0x10015c93
mov edi, 0x80004003
jmp 0x10015cfe
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 0x10015cb9
mov edi, 0x80004005
jmp 0x10015ce8
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 0x10015cfe
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x10015d17
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.10047acb
mov esp, ebp
pop ebp
ret

Function at 0x10015d90
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100a2a88
push 0x10050550
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x100ac1c4]
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 0x10015e8b
push 0x22c
push esi
lea eax, [ebp - 0x248]
push eax
call fcn.100503b0
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 0x10015e8b
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 0x10015e7a
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 0x10015e7a
cmp dword [ebp - 0x24c], ebx
jne 0x10015e7a
mov esi, dword [ebp - 0x240]
mov dword [ebp - 0x250], esi
jmp 0x10015e8b
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10015e30
mov dword [ebp - 4], 0xfffffffe
call fcn.10015ec3
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.10047acb
mov esp, ebp
pop ebp
ret 8
Function at 0x10015ed0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10081c86
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push esi
push edi
mov eax, dword [0x100ac1c4]
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.10024780
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 0x10015f4d
mov ecx, ebx
lock xadd dword [esi + 4], ecx
jne 0x10015f4d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x10015f4d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x10015fca
lea eax, [ebp - 0x1c]
push eax
call fcn.10024780
add esp, 4
mov dword [ebp - 4], 1
lea ecx, [ebp - 0xb4]
mov edi, dword [eax]
call fcn.100049d0
mov esi, eax
mov byte [ebp - 4], 2
push str.FilterMsgHelper_Init_Start
push esi
call fcn.100027f0
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.10006f00
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x10015fca
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x10015fca
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x10015fca
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ebx, dword [ebp - 0x14]
cmp dword [ebx + 8], 0
jne 0x10015fec
push 0
push 0
push ebx
push 0x10017280
push 0
push 0
call fcn.10057c6e
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 0x10017d00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008215b
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x100ac1c4]
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.100503b0
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.10017e40
mov esi, dword [ebp - 0x220]
test eax, eax
je 0x10017dae
xor ebx, ebx
jmp 0x10017df1
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 0x10017e0d
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.10047acb
mov esp, ebp
pop ebp
ret 4
Function at 0x10018cf0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008248b
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x100ac1c4]
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.100503b0
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 - 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.10017e40
mov esi, dword [ebp - 0x21c]
test eax, eax
je 0x10018d9e
xor ebx, ebx
jmp 0x10018dc7
mov eax, dword [ebp + 0xc]
push 4
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x220]
push eax
push 4
push 0
push str.Start
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ebx, ebx
test eax, eax
sete bl
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x10018de3
push esi
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 esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10047acb
mov esp, ebp
pop ebp
ret 8