joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405438
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.004056f6
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405477
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x7a1f88], eax
jmp 0x405601
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405491
test eax, eax
je 0x4055af
test bl, 2
je 0x4055af
mov esi, 0x79f500
push edi
push esi
call fcn.00405b78
cmp dword [ebp + 8], 0
je 0x4054b0
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4054b6
push edi
call fcn.0040564f
cmp byte [edi], 0
jne 0x4054c4
cmp byte [0x79f500], 0x5c
jne 0x4054cf
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4055a5
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405633
cmp byte [eax], 0
je 0x405515
cmp byte [ebp - 0x1c], 0
je 0x405515
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x40552b
mov al, byte [esi + 1]
test al, al
je 0x405584
cmp al, 0x2e
jne 0x40552b
cmp byte [esi + 2], 0
je 0x405584
push esi
push ebx
call fcn.00405b78
test byte [ebp - 0x14c], 0x10
je 0x405550
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405584
push dword [ebp + 0xc]
push edi
call fcn.00405438
jmp 0x405584
push dword [ebp - 4]
push edi
call fcn.004053f0
test eax, eax
jne 0x40557c
cmp dword [ebp - 4], eax
je 0x405574
push edi
push 0xfffffffffffffff1
call fcn.00404e63
push 0
push edi
call fcn.00405a2c
jmp 0x405584
inc dword [0x7a1f88]
jmp 0x405584
push edi
push 0xfffffffffffffff2
call fcn.00404e63
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4054f3
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4055af
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405601
cmp dword [ebp - 0xc], esi
jne 0x4055c3
inc dword [0x7a1f88]
jmp 0x405601
push edi
call fcn.00405e7c
test eax, eax
je 0x405601
push edi
call fcn.00405608
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004053f0
test eax, eax
jne 0x4055f9
cmp dword [ebp - 4], esi
je 0x4055bb
push edi
push 0xfffffffffffffff1
call fcn.00404e63
push esi
push edi
call fcn.00405a2c
jmp 0x405601
push edi
push 0xffffffffffffffe5
call fcn.00404e63
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4056f6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x79f900
push esi
call fcn.00405b78
push esi
call fcn.004056a1
mov edi, eax
test edi, edi
jne 0x405717
xor eax, eax
jmp 0x405769
push edi
call fcn.00405de3
test byte [0x7a1f18], 0x80
je 0x405730
mov al, byte [edi]
test al, al
je 0x405713
cmp al, 0x5c
je 0x405713
sub edi, esi
jmp 0x405748
call fcn.00405e7c
test eax, eax
je 0x405742
test byte [eax], 0x10
je 0x405713
push esi
call fcn.0040564f
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405734
call fcn.00405608
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4057e4
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405803
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x405809
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405838
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x409368]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x40587d
test edi, edi
jne 0x405843
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405877
Function at 0x4058b0
Capabilities:
Get file size
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, 0x7a0288
push 0x409384
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
mov ebx, 0x400
je 0x4058ff
push 1
push 0
push esi
call fcn.00405809
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
push esi
call ebp
test eax, eax
je 0x405a26
cmp eax, ebx
jg 0x405a26
mov esi, 0x7a0688
push ebx
push esi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x405a26
cmp eax, ebx
jg 0x405a26
push esi
push edi
push str._s_s_r_n
push 0x79fe88
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x7a1f10]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405b9a
push 4
push 0xc0000000
push esi
call fcn.00405809
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x405a26
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405a1f
push edi
push esi
push ebp
call fcn.00405881
test eax, eax
je 0x405a1f
push str._Rename__r_n
push esi
call fcn.0040576e
test eax, eax
jne 0x4059b5
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4059ea
add eax, 0xa
push 0x40936c
push eax
call fcn.0040576e
mov ebp, eax
test ebp, ebp
je 0x4059e6
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4059d7
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4059d1
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x1c]
jmp 0x4059ec
mov ebp, dword [esp + 0x1c]
mov eax, edi
push ebx
add eax, esi
push 0x79fe88
push eax
call fcn.004057c4
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x405a5f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405ad0
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405abf
cmp dword [ebp + 0x14], 1
je 0x405ac1
cmp dword [ebp + 0x14], 2
je 0x405ac1
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405f15
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a0a8c], 0
push esi
jne 0x405f4c
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f26
mov dword [ecx*4 + 0x7a0a88], eax
inc ecx
cmp ecx, 0x100
jl 0x405f21
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f7d
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a0a88]
xor eax, esi
inc ecx
dec edx
jne 0x405f5f
pop edi
not eax
pop esi
ret 0xc
Function at 0x4015e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x4017e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x416a04], 0xffffffff
mov dword [0x416a08], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x4169a8]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x4169a4]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x416a0c], ecx
call fcn.004017d0
mov eax, dword [0x415188]
test eax, eax
jne 0x401671
push 0x4017c0
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.004017a0
push 0x41500c
push 0x415008
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x4169a0]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [0x41699c]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x415004
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT.dll___p__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x40177f
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x4016e5
cmp al, 0x22
jne 0x4016d7
cmp byte [esi], 0x22
jne 0x4016ee
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x4016fe
cmp al, 0x20
ja 0x4016fe
inc esi
mov dword [ebp - 0x74], esi
jmp 0x4016ee
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x40171f
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x401724
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x401764
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x4016ee
inc esi
mov dword [ebp - 0x74], esi
jmp 0x40177f
Function at 0x411360
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2988
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x53602c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.004100f0
mov dword [edi], vtable.crashpad::MinidumpHandleDataWriter.0
xorps xmm0, xmm0
movups xmmword [edi + 0x30], xmm0
mov dword [ebp - 4], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
lea esi, [edi + 0x4c]
mov byte [ebp - 4], 1
push 0x2c
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0047ceb2
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41a940
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3980
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x53602c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov edx, dword [ebp + 8]
push 0x10
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edx + 4]
mov dword [edi + 0x34], eax
mov esi, dword [edx]
call fcn.0047ceb2
xorps xmm0, xmm0
mov dword [ebp - 0x10], eax
add esp, 4
movups xmmword [eax], xmm0
mov dword [eax + 4], vtable.crashpad::MemorySnapshot::Delegate.0
mov dword [eax], vtable.crashpad::MinidumpUserStreamWriter::SnapshotContentsWriter.0
mov dword [eax + 4], vtable.crashpad::MinidumpUserStreamWriter::SnapshotContentsWriter.1.0
mov dword [eax + 8], esi
mov dword [eax + 0xc], 0
mov ecx, dword [edi + 0x30]
mov dword [edi + 0x30], eax
test ecx, ecx
je 0x41a9ba
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x41a9e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f39ad
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x53602c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
push 0x10
mov dword [ebp - 4], 0
mov eax, dword [eax + 4]
mov dword [esi + 0x34], eax
call fcn.0047ceb2
xorps xmm0, xmm0
mov dword [ebp - 0x10], eax
add esp, 4
movups xmmword [eax], xmm0
mov ecx, dword [ebp + 8]
mov dword [ebp + 8], 0
mov dword [eax + 4], vtable.crashpad::MinidumpUserExtensionStreamDataSource::Delegate.0
mov dword [eax], vtable.crashpad::MinidumpUserStreamWriter::ExtensionStreamContentsWriter.0
mov dword [eax + 4], vtable.crashpad::MinidumpUserStreamWriter::ExtensionStreamContentsWriter.1.0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], 0
mov ecx, dword [esi + 0x30]
mov dword [esi + 0x30], eax
test ecx, ecx
je 0x41aa61
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x41aa6e
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x423960
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f491f
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x53602c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi], vtable.crashpad::ProcessSnapshotMinidump.0
xorps xmm0, xmm0
movups xmmword [edi + 4], xmm0
mov dword [ebp - 4], 0
movups xmmword [edi + 0x14], xmm0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
lea esi, [edi + 0x30]
mov byte [ebp - 4], 1
push 0x18
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0047ceb2
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0
mov dword [edi + 0x84], 0
mov dword [edi + 0x88], 0
push 0x30
lea eax, [edi + 0x90]
mov byte [ebp - 4], 9
push 0
push eax
mov dword [edi + 0x8c], 0
call fcn.0047fb50
add esp, 0x10
lea ecx, [edi + 0xc0]
call fcn.0042d7d0
lea ecx, [edi + 0x130]
mov byte [ebp - 4], 0xa
call fcn.0042bd10
lea esi, [edi + 0x208]
mov dword [edi + 0x204], 0
push 0x40
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0047ceb2
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
xorps xmm0, xmm0
mov eax, edi
movups xmmword [edi + 0x210], xmm0
mov dword [edi + 0x220], 0
mov dword [edi + 0x224], 0xf
mov byte [edi + 0x210], 0
mov dword [edi + 0x228], 0
mov dword [edi + 0x22c], 0
mov dword [edi + 0x230], 0
mov dword [edi + 0x234], 0
mov dword [edi + 0x238], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4334b0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f6941
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x53602c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x38], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x20]
cmp ecx, 0xff
jbe 0x433543
push 1
push 0x10a
push str.E:.conan709e391_sourcesexternalcrashpad_snapshotwin_system_snapshot_win.cc
push str.unsigned_char___thiscall_crashpad::internal::SystemSnapshotWin::CPUCount_void__const
lea ecx, [ebp - 0xe0]
call fcn.00452b50
push str.dwNumberOfProcessors_exceeds_uint8_t_storage
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], 1
call fcn.004012f0
add esp, 8
lea ecx, [ebp - 0xe0]
call fcn.00452d70
mov ecx, dword [ebp - 0x20]
cmp ecx, 0xff
setbe dl
movzx ecx, cl
test dl, dl
mov eax, 0xff
cmovne eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047d116
mov esp, ebp
pop ebp
ret
Function at 0x433570
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f6991
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x53602c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x44], 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xff
jbe 0x433610
push 1
push 0x10a
push str.E:.conan709e391_sourcesexternalcrashpad_snapshotwin_system_snapshot_win.cc
push str.unsigned_char___thiscall_crashpad::internal::SystemSnapshotWin::CPUCount_void__const
lea ecx, [ebp - 0xf4]
call fcn.00452b50
push str.dwNumberOfProcessors_exceeds_uint8_t_storage
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x44], 1
call fcn.004012f0
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.00452d70
mov ecx, dword [ebp - 0x2c]
mov eax, 0xff
cmp ecx, eax
cmovbe eax, ecx
xor ecx, ecx
movzx eax, al
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
lea esi, [eax + eax*2]
shl esi, 3
test eax, eax
je 0x43368f
cmp esi, 0x1000
jb 0x433663
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x433748
push eax
call fcn.0047ceb2
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x43374d
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x433674
test esi, esi
je 0x433672
push esi
call fcn.0047ceb2
add esp, 4
jmp 0x433674
xor eax, eax
push esi
lea edi, [eax + esi]
mov dword [ebp - 0x1c], eax
push 0
push eax
mov dword [ebp - 0x14], edi
call fcn.0047fb50
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
mov dword [ebp - 0x18], edi
push esi
push ecx
push 0
push 0
push 0xb
call sub.POWRPROF.dll_CallNtPowerInformation
test eax, eax
je 0x4336bd
xorps xmm0, xmm0
mov dword [ebx], 0
movlpd qword [ebp - 0x48], xmm0
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x48]
mov dword [ebx + 4], 0
jmp 0x43371a
mov esi, dword [ebp - 0x1c]
mov eax, esi
mov edi, dword [ebp - 0x18]
cmp eax, edi
je 0x4336e0
lea edx, [eax + 0x18]
cmp edx, edi
je 0x4336e0
mov ecx, dword [eax + 8]
cmp ecx, dword [edx + 8]
cmovb eax, edx
add edx, 0x18
cmp edx, edi
jne 0x4336d0
mov eax, dword [eax + 8]
mov ecx, 0xf4240
mul ecx
mov dword [ebx], eax
mov dword [ebx + 4], edx
cmp esi, edi
je 0x433715
lea eax, [esi + 0x18]
cmp eax, edi
je 0x433715
nop word [eax + eax]
mov ecx, dword [esi + 4]
cmp ecx, dword [eax + 4]
cmovb esi, eax
add eax, 0x18
cmp eax, edi
jne 0x433700
mov ecx, 0xf4240
mov eax, dword [esi + 4]
mul ecx
mov ecx, dword [ebp - 0x4c]
mov dword [ecx], eax
mov dword [ecx + 4], edx
lea ecx, [ebp - 0x1c]
call fcn.00434600
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047d116
mov esp, ebp
pop ebp
ret 8
call fcn.00406c90
call fcn.0048c040
int3
Function at 0x43a1c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f7985
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x53602c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
lea ecx, [edi + 0x18]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], 0
call fcn.0044d460
lea ecx, [ebp - 0x50]
push ecx
push 0
push 0x40
push edx
push eax
mov ecx, edi
call fcn.0043b510
test al, al
jne 0x43a27d
push 1
push 0x154
push str.E:.conan709e391_sourcesexternalcrashpad_snapshotwinpe_image_reader.cc
push str.bool___thiscall_crashpad::PEImageReader::ReadNtHeaders_struct__IMAGE_NT_HEADERS__struct__IMAGE_NT_HEADERS__unsigned___int64___const
lea ecx, [ebp - 0x104]
call fcn.00452b50
mov dword [ebp - 4], 0
mov dword [ebp - 0x54], 1
push str.could_not_read_dos_header_from
push eax
call fcn.004012f0
mov ecx, dword [edi + 0x10]
add esp, 8
cmp dword [edi + 0x14], 0x10
jb 0x43a260
mov edi, dword [edi]
push ecx
push edi
push eax
call fcn.00402280
add esp, 0xc
lea ecx, [ebp - 0x104]
call fcn.00452d70
xor al, al
jmp 0x43a386
mov eax, 0x5a4d
cmp word [ebp - 0x50], ax
je 0x43a2b9
push 1
push 0x15a
push str.E:.conan709e391_sourcesexternalcrashpad_snapshotwinpe_image_reader.cc
push str.bool___thiscall_crashpad::PEImageReader::ReadNtHeaders_struct__IMAGE_NT_HEADERS__struct__IMAGE_NT_HEADERS__unsigned___int64___const
lea ecx, [ebp - 0x104]
call fcn.00452b50
mov dword [ebp - 4], 1
mov dword [ebp - 0x54], 2
push str.invalid_e_magic_in_dos_header_of
jmp 0x43a24c
lea ecx, [edi + 0x18]
call fcn.0044d460
mov ecx, eax
mov esi, edx
mov eax, dword [ebp - 0x14]
cdq
add eax, ecx
mov ecx, edi
mov dword [ebp - 0x54], eax
adc edx, esi
mov esi, dword [ebp - 0x58]
push esi
push 0
push 0xf8
push edx
push eax
mov dword [ebp - 0x5c], edx
call fcn.0043b510
test al, al
jne 0x43a31f
push 1
push 0x162
push str.E:.conan709e391_sourcesexternalcrashpad_snapshotwinpe_image_reader.cc
push str.bool___thiscall_crashpad::PEImageReader::ReadNtHeaders_struct__IMAGE_NT_HEADERS__struct__IMAGE_NT_HEADERS__unsigned___int64___const
lea ecx, [ebp - 0x104]
call fcn.00452b50
mov dword [ebp - 4], 2
mov dword [ebp - 0x54], 4
push str.could_not_read_nt_headers_from
jmp 0x43a24c
cmp dword [esi], 0x4550
je 0x43a375
push 1
push 0x168
push str.E:.conan709e391_sourcesexternalcrashpad_snapshotwinpe_image_reader.cc
push str.bool___thiscall_crashpad::PEImageReader::ReadNtHeaders_struct__IMAGE_NT_HEADERS__struct__IMAGE_NT_HEADERS__unsigned___int64___const
lea ecx, [ebp - 0x1ac]
call fcn.00452b50
push str.invalid_signature_in_nt_headers_of
push eax
mov dword [ebp - 4], 3
mov dword [ebp - 0x54], 8
call fcn.004012f0
push edi
push eax
call fcn.004010d0
add esp, 0x10
lea ecx, [ebp - 0x1ac]
call fcn.00452d70
xor al, al
jmp 0x43a386
test ebx, ebx
je 0x43a384
mov eax, dword [ebp - 0x54]
mov dword [ebx], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebx + 4], eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047d116
mov esp, ebp
pop ebp
ret 8
Function at 0x44ec70
Capabilities:
Check os version
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x53602c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov bl, byte [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
test bl, bl
je 0x44ecb6
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x44ecb6
push edi
mov dword [ebp - 0x10], 0xc
call fcn.0044ed20
add esp, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 1
lea edi, [ebp - 0x10]
cmp dword [esi + 0x14], 8
jb 0x44ecbe
mov esi, dword [esi]
push edi
push 0
push 0x200
push 0x200
push 2
movzx eax, bl
shl eax, 0x13
push 6
or eax, 3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d116
mov esp, ebp
pop ebp
ret