joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004980
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10055420
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10079214]
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 0x10004ab2
call fcn.10005540
mov ecx, eax
test ecx, ecx
je 0x10004b31
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 0x1005a6b8
call fcn.10004850
test al, al
jne 0x10004a0d
push 0
push 0x1005a6b8
lea ecx, [ebp - 0x28]
call fcn.1000a650
mov dword [ebp - 4], 1
call fcn.10005540
mov ecx, eax
test ecx, ecx
je 0x10004b3b
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
push str.svc_force_updcfg
call fcn.10004850
test al, al
jne 0x10004a54
push 0x10
push str.svc_force_updcfg
lea ecx, [ebp - 0x24]
call fcn.1000a650
mov byte [ebp - 4], 3
lea eax, [ebp - 0x28]
push 0
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.100054a0
mov ecx, eax
call fcn.10017be0
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov edx, dword [ebp - 0x24]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10004a8f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x10004aae
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
jmp 0x10004b16
lea eax, [ebp - 0x2c]
push 1
push eax
call fcn.1002c630
add esp, 8
mov dword [ebp - 4], 6
push dword [ebp - 0x2c]
push 0
push str.config_time
push 0x1005bc94
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
test esi, esi
je 0x10004af2
call fcn.10005640
sub eax, esi
cmp eax, 0x15180
sbb esi, esi
neg esi
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edi, dword [ebp - 0x2c]
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10004b14
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.1002deb9
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10004830
push 0x80004005
call fcn.10004830
int3
Function at 0x10004bd0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10055499
mov eax, dword fs:[0]
push eax
mov eax, 0x1010
call fcn.1002df80
mov eax, dword [0x10079214]
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.1000dcf0
test eax, eax
je 0x10004d4b
push 0x1000
lea eax, [ebp - 0x1010]
push edi
push eax
call fcn.10031950
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 0x10004d4b
call fcn.10005540
mov ecx, eax
test ecx, ecx
je 0x10004d69
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1014], eax
mov dword [ebp - 4], 1
mov ecx, dword [0x1007a48c]
test ecx, ecx
jne 0x10004cd1
push 0x10078004
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1007a48c], 0
jne 0x10004cc0
push 0x14
call fcn.1002db0a
add esp, 4
mov dword [ebp - 0x1018], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x10004cae
mov ecx, eax
call fcn.1000b640
mov ecx, eax
jmp 0x10004cb0
xor ecx, ecx
mov byte [ebp - 4], 1
xchg dword [ebp - 0x1018], eax
mov dword [0x1007a48c], ecx
push 0x10078004
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x1007a48c]
lea eax, [ebp - 0x101c]
push eax
call fcn.1000b7f0
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.10004e90
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 0x10004d22
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 0x10004d4b
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.1002deb9
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10004830
int3
Function at 0x10006ad0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100559f1
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x10079214]
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.10031950
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x1007a4a8]
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 0x10006d0b
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.1001ed80
add esp, 8
test eax, eax
jne 0x10006bd3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.10003ca0
jmp 0x10006d0b
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.10009ad0
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov ecx, dword [eax]
mov esi, dword [ebx + 0xc]
sub esi, 0x10
lea eax, [ecx - 0x10]
mov dword [ebp - 0x234], eax
cmp eax, esi
je 0x10006c63
cmp dword [esi + 0xc], 0
jl 0x10006c57
mov eax, dword [ecx - 0x10]
cmp eax, dword [esi]
jne 0x10006c57
push dword [ebp - 0x234]
call fcn.10004b60
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 0x10006c49
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 + 0xc], eax
jmp 0x10006c63
push dword [ecx - 0xc]
push ecx
lea ecx, [ebx + 0xc]
call fcn.1000a650
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 0x10006c82
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, ebx
call fcn.10004980
test eax, eax
je 0x10006bbc
cmp dword [ebp - 0x21c], 0x10
lea eax, [ebp - 0x230]
mov ecx, ebx
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.10007430
mov dword [ebp - 0x238], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x21c]
cmp edx, 0x10
jb 0x10006cf0
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10006ce6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10006d2d
push edx
push ecx
call fcn.1002db3a
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.1002deb9
mov esp, ebp
pop ebp
ret
call fcn.100349c9
int3
Function at 0x1000a7f0
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 0x1000a849
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000a849
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 0x1000a83a
cmp esi, edx
jae 0x1000a849
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x1000a828
cmp esi, edx
jae 0x1000a849
cmp word [esi], 0
je 0x1000a849
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x1000c690
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10056770
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x10079214]
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 0x1000c6e4
mov eax, 0x80004003
mov dword [ebp - 0x10], eax
jmp 0x1000c7bb
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 0x1000c73e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x41f
jne 0x1000c753
push 0x10c
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x1000c753
lea eax, [ebp - 0x1c]
push eax
push 0x10c
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceLockStatusW]
test eax, eax
je 0x1000c753
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 0x80004005
jmp 0x1000c79f
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 0x1000c75a
mov eax, 0x80004005
jmp 0x1000c79f
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 0x1000c7bb
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 0x1000c7d7
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 0x1000cf10
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10056890
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10079214]
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 0x1000cf63
mov edi, 0x80004003
jmp 0x1000cfce
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 0x1000cf89
mov edi, 0x80004005
jmp 0x1000cfb8
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 0x1000cfce
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1000cfe7
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.1002deb9
mov esp, ebp
pop ebp
ret

Function at 0x1000d030
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100568cb
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x10079214]
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.10031950
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.1000d170
mov esi, dword [ebp - 0x220]
test eax, eax
je 0x1000d0de
xor ebx, ebx
jmp 0x1000d121
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 0x1000d13d
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.1002deb9
mov esp, ebp
pop ebp
ret 4
Function at 0x1000d7c0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100569cb
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x10079214]
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.10031950
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.1000d170
mov edi, dword [ebp - 0x21c]
test eax, eax
je 0x1000d875
xor ebx, ebx
jmp 0x1000d8bb
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 0x1000d8b4
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.10004bd0
add esp, 0x10
xor ebx, ebx
test esi, esi
sete bl
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1000d8d7
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.1002deb9
mov esp, ebp
pop ebp
ret 8
Function at 0x1000d980
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10056a67
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x10079214]
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 [ebp + 8]
call fcn.10005540
mov ecx, eax
test ecx, ecx
je 0x1000db04
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov dword [ebp - 4], 1
or edi, 0xffffffff
mov eax, dword [esi + 0x24]
cmp dword [eax - 0xc], 0
jne 0x1000da27
lea eax, [ebp - 0x220]
push 1
push eax
call fcn.1002c630
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x21c]
push eax
call fcn.1000b140
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000da82
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1000da82
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10031950
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [esi + 0x24]
push dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000da60
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.1000a650
push dword [ebp - 0x21c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000da97
lea ebx, [eax + 1]
jmp 0x1000dac2
push dword [ebp - 0x21c]
push 1
push dword [esi + 0x2c]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
push esi
push str.AutoStart2___d
call fcn.10004bd0
xor ebx, ebx
add esp, 8
test esi, esi
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x1000dae4
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.1002deb9
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.10004830
int3
Function at 0x1000db10
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10073180
push 0x10031af0
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x10079214]
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 0x1000dc0b
push 0x22c
push esi
lea eax, [ebp - 0x248]
push eax
call fcn.10031950
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 0x1000dc0b
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 0x1000dbfa
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 0x1000dbfa
cmp dword [ebp - 0x24c], ebx
jne 0x1000dbfa
mov esi, dword [ebp - 0x240]
mov dword [ebp - 0x250], esi
jmp 0x1000dc0b
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1000dbb0
mov dword [ebp - 4], 0xfffffffe
call fcn.1000dc43
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.1002deb9
mov esp, ebp
pop ebp
ret 8
Function at 0x1000e3d0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10073160
push 0x10031af0
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x10079214]
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 ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], esi
mov dword [ebp - 4], esi
push 0x200
push esi
lea eax, [ebp - 0x21c]
push eax
call fcn.10031950
push edi
push str.SYSTEMCurrentControlSetServices_sParameters
push 0xff
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x220]
push eax
push 0x20206
push esi
lea eax, [ebp - 0x21c]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000e493
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push esi
push ebx
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, 1
test eax, eax
cmove esi, ecx
mov dword [ebp - 0x224], esi
mov dword [ebp - 4], 0xfffffffe
call fcn.1000e4c5
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.1002deb9
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1000e4e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10073140
push 0x10031af0
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x10079214]
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 esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 4], 0
push 0x200
push 0
lea eax, [ebp - 0x21c]
push eax
call fcn.10031950
push edi
push str.SYSTEMCurrentControlSetServices_sParameters
push 0xff
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x220]
push eax
push 0x20219
push 0
lea eax, [ebp - 0x21c]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000e5bc
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], 4
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x22c]
push eax
push 0
push esi
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], 0xfffffffe
call fcn.1000e5ec
mov eax, dword [ebp - 0x224]
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.1002deb9
mov esp, ebp
pop ebp
ret 0xc