joyce8/EMBER2024-capa huggingface dataset:
Function at 0x434d40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x24000]
push edi
jmp 0x434d5a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x434d61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x434d50
mov eax, 1
add ebx, ebx
jne 0x434d73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x434d68
jne 0x434d84
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x434d68
xor ecx, ecx
sub eax, 3
jb 0x434d98
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x434e0a
mov ebp, eax
add ebx, ebx
jne 0x434da3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x434db0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x434dd4
inc ecx
add ebx, ebx
jne 0x434dc0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x434db5
jne 0x434dd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x434db5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x434df4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x434de5
jmp 0x434d56
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x434df4
add edi, ecx
jmp 0x434d56
pop esi
mov edi, esi
mov ecx, 0x5e7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x434e12
cmp byte [edi], 9
jne 0x434e12
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x434e17
lea edi, [esi + 0x32000]
mov eax, dword [edi]
or eax, eax
je 0x434e8f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x40cb8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x40d94]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x434e44
mov ecx, edi
jns 0x434e73
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x40d98]
or eax, eax
je 0x434e89
mov dword [ebx], eax
add ebx, 4
jmp 0x434e61
call dword [esi + 0x40da8]
mov ebp, dword [esi + 0x40d9c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x434ec3
sub esp, 0xffffff80
jmp 0x40c9f0
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x40d058], 1
mov dword [0x40d054], 1
mov dword [0x40d050], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x40d00c], eax
mov eax, dword [0x40d064]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x40d078]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x40d060]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x409014], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056

Function at 0x401890
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x4018f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40d06c]
test esi, esi
jle 0x401a10
mov eax, dword [0x40d070]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x401924
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4019a7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401910
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401a37
mov eax, dword [0x40d070]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x40d070]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401a17
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x4019a0
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x4019b0
add dword [0x40d06c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40d070]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4019a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, cs:[esi]
nop
xor esi, esi
jmp 0x40192e
mov eax, dword [0x40d070]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, cs:[esi]
nop

Function at 0x401f60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40d088
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40d080]
sub esp, 4
test ebx, ebx
je 0x401fb5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x401fae
test eax, eax
jne 0x401fae
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401f90
mov dword [esp], 0x40d088
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4022f0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402315
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402320
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402315
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x402368
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40235e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40236a
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x402350
xor eax, eax
pop ebx
pop esi
ret
Function at 0x18006799
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 0x180067ef
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x180067ef
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x180067e1
cmp esi, ecx
jae 0x180067ef
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x180067cf
cmp esi, ecx
jae 0x180067ef
cmp word [esi], 0
je 0x180067ef
mov eax, esi
jmp 0x180067f1
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x18008498
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov ebx, ecx
push eax
call fcn.18009191
mov esi, dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x18], esi
mov dword [ebp - 8], edi
cmp dword [esi - 0xc], 0
je 0x18008584
push esi
push 1
push str.EnableLogging
push str.LoggingSettings
call edi
push esi
push 1
test eax, eax
push str.ShowTime
setne al
push str.LoggingSettings
mov byte [ebx + 0x74], al
call edi
push esi
push 1
test eax, eax
push str.LogToFile
setne al
push str.LoggingSettings
mov byte [ebx + 0x76], al
call edi
push esi
push 0
test eax, eax
push str.LogToOutputDebug
setne al
push str.LoggingSettings
mov byte [ebx + 0x77], al
call edi
push esi
push 1
test eax, eax
push str.AppendToFile
setne al
push str.LoggingSettings
mov byte [ebx + 0x7c], al
call edi
test eax, eax
lea edi, [ebx + 0x78]
setne al
xor ecx, ecx
mov byte [ebx + 0x7d], al
inc ecx
mov edx, dword [edi]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, 0x104
or ecx, eax
jge 0x1800855d
push 0x104
mov ecx, edi
call fcn.18007204
mov edx, dword [edi]
push esi
push 0x104
push edx
push str.MicrosoftEdgeUpdate.log
push str.LogFilePath
push str.LoggingSettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.18009dcb
jmp 0x180085af
push str.MicrosoftEdgeUpdate.log
mov byte [ebx + 0x74], 1
mov byte [ebx + 0x76], 1
mov word [ebx + 0x7c], 0x100
call fcn.180d0fcb
pop ecx
push eax
push str.MicrosoftEdgeUpdate.log
lea ecx, [ebx + 0x78]
call fcn.180070d0
mov byte [ebx + 0x77], 1
cmp byte [ebx + 0x75], 0
je 0x180085b9
mov byte [ebx + 0x76], 1
mov esi, dword [ebp - 8]
xor eax, eax
mov byte [ebx], 1
mov dword [ebx + 4], 7
mov dword [ebp - 4], eax
mov ecx, dword [eax + 0x18272d80]
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x1800862d
mov ecx, dword [eax + 0x18272d84]
mov dword [ebp - 0x14], ecx
cmp ecx, 9
ja 0x1800862d
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 3
push eax
mov ecx, ebx
call fcn.18009191
mov edi, dword [ebp - 8]
cmp dword [edi - 0xc], 0
je 0x18008610
push edi
push 3
push dword [ebp - 0xc]
push str.LoggingLevel
call esi
jmp 0x18008613
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
test eax, eax
setne cl
mov byte [ebx + edx*8], cl
lea ecx, [edi - 0x10]
mov dword [ebx + edx*8 + 4], eax
call fcn.18006a60
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 4], eax
cmp eax, 0x48
jb 0x180085cb
call fcn.1800ece9
mov ecx, dword [ebp - 0x18]
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x84], edx
lea ecx, [ecx - 0x10]
call fcn.18006a60
pop edi
pop esi
pop ebx
leave
ret
Function at 0x18008659
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
call fcn.18006a78
push eax
lea ecx, [ebp - 4]
call fcn.18007187
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 0x18008692
push edx
lea ecx, [ebp - 4]
call fcn.18007204
mov esi, dword [ebp - 4]
call fcn.18006a78
push eax
lea ecx, [ebp - 8]
call fcn.18007187
call fcn.18012f16
test al, al
jne 0x180086bb
call fcn.180116a6
test al, al
jne 0x180086bb
push 0x1c
mov edi, 0x18232268
jmp 0x180086c2
push 0x23
mov edi, str.MicrosoftEdgeUpdateLog
pop ebx
push edi
call fcn.180d0fcb
pop ecx
push eax
push edi
lea ecx, [ebp - 8]
call fcn.180070d0
push esi
xor eax, eax
push eax
push eax
push ebx
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x18008714
mov ecx, dword [ebp + 8]
push 0x18218228
call fcn.18006fb5
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.18006a60
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.18009dcb
lea ecx, [esi - 0x10]
call fcn.18006a60
mov eax, dword [ebp + 8]
jmp 0x18008762
mov edi, dword [ebp - 8]
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
jne 0x18008735
mov ecx, dword [ebp + 8]
push 0x18218228
call fcn.18006fb5
lea ecx, [edi - 0x10]
jmp 0x180086f8
lea ebx, [esi - 0x10]
mov ecx, ebx
call fcn.18009fcf
mov esi, dword [ebp + 8]
lea ecx, [edi - 0x10]
add eax, 0x10
mov dword [esi], eax
call fcn.18006a60
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.18009dcb
mov ecx, ebx
call fcn.18006a60
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1800888a
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 0x18008953
mov eax, dword [ebx + 0xd8]
push esi
push edi
test eax, eax
jne 0x18008949
lea eax, [ebp - 4]
push eax
call fcn.18008769
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], 0
je 0x180088ea
lea edx, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.1801270e
mov edi, dword [ebp - 8]
mov ecx, edi
call fcn.1800da32
test al, al
jne 0x180088f4
mov ecx, edi
call fcn.1800ba43
test eax, eax
jns 0x180088f4
lea ecx, [edi - 0x10]
call fcn.18006a60
lea ecx, [esi - 0x10]
call fcn.18006a60
jmp 0x18008951
mov al, byte [ebx + 0x7d]
push 0x20
mov byte [ebp - 8], al
call fcn.180b1a93
pop ecx
push dword [ebp - 8]
mov ecx, eax
push esi
call fcn.1800932b
mov dword [ebx + 0xd8], eax
test eax, eax
jne 0x1800892f
push esi
push dword [ebx + 0x54]
push str.LOG_SYSTEM:___s_:_ERROR___Cannot_create_log_writer_to__s
call fcn.1800e431
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [edi - 0x10]
call fcn.18006a60
lea ecx, [esi - 0x10]
call fcn.18006a60
mov eax, dword [ebx + 0xd8]
test eax, eax
je 0x18008951
push eax
mov ecx, ebx
call fcn.18009102
pop edi
pop esi
pop ebx
leave
ret
Function at 0x18008df2
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, ecx
test esi, esi
je 0x18008f1a
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x18008e18
cmp dword [ebp + 0x10], 2
jg 0x18008f1a
cmp dword [edi + 0xf8], 3
jg 0x18008f1a
call fcn.18006a78
push eax
lea ecx, [ebp - 4]
call fcn.18007187
call fcn.18006a78
push eax
lea ecx, [ebp + 8]
call fcn.18007187
mov dword [ebp + 0x14], 1
lea ecx, [edi + 0x58]
add dword [edi + 0xe8], 1
push 0
adc dword [edi + 0xec], 0
call fcn.18011f3b
test al, al
jne 0x18008e8b
add dword [edi + 0xf0], 1
push 0x32
adc dword [edi + 0xf4], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 0x14]
lea ecx, [edi + 0x58]
inc eax
mov dword [ebp + 0x14], eax
cmp eax, 0x14
jle 0x18008e4b
jmp 0x18008eb0
push dword [ebp + 0x18]
lea eax, [ebp + 8]
mov ecx, edi
push esi
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.18008d1e
lea ecx, [edi + 0x58]
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [ebp + 0x14]
cmp eax, 0x14
jle 0x18008efd
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 0x18232508
call esi
inc dword [edi + 0xf8]
cmp dword [edi + 0xf8], 3
jle 0x18008f04
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 - 4]
push eax
push 0xfffffffffffffffe
push 0
push ebx
call fcn.18008d1e
jmp 0x18008f04
and dword [edi + 0xf8], 0
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.18006a60
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18006a60
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x1800932b
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.180094d9
mov dword [ebx + 4], 0x989680
mov word [ebx + 8], 0
mov byte [ebx + 0xa], al
mov byte [ebx + 0xb], 1
call fcn.18006a78
push eax
lea ecx, [ebx + 0xc]
call fcn.18007187
push dword [ebp + 8]
xor edi, edi
lea ecx, [ebx + 0x14]
mov dword [ebx + 0x10], edi
call fcn.18006fb5
mov dword [ebx + 0x18], edi
call fcn.18006a78
push eax
lea ecx, [ebx + 0x1c]
call fcn.18007187
movzx eax, byte [0x1827e6e4]
neg eax
sbb eax, eax
and eax, 0x1827e000
mov dword [ebp + 8], eax
je 0x180093fe
lea ecx, [ebp + 0xc]
push ecx
mov ecx, eax
call fcn.18009191
mov esi, dword [ebp + 0xc]
cmp dword [esi - 0xc], edi
je 0x180093da
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 0x180093e4
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.18009d7d
lea ecx, [esi - 0x10]
call fcn.18006a60
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8

Function at 0x18009456
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 8], 0
jne 0x180094d7
mov byte [esi + 8], 1
call fcn.18009505
cmp dword [esi + 0x10], 0
je 0x180094d7
test al, al
je 0x18009476
mov byte [esi + 0xa], 1
mov ecx, esi
call fcn.18009a65
test al, al
jne 0x1800949d
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.1800e431
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop esi
ret
mov ecx, esi
call fcn.180095cf
cmp dword [esi + 0x18], 0
jne 0x180094c4
push dword [esi + 0x14]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_create_logging_file__s_n
call fcn.1800e431
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [esi + 0x10], 0
mov byte [esi + 9], 1
je 0x180094d7
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
ret
Function at 0x180095cf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x1826b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
lea edx, [ebp - 0x6c]
push edi
xor edi, edi
mov dword [ebp - 0x6c], edi
mov ecx, dword [esi + 0x14]
call fcn.1800e0c0
mov eax, dword [ebp - 0x6c]
cmp eax, dword [esi + 4]
jbe 0x18009606
mov ecx, esi
call fcn.1800973c
xor eax, eax
cmp byte [esi + 0xa], al
push edi
setne al
push 0x80
lea eax, [eax*2 + 2]
push eax
push edi
push 3
push 0x40000000
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x18], eax
cmp eax, 0xffffffff
jne 0x1800963f
mov dword [esi + 0x18], edi
xor al, al
jmp 0x180096d4
lea ecx, [ebp - 0x8c]
call fcn.180079cb
push 0x221
push 0x20
push 2
lea eax, [ebp - 0x68]
push 0x18231f20
push eax
call fcn.18007613
add esp, 0x14
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x8c]
push edi
push 0xc0010000
push eax
call fcn.18007a48
lea ecx, [ebp - 0x68]
mov bl, al
call fcn.180076fc
test bl, bl
je 0x1800969c
push ecx
mov ecx, dword [esi + 0x14]
lea eax, [ebp - 0x8c]
xor edx, edx
push eax
inc edx
call fcn.18007f69
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x180096c7
cmp byte [esi + 0xb], 0
je 0x180096c7
push edi
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x6c], edi
push ecx
push 2
push 0x18219514
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x8c]
call fcn.18007a11
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.180b1200
leave
ret

Function at 0x180096e3
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 0x18009713
xor al, al
jmp 0x18009737
cmp byte [esi + 0xb], bl
je 0x1800972e
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 2
push 0x18219514
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 0x180097a7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x1826b00c]
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 0x80000002
movsw word es:[edi], word [esi]
mov dword [ebp - 0x70], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180098cf
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 0x180098cf
cmp dword [ebp - 0x78], esi
jne 0x180098cf
push dword [ebp - 0x6c]
call fcn.180b1ac3
push dword [ebp - 0x6c]
mov esi, eax
push ebx
push esi
call fcn.180c7aa0
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 0x180098c0
mov edi, dword [ebp - 0x6c]
shr edi, 1
mov dword [ebp - 0x7c], edi
lea eax, [edi - 2]
cmp eax, 0xffffd
ja 0x180098c0
cmp word [esi + edi*2 - 4], bx
jne 0x180098c0
cmp word [esi + edi*2 - 2], bx
jne 0x180098c0
mov eax, dword [ebp - 0x74]
lea ecx, [ebp - 0x74]
add eax, 0x14
mov edx, 0x18232914
push eax
call fcn.18009b3e
test edi, edi
mov edi, dword [ebp - 0x74]
pop ecx
je 0x180098af
lea eax, [esi + ebx*2]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x180098b2
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 0x1800988e
or ebx, 0xffffffff
cmp ebx, 0xffffffff
lea ecx, [edi - 0x10]
setne bl
call fcn.18006a60
test esi, esi
je 0x180098cb
push esi
call fcn.180b1a8e
pop ecx
mov al, bl
jmp 0x180098d1
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.180b1200
leave
ret

Function at 0x18009a65
Capabilities:
Print debug messages

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

Function at 0x1800a561
Capabilities:
Compare security identifiers

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