joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5def10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5f39fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x5df002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.005e2dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x5df002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.005da6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.005e320b
push 0x10
call fcn.005e31d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x5defc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.005cf1c0
jmp 0x5defc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.005deb80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x5deff0
mov ecx, edi
call fcn.005cf2c0
push edi
call fcn.005e31c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x5df021
inc ebx
cmp ebx, 0x20
jb 0x5def3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x5e0250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f4808
push 0x5e4288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x5e0329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x5e0329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.005e31d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x5e0329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x5e0329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x5e032c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.005e0351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5e0d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x5e0d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x5e0d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x5e0d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5e0d94
push eax
push esi
call fcn.005e320b
add esp, 8
pop esi
ret 0x10

Function at 0x5e0da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5e0e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x5e0e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x5f9320
push ecx
mov dword [esp + 0x1c], 4
call fcn.005e2dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x5e0dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x5e0e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5e0ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x5e0eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x5f9320
push ecx
mov dword [esp + 0x1c], 4
call fcn.005e2dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x5e0eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x5e0e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x5e1000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x5e1131
push esi
call fcn.005e4145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.005d3080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x5e1131
push 0
push ebp
call fcn.005d33a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.005d3260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x5e108b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.005d32f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x5e1121
push 0x5f9918
push edi
call fcn.005e23f0
push eax
push ebx
push esi
call fcn.005e0f60
push 0x5f98f8
push edi
call fcn.005e23f0
push eax
push ebx
push esi
call fcn.005e0f60
push 0x5f98d8
push edi
call fcn.005e23f0
push eax
push ebx
push esi
call fcn.005e0f60
push 0x5f98c0
push edi
call fcn.005e23f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.005e0f60
push 0x5f98a0
push edi
call fcn.005e23f0
push eax
push ebx
push esi
call fcn.005e0f60
push 0x5f9888
push edi
call fcn.005e23f0
push eax
push ebx
push esi
call fcn.005e0f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x5e21b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.005e2140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.005e2140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.005e2140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.005e2140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x5e2bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5e2c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x5f487c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5e2c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x5e2c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x18004531
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 0x18004587
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x18004587
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x18004579
cmp esi, ecx
jae 0x18004587
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x18004567
cmp esi, ecx
jae 0x18004587
cmp word [esi], 0
je 0x18004587
mov eax, esi
jmp 0x18004589
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1800504f
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x181c7008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x1800506a
mov al, 1
jmp 0x180050ad
push 0x34
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.18144340
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x180050a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LOG_SYSTEM:_ERROR____::GetFileInformationByHandle_failed___d_
call fcn.1800b4a3
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x18005066
mov eax, dword [ebp - 0x38]
shr eax, 0xa
and al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.18141824
leave
ret

Function at 0x180050ba
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 0x180050e8
xor al, al
jmp 0x18005130
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 0x1800512c
cmp dword [ebp - 8], edi
jne 0x1800512c
cmp dword [ebp - 0xc], ebx
je 0x1800512c
mov bl, 1
pop edi
mov al, bl
pop esi
pop ebx
leave
ret
Function at 0x180054ae
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov ebx, ecx
call fcn.180050ba
mov byte [ebx + 0x77], al
mov ecx, ebx
lea eax, [ebp - 4]
push eax
call fcn.1800603b
mov edi, dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x14], edi
cmp dword [edi - 0xc], 0
je 0x18005539
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 0x18005547
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 0x18005554
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 + 0x181c80c0]
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x180055c0
mov ecx, dword [eax + 0x181c80c4]
mov dword [ebp - 0x10], ecx
cmp ecx, 9
ja 0x180055c0
lea eax, [ebp - 8]
mov ecx, ebx
push eax
call fcn.1800603b
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0
je 0x180055a3
push esi
push 1
push dword [ebp - 0xc]
push str.LoggingLevel
call edi
jmp 0x180055a6
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.18004637
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 4], eax
cmp eax, 0x48
jb 0x18005565
call fcn.1800bd4e
mov ecx, dword [ebp - 0x14]
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x84], edx
lea ecx, [ecx - 0x10]
call fcn.18004637
pop edi
pop esi
pop ebx
leave
ret

Function at 0x180055ec
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
call fcn.18003fd3
push eax
lea ecx, [ebp - 4]
call fcn.18006df7
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 0x18005622
push edx
lea ecx, [ebp - 4]
call fcn.18006ecd
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 0x18005658
mov ecx, dword [ebp + 8]
push 0x1817cc0c
call fcn.18006abf
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.18006b1a
lea ecx, [esi - 0x10]
call fcn.18004637
mov eax, dword [ebp + 8]
jmp 0x1800568f
push str.GoogleUpdateLog
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x18005634
push edi
lea edi, [esi - 0x10]
mov ecx, edi
call fcn.18006e74
mov esi, dword [ebp + 8]
lea ecx, [ebp - 4]
add eax, 0x10
push 0xffffffffffffffff
mov dword [esi], eax
call fcn.18006b1a
mov ecx, edi
call fcn.18004637
mov eax, esi
pop edi
pop esi
leave
ret 4
Function at 0x1800573f
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 0x18005808
mov eax, dword [ebx + 0xcc]
push esi
push edi
test eax, eax
jne 0x180057fe
lea eax, [ebp - 4]
push eax
call fcn.18005694
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], 0
je 0x1800579f
lea edx, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.1800edf0
mov edi, dword [ebp - 8]
mov ecx, edi
call fcn.1800a915
test al, al
jne 0x180057a9
mov ecx, edi
call fcn.1800881c
test eax, eax
jns 0x180057a9
lea ecx, [edi - 0x10]
call fcn.18004637
lea ecx, [esi - 0x10]
call fcn.18004637
jmp 0x18005806
mov al, byte [ebx + 0x79]
push 0x20
mov byte [ebp - 8], al
call fcn.18141eee
pop ecx
push dword [ebp - 8]
mov ecx, eax
push esi
call fcn.18006128
mov dword [ebx + 0xcc], eax
test eax, eax
jne 0x180057e4
push esi
push dword [ebx + 0x54]
push str.LOG_SYSTEM:___s_:_ERROR___Cannot_create_log_writer_to__s
call fcn.1800b4a3
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [edi - 0x10]
call fcn.18004637
lea ecx, [esi - 0x10]
call fcn.18004637
mov eax, dword [ebx + 0xcc]
test eax, eax
je 0x18005806
push eax
mov ecx, ebx
call fcn.18005fc8
pop edi
pop esi
pop ebx
leave
ret

Function at 0x18005d47
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 0x18005e08
cmp dword [ebp + 8], 0
jne 0x18005d6c
cmp dword [ebp + 0x10], 2
jg 0x18005e08
call fcn.18003fd3
push eax
lea ecx, [ebp - 4]
call fcn.18006df7
call fcn.18003fd3
push eax
lea ecx, [ebp + 0x14]
call fcn.18006df7
xor edi, edi
lea eax, [ebx + 0x58]
inc edi
push 0
mov ecx, eax
call fcn.1800eba4
test al, al
jne 0x18005dae
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
lea eax, [ebx + 0x58]
cmp edi, 0x14
jle 0x18005d8e
jmp 0x18005dd2
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.18005c73
lea ecx, [ebx + 0x58]
mov eax, dword [ecx]
call dword [eax + 8]
cmp edi, 0x14
jle 0x18005df2
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 0x181a2798
call esi
mov ecx, dword [ebp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.18004637
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18004637
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x18006128
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.180062d6
mov dword [ebx + 4], 0x989680
mov word [ebx + 8], 0
mov byte [ebx + 0xa], al
mov byte [ebx + 0xb], 1
call fcn.18003fd3
push eax
lea ecx, [ebx + 0xc]
call fcn.18006df7
push dword [ebp + 8]
xor edi, edi
lea ecx, [ebx + 0x14]
mov dword [ebx + 0x10], edi
call fcn.18006abf
mov dword [ebx + 0x18], edi
call fcn.18003fd3
push eax
lea ecx, [ebx + 0x1c]
call fcn.18006df7
movzx eax, byte [0x181cf83a]
neg eax
sbb eax, eax
and eax, 0x181cea00
mov dword [ebp + 8], eax
je 0x180061fb
lea ecx, [ebp + 0xc]
push ecx
mov ecx, eax
call fcn.1800603b
mov esi, dword [ebp + 0xc]
cmp dword [esi - 0xc], edi
je 0x180061d7
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 0x180061e1
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.18006a67
lea ecx, [esi - 0x10]
call fcn.18004637
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8

Function at 0x18006253
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 8], 0
jne 0x180062d4
mov byte [esi + 8], 1
call fcn.18006302
cmp dword [esi + 0x10], 0
je 0x180062d4
test al, al
je 0x18006273
mov byte [esi + 0xa], 1
mov ecx, esi
call fcn.18006912
test al, al
jne 0x1800629a
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.1800b4a3
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop esi
ret
mov ecx, esi
call fcn.180063cc
cmp dword [esi + 0x18], 0
jne 0x180062c1
push dword [esi + 0x14]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_create_logging_file__s_n
call fcn.1800b4a3
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [esi + 0x10], 0
mov byte [esi + 9], 1
je 0x180062d4
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
ret
Function at 0x180063cc
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x181c7008]
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.1800b10f
mov eax, dword [ebp - 0x8c]
cmp eax, dword [ebx + 4]
jbe 0x18006419
mov ecx, ebx
call fcn.180065e9
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 0x18006450
mov dword [ebx + 0x18], edi
xor al, al
jmp 0x180064b6
mov edx, esi
lea ecx, [ebp - 0x8c]
call fcn.1800edf0
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 0x180064c5
call fcn.18013c6a
push dword [ebx + 0x14]
push dword [ebx + 0x1c]
push str.LOG_SYSTEM:___s_:_ERROR___Log_path__s_has_a_reparse_point
call fcn.1800b4a3
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.18004637
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18141824
leave
ret
mov eax, dword [ebp - 0x28]
shr eax, 0xa
and al, 1
jne 0x18006484
mov ecx, dword [ebx + 0x18]
call fcn.1800504f
test al, al
jne 0x18006484
lea ecx, [ebp - 0xb8]
call fcn.18004a67
push 0x221
push 0x20
push 2
lea eax, [ebp - 0x88]
push 0x181a21d4
push eax
call fcn.180046ae
add esp, 0x14
lea eax, [ebp - 0x88]
lea ecx, [ebp - 0xb8]
push edi
push 0xc0010000
push eax
call fcn.18004ae4
lea ecx, [ebp - 0x88]
mov bl, al
call fcn.18004797
test bl, bl
je 0x18006546
push ecx
lea eax, [ebp - 0xb8]
xor edx, edx
push eax
mov eax, dword [ebp - 0x98]
inc edx
mov ecx, dword [eax]
call fcn.18005013
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1800657d
mov eax, dword [ebp - 0x94]
cmp byte [eax + 0xb], 0
je 0x1800657d
push edi
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x94], edi
push ecx
push 2
push 0x1817dd64
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0xb8]
call fcn.18004aad
xor ebx, ebx
inc ebx
jmp 0x180064ac