joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4854fc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
call fcn.0046ba10
test al, al
je 0x485520
push 0x32
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea edi, [esi + 0x20]
mov ecx, edi
push 0
call fcn.0048556e
lea ecx, [esi + 0x30]
call fcn.0045c166
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x485544
push eax
call fcn.00429ca0
add esp, 4
mov ecx, edi
call fcn.00485592
lea ecx, [esi + 0x18]
call fcn.004024d0
lea ecx, [esi + 0x14]
call fcn.004024d0
lea ecx, [esi + 0x10]
call fcn.004024d0
mov ecx, esi
pop esi
pop edi
pop ebp
jmp fcn.0046b920
Function at 0x48595c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [0x54c03c]
mov edi, ecx
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
lea ebx, [edi + 0x18]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [edx + ecx]
xor ecx, ecx
push ecx
push eax
push ecx
push 0x8000004
push ecx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, ebx
push eax
call fcn.00402480
mov esi, dword [edi + 0x18]
xor ecx, ecx
inc ecx
lea eax, [esi + 1]
cmp eax, ecx
ja 0x4859cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov ebx, 0x19
mov dword [ecx], eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d45c8
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
mov dword [ebp - 0x20], edi
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
lea ecx, [ebp - 0x14]
push edx
push edx
push 7
push ecx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x485af4
xor eax, eax
push eax
push eax
push eax
push 6
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, dword [ebp + 0x18]
test eax, eax
je 0x485b07
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
test ebx, ebx
je 0x485a4e
test ecx, ecx
je 0x485a4e
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x18]
lea edi, [edx + eax]
push ecx
push ebx
push edi
call fcn.004d9f90
add esp, 0xc
mov eax, 0xffffff00
mov ecx, dword [edi + eax + 0x100]
test ecx, ecx
je 0x485a49
sub ecx, ebx
mov dword [edi + eax + 0x100], ecx
add eax, 4
jne 0x485a35
mov eax, dword [ebp - 0x14]
mov dword [0x55138c], eax
sub esp, 0xc
mov edi, dword [ebp - 0x20]
mov dword [esp + 8], 4
mov dword [esp + 4], 0x55138c
mov ecx, edi
call fcn.004858fe
mov ebx, eax
test eax, eax
mov dword [0x55138c], 0
jne 0x485ae7
mov eax, dword [ebp + 0x10]
mov dword [0x551e54], eax
sub esp, 0xc
mov ecx, edi
mov dword [esp + 8], 4
mov dword [esp + 4], 0x551e54
call fcn.004858fe
mov ebx, eax
test eax, eax
mov dword [0x551e54], 0
jne 0x485ae7
mov eax, dword [ebp + 0x14]
mov dword [0x551e58], eax
sub esp, 0xc
mov ecx, edi
mov dword [esp + 8], 4
mov dword [esp + 4], 0x551e58
call fcn.004858fe
mov ebx, eax
test eax, eax
mov dword [0x551e58], 0
je 0x485b19
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
jmp 0x4859b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov ebx, 0x1a
jmp 0x4859b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov ebx, 0x1b
jmp 0x4859b5
mov esi, dword [ebp + 8]
lea eax, [edi + 0x20]
mov dword [ebp - 0x1c], eax
push 0x1c
call fcn.004d4554
add esp, 4
mov ebx, eax
mov ecx, eax
push esi
push dword [edi + 0x24]
push dword [edi + 8]
push dword [edi]
call fcn.004a5948
mov ecx, dword [ebp - 0x1c]
push ebx
call fcn.0048556e
mov ecx, dword [edi + 0x20]
push 0x400
push dword [ebp + 0x10]
push dword [ebp - 0x18]
call fcn.004a5a2a
mov ebx, 4
test al, al
je 0x4859b5
mov ecx, edi
call fcn.0046bba0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
jmp 0x4859b5
Function at 0x48d73c
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push ebx
push edi
push esi
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + 0x3c]
movzx edx, word [ecx + eax + 6]
test edx, edx
je 0x48d785
add eax, ecx
mov esi, dword [esp + 0x14]
xor ebx, ebx
movzx edi, word [eax + 0x14]
lea edi, [eax + edi + 0x18]
xor eax, eax
test edi, edi
je 0x48d78b
mov ebp, dword [edi + 0xc]
test ebp, ebp
je 0x48d774
add ebp, ecx
cmp ebp, esi
jbe 0x48d776
jmp 0x48d77d
xor ebp, ebp
add ebp, dword [edi + 8]
cmp ebp, esi
ja 0x48d789
inc ebx
add edi, 0x28
cmp ebx, edx
jb 0x48d761
xor eax, eax
jmp 0x48d78b
mov eax, edi
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x48d81e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov edi, dword [ebp + 0xc]
mov ebx, ecx
test edi, edi
je 0x48d8e3
mov edx, dword [ebx + 4]
mov eax, dword [ebx]
mov ecx, ebx
mov esi, dword [edx + 0x3c]
push dword [edx + esi + 0x78]
call dword [eax + 4]
mov esi, eax
test eax, eax
je 0x48d8e3
mov eax, dword [ebp + 8]
cmp eax, 0xffff
ja 0x48d861
mov word [edi], ax
jmp 0x48d908
mov eax, dword [ebx]
mov ecx, ebx
push dword [esi + 0x20]
call dword [eax + 4]
mov edi, eax
mov eax, dword [esi + 0x18]
lea ecx, [eax*4]
test ecx, ecx
je 0x48d8e3
mov dword [ebp - 0x18], esi
lea esi, [edi + eax*4]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edi
inc eax
mov dword [ebp - 0x1c], eax
mov ebx, esi
mov ecx, dword [ebp - 0x10]
sub ebx, edi
mov eax, ebx
shr ebx, 0x1f
sar eax, 2
add ebx, eax
mov eax, dword [ecx]
and ebx, 0x7ffffffe
push dword [edi + ebx*2]
call dword [eax + 4]
mov ecx, dword [ebp + 8]
mov cl, byte [ecx]
test cl, cl
je 0x48d8c5
mov edx, dword [ebp - 0x1c]
cmp cl, byte [eax]
jne 0x48d8c7
mov cl, byte [edx]
inc eax
inc edx
test cl, cl
jne 0x48d8b9
xor ecx, ecx
movzx eax, byte [eax]
movzx ecx, cl
lea ebx, [edi + ebx*2]
sub ecx, eax
je 0x48d8e7
test ecx, ecx
lea eax, [ebx + 4]
cmovle esi, ebx
cmovg edi, eax
cmp edi, esi
jne 0x48d88e
xor eax, eax
jmp 0x48d90a
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
mov eax, dword [ecx]
push dword [esi + 0x24]
call dword [eax + 4]
sub ebx, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
sar ebx, 1
movzx eax, word [eax + ebx]
add ax, word [esi + 0x10]
mov word [ecx], ax
mov al, 1
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x494e7d
Capabilities:
Check os version
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x54c03c]
mov bl, byte [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
xor eax, ebp
test bl, bl
mov dword [ebp - 0x10], eax
je 0x494ec3
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xfe
cmp eax, 6
jb 0x494ec3
lea edi, [ebp - 0x1c]
mov dword [edi], 0xc
mov dword [edi + 4], 0x50ee1c
mov dword [edi + 8], 1
movzx eax, bl
shl eax, 0x13
or eax, 3
cmp dword [esi + 0x14], 7
jbe 0x494ed4
mov esi, dword [esi]
mov ecx, 0x200
push edi
push 0
push ecx
push ecx
push 2
push 6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov ecx, dword [ebp - 0x10]
mov esi, eax
xor ecx, ebp
call fcn.004d45c8
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x494f00
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
and esp, 0xfffffff8
sub esp, 0xc0
mov eax, dword [0x54c03c]
mov esi, dword [ebp + 8]
xor eax, ebp
mov dword [esp + 0xbc], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, eax
and ecx, 0xfe
cmp ecx, 6
jb 0x494fb0
and eax, 0xfeff
cmp eax, 6
je 0x494fb0
mov eax, dword [0x551f64]
mov ecx, dword [0x54fa0c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x494fd0
push 0x10000000
push 0
push esi
call dword [0x551f60]
mov bl, 1
test eax, eax
jne 0x494fb9
push 2
call fcn.00414940
add esp, 4
test al, al
je 0x494fac
call sub.KERNEL32.dll_GetLastError
mov esi, esp
mov ecx, esi
push eax
push 2
push 0x21
push str..._.._third_party_crashpad_crashpad_util_win_critical_section_with_debug_info.cc
call fcn.00415cc0
lea eax, [esp + 0x10]
push str.InitializeCriticalSectionEx
push eax
call fcn.004015c0
add esp, 8
mov ecx, esi
call fcn.00415de0
xor ebx, ebx
jmp 0x494fb9
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov bl, 1
mov ecx, dword [esp + 0xbc]
xor ecx, ebp
call fcn.004d45c8
mov eax, ebx
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret
push 0x551f64
call fcn.004d4600
add esp, 4
mov eax, dword [0x551f64]
cmp eax, 0xffffffff
jne 0x494f59
push 1
push str.::InitializeCriticalSectionEx
push 0x4ff240
call fcn.004950ec
add esp, 0xc
mov dword [0x551f60], eax
push 0x551f64
call fcn.004d4652
add esp, 4
jmp 0x494f59
Function at 0x49810c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc0
mov esi, dword [0x54c03c]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edi, 0x7fffffff
xor esi, ebp
cmp edx, edi
mov dword [esp + 0xbc], esi
lea esi, [esp + 4]
cmovb edi, edx
push 0
push esi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x498194
xor eax, eax
dec eax
cmp dword [esp + 4], eax
mov dword [esp + 8], eax
jne 0x49818e
lea eax, [esp + 8]
push str.bytes_written___static_cast_DWORD___1_
push eax
push esi
call fcn.00416170
add esp, 0xc
test eax, eax
je 0x49818e
lea esi, [esp + 8]
mov ecx, esi
push eax
push 0x64
push str..._.._third_party_crashpad_crashpad_util_file_file_io_win.cc
call fcn.00414e60
mov ecx, esi
call fcn.00413fc0
mov esi, dword [esp + 4]
jmp 0x498197
xor esi, esi
dec esi
mov ecx, dword [esp + 0xbc]
xor ecx, ebp
call fcn.004d45c8
mov eax, esi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret

Function at 0x4981ae
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc0
mov ecx, dword [0x54c03c]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov edi, 0x7fffffff
xor ecx, ebp
cmp eax, edi
cmovb edi, eax
lea eax, [esp + 4]
mov dword [esp + 0xb8], ecx
push 0
jmp 0x49823e
mov ebx, dword [esp + 4]
xor eax, eax
dec eax
mov dword [esp + 8], eax
cmp ebx, eax
jne 0x498228
push str.bytes_read___static_cast_DWORD___1_
lea ebx, [esp + 0xc]
push ebx
lea eax, [esp + 0xc]
push eax
call fcn.00416170
add esp, 0xc
test eax, eax
je 0x498224
mov ecx, ebx
push eax
push 0x7d
push str..._.._third_party_crashpad_crashpad_util_file_file_io_win.cc
call fcn.00414e60
mov ecx, ebx
call fcn.00413fc0
mov ebx, dword [esp + 4]
test ebx, ebx
jne 0x498264
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
jne 0x498260
push 0
lea eax, [esp + 8]
push eax
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4981e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x6d
setne bl
neg ebx
jmp 0x498264
mov ebx, dword [esp + 4]
mov ecx, dword [esp + 0xb8]
xor ecx, ebp
call fcn.004d45c8
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x49879c
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
and esp, 0xfffffff8
sub esp, 0xc0
mov eax, dword [0x54c03c]
mov esi, dword [ebp + 8]
xor ebx, ebx
xor eax, ebp
mov dword [esp + 0xbc], eax
push ebx
push ebx
push ebx
push esi
call fcn.004986c6
add esp, 0x10
or edx, eax
jne 0x49881e
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov bl, 1
test eax, eax
jne 0x49881e
push 2
call fcn.00414940
add esp, 4
test al, al
je 0x49881c
call sub.KERNEL32.dll_GetLastError
mov esi, esp
mov ecx, esi
push eax
push 2
push 0xf3
push str..._.._third_party_crashpad_crashpad_util_file_file_io_win.cc
call fcn.00415cc0
lea eax, [esp + 0x10]
push 0x50f8f2
push eax
call fcn.004015c0
add esp, 8
mov ecx, esi
call fcn.00415de0
xor ebx, ebx
mov ecx, dword [esp + 0xbc]
xor ecx, ebp
call fcn.004d45c8
mov eax, ebx
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret

Function at 0x49fa7c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0xc0
mov eax, dword [0x54c03c]
mov esi, ecx
xor eax, ebp
mov dword [esp + 0xb8], eax
xor eax, eax
push eax
push eax
push ecx
push 0x49fb06
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 4], eax
jne 0x49faf1
call sub.KERNEL32.dll_GetLastError
mov esi, esp
mov ecx, esi
push eax
push 3
push 0x19
push str..._.._third_party_crashpad_crashpad_util_thread_thread_win.cc
call fcn.00415cc0
lea eax, [esp + 0x10]
push str.Check_failed:_platform_thread_.
push eax
call fcn.004015c0
add esp, 8
push 0x50be64
push eax
call fcn.004015c0
add esp, 8
mov ecx, esi
call fcn.00415de0
mov ecx, dword [esp + 0xb8]
xor ecx, ebp
call fcn.004d45c8
lea esp, [ebp - 4]
pop esi
pop ebp
ret

Function at 0x4a2ad2
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov ecx, dword [0x54c03c]
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x2c]
mov esi, 5
xor ecx, ebp
cmp eax, 3
mov dword [ebp - 0x10], ecx
mov dword [edi], 0xffffffff
jne 0x4a2b66
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0x28]
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
cmp dword [eax + 0x14], 7
jbe 0x4a2b13
mov eax, dword [eax]
mov ebx, dword [ebx]
push 0
push esi
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov esi, eax
cmp eax, 0xffffffff
je 0x4a2b56
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor ecx, ecx
lea edx, [ebp - 0x14]
push 3
push ecx
push ecx
push edx
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
cmp eax, 1
lea ecx, [ebp - 0x14]
sbb eax, eax
or eax, dword [ecx]
jmp 0x4a2b59
xor eax, eax
dec eax
xor ecx, ecx
cmp eax, 0xffffffff
mov dword [edi], eax
sete cl
lea esi, [ecx + ecx*4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d45c8
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4a2e90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov ecx, dword [ebp + 8]
mov eax, dword [0x54c03c]
mov edi, 5
lea ecx, [ecx - 5]
xor eax, ebp
cmp ecx, 1
mov dword [ebp - 0x10], eax
ja 0x4a2fe4
mov eax, dword [ebp + 0x14]
xor edi, edi
mov ecx, 7
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x54], 0x44
cmp dword [eax + 0x14], ecx
jbe 0x4a2f02
mov eax, dword [eax]
mov ebx, dword [ebp + 0x10]
push eax
call fcn.004e699a
add esp, 4
mov edx, 7
mov ecx, dword [esi + 0x10]
cmp dword [esi + 0x14], edx
jbe 0x4a2f1d
mov esi, dword [esi]
test ecx, ecx
mov edx, dword [ebp + 0x1c]
cmove esi, ecx
mov ecx, 7
cmp dword [ebx + 0x14], ecx
mov ecx, dword [ebp + 0xc]
jbe 0x4a2f34
mov ebx, dword [ebx]
mov ecx, dword [ecx]
mov dword [ebp - 0x5c], ecx
lea ecx, [ebp - 0x54]
push edx
push ecx
push esi
push edi
push edi
push edi
push edi
push edi
mov dword [ebp - 0x58], eax
push eax
push ebx
mov esi, edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, 5
test eax, eax
je 0x4a2fd4
mov eax, dword [ebp + 8]
mov ebx, 0x101c01
cmp eax, 6
mov eax, 0x1fffff
cmove ebx, eax
mov eax, dword [esi]
mov dword [ebp - 0x60], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 1
push 0
push ebx
push esi
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ebx, dword [esi + 4]
test eax, eax
je 0x4a2fcd
mov eax, esi
mov esi, 0x100c43
mov ecx, 0x1fffff
add eax, 4
cmp dword [ebp + 8], 6
mov edi, eax
cmove esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 1
push 0
push esi
push edi
push dword [ebp - 0x5c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea edi, [ecx + ecx*4]
jmp 0x4a2fd4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x4a2fe4
push eax
call fcn.00429ca0
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d45c8
mov eax, edi
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4a2ff8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x20]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x14], ecx
xor ecx, ecx
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x10], ebx
mov dword [ebx], ecx
xor ebx, ebx
push edi
mov edi, eax
push esi
push edx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
test eax, eax
je 0x4a3069
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 3
push ebx
push ebx
push dword [ebp - 0x10]
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea eax, [ecx + ecx*4]
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x4a4da2
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xd0
mov edx, dword [0x54c03c]
mov al, byte [ebp + 8]
mov ebx, ecx
xor edx, ebp
test al, al
mov dword [esp + 0xc8], edx
je 0x4a4dfc
xor esi, esi
mov edi, 0x51098c
mov ecx, ebx
inc esi
push 0
push 0x4b499c
push esi
push str.NtMapViewOfSection
push edi
call fcn.004a4894
mov ecx, ebx
push esi
push 0x4b4b87
push esi
push str.NtUnmapViewOfSection
push edi
call fcn.004a4894
jmp 0x4a4e06
cmp dword [ebx + 8], 0
je 0x4a4f29
mov eax, dword [ebx]
mov edi, dword [eax]
push 1
push 0x2000
push 0x10000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, dword [ebx + 8]
mov dword [esp + 4], eax
shl esi, 6
lea eax, [esi + 0x50]
mov dword [esp + 8], eax
push eax
call fcn.004a4730
add esp, 4
mov dword [esp + 0xc], ebx
mov ebx, eax
and eax, 0xfffff000
add esi, 0x104f
add eax, dword [esp + 4]
and ebx, 0xfff
and esi, 0xfffff000
push 0x40
push 0x1000
push esi
push eax
mov dword [esp + 0x14], edi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test eax, eax
jne 0x4a4e95
lea esi, [esp + 0x18]
mov ecx, esi
push str.thunk_base
push 0x1a8
push str..._.._sandbox_win_src_interception.cc
call fcn.00413e80
mov ecx, esi
call fcn.00413fc0
add edi, ebx
mov ebx, dword [esp + 8]
lea esi, [esp + 0x18]
xor eax, eax
mov dword [esi], ebx
mov dword [esi + 0xc], eax
mov dword [esi + 4], 0x10
push 0xa4
push eax
push 0x552270
call fcn.004daa90
add esp, 0xc
mov ecx, dword [esp + 0xc]
push esi
push ebx
push edi
call fcn.004a5118
mov ebx, eax
test eax, eax
jne 0x4a4f2b
lea eax, [esp + 0x14]
push eax
push 0x10
push esi
push edi
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
mov ebx, 0x2a
je 0x4a4f2b
cmp dword [esp + 0x14], 0x10
jne 0x4a4f2b
lea eax, [esp + 0x10]
push eax
push 0x20
push dword [esp + 0x10]
push edi
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push 0xa4
push 0x552270
push str.g_originals
call fcn.004858fe
mov ebx, eax
jmp 0x4a4f2b
xor ebx, ebx
mov ecx, dword [esp + 0xc8]
xor ecx, ebp
call fcn.004d45c8
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x4a8274
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xe0
mov eax, dword [0x54c03c]
mov edi, dword [ebp + 8]
xor eax, ebp
mov dword [esp + 0xd8], eax
mov eax, edi
cmp dword [edi + 0x14], 7
jbe 0x4a829e
mov eax, dword [edi]
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test eax, eax
je 0x4a8316
push esi
call fcn.004d45ba
add esp, 4
cmp dword [edi + 0x14], 7
mov ebx, eax
mov eax, edi
jbe 0x4a82c1
mov eax, dword [edi]
push ebx
push esi
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
mov dword [esp], ebx
je 0x4a83b2
lea eax, [esp + 4]
lea ecx, [esp + 0xc0]
push eax
push ecx
push 0x4fe8f6
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4a8437
mov eax, dword [ebp + 0xc]
mov esi, dword [esp + 0xc0]
mov ecx, 0xd
mov bl, 1
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x18]
and dword [eax + 0x1c], ecx
jmp 0x4a847a
push 1
call fcn.00414940
add esp, 4
test al, al
je 0x4a83ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x715
je 0x4a83ab
call sub.KERNEL32.dll_GetLastError
lea ecx, [esp + 8]
push eax
push 1
push 0x1f
push str..._.._third_party_crashpad_crashpad_util_win_module_version.cc
call fcn.00415cc0
lea eax, [esp + 0x18]
push str.GetFileVersionInfoSize:
push eax
call fcn.004015c0
add esp, 8
mov esi, eax
mov eax, dword [edi + 0x10]
cmp dword [edi + 0x14], 7
jbe 0x4a836c
mov edi, dword [edi]
lea ebx, [esp + 0xc0]
push eax
push edi
push ebx
call fcn.004209d0
add esp, 0xc
mov eax, dword [ebx + 0x10]
cmp dword [ebx + 0x14], 0xf
mov ecx, ebx
jbe 0x4a8390
mov ecx, dword [esp + 0xc0]
push eax
push ecx
push esi
call fcn.00402d73
add esp, 0xc
mov ecx, ebx
call fcn.00401b04
lea ecx, [esp + 8]
call fcn.00415de0
xor ebx, ebx
jmp 0x4a8485
push 1
call fcn.00414940
add esp, 4
test al, al
je 0x4a8478
call sub.KERNEL32.dll_GetLastError
lea ecx, [esp + 8]
push eax
push 1
push 0x26
push str..._.._third_party_crashpad_crashpad_util_win_module_version.cc
call fcn.00415cc0
lea eax, [esp + 0x18]
push str.GetFileVersionInfo:
push eax
call fcn.004015c0
add esp, 8
mov esi, eax
mov eax, dword [edi + 0x10]
cmp dword [edi + 0x14], 7
jbe 0x4a83fb
mov edi, dword [edi]
lea ebx, [esp + 0xc0]
push eax
push edi
push ebx
call fcn.004209d0
add esp, 0xc
mov eax, dword [ebx + 0x10]
cmp dword [ebx + 0x14], 0xf
mov ecx, ebx
jbe 0x4a841f
mov ecx, dword [esp + 0xc0]
push eax
push ecx
push esi
call fcn.00402d73
add esp, 0xc
mov ecx, ebx
call fcn.00401b04
lea ecx, [esp + 8]
jmp 0x4a8473
push 1
call fcn.00414940
add esp, 4
test al, al
je 0x4a8478
call sub.KERNEL32.dll_GetLastError
lea esi, [esp + 8]
mov ecx, esi
push eax
push 1
push 0x31
push str..._.._third_party_crashpad_crashpad_util_win_module_version.cc
call fcn.00415cc0
lea eax, [esp + 0x18]
push str.VerQueryValue
push eax
call fcn.004015c0
add esp, 8
mov ecx, esi
call fcn.00415de0
xor ebx, ebx
push dword [esp]
call fcn.004d45c3
add esp, 4
mov ecx, dword [esp + 0xd8]
xor ecx, ebp
call fcn.004d45c8
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4a8a44
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
and esp, 0xfffffff8
sub esp, 0xe0
mov eax, dword [0x54c03c]
lea esi, [esp + 4]
xor eax, ebp
mov dword [esp + 0xdc], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esi + 0x14], 0x100
jb 0x4a8ab2
push 1
call fcn.00414940
add esp, 4
test al, al
je 0x4a8ab2
lea esi, [esp + 0x28]
mov ecx, esi
push 1
push 0xa1
push str..._.._third_party_crashpad_crashpad_snapshot_win_system_snapshot_win.cc
call fcn.004149d0
lea eax, [esp + 0x30]
push str.dwNumberOfProcessors_exceeds_uint8_t_storage
push eax
call fcn.004015c0
add esp, 8
mov ecx, esi
call fcn.00413fc0
mov ebx, dword [esp + 0x18]
cmp ebx, 0x100
jb 0x4a8ac0
mov bl, 0xff
mov ecx, dword [esp + 0xdc]
xor ecx, ebp
call fcn.004d45c8
mov eax, ebx
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret