joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ed7f5
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x678dc8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.005e0eef
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.005e0eef
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x5ed86c
cmp word [ecx], dx
je 0x5ed86c
mov eax, dword [0x66807c]
push edi
dec eax
push eax
push 0x667f68
call fcn.005ed794
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x5ed8df
cmp word [eax], dx
je 0x5ed8df
mov eax, dword [edi]
test eax, eax
je 0x5ed890
cmp word [eax], dx
je 0x5ed890
lea eax, [ebp - 0x10]
push eax
call fcn.005ed177
jmp 0x5ed899
lea eax, [ebp - 0x10]
push eax
call fcn.005ed212
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x5ed909
mov eax, dword [0x667f64]
push dword [ebp - 0x14]
dec eax
push eax
push 0x667c58
call fcn.005ed794
add esp, 0xc
test al, al
je 0x5ed909
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x5ed8d4
cmp word [eax], di
je 0x5ed8d4
lea eax, [ebp - 0x10]
push eax
call fcn.005ed177
pop ecx
jmp 0x5ed90b
lea eax, [ebp - 0x10]
push eax
call fcn.005ed212
jmp 0x5ed8d1
mov eax, dword [edi]
test eax, eax
je 0x5ed8f6
cmp word [eax], dx
je 0x5ed8f6
lea eax, [ebp - 0x10]
push eax
call fcn.005ed12c
pop ecx
jmp 0x5ed909
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x5ed9d4
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.005ed619
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x5ed9d4
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x5ed9d4
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x5ed9d4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5ed961
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.005e1c05
test ebx, ebx
je 0x5ed9cf
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.005e1c05
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5ed9d4
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5ed9d4
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.005f1f09
add esp, 0x10
xor eax, eax
inc eax
jmp 0x5ed9d6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005c77ea
leave
ret
Function at 0x5f0c24
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x678dc8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x5f0c67
call fcn.005ccb7d
mov dword [eax], 0xf
call fcn.005ccb90
mov dword [eax], 0xd
call fcn.005d1d5e
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c77ea
leave
ret
test eax, eax
jne 0x5f0c6e
inc eax
jmp 0x5f0c5b
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x5f0c59
xor eax, eax
cmp ecx, 1
setne al
jmp 0x5f0c5b
Function at 0x5f262a
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.005f25a6
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x5f2799
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x5f2799
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x5f274e
jg 0x5f2686
test eax, eax
je 0x5f2744
push 1
push 0x1000
call fcn.005e1537
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x5f26a9
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x5f273b
push 0x8000
push ebx
call fcn.005dca96
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x5f26d2
jg 0x5f26cd
cmp ecx, 0x1000
jb 0x5f26d2
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.005e3c39
add esp, 0x10
cmp eax, 0xffffffff
je 0x5f2717
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x5f26cd
jl 0x5f26fe
test ecx, ecx
jne 0x5f26bf
push dword [ebp - 0xc]
push ebx
call fcn.005dca96
push esi
call fcn.005e1594
add esp, 0xc
xor ebx, ebx
jmp 0x5f27a7
cmp byte [edi + 0x24], 0
je 0x5f272e
cmp dword [edi + 0x20], 5
jne 0x5f272e
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x5f2739
mov ebx, dword [edi + 0x18]
jmp 0x5f273b
xor ebx, ebx
push esi
call fcn.005e1594
pop ecx
jmp 0x5f27a7
test ecx, ecx
jg 0x5f2710
jl 0x5f274e
test eax, eax
jae 0x5f2710
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005e684e
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5f276e
cmp byte [edi + 0x1c], 0
je 0x5f2710
jmp 0x5f279f
push ebx
call fcn.005e91f4
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x5f2710
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x5f27a7
cmp byte [edi + 0x1c], 0
je 0x5f27a4
mov ebx, dword [edi + 0x18]
jmp 0x5f27a7
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.005e684e
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x5f2c30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5f2c5d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5f2c5d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401673
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 0x4016c9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4016c9
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x4016bb
cmp esi, ecx
jae 0x4016c9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x4016a9
cmp esi, ecx
jae 0x4016c9
cmp word [esi], 0
je 0x4016c9
mov eax, esi
jmp 0x4016cb
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x401e62
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push ecx
lea ecx, [ebp - 0xc]
mov dword [ebp - 4], edx
mov edi, 0x80070003
call fcn.00401856
lea ecx, [ebp - 0xc]
call fcn.0040232c
mov esi, dword [ebp - 0xc]
test eax, eax
je 0x401f83
and dword [ebp - 0x18], 0
or edx, 0xf003f
push ecx
push ecx
push edx
push ecx
push ecx
push esi
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x429908
mov dword [ebp - 0x14], 0x200
call fcn.00401d91
mov edi, eax
test edi, edi
jne 0x401f74
mov eax, dword [ebp + 8]
sub eax, 1
je 0x401f56
sub eax, 1
je 0x401f52
sub eax, 1
je 0x401f43
sub eax, 1
je 0x401f34
sub eax, 3
je 0x401f21
sub eax, 4
je 0x401eef
mov edi, 0x8007065d
jmp 0x401f66
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push 8
push eax
push 0xb
push 0
push dword [ebp - 4]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
jle 0x401f66
movzx edi, di
or edi, 0x80070000
jmp 0x401f66
push 7
push dword [ebp + 0x10]
lea ecx, [ebp - 0x1c]
push ebx
push dword [ebp - 4]
call fcn.00402302
jmp 0x401f64
push dword [ebx]
lea ecx, [ebp - 0x1c]
push dword [ebp - 4]
call fcn.0040229d
jmp 0x401f64
mov eax, ebx
neg eax
sbb eax, eax
and eax, dword [ebp + 0x10]
push eax
push ebx
push 3
jmp 0x401f02
push 2
jmp 0x401f58
push 1
push ebx
push dword [ebp - 4]
lea ecx, [ebp - 0x1c]
call fcn.004022c6
mov edi, eax
lea ecx, [ebp - 0x1c]
call fcn.00401d65
test edi, edi
jne 0x401f74
mov edi, eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x429908
call fcn.00401d65
lea ecx, [esi - 0x10]
call fcn.00401251
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402195
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 4]
push eax
xor ecx, ecx
lea eax, [ebp - 8]
push ecx
push eax
push ecx
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push dword [edi + 4]
mov dword [ebp - 8], ecx
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x4021cd
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x40222f
mov eax, dword [ebp - 4]
xor ecx, ecx
shr eax, 1
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004197fd
pop ecx
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
test ecx, ecx
je 0x40222a
cmp dword [ebp - 4], 0
je 0x402223
lea eax, [ebp - 4]
push eax
push ecx
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x40222f
movzx esi, si
or esi, 0x80070000
jmp 0x40222f
xor eax, eax
mov word [ecx], ax
jmp 0x40222f
mov esi, 0x8007000e
pop edi
mov eax, esi
pop esi
leave
ret 8

Function at 0x402c34
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
lea ebx, [ecx + 4]
push edi
mov edi, edx
test ebx, ebx
je 0x402c6a
lea esi, [edi + 4]
test esi, esi
je 0x402c6a
call fcn.00402b96
test al, al
je 0x402c6a
mov ecx, edi
call fcn.00402b96
test al, al
je 0x402c6a
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
jmp 0x402c6c
xor al, al
pop edi
pop esi
pop ebx
ret

Function at 0x403bce
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x42d008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
mov ecx, esi
call fcn.004018b1
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00409850
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push ebx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test edi, edi
jns 0x403c68
movzx ecx, bl
cmp ecx, 0x26
jne 0x403c2c
mov edx, str.ProgramFiles
jmp 0x403c36
cmp ecx, 0x1c
jne 0x403c57
mov edx, str.LocalAppData
lea ecx, [ebp - 0x210]
call fcn.00403ef9
push eax
mov ecx, esi
call fcn.00401808
mov ecx, dword [ebp - 0x210]
lea ecx, [ecx - 0x10]
call fcn.00401251
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x403c64
xor eax, eax
inc eax
jmp 0x403c86
mov eax, edi
jmp 0x403c86
lea eax, [ebp - 0x20c]
push eax
call fcn.0041b231
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.004019b8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408ccd
leave
ret
Function at 0x403dc8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [ebp - 8], eax
mov ebx, eax
cmp dword [esi + 8], eax
jne 0x403e1c
call fcn.004067ad
test al, al
je 0x403e1c
call fcn.00403924
mov edi, eax
test edi, edi
je 0x403e86
mov dword [ebp - 8], eax
mov dword [esi + 8], edi
cmp dword [esi + 0xc], ebx
je 0x403e1c
push str.runas
push dword [esi + 0xc]
call fcn.004147cb
pop ecx
pop ecx
test eax, eax
jne 0x403e1c
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
setne byte [ebp - 1]
test eax, eax
je 0x403ece
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x403e90
call fcn.00404c98
movzx ecx, byte [0x42ec79]
mov esi, eax
neg ecx
sbb ecx, ecx
and ecx, 0x42eba0
je 0x403e7d
push 7
pop edx
xor eax, eax
mov dword [ebp - 0x18], ecx
inc eax
mov dword [ebp - 0x14], edx
push eax
push edx
mov dword [ebp - 0x10], eax
call fcn.00405991
push esi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push str._Started_process___u_
push eax
call fcn.00403905
add esp, 0xc
push esi
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
jmp 0x403ed6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x403eea
movzx ecx, byte [0x42ec79]
neg ecx
sbb ecx, ecx
and ecx, 0x42eba0
je 0x403ed6
push 7
pop edx
xor eax, eax
mov dword [ebp - 0x18], ecx
inc eax
mov dword [ebp - 0x14], edx
push eax
push edx
mov dword [ebp - 0x10], eax
call fcn.00405991
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push str._Started_process__PID_unknown_
push eax
call fcn.00403905
pop ecx
pop ecx
jmp 0x403ed6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x403ee4
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov al, byte [ebp - 1]
mov byte [ebp - 8], al
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404a6b
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea esi, [ecx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
jne 0x404aac
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
jne 0x404aac
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jb 0x404a87
xor al, al
jmp 0x404aae
mov al, 1
pop esi
leave
ret 4
Function at 0x4051ee
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov ebx, ecx
push eax
call fcn.00405e13
mov esi, dword [ebp - 4]
lea edi, [ebx + 0x78]
xor eax, eax
cmp dword [esi - 0xc], eax
je 0x4052e3
push esi
push 1
push str.EnableLogging
push str.LoggingSettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push 1
test eax, eax
push str.ShowTime
setne al
push str.LoggingSettings
mov byte [ebx + 0x74], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push 0
test eax, eax
push str.LogToFile
setne al
push str.LoggingSettings
mov byte [ebx + 0x76], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push 0
test eax, eax
push str.LogToOutputDebug
setne al
push str.LoggingSettings
mov byte [ebx + 0x77], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push 1
test eax, eax
push str.AppendToFile
setne al
push str.LoggingSettings
mov byte [ebx + 0x7c], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
setne al
xor ecx, ecx
mov byte [ebx + 0x7d], al
inc ecx
mov edx, dword [edi]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, 0x104
or ecx, eax
jge 0x4052bc
push 0x104
mov ecx, edi
call fcn.00401b3f
mov edx, dword [edi]
push esi
push 0x104
push edx
push str.GoogleUpdate.log
push str.LogFilePath
push str.LoggingSettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.00402590
jmp 0x40530b
push str.GoogleUpdate.log
mov byte [ebx + 0x74], 1
mov word [ebx + 0x76], 1
mov word [ebx + 0x7c], 0x100
call fcn.0041b231
pop ecx
push eax
push str.GoogleUpdate.log
mov ecx, edi
call fcn.004019b8
cmp byte [ebx + 0x75], 0
je 0x405315
mov byte [ebx + 0x76], 1
xor eax, eax
mov byte [ebx], 1
mov dword [ebx + 4], 7
mov dword [ebp - 4], eax
mov ecx, dword [eax + 0x42d890]
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x405383
mov ecx, dword [eax + 0x42d894]
mov dword [ebp - 0x10], ecx
cmp ecx, 9
ja 0x405383
lea eax, [ebp - 8]
mov ecx, ebx
push eax
call fcn.00405e13
mov edi, dword [ebp - 8]
cmp dword [edi - 0xc], 0
je 0x405366
push edi
push 1
push dword [ebp - 0xc]
push str.LoggingLevel
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
jmp 0x405369
xor eax, eax
inc eax
mov edx, dword [ebp - 0x10]
test eax, eax
setne cl
mov byte [ebx + edx*8], cl
lea ecx, [edi - 0x10]
mov dword [ebx + edx*8 + 4], eax
call fcn.00401251
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 4], eax
cmp eax, 0x48
jb 0x405324
call fcn.004017d8
lea ecx, [esi - 0x10]
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x84], edx
call fcn.00401251
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4053ac
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
call fcn.00401269
push eax
lea ecx, [ebp - 4]
call fcn.00401a6f
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 0x4053e2
push edx
lea ecx, [ebp - 4]
call fcn.00401b3f
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 0x405418
mov ecx, dword [ebp + 8]
push 0x428408
call fcn.00401856
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.00402590
lea ecx, [esi - 0x10]
call fcn.00401251
mov eax, dword [ebp + 8]
jmp 0x40544f
push str.GoogleUpdateLog
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x4053f4
push edi
lea edi, [esi - 0x10]
mov ecx, edi
call fcn.00401aec
mov esi, dword [ebp + 8]
lea ecx, [ebp - 4]
add eax, 0x10
push 0xffffffffffffffff
mov dword [esi], eax
call fcn.00402590
mov ecx, edi
call fcn.00401251
mov eax, esi
pop edi
pop esi
leave
ret 4

Function at 0x405527
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 0x4055f0
mov eax, dword [ebx + 0xcc]
push esi
push edi
test eax, eax
jne 0x4055e6
lea eax, [ebp - 4]
push eax
call fcn.00405454
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], 0
je 0x405587
lea edx, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.00406849
mov edi, dword [ebp - 8]
mov ecx, edi
call fcn.00404d33
test al, al
jne 0x405591
mov ecx, edi
call fcn.00403ab6
test eax, eax
jns 0x405591
lea ecx, [edi - 0x10]
call fcn.00401251
lea ecx, [esi - 0x10]
call fcn.00401251
jmp 0x4055ee
mov al, byte [ebx + 0x7d]
push 0x20
mov byte [ebp - 8], al
call fcn.004197cd
pop ecx
push dword [ebp - 8]
mov ecx, eax
push esi
call fcn.00405f00
mov dword [ebx + 0xcc], eax
test eax, eax
jne 0x4055cc
push esi
push dword [ebx + 0x54]
push str.LOG_SYSTEM:___s_:_ERROR___Cannot_create_log_writer_to__s
call fcn.00406acb
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [edi - 0x10]
call fcn.00401251
lea ecx, [esi - 0x10]
call fcn.00401251
mov eax, dword [ebx + 0xcc]
test eax, eax
je 0x4055ee
push eax
mov ecx, ebx
call fcn.00405da0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405b2d
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 0x405bee
cmp dword [ebp + 8], 0
jne 0x405b52
cmp dword [ebp + 0x10], 2
jg 0x405bee
call fcn.00401269
push eax
lea ecx, [ebp - 4]
call fcn.00401a6f
call fcn.00401269
push eax
lea ecx, [ebp + 0x14]
call fcn.00401a6f
xor edi, edi
lea eax, [ebx + 0x58]
inc edi
push 0
mov ecx, eax
call fcn.00404a6b
test al, al
jne 0x405b94
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
lea eax, [ebx + 0x58]
cmp edi, 0x14
jle 0x405b74
jmp 0x405bb8
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.00405a59
lea ecx, [ebx + 0x58]
mov eax, dword [ecx]
call dword [eax + 8]
cmp edi, 0x14
jle 0x405bd8
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 0x42a108
call esi
mov ecx, dword [ebp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401251
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.00401251
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x405f00
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.004060ae
mov dword [ebx + 4], 0x989680
mov word [ebx + 8], 0
mov byte [ebx + 0xa], al
mov byte [ebx + 0xb], 1
call fcn.00401269
push eax
lea ecx, [ebx + 0xc]
call fcn.00401a6f
push dword [ebp + 8]
xor edi, edi
lea ecx, [ebx + 0x14]
mov dword [ebx + 0x10], edi
call fcn.00401856
mov dword [ebx + 0x18], edi
call fcn.00401269
push eax
lea ecx, [ebx + 0x1c]
call fcn.00401a6f
movzx eax, byte [0x42ec79]
neg eax
sbb eax, eax
and eax, 0x42eba0
mov dword [ebp + 8], eax
je 0x405fd3
lea ecx, [ebp + 0xc]
push ecx
mov ecx, eax
call fcn.00405e13
mov esi, dword [ebp + 0xc]
cmp dword [esi - 0xc], edi
je 0x405faf
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 0x405fb9
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.00401808
lea ecx, [esi - 0x10]
call fcn.00401251
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8