joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b09f8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4b0ab2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404740
mov eax, dword [0x4cc5a4]
cmp byte [eax], 0
je 0x4b0a67
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.00404aa0
mov eax, dword [ebx]
call fcn.004048cc
push eax
mov eax, dword [ebx]
call fcn.004048bc
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.004048cc
mov edx, eax
dec edx
mov eax, ebx
call fcn.00404aa0
jmp 0x4b0a99
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.0040918c
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.004048ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b0ab9
lea eax, [ebp - 0x3f0]
call fcn.00404034
ret

Function at 0x4b0ac0
Capabilities:
Get graphical window text

Disassembly:
push ebx
add esp, 0xfffffc14
mov ebx, edx
mov edx, esp
push edx
push 0x3e8
push 0xd
push eax
call sub.user32.dll_SendMessageA
mov edx, ebx
mov eax, esp
call fcn.0040918c
add esp, 0x3ec
pop ebx
ret

Function at 0x4b0c80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff00
mov esi, edx
mov ebp, eax
mov edx, esi
mov eax, dword [ebp + 0x3c]
call dword [ebp + 0x38]
cmp dword [esi + 0xc], 0
jne 0x4b0d46
push esp
call sub.user32.dll_GetKeyboardState
mov eax, esp
call fcn.00456d68
mov ebx, eax
mov dx, word [esi + 4]
mov eax, ebp
call fcn.004b093c
mov edi, eax
test edi, edi
je 0x4b0cdf
mov al, byte [0x4b0d54]
cmp al, bl
jne 0x4b0cdf
mov edx, edi
mov eax, ebp
call fcn.004b0874
mov dword [esi + 0xc], 1
mov byte [ebp + 0x31], 1
jmp 0x4b0d46
cmp byte [ebp + 0x161], 2
jne 0x4b0d0a
mov eax, dword [esi + 8]
push eax
movzx ecx, word [esi + 4]
mov eax, dword [0x4ccb6c]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
mov edx, 0xb006
call fcn.00440fe8
test eax, eax
jne 0x4b0d46
jmp 0x4b0d41
mov edx, dword [0x4cc9d8]
mov edx, dword [edx]
mov edx, dword [edx + 0x44]
mov eax, dword [ebp + 0x128]
cmp edx, eax
je 0x4b0d41
test byte [eax + 0x2f4], 8
jne 0x4b0d41
mov eax, dword [esi + 8]
push eax
movzx ecx, word [esi + 4]
mov eax, dword [0x4cc9d8]
mov eax, edx
mov edx, 0xb006
call fcn.00440fe8
xor eax, eax
mov dword [esi + 0xc], eax
add esp, 0x100
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4b7100
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov esi, edx
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, eax
mov eax, dword [0x4ccb6c]
mov eax, dword [eax]
cmp dword [eax + 0x58], 0
jne 0x4b71a6
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebx + 0x80]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x84]
cdq
cmp edx, dword [esp + 4]
jne 0x4b7145
cmp eax, dword [esp]
pop edx
pop eax
jae 0x4b7181
jmp 0x4b7149
pop edx
pop eax
jge 0x4b7181
mov eax, dword [0x4ccb6c]
mov eax, dword [eax]
mov dword [eax + 0x38], 2
call sub.kernel32.dll_GetTickCount
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004b1a74
mov eax, dword [ebx + 0xf4]
test eax, eax
je 0x4b71a6
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov ebx, dword [eax]
call dword [ebx + 0x40]
jmp 0x4b71a6
cmp dword [ebx + 0x11c], 0
je 0x4b71a6
xor edx, edx
mov eax, dword [ebx + 0x58]
call fcn.004331f8
push 0
push 0
push 0x10
mov eax, dword [ebx + 0x12c]
push eax
call sub.user32.dll_PostMessageA
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4c1cf4
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
cmp byte [ebx + 0x98], 0
je 0x4c1d1a
push 0
mov eax, dword [ebx + 0x94]
call fcn.00446654
push eax
call sub.user32.dll_ShowWindow
mov byte [ebx + 0x98], 0
pop ebx
ret

Function at 0x4c1dd4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c1f45
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xa4], 1
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x4c1f2a
lea eax, [ebp - 0x10d]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 8]
lea eax, [ebp - 0x10d]
call fcn.0040918c
mov dl, 1
mov eax, dword [0x4979fc]
call fcn.00497a54
mov edx, dword [ebp - 4]
mov dword [edx + 0x9c], eax
mov dl, 1
mov eax, dword [0x4190f0]
call fcn.00403230
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xa0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
call fcn.00497ad0
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x4c1f27
mov dl, 1
mov eax, dword [0x498f10]
call fcn.00498f78
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
mov edx, 0x4c1f5c
call fcn.00498238
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00404340
xor eax, eax
push ebp
push 0x4c1f20
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.00499278
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004c1f64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c1f27
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
call fcn.00403260
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
call fcn.00403260
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.00403260
ret
mov bl, byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c1f4c
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404058
ret
Function at 0x40137c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x24], edi
jne 0x4013b1
cmp dword [esi + 0x38], edi
jne 0x4013b1
cmp dword [esi + 0x3c], edi
jne 0x4013b1
cmp dword [esi + 0x48], 0xffffffff
jne 0x4013b1
cmp dword [esi + 0x50], edi
jne 0x4013b1
cmp dword [esi + 0x54], edi
je 0x4013e2
push str._m_pIAsyncEventMgrEventSink__NULL____m_hEventSuspendThread__NULL____m_hEventThreadSuspended__NULL____m_lThreadSuspendCount___1____m_ulEventCount__0____m_phEvents__NULL_
lea eax, [ebp - 0x414]
push str.ASSERT__s_
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x414]
mov ecx, 0x503ff0
push eax
push 0x9d
push str.AsyncEventMgr.cpp
call fcn.00423080
cmp dword [esi + 0x58], edi
jne 0x4013ec
cmp dword [esi + 0x5c], edi
je 0x40141d
push str._m_hThread__NULL____m_dwThreadID__0_
lea eax, [ebp - 0x414]
push str.ASSERT__s_
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x414]
mov ecx, 0x503ff0
push eax
push 0x9e
push str.AsyncEventMgr.cpp
call fcn.00423080
lea eax, [esi + 0xc]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
push edi
push edi
push edi
push edi
mov dword [esi + 0x24], eax
call ebx
cmp eax, edi
mov dword [esi + 0x38], eax
je 0x4014c9
push edi
push edi
push 1
push edi
call ebx
cmp eax, edi
mov dword [esi + 0x3c], eax
je 0x4014c9
push edi
push edi
push edi
push edi
call ebx
cmp eax, edi
mov dword [esi + 0x40], eax
je 0x4014c9
push dword [esi + 0x38]
mov ecx, esi
call fcn.00401a6f
mov ebx, eax
cmp ebx, edi
jl 0x4014d2
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], edi
push eax
mov dword [ebp - 0xc], edi
push dword [ebp + 8]
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
push 0x4d6ae0
call dword [sym.imp.ole32.dll_CoMarshalInterThreadInterfaceInStream]
mov ebx, eax
cmp ebx, edi
jl 0x4014d2
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], eax
lea eax, [esi + 0x5c]
push eax
lea eax, [ebp - 0x10]
push edi
push eax
push 0x401054
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x58], eax
je 0x4014c9
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4014ce
mov ebx, 0x8007000e
cmp ebx, edi
jge 0x4014d9
mov ecx, esi
call fcn.00402074
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 8

Function at 0x414f5d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x84], 2
jne 0x414f94
cmp dword [ebp - 0x90], 5
jne 0x414f94
push 1
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x41506d
Capabilities:
Create thread

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esi + 0x24]
push eax
push ebx
push esi
push 0x4151f4
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 0x28], eax
je 0x4150c7
push 0x1388
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4150b1
push str.Device_monitor_thread_is_running...
jmp 0x4150bb
mov ebx, 0x80004005
push str.Device_monitor_thread_failed_to_signal
push 0x503ff0
call fcn.00423100
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4156bd
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push esi
push edi
xor edi, edi
mov esi, ecx
cmp dword [ebp + 8], edi
jne 0x415709
push str.pINMSEventSink___NULL
lea eax, [ebp - 0x414]
push str.ASSERT__s_
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x414]
mov ecx, 0x503ff0
push eax
push 0x86
push str.EventDispatcher.cpp
call fcn.00423080
cmp dword [esi + 0x28], edi
jne 0x415713
cmp dword [esi + 0x2c], edi
je 0x415744
push str._m_hThread__NULL____m_dwThreadID__0_
lea eax, [ebp - 0x414]
push str.ASSERT__s_
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x414]
mov ecx, 0x503ff0
push eax
push 0x87
push str.EventDispatcher.cpp
call fcn.00423080
lea eax, [esi + 0xc]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0xc]
mov ebx, dword [esi + 0x30]
mov dword [esi + 0x30], eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x10], edi
push dword [ebp + 8]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
push 0x4d6ae0
call dword [sym.imp.ole32.dll_CoMarshalInterThreadInterfaceInStream]
cmp eax, edi
mov dword [ebp + 8], eax
jl 0x4157d2
push edi
push edi
push edi
push edi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 8], eax
lea eax, [esi + 0x2c]
push eax
lea eax, [ebp - 0x10]
push edi
push eax
push 0x41540c
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x28], eax
je 0x4157dc
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], edi
jl 0x4157dc
push 0x503c4c
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4157dc
mov ecx, esi
call fcn.004157ef
mov dword [esi + 0x30], ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x418cff
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
jne 0x418d19
xor esi, esi
jmp 0x418d47
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.004bf9a0
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 4], edi
jne 0x418d82
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x418d7b
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x418e17
xor esi, esi
jmp 0x418e17
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x418da5
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jne 0x418db8
xor esi, esi
jmp 0x418e0e
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebx
mov dword [ebp + 8], edi
jne 0x418dca
jmp 0x418d95
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x418e0e
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov eax, dword [ebp + 8]
cmp byte [esi + eax], bl
je 0x418e00
lea eax, [esi + 1]
add eax, 3
and al, 0xfc
call fcn.004bf9a0
lea eax, [esi + 1]
mov edi, esp
push eax
push dword [ebp + 8]
push edi
call fcn.004bf200
add esp, 0xc
mov byte [edi + esi], bl
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push edi
call fcn.00418ede
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea esp, [ebp - 0x18]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x41990a
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x4cace4
call fcn.004bf1dc
sub esp, 0x114
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esi
push 0x2001f
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebx]
call fcn.004198cc
mov edi, eax
cmp edi, esi
je 0x419954
cmp dword [ebp - 0x10], esi
je 0x41994d
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x4199f1
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x4199c5
lea eax, [ebp - 0x120]
lea ecx, [ebp - 0x10]
push eax
call fcn.0041990a
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x4199b2
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
push eax
push esi
push dword [ebp - 0x10]
jmp 0x419977
cmp dword [ebp - 0x10], esi
je 0x4199c0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
jmp 0x4199f1
cmp dword [ebp - 0x10], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4199d8
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 0x10], esi
mov ebx, eax
je 0x4199ef
push dword [ebp - 0x10]
call edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x419a02
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.004bf9a0
push ebx
push esi
lea eax, [ebp - 0x2014]
push edi
mov esi, ecx
push eax
mov dword [ebp - 0x14], esi
call fcn.00419037
xor edi, edi
cmp eax, edi
jl 0x419bba
lea eax, [ebp - 0xa]
push eax
lea eax, [ebp - 0x2014]
push eax
call fcn.00419bc7
pop ecx
test eax, eax
pop ecx
jne 0x419a4d
mov eax, 0x80020009
jmp 0x419bba
mov ecx, esi
call fcn.0041900f
lea eax, [ebp - 0x1014]
mov ecx, esi
push eax
call fcn.00419037
cmp eax, edi
jl 0x419bba
movzx eax, word [ebp - 0xa]
sub eax, 8
je 0x419b82
sub eax, 9
je 0x419ae7
dec eax
dec eax
jne 0x419ba9
lea eax, [ebp - 0x1014]
test eax, eax
jne 0x419a92
xor ebx, ebx
jmp 0x419ac7
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.004bf9a0
mov ebx, esp
push esi
push ebx
lea eax, [ebp - 0x1014]
push 0xffffffffffffffff
push eax
push edi
push edi
mov word [ebx], di
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x10]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
jmp 0x419b9a
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp - 8], eax
jne 0x419b23
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.004bf9a0
mov dword [ebp - 4], esp
push ebx
push edi
push dword [ebp - 4]
call fcn.004bf540
add esp, 0xc
cmp dword [ebp - 4], edi
jne 0x419b2d
mov eax, 0x80004005
jmp 0x419bba
cmp dword [ebp - 8], 0
jle 0x419b67
mov ecx, dword [ebp - 4]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov al, byte [ebp + edi - 0x1014]
push eax
call fcn.00419c4e
pop ecx
mov ecx, edi
push 4
and ecx, 1
shl ecx, 2
mov edx, ecx
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 8]
jl 0x419b33
mov eax, dword [ebp + 8]
push ebx
push dword [ebp - 4]
mov eax, dword [eax]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edi, edi
jmp 0x419ba9
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x1014]
push eax
push 1
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.00419037
cmp eax, edi
jl 0x419bba
xor eax, eax
lea esp, [ebp - 0x2020]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x419e0a
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
push esi
push edi
push 0xf
pop ecx
mov esi, str.SYSTEMCurrentControlSetServicesEventlogApplicationNMSSvc
lea edi, [ebp - 0x74]
lea eax, [ebp - 0x74]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, 0xf003f
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push edi
xor ebx, ebx
push eax
push esi
lea ecx, [ebp - 4]
mov dword [ebp - 4], ebx
call fcn.004198cc
test eax, eax
je 0x419edc
lea eax, [ebp - 0x10]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 8]
push eax
push ebx
push edi
push ebx
push ebx
lea eax, [ebp - 0x74]
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x419e80
xor eax, eax
cmp dword [ebp - 4], ebx
je 0x419e76
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
cmp eax, ebx
mov dword [ebp - 4], ecx
je 0x419e92
cmp dword [ebp - 4], ebx
je 0x419e8e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x419eed
push 8
mov esi, str._SystemRoot_System32_nmsmsg.dll
pop ecx
lea edi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x34]
push eax
movsb byte es:[edi], byte [esi]
call fcn.004bf9d0
mov edi, dword [ebp - 4]
pop ecx
inc eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
lea eax, [ebp - 0x34]
push eax
push 2
push ebx
push str.EventMessageFile
push edi
mov dword [ebp - 0xc], 7
call esi
lea eax, [ebp - 0xc]
push 4
push eax
push 3
push ebx
push str.TypesSupported
push edi
call esi
cmp dword [ebp - 4], ebx
je 0x419eea
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x419ef2
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
xor edi, edi
push 0xf003f
push edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, edi
mov dword [ebp - 8], eax
je 0x419f81
push ebx
push esi
push 0xf01ff
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
cmp esi, edi
je 0x419f7a
lea eax, [ebp - 0x24]
push eax
push 1
pop edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x419f77
cmp dword [ebp - 0x20], edi
je 0x419f74
mov dword [ebp + 8], 0x28
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x419f77
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x20], edi
je 0x419f74
dec dword [ebp + 8]
jne 0x419f4e
jmp 0x419f77
mov dword [ebp - 4], edi
push esi
call ebx
push dword [ebp - 8]
call ebx
pop esi
pop ebx
mov eax, dword [ebp - 4]
pop edi
leave
ret
Function at 0x41a90d
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [ebp - 8], esi
call fcn.0041aa31
test eax, eax
je 0x41a96d
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x41aa29
push 1
add ebx, 0x84
pop edi
push edi
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
cmp eax, esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x41a963
push eax
mov dword [ebp - 8], edi
call esi
push dword [ebp - 4]
call esi
jmp 0x41aa29
lea eax, [ebp - 0xdc]
mov dword [ebp - 0xdc], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xcc], 1
jne 0x41aa29
push 0xd
mov dword [ebp - 4], esi
pop ecx
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionRunServices
lea edi, [ebp - 0x48]
lea eax, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
push 0xf003f
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 4]
movsw word es:[edi], word [esi]
call fcn.004198cc
test eax, eax
jne 0x41aa1a
mov esi, 0x104
lea eax, [ebp - 0x250]
push esi
xor edi, edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x10]
add ebx, 0x84
push eax
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push ebx
mov dword [ebp - 0x10], esi
push dword [ebp - 4]
mov dword [ebp - 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41aa1a
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.004c0134
neg eax
sbb eax, eax
pop ecx
inc eax
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x41aa29
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41aa31
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x84], 2
jne 0x41aa71
cmp dword [ebp - 0x90], 4
je 0x41aa6c
cmp dword [ebp - 0x90], 5
jne 0x41aa71
push 1
pop eax
leave
ret
xor eax, eax
leave
ret

Function at 0x41aa75
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
lea eax, [ebp + 0x10]
push edi
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call fcn.004c025b
xor esi, esi
add esp, 0xc
cmp dword [0x504028], esi
lea eax, [ebp - 0x104]
mov dword [ebp - 4], eax
je 0x41aae0
mov eax, dword [ebp + 8]
add eax, 0x84
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov edi, eax
cmp edi, esi
je 0x41aaed
lea eax, [ebp - 4]
push esi
push eax
push esi
push 1
push esi
push 0x41000000
push esi
push 4
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push edi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x41aaed
lea eax, [ebp - 0x104]
push eax
call fcn.004c01e3
pop ecx
pop edi
pop esi
leave
ret