joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402f17
Capabilities:
Create directory
Get file attributes

Disassembly:
push 8
mov eax, 0x413c4c
call fcn.0041380a
and dword [ebp - 4], 0
call fcn.004015a8
push eax
lea ecx, [ebp - 0x10]
call fcn.00401b54
xor ebx, ebx
lea ecx, [ebp + 8]
push 0
inc ebx
push 0x3a
mov byte [ebp - 4], bl
call fcn.004035b9
mov edi, eax
test edi, edi
js 0x402f50
add edi, 2
push edi
push 0x5c
lea ecx, [ebp + 8]
call fcn.004035b9
mov edi, eax
test edi, edi
jns 0x402f6f
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.00403895
jmp 0x402f97
push edi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
call fcn.004034bd
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00403895
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401582
mov esi, dword [ebp - 0x10]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x402fb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402fc7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x402fc7
cmp edi, 0xffffffff
je 0x402fc9
inc edi
jmp 0x402f50
xor ebx, ebx
lea ecx, [esi - 0x10]
call fcn.00401582
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401582
mov eax, ebx
call fcn.004137d8
ret
Function at 0x403091
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
push edi
call fcn.004027b1
mov esi, eax
test esi, esi
je 0x40325b
push str.PdhOpenQueryW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.PdhAddCounterW
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.PdhCollectQueryData
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.PdhGetFormattedCounterValue
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.PdhRemoveCounter
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.PdhCloseQuery
push esi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40325b
mov esi, dword [esp + 0x20]
test esi, esi
je 0x40325b
test edi, edi
je 0x40325b
cmp dword [esp + 0x14], 0
je 0x40325b
cmp dword [esp + 0x1c], 0
je 0x40325b
test ebx, ebx
je 0x40325b
movsd xmm0, qword [0x418b68]
lea ecx, [esp + 0xc]
xor edx, edx
movsd qword [esp + 0x28], xmm0
push ecx
push edx
push edx
mov ecx, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
call dword [0x41636c]
mov eax, dword [esp + 0x24]
call eax
test eax, eax
jne 0x403225
lea eax, [esp + 0x10]
mov ecx, esi
push eax
push 0
push str.Processor__Total___Processor_Time
push dword [esp + 0x18]
call dword [0x41636c]
call esi
test eax, eax
jne 0x403225
push dword [esp + 0xc]
mov ecx, edi
call dword [0x41636c]
call edi
test eax, eax
jne 0x403225
xorps xmm0, xmm0
xor esi, esi
movsd qword [esp + 0x20], xmm0
push dword [esp + 0xc]
mov ecx, edi
call dword [0x41636c]
call edi
test eax, eax
jne 0x403225
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x30]
push eax
push 0
push 0x8200
push dword [esp + 0x1c]
call dword [0x41636c]
call dword [esp + 0x24]
test eax, eax
jne 0x403225
movsd xmm0, qword [esp + 0x38]
addsd xmm0, qword [esp + 0x20]
push 0x1f4
movsd qword [esp + 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xa
jl 0x4031ba
movsd xmm0, qword [esp + 0x20]
divsd xmm0, qword [0x418b60]
movsd qword [esp + 0x28], xmm0
cmp dword [esp + 0x10], 0
je 0x40323e
push dword [esp + 0x10]
mov esi, dword [esp + 0x20]
mov ecx, esi
call dword [0x41636c]
call esi
cmp dword [esp + 0xc], 0
je 0x403253
push dword [esp + 0xc]
mov ecx, ebx
call dword [0x41636c]
call ebx
movsd xmm0, qword [esp + 0x28]
jmp 0x40325e
xorps xmm0, xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405454
Capabilities:
Get process image filename

Disassembly:
push 0x21c
mov eax, 0x414189
call fcn.0041383d
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x220], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x224], ebx
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.00401bcc
add eax, 0x10
mov dword [edi], eax
push esi
push ebx
mov dword [ebp - 4], ebx
push 0x410
mov dword [ebp - 0x224], 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x405569
push 0x104
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
test eax, eax
je 0x405562
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00403932
mov dword [ebp - 4], 1
push 0x5c
push dword [ebp - 0x21c]
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x21c]
test ecx, ecx
je 0x405557
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x405557
mov eax, dword [eax - 0xc]
inc ecx
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00403502
mov dword [ebp - 0x224], 3
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 2
push eax
mov ecx, edi
call fcn.00403895
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx - 0x10]
call fcn.00401582
mov eax, dword [ebp - 0x21c]
lea ecx, [eax - 0x10]
mov byte [ebp - 4], bl
call fcn.00401582
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
call fcn.004137ec
ret
Function at 0x406cd6
Capabilities:
Get file size

Disassembly:
push 0x1c
mov eax, 0x414405
call fcn.0041380a
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
call fcn.004015a8
push eax
lea ecx, [ebp - 0x18]
call fcn.00401b54
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
mov ecx, dword [eax + 0x78]
mov eax, dword [ecx]
mov dword [ebp - 0x14], eax
cmp eax, ecx
je 0x406d85
push 0
lea ecx, [eax + 0x18]
call fcn.00401aac
push eax
lea ecx, [ebp - 0x10]
call fcn.00403932
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406d63
lea eax, [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push ebx
test eax, eax
je 0x406d5d
add edi, dword [ebp - 0x28]
adc esi, dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401582
lea ecx, [ebp - 0x14]
call fcn.00401b8d
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ecx + 0x78]
jne 0x406d11
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401582
mov eax, edi
mov edx, esi
call fcn.004137d8
ret 4

Function at 0x408370
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
test edx, edx
jne 0x408384
push 0xd
pop eax
jmp 0x4083c8
push esi
xor eax, eax
push edi
mov dword [ebp - 4], eax
mov esi, eax
mov edi, edx
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 8], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x408397
sub ecx, dword [ebp - 8]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x40838f
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4087cf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x41472e
call fcn.004138a9
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x40884c
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x40884c
call fcn.0040802b
mov esi, eax
jmp 0x408952
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x40886f
call fcn.0040802b
jmp 0x408945
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x408865
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x4088a2
mov esi, 0x8007000e
jmp 0x408947
push 2
pop ecx
mul ecx
mov byte [ebp - 4], cl
cmp edx, esi
ja 0x408975
jb 0x4088bd
cmp eax, 0xffffffff
ja 0x408975
cmp eax, 0x400
jbe 0x4088d2
push eax
lea ecx, [ebp - 0x418]
call fcn.0040a4fa
jmp 0x4088f4
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x4088f4
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
je 0x408898
push ebx
push dword [ebp - 0x418]
push ebx
push dword [ebp - 0x41c]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x408865
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00409438
mov esi, eax
test edi, edi
je 0x408952
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40896b
lea ecx, [ebp - 0x418]
call fcn.0040a4f0
mov eax, esi
call fcn.004137fb
ret 0x10
push 0x80070216
call fcn.004013a6
int3
Function at 0x40a1c8
Capabilities:
Accept command line arguments

Disassembly:
push 0xc
mov eax, 0x414850
call fcn.0041380a
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x10]
xor ebx, ebx
push ecx
push eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 0x10], 2
mov esi, eax
je 0x40a1fa
xor eax, eax
inc eax
jmp 0x40a2f1
mov eax, dword [esi + 4]
mov ecx, str._terminate
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40a228
test dx, dx
je 0x40a224
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40a228
add eax, 4
add ecx, 4
test dx, dx
jne 0x40a202
mov eax, ebx
jmp 0x40a22d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40a23b
call fcn.0040da3c
jmp 0x40a2f1
push dword [esi + 4]
lea ecx, [ebp - 0x14]
call fcn.00403932
mov dword [ebp - 4], ebx
mov edi, dword [0x41d73c]
test edi, edi
jne 0x40a277
push 0x1b0
call fcn.004127dc
pop ecx
mov dword [ebp - 0x18], eax
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040a6b5
mov edi, eax
mov byte [ebp - 4], bl
mov dword [0x41d73c], edi
push ebx
lea ecx, [ebp - 0x14]
call fcn.00401aac
push eax
mov ecx, edi
call fcn.0040a9e2
test eax, eax
jne 0x40a292
test edi, edi
je 0x40a2e4
jmp 0x40a2d2
mov ecx, edi
cmp dword [edi + 0x5c], ebx
je 0x40a29d
push 0x10
jmp 0x40a2c0
call fcn.0040ad55
cmp dword [edi + 0x48], ebx
je 0x40a2c5
push ecx
mov ecx, esp
push 0x416c40
call fcn.00403932
push ecx
mov ecx, edi
call fcn.0040ad1c
push 0xe
mov ecx, edi
call fcn.0040ab7c
mov ecx, edi
call fcn.0040ad55
mov ebx, dword [edi + 0x138]
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x41636c]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401582
mov eax, ebx
call fcn.004137d8
ret

Function at 0x40a2f7
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x41d00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x18]
xor esi, esi
push eax
push 0x28
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40a35e
push edi
lea eax, [ebp - 0x10]
xor edi, edi
push eax
push str.SeDebugPrivilege
inc edi
push esi
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x40a35d
push esi
push esi
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 2
push eax
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
cmovne esi, edi
pop edi
cmp dword [ebp - 0x18], 0
je 0x40a36d
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004125d0
leave
ret
Function at 0x40a9e2
Capabilities:
Check mutex on windows

Disassembly:
push 0x10
mov eax, 0x4148e2
call fcn.0041380a
mov ebx, ecx
lea esi, [ebx + 0x130]
push str.Unspecified_error___init.
mov ecx, esi
mov dword [ebp - 0x1c], esi
call fcn.00401a67
push dword [ebp + 8]
lea eax, [ebx + 8]
mov ecx, eax
mov dword [ebp - 0x18], eax
call fcn.00404f37
test eax, eax
je 0x40aa5c
mov ecx, dword [ebx + 0x12c]
sub ecx, 0x10
call fcn.00401bcc
add eax, 0x10
mov dword [ebp - 0x10], eax
xor edi, edi
lea ecx, [ebp - 0x10]
push edi
mov dword [ebp - 4], edi
call fcn.00401aac
push eax
push str.Error_reading_crash_info:__s
push esi
call fcn.00403c4c
mov ecx, dword [ebp - 0x10]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.00401582
xor eax, eax
jmp 0x40ab21
push dword [ebp + 8]
lea esi, [ebx + 0x1a4]
push 0x416ea0
push esi
call fcn.00403c4c
add esp, 0xc
call fcn.004015a8
push eax
lea ecx, [ebp - 0x10]
call fcn.00401b54
xor edi, edi
mov dword [ebp - 4], 1
push edi
mov ecx, esi
call fcn.00401aac
push eax
lea eax, [ebp - 0x10]
push str.LocalCrashRptEvent__s
push eax
call fcn.00403c4c
mov esi, dword [ebp - 0x10]
add esp, 0xc
push esi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edx, dword [ebx + 0x10]
lea ecx, [ebp - 0x14]
push str.RTLReading
push str.Settings
mov dword [ebx + 0x1a8], eax
call fcn.00402ca1
mov byte [ebp - 4], 2
push 0x417a84
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 0x10
test eax, eax
jne 0x40aaed
push 1
call dword [sym.imp.USER32.dll_SetProcessDefaultLayout]
cmp dword [ebx + 0x5c], edi
jne 0x40ab29
push 1
mov ecx, ebx
call fcn.0040ab7c
xor edi, edi
mov eax, str.Success.
inc edi
mov ecx, dword [ebp - 0x1c]
push eax
call fcn.00401a67
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401582
lea ecx, [esi - 0x10]
call fcn.00401582
mov eax, edi
call fcn.004137d8
ret 4
push 0x417a88
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40ab4a
mov eax, str.Another_CrashSender.exe_already_tries_to_resend_recent_reports.
jmp 0x40ab03
mov eax, dword [ebx + 0xfc]
mov ecx, 0x90
sub eax, dword [ebx + 0xf8]
cdq
idiv ecx
test eax, eax
jne 0x40ab69
mov eax, str.There_are_no_reports_for_us_to_send.
jmp 0x40ab03
mov ecx, dword [ebp - 0x18]
call fcn.00406be3
test eax, eax
jne 0x40aafb
mov eax, str.Not_enough_time_elapsed_to_remind_user_about_recent_crash_reports.
jmp 0x40ab03

Function at 0x40ab7c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esi + 0x18c], eax
xor eax, eax
push eax
push eax
push esi
push 0x40abc0
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [esi + 0x140], eax
test eax, eax
pop esi
setne cl
mov eax, ecx
pop ebp
ret 4
Function at 0x40d247
Capabilities:
Enumerate files on windows

Disassembly:
push 0x284
mov eax, 0x414e2f
call fcn.0041383d
mov dword [ebp - 0x264], ecx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x278], esi
call fcn.004015a8
push eax
lea ecx, [ebp - 0x274]
call fcn.00401b54
xor edi, edi
lea eax, [ebp - 0x274]
mov dword [ebp - 4], edi
push dword [esi + 4]
push str.Looking_for_files_using_search_template:__s
push eax
call fcn.00403c4c
mov eax, dword [ebp - 0x274]
add esp, 0xc
add eax, 0xfffffff0
push 1
push edi
push ecx
mov esi, esp
mov ecx, eax
mov dword [ebp - 0x270], esi
mov dword [ebp - 0x270], eax
call fcn.00401bcc
mov ecx, dword [ebp - 0x264]
add eax, 0x10
add ecx, 0x148
mov dword [esi], eax
call fcn.0040412b
mov esi, dword [ebp - 0x278]
lea eax, [ebp - 0x260]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x268], eax
cmp eax, 0xffffffff
jne 0x40d314
push 1
push edi
push ecx
mov ecx, esp
push str.Could_not_find_any_files_matching_the_search_template.
call fcn.00403932
mov ecx, dword [ebp - 0x264]
lea ecx, [ecx + 0x148]
call fcn.0040412b
jmp 0x40d46d
push 0x5c
lea ecx, [esi + 4]
call fcn.00403594
push eax
push edi
lea eax, [ebp - 0x26c]
push eax
lea ecx, [esi + 4]
call fcn.00403502
mov edi, dword [ebp - 0x264]
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x268]
lea ecx, [edi + 0x148]
call fcn.004041e0
test al, al
jne 0x40d455
test byte [ebp - 0x260], 0x10
jne 0x40d43f
push 0x416c08
lea edx, [ebp - 0x26c]
lea ecx, [ebp - 0x268]
call fcn.0040344c
pop ecx
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x268]
call fcn.00403802
lea ecx, [ebp - 0x290]
call fcn.00404663
lea eax, [ebp - 0x268]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x28c]
call fcn.00403895
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x290]
call fcn.00401a67
mov edi, dword [ebp - 0x278]
lea ecx, [ebp - 0x288]
lea eax, [edi + 8]
push eax
call fcn.00403895
mov eax, dword [edi + 0xc]
lea ecx, [ebp - 0x290]
mov dword [ebp - 0x284], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x280], eax
mov eax, dword [ebx + 4]
push ecx
cmp eax, dword [ebx + 8]
je 0x40d402
mov ecx, eax
call fcn.00407f12
add dword [ebx + 4], 0x18
jmp 0x40d40a
push eax
mov ecx, ebx
call fcn.0040dbe6
mov ecx, dword [ebp - 0x264]
lea eax, [ebp - 0x290]
push eax
call fcn.0040cd5d
lea ecx, [ebp - 0x290]
call fcn.0040628d
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x268]
lea ecx, [ecx - 0x10]
call fcn.00401582
mov edi, dword [ebp - 0x264]
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40d33f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x26c]
lea ecx, [ecx - 0x10]
call fcn.00401582
xor edi, edi
inc edi
mov ecx, dword [ebp - 0x270]
call fcn.00401582
mov eax, edi
call fcn.004137ec
ret 8
Function at 0x40da3c
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0x234
mov eax, 0x414ef0
call fcn.0041383d
call fcn.004015a8
push eax
lea ecx, [ebp - 0x240]
call fcn.00401b54
and dword [ebp - 4], 0
lea eax, [ebp - 0x240]
push 0x57b
push str.CrashSender_d.exe
push eax
call fcn.00403c4c
add esp, 0xc
mov dword [ebp - 0x23c], 0x22c
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
lea eax, [ebp - 0x23c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov esi, dword [ebp - 0x240]
cmp eax, 1
jne 0x40db01
jmp 0x40daee
lea eax, [ebp - 0x218]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x40daee
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x234], eax
je 0x40daee
push dword [ebp - 0x234]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push 1
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x23c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x40daaa
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi - 0x10]
call fcn.00401582
xor eax, eax
call fcn.004137ec
ret

Function at 0x410560
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov esi, ecx
call fcn.00410420
mov edi, dword [ebp + 8]
push 0
push 0
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetc]
add esp, 4
cmp eax, 0xffffffff
jne 0x4105a3
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
add esp, 4
test eax, eax
jne 0x41062d
push 2
push 0
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
add esp, 4
cdq
mov ebx, eax
mov dword [esp + 0xc], edx
push 0
push 0
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov edx, dword [esp + 0x18]
mov ecx, ebx
and ecx, edx
add esp, 0xc
cmp ecx, 0xffffffff
je 0x41062d
test edx, edx
jne 0x41062d
cmp ebx, 0xffffffff
jae 0x41062d
mov eax, ebx
or eax, edx
jne 0x4105f2
push eax
push eax
push 0xd
jmp 0x410633
lea eax, [ebx + 1]
push eax
call fcn.00412c95
add esp, 4
mov dword [esi + 0x50], eax
push edi
push ebx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, ebx
jne 0x41062d
mov eax, dword [esi + 0x50]
mov ecx, esi
mov byte [ebx + eax], 0
call fcn.00410830
mov eax, dword [esi + 0x38]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 5
push esi
call fcn.004106f0
mov eax, dword [esi + 0x38]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x410dc2
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp byte [esi + 4], 0
je 0x410df8
mov eax, dword [esi + 0x40]
mov byte [esi + 4], 0
test eax, eax
je 0x410de5
push eax
push 0x3e
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
jmp 0x410df8
push 1
lea ecx, [esi + 0xd0]
call fcn.004118d0
mov word [eax - 1], 0x3e
mov eax, dword [esi + 0x38]
lea ecx, [eax + 1]
cmp ecx, dword [esi + 0x34]
jle 0x410e51
lea ebx, [ecx + ecx]
mov edx, 4
xor ecx, ecx
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00412c95
mov ecx, dword [esi + 0x38]
mov edi, eax
shl ecx, 2
push ecx
push dword [esi + 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esi + 8]
lea eax, [esi + 0xc]
add esp, 0x10
cmp ecx, eax
je 0x410e46
push ecx
call fcn.00412c90
add esp, 4
mov eax, dword [esi + 0x38]
mov dword [esi + 8], edi
mov dword [esi + 0x34], ebx
jmp 0x410e54
mov edi, dword [esi + 8]
mov ebp, dword [esp + 0x14]
mov dword [edi + eax*4], ebp
inc dword [esi + 0x38]
cmp dword [esi + 0x48], 0
jge 0x410ea3
cmp byte [esi + 0x3c], 0
jne 0x410ea3
cmp byte [esp + 0x18], 0
jne 0x410ea3
mov eax, dword [esi + 0x40]
test eax, eax
je 0x410e86
push eax
push 0xa
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
jmp 0x410e99
push 1
lea ecx, [esi + 0xd0]
call fcn.004118d0
mov word [eax - 1], 0xa
mov eax, dword [esi]
mov ecx, esi
push dword [esi + 0x44]
call dword [eax + 0x2c]
mov eax, dword [esi + 0x40]
test eax, eax
je 0x410ebf
push eax
push 1
push 1
push 0x41888c
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
jmp 0x410eda
push 1
lea ecx, [esi + 0xd0]
call fcn.004118d0
lea ecx, [eax - 1]
mov al, byte [0x41888c]
mov byte [ecx], al
mov byte [ecx + 1], 0
mov ebx, ebp
lea ecx, [ebx + 1]
nop
mov al, byte [ebx]
inc ebx
test al, al
jne 0x410ee0
mov eax, dword [esi + 0x40]
sub ebx, ecx
test eax, eax
je 0x410f10
push eax
push ebx
push 1
push ebp
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
mov byte [esi + 4], 1
inc dword [esi + 0x44]
mov byte [esi + 0x3c], 0
pop edi
pop esi
pop ebp
pop ebx
ret 8
push ebx
lea ecx, [esi + 0xd0]
call fcn.004118d0
push ebx
push ebp
lea edi, [eax - 1]
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [ebx + edi], 0
inc dword [esi + 0x44]
mov byte [esi + 4], 1
mov byte [esi + 0x3c], 0
pop edi
pop esi
pop ebp
pop ebx
ret 8