joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001c70
Capabilities:
Connect pipe
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
lea ebx, [esi + 4]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x1001cd0
call edi
cmp eax, 0x3e5
je 0x1001cd0
call edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1003320], eax
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x1001cb4
push eax
call edi
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x1001cbe
push eax
call edi
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x14]
mov edx, dword [0x1003330]
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xc]
push eax
push 2
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor ecx, ecx
sub eax, ecx
je 0x1001d5f
sub eax, 1
je 0x1001d2d
call edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1003320], eax
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x1001d11
push eax
call edi
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x1001d1b
push eax
call edi
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1003320], ecx
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x1001d43
push eax
call edi
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x1001d4d
push eax
call edi
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 4]
push edx
push ecx
push esi
push 0x1001760
push ecx
push ecx
mov dword [ebp - 4], ecx
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
test eax, eax
jne 0x1001daf
call edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1003320], eax
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x1001d93
push eax
call edi
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x1001d9d
push eax
call edi
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov dword [0x1003320], 0
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1002540
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x1002553
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100254f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret
Function at 0x1002580
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x10025bf
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x10025b5
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x10025c1
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x10025a5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1800460f
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 0x18004665
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x18004665
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x18004657
cmp esi, ecx
jae 0x18004665
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x18004645
cmp esi, ecx
jae 0x18004665
cmp word [esi], 0
je 0x18004665
mov eax, esi
jmp 0x18004667
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x180052fd
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x181cf008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x18005318
mov al, 1
jmp 0x1800535b
push 0x34
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.18148b00
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x18005353
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LOG_SYSTEM:_ERROR____::GetFileInformationByHandle_failed___d_
call fcn.1800b574
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x18005314
mov eax, dword [ebp - 0x38]
shr eax, 0xa
and al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.18145fe4
leave
ret

Function at 0x18005368
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SoftwareGoogleUpdateDev_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x18005396
xor al, al
jmp 0x180053de
push esi
push edi
push 4
pop edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], edi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push ebx
push str.IsEnabledLogToFile
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x180053da
cmp dword [ebp - 8], edi
jne 0x180053da
cmp dword [ebp - 0xc], ebx
je 0x180053da
mov bl, 1
pop edi
mov al, bl
pop esi
pop ebx
leave
ret
Function at 0x1800575c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov ebx, ecx
call fcn.18005368
mov byte [ebx + 0x77], al
mov ecx, ebx
lea eax, [ebp - 4]
push eax
call fcn.180062e9
mov edi, dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x14], edi
cmp dword [edi - 0xc], 0
je 0x180057e7
push edi
push 1
push str.EnableLogging
push str.LoggingSettings
call esi
push edi
push 1
test eax, eax
push str.ShowTime
setne al
push str.LoggingSettings
mov byte [ebx + 0x74], al
call esi
push edi
push 0
test eax, eax
push str.LogToOutputDebug
setne al
push str.LoggingSettings
mov byte [ebx + 0x76], al
call esi
push edi
push 1
test eax, eax
push str.AppendToFile
setne al
push str.LoggingSettings
mov byte [ebx + 0x78], al
call esi
test eax, eax
setne al
jmp 0x180057f5
mov byte [ebx + 0x74], 1
mov al, 1
mov byte [ebx + 0x76], 1
mov byte [ebx + 0x78], 0
mov byte [ebx + 0x79], al
cmp byte [ebx + 0x75], 0
je 0x18005802
mov byte [ebx + 0x76], 1
xor eax, eax
mov byte [ebx], 1
mov dword [ebx + 4], 7
mov edi, esi
mov dword [ebp - 4], eax
mov ecx, dword [eax + 0x181d0100]
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x1800586e
mov ecx, dword [eax + 0x181d0104]
mov dword [ebp - 0x10], ecx
cmp ecx, 9
ja 0x1800586e
lea eax, [ebp - 8]
mov ecx, ebx
push eax
call fcn.180062e9
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0
je 0x18005851
push esi
push 1
push dword [ebp - 0xc]
push str.LoggingLevel
call edi
jmp 0x18005854
xor eax, eax
inc eax
mov edx, dword [ebp - 0x10]
test eax, eax
setne cl
mov byte [ebx + edx*8], cl
lea ecx, [esi - 0x10]
mov dword [ebx + edx*8 + 4], eax
call fcn.18004715
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 4], eax
cmp eax, 0x48
jb 0x18005813
call fcn.1800be1f
mov ecx, dword [ebp - 0x14]
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x84], edx
lea ecx, [ecx - 0x10]
call fcn.18004715
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1800589a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
call fcn.180040b1
push eax
lea ecx, [ebp - 4]
call fcn.1800717c
mov esi, dword [ebp - 4]
xor ecx, ecx
inc ecx
mov edx, 0x104
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or ecx, eax
jge 0x180058d0
push edx
lea ecx, [ebp - 4]
call fcn.18007252
mov esi, dword [ebp - 4]
push esi
xor eax, eax
push eax
push eax
push 0x23
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x18005906
mov ecx, dword [ebp + 8]
push 0x18181c4c
call fcn.18006e44
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.18006e9f
lea ecx, [esi - 0x10]
call fcn.18004715
mov eax, dword [ebp + 8]
jmp 0x1800593d
push str.GoogleUpdateLog
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x180058e2
push edi
lea edi, [esi - 0x10]
mov ecx, edi
call fcn.180071f9
mov esi, dword [ebp + 8]
lea ecx, [ebp - 4]
add eax, 0x10
push 0xffffffffffffffff
mov dword [esi], eax
call fcn.18006e9f
mov ecx, edi
call fcn.18004715
mov eax, esi
pop edi
pop esi
leave
ret 4
Function at 0x180059ed
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, ecx
cmp byte [ebx + 0x77], 0
je 0x18005ab6
mov eax, dword [ebx + 0xcc]
push esi
push edi
test eax, eax
jne 0x18005aac
lea eax, [ebp - 4]
push eax
call fcn.18005942
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], 0
je 0x18005a4d
lea edx, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.1800ef4f
mov edi, dword [ebp - 8]
mov ecx, edi
call fcn.18005162
test al, al
jne 0x18005a57
mov ecx, edi
call fcn.1800519e
test eax, eax
jns 0x18005a57
lea ecx, [edi - 0x10]
call fcn.18004715
lea ecx, [esi - 0x10]
call fcn.18004715
jmp 0x18005ab4
mov al, byte [ebx + 0x79]
push 0x20
mov byte [ebp - 8], al
call fcn.181466ae
pop ecx
push dword [ebp - 8]
mov ecx, eax
push esi
call fcn.180063d6
mov dword [ebx + 0xcc], eax
test eax, eax
jne 0x18005a92
push esi
push dword [ebx + 0x54]
push str.LOG_SYSTEM:___s_:_ERROR___Cannot_create_log_writer_to__s
call fcn.1800b574
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [edi - 0x10]
call fcn.18004715
lea ecx, [esi - 0x10]
call fcn.18004715
mov eax, dword [ebx + 0xcc]
test eax, eax
je 0x18005ab4
push eax
mov ecx, ebx
call fcn.18006276
pop edi
pop esi
pop ebx
leave
ret

Function at 0x18005ff5
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov ebx, ecx
push edi
test esi, esi
je 0x180060b6
cmp dword [ebp + 8], 0
jne 0x1800601a
cmp dword [ebp + 0x10], 2
jg 0x180060b6
call fcn.180040b1
push eax
lea ecx, [ebp - 4]
call fcn.1800717c
call fcn.180040b1
push eax
lea ecx, [ebp + 0x14]
call fcn.1800717c
xor edi, edi
lea eax, [ebx + 0x58]
inc edi
push 0
mov ecx, eax
call fcn.1800ed03
test al, al
jne 0x1800605c
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
lea eax, [ebx + 0x58]
cmp edi, 0x14
jle 0x1800603c
jmp 0x18006080
push dword [ebp + 0x18]
lea eax, [ebp + 0x14]
mov ecx, ebx
push esi
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.18005f21
lea ecx, [ebx + 0x58]
mov eax, dword [ecx]
call dword [eax + 8]
cmp edi, 0x14
jle 0x180060a0
push str.LOG_SYSTEM:_Couldnt_acquire_lock__
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call esi
push 0x181a9438
call esi
mov ecx, dword [ebp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.18004715
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18004715
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x180063d6
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0xc]
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebx], fcn.18006584
mov dword [ebx + 4], 0x989680
mov word [ebx + 8], 0
mov byte [ebx + 0xa], al
mov byte [ebx + 0xb], 1
call fcn.180040b1
push eax
lea ecx, [ebx + 0xc]
call fcn.1800717c
push dword [ebp + 8]
xor edi, edi
lea ecx, [ebx + 0x14]
mov dword [ebx + 0x10], edi
call fcn.18006e44
mov dword [ebx + 0x18], edi
call fcn.180040b1
push eax
lea ecx, [ebx + 0x1c]
call fcn.1800717c
movzx eax, byte [0x181d7aa2]
neg eax
sbb eax, eax
and eax, 0x181d6c50
mov dword [ebp + 8], eax
je 0x180064a9
lea ecx, [ebp + 0xc]
push ecx
mov ecx, eax
call fcn.180062e9
mov esi, dword [ebp + 0xc]
cmp dword [esi - 0xc], edi
je 0x18006485
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push 0x989680
push str.MaxLogFileSize
push str.LoggingSettings
call edi
mov dword [ebx + 4], eax
xor eax, eax
push esi
inc eax
push eax
push str.LogFileWide
push str.LoggingSettings
call edi
test eax, eax
setne al
jmp 0x1800648f
xor eax, eax
mov dword [ebx + 4], 0x989680
inc eax
mov byte [ebx + 0xb], al
lea ecx, [ebx + 0x1c]
mov eax, dword [ebp + 8]
add eax, 0x54
push eax
call fcn.18006dec
lea ecx, [esi - 0x10]
call fcn.18004715
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8

Function at 0x18006501
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 8], 0
jne 0x18006582
mov byte [esi + 8], 1
call fcn.180065b0
cmp dword [esi + 0x10], 0
je 0x18006582
test al, al
je 0x18006521
mov byte [esi + 0xa], 1
mov ecx, esi
call fcn.18006bc0
test al, al
jne 0x18006548
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.1800b574
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop esi
ret
mov ecx, esi
call fcn.1800667a
cmp dword [esi + 0x18], 0
jne 0x1800656f
push dword [esi + 0x14]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_create_logging_file__s_n
call fcn.1800b574
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [esi + 0x10], 0
mov byte [esi + 9], 1
je 0x18006582
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
ret
Function at 0x1800667a
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x181cf008]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x8c], 0
lea edx, [ebp - 0x8c]
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x94], ebx
lea esi, [ebx + 0x14]
mov ecx, dword [esi]
mov dword [ebp - 0x98], esi
call fcn.1800b1e0
mov eax, dword [ebp - 0x8c]
cmp eax, dword [ebx + 4]
jbe 0x180066c7
mov ecx, ebx
call fcn.18006897
xor eax, eax
cmp byte [ebx + 0xa], al
setne al
xor edi, edi
push edi
push 0x80
lea eax, [eax*2 + 2]
push eax
push edi
push 3
push 0x40000000
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x18], eax
cmp eax, 0xffffffff
jne 0x180066fe
mov dword [ebx + 0x18], edi
xor al, al
jmp 0x18006764
mov edx, esi
lea ecx, [ebp - 0x8c]
call fcn.1800ef4f
mov esi, dword [ebp - 0x8c]
lea edi, [ebp - 0x28]
push 9
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
xor edi, edi
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x18006773
call fcn.18013e1e
push dword [ebx + 0x14]
push dword [ebx + 0x1c]
push str.LOG_SYSTEM:___s_:_ERROR___Log_path__s_has_a_reparse_point
call fcn.1800b574
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebx + 0x18], edi
xor bl, bl
lea ecx, [esi - 0x10]
call fcn.18004715
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18145fe4
leave
ret
mov eax, dword [ebp - 0x28]
shr eax, 0xa
and al, 1
jne 0x18006732
mov ecx, dword [ebx + 0x18]
call fcn.180052fd
test al, al
jne 0x18006732
lea ecx, [ebp - 0xb8]
call fcn.18004b7a
push 0x221
push 0x20
push 2
lea eax, [ebp - 0x88]
push 0x181a8e74
push eax
call fcn.180047c1
add esp, 0x14
lea eax, [ebp - 0x88]
lea ecx, [ebp - 0xb8]
push edi
push 0xc0010000
push eax
call fcn.18004bf7
lea ecx, [ebp - 0x88]
mov bl, al
call fcn.180048aa
test bl, bl
je 0x180067f4
push ecx
lea eax, [ebp - 0xb8]
xor edx, edx
push eax
mov eax, dword [ebp - 0x98]
inc edx
mov ecx, dword [eax]
call fcn.18005126
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1800682b
mov eax, dword [ebp - 0x94]
cmp byte [eax + 0xb], 0
je 0x1800682b
push edi
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x94], edi
push ecx
push 2
push 0x18182da4
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0xb8]
call fcn.18004bc0
xor ebx, ebx
inc ebx
jmp 0x1800675a
Function at 0x1800683e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push 0x80
push 5
push ebx
push 3
push 0x40000000
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [esi + 0x18], 0xffffffff
mov edi, eax
jne 0x1800686e
xor al, al
jmp 0x18006892
cmp byte [esi + 0xb], bl
je 0x18006889
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 2
push 0x18182da4
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x18006902
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x181cf008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x18
mov dword [ebp - 0x74], ecx
lea edi, [ebp - 0x68]
pop ecx
mov esi, str.SYSTEMCurrentControlSetControlSession_Manager
lea eax, [ebp - 0x70]
rep movsd dword es:[edi], dword [esi]
push eax
push 0x20019
xor ebx, ebx
lea eax, [ebp - 0x68]
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
movsw word es:[edi], word [esi]
mov dword [ebp - 0x70], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18006a2a
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x6c]
push 7
pop esi
push eax
push ebx
lea eax, [ebp - 0x78]
mov dword [ebp - 0x6c], ebx
push eax
push ebx
push str.PendingFileRenameOperations
push dword [ebp - 0x70]
mov dword [ebp - 0x78], esi
call edi
test eax, eax
jne 0x18006a2a
cmp dword [ebp - 0x78], esi
jne 0x18006a2a
push dword [ebp - 0x6c]
call fcn.181466de
push dword [ebp - 0x6c]
mov esi, eax
push ebx
push esi
call fcn.18148b00
add esp, 0x10
lea eax, [ebp - 0x6c]
push eax
push esi
push ebx
push ebx
push str.PendingFileRenameOperations
push dword [ebp - 0x70]
call edi
test eax, eax
jne 0x18006a1b
mov edi, dword [ebp - 0x6c]
shr edi, 1
mov dword [ebp - 0x7c], edi
lea eax, [edi - 2]
cmp eax, 0xffffd
ja 0x18006a1b
cmp word [esi + edi*2 - 4], bx
jne 0x18006a1b
cmp word [esi + edi*2 - 2], bx
jne 0x18006a1b
mov eax, dword [ebp - 0x74]
lea ecx, [ebp - 0x74]
add eax, 0x14
mov edx, 0x181a97e4
push eax
call fcn.18006c63
test edi, edi
mov edi, dword [ebp - 0x74]
pop ecx
je 0x18006a0a
lea eax, [esi + ebx*2]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x18006a0d
lea eax, [esi + ebx*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add ebx, eax
cmp ebx, dword [ebp - 0x7c]
jb 0x180069e9
or ebx, 0xffffffff
cmp ebx, 0xffffffff
lea ecx, [edi - 0x10]
setne bl
call fcn.18004715
test esi, esi
je 0x18006a26
push esi
call fcn.181466a9
pop ecx
mov al, bl
jmp 0x18006a2c
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18145fe4
leave
ret
Function at 0x18006bc0
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x18006bcd
xor al, al
pop esi
ret
push 0x1f4
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x18006c06
cmp eax, 0x80
je 0x18006c06
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.1800b574
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [esi + 9], 0
jmp 0x18006bc9
mov al, 1
pop esi
ret

Function at 0x18007665
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
lea ebx, [ecx + 4]
push edi
mov edi, edx
test ebx, ebx
je 0x1800769b
lea esi, [edi + 4]
test esi, esi
je 0x1800769b
call fcn.18004982
test al, al
je 0x1800769b
mov ecx, edi
call fcn.18004982
test al, al
je 0x1800769b
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
jmp 0x1800769d
xor al, al
pop edi
pop esi
pop ebx
ret

Function at 0x18008d3e
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x181cf008]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
push 0x250
xor ebx, ebx
lea eax, [esp + 0x1c]
mov edi, ecx
push ebx
push eax
mov dword [esp + 0x20], edi
call fcn.18148b00
add esp, 0xc
lea ecx, [esp + 0x10]
push edi
call fcn.18006e44
push 0x181a9a10
lea ecx, [esp + 0x14]
call fcn.18009e3d
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x18008db0
call fcn.18013e1e
mov edi, eax
jmp 0x18008e46
push edi
lea ecx, [esp + 0x10]
call fcn.18006e44
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x10]
call fcn.18009e3d
lea eax, [esp + 0x44]
push 0x181a9a18
push eax
call fcn.18152e84
pop ecx
pop ecx
test eax, eax
je 0x18008e0c
lea eax, [esp + 0x44]
push 0x181a99f4
push eax
call fcn.18152e84
pop ecx
pop ecx
test eax, eax
je 0x18008e0c
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.180091eb
test eax, eax
jns 0x18008e03
mov ebx, eax
lea ecx, [edi - 0x10]
mov edi, dword [esp + 0x14]
jmp 0x18008e13
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffff0
call fcn.18004715
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18008db0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x12
je 0x18008e44
test edi, edi
jle 0x18008e46
movzx edi, di
or edi, 0x80070000
jmp 0x18008e46
mov edi, ebx
cmp esi, 0xffffffff
je 0x18008e52
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.18004715
mov ecx, dword [esp + 0x26c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.18145fe4
mov esp, ebp
pop ebp
ret
Function at 0x18008e75
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x181cf008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x250
xor ebx, ebx
lea eax, [ebp - 0x258]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x264], edi
call fcn.18148b00
add esp, 0xc
lea ecx, [ebp - 0x25c]
push edi
call fcn.18006e44
push 0x5c
lea ecx, [ebp - 0x25c]
call fcn.18006f23
push 0x181a9a20
lea ecx, [ebp - 0x25c]
call fcn.180072a9
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x18008f08
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x18008f9d
call fcn.18013e1e
mov ebx, eax
jmp 0x18008f9d
test byte [ebp - 0x258], 0x10
jne 0x18008f72
push edi
lea ecx, [ebp - 0x260]
call fcn.18006e44
push 0x5c
lea ecx, [ebp - 0x260]
call fcn.18006f23
lea eax, [ebp - 0x22c]
push eax
call fcn.1814ca63
pop ecx
push eax
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x260]
call fcn.18006f50
mov edi, dword [ebp - 0x260]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x18008f64
mov ecx, edi
call fcn.1800abe2
mov ebx, eax
lea ecx, [edi - 0x10]
call fcn.18004715
mov edi, dword [ebp - 0x264]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18008f08
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x18008f96
call fcn.18013e1e
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x25c]
lea ecx, [ecx - 0x10]
call fcn.18004715
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18145fe4
leave
ret