joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4049d0
Capabilities:
Create directory

Disassembly:
sub esp, 0x51c
push ebx
mov ebx, ecx
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x404ae4
lea eax, [esp + 4]
push eax
push 0x4091d8
push 1
push 0
push 0x4091c8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x404ae4
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push edx
push 0x4091e8
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x404ae4
lea eax, [esp + 0xc]
push 2
push eax
mov ecx, ebx
mov byte [esp + 0x14], 0
call fcn.00404b00
test eax, eax
je 0x404ae4
push ebp
push esi
push edi
mov edi, 0x40bc44
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push eax
and ecx, 3
lea eax, [esp + 0x1c]
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push 0x40bc3c
push 2
push str.Pig.exe
push ecx
push edx
mov ecx, ebx
call fcn.00404b90
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push 0x40bc3c
push 2
push str.readme.txt
push eax
push ecx
mov ecx, ebx
call fcn.00404b90
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push 0x40bc3c
push 2
push str.Uninstall.exe
push edx
push eax
mov ecx, ebx
call fcn.00404b90
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x51c
ret
call fcn.004023f0
xor eax, eax
pop ebx
add esp, 0x51c
ret

Function at 0x404b00
Capabilities:
Get common file path

Disassembly:
sub esp, 8
lea eax, [esp]
mov dword [esp], 0
push eax
mov dword [esp + 8], 0
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov ecx, dword [esp]
test ecx, ecx
je 0x404b7b
test eax, eax
jne 0x404b7b
mov edx, dword [esp + 0x10]
lea ecx, [esp + 4]
push ecx
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x404b7b
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x404b7b
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x404b66
mov eax, dword [esp]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [esp]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, 1
add esp, 8
ret 8
xor eax, eax
add esp, 8
ret 8
Function at 0x405320
Capabilities:
Copy file
Delete file
Get common file path

Disassembly:
sub esp, 0x800
push ebp
push esi
lea eax, [esp + 8]
push 0x400
mov ebp, ecx
push eax
mov byte [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x40534e
pop esi
pop ebp
add esp, 0x800
ret 4
push ebx
push edi
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0xf], 0x5c
je 0x405393
mov edi, 0x40b034
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, dword [esp + 0x814]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x7c]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x414]
push 0x40b3c4
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [ebp + 0x7c]
add esp, 0xc
mov edx, dword [eax - 8]
mov al, byte [edx + eax - 1]
cmp al, 0x5c
je 0x405422
cmp al, 0x2f
je 0x405422
mov edi, 0x40b034
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x410]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x410]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x418]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop ebx
test eax, eax
jne 0x40547c
call fcn.004023f0
pop esi
xor eax, eax
pop ebp
add esp, 0x800
ret 4
lea edx, [esp + 0x408]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x4054ad
call fcn.004023f0
pop esi
xor eax, eax
pop ebp
add esp, 0x800
ret 4
push str.DllRegisterServer
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4054d6
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.004023f0
pop esi
xor eax, eax
pop ebp
add esp, 0x800
ret 4
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov eax, 1
pop ebp
add esp, 0x800
ret 4
Function at 0x4054f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 8
lea eax, [esp + 0x10]
push eax
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40551a
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
add esp, 8
ret 0xc
mov eax, dword [esp + 0xc]
lea edx, [esp]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 0x18]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x18], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40555a
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
add esp, 8
ret 0xc
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
add esp, 8
ret 0xc

Function at 0x4055d0
Capabilities:
Check os version

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor ecx, ecx
mov cl, ah
test cl, cl
jne 0x4055e7
cmp al, 5
mov eax, 1
je 0x4055ec
mov eax, 2
ret

Function at 0x405a80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x405aa4
xor eax, eax
add esp, 0xc
ret 4
mov edx, dword [esp + 0x10]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push str.ProgramFilesDir
push ecx
mov dword [esp + 0x1c], 0x514
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x405ae4
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0xc
ret 4
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0xc
ret 4
Function at 0x405b70
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x407928
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
mov ebx, ecx
push esi
push edi
lea esi, [ebx + 0x68]
push 0x5c
mov ecx, esi
call sub.MFC42.DLL_CString::Find_1
push eax
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::Left
mov edi, dword [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x34], 0
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40b034
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, 0xa
call fcn.00407170
mov esi, eax
lea ecx, [ebx + 0x64]
push esi
push 0x40bddc
push ecx
call sub.MFC42.DLL_CString::Format
lea eax, [esi - 0xb40]
add esp, 0xc
cdq
mov dword [ebx + 0x70], eax
mov eax, edx
test eax, eax
mov dword [ebx + 0x74], edx
jg 0x405c6b
jl 0x405c5d
mov eax, dword [ebx + 0x70]
test eax, eax
jae 0x405c6b
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x74], 0
mov edx, dword [ebx + 0x74]
mov eax, dword [ebx + 0x70]
push edx
push eax
lea ecx, [ebx + 0x60]
push 0x40bddc
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [ebx + 0x70]
mov eax, dword [ebx + 0x74]
add esp, 0x10
or edx, eax
mov dword [esp + 0x34], 0xffffffff
lea ecx, [esp + 0xc]
pop edi
pop esi
pop ebx
jne 0x405cb3
call fcn.00406da0
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
call fcn.00406da0
mov ecx, dword [esp + 0x20]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x18006d09
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 0x18006d62
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x18006d62
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x18006d51
cmp esi, ecx
jae 0x18006d62
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x18006d3f
cmp esi, ecx
jae 0x18006d62
cmp word [esi], 0
je 0x18006d62
lfence
mov eax, esi
jmp 0x18006d64
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x18007e58
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x181c600c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x18007e73
mov al, 1
jmp 0x18007eb6
push 0x34
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.1812c700
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x18007eae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x181973b8
call fcn.1801126d
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x18007e6f
mov eax, dword [ebp - 0x38]
shr eax, 0xa
and al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.18117a58
leave
ret
Function at 0x180083ff
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x181c600c]
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.180091e5
mov edi, dword [ebp - 8]
cmp dword [edi - 0xc], 0
je 0x180084a4
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 0x180084af
mov byte [ebx + 0x74], 1
mov dword [ebx + 0x76], 0x1000101
cmp byte [ebx + 0x75], 0
je 0x180084b9
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 + 0x181c7140]
mov ecx, dword [eax + 0x181c7144]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], edx
test edx, edx
je 0x18008532
cmp ecx, 9
ja 0x18008532
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, ebx
mov dword [ebp - 0x14], 3
call fcn.180091e5
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0
je 0x18008515
push esi
push 3
push dword [ebp - 0x10]
push str.LoggingLevel
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
jmp 0x18008518
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.18007012
mov eax, dword [ebp - 0xc]
add eax, 8
mov dword [ebp - 0xc], eax
cmp eax, 0x48
jb 0x180084c8
call fcn.18011c3e
lea ecx, [edi - 0x10]
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x84], edx
call fcn.18007012
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18117a58
leave
ret
Function at 0x18008565
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x181c600c]
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.1800703b
push eax
lea ecx, [ebp - 8]
call fcn.1800774f
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 0x180085b0
push edx
lea ecx, [ebp - 8]
call fcn.180077dc
mov edi, dword [ebp - 8]
and dword [ebp - 0xc], 0
call fcn.1800703b
push eax
lea ecx, [ebp - 0xc]
call fcn.1800774f
call fcn.18016d6c
test al, al
jne 0x180085e2
call fcn.18014b0a
test al, al
jne 0x180085e2
mov dword [ebp - 0x10], 0x1c
mov esi, 0x181976d8
jmp 0x180085ee
mov dword [ebp - 0x10], 0x23
mov esi, str.MicrosoftEdgeUpdateLog
push esi
call fcn.18130750
pop ecx
push eax
push esi
lea ecx, [ebp - 0xc]
call fcn.1800768d
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 0x1800863b
push 0x1816bb7c
mov ecx, ebx
call fcn.1800759a
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18007012
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.18009f73
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
jmp 0x18008680
mov esi, dword [ebp - 0xc]
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
jne 0x18008658
push 0x1816bb7c
mov ecx, ebx
call fcn.1800759a
jmp 0x18008668
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.1800a175
add eax, 0x10
mov dword [ebx], eax
lea ecx, [esi - 0x10]
call fcn.18007012
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.18009f73
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18007012
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18117a58
leave
ret 4

Function at 0x1800874f
Capabilities:
Print debug messages

Disassembly:
push edi
mov edi, ecx
cmp dword [edi + 0xe0], 0
jne 0x1800879a
push esi
push 0x40
call fcn.18118308
push 0x40
mov esi, eax
push 0
push esi
call fcn.1812c700
add esp, 0xc
mov ecx, esi
call fcn.1801146b
mov dword [edi + 0xe0], eax
pop esi
test eax, eax
jne 0x1800879a
push dword [edi + 0x54]
push str.LOG_SYSTEM:___s_:_ERROR___Cannot_create_ETW_log_writer
call fcn.1801126d
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [edi + 0xe0]
test eax, eax
je 0x180087ac
push eax
mov ecx, edi
call fcn.18009156
pop edi
ret
Function at 0x180087ae
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x181c600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
cmp byte [ebx + 0x77], 0
je 0x18008898
push esi
xor esi, esi
cmp dword [ebx + 0xd8], esi
jne 0x18008885
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
call fcn.18008698
mov eax, dword [ebp - 0xc]
cmp dword [eax - 0xc], esi
je 0x18008820
lea edx, [ebp - 0xc]
mov dword [ebp - 8], esi
lea ecx, [ebp - 8]
call fcn.18016246
mov esi, dword [ebp - 8]
mov ecx, esi
call fcn.1801051d
test al, al
jne 0x1800882a
mov ecx, esi
call fcn.1800c996
test eax, eax
jns 0x1800882a
lea ecx, [esi - 0x10]
call fcn.18007012
mov eax, dword [ebp - 0xc]
lea ecx, [eax - 0x10]
call fcn.18007012
jmp 0x18008897
mov al, byte [ebx + 0x79]
push edi
push 0x20
mov byte [ebp - 8], al
call fcn.18118308
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.18009413
mov dword [ebx + 0xd8], eax
test eax, eax
jne 0x18008874
push edi
push dword [ebx + 0x54]
push str.LOG_SYSTEM:___s_:_ERROR___Cannot_create_log_writer_to__s
call fcn.1801126d
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [esi - 0x10]
call fcn.18007012
lea ecx, [edi - 0x10]
call fcn.18007012
pop edi
mov eax, dword [ebx + 0xd8]
test eax, eax
je 0x18008897
push eax
mov ecx, ebx
call fcn.18009156
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.18117a58
leave
ret

Function at 0x18008a32
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x181c600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x7a], 1
jne 0x18008a78
lea ecx, [ebp - 8]
call fcn.18007f6f
push dword [eax]
push str.LOG_SYSTEM:___s_:_ERROR___Calling_the_logging_system_after_it_has_been_shut_down__n
call fcn.1801126d
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 8]
lea ecx, [eax - 0x10]
call fcn.18007012
xor al, al
jmp 0x18008aa9
cmp byte [esi + 0x50], 1
jne 0x18008a82
mov al, 1
jmp 0x18008aa9
and dword [ebp - 0xc], 0
lea eax, [esi + 0x58]
and dword [ebp - 8], 0
lea ecx, [ebp - 0xc]
push eax
call fcn.1801548d
mov ecx, esi
call fcn.1800896c
lea ecx, [ebp - 0xc]
mov bl, al
call fcn.180154b8
mov al, bl
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.18117a58
leave
ret
Function at 0x18008dd8
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x181c600c]
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 0x18008f37
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x18008e12
cmp dword [ebp + 0x10], 2
jg 0x18008f37
cmp dword [edi + 0xf8], 3
jg 0x18008f37
and dword [ebp - 0xc], 0
call fcn.1800703b
push eax
lea ecx, [ebp - 0xc]
call fcn.1800774f
and dword [ebp - 8], 0
call fcn.1800703b
push eax
lea ecx, [ebp - 8]
call fcn.1800774f
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 [0x1815b3d4]
lea ecx, [edi + 0x58]
call esi
test al, al
jne 0x18008e99
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 0x18008e4c
jmp 0x18008ece
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.18008ceb
mov eax, dword [edi + 0x58]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x1815b3d4]
lea ecx, [edi + 0x58]
call esi
cmp dword [ebp - 0x10], 0x14
jle 0x18008f1a
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 0x181979a8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
inc dword [edi + 0xf8]
cmp dword [edi + 0xf8], 3
jle 0x18008f21
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.18008ceb
jmp 0x18008f21
and dword [edi + 0xf8], 0
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18007012
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18007012
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18117a58
leave
ret 0x14
Function at 0x18009413
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x181c600c]
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.180095f0
mov dword [edi + 4], 0x989680
mov word [edi + 8], bx
mov byte [edi + 0xa], al
mov byte [edi + 0xb], 1
call fcn.1800703b
push eax
lea ecx, [edi + 0xc]
call fcn.1800774f
push esi
lea ecx, [edi + 0x14]
mov dword [edi + 0x10], ebx
call fcn.1800759a
mov dword [edi + 0x18], ebx
call fcn.1800703b
push eax
lea ecx, [edi + 0x1c]
call fcn.1800774f
movzx ebx, byte [0x181cc106]
neg ebx
sbb ebx, ebx
and ebx, 0x181cc000
je 0x180094f3
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, ebx
call fcn.180091e5
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0
je 0x180094d2
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 0x180094dc
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.18009f25
lea ecx, [esi - 0x10]
call fcn.18007012
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18117a58
leave
ret 8

Function at 0x18009569
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 8], 0
jne 0x180095ee
mov byte [esi + 8], 1
call fcn.1800961c
cmp dword [esi + 0x10], 0
je 0x180095ee
test al, al
je 0x18009589
mov byte [esi + 0xa], 1
mov ecx, esi
call fcn.18009bfe
test al, al
jne 0x180095b0
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.1801126d
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop esi
ret
mov ecx, esi
call fcn.18009703
cmp dword [esi + 0x18], 0
jne 0x180095db
push dword [esi + 0x14]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_create_logging_file__s_n
call fcn.1801126d
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 0x180095ee
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
ret