joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48111a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [ecx + 0x60]
cmp eax, edx
jne 0x48112c
cmp dword [ecx + 0x24], 7
jbe 0x481139
mov ecx, dword [ecx + 0x10]
jmp fcn.0048113c
xor ecx, ecx
cmp eax, 1
sete cl
lea eax, [ecx + ecx*2 + 1]
ret
add ecx, 0x10

Function at 0x4814ff
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xd8
mov eax, dword [0x5599f4]
mov esi, ecx
xor eax, ebp
mov dword [esp + 0xd0], eax
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x481528
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x4815eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x481566
mov ecx, esi
call fcn.00481603
mov ecx, dword [esp + 0xd0]
mov ebx, eax
xor ecx, ebp
call fcn.004d4bc8
mov eax, ebx
jmp 0x4815fb
push 2
call fcn.004180d0
add esp, 4
test al, al
je 0x4815e9
call sub.KERNEL32.dll_GetLastError
mov ecx, esp
push eax
push 2
push 0x238
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.00419440
lea eax, [esp + 0x10]
push str.CreateDirectory
push eax
call fcn.004015c0
add esp, 8
mov ebx, eax
mov eax, dword [esi + 0x10]
cmp dword [esi + 0x14], 7
jbe 0x4815ac
mov esi, dword [esi]
lea edi, [esp + 0xb8]
push eax
push esi
push edi
call fcn.0041aa00
add esp, 0xc
mov eax, dword [edi + 0x10]
cmp dword [edi + 0x14], 0xf
mov ecx, edi
jbe 0x4815d0
mov ecx, dword [esp + 0xb8]
push eax
push ecx
push ebx
call fcn.00402d0a
add esp, 0xc
mov ecx, edi
call fcn.00401ae0
mov ecx, esp
call fcn.00419560
xor ebx, ebx
mov ecx, dword [esp + 0xd0]
xor ecx, ebp
call fcn.004d4bc8
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x481603
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xd8
mov eax, dword [0x5599f4]
mov esi, ecx
xor eax, ebp
mov dword [esp + 0xd0], eax
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x48162c
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4816da
mov bl, 1
test al, 0x10
jne 0x48175f
push 2
call fcn.004180d0
add esp, 4
test al, al
je 0x48175d
mov ecx, esp
push 2
push 0x226
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.00418160
lea eax, [esp + 8]
push str.GetFileAttributes
push eax
call fcn.004015c0
add esp, 8
mov ebx, eax
mov eax, dword [esi + 0x10]
cmp dword [esi + 0x14], 7
jbe 0x48168a
mov esi, dword [esi]
lea edi, [esp + 0xb8]
push eax
push esi
push edi
call fcn.0041aa00
add esp, 0xc
mov eax, dword [edi + 0x10]
cmp dword [edi + 0x14], 0xf
mov ecx, edi
jbe 0x4816ae
mov ecx, dword [esp + 0xb8]
push eax
push ecx
push ebx
call fcn.00402d0a
add esp, 0xc
push str.:_not_a_directory
push eax
call fcn.004015c0
add esp, 8
mov ecx, edi
call fcn.00401ae0
mov ecx, esp
call fcn.00417750
jmp 0x48175d
push 2
call fcn.004180d0
add esp, 4
test al, al
je 0x48175d
call sub.KERNEL32.dll_GetLastError
mov ecx, esp
push eax
push 2
push 0x222
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.00419440
lea eax, [esp + 0x10]
push str.GetFileAttributes
push eax
call fcn.004015c0
add esp, 8
mov ebx, eax
mov eax, dword [esi + 0x10]
cmp dword [esi + 0x14], 7
jbe 0x481720
mov esi, dword [esi]
lea edi, [esp + 0xb8]
push eax
push esi
push edi
call fcn.0041aa00
add esp, 0xc
mov eax, dword [edi + 0x10]
cmp dword [edi + 0x14], 0xf
mov ecx, edi
jbe 0x481744
mov ecx, dword [esp + 0xb8]
push eax
push ecx
push ebx
call fcn.00402d0a
add esp, 0xc
mov ecx, edi
call fcn.00401ae0
mov ecx, esp
call fcn.00419560
xor ebx, ebx
mov ecx, dword [esp + 0xd0]
xor ecx, ebp
call fcn.004d4bc8
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x482120
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc0
mov esi, dword [0x5599f4]
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 0x4821a8
xor eax, eax
dec eax
cmp dword [esp + 4], eax
mov dword [esp + 8], eax
jne 0x4821a2
lea eax, [esp + 8]
push str.bytes_written___static_cast_DWORD___1_
push eax
push esi
call fcn.00419780
add esp, 0xc
test eax, eax
je 0x4821a2
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.004185d0
mov ecx, esi
call fcn.00417750
mov esi, dword [esp + 4]
jmp 0x4821ab
xor esi, esi
dec esi
mov ecx, dword [esp + 0xbc]
xor ecx, ebp
call fcn.004d4bc8
mov eax, esi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
Function at 0x4821c2
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 [0x5599f4]
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 0x482252
mov ebx, dword [esp + 4]
xor eax, eax
dec eax
mov dword [esp + 8], eax
cmp ebx, eax
jne 0x48223c
push str.bytes_read___static_cast_DWORD___1_
lea ebx, [esp + 0xc]
push ebx
lea eax, [esp + 0xc]
push eax
call fcn.00419780
add esp, 0xc
test eax, eax
je 0x482238
mov ecx, ebx
push eax
push 0x7d
push str..._.._third_party_crashpad_crashpad_util_file_file_io_win.cc
call fcn.004185d0
mov ecx, ebx
call fcn.00417750
mov ebx, dword [esp + 4]
test ebx, ebx
jne 0x482278
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
jne 0x482274
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 0x4821f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x6d
setne bl
neg ebx
jmp 0x482278
mov ebx, dword [esp + 4]
mov ecx, dword [esp + 0xb8]
xor ecx, ebp
call fcn.004d4bc8
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4827b0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
and esp, 0xfffffff8
sub esp, 0xc0
mov eax, dword [0x5599f4]
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.004826da
add esp, 0x10
or edx, eax
jne 0x482832
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov bl, 1
test eax, eax
jne 0x482832
push 2
call fcn.004180d0
add esp, 4
test al, al
je 0x482830
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.00419440
lea eax, [esp + 0x10]
push 0x52aa03
push eax
call fcn.004015c0
add esp, 8
mov ecx, esi
call fcn.00419560
xor ebx, ebx
mov ecx, dword [esp + 0xbc]
xor ecx, ebp
call fcn.004d4bc8
mov eax, ebx
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret

Function at 0x4828d6
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc8
mov ecx, dword [0x5599f4]
mov eax, dword [ebp + 8]
xor ecx, ebp
mov dword [esp + 0xc4], ecx
mov ecx, esp
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x48290d
mov esi, dword [esp]
mov edi, dword [esp + 4]
jmp 0x48295b
xor esi, esi
dec esi
push 2
call fcn.004180d0
add esp, 4
test al, al
mov edi, esi
je 0x48295b
call sub.KERNEL32.dll_GetLastError
lea esi, [esp + 8]
mov ecx, esi
push eax
push 2
push 0x102
push str..._.._third_party_crashpad_crashpad_util_file_file_io_win.cc
call fcn.00419440
lea eax, [esp + 0x18]
push 0x52aa1c
push eax
call fcn.004015c0
add esp, 8
mov ecx, esi
call fcn.00419560
xor esi, esi
dec esi
mov edi, esi
mov ecx, dword [esp + 0xc4]
xor ecx, ebp
call fcn.004d4bc8
mov eax, esi
mov edx, edi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
Function at 0x489690
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
call fcn.0049f360
test al, al
je 0x4896b4
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.00489702
lea ecx, [esi + 0x30]
call fcn.004871d2
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x4896d8
push eax
call fcn.0041dcb0
add esp, 4
mov ecx, edi
call fcn.00489726
lea ecx, [esi + 0x18]
call fcn.0041b0d0
lea ecx, [esi + 0x14]
call fcn.0041b0d0
lea ecx, [esi + 0x10]
call fcn.0041b0d0
mov ecx, esi
pop esi
pop edi
pop ebp
jmp fcn.0049f270
Function at 0x489af0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [0x5599f4]
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.004024a8
mov esi, dword [edi + 0x18]
xor ecx, ecx
inc ecx
lea eax, [esi + 1]
cmp eax, ecx
ja 0x489b5f
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.004d4bc8
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 0x489c88
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 0x489c9b
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
test ebx, ebx
je 0x489be2
test ecx, ecx
je 0x489be2
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x18]
lea edi, [edx + eax]
push ecx
push ebx
push edi
call fcn.004d7b40
add esp, 0xc
mov eax, 0xffffff00
mov ecx, dword [edi + eax + 0x100]
test ecx, ecx
je 0x489bdd
sub ecx, ebx
mov dword [edi + eax + 0x100], ecx
add eax, 4
jne 0x489bc9
mov eax, dword [ebp - 0x14]
mov dword [0x55c320], eax
sub esp, 0xc
mov edi, dword [ebp - 0x20]
mov dword [esp + 8], 4
mov dword [esp + 4], 0x55c320
mov ecx, edi
call fcn.00489a92
mov ebx, eax
mov dword [0x55c320], 0
test ebx, ebx
jne 0x489c7b
mov eax, dword [ebp + 0x10]
mov dword [0x55c3bc], eax
sub esp, 0xc
mov ecx, edi
mov dword [esp + 8], 4
mov dword [esp + 4], 0x55c3bc
call fcn.00489a92
mov ebx, eax
mov dword [0x55c3bc], 0
test ebx, ebx
jne 0x489c7b
mov eax, dword [ebp + 0x14]
mov dword [0x55c3c0], eax
sub esp, 0xc
mov ecx, edi
mov dword [esp + 8], 4
mov dword [esp + 4], 0x55c3c0
call fcn.00489a92
mov ebx, eax
mov dword [0x55c3c0], 0
test ebx, ebx
je 0x489cad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
jmp 0x489b49
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov ebx, 0x1a
jmp 0x489b47
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov ebx, 0x1b
jmp 0x489b49
mov esi, dword [ebp + 8]
lea eax, [edi + 0x20]
mov dword [ebp - 0x1c], eax
push 0x1c
call fcn.004d4bd9
add esp, 4
mov ebx, eax
mov ecx, ebx
push esi
push dword [edi + 0x24]
push dword [edi + 8]
push dword [edi]
call fcn.004940f4
mov ecx, dword [ebp - 0x1c]
push ebx
call fcn.00489702
mov ecx, dword [edi + 0x20]
push 0x400
push dword [ebp + 0x10]
push dword [ebp - 0x18]
call fcn.004941d4
mov ebx, 4
test al, al
je 0x489b49
mov ecx, edi
call fcn.0049f4f0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
jmp 0x489b49
Function at 0x48cae8
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
mov eax, dword [0x5599f4]
mov esi, ecx
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [esi + 0x2c], 0
je 0x48cbc5
lea eax, [ebp - 0x58]
lea edi, [ebp - 0x5c]
lea edx, [esi + 0x24]
mov ecx, edi
push eax
push 2
call fcn.0048cbe5
add esp, 8
mov eax, dword [edi]
test eax, eax
je 0x48cbcc
cmp dword [eax], 0
mov dword [ebp - 0x64], esi
mov esi, eax
je 0x48cbb8
add dword [ebp - 0x64], 0x18
xor eax, eax
test dword [esi + eax*8 + 8], 0xc0000020
mov dword [ebp - 0x60], eax
jne 0x48cbb0
cmp dword [ebp + 8], 0
je 0x48cb96
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp dword [eax + 4], ecx
je 0x48cb96
xor edi, edi
xor ebx, ebx
mov eax, dword [ebp - 0x60]
add ecx, edi
mov eax, dword [esi + eax*8 + 4]
mov dword [ebp - 0x68], eax
call fcn.0049f5c0
push dword [ebp - 0x68]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x48cbb0
mov eax, dword [ebp + 8]
inc ebx
add edi, 0x44
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 2
imul eax, eax, 0xf0f0f0f1
cmp ebx, eax
jb 0x48cb5c
mov eax, dword [ebp - 0x60]
lea edi, [ebp - 0x54]
mov ecx, edi
push dword [esi + eax*8 + 4]
call fcn.0048d050
mov ecx, dword [ebp - 0x64]
push edi
call fcn.00488268
mov eax, dword [ebp - 0x60]
inc eax
cmp eax, dword [esi]
jb 0x48cb3b
push esi
call fcn.004d4c17
add esp, 4
xor esi, esi
jmp 0x48cbcf
mov esi, 0x3f0
jmp 0x48cbcf
mov esi, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d4bc8
mov eax, esi
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x4911f2
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov ecx, dword [0x5599f4]
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 0x491286
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 0x491233
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 esi, 0xffffffff
je 0x491276
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 0x491279
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.004d4bc8
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4915b0
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 [0x5599f4]
mov edi, 5
lea ecx, [ecx - 5]
xor eax, ebp
cmp ecx, 1
mov dword [ebp - 0x10], eax
ja 0x491704
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 0x491622
mov eax, dword [eax]
mov ebx, dword [ebp + 0x10]
push eax
call fcn.004ea489
add esp, 4
mov edx, 7
mov ecx, dword [esi + 0x10]
cmp dword [esi + 0x14], edx
jbe 0x49163d
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 0x491654
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 0x4916f4
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
mov eax, esi
je 0x4916ed
add eax, 4
cmp dword [ebp + 8], 6
mov esi, 0x100c43
mov ecx, 0x1fffff
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 0x4916f4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x491704
push eax
call fcn.0041dcb0
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d4bc8
mov eax, edi
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x491718
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 [edi]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
test esi, esi
je 0x491789
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 0x4934e6
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 [0x5599f4]
mov al, byte [ebp + 8]
mov ebx, ecx
xor edx, ebp
test al, al
mov dword [esp + 0xc8], edx
je 0x493540
xor esi, esi
mov edi, str.ntdll.dll
mov ecx, ebx
inc esi
push 0
push 0x4982f0
push esi
push str.NtMapViewOfSection
push edi
call fcn.00492fce
mov ecx, ebx
push esi
push 0x498450
push esi
push str.NtUnmapViewOfSection
push edi
call fcn.00492fce
jmp 0x49354a
cmp dword [ebx + 8], 0
je 0x49366d
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.00492e6c
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 edi, edi
jne 0x4935d9
lea esi, [esp + 0x18]
mov ecx, esi
push str.thunk_base
push 0x1a8
push str..._.._sandbox_win_src_interception.cc
call fcn.00417610
mov ecx, esi
call fcn.00417750
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 0x55c420
call fcn.004d7460
add esp, 0xc
mov ecx, dword [esp + 0xc]
push esi
push ebx
push edi
call fcn.00493862
mov ebx, eax
test ebx, ebx
jne 0x49366f
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 0x49366f
cmp dword [esp + 0x14], 0x10
jne 0x49366f
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 0x55c420
push str.g_originals
call fcn.00489a92
mov ebx, eax
jmp 0x49366f
xor ebx, ebx
mov ecx, dword [esp + 0xc8]
xor ecx, ebp
call fcn.004d4bc8
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x49c66c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, edx
mov esi, ecx
xor ebx, ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
push ebx
push edi
push ebx
push 0x8000004
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, esi
push eax
call fcn.004024a8
mov eax, dword [esi]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x49c6af
push edi
push ebx
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 4], eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4acab9
Capabilities:
Check os version
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x5599f4]
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 0x4acaff
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xfe
cmp eax, 6
jb 0x4acaff
lea edi, [ebp - 0x1c]
mov dword [edi], 0xc
mov dword [edi + 4], 0x54fda4
mov dword [edi + 8], 1
movzx eax, bl
shl eax, 0x13
or eax, 3
cmp dword [esi + 0x14], 7
jbe 0x4acb10
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.004d4bc8
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4acb3c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
and esp, 0xfffffff8
sub esp, 0xc0
mov eax, dword [0x5599f4]
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 0x4acbec
and eax, 0xfeff
cmp eax, 6
je 0x4acbec
mov eax, dword [0x55d890]
mov ecx, dword [0x55c508]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 8]
jg 0x4acc0c
push 0x10000000
push 0
push esi
call dword [0x55d88c]
mov bl, 1
test eax, eax
jne 0x4acbf5
push 2
call fcn.004180d0
add esp, 4
test al, al
je 0x4acbe8
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.00419440
lea eax, [esp + 0x10]
push str.InitializeCriticalSectionEx
push eax
call fcn.004015c0
add esp, 8
mov ecx, esi
call fcn.00419560
xor ebx, ebx
jmp 0x4acbf5
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov bl, 1
mov ecx, dword [esp + 0xbc]
xor ecx, ebp
call fcn.004d4bc8
mov eax, ebx
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret
push 0x55d890
call fcn.004d51fb
add esp, 4
mov eax, dword [0x55d890]
cmp eax, 0xffffffff
jne 0x4acb95
push 1
push str.::InitializeCriticalSectionEx
push 0x50ff6e
call fcn.004acd28
add esp, 0xc
mov dword [0x55d88c], eax
push 0x55d890
call fcn.004d51bc
add esp, 4
jmp 0x4acb95
Function at 0x4afbf0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0xc0
mov eax, dword [0x5599f4]
mov esi, ecx
xor eax, ebp
mov dword [esp + 0xb8], eax
xor eax, eax
push eax
push eax
push esi
push 0x4afc80
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 4], eax
jne 0x4afc65
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.00419440
lea eax, [esp + 0x10]
push str.Check_failed:_platform_thread_.
push eax
call fcn.004015c0
add esp, 8
push 0x52c9c9
push eax
call fcn.004015c0
add esp, 8
mov ecx, esi
call fcn.00419560
mov ecx, dword [esp + 0xb8]
xor ecx, ebp
call fcn.004d4bc8
lea esp, [ebp - 4]
pop esi
pop ebp
ret