joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478347
Capabilities:
Check for time delay via gettickcount
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [0x4a308c], 0
je 0x47836a
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
sub eax, dword [0x4a3088]
cmp eax, 0x4e20
jbe 0x4783cf
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], 4
push eax
push 0
push 0x18
push 0x406264
push 0x404a78
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
je 0x4783bc
mov dword [ebp - 4], 1
call fcn.004783dc
mov ecx, eax
call fcn.00478069
test eax, eax
je 0x4783bc
mov eax, dword [ebp - 4]
or eax, 2
mov dword [ebp - 4], eax
jmp 0x4783bf
mov eax, dword [ebp - 4]
mov dword [0x4a308c], eax
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov dword [0x4a3088], eax
mov eax, dword [0x4a308c]
leave
ret

Function at 0x47863d
Capabilities:
Delete registry value
Set registry value

Disassembly:
push 0x14
mov eax, 0x46b0cd
call fcn.004678e3
mov dword [ebp - 0x14], ecx
test byte [0x4a2fc1], 8
je 0x478665
push ecx
mov edx, 0x407040
mov ecx, 0x4a0818
call fcn.004792a1
lea ecx, [ebp - 0x10]
call fcn.004205ea
and dword [ebp - 4], 0
call fcn.0047525e
push eax
push 0xf003f
push ecx
mov edx, 0x404a78
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00441760
mov esi, eax
mov edi, 0x80070000
test esi, esi
jle 0x47869e
movzx esi, si
or esi, edi
test esi, esi
jns 0x4786ab
push esi
mov edx, 0x5f6
jmp 0x478740
cmp dword [ebp - 0x14], 1
jne 0x4786f7
call fcn.0043f8c6
mov esi, eax
test esi, esi
jns 0x4786c4
push esi
mov edx, 0x5ff
jmp 0x478740
push 0x4062fc
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
mov esi, eax
cmp esi, 2
je 0x4786e9
cmp esi, 3
je 0x4786e9
test esi, esi
jle 0x4786ed
movzx esi, si
or esi, edi
jmp 0x4786eb
xor esi, esi
test esi, esi
jns 0x4786f7
push esi
mov edx, 0x60a
jmp 0x478740
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push 0x406c24
push 0
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_shcore_registry_l1_1_0.dll_SHSetValueW]
mov esi, eax
test esi, esi
jle 0x47871c
movzx esi, si
or esi, edi
test esi, esi
jns 0x478726
push esi
mov edx, 0x612
jmp 0x478740
lea ecx, [ebp - 0x20]
call fcn.004249a0
lea ecx, [ebp - 0x20]
call fcn.00476ae5
test eax, eax
jns 0x47874d
push eax
mov edx, 0x616
mov ecx, dword [ebp + 4]
push 0x406418
call fcn.00475b3c
lea ecx, [ebp - 0x10]
call fcn.0041fe17
mov eax, esi
call fcn.0046789f
ret
Function at 0x4789c5
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 4]
mov edx, 0x410e48
push eax
push 2
push ecx
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00441760
mov esi, eax
mov edi, 0x80070000
test esi, esi
jle 0x4789f6
movzx esi, si
or esi, edi
test esi, esi
js 0x478a2b
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 4
push 0x410e98
push 0
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_shcore_registry_l1_1_0.dll_SHSetValueW]
mov esi, eax
test esi, esi
jle 0x478a22
movzx esi, si
or esi, edi
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x478ad6
Capabilities:
Set registry value

Disassembly:
push 0x21c
mov eax, 0x46b20f
call fcn.0046791c
mov edi, edx
mov dword [ebp - 0x228], ecx
lea eax, [ebp - 0x21c]
mov edx, 0x404a78
push eax
push 0xf003f
push ecx
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00441760
mov esi, eax
test esi, esi
jle 0x478b18
movzx esi, si
or esi, 0x80070000
mov ecx, dword [ebp + 4]
xor ebx, ebx
test esi, esi
jns 0x478b33
push esi
push 0x406418
mov edx, 0x1aa
call fcn.00475b3c
jmp 0x478b86
push 4
lea eax, [ebp - 0x228]
push eax
push 4
push ebx
push 0x406264
push dword [ebp - 0x21c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jle 0x478b5f
movzx esi, si
or esi, 0x80070000
mov ecx, dword [ebp + 4]
test esi, esi
jns 0x478b76
push esi
push 0x406418
mov edx, 0x1b0
call fcn.00475b3c
push dword [ebp - 0x21c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test esi, esi
jns 0x478c01
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x224], ebx
push ebx
push eax
mov dword [ebp - 0x220], ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push ebx
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x224]
call fcn.004358fc
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x224]
push dword [edi + 8]
push dword [edi + 4]
push 0x7d0
call fcn.0043598b
push 0xffffffffffffffff
push 0x410dc8
mov ecx, edi
mov dword [edi + 0xc], eax
call fcn.00433b6f
lea ecx, [ebp - 0x224]
call fcn.0042b397
mov eax, esi
call fcn.004678b9
ret
Function at 0x478f74
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4a13b4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x410]
mov edx, 0x406748
push eax
push 9
push ecx
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00441760
test eax, eax
jne 0x479051
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x414]
push ebx
push ebx
push ebx
push ebx
push eax
lea eax, [ebp - 0x204]
mov edi, ebx
push eax
push ebx
jmp 0x479018
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], 0x208
push eax
lea eax, [ebp - 0x40c]
push eax
push ebx
push 2
push 0x4067f8
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x410]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
jne 0x479004
mov word [ebp - 0x206], ax
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x414]
inc edi
push eax
lea eax, [ebp - 0x204]
push eax
push edi
push dword [ebp - 0x410]
mov dword [ebp - 0x414], pe_nt_image_headers32
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
mov esi, eax
test esi, esi
je 0x478fc6
push dword [ebp - 0x410]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
lea eax, [esi - 0x103]
neg eax
pop edi
sbb eax, eax
and eax, esi
pop esi
pop ebx
jmp 0x47905b
cmp eax, 2
je 0x479069
cmp eax, 3
je 0x479069
test eax, eax
jle 0x47906b
movzx eax, ax
or eax, 0x80070000
jmp 0x47906b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bef0
leave
ret
Function at 0x479099
Capabilities:
Delete file
Get common file path
Timestomp file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4a13b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x20c]
xor ebx, ebx
push eax
push ebx
push ebx
push 0x23
push ebx
call dword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
js 0x4791a0
push 0x410d10
mov edx, 0x104
lea ecx, [ebp - 0x20c]
call fcn.0042f0c9
mov esi, eax
test esi, esi
js 0x4791a0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
test eax, eax
jne 0x47912b
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x479113
movzx esi, si
or esi, 0x80070000
cmp esi, 0x80070002
je 0x479129
cmp esi, 0x80070003
je 0x479129
test esi, esi
js 0x4791a0
jmp 0x47912b
mov esi, ebx
push edi
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x479162
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x47919f
movzx esi, si
or esi, 0x80070000
jmp 0x47919f
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemTimeAsFileTime]
push ebx
push ebx
lea eax, [ebp - 0x214]
push eax
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileTime]
test eax, eax
jne 0x479198
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x479198
movzx esi, si
or esi, 0x80070000
push edi
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042bef0
leave
ret

Function at 0x47c3a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
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.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
test eax, eax
je 0x47c3f9
push eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LockResource]
mov esi, eax
test esi, esi
je 0x47c3f9
push edi
push ebx
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x47c3ea
cmp esi, ecx
jae 0x47c3f9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x47c3d8
cmp esi, ecx
jae 0x47c3f9
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
jmp 0x47c3fb
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x47d0da
Capabilities:
Print debug messages

Disassembly:
push 0x13c
mov eax, 0x46ba93
call fcn.0046791c
mov edi, ecx
sub esp, 0x94
mov dword [ebp - 4], 1
lea eax, [ebp + 0x9c]
mov dword [ebp - 0x144], esp
mov ecx, esp
push eax
call fcn.004250a4
sub esp, 0x94
mov byte [ebp - 4], 2
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.004250a4
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 1
call fcn.0047ce2c
lea ecx, [ebp - 0x140]
call fcn.0047e46a
mov esi, eax
test esi, esi
js 0x47d195
push 0x411654
call dword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
push ecx
mov ecx, dword [edi + 4]
push 2
call fcn.0042635c
push 0x7d0
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x47d141
test eax, eax
jne 0x47d175
mov esi, dword [ebp - 0x18]
jmp 0x47d18a
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x47d18a
movzx esi, si
or esi, 0x80070000
push 0x411670
call dword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
lea ecx, [ebp - 0x140]
call fcn.0047cf98
lea eax, [ebp + 0x18]
mov edi, 0x401604
push eax
lea ecx, [ebp + 8]
mov dword [ebp + 8], edi
call fcn.00434927
lea eax, [ebp + 0xac]
mov dword [ebp + 8], 0x401b08
push eax
lea ecx, [ebp + 0x9c]
mov dword [ebp + 0x9c], edi
call fcn.00434927
mov eax, esi
call fcn.004678b9
ret 0x128
Function at 0x47d3da
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x414
mov eax, 0x46bb69
call fcn.0046791c
mov esi, ecx
lea eax, [ebp + 8]
xor ebx, ebx
push eax
lea ecx, [ebp - 0x138]
mov dword [ebp - 4], ebx
call fcn.004250a4
push esi
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 1
call fcn.004250a4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa4]
push dword [ebp - 0x12c]
push dword [ebp - 0x134]
call fcn.00433b6f
push 0xffffffffffffffff
push 0x40649c
lea ecx, [ebp - 0xa4]
call fcn.00433b6f
push ebx
push ebx
push ebx
lea eax, [ebp - 0x41c]
mov edi, ebx
push eax
push ebx
push dword [ebp - 0xa0]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileExW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x47d546
test byte [ebp - 0x41c], 0x10
je 0x47d500
cmp word [ebp - 0x3f0], 0x2e
je 0x47d50e
add dword [esi + 0xa0], 1
lea eax, [ebp - 0x138]
push eax
adc dword [esi + 0xa4], 0
lea ecx, [ebp - 0x1cc]
call fcn.004250a4
push 0x404b74
lea ecx, [ebp - 0x1cc]
mov byte [ebp - 4], 3
call fcn.004338e0
lea eax, [ebp - 0x3f0]
push eax
lea ecx, [ebp - 0x1cc]
call fcn.004338e0
sub esp, 0x94
lea eax, [ebp - 0x1cc]
mov ecx, esp
push eax
call fcn.004250a4
mov ecx, esi
call fcn.0047d3da
mov edi, eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1bc]
mov dword [ebp - 0x1cc], 0x401604
push eax
lea ecx, [ebp - 0x1cc]
call fcn.00434927
jmp 0x47d50e
add dword [esi + 0x98], 1
adc dword [esi + 0x9c], 0
test edi, edi
js 0x47d53d
lea eax, [ebp - 0x41c]
push eax
push ebx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
test eax, eax
jne 0x47d460
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x47d53d
movzx edi, di
or edi, 0x80070000
push ebx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
jmp 0x47d55b
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x47d55b
movzx edi, di
or edi, 0x80070000
lea esi, [edi + 0x7ff8ffee]
mov ebx, 0x401604
neg esi
mov dword [ebp - 0xa4], ebx
lea eax, [ebp - 0x94]
sbb esi, esi
lea ecx, [ebp - 0xa4]
push eax
and esi, edi
call fcn.00434927
lea eax, [ebp - 0x128]
mov dword [ebp - 0x138], ebx
mov edi, 0x401b08
lea ecx, [ebp - 0x138]
push eax
mov dword [ebp - 0xa4], edi
call fcn.00434927
lea eax, [ebp + 0x18]
mov dword [ebp - 0x138], edi
push eax
lea ecx, [ebp + 8]
mov dword [ebp + 8], ebx
call fcn.00434927
mov eax, esi
call fcn.004678b9
ret 0x94
Function at 0x47e46a
Capabilities:
Create thread

Disassembly:
mov edi, edi
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push esi
push 0x47d090
push edi
push edi
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov dword [esi + 0x12c], eax
test eax, eax
jne 0x47e4a1
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x47e4a1
movzx edi, di
or edi, 0x80070000
mov eax, edi
pop edi
pop esi
ret

Function at 0x47eb70
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x10
mov eax, 0x46c0be
call fcn.00467958
mov edi, ecx
xor ebx, ebx
push ebx
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
cmp dword [edi + 0x9c], ebx
jne 0x47eb9b
push 6
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
jmp 0x47ec16
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [esi + 4]
push dword [ebp + 8]
push dword [edi + 0x9c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
cmp eax, 0xea
jne 0x47ec02
mov eax, dword [ebp - 0x14]
mov ecx, esi
add eax, eax
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x14], eax
call fcn.00434f80
or dword [ebp - 4], 0xffffffff
jmp 0x47eba4
test eax, eax
je 0x47ec09
push eax
jmp 0x47eb91
push dword [ebp - 0x14]
mov ecx, esi
call fcn.00425195
xor eax, eax
inc eax
call fcn.0046789f
ret 8
Function at 0x47f250
Capabilities:
Enumerate services
Query service status
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x4a13b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
lea eax, [ebp - 0x4c]
xor ebx, ebx
push eax
lea eax, [ebp - 0x48]
mov edi, ecx
push eax
push ebx
push ebx
push 1
push dword [edi]
mov dword [ebp - 0x58], edi
call dword [sym.imp.api_ms_win_service_core_l1_1_1.dll_EnumDependentServicesW]
test eax, eax
jne 0x47f38e
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0xea
jne 0x47f38e
push esi
push 0x407ffc
push dword [ebp - 0x48]
call fcn.0042c568
mov esi, eax
mov dword [ebp - 0x54], esi
pop ecx
pop ecx
test esi, esi
je 0x47f38d
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
push esi
push 1
push dword [edi]
call dword [sym.imp.api_ms_win_service_core_l1_1_1.dll_EnumDependentServicesW]
test eax, eax
je 0x47f387
mov edi, ebx
mov dword [ebp - 0x40], edi
cmp dword [ebp - 0x4c], ebx
jbe 0x47f387
mov eax, esi
mov dword [ebp - 0x50], esi
push ecx
push 0x24
push dword [eax]
lea ecx, [ebp - 0x44]
call fcn.00440b61
mov esi, dword [ebp - 0x44]
test esi, esi
je 0x47f36b
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_ControlService]
test eax, eax
je 0x47f35d
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount64]
mov edi, eax
add edi, 0x7530
adc edx, ebx
mov dword [ebp - 0x44], edx
cmp dword [ebp - 0x1c], 1
je 0x47f35d
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount64]
cmp edx, dword [ebp - 0x44]
ja 0x47f35d
jb 0x47f33f
cmp eax, edi
jae 0x47f35d
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_QueryServiceStatus]
test eax, eax
jne 0x47f328
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, dword [ebp - 0x40]
test esi, esi
je 0x47f36b
push esi
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x50]
inc edi
add eax, 0x24
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x50], eax
cmp edi, dword [ebp - 0x4c]
jb 0x47f2e6
mov esi, dword [ebp - 0x54]
push esi
call fcn.00432a48
pop esi
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x58]
push 1
push dword [eax]
call dword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_ControlService]
test eax, eax
jne 0x47f3cb
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x47f3c4
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
js 0x47f3cb
mov ebx, 0x80004005
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
xor ecx, ebp
pop ebx
call fcn.0042bef0
leave
ret
Function at 0x47f3e1
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x180
mov eax, dword [0x4a13b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi], 2
jne 0x47f58b
xor edi, edi
cmp dword [esi + 0x10], edi
jle 0x47f58b
mov eax, dword [esi + 0x14]
lea ecx, [ebp - 0x170]
push 0x4050d0
mov dword [ebp - 0x170], edi
mov dword [ebp - 0x16c], edi
mov dword [ebp - 0x168], edi
mov dword [ebp - 0x164], edi
mov dword [ebp - 0x160], edi
mov dword [ebp - 0x15c], eax
call fcn.00440c63
test al, al
je 0x47f478
mov eax, dword [ebp - 0x170]
cmp eax, dword [esi]
jne 0x47f478
mov eax, dword [ebp - 0x16c]
cmp eax, dword [esi + 4]
jne 0x47f478
mov eax, dword [ebp - 0x168]
cmp eax, dword [esi + 8]
jne 0x47f478
mov eax, dword [ebp - 0x160]
cmp eax, dword [esi + 0x10]
je 0x47f58b
push dword [esi + 0x14]
lea eax, [ebp - 0x24]
push 0x4117c8
push 0x10
push eax
call fcn.0042f13a
add esp, 0x10
test eax, eax
js 0x47f58b
push dword [esi + 0x10]
lea eax, [ebp - 0x44]
push 0x4064b8
push 0x10
push eax
call fcn.0042f13a
add esp, 0x10
test eax, eax
js 0x47f58b
push edi
push 0x2710
push dword [esi + 8]
push dword [esi + 4]
call fcn.00467b90
mov dword [ebp - 0x150], eax
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x150]
mov dword [ebp - 0x14c], edx
push eax
call dword [sym.imp.api_ms_win_core_timezone_l1_1_0.dll_FileTimeToSystemTime]
test eax, eax
je 0x47f58b
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x180]
push eax
push edi
call dword [sym.imp.api_ms_win_core_timezone_l1_1_0.dll_SystemTimeToTzSpecificLocalTime]
test eax, eax
je 0x47f58b
push 0x80
lea eax, [ebp - 0x148]
push eax
push edi
lea eax, [ebp - 0x168]
push eax
push edi
push 0x800
call dword [sym.imp.api_ms_win_core_datetime_l1_1_0.dll_GetTimeFormatW]
test eax, eax
jle 0x47f58b
lea eax, [ebp - 0x24]
mov dword [ebp - 0x158], 0x4070f0
mov dword [ebp - 0x154], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x150], eax
lea eax, [ebp - 0x148]
push 0x408a74
push edi
mov dword [ebp - 0x14c], eax
call dword [sym.imp.ext_ms_win_advapi32_eventlog_l1_1_0.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x47f58b
push edi
lea eax, [ebp - 0x158]
push eax
push edi
push 4
push edi
push 0x800003f7
push 1
push 2
push esi
call dword [sym.imp.ext_ms_win_advapi32_eventlog_l1_1_0.dll_ReportEventW]
push esi
call dword [sym.imp.ext_ms_win_advapi32_eventlog_l1_1_0.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042bef0
leave
ret
Function at 0x485329
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4a13b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x4c], 0x44
push eax
push 0
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CreateWellKnownSid]
test eax, eax
jne 0x48537a
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jle 0x485371
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x48539e
mov eax, 0x80004005
jmp 0x48539e
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x48]
push eax
push esi
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
test eax, eax
je 0x48535d
mov eax, dword [ebp - 0x50]
neg eax
sbb eax, eax
and eax, 0x7ff8fffb
add eax, 0x80070005
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042bef0
leave
ret 8

Function at 0x485f53
Capabilities:
Reference sql statements

Disassembly:
push 0x1fc
mov eax, 0x46ddc9
call fcn.00467994
mov ebx, edx
mov edx, ecx
push 0x65
pop ecx
mov esi, 0x412478
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x1d8]
mov dword [ebp - 0x1dc], eax
rep movsd dword es:[edi], dword [esi]
push 0xb
pop ecx
mov esi, 0x40c994
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor edi, edi
mov dword [ebp - 0x200], edi
mov dword [ebp - 0x1fc], edi
mov dword [ebp - 0x1f8], edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x44]
cmp edx, 1
je 0x485fb2
mov eax, 0x4070f0
push edx
push eax
lea eax, [ebp - 0x1d8]
push eax
lea eax, [ebp - 0x200]
push eax
call fcn.0045068a
mov esi, eax
add esp, 0x10
test esi, esi
js 0x4860ba
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x208]
push dword [ebp - 0x200]
call fcn.0045032b
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1f4]
sub esp, 0x28
mov dword [ebp - 0x1f4], edi
mov eax, esp
mov dword [ebp - 0x1f0], edi
mov dword [ebp - 0x1e4], edi
lea edx, [ebp - 0x1e4]
mov dword [ebp - 0x1e0], edi
mov dword [eax + 4], ecx
lea ecx, [ebp - 0x208]
mov dword [eax], 0x402648
mov dword [eax + 8], edx
mov dword [eax + 0x24], eax
lea eax, [ebp - 0x1ec]
push eax
call fcn.00485814
push dword [ebp - 0x1e0]
lea ecx, [ebp - 0x1ec]
push dword [ebp - 0x1e4]
push dword [ebp - 0x1f0]
push dword [ebp - 0x1f4]
call fcn.00485c24
mov ecx, dword [ebp + 4]
test eax, eax
js 0x4860cf
mov edx, dword [ebp - 0x1dc]
mov ecx, dword [ebp - 0x1e8]
mov eax, dword [ebp - 0x1ec]
mov dword [ebx + 4], ecx
mov ecx, dword [ebp - 0x1e0]
mov dword [ebx], eax
mov eax, dword [ebp - 0x1e4]
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x204]
mov dword [edx], eax
call fcn.0042bb30
jmp 0x4860ba
lea ecx, [ebp - 0x200]
call fcn.00430934
mov eax, esi
call fcn.004678ce
ret 4
push eax
push 0x40a998
mov edx, 0xf6
call fcn.0047e814
int3