joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007e101
Capabilities:
Get common file path

Disassembly:
push 0x210
mov eax, 0x100e30ca
call fcn.100bf3f6
mov esi, ecx
lea ecx, [esi + 8]
mov dword [ebp - 0x21c], esi
call int.10008d30
xor edi, edi
mov dword [ebp - 4], edi
mov dword [esi + 0x28], edi
lea ebx, [esi + 0x2c]
mov dword [ebx], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 8
call fcn.10082c59
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 9
call fcn.1006a473
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
mov byte [ebp - 4], 0xa
call fcn.100be620
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x218]
push eax
mov ecx, ebx
call fcn.10056316
push ebx
lea ecx, [esi + 0x30]
call fcn.1007c7e2
push str._theme.xml
mov ecx, ebx
call fcn.1007c64c
mov edi, 0x100e8c1c
push edi
lea ecx, [esi + 0x38]
call fcn.10056316
push edi
lea ecx, [esi + 0x34]
call fcn.10056316
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x28]
call fcn.10056316
mov eax, esi
call fcn.100bf479
ret

Function at 0x10086aa1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push 0x100ef798
push dword [ebp + 8]
mov dword [ebp - 4], ecx
call fcn.100c3291
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x10086b18
push esi
push edi
push dword [ebx + 0x10]
call fcn.100c3ea3
and dword [ebp + 8], 0
mov edi, eax
lea eax, [edi + 4]
push eax
call fcn.100be34e
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10086b0c
lea eax, [edi + 4]
push eax
push 0
push esi
call fcn.100be620
push ebx
push 1
push edi
push esi
call fcn.100c31ae
mov ecx, dword [ebp - 4]
add esp, 0x1c
push edi
push esi
call fcn.10086673
push esi
mov dword [ebp + 8], eax
call fcn.100be418
pop ecx
push ebx
call fcn.100c2e92
mov eax, dword [ebp + 8]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10086e52
Capabilities:
Write file on windows

Disassembly:
push 0
mov eax, 0x100e390b
call fcn.100bf38d
mov esi, ecx
push 0x100ef978
push dword [ebp + 8]
call fcn.100c3291
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10086eaa
push edi
push 1
push 2
push 0x1010d924
call fcn.100c345d
mov eax, dword [0x1010c134]
add esp, 0x10
mov dword [ebp + 8], eax
and dword [ebp - 4], 0
test esi, esi
je 0x10086e76
lea eax, [esi + 0x58]
jmp 0x10086e78
xor eax, eax
lea ecx, [ebp + 8]
push ecx
push eax
mov ecx, esi
call fcn.10086dcb
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
push edi
push 1
add ecx, ecx
push ecx
push eax
call fcn.100c345d
push edi
call fcn.100c2e92
add esp, 0x14
lea ecx, [ebp + 8]
call fcn.1000890c
xor eax, eax
inc eax
call fcn.100bf465
ret 4

Function at 0x100be88c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10133400]
jne 0x100be896
repz ret
jmp fcn.100c989d
Function at 0x18006c69
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 0x18006cc2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x18006cc2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x18006cb1
cmp esi, ecx
jae 0x18006cc2
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x18006c9f
cmp esi, ecx
jae 0x18006cc2
cmp word [esi], 0
je 0x18006cc2
lfence
mov eax, esi
jmp 0x18006cc4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x18007db8
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x181d600c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x18007dd3
mov al, 1
jmp 0x18007e16
push 0x34
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.18136b80
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x18007e0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LOG_SYSTEM:_ERROR____::GetFileInformationByHandle_failed___d_
call fcn.180115cf
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x18007dcf
mov eax, dword [ebp - 0x38]
shr eax, 0xa
and al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.18121ed8
leave
ret
Function at 0x1800835f
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x181d600c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push ebx
push esi
push edi
push eax
mov ebx, ecx
call fcn.18009145
mov edi, dword [ebp - 8]
cmp dword [edi - 0xc], 0
je 0x18008404
push edi
push 1
push str.EnableLogging
mov esi, str.LoggingSettings
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push 1
test eax, eax
push str.ShowTime
setne al
push esi
mov byte [ebx + 0x74], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push 1
test eax, eax
push str.LogToFile
setne al
push esi
mov byte [ebx + 0x76], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push 0
test eax, eax
push str.LogToOutputDebug
setne al
push esi
mov byte [ebx + 0x77], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push 1
test eax, eax
push str.AppendToFile
setne al
push esi
mov byte [ebx + 0x78], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
setne al
mov byte [ebx + 0x79], al
jmp 0x1800840f
mov byte [ebx + 0x74], 1
mov dword [ebx + 0x76], 0x1000101
cmp byte [ebx + 0x75], 0
je 0x18008419
mov byte [ebx + 0x76], 1
xor eax, eax
mov byte [ebx], 1
mov dword [ebx + 4], 7
mov dword [ebp - 0xc], eax
mov edx, dword [eax + 0x181d7140]
mov ecx, dword [eax + 0x181d7144]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], edx
test edx, edx
je 0x18008492
cmp ecx, 9
ja 0x18008492
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, ebx
mov dword [ebp - 0x14], 3
call fcn.18009145
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0
je 0x18008475
push esi
push 3
push dword [ebp - 0x10]
push str.LoggingLevel
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
jmp 0x18008478
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
test eax, eax
setne cl
mov byte [ebx + edx*8], cl
lea ecx, [esi - 0x10]
mov dword [ebx + edx*8 + 4], eax
call fcn.18006f72
mov eax, dword [ebp - 0xc]
add eax, 8
mov dword [ebp - 0xc], eax
cmp eax, 0x48
jb 0x18008428
call fcn.18011f9e
lea ecx, [edi - 0x10]
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x84], edx
call fcn.18006f72
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18121ed8
leave
ret
Function at 0x180084c5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x181d600c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
call fcn.18006f9c
push eax
lea ecx, [ebp - 8]
call fcn.180076af
mov edi, dword [ebp - 8]
xor ecx, ecx
inc ecx
mov edx, 0x104
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, edx
or ecx, eax
jge 0x18008510
push edx
lea ecx, [ebp - 8]
call fcn.1800773c
mov edi, dword [ebp - 8]
and dword [ebp - 0xc], 0
call fcn.18006f9c
push eax
lea ecx, [ebp - 0xc]
call fcn.180076af
call fcn.18016fdc
test al, al
jne 0x18008542
call fcn.18014e1a
test al, al
jne 0x18008542
mov dword [ebp - 0x10], 0x1c
mov esi, 0x181a4c48
jmp 0x1800854e
mov dword [ebp - 0x10], 0x23
mov esi, str.MicrosoftEdgeUpdateLog
push esi
call fcn.1813abd0
pop ecx
push eax
push esi
lea ecx, [ebp - 0xc]
call fcn.180075ed
push edi
xor eax, eax
push eax
push eax
push dword [ebp - 0x10]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x1800859b
push 0x18176bdc
mov ecx, ebx
call fcn.180074fa
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18006f72
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.18009ed8
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
jmp 0x180085e0
mov esi, dword [ebp - 0xc]
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
jne 0x180085b8
push 0x18176bdc
mov ecx, ebx
call fcn.180074fa
jmp 0x180085c8
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.1800a0da
add eax, 0x10
mov dword [ebx], eax
lea ecx, [esi - 0x10]
call fcn.18006f72
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.18009ed8
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18006f72
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18121ed8
leave
ret 4

Function at 0x180086af
Capabilities:
Print debug messages

Disassembly:
push edi
mov edi, ecx
cmp dword [edi + 0xe0], 0
jne 0x180086fa
push esi
push 0x40
call fcn.18122788
push 0x40
mov esi, eax
push 0
push esi
call fcn.18136b80
add esp, 0xc
mov ecx, esi
call fcn.180117cd
mov dword [edi + 0xe0], eax
pop esi
test eax, eax
jne 0x180086fa
push dword [edi + 0x54]
push str.LOG_SYSTEM:___s_:_ERROR___Cannot_create_ETW_log_writer
call fcn.180115cf
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [edi + 0xe0]
test eax, eax
je 0x1800870c
push eax
mov ecx, edi
call fcn.180090b6
pop edi
ret
Function at 0x1800870e
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x181d600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
cmp byte [ebx + 0x77], 0
je 0x180087f8
push esi
xor esi, esi
cmp dword [ebx + 0xd8], esi
jne 0x180087e5
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
call fcn.180085f8
mov eax, dword [ebp - 0xc]
cmp dword [eax - 0xc], esi
je 0x18008780
lea edx, [ebp - 0xc]
mov dword [ebp - 8], esi
lea ecx, [ebp - 8]
call fcn.180164b6
mov esi, dword [ebp - 8]
mov ecx, esi
call fcn.18010826
test al, al
jne 0x1800878a
mov ecx, esi
call fcn.1800c9f0
test eax, eax
jns 0x1800878a
lea ecx, [esi - 0x10]
call fcn.18006f72
mov eax, dword [ebp - 0xc]
lea ecx, [eax - 0x10]
call fcn.18006f72
jmp 0x180087f7
mov al, byte [ebx + 0x79]
push edi
push 0x20
mov byte [ebp - 8], al
call fcn.18122788
pop ecx
mov edx, eax
xor eax, eax
push 8
pop ecx
push dword [ebp - 8]
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0xc]
mov ecx, edx
push edi
call fcn.18009373
mov dword [ebx + 0xd8], eax
test eax, eax
jne 0x180087d4
push edi
push dword [ebx + 0x54]
push str.LOG_SYSTEM:___s_:_ERROR___Cannot_create_log_writer_to__s
call fcn.180115cf
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [esi - 0x10]
call fcn.18006f72
lea ecx, [edi - 0x10]
call fcn.18006f72
pop edi
mov eax, dword [ebx + 0xd8]
test eax, eax
je 0x180087f7
push eax
mov ecx, ebx
call fcn.180090b6
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.18121ed8
leave
ret

Function at 0x18008992
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x181d600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x7a], 1
jne 0x180089d8
lea ecx, [ebp - 8]
call fcn.18007ecf
push dword [eax]
push str.LOG_SYSTEM:___s_:_ERROR___Calling_the_logging_system_after_it_has_been_shut_down__n
call fcn.180115cf
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 8]
lea ecx, [eax - 0x10]
call fcn.18006f72
xor al, al
jmp 0x18008a09
cmp byte [esi + 0x50], 1
jne 0x180089e2
mov al, 1
jmp 0x18008a09
and dword [ebp - 0xc], 0
lea eax, [esi + 0x58]
and dword [ebp - 8], 0
lea ecx, [ebp - 0xc]
push eax
call fcn.1801579d
mov ecx, esi
call fcn.180088cc
lea ecx, [ebp - 0xc]
mov bl, al
call fcn.180157c8
mov al, bl
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.18121ed8
leave
ret
Function at 0x18008d38
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x181d600c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x18], ecx
test eax, eax
je 0x18008e97
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x18008d72
cmp dword [ebp + 0x10], 2
jg 0x18008e97
cmp dword [edi + 0xf8], 3
jg 0x18008e97
and dword [ebp - 0xc], 0
call fcn.18006f9c
push eax
lea ecx, [ebp - 0xc]
call fcn.180076af
and dword [ebp - 8], 0
call fcn.18006f9c
push eax
lea ecx, [ebp - 8]
call fcn.180076af
xor eax, eax
inc eax
mov dword [ebp - 0x10], eax
lea eax, [edi + 0x58]
mov eax, dword [eax]
add dword [edi + 0xe8], 1
push 0
adc dword [edi + 0xec], 0
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x181663e8]
lea ecx, [edi + 0x58]
call esi
test al, al
jne 0x18008df9
add dword [edi + 0xf0], 1
push 0x32
adc dword [edi + 0xf4], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, 0x14
lea eax, [edi + 0x58]
jle 0x18008dac
jmp 0x18008e2e
push dword [ebp - 0x18]
lea eax, [ebp - 8]
mov ecx, edi
push dword [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.18008c4b
mov eax, dword [edi + 0x58]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x181663e8]
lea ecx, [edi + 0x58]
call esi
cmp dword [ebp - 0x10], 0x14
jle 0x18008e7a
push str.LOG_SYSTEM:_Couldnt_acquire_lock__
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x181a4f18
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
inc dword [edi + 0xf8]
cmp dword [edi + 0xf8], 3
jle 0x18008e81
push dword [ebp - 0x18]
lea eax, [ebp - 8]
mov ecx, edi
push str.LOG_SYSTEM:_Couldnt_acquire_lock_after_max_retries__this_process_will_no_longer_log_
push eax
lea eax, [ebp - 0xc]
push eax
push 0xfffffffffffffffe
push 0
push ebx
call fcn.18008c4b
jmp 0x18008e81
and dword [edi + 0xf8], 0
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18006f72
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18006f72
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18121ed8
leave
ret 0x14
Function at 0x18009373
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x181d600c]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
mov dword [edi], fcn.18009550
mov dword [edi + 4], 0x989680
mov word [edi + 8], bx
mov byte [edi + 0xa], al
mov byte [edi + 0xb], 1
call fcn.18006f9c
push eax
lea ecx, [edi + 0xc]
call fcn.180076af
push esi
lea ecx, [edi + 0x14]
mov dword [edi + 0x10], ebx
call fcn.180074fa
mov dword [edi + 0x18], ebx
call fcn.18006f9c
push eax
lea ecx, [edi + 0x1c]
call fcn.180076af
movzx ebx, byte [0x181dc05a]
neg ebx
sbb ebx, ebx
and ebx, 0x181dbf50
je 0x18009453
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, ebx
call fcn.18009145
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0
je 0x18009432
push esi
push 0x989680
push str.MaxLogFileSize
push str.LoggingSettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [edi + 4], eax
xor eax, eax
push esi
inc eax
push eax
push str.LogFileWide
push str.LoggingSettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
setne al
jmp 0x1800943c
xor eax, eax
mov dword [edi + 4], 0x989680
inc eax
lea edx, [ebx + 0x54]
mov byte [edi + 0xb], al
push edx
lea ecx, [edi + 0x1c]
call fcn.18009e8a
lea ecx, [esi - 0x10]
call fcn.18006f72
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18121ed8
leave
ret 8

Function at 0x180094c9
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 8], 0
jne 0x1800954e
mov byte [esi + 8], 1
call fcn.1800957c
cmp dword [esi + 0x10], 0
je 0x1800954e
test al, al
je 0x180094e9
mov byte [esi + 0xa], 1
mov ecx, esi
call fcn.18009b5e
test al, al
jne 0x18009510
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.180115cf
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop esi
ret
mov ecx, esi
call fcn.18009663
cmp dword [esi + 0x18], 0
jne 0x1800953b
push dword [esi + 0x14]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_create_logging_file__s_n
call fcn.180115cf
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [esi + 9], 0
cmp dword [esi + 0x10], 0
mov byte [esi + 9], 1
je 0x1800954e
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
ret
Function at 0x18009663
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x181d600c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
lea edx, [ebp - 8]
push ebx
push esi
push edi
mov edi, ecx
lea ebx, [edi + 0x14]
mov ecx, dword [ebx]
call fcn.180110c4
mov eax, dword [ebp - 8]
cmp eax, dword [edi + 4]
jbe 0x18009698
mov ecx, edi
call fcn.180097e3
xor eax, eax
cmp byte [edi + 0xa], al
setne al
xor esi, esi
push esi
push 0x80
lea eax, [eax*2 + 2]
push eax
push esi
push 3
push 0x40000000
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x18], eax
cmp eax, 0xffffffff
jne 0x180096d2
mov dword [edi + 0x18], esi
xor al, al
jmp 0x18009766
mov edx, ebx
mov dword [ebp - 8], esi
lea ecx, [ebp - 8]
call fcn.180164b6
mov esi, dword [ebp - 8]
lea edx, [ebp - 9]
xor ebx, ebx
mov ecx, esi
inc ebx
mov byte [ebp - 9], bl
call fcn.180108af
cmp byte [ebp - 9], 0
jne 0x18009733
mov ecx, dword [edi + 0x18]
call fcn.18007db8
test al, al
jne 0x18009733
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1800975c
cmp byte [edi + 0xb], 0
je 0x1800975c
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push 0
push eax
push 2
push 0x18178058
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1800975c
push dword [edi + 0x14]
push dword [edi + 0x1c]
push str.LOG_SYSTEM:___s_:_ERROR___Log_path__s_has_a_reparse_point
call fcn.180115cf
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [edi + 0x18], 0
xor bl, bl
lea ecx, [esi - 0x10]
call fcn.18006f72
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18121ed8
leave
ret

Function at 0x18009775
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x181d600c]
xor eax, ebp
mov dword [ebp - 4], eax
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 0x180097b0
xor al, al
jmp 0x180097d4
cmp byte [esi + 0xb], bl
je 0x180097cb
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push 2
push 0x18178058
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18121ed8
leave
ret
Function at 0x1800986b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x181d600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x18
mov dword [ebp - 0x7c], ecx
lea edi, [ebp - 0x68]
pop ecx
mov esi, str.SYSTEMCurrentControlSetControlSession_Manager
lea eax, [ebp - 0x78]
rep movsd dword es:[edi], dword [esi]
push eax
push 0x20019
xor ebx, ebx
lea eax, [ebp - 0x68]
push ebx
push eax
push 0x80000002
movsw word es:[edi], word [esi]
mov dword [ebp - 0x78], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1800999b
push 7
pop esi
lea eax, [ebp - 0x74]
mov dword [ebp - 0x74], ebx
push eax
push ebx
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], esi
push eax
push ebx
mov edi, str.PendingFileRenameOperations
push edi
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800999b
cmp dword [ebp - 0x6c], esi
jne 0x1800999b
push dword [ebp - 0x74]
call fcn.181227b8
push dword [ebp - 0x74]
mov esi, eax
push ebx
push esi
mov dword [ebp - 0x80], esi
call fcn.18136b80
add esp, 0x10
lea eax, [ebp - 0x74]
push eax
push esi
push ebx
push ebx
push edi
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18009990
mov edi, dword [ebp - 0x74]
shr edi, 1
lea eax, [edi - 2]
cmp eax, 0xffffd
ja 0x18009990
cmp word [esi + edi*2 - 4], bx
jne 0x18009990
cmp word [esi + edi*2 - 2], bx
jne 0x18009990
mov eax, dword [ebp - 0x7c]
lea ecx, [ebp - 0x70]
add eax, 0x14
mov dword [ebp - 0x70], ebx
push eax
mov edx, 0x181a539c
call fcn.18009c52
mov esi, dword [ebp - 0x70]
pop ecx
test edi, edi
je 0x1800997c
mov eax, dword [ebp - 0x80]
push esi
lea eax, [eax + ebx*2]
push eax
mov dword [ebp - 0x7c], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1800997f
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc ebx
add ebx, eax
cmp ebx, edi
jb 0x18009957
or ebx, 0xffffffff
cmp ebx, 0xffffffff
lea ecx, [esi - 0x10]
setne bl
call fcn.18006f72
mov esi, dword [ebp - 0x80]
push esi
call fcn.18122783
pop ecx
mov al, bl
jmp 0x1800999d
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18121ed8
leave
ret

Function at 0x18009b5e
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x18009b6b
xor al, al
pop esi
ret
push 0x1f4
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x18009ba4
cmp eax, 0x80
je 0x18009ba4
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.180115cf
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [esi + 9], 0
jmp 0x18009b67
mov al, 1
pop esi
ret
Function at 0x1800a898
Capabilities:
Compare security identifiers

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

Function at 0x1800c9f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x181d600c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
push esi
push edi
mov esi, ecx
call fcn.18006f9c
push eax
lea ecx, [ebp - 8]
call fcn.180076af
mov eax, dword [ebp - 8]
xor edx, edx
inc edx
mov edi, 0x104
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, edi
or edx, ecx
jge 0x1800ca39
push edi
lea ecx, [ebp - 8]
call fcn.1800773c
mov eax, dword [ebp - 8]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
push 0xffffffffffffffff
lea ecx, [ebp - 8]
mov esi, eax
call fcn.18009ed8
test esi, esi
jne 0x1800ca5b
mov edi, 0x80004005
jmp 0x1800cb03
push ebx
push ecx
push ecx
lea ecx, [ebp - 8]
call fcn.1800fbb2
push 0
push 0x5c
lea ecx, [ebp - 8]
call fcn.1800fa4f
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1800ca81
mov ecx, dword [ebp - 8]
mov eax, dword [ecx - 0xc]
jmp 0x1800ca83
mov eax, ebx
and dword [ebp - 0xc], 0
lea ecx, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.1800f94c
mov esi, dword [ebp - 0xc]
mov ecx, esi
call fcn.18010862
test al, al
jne 0x1800cac2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1800cac2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov edi, eax
call fcn.18010862
test al, al
je 0x1800cae1
cmp ebx, 0xffffffff
je 0x1800caf8
lea eax, [ebx + 1]
push eax
push 0x5c
lea ecx, [ebp - 8]
call fcn.1800fa4f
lea ecx, [esi - 0x10]
mov ebx, eax
call fcn.18006f72
jmp 0x1800ca74
test edi, edi
jle 0x1800caee
movzx edi, di
or edi, 0x80070000
lea ecx, [esi - 0x10]
call fcn.18006f72
jmp 0x1800cb02
lea ecx, [esi - 0x10]
call fcn.18006f72
xor edi, edi
pop ebx
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.18006f72
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.18121ed8
leave
ret