joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406da9
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x44000c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x70], 0
lea edx, [ebp - 0x70]
push ebx
push esi
push edi
mov edi, ecx
lea ebx, [edi + 0x14]
mov ecx, dword [ebx]
call fcn.0040503d
mov eax, dword [ebp - 0x70]
cmp eax, dword [edi + 4]
jbe 0x406de1
mov ecx, edi
call fcn.00406f82
xor eax, eax
cmp byte [edi + 0xa], al
setne al
xor esi, esi
push esi
push 0x80
lea eax, [eax*2 + 2]
push eax
push esi
push 3
push 0x40000000
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x18], eax
cmp eax, 0xffffffff
jne 0x406e1b
mov dword [edi + 0x18], esi
xor al, al
jmp 0x406f1a
mov edx, ebx
lea ecx, [ebp - 0x70]
call fcn.004088fa
mov esi, dword [ebp - 0x70]
lea edx, [ebp - 0x69]
mov ecx, esi
mov byte [ebp - 0x69], 1
call fcn.00404fa7
cmp byte [ebp - 0x69], 0
jne 0x406ee8
mov ecx, dword [edi + 0x18]
call fcn.00405a33
test al, al
jne 0x406ee8
lea ecx, [ebp - 0x90]
call fcn.0040219f
push 0x221
push 0x20
push 2
lea eax, [ebp - 0x68]
push 0x438b08
push eax
call fcn.00401d39
add esp, 0x14
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x90]
push 0
push 0xc0010000
push eax
call fcn.0040220c
lea ecx, [ebp - 0x68]
mov bl, al
call fcn.00401e0a
test bl, bl
je 0x406eab
push ecx
mov ecx, dword [edi + 0x14]
lea eax, [ebp - 0x90]
push eax
call fcn.00403056
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x406ed8
cmp byte [edi + 0xb], 0
je 0x406ed8
and dword [ebp - 0x70], 0
lea eax, [ebp - 0x70]
push 0
push eax
push 2
push 0x437648
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x90]
call fcn.004021e5
xor ebx, ebx
inc ebx
jmp 0x406f10
push dword [ebx]
push dword [edi + 0x1c]
push str.LOG_SYSTEM:___s_:_ERROR___Log_path__s_has_a_reparse_point
call fcn.00408cb3
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [edi + 0x18], 0
xor bl, bl
lea ecx, [esi - 0x10]
call fcn.00401622
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415d04
leave
ret

Function at 0x406f29
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 0x406f59
xor al, al
jmp 0x406f7d
cmp byte [esi + 0xb], bl
je 0x406f74
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 2
push 0x437648
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 0x406ff9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x44000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x18
mov dword [ebp - 0x70], ecx
lea edi, [ebp - 0x68]
pop ecx
mov esi, str.SYSTEMCurrentControlSetControlSession_Manager
lea eax, [ebp - 0x74]
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 - 0x74], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407124
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 0x438e20
push dword [ebp - 0x74]
mov dword [ebp - 0x78], esi
call edi
test eax, eax
jne 0x407124
cmp dword [ebp - 0x78], esi
jne 0x407124
push dword [ebp - 0x6c]
call fcn.0042a421
push dword [ebp - 0x6c]
mov esi, eax
push ebx
push esi
mov dword [ebp - 0x7c], esi
call fcn.00416a60
add esp, 0x10
lea eax, [ebp - 0x6c]
push eax
push esi
push ebx
push ebx
push 0x438e20
push dword [ebp - 0x74]
call edi
test eax, eax
jne 0x407119
mov edi, dword [ebp - 0x6c]
shr edi, 1
lea eax, [edi - 2]
cmp eax, 0xffffd
ja 0x407119
cmp word [esi + edi*2 - 4], bx
jne 0x407119
cmp word [esi + edi*2 - 2], bx
jne 0x407119
mov eax, dword [ebp - 0x70]
lea ecx, [ebp - 0x70]
add eax, 0x14
mov edx, str.___
push eax
call fcn.0040732d
mov esi, dword [ebp - 0x70]
pop ecx
test edi, edi
je 0x407105
mov eax, dword [ebp - 0x7c]
push esi
lea eax, [eax + ebx*2]
push eax
mov dword [ebp - 0x70], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x407108
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc ebx
add ebx, eax
cmp ebx, edi
jb 0x4070e0
or ebx, 0xffffffff
cmp ebx, 0xffffffff
lea ecx, [esi - 0x10]
setne bl
call fcn.00401622
mov esi, dword [ebp - 0x7c]
push esi
call fcn.004164c6
pop ecx
mov al, bl
jmp 0x407126
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415d04
leave
ret

Function at 0x4072bf
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x4072cc
xor al, al
pop esi
ret
push 0x1f4
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x407305
cmp eax, 0x80
je 0x407305
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]
mov byte [esi + 9], 0
jmp 0x4072c8
mov al, 1
pop esi
ret
Function at 0x40759c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x44000c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x118
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], 0x11c
push 0
push eax
call fcn.00416a60
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je case.0x407683.2
mov ecx, dword [ebp - 0x11c]
cmp ecx, 6
je 0x407640
cmp ecx, 0xa
je 0x407640
cmp ecx, 5
jne case.0x407683.2
cmp dword [ebp - 0x118], 2
jne 0x407629
cmp byte [ebp - 6], 1
jne 0x40760e
call fcn.00407550
cmp eax, 9
je case.0x407683.1
test dword [ebp - 8], 0x8000
je case.0x407683.7
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415d04
leave
ret
cmp dword [ebp - 0x118], 1
jne case.0x407683.2
test dword [ebp - 8], 0x200
jne case.0x407683.2
xor eax, eax
inc eax
jmp 0x40761d
mov edx, dword [ebp - 0x118]
lea eax, [ebp - 0x124]
and dword [ebp - 0x124], 0
push eax
push ecx
push ecx
call fcn.004074ff
add esp, 0xc
test eax, eax
je case.0x407683.2
mov eax, dword [ebp - 0x124]
cmp eax, 0x30
ja 0x4076ca
je case.0x407683.1
cmp eax, 0xb
ja 0x40768a
je case.0x407683.2
dec eax
cmp eax, 9
ja case.0x407683.2
movzx eax, byte [eax + 0x407718]
jmp dword [eax*4 + 0x407704]
cmp eax, 0x10
ja 0x4076a8
je case.0x407683.4
sub eax, 0xc
je case.0x407683.7
sub eax, 1
je case.0x407683.7
sub eax, 1
je case.0x407683.7
sub eax, 1
jmp 0x407615
sub eax, 0x11
je case.0x407683.7
sub eax, 1
je case.0x407683.7
sub eax, 7
je case.0x407683.7
dec eax
sub eax, 1
je case.0x407683.4
jmp case.0x407683.2
push 2
pop eax
jmp 0x40761d
cmp eax, 0x7a
ja 0x4076ee
je 0x4076ea
sub eax, 0x46
je case.0x407683.4
dec eax
sub eax, 1
je case.0x407683.4
sub eax, 0xc
je case.0x407683.4
sub eax, 0x25
jne case.0x407683.2
push 4
jmp 0x4076c4
sub eax, 0x7d
je case.0x407683.4
sub eax, 1
je case.0x407683.4
sub eax, 3
jne 0x4076b8
push 3
jmp 0x4076c4

Function at 0x407d4c
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 0x407d84
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x407ddb
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.0042a421
cmp dword [ebp - 4], 0
pop ecx
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
je 0x407dd6
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 0x407ddb
movzx esi, si
or esi, 0x80070000
jmp 0x407ddb
xor eax, eax
mov word [ecx], ax
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x407de3
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 0x407e1b
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x407e8f
mov edx, dword [ebp - 4]
test edx, edx
je 0x407e87
shr edx, 1
add edx, 1
js 0x407e97
push edi
mov edi, dword [ebp + 0xc]
xor ecx, ecx
inc ecx
mov esi, dword [edi]
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or ecx, eax
jge 0x407e4a
push edx
mov ecx, edi
call fcn.0040185f
mov esi, dword [edi]
test esi, esi
jne 0x407e55
mov esi, 0x8007000e
jmp 0x407e7b
lea eax, [ebp - 4]
push eax
push esi
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 0x407e7b
movzx esi, si
or esi, 0x80070000
push 0xffffffffffffffff
mov ecx, edi
call fcn.004042a7
pop edi
jmp 0x407e8f
mov ecx, dword [ebp + 0xc]
call fcn.004016b9
mov eax, esi
pop esi
pop ebx
leave
ret 8
push 0x80070057
call fcn.00401601
int3

Function at 0x408188
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x44000c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ecx + 8]
mov edx, dword [ebp + 8]
or eax, 0xf003f
and dword [ebp - 0x214], 0
push esi
push eax
push edx
push dword [ecx + 4]
mov dword [ebp - 0x224], ecx
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x220], edx
mov dword [ebp - 0x218], 0x438d8c
mov dword [ebp - 0x210], 0x200
call fcn.00407a72
mov esi, eax
cmp esi, 0x80070002
je 0x4081f0
cmp esi, 0x80070003
jne 0x408237
xor esi, esi
inc esi
cmp dword [ebp - 0x214], 0
mov dword [ebp - 0x218], 0x438d8c
je 0x408212
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00415d04
leave
ret 4
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x218]
call fcn.00408188
mov esi, eax
test esi, esi
jne 0x4081f3
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 0x408223
cmp dword [ebp - 0x214], esi
je 0x408292
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], 0x200
push dword [ebp - 0x220]
mov ecx, dword [ebp - 0x224]
call fcn.0040791a
mov esi, eax
jmp 0x4081f3
Function at 0x4087e3
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x44000c]
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 0x408849
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.00415d04
leave
ret

Function at 0x408dd5
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x44000c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp edi, 0x80000003
jne 0x408e02
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00415d04
leave
ret
push esi
push 0x802
lea eax, [ebp - 0x808]
push 0
push eax
call fcn.00416a60
mov esi, dword [0x441e64]
lea ecx, [ebp - 0x80c]
xor edx, edx
call fcn.00404cb3
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.00401622
lea ecx, [ebp - 0x808]
call fcn.0040966d
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 0x408e96
sub eax, 1
jne 0x408e8e
int3
xor eax, eax
inc eax
jmp 0x408df5
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40966d
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 0x4096dc
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 0x4096b8
push ebx
push edi
push eax
call fcn.00416bc0
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 0x4096d3
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 0x40a6de
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 0x40a856
mov ecx, dword [esi + 0x14]
sub ecx, 0x10
call fcn.0040180c
and dword [ebp - 0x20], 0
and dword [ebp - 0x1c], 0
lea edi, [eax + 0x10]
mov ecx, edi
mov dword [ebp - 4], edi
call fcn.00404f5a
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 0x40a74a
call fcn.00408ac6
jmp 0x40a76d
push eax
push eax
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x40a763
call fcn.00408ac6
mov dword [ebp - 0xc], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
test eax, eax
jns 0x40a78a
lea ecx, [ebp - 8]
call fcn.0040440f
push esi
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.0040acbe
jmp 0x40a840
call fcn.00405947
xor ecx, ecx
or ecx, dword [ebp - 0x20]
sub eax, ecx
sbb edx, dword [ebp - 0x1c]
cmp edx, 0xc9
jb 0x40a838
ja 0x40a7b2
cmp eax, 0x2a69c000
jb 0x40a838
lea ecx, [ebp - 0x10]
call fcn.00401692
lea edx, [ebp - 0x10]
lea ecx, [ebp - 4]
call fcn.00410dbe
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.0040440f
push esi
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.0040acbe
movzx ecx, byte [0x441e69]
neg ecx
sbb ecx, ecx
and ecx, 0x441e70
je 0x40a82e
xor eax, eax
mov dword [ebp - 0x30], ecx
inc eax
mov dword [ebp - 0x2c], 7
push eax
push ecx
mov dword [ebp - 0x28], eax
call fcn.00406496
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.00403139
add esp, 0x10
lea ecx, [edi - 0x10]
call fcn.00401622
jmp 0x40a840
lea ecx, [ebp - 8]
call fcn.0040440f
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.00401622
mov esi, dword [ebp - 8]
cmp esi, dword [ebx]
jne 0x40a6f9
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40bcd1
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 0x40bd27
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.0040b120
mov esi, dword [ebp - 8]
cmp byte [esi + 0xd], 0
jne 0x40bd22
cmp ebx, dword [esi + 0x10]
jb 0x40bd22
cmp esi, dword [edi]
jne 0x40bd30
sub ebx, dword [ebp - 0x4c]
jne 0x40bcfe
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
push 7
add esi, 0x14
lea edi, [ebp - 0x2c]
pop ecx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x20]
add ecx, ebx
cmp ecx, dword [ebp + 8]
jbe 0x40bd27
mov eax, ebx
jmp 0x40bd29

Function at 0x40c045
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, 0x78
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x74]
push 9
pop ecx
xor eax, eax
mov dword [ebp - 4], esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x30]
and dword [esi + 8], eax
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [ebp - 0x30]
push eax
push 0
jmp 0x40c14b
cmp dword [ebp - 0x20], 0x1000
jne 0x40c13c
push 7
pop ecx
lea esi, [ebp - 0x30]
lea edi, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 4]
lea eax, [ebp - 8]
mov edi, dword [ebp - 0x30]
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 8], edi
push eax
lea ecx, [esi + 0xc]
call fcn.0040b120
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0xd], 0
jne 0x40c0d1
cmp edi, dword [eax + 0x10]
jae 0x40c119
cmp dword [esi + 0x10], 0x5555555
je 0x40c168
mov esi, dword [esi + 0xc]
push 0x30
call fcn.0042a39c
mov edx, eax
mov eax, dword [ebp - 8]
pop ecx
push 7
pop ecx
mov dword [edx + 0x10], eax
lea edi, [edx + 0x14]
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 4]
push edx
push dword [ebp - 0x10]
mov dword [edx], esi
push dword [ebp - 0x14]
mov dword [edx + 4], esi
lea ecx, [ecx + 0xc]
mov dword [edx + 8], esi
mov word [edx + 0xc], ax
call fcn.00409449
push 7
lea edi, [eax + 0x14]
pop ecx
lea esi, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
test byte [ebp - 0x1c], 0x70
je 0x40c13c
mov ecx, dword [ebp - 0x24]
xor edx, edx
mov eax, ecx
div dword [ebp - 0x70]
mov edx, dword [ebp - 4]
add dword [edx + 8], eax
jmp 0x40c13f
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x30]
add eax, ecx
lea ecx, [ebp - 0x30]
push 0x1c
push ecx
push eax
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp eax, 0x1c
je 0x40c092
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.00409320
int3
Function at 0x40e7ce
Capabilities:
Create pipe

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x84], edi
jne 0x40e86b
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 0x40e86b
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x9c], eax
test eax, eax
je 0x40e86b
push 4
push 0xffffffffffffffff
push esi
push 0x40ef8f
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x40e86b
lea eax, [esi + 0x20]
cmp dword [eax + 0x14], 8
jb 0x40e836
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 0x40e86b
push dword [esi + 0x9c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x40e871
mov dword [esi + 0x84], ebx
xor al, al
pop edi
pop esi
pop ebx
ret
mov al, bl
jmp 0x40e86d

Function at 0x40e97d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
push 0x2c
push ebx
mov dword [ebp - 8], ebx
lea esi, [edi + 0xa0]
push esi
call fcn.00416a60
add esp, 0xc
lea eax, [edi + 0x8c]
push eax
lea eax, [ebp - 8]
push eax
push 0x2c
push esi
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne cl
mov byte [ebp - 1], cl
test eax, eax
jne 0x40e9cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov cl, byte [ebp - 1]
mov ebx, eax
test cl, cl
jne 0x40e9e3
cmp ebx, 0x3e5
je 0x40e9e3
push 0xa
mov ecx, edi
call fcn.0040ec1c
jmp 0x40e9ed
mov dword [edi + 0x84], 5
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4107f0
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 0x4108a9
mov esi, ecx
call dword [sym.imp.USER32.dll_EnumWindows]
lea ecx, [esp + 0xc]
call fcn.00401692
push dword [ebp + 0xc]
lea eax, [esp + 0x10]
push dword [ebp + 8]
push str._s_s.dmp
push eax
call fcn.004085d3
lea ecx, [esp + 0x1c]
call fcn.00408998
mov bl, byte [esp + 0x1b]
lea eax, [esp + 0x1c]
mov dl, byte [esi]
mov cl, bl
push 0
push eax
call fcn.00410f91
add esp, 0x18
cmp byte [esi + 1], 0
je 0x410895
push dword [ebp + 0xc]
lea eax, [esp + 0x10]
push dword [ebp + 8]
push str._s_s_full.dmp
push eax
call fcn.004085d3
add esp, 0x10
lea ecx, [esp + 0xc]
call fcn.00408998
mov ecx, dword [esp + 0xc]
call fcn.00404f1e
test al, al
je 0x410895
mov dl, byte [esi]
lea eax, [esp + 0xc]
push 0
push eax
mov cl, bl
call fcn.00410f91
pop ecx
pop ecx
mov ecx, dword [esp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00401622
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x410be9
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x18], edx
mov bl, cl
call fcn.00411c4a
test bl, bl
je 0x410c41
lea ecx, [ebp - 0xc]
call fcn.00401692
lea eax, [ebp - 0xc]
push eax
xor eax, eax
lea ecx, [ebp - 0x10]
inc eax
push eax
push str.BraveSoftwareCrashReports
mov dword [ebp - 0x14], eax
call fcn.00404248
push 0x26
mov edx, eax
pop ecx
call fcn.00411548
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00401622
mov eax, dword [ebp - 0xc]
xor edi, edi
mov dword [ebp - 0x10], edi
jmp 0x410c82
lea ecx, [ebp - 8]
call fcn.00401692
lea eax, [ebp - 8]
push eax
push 1
push str.BraveSoftwareCrashReports
lea ecx, [ebp - 0x14]
call fcn.00404248
push 0x1c
mov edx, eax
pop ecx
call fcn.00411548
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401622
mov eax, dword [ebp - 8]
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 2
lea ecx, [eax - 0x10]
call fcn.0040180c
cmp dword [ebp - 0x10], 0
lea esi, [eax + 0x10]
mov dword [ebp - 4], esi
je 0x410ca1
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.00401622
cmp dword [ebp - 0x14], 0
je 0x410cb2
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.00401622
test bl, bl
je 0x410cd1
cmp dword [esi - 0xc], edi
je 0x410cd6
lea ecx, [ebp - 4]
call fcn.00410a5d
mov esi, dword [ebp - 4]
test eax, eax
jns 0x410cd1
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp dword [esi - 0xc], edi
jne 0x410d01
lea ecx, [ebp - 0x14]
call fcn.00404d3f
push eax
lea ecx, [ebp - 4]
call fcn.0040163a
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401622
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], edi
jne 0x410d01
mov edi, 0x8004fffc
jmp 0x410d13
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x410d13
lea ecx, [ebp - 4]
push ecx
mov ecx, eax
call fcn.0040163a
lea ecx, [esi - 0x10]
call fcn.00401622
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret