joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d7ad
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x544
call sub.USER32.dll_GetForegroundWindow
cmp dword [0x41569c], eax
je 0x40d871
mov dword [0x41569c], eax
lea eax, [ebp - 0x518]
mov dword [esp], eax
call sub.KERNEL32.dll_GetLocalTime
push ebx
mov dword [esp + 8], 0x100
lea ebx, [ebp - 0x508]
mov dword [esp + 4], ebx
mov eax, dword [0x41569c]
mov dword [esp], eax
call sub.USER32.dll_GetWindowTextA
sub esp, 0xc
test eax, eax
je 0x40d871
movzx eax, word [ebp - 0x50c]
mov dword [esp + 0x24], eax
movzx eax, word [ebp - 0x50e]
mov dword [esp + 0x20], eax
movzx eax, word [ebp - 0x510]
mov dword [esp + 0x1c], eax
movzx eax, word [ebp - 0x518]
mov dword [esp + 0x18], eax
movzx eax, word [ebp - 0x516]
mov dword [esp + 0x14], eax
movzx eax, word [ebp - 0x512]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str._r_n_r_n__s______.2d__.2d__d__.2d:_.2d:_.2d__r_n
mov dword [esp + 4], 0x400
lea ebx, [ebp - 0x408]
mov dword [esp], ebx
call fcn.004099d7
xor ecx, ecx
mov edx, eax
mov eax, ebx
call fcn.0040d5ee
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x40e310
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
sub esp, 0x40
mov dword [esp + 0x20], 0
lea eax, [ebp - 0xc]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0xf003f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCreateKeyExA
sub esp, 0x24
xor ebx, ebx
test eax, eax
jne 0x40e3b8
or ecx, 0xffffffff
mov edi, dword [ebp + 0x14]
mov al, bl
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x14], ecx
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegSetValueExA
sub esp, 0x18
test eax, eax
sete bl
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
push eax
mov al, bl
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret

Function at 0x40e3c1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x18]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
je 0x40e40a
xor eax, eax
jmp 0x40e498
lea esi, [ebp - 0x10]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x40e403
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40e489
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
je 0x40e489
lea eax, [ebp - 0x14]
mov dword [esp], eax
call fcn.00405186
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
push edx
mov eax, dword [ebp - 0x14]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x40e49f
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
lea eax, [ebp - 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20006
mov dword [esp + 8], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
xor ebx, ebx
test eax, eax
jne 0x40e4fd
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegDeleteValueA
push ecx
push ecx
test eax, eax
sete bl
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
push eax
mov al, bl
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x40e504
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
lea eax, [ebp - 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20006
mov dword [esp + 8], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
xor ebx, ebx
test eax, eax
jne 0x40e562
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegDeleteKeyA
push edx
push edx
test eax, eax
sete bl
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
push ecx
mov al, bl
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x40ecca
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax], 0
mov dword [eax + 4], 0
pop ebp
ret
Function at 0x486970
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x47000]
lea eax, [edi + 0x77660]
push dword [eax]
mov dword [eax], 0x6a125013
push eax
push edi
or ebp, 0xffffffff
jmp 0x4869a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4869a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x486998
mov eax, 1
add ebx, ebx
jne 0x4869bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4869b0
jne 0x4869cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4869b0
xor ecx, ecx
sub eax, 3
jb 0x4869e0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x486a52
mov ebp, eax
add ebx, ebx
jne 0x4869eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4869f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x486a1c
inc ecx
add ebx, ebx
jne 0x486a08
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4869fd
jne 0x486a19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4869fd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x486a3c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x486a2d
jmp 0x48699e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x486a3c
add edi, ecx
jmp 0x48699e
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x1c9e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x486a5e
cmp byte [edi], 0x11
jne 0x486a5e
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 0x486a63
lea edi, [esi + 0x81000]
mov eax, dword [edi]
or eax, eax
je 0x486ad2
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x87684]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x876d4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x486a90
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x876dc]
or eax, eax
je 0x486acc
mov dword [ebx], eax
add ebx, 4
jmp 0x486aad
call dword [esi + 0x876d8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x486b03
cmp al, 0xef
ja 0x486af6
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x486ad8
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x486ae5
mov ebp, dword [esi + 0x876e0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0x486b37
sub esp, 0xffffff80
jmp 0x431789
Function at 0x18006c69
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x18006cc2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x18006cc2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x18006cb1
cmp esi, ecx
jae 0x18006cc2
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x18006c9f
cmp esi, ecx
jae 0x18006cc2
cmp word [esi], 0
je 0x18006cc2
lfence
mov eax, esi
jmp 0x18006cc4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x18007db8
Capabilities:
Print debug messages

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

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

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

Function at 0x180086af
Capabilities:
Print debug messages

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

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

Function at 0x18008992
Capabilities:
Print debug messages

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

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

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

Function at 0x180094c9
Capabilities:
Print debug messages

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