joyce8/EMBER2024-capa huggingface dataset:
Function at 0x489a04
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x108], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x489a7c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00405170
push 0
push esi
lea eax, [ebp - 0x104]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathA
test eax, eax
je 0x489a63
lea edx, [ebp - 0x108]
lea eax, [ebp - 0x104]
call fcn.0040a9b8
mov eax, dword [ebp - 0x108]
mov edx, ebx
call fcn.0040e6f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489a83
lea eax, [ebp - 0x108]
call fcn.00405170
ret

Function at 0x48a6a8
Capabilities:
Acquire debug privileges

Disassembly:
push ebx
push ecx
push esp
push 0x20
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
mov cl, 1
mov edx, 0x48a6e0
mov eax, dword [esp]
call fcn.0048a610
mov ebx, eax
mov eax, dword [esp]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, ebx
pop edx
pop ebx
ret

Function at 0x48d95c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, 1
call fcn.0048de94
mov ecx, dword [0x49e86c]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x48d4a0]
call fcn.0045e454
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x48da67
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c0]
xor edx, edx
call fcn.00439470
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3b0]
xor edx, edx
call fcn.00449084
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3bc]
xor edx, edx
call fcn.00449084
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3cc]
mov dl, 1
call fcn.00449084
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3b4]
mov edx, 0x48da80
call fcn.00449194
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3b4]
mov edx, 0x5a
call fcn.00448820
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3b8]
xor edx, edx
call fcn.00449084
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0xfc]
dec eax
sete byte [ebp - 1]
cmp byte [ebp - 1], 0
je 0x48da51
push 5
push 0
push 0
push 0x48daa8
push 0x48dac4
mov eax, dword [ebp - 8]
call fcn.0045124c
push eax
call sub.shell32.dll_ShellExecuteA
push 0
push 0
push 0x10
mov eax, dword [0x49e86c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_PostMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48da6e
mov eax, dword [ebp - 8]
call fcn.00404290
ret
Function at 0x499be4
Capabilities:
Create process on windows
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x499bed
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.004055f0
xor eax, eax
push ebp
push 0x499da7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x499d2e
mov eax, ebx
call fcn.00499b14
cmp edi, eax
je 0x499d2e
call fcn.00489024
test al, al
jne 0x499c6e
push 5
push 0
push 0x499db8
lea edx, [ebp - 8]
xor eax, eax
call fcn.00403380
mov eax, dword [ebp - 8]
call fcn.00405600
push eax
push 0x499dc8
push 0
call sub.shell32.dll_ShellExecuteA
jmp 0x499d76
mov eax, ebx
call fcn.00499b14
mov edx, eax
lea ecx, [ebp - 0xc]
mov eax, ebx
call fcn.00499b60
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
mov edx, edi
mov eax, ebx
call fcn.00499b60
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
pop edx
call fcn.0048d6e0
test al, al
je 0x499d76
lea ecx, [ebp - 0x14]
xor edx, edx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x250]
add eax, 0x40
call fcn.004051c4
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.00403380
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.0040a568
push dword [ebp - 0x18]
push 0x499dd8
lea ecx, [ebp - 0x24]
xor edx, edx
mov eax, esi
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00489bfc
push dword [ebp - 0x20]
mov eax, dword [ebx + 0x250]
add eax, 0x44
mov edx, 3
call fcn.00405504
mov eax, dword [ebx + 0x250]
call fcn.0041fed8
mov eax, 0x64
call fcn.0048e36c
test al, al
jne 0x499d76
mov eax, ebx
call fcn.00499a58
jmp 0x499d76
lea edx, [ebp - 0x28]
mov eax, 2
call fcn.00403380
mov eax, dword [ebp - 0x28]
mov edx, 0x499de8
call fcn.004098d8
test al, al
je 0x499d53
call fcn.0048d854
jmp 0x499d76
lea edx, [ebp - 0x2c]
mov eax, 1
call fcn.00403380
mov eax, dword [ebp - 0x2c]
mov edx, 0x499dfc
call fcn.004098d8
test al, al
jne 0x499d76
call fcn.0048dc04
push 0
push 0
push 0x10
mov eax, dword [0x49e86c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_PostMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x499dae
lea eax, [ebp - 0x2c]
mov edx, 0xb
call fcn.00405194
ret
Function at 0x401b67
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 0x401bbd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401bbd
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x401baf
cmp esi, ecx
jae 0x401bbd
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x401b9d
cmp esi, ecx
jae 0x401bbd
cmp word [esi], 0
je 0x401bbd
mov eax, esi
jmp 0x401bbf
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x401fab
Capabilities:
Compare security identifiers

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

Function at 0x40395b
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 4]
call fcn.00401692
mov eax, dword [ebp - 4]
xor esi, esi
inc esi
mov ecx, 0x104
mov edx, dword [eax - 8]
sub esi, dword [eax - 4]
sub edx, ecx
or esi, edx
jge 0x40398f
push ecx
lea ecx, [ebp - 4]
call fcn.0040185f
mov eax, dword [ebp - 4]
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
push 0xffffffffffffffff
lea ecx, [ebp - 4]
mov esi, eax
call fcn.004042a7
test esi, esi
jne 0x4039b1
mov edi, 0x80004005
jmp 0x403a57
push ebx
push ecx
push ecx
lea ecx, [ebp - 4]
call fcn.004041e5
push 0
push 0x5c
lea ecx, [ebp - 4]
call fcn.004041b6
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4039d7
mov ecx, dword [ebp - 4]
mov eax, dword [ecx - 0xc]
jmp 0x4039d9
mov eax, ebx
push eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
call fcn.00404122
mov esi, dword [ebp - 8]
mov ecx, esi
call fcn.00404f1e
test al, al
jne 0x403a16
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x403a16
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x50
je 0x403a16
cmp edi, 0xb7
jne 0x403a35
cmp ebx, 0xffffffff
je 0x403a4c
lea eax, [ebx + 1]
push eax
push 0x5c
lea ecx, [ebp - 4]
call fcn.004041b6
lea ecx, [esi - 0x10]
mov ebx, eax
call fcn.00401622
jmp 0x4039ca
test edi, edi
jle 0x403a42
movzx edi, di
or edi, 0x80070000
lea ecx, [esi - 0x10]
call fcn.00401622
jmp 0x403a56
lea ecx, [esi - 0x10]
call fcn.00401622
xor edi, edi
pop ebx
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.00401622
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x403a68
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x44000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
test esi, esi
jne 0x403a8f
mov eax, 0x80070057
jmp 0x403b2f
push edi
mov ecx, esi
call fcn.004016b9
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00416a60
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 0x403b10
movzx ecx, bl
cmp ecx, 0x26
jne 0x403ad4
mov edx, str.ProgramFiles
jmp 0x403ade
cmp ecx, 0x1c
jne 0x403aff
mov edx, str.LocalAppData
lea ecx, [ebp - 0x210]
call fcn.00403d7b
push eax
mov ecx, esi
call fcn.0040163a
mov ecx, dword [ebp - 0x210]
lea ecx, [ecx - 0x10]
call fcn.00401622
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x403b0c
xor eax, eax
inc eax
jmp 0x403b2e
mov eax, edi
jmp 0x403b2e
lea eax, [ebp - 0x20c]
push eax
call fcn.00421e6c
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00401755
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00415d04
leave
ret
Function at 0x40521a
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
test edi, edi
jle 0x405332
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
cmp edi, 2
jle 0x40529a
sub edx, 4
js 0x405332
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
and ecx, 3
shr eax, 4
add ecx, ecx
mov al, byte [eax + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
movzx ecx, byte [ebx + 1]
movzx eax, byte [ebx + 2]
and ecx, 0xf
shr eax, 6
mov al, byte [eax + ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], al
movzx eax, byte [ebx + 2]
add ebx, 3
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 3], al
add esi, 4
sub edi, 3
jmp 0x405232
sub edi, 1
je 0x4052f6
sub edi, 1
jne 0x40532b
sub edx, 3
js 0x405332
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
and ecx, 3
shr eax, 4
add ecx, ecx
mov al, byte [eax + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
movzx eax, byte [ebx + 1]
and eax, 0xf
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], al
lea eax, [edx - 1]
test eax, eax
js 0x405332
mov byte [esi + 3], 0x3d
jmp 0x405328
sub edx, 2
js 0x405332
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movzx eax, byte [ebx]
and eax, 3
shl eax, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
lea eax, [edx - 2]
test eax, eax
js 0x405332
mov word [esi + 2], 0x3d3d
add esi, 4
sub esi, dword [ebp + 8]
mov eax, esi
jmp 0x405334
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x405977
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push edi
lea ecx, [ebp - 0x24]
mov ebx, edx
call fcn.004031cb
push 0x40
xor esi, esi
mov dword [ebp - 0x6c], 0x44
lea eax, [ebp - 0x68]
push esi
push eax
call fcn.00416a60
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x6c]
add esp, 0xc
mov dword [ebp - 0x40], 0x80
push edi
push eax
push esi
cmp dword [ebp + 8], esi
jne 0x4059bb
push esi
push esi
jmp 0x4059c3
push dword [ebp + 8]
push 0x400
push dword [ebp + 0xc]
push esi
push esi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4059dd
call fcn.00408ac6
mov esi, eax
jmp 0x405a1e
movzx ecx, byte [0x441e69]
neg ecx
sbb ecx, ecx
and ecx, 0x441e70
je 0x405a1e
xor eax, eax
mov dword [ebp - 0x14], ecx
inc eax
mov dword [ebp - 0x10], 7
push eax
push ecx
mov dword [ebp - 0xc], eax
call fcn.00406496
push dword [edi + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push str._Started_process___u_
push eax
call fcn.00403139
add esp, 0xc
lea ecx, [ebp - 0x24]
call fcn.00403225
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x405a33
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x44000c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x405a4e
mov al, 1
jmp 0x405a91
push 0x34
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.00416a60
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x405a89
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4391d0
call fcn.00408cb3
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x405a4a
mov eax, dword [ebp - 0x38]
shr eax, 0xa
and al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00415d04
leave
ret

Function at 0x405a9e
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.SoftwareBraveSoftwareUpdateDev_
push 0x80000002
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x405acc
xor al, al
jmp 0x405b14
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 0x4391a4
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 0x405b10
cmp dword [ebp - 8], edi
jne 0x405b10
cmp dword [ebp - 0xc], ebx
je 0x405b10
mov bl, 1
pop edi
mov al, bl
pop esi
pop ebx
leave
ret
Function at 0x405e44
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00405a9e
mov byte [ebx + 0x77], al
mov ecx, ebx
lea eax, [ebp - 4]
push eax
call fcn.004068c5
mov edi, dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x14], edi
cmp dword [edi - 0xc], 0
je 0x405ecf
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 0x405edd
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 0x405eea
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 edx, dword [eax + 0x440a90]
mov ecx, dword [eax + 0x440a94]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
test edx, edx
je 0x405f56
cmp ecx, 9
ja 0x405f56
lea eax, [ebp - 8]
mov ecx, ebx
push eax
call fcn.004068c5
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0
je 0x405f39
push esi
push 1
push dword [ebp - 0xc]
push str.LoggingLevel
call edi
jmp 0x405f3c
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.00401622
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 4], eax
cmp eax, 0x48
jb 0x405efb
call fcn.00405947
mov ecx, dword [ebp - 0x14]
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x84], edx
lea ecx, [ecx - 0x10]
call fcn.00401622
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405f82
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea ecx, [ebp - 4]
call fcn.00401692
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 0x405fb2
push edx
lea ecx, [ebp - 4]
call fcn.0040185f
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 0x405feb
mov ecx, dword [ebp + 8]
push 0x4364e8
call fcn.00404248
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.004042a7
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.00401622
mov eax, dword [ebp + 8]
jmp 0x406025
push str.BraveSoftwareUpdateLog
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x405fc4
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.0040180c
mov esi, dword [ebp + 8]
lea ecx, [ebp - 4]
add eax, 0x10
push 0xffffffffffffffff
mov dword [esi], eax
call fcn.004042a7
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.00401622
mov eax, esi
pop esi
leave
ret 4
Function at 0x4060d2
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 0x40619b
mov eax, dword [ebx + 0xcc]
push esi
push edi
test eax, eax
jne 0x406191
lea eax, [ebp - 4]
push eax
call fcn.0040602a
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], 0
je 0x406132
lea edx, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.004088fa
mov edi, dword [ebp - 8]
mov ecx, edi
call fcn.00404f1e
test al, al
jne 0x40613c
mov ecx, edi
call fcn.0040395b
test eax, eax
jns 0x40613c
lea ecx, [edi - 0x10]
call fcn.00401622
lea ecx, [esi - 0x10]
call fcn.00401622
jmp 0x406199
mov al, byte [ebx + 0x79]
push 0x20
mov byte [ebp - 8], al
call fcn.0042a39c
pop ecx
push dword [ebp - 8]
mov ecx, eax
push esi
call fcn.004069ad
mov dword [ebx + 0xcc], eax
test eax, eax
jne 0x406177
push esi
push dword [ebx + 0x54]
push str.LOG_SYSTEM:___s_:_ERROR___Cannot_create_log_writer_to__s
call fcn.00408cb3
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [edi - 0x10]
call fcn.00401622
lea ecx, [esi - 0x10]
call fcn.00401622
mov eax, dword [ebx + 0xcc]
test eax, eax
je 0x406199
push eax
mov ecx, ebx
call fcn.00406852
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406634
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 0x4066e8
cmp dword [ebp + 8], 0
jne 0x406659
cmp dword [ebp + 0x10], 2
jg 0x4066e8
lea ecx, [ebp - 4]
call fcn.00401692
lea ecx, [ebp + 0x14]
call fcn.00401692
xor edi, edi
inc edi
mov eax, dword [ebx + 0x58]
lea ecx, [ebx + 0x58]
push 0
mov eax, dword [eax + 0xc]
call eax
test al, al
jne 0x40668d
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x14
jle 0x40666c
jmp 0x4066b7
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.00406557
mov eax, dword [ebx + 0x58]
lea ecx, [ebx + 0x58]
call dword [eax + 8]
cmp edi, 0x14
jle 0x4066d2
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 0x439770
call esi
mov ecx, dword [ebp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401622
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.00401622
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x4069ad
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0xc]
push ebx
mov ebx, ecx
push edi
lea ecx, [ebx + 0xc]
mov dword [ebx], fcn.00406b59
mov dword [ebx + 4], 0x989680
mov word [ebx + 8], 0
mov byte [ebx + 0xa], al
mov byte [ebx + 0xb], 1
call fcn.00401692
push dword [ebp + 8]
xor edi, edi
lea ecx, [ebx + 0x14]
mov dword [ebx + 0x10], edi
call fcn.00404248
lea ecx, [ebx + 0x1c]
mov dword [ebx + 0x18], edi
call fcn.00401692
movzx eax, byte [0x441e69]
neg eax
sbb eax, eax
and eax, 0x441e70
mov dword [ebp + 8], eax
je 0x406a75
push esi
lea ecx, [ebp + 0xc]
push ecx
mov ecx, eax
call fcn.004068c5
mov esi, dword [ebp + 0xc]
cmp dword [esi - 0xc], edi
je 0x406a50
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 0x406a5a
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.0040163a
lea ecx, [esi - 0x10]
call fcn.00401622
pop esi
pop edi
mov eax, ebx
pop ebx
pop ebp
ret 8

Function at 0x406ad6
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 8], 0
jne 0x406b57
mov byte [esi + 8], 1
call fcn.00406b85
cmp dword [esi + 0x10], 0
je 0x406b57
test al, al
je 0x406af6
mov byte [esi + 0xa], 1
mov ecx, esi
call fcn.004072bf
test al, al
jne 0x406b1d
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.00408cb3
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop esi
ret
mov ecx, esi
call fcn.00406da9
cmp dword [esi + 0x18], 0
jne 0x406b44
push dword [esi + 0x14]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_create_logging_file__s_n
call fcn.00408cb3
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [esi + 0x10], 0
mov byte [esi + 9], 1
je 0x406b57
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
ret