joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41bda8
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0xbc]
sub esp, 0x13c
mov eax, dword [0x438060]
push esi
push edi
push dword [0x438840]
xor eax, ebp
mov dword [ebp + 0xb8], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push dword [0x438844]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
mov dword [ebp - 0x80], esi
call edi
test eax, eax
jne 0x41bdfd
test esi, esi
je 0x41bedf
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x41bedf
push ebx
push 0
push 2
call eax
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41be20
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x41bede
push esi
jmp 0x41bed8
push dword [0x43883c]
lea esi, [ebp - 0x74]
call fcn.004015d9
mov eax, esi
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.004130c2
mov eax, dword [ebp - 0x74]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.0040147d
push dword [0x438848]
push dword [ebp - 0x80]
call edi
push dword [0x43884c]
mov esi, eax
push dword [ebp - 0x80]
call edi
push 0x49
mov dword [ebp - 0x74], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x6c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x70]
push eax
push ebx
mov dword [ebp - 0x70], 0x128
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41beb9
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x41beb1
push dword [ebp - 0x68]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test esi, esi
je 0x41beb1
push esi
call edi
lea eax, [ebp - 0x70]
push eax
push ebx
call dword [ebp - 0x74]
test eax, eax
jne 0x41be82
mov eax, dword [ebp - 0x78]
add eax, 0xfffffff0
call fcn.0040147d
test ebx, ebx
je 0x41becf
push ebx
call edi
cmp dword [ebp - 0x80], 0
je 0x41bede
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
mov ecx, dword [ebp + 0xb8]
pop edi
xor ecx, ebp
pop esi
call fcn.0042e08a
add ebp, 0xbc
leave
ret

Function at 0x41c4bc
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
push 0x3f7
push dword [esi + 4]
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call ebx
push 0x3eb
push dword [esi + 4]
call edi
push 0
push eax
mov dword [ebp - 4], eax
call ebx
push 0x3ec
push dword [esi + 4]
call edi
xor edi, edi
push edi
push eax
call ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x14]
push eax
add esi, 0x80
push dword [esi]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call ebx
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call ebx
mov eax, dword [ebp - 0x18]
push 0x222
push edi
mov dword [ebp - 8], eax
push esi
lea eax, [ebp - 0x14]
call fcn.00405241
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41da26
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov byte [eax + 0x68], cl
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x41e329
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, eax
xor ebx, ebx
cmp dword [esi], ebx
jne 0x41e340
xor al, al
jmp 0x41e3f5
mov eax, dword [0x438af8]
mov ecx, 0x438af8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0xc]
push dword [0x438850]
push eax
call fcn.004044d4
mov esi, dword [esi]
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 4], ebx
push esi
call sub.msi.dll_MsiEnableUIPreview
test eax, eax
je 0x41e38f
cmp dword [ebp - 4], ebx
je 0x41e3e8
push dword [ebp - 4]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
jmp 0x41e3e8
push ebx
push dword [ebp - 4]
call sub.msi.dll_MsiViewModify
test eax, eax
jne 0x41e380
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
je 0x41e3be
cmp dword [ebp - 8], ebx
je 0x41e380
push dword [ebp - 8]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
jmp 0x41e380
push 1
push dword [ebp - 8]
call fcn.0041e505
cmp dword [ebp - 8], ebx
mov byte [ebp + 0xb], al
je 0x41e3d8
push dword [ebp - 8]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 4], ebx
je 0x41e3e5
push dword [ebp - 4]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov bl, byte [ebp + 0xb]
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040147d
mov al, bl
pop esi
pop ebx
leave
ret 4
Function at 0x41e6a6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor esi, esi
inc esi
cmp byte [ebp + 0x14], 0
push edi
mov eax, esi
je 0x41e6bf
mov eax, 0x101
lea ecx, [ebp - 0x10]
push ecx
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x14
mov dword [ebp - 0xc], esi
pop esi
push esi
mov edi, eax
call fcn.0042ddf5
push esi
mov ebx, eax
mov dword [ebp - 8], esi
call fcn.0042ddf5
push eax
mov dword [ebp - 4], esi
call fcn.0042ddfa
push esi
call fcn.0042ddf5
and dword [ebp + 0x14], 0
add esp, 0x10
test edi, edi
mov esi, eax
jne 0x41e787
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0x10]
call edi
cmp eax, 0xea
mov dword [ebp - 0x14], eax
jne 0x41e770
push ebx
call fcn.0042ddfa
push dword [ebp - 8]
call fcn.0042ddf5
push esi
mov ebx, eax
call fcn.0042ddfa
push dword [ebp - 4]
call fcn.0042ddf5
add esp, 0x10
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0x10]
call edi
mov ecx, dword [ebp + 0x10]
mov edx, ebx
call fcn.00407589
test eax, eax
je 0x41e79e
inc dword [ebp + 0x14]
cmp dword [ebp - 0x14], 0
je 0x41e713
xor edi, edi
push esi
call fcn.0042ddfa
push ebx
call fcn.0042ddfa
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
or dword [ebp + 0x14], 0xffffffff
push 0xa
lea eax, [ebp + 0x14]
call fcn.004075ef
pop ecx
mov edi, eax
jmp 0x41e789

Function at 0x41f48a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
neg esi
sbb esi, esi
lea ecx, [eax - 0x20]
and esi, ecx
cmp byte [eax + 0x1c], 0
je 0x41f4cd
push 0xe801
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [ebp + 8], 2
jne 0x41f4be
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x41f4d3
cmp dword [ebp + 8], 0
jne 0x41f4cd
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 8], 1
je 0x41f4e7
mov eax, dword [ebp + 0xc]
shr eax, 0x10
movsx eax, ax
push eax
movsx eax, word [ebp + 0xc]
push eax
call fcn.0041e93e
xor eax, eax
pop esi
pop ebp
ret 8

Function at 0x41fe0b
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
lea eax, [ebp - 0x14]
xor edi, edi
push eax
push dword [esi + 4]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.USER32.dll_GetClientRect]
push 0x419
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x74]
call fcn.0042a465
push dword [eax]
push edi
push 0x172
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x210
push 1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
call fcn.00405241
mov byte [esi + 0x78], 1
pop edi
leave
ret
Function at 0x42196b
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp byte [esi], bl
je 0x421979
mov al, 1
jmp 0x4219eb
mov al, byte [ebp + 8]
push edi
mov byte [esi + 1], al
mov eax, dword [ebp + 0xc]
lea edi, [esi + 4]
mov byte [esi], 1
call fcn.00401bc0
push esi
lea edi, [ebp + 8]
call fcn.00421d36
cmp byte [esi + 1], bl
mov edi, dword [ebp + 8]
je 0x4219c4
push ebx
push 0x1388
mov eax, 0x7f90
push eax
push eax
push 0xff
push 6
push 3
push edi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
cmp byte [esi + 1], bl
mov dword [esi + 8], eax
jne 0x4219d9
push ebx
push ebx
push 3
push ebx
push ebx
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 8], eax
cmp dword [esi + 8], 0xffffffff
lea eax, [edi - 0x10]
setne bl
call fcn.0040147d
mov al, bl
pop edi
pop ebx
pop ebp
ret 8

Function at 0x421c03
Capabilities:
Connect pipe
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
push esi
mov esi, eax
jne 0x421c3a
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x421c3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x217
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 4], eax
jne 0x421c3a
cmp byte [esi + 0x11], bl
je 0x421c8c
mov eax, dword [esi + 0xc]
push ebx
lea ecx, [ebp + 0xc]
push ecx
push 0x7f90
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi + 0xc]
shr ecx, 1
cmp eax, ebx
mov word [edx + ecx*2], bx
je 0x421c8c
cmp dword [ebp + 0xc], ebx
je 0x421c8c
push dword [esi + 0xc]
lea esi, [ebp + 8]
call fcn.0040101b
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
mov eax, esi
call fcn.00421e8c
add eax, 0x10
mov dword [edi], eax
mov eax, esi
call fcn.0040147d
jmp 0x421c93
mov esi, edi
call fcn.00401f8b
pop esi
mov eax, edi
pop ebx
leave
ret 8

Function at 0x421c9b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, eax
je 0x421cc6
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push 0
lea edx, [ebp + 0x10]
push edx
add ecx, ecx
push ecx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x421ccd
call fcn.00401f8b
jmp 0x421cde
mov eax, dword [ebp + 8]
push edi
push 1
push dword [ebp + 0xc]
mov edi, esi
call fcn.00421c03
pop edi
mov eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x421ce5
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [eax]
push 0
lea ecx, [esp + 4]
push ecx
mov ecx, dword [eax - 0xc]
shl ecx, 1
push ecx
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop ecx
ret
Function at 0x422239
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xdc
mov eax, dword [0x438060]
push esi
push edi
xor edi, edi
push edi
xor eax, ebp
mov dword [ebp + 0x74], eax
lea eax, [ebp - 0x5c]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x42227d
xor al, al
jmp 0x422399
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
cmp ecx, 0x4f
mov dword [ebp - 0x60], eax
jle 0x422291
lea eax, [eax + ecx - 0x4f]
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x54]
push ecx
push edi
push edi
push eax
push dword [ebp - 0x5c]
mov dword [ebp - 0x64], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
mov dword [ebp - 0x58], eax
jne 0x4222c0
cmp dword [ebp - 0x64], 0xc8
jbe 0x422388
mov eax, dword [0x438af8]
mov ecx, 0x438af8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x58], eax
mov eax, dword [ebx]
cmp dword [eax - 0xc], edi
je 0x422325
mov eax, dword [esi]
cmp dword [eax - 0xc], edi
jge 0x4222eb
push 0x80070057
call fcn.004014b6
mov eax, dword [esi]
cmp byte [eax], 0x22
je 0x422325
push 0x20
xor ecx, ecx
call fcn.0040259b
cmp eax, 0xffffffff
je 0x422325
push 0x22
lea eax, [ebp - 0x58]
call fcn.00408cc9
mov esi, dword [esi]
push dword [esi - 0xc]
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.004026e5
push 0x22
lea eax, [ebp - 0x58]
call fcn.00408cc9
jmp 0x42232f
mov eax, esi
lea edi, [ebp - 0x58]
call fcn.00401bc0
mov eax, dword [ebx]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x422355
jge 0x422344
push 0x80070057
call fcn.004014b6
mov eax, dword [ebx]
cmp byte [eax], 0x20
je 0x422355
push 0x20
lea eax, [ebp - 0x58]
call fcn.00408cc9
mov eax, dword [ebx]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004026e5
mov esi, dword [ebp - 0x58]
push dword [esi - 0xc]
push esi
push 1
push 0
push dword [ebp - 0x60]
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x58], eax
lea eax, [esi - 0x10]
call fcn.0040147d
xor edi, edi
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 0x58], edi
sete al
mov ecx, dword [ebp + 0x74]
pop edi
xor ecx, ebp
pop esi
call fcn.0042e08a
add ebp, 0x78
leave
ret
Function at 0x4223aa
Capabilities:
Get session user name
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x438af8]
push ebx
push esi
push edi
mov ecx, 0x438af8
call dword [eax + 0xc]
add eax, 0x10
push 0x64
mov dword [ebp - 4], eax
pop eax
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 8], eax
push eax
lea eax, [ebp - 4]
call fcn.00404e4b
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov ebx, dword [ebp - 4]
mov ecx, ebx
call fcn.0040195b
mov esi, eax
lea edi, [ebp - 4]
call fcn.00401495
mov eax, dword [0x438af8]
mov ecx, 0x438af8
call dword [eax + 0xc]
add eax, 0x10
push 0x64
mov dword [ebp - 4], eax
push 0x64
lea eax, [ebp - 4]
call fcn.00404e4b
push eax
push str.UserDomain
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ecx, dword [ebp - 4]
call fcn.0040195b
mov esi, eax
lea edi, [ebp - 4]
call fcn.00401495
mov esi, 0x4317ac
mov ecx, esi
call fcn.0040195b
push eax
push esi
mov eax, edi
push eax
call fcn.004026e5
push dword [ebx - 0xc]
mov eax, edi
push ebx
push eax
call fcn.004026e5
mov esi, dword [ebp - 4]
add esi, 0xfffffff0
mov eax, esi
call fcn.00401c33
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov eax, esi
call fcn.0040147d
lea eax, [ebx - 0x10]
call fcn.0040147d
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42247d
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4224a6
xor al, al
leave
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax]
mov eax, dword [esi - 0xc]
cmp eax, 0x4f
push edi
jle 0x4224b9
lea esi, [esi + eax - 0x4f]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
push 0
push 0
push esi
push dword [ebp - 8]
mov dword [ebp - 0xc], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
je 0x4224e4
cmp edi, 0xea
jne 0x4224f0
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edi, eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
pop edi
sete al
pop esi
leave
ret
Function at 0x422adc
Capabilities:
Create process on windows
Query service status
Start service

Disassembly:
push ebp
lea ebp, [esp - 0x180]
sub esp, 0x200
mov eax, dword [0x438060]
xor eax, ebp
push esi
mov dword [ebp + 0x17c], eax
push edi
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xc], 1
jne 0x422ba1
push str.SYSTEM_AGENT_COM_WINDOW
push str.SAGEWINDOWCLASS
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x422b2f
xor eax, eax
jmp 0x422c06
push 0x44
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.0042e270
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0x78]
push eax
push 0x104
push edi
push str.mstask.exe
push edi
mov dword [ebp - 0x80], esi
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne 0x422b6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x422c06
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x80]
push eax
push edi
push edi
push 0x210
push edi
push edi
push edi
push edi
lea eax, [ebp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x422b63
push dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x2c]
call esi
jmp 0x422b28
push 1
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
cmp esi, edi
je 0x422b63
push ebx
push 0x14
push str.Schedule
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call esi
cmp ebx, edi
jne 0x422bd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x422c05
lea eax, [ebp - 0x3c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x422bfb
cmp dword [ebp - 0x38], 4
je 0x422c00
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x422c00
push ebx
call esi
jmp 0x422bd1
push ebx
call esi
xor eax, eax
pop ebx
mov ecx, dword [ebp + 0x17c]
pop edi
xor ecx, ebp
pop esi
call fcn.0042e08a
add ebp, 0x180
leave
ret
Function at 0x42346d
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x438060]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov dword [ebp - 0x80], ecx
lea ecx, [ebp - 0x74]
push ecx
xor eax, ebp
lea ecx, [ebp - 0x6c]
push ecx
mov dword [ebp + 0x98], eax
mov eax, dword [ebp + 0xa4]
push edi
push eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x74], 0x104
call ebx
test eax, eax
jne 0x423502
push esi
lea eax, [ebp - 0x6c]
push eax
lea esi, [ebp - 0x78]
call fcn.004015d9
mov eax, esi
mov esi, dword [ebp - 0x80]
push eax
call fcn.00408a14
mov eax, dword [ebp - 0x78]
inc dword [ebp - 0x70]
add eax, 0xfffffff0
call fcn.0040147d
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x104
push dword [ebp - 0x7c]
call ebx
test eax, eax
je 0x4234bd
pop esi
mov ecx, dword [ebp + 0x98]
pop edi
xor ecx, ebp
pop ebx
call fcn.0042e08a
add ebp, 0x9c
leave
ret 4

Function at 0x42351b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
and dword [ebp - 8], 0
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0
push eax
push dword [ebp + 8]
call edi
cmp eax, 0xea
mov dword [ebp - 0xc], eax
jne 0x42358e
mov edx, dword [ebp - 8]
push esi
mov esi, ebx
call fcn.00401792
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
lea eax, [ebp - 8]
push eax
call fcn.004044e7
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov ecx, dword [ebx]
mov dword [ebp - 0xc], eax
call fcn.0040195b
mov esi, eax
mov edi, ebx
call fcn.00401495
pop esi
xor eax, eax
cmp dword [ebp - 0xc], eax
pop edi
setne al
leave
ret
Function at 0x423599
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
lea ebp, [esp - 0xfc]
sub esp, 0x17c
mov eax, dword [0x438060]
xor eax, ebp
push ebx
mov dword [ebp + 0xf8], eax
mov eax, dword [ebp + 0x110]
push esi
push edi
mov edi, dword [ebp + 0x10c]
mov dword [ebp - 0x5c], eax
lea eax, [ebp + 0x104]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x64], edi
call fcn.00411555
mov eax, dword [0x438af8]
mov ecx, 0x438af8
call dword [eax + 0xc]
mov ebx, dword [ebp + 0x104]
add eax, 0x10
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
push eax
add ebx, 0xfffffff0
push ecx
mov eax, ebx
mov esi, esp
mov dword [ebp - 0x68], ebx
call fcn.00401c33
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.004237af
test al, al
je 0x42365b
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.0042cd65
push 0
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.0042cf1f
mov esi, dword [ebp - 0x5c]
push eax
call fcn.00408a14
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff0
call fcn.0040147d
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x60]
call fcn.00423895
test al, al
je 0x42365b
xor esi, esi
jmp 0x423742
cmp dword [ebp + 0x108], 1
jge 0x42366c
xor esi, esi
inc esi
jmp 0x423742
mov eax, ebx
call fcn.00401c33
add eax, 0x10
mov esi, 0x431d98
mov ecx, esi
mov dword [ebp - 0x4c], eax
call fcn.0040195b
push eax
push esi
lea eax, [ebp - 0x4c]
push eax
call fcn.004026e5
lea eax, [ebp - 0x48]
push eax
lea esi, [ebp - 0x4c]
call fcn.004044e7
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp dword [ebp - 0x58], 0xffffffff
setne al
test al, al
je 0x423725
lea eax, [ebp - 0x48]
call fcn.0042378c
test al, al
je 0x423713
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x104]
lea edi, [ebp - 0x6c]
call fcn.0040631d
mov eax, dword [ebp + 0x108]
mov ebx, dword [ebp - 0x6c]
pop ecx
push dword [ebp - 0x5c]
dec eax
push dword [ebp - 0x64]
lea esi, [ebx - 0x10]
push eax
push ecx
mov eax, esi
mov edi, esp
call fcn.00401c33
mov ecx, dword [ebp - 0x60]
add eax, 0x10
mov dword [edi], eax
call fcn.00423599
test eax, eax
je 0x423771
mov eax, esi
call fcn.0040147d
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
je 0x4236be
cmp dword [ebp - 0x58], 0
je 0x423734
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
inc esi
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff0
call fcn.0040147d
mov eax, dword [ebp - 0x50]
add eax, 0xfffffff0
call fcn.0040147d
mov eax, dword [ebp - 0x68]
call fcn.0040147d
mov ecx, dword [ebp + 0xf8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e08a
add ebp, 0xfc
leave
ret 0x10
lea eax, [ebx - 0x10]
call fcn.0040147d
cmp dword [ebp - 0x58], 0
je 0x423788
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
jmp 0x423737
Function at 0x423a4f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp byte [ebp + 0x10], bl
jne 0x423a8e
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004239db
cmp byte [ebp + 0x14], bl
pop ecx
pop ecx
je 0x423a86
cmp eax, ebx
setne byte [ebp + 0x17]
cmp eax, ebx
je 0x423a7e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp + 0x17]
jmp 0x423b1e
cmp eax, ebx
sete byte [ebp + 0x17]
jmp 0x423a73
push esi
push edi
mov edi, dword [ebp + 8]
push 0x5c
mov esi, edi
call fcn.004025c0
mov esi, eax
cmp esi, ebx
mov dword [ebp + 0x10], 3
jl 0x423b05
lea eax, [ebp - 4]
push eax
mov eax, esi
xor ecx, ecx
call fcn.00406cc7
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.004239db
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x423afa
lea eax, [ebp + 0x10]
push eax
mov eax, dword [ebp + 8]
lea ecx, [esi + 1]
call fcn.004072bd
mov esi, dword [ebp + 0x10]
push ebx
push ebx
push ebx
push ebx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp + 0x10], eax
lea eax, [esi - 0x10]
call fcn.0040147d
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040147d
cmp byte [ebp + 0x14], bl
pop edi
pop esi
je 0x423b16
xor eax, eax
cmp dword [ebp + 0x10], ebx
sete al
jmp 0x423b1e
xor eax, eax
cmp dword [ebp + 0x10], ebx
setne al
pop ebx
leave
ret 0x10