joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4057c6
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.004063f6
mov esi, dword [ebp - 4]
lea edi, [ebx + 0x78]
xor eax, eax
cmp dword [esi - 0xc], eax
je 0x4058bb
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 0x405894
push 0x104
mov ecx, edi
call fcn.0040184d
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.00403d8b
jmp 0x4058e3
push str.GoogleUpdate.log
mov byte [ebx + 0x74], 1
mov word [ebx + 0x76], 1
mov word [ebx + 0x7c], pe_nt_image_headers32
call fcn.0042a28c
pop ecx
push eax
push str.GoogleUpdate.log
mov ecx, edi
call fcn.0040171a
cmp byte [ebx + 0x75], 0
je 0x4058ed
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 + 0x4408b0]
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x40595b
mov ecx, dword [eax + 0x4408b4]
mov dword [ebp - 0x10], ecx
cmp ecx, 9
ja 0x40595b
lea eax, [ebp - 8]
mov ecx, ebx
push eax
call fcn.004063f6
mov edi, dword [ebp - 8]
cmp dword [edi - 0xc], 0
je 0x40593e
push edi
push 1
push dword [ebp - 0xc]
push str.LoggingLevel
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
jmp 0x405941
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.0040160e
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 4], eax
cmp eax, 0x48
jb 0x4058fc
call fcn.00405325
lea ecx, [esi - 0x10]
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x84], edx
call fcn.0040160e
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405984
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
call fcn.004013b1
push eax
lea ecx, [ebp - 4]
call fcn.004017d1
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 0x4059ba
push edx
lea ecx, [ebp - 4]
call fcn.0040184d
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 0x4059f0
mov ecx, dword [ebp + 8]
push 0x437518
call fcn.00403d30
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.00403d8b
lea ecx, [esi - 0x10]
call fcn.0040160e
mov eax, dword [ebp + 8]
jmp 0x405a27
push str.GoogleUpdateLog
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x4059cc
push edi
lea edi, [esi - 0x10]
mov ecx, edi
call fcn.004017fa
mov esi, dword [ebp + 8]
lea ecx, [ebp - 4]
add eax, 0x10
push 0xffffffffffffffff
mov dword [esi], eax
call fcn.00403d8b
mov ecx, edi
call fcn.0040160e
mov eax, esi
pop edi
pop esi
leave
ret 4

Function at 0x405aff
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 0x405bc8
mov eax, dword [ebx + 0xcc]
push esi
push edi
test eax, eax
jne 0x405bbe
lea eax, [ebp - 4]
push eax
call fcn.00405a2c
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], 0
je 0x405b5f
lea edx, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.004081c8
mov edi, dword [ebp - 8]
mov ecx, edi
call fcn.00404968
test al, al
jne 0x405b69
mov ecx, edi
call fcn.004035cf
test eax, eax
jns 0x405b69
lea ecx, [edi - 0x10]
call fcn.0040160e
lea ecx, [esi - 0x10]
call fcn.0040160e
jmp 0x405bc6
mov al, byte [ebx + 0x7d]
push 0x20
mov byte [ebp - 8], al
call fcn.0042883d
pop ecx
push dword [ebp - 8]
mov ecx, eax
push esi
call fcn.004064e3
mov dword [ebx + 0xcc], eax
test eax, eax
jne 0x405ba4
push esi
push dword [ebx + 0x54]
push str.LOG_SYSTEM:___s_:_ERROR___Cannot_create_log_writer_to__s
call fcn.00408512
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [edi - 0x10]
call fcn.0040160e
lea ecx, [esi - 0x10]
call fcn.0040160e
mov eax, dword [ebx + 0xcc]
test eax, eax
je 0x405bc6
push eax
mov ecx, ebx
call fcn.00406383
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406110
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 0x4061d1
cmp dword [ebp + 8], 0
jne 0x406135
cmp dword [ebp + 0x10], 2
jg 0x4061d1
call fcn.004013b1
push eax
lea ecx, [ebp - 4]
call fcn.004017d1
call fcn.004013b1
push eax
lea ecx, [ebp + 0x14]
call fcn.004017d1
xor edi, edi
lea eax, [ebx + 0x58]
inc edi
push 0
mov ecx, eax
call fcn.00406feb
test al, al
jne 0x406177
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
lea eax, [ebx + 0x58]
cmp edi, 0x14
jle 0x406157
jmp 0x40619b
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.00406033
lea ecx, [ebx + 0x58]
mov eax, dword [ecx]
call dword [eax + 8]
cmp edi, 0x14
jle 0x4061bb
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 0x43a2d8
call esi
mov ecx, dword [ebp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.0040160e
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.0040160e
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x4064e3
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.00406691
mov dword [ebx + 4], 0x989680
mov word [ebx + 8], 0
mov byte [ebx + 0xa], al
mov byte [ebx + 0xb], 1
call fcn.004013b1
push eax
lea ecx, [ebx + 0xc]
call fcn.004017d1
push dword [ebp + 8]
xor edi, edi
lea ecx, [ebx + 0x14]
mov dword [ebx + 0x10], edi
call fcn.00403d30
mov dword [ebx + 0x18], edi
call fcn.004013b1
push eax
lea ecx, [ebx + 0x1c]
call fcn.004017d1
movzx eax, byte [0x441da9]
neg eax
sbb eax, eax
and eax, 0x441cd0
mov dword [ebp + 8], eax
je 0x4065b6
lea ecx, [ebp + 0xc]
push ecx
mov ecx, eax
call fcn.004063f6
mov esi, dword [ebp + 0xc]
cmp dword [esi - 0xc], edi
je 0x406592
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 0x40659c
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.00401626
lea ecx, [esi - 0x10]
call fcn.0040160e
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
Function at 0x40660e
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 8], 0
jne 0x40668f
mov byte [esi + 8], 1
call fcn.004066bd
cmp dword [esi + 0x10], 0
je 0x40668f
test al, al
je 0x40662e
mov byte [esi + 0xa], 1
mov ecx, esi
call fcn.00406c29
test al, al
jne 0x406655
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.00408512
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop esi
ret
mov ecx, esi
call fcn.00406782
cmp dword [esi + 0x18], 0
jne 0x40667c
push dword [esi + 0x14]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_create_logging_file__s_n
call fcn.00408512
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [esi + 0x10], 0
mov byte [esi + 9], 1
je 0x40668f
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
ret

Function at 0x406782
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x440008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
lea edx, [ebp - 0x6c]
push edi
xor edi, edi
mov dword [ebp - 0x6c], edi
mov ecx, dword [esi + 0x14]
call fcn.00404a33
mov eax, dword [ebp - 0x6c]
cmp eax, dword [esi + 4]
jbe 0x4067b9
mov ecx, esi
call fcn.004068ec
xor eax, eax
cmp byte [esi + 0xa], al
push edi
setne al
push 0x80
lea eax, [eax*2 + 2]
push eax
push edi
push 3
push 0x40000000
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x18], eax
cmp eax, 0xffffffff
jne 0x4067f2
mov dword [esi + 0x18], edi
xor al, al
jmp 0x406884
lea ecx, [ebp - 0x8c]
call fcn.004021c1
push 0x221
push 0x20
push 2
lea eax, [ebp - 0x68]
push 0x439940
push eax
call fcn.00401d3f
add esp, 0x14
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x8c]
push edi
push 0xc0010000
push eax
call fcn.0040223e
lea ecx, [ebp - 0x68]
mov bl, al
call fcn.00401e28
test bl, bl
je 0x40684c
push ecx
mov ecx, dword [esi + 0x14]
lea eax, [ebp - 0x8c]
push eax
call fcn.0040304d
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x406877
cmp byte [esi + 0xb], 0
je 0x406877
push edi
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], edi
push eax
push 2
push 0x438670
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x8c]
call fcn.00402207
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415bad
leave
ret

Function at 0x406893
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push 0x80
push 5
push ebx
push 3
push 0x40000000
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [esi + 0x18], 0xffffffff
mov edi, eax
jne 0x4068c3
xor al, al
jmp 0x4068e7
cmp byte [esi + 0xb], bl
je 0x4068de
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 2
push 0x438670
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40696b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x440008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x18
mov dword [ebp - 0x74], ecx
lea edi, [ebp - 0x68]
pop ecx
mov esi, str.SYSTEMCurrentControlSetControlSession_Manager
lea eax, [ebp - 0x70]
rep movsd dword es:[edi], dword [esi]
push eax
push 0x20019
xor ebx, ebx
lea eax, [ebp - 0x68]
push ebx
push eax
push 0x80000002
movsw word es:[edi], word [esi]
mov dword [ebp - 0x70], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406a93
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x6c]
push 7
pop esi
push eax
push ebx
lea eax, [ebp - 0x78]
mov dword [ebp - 0x6c], ebx
push eax
push ebx
push 0x439b04
push dword [ebp - 0x70]
mov dword [ebp - 0x78], esi
call edi
test eax, eax
jne 0x406a93
cmp dword [ebp - 0x78], esi
jne 0x406a93
push dword [ebp - 0x6c]
call fcn.004288bd
push dword [ebp - 0x6c]
mov esi, eax
push ebx
push esi
call fcn.00416720
add esp, 0x10
lea eax, [ebp - 0x6c]
push eax
push esi
push ebx
push ebx
push 0x439b04
push dword [ebp - 0x70]
call edi
test eax, eax
jne 0x406a84
mov edi, dword [ebp - 0x6c]
shr edi, 1
mov dword [ebp - 0x7c], edi
lea eax, [edi - 2]
cmp eax, 0xffffd
ja 0x406a84
cmp word [esi + edi*2 - 4], bx
jne 0x406a84
cmp word [esi + edi*2 - 2], bx
jne 0x406a84
mov eax, dword [ebp - 0x74]
lea ecx, [ebp - 0x74]
add eax, 0x14
mov edx, str.___
push eax
call fcn.00406c97
test edi, edi
mov edi, dword [ebp - 0x74]
pop ecx
je 0x406a73
lea eax, [esi + ebx*2]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x406a76
lea eax, [esi + ebx*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add ebx, eax
cmp ebx, dword [ebp - 0x7c]
jb 0x406a52
or ebx, 0xffffffff
cmp ebx, 0xffffffff
lea ecx, [edi - 0x10]
setne bl
call fcn.0040160e
test esi, esi
je 0x406a8f
push esi
call fcn.004161c9
pop ecx
mov al, bl
jmp 0x406a95
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415bad
leave
ret

Function at 0x406c29
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x406c36
xor al, al
pop esi
ret
push 0x1f4
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x406c6f
cmp eax, 0x80
je 0x406c6f
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.00408512
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [esi + 9], 0
jmp 0x406c32
mov al, 1
pop esi
ret
Function at 0x406feb
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 0x40702c
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 0x40702c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jb 0x407007
xor al, al
jmp 0x40702e
mov al, 1
pop esi
leave
ret 4

Function at 0x407447
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 0x40747f
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x4074e1
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.004288bd
pop ecx
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
test ecx, ecx
je 0x4074dc
cmp dword [ebp - 4], 0
je 0x4074d5
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 0x4074e1
movzx esi, si
or esi, 0x80070000
jmp 0x4074e1
xor eax, eax
mov word [ecx], ax
jmp 0x4074e1
mov esi, 0x8007000e
pop edi
mov eax, esi
pop esi
leave
ret 8

Function at 0x407851
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x440008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x21c], 0x439a88
mov ecx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 8]
xor edi, edi
or eax, 0xf003f
mov dword [ebp - 0x220], ecx
push eax
push ecx
push dword [ebx + 4]
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x214], 0x200
call fcn.00407198
mov esi, eax
cmp esi, 0x80070002
je 0x4078b8
cmp esi, 0x80070003
jne 0x4078bb
xor esi, esi
inc esi
test esi, esi
jne 0x40793d
lea eax, [ebp - 0x228]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40790d
lea eax, [ebp - 0x20c]
push eax
call fcn.00407851
mov esi, eax
test esi, esi
jne 0x40793d
lea eax, [ebp - 0x228]
xor ecx, ecx
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push ecx
push dword [ebp - 0x218]
mov dword [ebp - 0x210], pe_nt_image_headers32
call edi
lea ecx, [ebp - 0x21c]
test eax, eax
je 0x4078e0
call fcn.004070a0
push dword [ebp - 0x220]
mov ecx, ebx
call fcn.00407040
mov esi, eax
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x439a88
call fcn.004070a0
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415bad
leave
ret 4
Function at 0x408031
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x440008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], ebx
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x408097
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
test eax, eax
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop ebx
call fcn.00415bad
leave
ret

Function at 0x4085ed
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x440008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x802
lea eax, [ebp - 0x808]
mov edi, edx
push 0
push eax
mov ebx, ecx
call fcn.00416720
mov esi, dword [0x441ccc]
lea ecx, [ebp - 0x80c]
xor edx, edx
call fcn.00404725
push edi
push str.baselogging.cc
push 0
push esi
push dword [ebp - 0x80c]
lea eax, [ebp - 0x808]
push ebx
push str.Exception__x_in__s__s__u_r_n_r_n_hs:_d_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 0x80c]
add esp, 0x2c
lea ecx, [ecx - 0x10]
call fcn.0040160e
lea ecx, [ebp - 0x808]
call fcn.00408e23
push 0x250012
push str.Exception
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
pop ebx
sub eax, 3
je 0x4086a1
sub eax, 1
jne 0x408692
int3
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
call fcn.00415bad
leave
ret
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x408e23
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push edi
mov edi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
mov ebx, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x408e92
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ebx, [ebx*2 + 2]
push ebx
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x408e6e
push ebx
push edi
push eax
call fcn.00417b70
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x408e89
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop edi
pop ebx
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
ret
Function at 0x409f21
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
lea ebx, [ecx + 0x1c]
mov eax, dword [ebx]
push esi
push edi
mov esi, dword [eax]
mov dword [ebp - 8], esi
cmp esi, eax
je 0x40a09e
mov ecx, dword [esi + 0x14]
sub ecx, 0x10
call fcn.004017fa
and dword [ebp - 0x20], 0
and dword [ebp - 0x1c], 0
lea edi, [eax + 0x10]
mov ecx, edi
mov dword [ebp - 4], edi
call fcn.004049a4
movzx eax, al
neg eax
push 0
sbb eax, eax
and eax, 0x2000000
push eax
push 3
push 0
push 1
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, 0xffffffff
jne 0x409f8d
call fcn.0040813c
jmp 0x409fb0
push eax
push eax
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x409fa6
call fcn.0040813c
mov dword [ebp - 0xc], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
test eax, eax
jns 0x409fcd
lea ecx, [ebp - 8]
call fcn.00403ef3
push esi
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.0040a610
jmp 0x40a088
call fcn.00405325
xor ecx, ecx
or ecx, dword [ebp - 0x20]
sub eax, ecx
sbb edx, dword [ebp - 0x1c]
cmp edx, 0xc9
jb 0x40a080
ja 0x409ff5
cmp eax, 0x2a69c000
jb 0x40a080
call fcn.004013b1
push eax
lea ecx, [ebp - 0x10]
call fcn.004017d1
lea edx, [ebp - 0x10]
lea ecx, [ebp - 4]
call fcn.004116de
mov edi, dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 8]
call fcn.00403ef3
push esi
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.0040a610
movzx ecx, byte [0x441da9]
neg ecx
sbb ecx, ecx
and ecx, 0x441cd0
je 0x40a076
push 7
pop edx
xor eax, eax
mov dword [ebp - 0x30], ecx
inc eax
mov dword [ebp - 0x2c], edx
push eax
push edx
mov dword [ebp - 0x28], eax
call fcn.00405f6b
push edi
push dword [ebp - 4]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x30]
push str._CrashHandler__Deleted_Stale_Crash__filename__s__custom_data__s_
push eax
call fcn.004030aa
add esp, 0x10
lea ecx, [edi - 0x10]
call fcn.0040160e
jmp 0x40a088
lea ecx, [ebp - 8]
call fcn.00403ef3
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.0040160e
mov esi, dword [ebp - 8]
cmp esi, dword [ebx]
jne 0x409f3c
pop edi
pop esi
pop ebx
leave
ret