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

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x415e47
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00415da9
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0040eda3
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x4179ec
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x417a2f
call fcn.0041d18d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x417a2f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x417a4a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004175a3
test ebx, ebx
mov esi, eax
je 0x417a48
test edi, edi
je 0x417a48
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4187ea
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x453e03
call fcn.00440979
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x41880f
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41885b
call fcn.00419e37
push eax
lea ecx, [ebp - 0x10]
call fcn.00401640
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004180f8
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401370
mov eax, esi
call fcn.00440a51
ret 8

Function at 0x41c813
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0041d18d
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41c84a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0041c435
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x41c8a2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x41c8c2
cmp dword [edi + 0x54], 0
jne 0x41c8c2
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0041d18d
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0041c869
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x41e23c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x41e282
call fcn.0041d18d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41e282
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x41e2c5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x41e2ae
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x41e2ae
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x41e2c2
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x424c3e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x424c6c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x424c8a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00424ba8
jmp 0x424c8a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x424c8a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00424ba8
test edi, edi
mov eax, edi
jne 0x424c74
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x471aec]
test ecx, ecx
je 0x424d4d
jmp 0x424c3d
ret 8

Function at 0x43d9be
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46eaa4]
jne 0x43d9c8
repz ret
jmp fcn.0044488c
Function at 0x44c9f6
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004442ce
xor ebx, ebx
cmp dword [0x4728a4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x44cacb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x44ca36
xor eax, eax
jmp 0x44cb8f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x45fcc8
push edi
call esi
cmp eax, ebx
je 0x44ca2f
push eax
call fcn.0044426b
mov dword [esp], 0x45fcb8
push edi
mov dword [0x4728a4], eax
call esi
push eax
call fcn.0044426b
mov dword [esp], 0x45fca4
push edi
mov dword [0x4728a8], eax
call esi
push eax
call fcn.0044426b
mov dword [0x4728ac], eax
lea eax, [ebp - 8]
push eax
call fcn.00442400
test eax, eax
pop ecx
pop ecx
je 0x44ca99
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00445914
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x44cacb
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0044426b
cmp eax, ebx
pop ecx
mov dword [0x4728b4], eax
je 0x44cacb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044426b
pop ecx
mov dword [0x4728b0], eax
mov eax, dword [0x4728b0]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x44cb44
cmp dword [0x4728b4], esi
je 0x44cb44
push eax
call fcn.004442d7
pop ecx
call eax
cmp eax, ebx
je 0x44cb11
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4728b4]
call fcn.004442d7
pop ecx
call eax
test eax, eax
je 0x44cb11
test byte [ebp - 0x18], 1
jne 0x44cb44
lea eax, [ebp - 0xc]
push eax
call fcn.00442437
test eax, eax
pop ecx
je 0x44cb2c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00445914
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x44cb3b
or dword [ebp + 0x10], 0x200000
jmp 0x44cb75
or dword [ebp + 0x10], 0x40000
jmp 0x44cb75
mov eax, dword [0x4728a8]
cmp eax, esi
je 0x44cb75
push eax
call fcn.004442d7
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x44cb75
mov eax, dword [0x4728ac]
cmp eax, esi
je 0x44cb75
push dword [ebp - 4]
push eax
call fcn.004442d7
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4728a4]
call fcn.004442d7
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4520a0
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x46eaa4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00452035
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00440530
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4520ef
cmp dword [ebp - 0x1c], 5
jb 0x452107
jmp 0x452103
cmp dword [ebp - 0x10], 1
jne 0x452107
cmp dword [ebp - 0x1c], 4
ja 0x452103
jne 0x452107
cmp dword [ebp - 0x18], 0
jbe 0x452107
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4605b8
call fcn.00451f09
test eax, eax
jge 0x452128
mov byte [0x46ff04], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0043d9be
add ebp, 0x78
leave
ret
Function at 0x643410
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x157000]
push edi
jmp 0x64342a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x643431
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x643420
mov eax, 1
add ebx, ebx
jne 0x643443
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x643454
jne 0x643473
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x643473
dec eax
add ebx, ebx
jne 0x643460
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x643438
add ebx, ebx
jne 0x64346f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6434c5
xor ecx, ecx
sub eax, 3
jb 0x64348b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6434fa
sar eax, 1
mov ebp, eax
jmp 0x643496
add ebx, ebx
jne 0x643496
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x643464
inc ecx
add ebx, ebx
jne 0x6434a4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x643464
add ebx, ebx
jne 0x6434b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6434a6
jne 0x6434c2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6434a6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6434e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6434d6
jmp 0x643426
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6434e4
add edi, ecx
jmp 0x643426
pop esi
mov edi, esi
mov ecx, 0x196a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x643502
cmp byte [edi], 0xa
jne 0x643502
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 0x643507
lea edi, [esi + 0x23e000]
mov eax, dword [edi]
or eax, eax
je 0x64357f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2699b4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x269b68]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x643534
mov ecx, edi
jns 0x643563
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 + 0x269b70]
or eax, eax
je 0x643579
mov dword [ebx], eax
add ebx, 4
jmp 0x643551
call dword [esi + 0x269b6c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x6435b0
cmp al, 0xef
ja 0x6435a3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x643585
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x643592
mov ebp, dword [esi + 0x269b74]
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 0x6435e4
sub esp, 0xffffff80
jmp 0x416a5e
Function at 0x1800448f
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 0x180044e5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x180044e5
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x180044d7
cmp esi, ecx
jae 0x180044e5
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x180044c5
cmp esi, ecx
jae 0x180044e5
cmp word [esi], 0
je 0x180044e5
mov eax, esi
jmp 0x180044e7
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x18004fb0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x181c0008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x18004fcb
mov al, 1
jmp 0x1800500e
push 0x34
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.1813efc0
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x18005006
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1819b250
call fcn.1800b4d6
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x18004fc7
mov eax, dword [ebp - 0x38]
shr eax, 0xa
and al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1813c4a8
leave
ret

Function at 0x1800501b
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 0x18005049
xor al, al
jmp 0x18005091
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 0x1800508d
cmp dword [ebp - 8], edi
jne 0x1800508d
cmp dword [ebp - 0xc], ebx
je 0x1800508d
mov bl, 1
pop edi
mov al, bl
pop esi
pop ebx
leave
ret
Function at 0x1800540f
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov ebx, ecx
call fcn.1800501b
mov byte [ebx + 0x77], al
mov ecx, ebx
lea eax, [ebp - 4]
push eax
call fcn.1800600c
mov edi, dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x14], edi
cmp dword [edi - 0xc], 0
je 0x1800549a
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 0x180054a8
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 0x180054b5
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 + 0x181c10b0]
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x18005521
mov ecx, dword [eax + 0x181c10b4]
mov dword [ebp - 0x10], ecx
cmp ecx, 9
ja 0x18005521
lea eax, [ebp - 8]
mov ecx, ebx
push eax
call fcn.1800600c
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0
je 0x18005504
push esi
push 1
push dword [ebp - 0xc]
push str.LoggingLevel
call edi
jmp 0x18005507
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.18004595
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 4], eax
cmp eax, 0x48
jb 0x180054c6
call fcn.1800bd81
mov ecx, dword [ebp - 0x14]
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x84], edx
lea ecx, [ecx - 0x10]
call fcn.18004595
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1800554d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
call fcn.18003f31
push eax
lea ecx, [ebp - 4]
call fcn.18006dc8
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 0x18005583
push edx
lea ecx, [ebp - 4]
call fcn.18006e9e
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 0x180055b9
mov ecx, dword [ebp + 8]
push 0x18177bcc
call fcn.18006a90
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.18006aeb
lea ecx, [esi - 0x10]
call fcn.18004595
mov eax, dword [ebp + 8]
jmp 0x180055f0
push str.GoogleUpdateLog
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x18005595
push edi
lea edi, [esi - 0x10]
mov ecx, edi
call fcn.18006e45
mov esi, dword [ebp + 8]
lea ecx, [ebp - 4]
add eax, 0x10
push 0xffffffffffffffff
mov dword [esi], eax
call fcn.18006aeb
mov ecx, edi
call fcn.18004595
mov eax, esi
pop edi
pop esi
leave
ret 4
Function at 0x180056a0
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 0x18005769
mov eax, dword [ebx + 0xcc]
push esi
push edi
test eax, eax
jne 0x1800575f
lea eax, [ebp - 4]
push eax
call fcn.180055f5
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], 0
je 0x18005700
lea edx, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.1800eddc
mov edi, dword [ebp - 8]
mov ecx, edi
call fcn.1800a901
test al, al
jne 0x1800570a
mov ecx, edi
call fcn.180087ed
test eax, eax
jns 0x1800570a
lea ecx, [edi - 0x10]
call fcn.18004595
lea ecx, [esi - 0x10]
call fcn.18004595
jmp 0x18005767
mov al, byte [ebx + 0x79]
push 0x20
mov byte [ebp - 8], al
call fcn.1813cb72
pop ecx
push dword [ebp - 8]
mov ecx, eax
push esi
call fcn.180060f9
mov dword [ebx + 0xcc], eax
test eax, eax
jne 0x18005745
push esi
push dword [ebx + 0x54]
push str.LOG_SYSTEM:___s_:_ERROR___Cannot_create_log_writer_to__s
call fcn.1800b4d6
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [edi - 0x10]
call fcn.18004595
lea ecx, [esi - 0x10]
call fcn.18004595
mov eax, dword [ebx + 0xcc]
test eax, eax
je 0x18005767
push eax
mov ecx, ebx
call fcn.18005f99
pop edi
pop esi
pop ebx
leave
ret

Function at 0x18005ca8
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 0x18005d69
cmp dword [ebp + 8], 0
jne 0x18005ccd
cmp dword [ebp + 0x10], 2
jg 0x18005d69
call fcn.18003f31
push eax
lea ecx, [ebp - 4]
call fcn.18006dc8
call fcn.18003f31
push eax
lea ecx, [ebp + 0x14]
call fcn.18006dc8
xor edi, edi
lea eax, [ebx + 0x58]
inc edi
push 0
mov ecx, eax
call fcn.1800eb98
test al, al
jne 0x18005d0f
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
lea eax, [ebx + 0x58]
cmp edi, 0x14
jle 0x18005cef
jmp 0x18005d33
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.18005bd4
lea ecx, [ebx + 0x58]
mov eax, dword [ecx]
call dword [eax + 8]
cmp edi, 0x14
jle 0x18005d53
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 0x1819b7d8
call esi
mov ecx, dword [ebp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.18004595
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18004595
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x180060f9
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.180062a7
mov dword [ebx + 4], 0x989680
mov word [ebx + 8], 0
mov byte [ebx + 0xa], al
mov byte [ebx + 0xb], 1
call fcn.18003f31
push eax
lea ecx, [ebx + 0xc]
call fcn.18006dc8
push dword [ebp + 8]
xor edi, edi
lea ecx, [ebx + 0x14]
mov dword [ebx + 0x10], edi
call fcn.18006a90
mov dword [ebx + 0x18], edi
call fcn.18003f31
push eax
lea ecx, [ebx + 0x1c]
call fcn.18006dc8
movzx eax, byte [0x181c8652]
neg eax
sbb eax, eax
and eax, 0x181c7840
mov dword [ebp + 8], eax
je 0x180061cc
lea ecx, [ebp + 0xc]
push ecx
mov ecx, eax
call fcn.1800600c
mov esi, dword [ebp + 0xc]
cmp dword [esi - 0xc], edi
je 0x180061a8
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 0x180061b2
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.18006a38
lea ecx, [esi - 0x10]
call fcn.18004595
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8

Function at 0x18006224
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 8], 0
jne 0x180062a5
mov byte [esi + 8], 1
call fcn.180062d3
cmp dword [esi + 0x10], 0
je 0x180062a5
test al, al
je 0x18006244
mov byte [esi + 0xa], 1
mov ecx, esi
call fcn.180068e3
test al, al
jne 0x1800626b
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.1800b4d6
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop esi
ret
mov ecx, esi
call fcn.1800639d
cmp dword [esi + 0x18], 0
jne 0x18006292
push dword [esi + 0x14]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_create_logging_file__s_n
call fcn.1800b4d6
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [esi + 0x10], 0
mov byte [esi + 9], 1
je 0x180062a5
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
ret