joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002090
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10080148
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x100a1040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x20], 0
push 0x404
lea eax, [ebp - 0x424]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
call fcn.10055b90
add esp, 0xc
mov dword [ebp - 0x424], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x430], esi
test esi, esi
jne 0x10002149
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x430], eax
test esi, esi
jne 0x10002149
call fcn.10001500
mov edi, eax
jmp 0x10002265
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x1000216c
call fcn.10001500
jmp 0x10002258
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x42c], ebx
test ebx, ebx
jne 0x1000218a
call fcn.10001500
jmp 0x10002258
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x428], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x100021ab
mov edi, 0x8007000e
jmp 0x1000225a
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x1000229e
jb 0x100021c9
cmp eax, 0xffffffff
ja 0x1000229e
cmp eax, 0x400
jbe 0x100021de
push eax
lea ecx, [ebp - 0x424]
call fcn.10004390
jmp 0x10002204
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
jmp 0x10002204
mov dword [ebp - 4], 1
cmp dword [ebp - 0x424], 0
jne 0x1000221b
mov edi, 0x8007000e
jmp 0x1000225a
push edi
push dword [ebp - 0x424]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x1000223b
call fcn.10001500
jmp 0x10002258
mov eax, dword [ebp - 0x424]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x424]
call fcn.10002ec0
mov edi, eax
test esi, esi
je 0x10002265
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x1000227e
lea ecx, [ebp - 0x424]
call fcn.10004380
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 - 0x14]
xor ecx, ebp
call fcn.100535a4
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.10001410
int3
Function at 0x10005e30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100a1040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or ebx, 0xffffffff
test eax, eax
je 0x10005f19
call fcn.10004070
mov ecx, eax
test ecx, ecx
je 0x10005f62
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push esi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push 0x10092af0
push eax
call fcn.10007310
mov edi, dword [0x100a4098]
add esp, 0xc
test edi, edi
je 0x10005e99
lock inc dword [edi + 4]
mov edi, dword [0x100a4098]
mov ecx, dword [0x100a4094]
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ecx]
call dword [eax + 0xec]
push dword [ebp + 8]
mov esi, dword [ebp - 8]
push esi
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], eax
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10005eda
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x10005efd
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x10005efd
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x10005efd
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10005f14
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 8]
jmp 0x10005f1b
xor esi, esi
mov edx, dword [ebp + 8]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10005f35
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10005f4d
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100535a4
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.10001410
int3
Function at 0x10005f70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or edi, 0xffffffff
test eax, eax
je 0x10005fff
mov esi, dword [0x100a4098]
test esi, esi
je 0x10005f9b
lock inc dword [esi + 4]
mov esi, dword [0x100a4098]
mov ecx, dword [0x100a4094]
lea edx, [ebp - 4]
push edx
mov eax, dword [ecx]
call dword [eax + 0xec]
push dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp - 4]
mov ebx, eax
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10005fda
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x10006001
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x10006001
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x10006001
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
jmp 0x10006001
xor ebx, ebx
mov edx, dword [ebp + 8]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000601b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10006035
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x1000604d
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10007a50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10007aab
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10007aab
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x10007a98
cmp esi, edx
jae 0x10007aab
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x10007a86
cmp esi, edx
jae 0x10007aab
xor eax, eax
cmp word [esi], ax
pop edi
cmove esi, eax
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x10008390
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008048b
mov eax, dword fs:[0]
push eax
mov eax, 0x2018
call fcn.10054670
mov eax, dword [0x100a1040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
cmp dword [edi + 8], 0
jne 0x100083d8
cmp dword [edi + 4], 0
je 0x10008522
lea eax, [edi + 0x14]
push eax
mov dword [ebp - 0x2020], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x201c], 1
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x10]
cmp dword [eax - 0xc], 0
jle 0x10008424
test esi, esi
je 0x10008518
push esi
push eax
call fcn.10054cc4
add esp, 8
test eax, eax
je 0x10008518
sub eax, dword [edi + 0x10]
sar eax, 1
js 0x10008518
push 0x2000
lea eax, [ebp - 0x2014]
push 0
push eax
call fcn.10055b90
add esp, 0xc
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
lea eax, [ebp - 0x2014]
push 0xfff
push eax
call fcn.100075f0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.10061b56
or ebx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ebx
test eax, eax
js 0x1000847a
cmp eax, 0xfff
ja 0x1000847a
jne 0x10008480
xor eax, eax
mov word [ebp - 0x16], ax
call fcn.10004070
mov ecx, eax
test ecx, ecx
je 0x1000853e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2018], eax
lea eax, [ebp - 0x2014]
mov byte [ebp - 4], 1
push eax
push esi
lea eax, [ebp - 0x2018]
push str.__s___s_r_n
push eax
call fcn.10007310
mov esi, dword [ebp - 0x2018]
add esp, 0x10
cmp dword [edi + 8], 0
je 0x100084d0
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [edi + 4], 0
je 0x100084ff
mov ecx, dword [edi + 0xc]
cmp ecx, 0xffffffff
je 0x100084ff
push 0
mov dword [ebp - 0x2018], 0
lea edx, [ebp - 0x2018]
mov eax, dword [esi - 0xc]
push edx
add eax, eax
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10008518
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [edi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100535a4
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10001410
int3
Function at 0x1000b750
Capabilities:
Accept command line arguments
Print debug messages
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10080a40
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x100a1040]
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
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
jne 0x1000b79b
mov eax, 0x80004003
jmp 0x1000b8cf
push 0xf01ff
push str.ExtensionProtectIM
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
mov dword [ebp - 0x5c], ebx
test ebx, ebx
jne 0x1000b7c6
mov edi, 0x80004005
jmp 0x1000b8cd
xor edi, edi
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x168], edi
mov byte [ebp - 4], 1
call fcn.10004070
mov ecx, eax
test ecx, ecx
je 0x1000b8eb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x54], eax
push edi
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.10007ac0
test al, al
jne 0x1000b811
push edi
push edi
lea ecx, [ebp - 0x54]
call fcn.10007d40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x164]
mov eax, dword [ebp - 0x168]
cmp eax, ecx
je 0x1000b82e
push eax
call fcn.10058c58
add esp, 4
mov esi, dword [ebp - 0x54]
cmp dword [esi - 0xc], 0
je 0x1000b847
lea eax, [ebp - 0x58]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
mov dword [ebp - 0x60], eax
push edi
push dword [ebp - 0x58]
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [ebp - 0x54], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x40
mov edi, eax
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.10055b90
add esp, 0xc
lea eax, [ebp - 0x50]
push edi
push dword [ebp - 0x54]
push str.ExtensionProtectIM
push str.startDriver__s_:_d___error:_d
push 0x20
push eax
call fcn.1000cb60
add esp, 0x18
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x1000b8a1
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov edi, 0x80004005
cmp dword [ebp - 0x54], eax
cmovne edi, eax
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000b8c6
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
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.100535a4
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10001410
int3
Function at 0x1000b900
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x1000b926
pop edi
mov eax, 0x80004003
pop esi
pop ebp
ret
push 0
push 0
push 0
push 0
push 0
push edi
push 1
push 2
push 1
push 0xf01ff
push str.ExtensionProtectIM
push str.ExtensionProtectIM
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
jne 0x1000b978
push 0xf01ff
push str.ExtensionProtectIM
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
jne 0x1000b978
push esi
mov edi, 0x80004005
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
pop ebp
ret
push eax
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x1000d130
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10080c06
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x100a1040]
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 - 0x88]
push eax
call fcn.1000cde0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x74], 0
jne 0x1000d226
mov esi, dword [0x100a4098]
test esi, esi
je 0x1000d18e
lock inc dword [esi + 4]
mov esi, dword [0x100a4098]
mov ecx, dword [0x100a4094]
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x90], esi
mov byte [ebp - 4], 1
lea edx, [ebp - 0x8c]
mov eax, dword [ecx]
push edx
call dword [eax + 0x6c]
mov byte [ebp - 4], 2
mov edx, dword [eax]
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000d1c0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x84]
call fcn.1000c570
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov edx, dword [ebp - 0x8c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000d200
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
test esi, esi
je 0x1000d226
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1000d226
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x1000d226
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [ebp - 0x70], 7
lea edi, [ebp - 0x84]
push 0xf003f
cmova edi, dword [ebp - 0x84]
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x1000d2a5
push 0xf01ff
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x1000d268
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1000d2a5
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x28], 1
je 0x1000d292
lea eax, [ebp - 0x2c]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push ecx
push dword [ebp - 0x28]
push 1
push edi
call fcn.1001b570
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
lea ecx, [ebp - 0x88]
call fcn.100098e0
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.100535a4
mov esp, ebp
pop ebp
ret
Function at 0x1000f8f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x868
mov eax, dword [0x100a1040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x1000fa36
push 0x800
lea eax, [ebp - 0x808]
push 0
push eax
call fcn.10055b90
add esp, 0xc
lea eax, [ebp - 0x808]
test edi, edi
je 0x1000f946
push edi
push esi
push str._s__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x1000f956
push esi
push 0x10092f90
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x868]
mov dword [ebp - 0x858], 0x44
push eax
lea eax, [ebp - 0x858]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x808]
movlpd qword [ebp - 0x854], xmm0
push eax
push 0
movlpd qword [ebp - 0x84c], xmm0
movlpd qword [ebp - 0x844], xmm0
movlpd qword [ebp - 0x83c], xmm0
movlpd qword [ebp - 0x834], xmm0
movlpd qword [ebp - 0x82c], xmm0
movlpd qword [ebp - 0x824], xmm0
movlpd qword [ebp - 0x81c], xmm0
movups xmmword [ebp - 0x868], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1000fa36
cmp dword [ebp + 0x10], 0
je 0x1000fa09
push dword [ebp + 0x14]
push dword [ebp - 0x868]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x80c]
mov dword [ebp - 0x80c], 0
push eax
push dword [ebp - 0x868]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x868]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x864]
call esi
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100535a4
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.100535a4
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10013e10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008144b
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x100a1040]
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 esi, dword [0x100a4098]
mov dword [ebp - 0x94], 0
test esi, esi
je 0x10013e5c
lock inc dword [esi + 4]
mov esi, dword [0x100a4098]
mov ecx, dword [0x100a4094]
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0x9c], esi
mov dword [ebp - 4], 0
lea edx, [ebp - 0x98]
mov eax, dword [ecx]
push edx
call dword [eax + 0x3c]
lea ecx, [ebp - 0x94]
push ecx
push 0xf003f
push 0
push dword [eax]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp - 0x98]
or edi, 0xffffffff
mov ebx, eax
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10013ebe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x10013ee8
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x10013ee8
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x10013ee8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
test ebx, ebx
je 0x10013f9b
mov esi, dword [0x100a4098]
test esi, esi
je 0x10013f04
lock inc dword [esi + 4]
mov esi, dword [0x100a4098]
mov ecx, dword [0x100a4094]
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0x9c], esi
mov dword [ebp - 4], 1
lea edx, [ebp - 0x98]
mov eax, dword [ecx]
push edx
call dword [eax + 0x3c]
push 0
lea ecx, [ebp - 0x94]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push dword [eax]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edx, dword [ebp - 0x98]
mov ebx, eax
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10013f6b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x10013f8d
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x10013f8d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x10013f8d
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
test ebx, ebx
je 0x10013f9b
mov eax, 0x80004005
jmp 0x1001401e
push 0x80
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.10055b90
push 0
call fcn.10058ddb
push edx
push eax
lea eax, [ebp - 0x90]
push 0x10092ae4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp - 0x90]
add esp, 0x20
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10013fd5
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x90]
push eax
push 1
push 0
push str.Date
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x94]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg esi
sbb esi, esi
and esi, 0x80004005
mov eax, esi
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.100535a4
mov esp, ebp
pop ebp
ret
Function at 0x10014040
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x100a1040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x424]
push ecx
push 0xf003f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100141d9
push ebx
push esi
push edi
push eax
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x420]
push eax
push 0
push 0
push 0
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x10014111
push 0x20a
xor esi, esi
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.10055b90
add esp, 0xc
cmp dword [ebp - 0x420], esi
jbe 0x10014111
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push 0x105
lea eax, [ebp - 0x41c]
push eax
push esi
push dword [ebp - 0x424]
call ebx
test eax, eax
jne 0x10014108
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x424]
call edi
inc esi
cmp esi, dword [ebp - 0x420]
jb 0x100140e0
push dword [ebp - 0x424]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
push 0x20a
lea eax, [ebp - 0x210]
mov dword [ebp - 0x424], 0
push 0
push eax
call fcn.10055b90
push dword [ebp - 0x428]
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.10061eeb
lea eax, [ebp - 0x210]
push 0x5c
push eax
call fcn.10055187
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x10014181
lea eax, [ebp - 0x210]
push 0x2f
push eax
call fcn.10055187
mov esi, eax
add esp, 8
test esi, esi
je 0x100141d6
mov eax, esi
lea ecx, [ebp - 0x210]
sub eax, ecx
and eax, 0xfffffffe
cmp eax, 0x20a
jae 0x100141e9
xor ecx, ecx
mov word [ebp + eax - 0x210], cx
lea eax, [ebp - 0x424]
push eax
push 0xf003f
push ecx
lea eax, [ebp - 0x210]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100141ce
lea eax, [esi + 2]
push eax
push dword [ebp - 0x424]
call edi
push dword [ebp - 0x424]
call ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100535a4
mov esp, ebp
pop ebp
ret 4
call fcn.100536e7
int3