joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408508
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 0x408540
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x408598
mov eax, dword [ebp - 4]
shr eax, 1
push 2
pop ecx
inc eax
mul ecx
setb cl
movsx ecx, cl
neg ecx
or ecx, eax
push ecx
call fcn.0042aa01
cmp dword [ebp - 4], 0
pop ecx
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
je 0x408593
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 0x408598
movzx esi, si
or esi, 0x80070000
jmp 0x408598
xor eax, eax
mov word [ecx], ax
pop edi
mov eax, esi
pop esi
leave
ret 8

Function at 0x4085a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov ebx, 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 [ebx + 4]
mov dword [ebp - 8], ecx
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x4085d8
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x40864c
mov edx, dword [ebp - 4]
test edx, edx
je 0x408644
shr edx, 1
add edx, 1
js 0x408654
push edi
mov edi, dword [ebp + 0xc]
xor ecx, ecx
inc ecx
mov eax, dword [edi]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or ecx, eax
jge 0x408605
push edx
mov ecx, edi
call fcn.00401901
cmp dword [edi], 0
jne 0x408611
mov esi, 0x8007000e
jmp 0x408638
lea eax, [ebp - 4]
push eax
push dword [edi]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebx + 4]
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x408638
movzx esi, si
or esi, 0x80070000
push 0xffffffffffffffff
mov ecx, edi
call fcn.004040c5
pop edi
jmp 0x40864c
mov ecx, dword [ebp + 0xc]
call fcn.00401745
mov eax, esi
pop esi
pop ebx
leave
ret 8
push 0x80070057
call fcn.004012b5
int3
Function at 0x4089d4
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x43c040]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x224]
push esi
push edi
push ebx
push eax
mov edi, ecx
call fcn.0040894b
cmp byte [ebp - 0x220], 0
je 0x408a0d
mov eax, dword [ebp - 0x224]
jmp 0x408a78
mov eax, dword [edi + 8]
lea ecx, [ebp - 0x218]
and dword [ebp - 0x214], 0
or eax, 0xf003f
push 0
push eax
push ebx
push dword [edi + 4]
mov dword [ebp - 0x218], 0x43546c
mov dword [ebp - 0x210], 0x200
call fcn.004081f8
mov esi, eax
cmp esi, 0x80070002
je 0x408a54
cmp esi, 0x80070003
jne 0x408a9d
xor esi, esi
inc esi
cmp dword [ebp - 0x214], 0
mov dword [ebp - 0x218], 0x43546c
je 0x408a76
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416002
leave
ret 4
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x218]
call fcn.004089d4
mov esi, eax
test esi, esi
jne 0x408a57
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x21c], pe_nt_image_headers32
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x408a89
cmp dword [ebp - 0x214], esi
je 0x408af8
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], 0x200
push ebx
mov ecx, edi
call fcn.00408082
mov esi, eax
jmp 0x408a57

Function at 0x409040
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x43c040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x10]
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 - 0x10], ebx
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4090a6
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x409098
mov dword [ebp - 0x14], ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x14]
test eax, eax
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop ebx
call fcn.00416002
leave
ret
Function at 0x40962a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x43c040]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp edi, 0x80000003
jne 0x409657
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00416002
leave
ret
push esi
push 0x802
lea eax, [ebp - 0x808]
push 0
push eax
call fcn.00416d80
mov esi, dword [0x43dec4]
lea ecx, [ebp - 0x80c]
xor edx, edx
call fcn.00404b93
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push str.baselogging.cc
push 0
push esi
push dword [ebp - 0x80c]
push edi
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.004016ae
lea ecx, [ebp - 0x808]
call fcn.00409d0b
push 0x250012
push str.Exception
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop esi
sub eax, 3
je 0x4096eb
sub eax, 1
jne 0x4096e3
int3
xor eax, eax
inc eax
jmp 0x40964a
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x409d0b
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 0x409d7a
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 0x409d56
push ebx
push edi
push eax
call fcn.00416ee0
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 0x409d71
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 0x40aceb
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 0x40ae63
mov ecx, dword [esi + 0x14]
sub ecx, 0x10
call fcn.004018a1
and dword [ebp - 0x24], 0
and dword [ebp - 0x20], 0
lea edi, [eax + 0x10]
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.00403184
push 0
movzx eax, al
shl eax, 0x19
push eax
push 3
push 0
push 1
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor ecx, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
cmp eax, 0xffffffff
jne 0x40ad52
call fcn.0040931b
jmp 0x40ad77
push ecx
push ecx
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x40ad6b
call fcn.0040931b
mov dword [ebp - 0xc], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
test eax, eax
jns 0x40ad94
lea ecx, [ebp - 8]
call fcn.0040422c
push esi
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.0040b254
jmp 0x40ae50
call fcn.004058c6
xor ecx, ecx
mov dword [ebp - 0xc], eax
or ecx, dword [ebp - 0x24]
sub dword [ebp - 0xc], ecx
sbb edx, dword [ebp - 0x20]
cmp edx, 0xc9
jb 0x40ae48
ja 0x40adc2
cmp dword [ebp - 0xc], 0x2a69c000
jb 0x40ae48
lea ecx, [ebp - 4]
call fcn.0040171e
lea edx, [ebp - 4]
lea ecx, [ebp - 0x14]
call fcn.00411036
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 8]
call fcn.0040422c
push esi
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.0040b254
movzx ecx, byte [0x43dec9]
neg ecx
sbb ecx, ecx
and ecx, 0x43ded0
je 0x40ae3b
xor eax, eax
mov dword [ebp - 0x34], ecx
inc eax
mov dword [ebp - 0x30], 7
push eax
push ecx
mov dword [ebp - 0x2c], eax
call fcn.00406431
push dword [ebp - 4]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x34]
push edi
push str._CrashHandler__Deleted_Stale_Crash__filename__s__custom_data__s_
push eax
call fcn.004031cb
add esp, 0x10
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.004016ae
jmp 0x40ae50
lea ecx, [ebp - 8]
call fcn.0040422c
lea ecx, [edi - 0x10]
call fcn.004016ae
mov esi, dword [ebp - 8]
cmp esi, dword [ebx]
jne 0x40ad06
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c298
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
push 9
mov esi, ecx
lea edi, [ebp - 0x50]
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x4c]
dec ebx
not ebx
and ebx, dword [ebp + 8]
je 0x40c2ee
lea edi, [esi + 0xc]
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.0040b6b5
mov esi, dword [ebp - 8]
cmp byte [esi + 0xd], 0
jne 0x40c2e9
cmp ebx, dword [esi + 0x10]
jb 0x40c2e9
cmp esi, dword [edi]
jne 0x40c2f7
sub ebx, dword [ebp - 0x4c]
jne 0x40c2c5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
add esi, 0x14
lea edi, [ebp - 0x2c]
push 7
pop ecx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x20]
add eax, ebx
cmp dword [ebp + 8], eax
sbb eax, eax
and eax, ebx
jmp 0x40c2f0

Function at 0x40c5e4
Capabilities:
Get system information on windows

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x80
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x7c]
push 9
pop ecx
xor eax, eax
mov dword [ebp - 8], esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x34]
and dword [esi + 8], eax
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [ebp - 0x34]
push eax
push 0
jmp 0x40c6ee
cmp dword [ebp - 0x24], 0x1000
jne 0x40c6df
push 7
pop ecx
lea esi, [ebp - 0x34]
lea edi, [ebp - 0x58]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 8]
lea eax, [ebp - 4]
mov edi, dword [ebp - 0x34]
add esi, 0xc
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], esi
push eax
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.0040b6b5
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0xd], 0
jne 0x40c678
cmp edi, dword [eax + 0x10]
jae 0x40c6bc
cmp dword [esi + 4], 0x5555555
je 0x40c70b
mov esi, dword [esi]
push 0x30
call fcn.0042a97c
mov edx, eax
mov eax, dword [ebp - 4]
pop ecx
push 7
pop ecx
mov dword [edx + 0x10], eax
lea edi, [edx + 0x14]
push edx
push dword [ebp - 0x14]
xor eax, eax
push dword [ebp - 0x18]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0xc]
mov dword [edx], esi
mov dword [edx + 4], esi
mov dword [edx + 8], esi
mov word [edx + 0xc], ax
call fcn.00407aea
push 7
lea edi, [eax + 0x14]
pop ecx
lea esi, [ebp - 0x58]
rep movsd dword es:[edi], dword [esi]
test byte [ebp - 0x20], 0x70
je 0x40c6df
mov ecx, dword [ebp - 0x28]
xor edx, edx
mov eax, ecx
div dword [ebp - 0x78]
mov edx, dword [ebp - 8]
add dword [edx + 8], eax
jmp 0x40c6e2
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x34]
add eax, ecx
lea ecx, [ebp - 0x34]
push 0x1c
push ecx
push eax
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp eax, 0x1c
je 0x40c634
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.004074b9
int3
Function at 0x40ebe2
Capabilities:
Create pipe

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x84], edi
jne 0x40ec7f
push edi
xor ebx, ebx
mov dword [esi + 0x84], 2
inc ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x44], eax
test eax, eax
je 0x40ec7f
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x9c], eax
test eax, eax
je 0x40ec7f
push 4
push 0xffffffffffffffff
push esi
push 0x40f349
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x40ec7f
lea eax, [esi + 0x20]
cmp dword [eax + 0x14], 7
jbe 0x40ec4a
mov eax, dword [eax]
push dword [esi + 0x38]
push edi
push 0x40
push 0x40
push ebx
push 6
push 0x40080003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x3c], eax
cmp eax, 0xffffffff
je 0x40ec7f
push dword [esi + 0x9c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x40ec85
mov dword [esi + 0x84], ebx
xor al, al
pop edi
pop esi
pop ebx
ret
mov al, bl
jmp 0x40ec81

Function at 0x40ed3f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push edi
mov edi, ecx
push 0x2c
push 0
lea esi, [edi + 0xa0]
push esi
call fcn.00416d80
add esp, 0xc
lea eax, [edi + 0x8c]
push eax
lea eax, [ebp - 4]
push eax
push 0x2c
push esi
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40ed91
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x40ed91
push 0xa
mov ecx, edi
call fcn.0040efb8
jmp 0x40ed9b
mov dword [edi + 0x84], 5
pop edi
pop esi
leave
ret

Function at 0x410cb0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ecx
push ebx
push esi
lea eax, [esp + 0xb]
mov byte [esp + 0xb], 0
push eax
push 0x410d69
mov esi, ecx
call dword [sym.imp.USER32.dll_EnumWindows]
lea ecx, [esp + 0xc]
call fcn.0040171e
push dword [ebp + 0xc]
lea eax, [esp + 0x10]
push dword [ebp + 8]
push str._s_s.dmp
push eax
call fcn.00408e30
lea ecx, [esp + 0x1c]
call fcn.004091f2
mov bl, byte [esp + 0x1b]
lea eax, [esp + 0x1c]
mov dl, byte [esi]
mov cl, bl
push 0
push eax
call fcn.00411208
add esp, 0x18
cmp byte [esi + 1], 0
je 0x410d55
push dword [ebp + 0xc]
lea eax, [esp + 0x10]
push dword [ebp + 8]
push str._s_s_full.dmp
push eax
call fcn.00408e30
add esp, 0x10
lea ecx, [esp + 0xc]
call fcn.004091f2
mov ecx, dword [esp + 0xc]
call fcn.00403148
test al, al
je 0x410d55
mov dl, byte [esi]
lea eax, [esp + 0xc]
push 0
push eax
mov cl, bl
call fcn.00411208
pop ecx
pop ecx
mov ecx, dword [esp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.004016ae
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4110aa
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
mov esi, ecx
movzx ecx, byte [0x43dec9]
neg ecx
push edi
sbb ecx, ecx
and ecx, 0x43ded0
je 0x4110f4
or dword [ebp - 0x18], 0xffffffff
push 0xffffffffffffffff
push ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], 7
call fcn.00406431
push dword [esi]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push str._StartProcessWithNoExceptionHandler___s_
push eax
call fcn.004031cb
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.00409239
push 0x437840
lea ecx, [ebp - 8]
call fcn.00404066
push str.GOOGLE_UPDATE_NO_CRASH_HANDLER
lea ecx, [ebp - 4]
call fcn.00404066
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040e041
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.004016ae
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.004016ae
xor ebx, ebx
mov edi, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 8], eax
test eax, eax
je 0x4111dd
lea ecx, [ebp - 0x1c]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.0040e082
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov edi, dword [ebp - 0x1c]
cmp edi, dword [ebp - 0x18]
je 0x4111dd
push 0x40
lea eax, [ebp - 0x74]
mov dword [ebp - 0x78], 0x44
push ebx
push eax
call fcn.00416d80
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esi]
cmp dword [eax - 4], 1
jle 0x4111a9
push dword [eax - 0xc]
mov ecx, esi
call fcn.00401990
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push edi
push 0x400
push ebx
push ebx
push ebx
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4111dd
push dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x2c]
call esi
jmp 0x4111e4
call fcn.0040931b
mov ebx, eax
test edi, edi
je 0x4111f9
mov ecx, dword [ebp - 0x14]
sub ecx, edi
and ecx, 0xfffffffe
push ecx
push edi
call fcn.00404721
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
call fcn.0040925f
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x4114ff
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
mov edi, ecx
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x41151e
mov ecx, edi
call fcn.0040171e
jmp 0x4115d2
push ebx
push esi
push str.SystemTemp
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x24], 0x24
call fcn.00404066
push str.BraveSoftwareTemp
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0x26
call fcn.00404066
mov byte [ebp - 0x10], 1
lea ebx, [ebp - 0x24]
lea ecx, [ebp - 4]
call fcn.0040171e
mov ecx, dword [ebx]
lea eax, [ebp - 4]
lea edx, [ebx + 4]
push eax
movzx eax, byte [edx + 4]
push eax
call fcn.00411456
mov esi, dword [ebp - 4]
pop ecx
pop ecx
test eax, eax
js 0x41159f
mov ecx, esi
call fcn.00403184
test al, al
je 0x41159f
push ecx
mov edx, esi
lea ecx, [ebp - 8]
call fcn.00403212
mov eax, dword [ebp - 8]
pop ecx
cmp dword [eax - 0xc], 0
jne 0x4115d7
lea ecx, [eax - 0x10]
call fcn.004016ae
lea ecx, [esi - 0x10]
call fcn.004016ae
add ebx, 0xc
lea eax, [ebp - 0xc]
cmp ebx, eax
jne 0x411553
mov ecx, edi
call fcn.0040171e
push 2
pop esi
lea ebx, [ebp - 8]
lea ebx, [ebx - 0xc]
mov ecx, dword [ebx]
sub ecx, 0x10
call fcn.004016ae
sub esi, 1
jne 0x4115be
pop esi
pop ebx
mov eax, edi
pop edi
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esi - 0x10]
call fcn.004018a1
mov ecx, dword [ebp - 8]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.004016ae
lea ecx, [esi - 0x10]
call fcn.004016ae
push 2
pop esi
lea ebx, [ebp - 8]
lea ebx, [ebx - 0xc]
mov ecx, dword [ebx]
sub ecx, 0x10
call fcn.004016ae
sub esi, 1
jne 0x411604
jmp 0x4115d0

Function at 0x412936
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x43c040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x200
xor ebx, ebx
lea eax, [ebp - 0x204]
push ebx
push eax
call fcn.00416d80
add esp, 0xc
mov dword [ebp - 0x20c], pe_nt_image_headers32
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push 3
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x41299f
push ecx
mov edx, str..brave.com
lea ecx, [ebp - 0x204]
call fcn.00405152
pop ecx
test al, al
je 0x41299f
mov al, 1
jmp 0x4129e4
push esi
lea eax, [ebp - 0x208]
mov dword [ebp - 0x208], ebx
push eax
push 0x64
push ebx
call dword [sym.imp.NETAPI32.dll_NetWkstaGetInfo]
mov esi, dword [ebp - 0x208]
test eax, eax
jne 0x4129da
cmp dword [esi + 8], ebx
je 0x4129da
push 0x437844
push dword [esi + 8]
call fcn.004255f5
pop ecx
pop ecx
test eax, eax
jne 0x4129da
mov bl, 1
push esi
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov al, bl
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00416002
leave
ret
Function at 0x413294
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov ebx, ecx
mov esi, edx
push edi
lea ecx, [ebp - 4]
call fcn.0040171e
push dword [esi]
lea eax, [ebp - 4]
push str.__s__r_n
push eax
call fcn.00408e5a
mov esi, dword [ebp + 8]
add esp, 0xc
mov ecx, dword [esi]
mov eax, dword [ecx]
mov dword [ebp + 8], eax
cmp eax, ecx
je 0x4132ef
push dword [eax + 0x14]
push dword [eax + 0x10]
lea eax, [ebp - 4]
push str._s_s_r_n
push eax
call fcn.00408e5a
add esp, 0x10
lea ecx, [ebp + 8]
call fcn.0040422c
mov eax, dword [ebp + 8]
cmp eax, dword [esi]
jne 0x4132c9
mov esi, dword [ebp - 4]
lea ecx, [ebp - 8]
xor edi, edi
push edi
mov dword [ebp - 8], edi
mov eax, dword [esi - 0xc]
push ecx
add eax, eax
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x413315
call fcn.0040931b
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.004016ae
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x413790
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor edi, edi
mov bl, cl
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
call fcn.00413324
test eax, eax
js 0x4138b8
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
je 0x4138b8
call fcn.00411ff3
mov eax, str.HKLMSoftwareBraveSoftwareUpdate_
test bl, bl
jne 0x4137d5
mov eax, str.HKCUSoftwareBraveSoftwareUpdate_
push eax
lea ecx, [ebp - 4]
call fcn.00404066
push 0x4388b8
lea ecx, [ebp - 8]
call fcn.00404066
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 4]
lea ecx, [ebp - 0xc]
call fcn.00403aaf
pop ecx
push eax
lea ecx, [ebp - 4]
call fcn.004016c6
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.004016ae
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.004016ae
mov esi, dword [ebp - 4]
mov ecx, esi
call fcn.00408754
test al, al
jne 0x413835
mov dl, 1
mov cl, bl
call fcn.004138ca
mov edi, eax
jmp 0x4138aa
push 1
push esi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0x43546c
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], 0x200
call fcn.0040825e
mov edi, eax
test edi, edi
js 0x41389b
mov eax, dword [ebp - 0x14]
xor edi, edi
mov ecx, dword [ebp - 0x18]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x413890
push 0
push 0
push 0
push 0
push dword [ecx + edi*4]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4138b4
mov eax, dword [ebp - 0x14]
inc edi
mov ecx, dword [ebp - 0x18]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x413868
xor dl, dl
mov cl, bl
call fcn.004138ca
mov edi, eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0x43546c
call fcn.00408100
lea ecx, [esi - 0x10]
call fcn.004016ae
jmp 0x4138bb
xor edi, edi
jmp 0x41389b
xor edi, edi
inc edi
lea ecx, [ebp - 0x18]
call fcn.00404dbd
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret