joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418420
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x483068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x418450
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004290a8
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x41848c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x41848c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004290a8
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x418573
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x4184b4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4184e7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.00445a2b
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004290a8
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x28], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call edx
test eax, eax
js 0x418573
cmp eax, 1
jle 0x418546
cmp eax, 3
jne 0x418573
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.0040ba90
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004290a8
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x418563
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00447809
add esp, 0x10
cmp edi, eax
jne 0x418573
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x418477
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004290a8
mov esp, ebp
pop ebp
ret 4
Function at 0x418ec0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x483068]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x418f6f
cmp byte [esi + 0x3e], 0
je 0x418f6f
mov eax, dword [esi]
push 0xffff
call dword [eax + 0xc]
mov ecx, 0xffff
cmp cx, ax
je 0x418f25
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x418f37
sub eax, 1
je 0x418f3b
sub eax, 2
je 0x418f6f
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004290a8
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3e], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x418f58
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00447809
add esp, 0x10
cmp edi, eax
jne 0x418f25
cmp byte [esi + 0x3e], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004290a8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004290a8
mov esp, ebp
pop ebp
ret

Function at 0x419040
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x483068]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x4190e3
cmp byte [esi + 0x3d], 0
je 0x4190e3
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x419099
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x4190ab
sub eax, 1
je 0x4190af
sub eax, 2
je 0x4190e3
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004290a8
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4190cc
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00447809
add esp, 0x10
cmp edi, eax
jne 0x419099
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004290a8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004290a8
mov esp, ebp
pop ebp
ret
Function at 0x41b180
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x465030
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x483068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.004290ea
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00426c17
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41b320
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x465030
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x483068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004290ea
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00426c17
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42bb61
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x453065
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00452d0c

Function at 0x453070
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00452e96
Function at 0x5ca7e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
jmp 0x5ca805
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jae 0x5ca878
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 8]
xor ecx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
shr eax, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x5ca83a
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 8
jge 0x5ca86d
mov edx, dword [ebp - 0x10]
and edx, 1
neg edx
sbb edx, edx
neg edx
mov byte [ebp - 0x15], dl
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x5ca86b
mov edx, dword [ebp - 0x10]
xor edx, 0xedb88320
mov dword [ebp - 0x10], edx
jmp 0x5ca831
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x5ca7fc
mov eax, dword [ebp - 8]
not eax
mov esp, ebp
pop ebp
ret
Function at 0x40167c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
nop
nop
push 0x2e
lea eax, [ebp - 0x84]
push 0x4032a8
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0x84]
push 0x2d
push eax
call fcn.00401acb
add esp, 0x14
lea eax, [ebp - 4]
push eax
push 0xf003f
lea eax, [ebp - 0x84]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4016f2
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push dword [ebp + 0xc]
push 1
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x401737
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
nop
lea eax, [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.DLL_VirtualProtectEx]
push eax
push pe_nt_image_headers32
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
je 0x401784
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
mov edi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x401787
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
push eax
push pe_nt_image_headers32
push dword [ebp + 0x14]
mov esi, dword [sym.imp.KERNEL32.DLL_VirtualProtectEx]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
je 0x4017d3
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
mov edi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x4017d6
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
push edi
nop
push 0x49
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x124]
mov dword [ebp - 0x128], ebx
push ebx
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [ebp - 0x128]
push eax
push edi
mov dword [ebp - 0x128], 0x128
call sub.KERNEL32.DLL_Process32First
mov esi, dword [sym.imp.MSVCRT.dll__stricmp]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call esi
pop ecx
test eax, eax
pop ecx
je 0x40184e
lea eax, [ebp - 0x128]
push eax
push edi
call sub.KERNEL32.DLL_Process32Next
test eax, eax
je 0x401854
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
jmp 0x401829
mov ebx, dword [ebp - 0x120]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x4019c7
Capabilities:
Allocate or change rwx memory

Disassembly:
push pe_nt_image_headers32
push 0x1000
push dword [esp + 0x10]
push 0
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.DLL_VirtualAllocEx]
ret

Function at 0x401acb
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
cmp dword [esp + 8], ecx
jle 0x401ae3
mov eax, dword [esp + 4]
add eax, ecx
xor byte [eax], 0x27
inc ecx
cmp ecx, dword [esp + 8]
jl 0x401ad3
ret
Function at 0x18006c49
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 0x18006ca2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x18006ca2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x18006c91
cmp esi, ecx
jae 0x18006ca2
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x18006c7f
cmp esi, ecx
jae 0x18006ca2
cmp word [esi], 0
je 0x18006ca2
lfence
mov eax, esi
jmp 0x18006ca4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x18007d98
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x181d100c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x18007db3
mov al, 1
jmp 0x18007df6
push 0x34
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.181312b0
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x18007dee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LOG_SYSTEM:_ERROR____::GetFileInformationByHandle_failed___d_
call fcn.180113c6
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x18007daf
mov eax, dword [ebp - 0x38]
shr eax, 0xa
and al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1811c608
leave
ret
Function at 0x18008341
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x181d100c]
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.18009127
mov edi, dword [ebp - 8]
cmp dword [edi - 0xc], 0
je 0x180083e6
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 0x180083f1
mov byte [ebx + 0x74], 1
mov dword [ebx + 0x76], 0x1000101
cmp byte [ebx + 0x75], 0
je 0x180083fb
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 + 0x181d2140]
mov ecx, dword [eax + 0x181d2144]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], edx
test edx, edx
je 0x18008474
cmp ecx, 9
ja 0x18008474
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, ebx
mov dword [ebp - 0x14], 3
call fcn.18009127
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0
je 0x18008457
push esi
push 3
push dword [ebp - 0x10]
push str.LoggingLevel
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
jmp 0x1800845a
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.18006f52
mov eax, dword [ebp - 0xc]
add eax, 8
mov dword [ebp - 0xc], eax
cmp eax, 0x48
jb 0x1800840a
call fcn.18011d8e
lea ecx, [edi - 0x10]
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x84], edx
call fcn.18006f52
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811c608
leave
ret
Function at 0x180084a7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x181d100c]
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.18006f7b
push eax
lea ecx, [ebp - 8]
call fcn.1800768f
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 0x180084f2
push edx
lea ecx, [ebp - 8]
call fcn.1800771c
mov edi, dword [ebp - 8]
and dword [ebp - 0xc], 0
call fcn.18006f7b
push eax
lea ecx, [ebp - 0xc]
call fcn.1800768f
call fcn.18016e6c
test al, al
jne 0x18008524
call fcn.18014c0a
test al, al
jne 0x18008524
mov dword [ebp - 0x10], 0x1c
mov esi, 0x181a1a10
jmp 0x18008530
mov dword [ebp - 0x10], 0x23
mov esi, str.MicrosoftEdgeUpdateLog
push esi
call fcn.18135300
pop ecx
push eax
push esi
lea ecx, [ebp - 0xc]
call fcn.180075cd
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 0x1800857d
push 0x18170bbc
mov ecx, ebx
call fcn.180074da
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18006f52
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.18009eb8
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
jmp 0x180085c2
mov esi, dword [ebp - 0xc]
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
jne 0x1800859a
push 0x18170bbc
mov ecx, ebx
call fcn.180074da
jmp 0x180085aa
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.1800a0ba
add eax, 0x10
mov dword [ebx], eax
lea ecx, [esi - 0x10]
call fcn.18006f52
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.18009eb8
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811c608
leave
ret 4

Function at 0x18008691
Capabilities:
Print debug messages

Disassembly:
push edi
mov edi, ecx
cmp dword [edi + 0xe0], 0
jne 0x180086dc
push esi
push 0x40
call fcn.1811ceb8
push 0x40
mov esi, eax
push 0
push esi
call fcn.181312b0
add esp, 0xc
mov ecx, esi
call fcn.180115c4
mov dword [edi + 0xe0], eax
pop esi
test eax, eax
jne 0x180086dc
push dword [edi + 0x54]
push str.LOG_SYSTEM:___s_:_ERROR___Cannot_create_ETW_log_writer
call fcn.180113c6
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [edi + 0xe0]
test eax, eax
je 0x180086ee
push eax
mov ecx, edi
call fcn.18009098
pop edi
ret
Function at 0x180086f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x181d100c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
cmp byte [ebx + 0x77], 0
je 0x180087da
push esi
xor esi, esi
cmp dword [ebx + 0xd8], esi
jne 0x180087c7
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
call fcn.180085da
mov eax, dword [ebp - 0xc]
cmp dword [eax - 0xc], esi
je 0x18008762
lea edx, [ebp - 0xc]
mov dword [ebp - 8], esi
lea ecx, [ebp - 8]
call fcn.18016346
mov esi, dword [ebp - 8]
mov ecx, esi
call fcn.18010616
test al, al
jne 0x1800876c
mov ecx, esi
call fcn.1800c9d0
test eax, eax
jns 0x1800876c
lea ecx, [esi - 0x10]
call fcn.18006f52
mov eax, dword [ebp - 0xc]
lea ecx, [eax - 0x10]
call fcn.18006f52
jmp 0x180087d9
mov al, byte [ebx + 0x79]
push edi
push 0x20
mov byte [ebp - 8], al
call fcn.1811ceb8
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.18009353
mov dword [ebx + 0xd8], eax
test eax, eax
jne 0x180087b6
push edi
push dword [ebx + 0x54]
push str.LOG_SYSTEM:___s_:_ERROR___Cannot_create_log_writer_to__s
call fcn.180113c6
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [esi - 0x10]
call fcn.18006f52
lea ecx, [edi - 0x10]
call fcn.18006f52
pop edi
mov eax, dword [ebx + 0xd8]
test eax, eax
je 0x180087d9
push eax
mov ecx, ebx
call fcn.18009098
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1811c608
leave
ret

Function at 0x18008974
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x181d100c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x7a], 1
jne 0x180089ba
lea ecx, [ebp - 8]
call fcn.18007eaf
push dword [eax]
push str.LOG_SYSTEM:___s_:_ERROR___Calling_the_logging_system_after_it_has_been_shut_down__n
call fcn.180113c6
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 8]
lea ecx, [eax - 0x10]
call fcn.18006f52
xor al, al
jmp 0x180089eb
cmp byte [esi + 0x50], 1
jne 0x180089c4
mov al, 1
jmp 0x180089eb
and dword [ebp - 0xc], 0
lea eax, [esi + 0x58]
and dword [ebp - 8], 0
lea ecx, [ebp - 0xc]
push eax
call fcn.1801558d
mov ecx, esi
call fcn.180088ae
lea ecx, [ebp - 0xc]
mov bl, al
call fcn.180155b8
mov al, bl
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1811c608
leave
ret
Function at 0x18008d1a
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x181d100c]
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 0x18008e79
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x18008d54
cmp dword [ebp + 0x10], 2
jg 0x18008e79
cmp dword [edi + 0xf8], 3
jg 0x18008e79
and dword [ebp - 0xc], 0
call fcn.18006f7b
push eax
lea ecx, [ebp - 0xc]
call fcn.1800768f
and dword [ebp - 8], 0
call fcn.18006f7b
push eax
lea ecx, [ebp - 8]
call fcn.1800768f
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 [0x181603e8]
lea ecx, [edi + 0x58]
call esi
test al, al
jne 0x18008ddb
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 0x18008d8e
jmp 0x18008e10
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.18008c2d
mov eax, dword [edi + 0x58]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x181603e8]
lea ecx, [edi + 0x58]
call esi
cmp dword [ebp - 0x10], 0x14
jle 0x18008e5c
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 0x181a1ce0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
inc dword [edi + 0xf8]
cmp dword [edi + 0xf8], 3
jle 0x18008e63
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.18008c2d
jmp 0x18008e63
and dword [edi + 0xf8], 0
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811c608
leave
ret 0x14