joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b4e9d
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xbc
mov edi, dword [ebp + 8]
mov eax, dword [0x57ffac]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x4b4ec0
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x4b5028
cmp byte [ebp + 0x10], 0
je 0x4b4f92
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4b4f92
push 1
push edi
call fcn.004b4d92
add esp, 8
test al, al
jne 0x4b5028
push 2
call fcn.00424cb0
add esp, 4
test al, al
je 0x4b5026
lea ecx, [ebp - 0xc8]
push 2
push 0x5c
push str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
call fcn.00424d40
movzx eax, byte [edi + 0xb]
test al, al
jns 0x4b4f34
mov eax, dword [edi + 4]
mov edi, dword [edi]
lea esi, [ebp - 0xc0]
lea ebx, [ebp - 0x1c]
push eax
push edi
push ebx
call fcn.0042e290
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x4b4f56
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
push eax
push ebx
push esi
call fcn.00401b1f
add esp, 0xc
push 0x10
push str._not_a_directory
push eax
call fcn.00401b1f
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x4b4f82
push dword [ebp - 0x1c]
call fcn.004fe838
add esp, 4
lea ecx, [ebp - 0xc8]
call fcn.004250e0
jmp 0x4b5026
push 2
call fcn.00424cb0
add esp, 4
test al, al
je 0x4b5026
call fcn.00425620
lea ecx, [ebp - 0xc8]
push eax
push 2
push 0x61
push str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
call fcn.00425750
lea eax, [ebp - 0xc0]
push 0x10
push str.CreateDirectory
push eax
call fcn.00401b1f
add esp, 0xc
mov esi, eax
movzx eax, byte [edi + 0xb]
test al, al
jns 0x4b4fe3
mov eax, dword [edi + 4]
mov edi, dword [edi]
lea ebx, [ebp - 0x1c]
push eax
push edi
push ebx
call fcn.0042e290
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x4b4fff
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
push eax
push ebx
push esi
call fcn.00401b1f
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x4b501b
push dword [ebp - 0x1c]
call fcn.004fe838
add esp, 4
lea ecx, [ebp - 0xc8]
call fcn.00425800
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe871
mov eax, ebx
add esp, 0xbc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4b503f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xbc
mov edi, dword [ebp + 8]
mov eax, dword [0x57ffac]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x4b5062
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4b5087
test eax, 0x410
sete bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe871
mov eax, ebx
jmp 0x4b5136
push 2
call fcn.00424cb0
add esp, 4
test al, al
je 0x4b512a
call fcn.00425620
lea ecx, [ebp - 0xbc]
push eax
push 2
push 0x74
push str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
call fcn.00425750
lea eax, [ebp - 0xb4]
push 0x12
push str.GetFileAttributes
push eax
call fcn.00401b1f
add esp, 0xc
mov esi, eax
movzx eax, byte [edi + 0xb]
test al, al
jns 0x4b50d8
mov eax, dword [edi + 4]
mov edi, dword [edi]
lea ebx, [ebp - 0xc8]
push eax
push edi
push ebx
call fcn.0042e290
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x4b50fd
mov eax, dword [ebp - 0xc4]
mov ebx, dword [ebp - 0xc8]
push eax
push ebx
push esi
call fcn.00401b1f
add esp, 0xc
cmp byte [ebp - 0xbd], 0
jns 0x4b511f
push dword [ebp - 0xc8]
call fcn.004fe838
add esp, 4
lea ecx, [ebp - 0xbc]
call fcn.00425800
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe871
xor eax, eax
add esp, 0xbc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4b5141
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xbc
mov esi, dword [ebp + 8]
mov eax, dword [0x57ffac]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x4b5164
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4b5197
and eax, 0x410
cmp eax, 0x410
jne 0x4b5197
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe871
mov ecx, esi
add esp, 0xbc
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.004b5271
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x4b51a1
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov bl, 1
test eax, eax
jne 0x4b525a
push 2
call fcn.00424cb0
add esp, 4
test al, al
je 0x4b5258
call fcn.00425620
lea ecx, [ebp - 0xbc]
push eax
push 2
push 0x94
push str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
call fcn.00425750
lea eax, [ebp - 0xb4]
push 0xb
push str.DeleteFile
push eax
call fcn.00401b1f
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x4b5206
mov eax, dword [esi + 4]
mov esi, dword [esi]
lea ebx, [ebp - 0xc8]
push eax
push esi
push ebx
call fcn.0042e290
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x4b522b
mov eax, dword [ebp - 0xc4]
mov ebx, dword [ebp - 0xc8]
push eax
push ebx
push edi
call fcn.00401b1f
add esp, 0xc
cmp byte [ebp - 0xbd], 0
jns 0x4b524d
push dword [ebp - 0xc8]
call fcn.004fe838
add esp, 4
lea ecx, [ebp - 0xbc]
call fcn.00425800
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe871
mov eax, ebx
add esp, 0xbc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4b5271
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc0
mov edi, ecx
mov eax, dword [0x57ffac]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x4b5293
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test eax, eax
jne 0x4b5350
push 2
call fcn.00424cb0
add esp, 4
test al, al
je 0x4b5350
call fcn.00425620
lea ecx, [ebp - 0xbc]
push eax
push 2
push 0x2f
push str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
call fcn.00425750
lea eax, [ebp - 0xb4]
push 0x10
push str.RemoveDirectory
push eax
call fcn.00401b1f
add esp, 0xc
movzx ecx, byte [edi + 0xb]
test cl, cl
mov dword [ebp - 0xcc], eax
jns 0x4b52f9
mov ecx, dword [edi + 4]
mov edi, dword [edi]
lea ebx, [ebp - 0xc8]
push ecx
push edi
push ebx
call fcn.0042e290
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x4b531e
mov eax, dword [ebp - 0xc4]
mov ebx, dword [ebp - 0xc8]
push eax
push ebx
push dword [ebp - 0xcc]
call fcn.00401b1f
add esp, 0xc
cmp byte [ebp - 0xbd], 0
jns 0x4b5345
push dword [ebp - 0xc8]
call fcn.004fe838
add esp, 4
lea ecx, [ebp - 0xbc]
call fcn.00425800
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe871
mov eax, ebx
add esp, 0xc0
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4b5d88
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov esi, dword [0x57ffac]
xor esi, ebp
mov dword [ebp - 8], esi
mov esi, 0x7fffffff
cmp edx, esi
cmovb esi, edx
lea edx, [ebp - 0xc]
push 0
push edx
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4b5dcb
mov esi, dword [ebp - 0xc]
cmp esi, 0xffffffff
jne 0x4b5dce
int3
xor esi, esi
dec esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004fe871
mov eax, esi
add esp, 8
pop esi
pop ebp
ret

Function at 0x4b5de0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [0x57ffac]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
mov esi, 0x7fffffff
cmp eax, esi
cmovb esi, eax
lea eax, [ebp - 0x14]
push 0
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b5e46
mov eax, dword [sym.imp.KERNEL32.dll_GetFileType]
mov ebx, dword [ebp - 0x14]
test ebx, ebx
jne 0x4b5e58
push edi
mov ebx, eax
call eax
cmp eax, 3
jne 0x4b5e71
push 0
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov eax, ebx
jne 0x4b5e1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x6d
setne bl
neg ebx
jmp 0x4b5e5d
cmp ebx, 0xffffffff
je 0x4b5e76
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe871
mov eax, ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [ebp - 0x14]
jmp 0x4b5e5d
int3
Function at 0x4b641f
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0xb0
mov esi, dword [ebp + 8]
mov eax, dword [0x57ffac]
xor eax, ebp
mov dword [ebp - 0xc], eax
xor ebx, ebx
push ebx
push ebx
push ebx
push esi
call fcn.004b6334
add esp, 0x10
or edx, eax
jne 0x4b64a2
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov bl, 1
test eax, eax
jne 0x4b64a2
push 2
call fcn.00424cb0
add esp, 4
test al, al
je 0x4b64a0
call fcn.00425620
lea esi, [ebp - 0xb8]
mov ecx, esi
push eax
push 2
push 0xf4
push str..._.._third_party_crashpad_crashpad_util_file_file_io_win.cc
call fcn.00425750
lea eax, [ebp - 0xb0]
push 0xc
push 0x53f722
push eax
call fcn.00401b1f
add esp, 0xc
mov ecx, esi
call fcn.00425800
xor ebx, ebx
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004fe871
mov eax, ebx
add esp, 0xb0
pop esi
pop ebx
pop ebp
ret

Function at 0x4b6848
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b5141

Function at 0x4be8f8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 8
mov esi, ecx
mov eax, dword [0x57ffac]
xor eax, ebp
mov dword [ebp - 8], eax
xor eax, eax
push eax
push eax
push ecx
push 0x4be970
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
je 0x4be934
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004fe871
add esp, 8
pop esi
pop ebp
ret
lea esi, [ebp - 0xc]
push 0x1b
push str..._.._third_party_crashpad_crashpad_util_thread_thread_win.cc
push esi
call fcn.004b1770
add esp, 0xc
mov ecx, esi
call fcn.004b1740
push 0xc
push 0x53c2f2
push eax
call fcn.00401b1f
add esp, 0xc
mov ecx, esi
call fcn.004b1750
jmp 0x4be924

Function at 0x4c1052
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov edx, dword [ebp + 0x2c]
mov eax, dword [ebp + 8]
mov ecx, dword [0x57ffac]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
mov dword [edx], 0xffffffff
cmp eax, 3
jne 0x4c10d2
mov edx, dword [ebp + 0x28]
mov esi, dword [ebp + 0x10]
cmp byte [esi + 0xb], 0
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
jns 0x4c1091
mov esi, dword [esi]
mov ebx, dword [ebx]
push 0
push edx
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push ecx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp eax, 0xffffffff
je 0x4c10e3
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edi, edi
lea ecx, [ebp - 0x14]
push 3
push edi
push edi
push ecx
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
cmp eax, 1
sbb edi, edi
lea eax, [ebp - 0x14]
or edi, dword [eax]
jmp 0x4c10e6
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe871
mov eax, 5
jmp 0x4c1102
xor edi, edi
dec edi
mov eax, dword [ebp + 0x2c]
mov dword [eax], edi
xor eax, eax
cmp edi, 0xffffffff
sete al
lea esi, [eax + eax*4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe871
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4c1400
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 [0x57ffac]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ecx - 5]
mov edi, 5
cmp eax, 1
ja 0x4c1543
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x54], 0x44
cmp byte [eax + 0xb], 0
jns 0x4c144f
mov eax, dword [eax]
mov esi, dword [ebp + 0x10]
push eax
call fcn.0051326d
add esp, 4
movzx edx, byte [edi + 0xb]
test dl, dl
jns 0x4c1468
mov edx, dword [edi + 4]
mov edi, dword [edi]
mov ebx, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0xc]
test edx, edx
cmove edi, edx
cmp byte [esi + 0xb], 0
jns 0x4c147b
mov esi, dword [esi]
mov ecx, dword [ecx]
mov dword [ebp - 0x5c], ecx
sub esp, 0x28
mov dword [esp + 0x24], ebx
lea ecx, [ebp - 0x54]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edi
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
mov dword [ebp - 0x58], eax
mov dword [esp + 4], eax
mov dword [esp], esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, 5
test eax, eax
je 0x4c1533
mov eax, dword [ebp + 8]
cmp eax, 6
mov eax, 0x1fffff
mov esi, 0x101c01
cmove esi, eax
mov eax, dword [ebx]
mov dword [ebp - 0x60], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 1
push 0
push esi
push ebx
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x4c152a
cmp dword [ebp + 8], 6
mov esi, 0x100c43
mov eax, 0x1fffff
cmove esi, eax
mov edi, dword [ebx + 4]
add ebx, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 1
push 0
push esi
push ebx
push dword [ebp - 0x5c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea edi, [ecx + ecx*4]
jmp 0x4c1533
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x4c1543
push eax
call fcn.00435680
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe871
mov eax, edi
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4c1558
Capabilities:
Create thread

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x68
mov ebx, ecx
mov al, byte [ebp + 8]
mov ecx, dword [0x57ffac]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
test al, al
je 0x4c3918
xor esi, esi
inc esi
mov edi, 0x5405d2
mov ecx, ebx
push 0
push 0x4d5b80
push esi
push str.NtMapViewOfSection
push edi
call fcn.004c345e
mov ecx, ebx
push esi
push 0x4d5d60
push esi
push str.NtUnmapViewOfSection
push edi
call fcn.004c345e
jmp 0x4c3922
cmp dword [ebx + 0xc], 0
je 0x4c3a1c
mov eax, dword [ebx]
mov edi, dword [eax]
sub esp, 0x14
movaps xmm0, xmmword [0x5405b0]
movups xmmword [esp + 4], xmm0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x6c], eax
mov esi, dword [ebx + 0xc]
shl esi, 6
lea eax, [esi + 0x50]
mov dword [ebp - 0x70], eax
push eax
call fcn.004c3334
add esp, 4
mov dword [ebp - 0x74], ebx
mov ebx, eax
mov eax, 0xfffff000
mov ecx, ebx
and ecx, eax
add ecx, dword [ebp - 0x6c]
add esi, 0x104f
and esi, eax
push 0x40
push 0x1000
push esi
push ecx
mov dword [ebp - 0x6c], edi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test eax, eax
je 0x4c3a34
mov edi, eax
and ebx, 0xfff
add edi, ebx
lea esi, [ebp - 0x60]
mov ebx, dword [ebp - 0x70]
mov dword [esi], ebx
xor eax, eax
mov dword [esi + 0xc], eax
mov dword [esi + 4], 0x10
push 0xa8
push eax
push 0x5835a0
call fcn.00502350
add esp, 0xc
mov ecx, dword [ebp - 0x74]
push esi
push ebx
push edi
call fcn.004c3c5a
mov ebx, eax
test eax, eax
jne 0x4c3a1e
lea eax, [ebp - 0x64]
push eax
push 0x10
push esi
push edi
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebx, 0x2a
test eax, eax
je 0x4c3a1e
cmp dword [ebp - 0x64], 0x10
jne 0x4c3a1e
lea eax, [ebp - 0x68]
push eax
push 0x20
push dword [ebp - 0x70]
push edi
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax]
push 0xa8
push 0x5835a0
push str.g_originals
call fcn.004a5480
mov ebx, eax
jmp 0x4c3a1e
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe871
mov eax, ebx
add esp, 0x68
pop esi
pop edi
pop ebx
pop ebp
ret 4
int3

Function at 0x4c4d30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x583658]
mov ecx, dword [0x581ddc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4c4da5
mov ecx, 0x583650
call fcn.0044c3b0
test eax, eax
jne 0x4c4d98
mov edi, esp
push 4
call fcn.004fe808
add esp, 4
mov esi, eax
mov dword [eax], 0
mov ecx, 0x583650
call fcn.0044c3b0
test eax, eax
je 0x4c4d8b
push eax
call fcn.004fe838
add esp, 4
mov ecx, 0x583650
push esi
call fcn.0044c3e0
mov esp, edi
mov ecx, 0x583650
pop esi
pop edi
pop ebp
jmp fcn.0044c3b0
push 0x583658
call fcn.004fe8b7
add esp, 4
cmp dword [0x583658], 0xffffffff
jne 0x4c4d52
mov dword [0x583654], 0
mov dword [0x583650], 0
mov ecx, 0x583650
push 0x41e980
call fcn.0044c420
push 0x583658
call fcn.004fe92d
add esp, 4
jmp 0x4c4d52
Function at 0x4c8ae0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0xd0
mov eax, dword [0x57ffac]
xor eax, ebp
mov dword [ebp - 0xc], eax
lea esi, [ebp - 0x30]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esi + 0x14], 0x100
jb 0x4c8b4c
push 1
call fcn.00424cb0
add esp, 4
test al, al
je 0x4c8b4c
lea esi, [ebp - 0xd8]
mov ecx, esi
push 1
push 0xb3
push str..._.._third_party_crashpad_crashpad_snapshot_win_system_snapshot_win.cc
call fcn.00424d40
lea eax, [ebp - 0xd0]
push 0x2c
push str.dwNumberOfProcessors_exceeds_uint8_t_storage
push eax
call fcn.00401b1f
add esp, 0xc
mov ecx, esi
call fcn.004250e0
mov eax, dword [ebp - 0x1c]
cmp eax, 0x100
mov ebx, 0xff
cmovb ebx, eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004fe871
mov eax, ebx
add esp, 0xd0
pop esi
pop ebx
pop ebp
ret
Function at 0x4d79f8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov ecx, dword [ebp + 8]
mov eax, dword [0x57ffac]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 0x3c]
cmp eax, 9
jbe 0x4d7a1d
xor ebx, ebx
jmp 0x4d7aec
mov bl, 1
test eax, eax
je 0x4d7aec
mov edx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov esi, edx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.004d276c
mov edx, esi
mov dword [esi + ebx*4], eax
test eax, eax
je case.0x4d7a5d.3
mov eax, dword [ebp - 0x18]
mov dword [edi + ebx*4 + 4], eax
dec eax
cmp eax, 5
ja case.0x4d7a5d.3
jmp dword [eax*4 + 0x54217c]
push 0xc
call fcn.004fe808
add esp, 4
mov edi, eax
xor eax, eax
mov dword [edi + 4], eax
mov dword [edi], eax
mov dword [edi + 8], eax
mov dword [ebp - 0x1c], edi
mov ecx, dword [ebp + 8]
push edi
push ebx
call fcn.004d2804
test al, al
je 0x4d7b04
mov edx, esi
mov dword [esi + ebx*4], edi
jmp 0x4d7ada
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
push ebx
call fcn.004d279c
jmp 0x4d7aae
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
push ebx
call fcn.004d27d0
test al, al
je 0x4d7b00
mov eax, dword [ebp - 0x1c]
mov edx, esi
mov dword [esi + ebx*4], eax
jmp case.0x4d7a5d.3
mov edi, dword [edx + ebx*4]
test edi, edi
je 0x4d7b28
push 8
call fcn.004fe808
add esp, 4
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov edx, esi
mov dword [eax + 4], edi
mov dword [esi + ebx*4], eax
mov edi, dword [ebp + 0xc]
inc ebx
mov ecx, dword [ebp + 8]
cmp ebx, dword [ecx + 0x3c]
jb 0x4d7a2f
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe871
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
push esi
push edi
jmp 0x4d7b2c
xor eax, eax
mov dword [esi + ebx*4], eax
xor ebx, ebx
push esi
push dword [ebp + 0xc]
call fcn.004d7970
add esp, 8
lea ecx, [ebp - 0x18]
mov dword [ecx - 4], ebx
push edi
call fcn.00403ef4
jmp 0x4d7a16
push edx
push dword [ebp + 0xc]
call fcn.004d7970
add esp, 8
jmp 0x4d7a16
Function at 0x4db73e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xec
mov esi, ecx
mov eax, dword [0x57ffac]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ecx + 0x10]
mov ecx, edi
call fcn.004dc0c6
lea ebx, [ebp - 0x50]
mov ecx, esi
push ebx
push 0
push 0x40
push edx
push eax
call fcn.004e3aba
test al, al
je 0x4db7dc
movzx eax, word [ebp - 0x50]
cmp eax, 0x5a4d
jne 0x4db819
mov ecx, edi
call fcn.004dc0c6
mov ebx, eax
mov eax, dword [ebp - 0x14]
mov edi, eax
sar edi, 0x1f
add ebx, eax
adc edi, edx
mov ecx, esi
push dword [ebp + 8]
push 0
push 0x108
push edi
push ebx
call fcn.004e3aba
test al, al
je 0x4db853
mov eax, dword [ebp + 8]
cmp dword [eax], 0x4550
jne 0x4db88d
mov ecx, ebx
mov eax, dword [ebp + 0xc]
mov bl, 1
test eax, eax
je 0x4db8eb
mov dword [eax], ecx
mov dword [eax + 4], edi
jmp 0x4db8eb
push 1
call fcn.00424cb0
add esp, 4
test al, al
je 0x4db8e9
lea edi, [ebp - 0xf8]
mov ecx, edi
push 1
push 0x154
push str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
call fcn.00424d40
lea eax, [ebp - 0xf0]
push 0x1f
push str.could_not_read_dos_header_from
jmp 0x4db8c1
push 1
call fcn.00424cb0
add esp, 4
test al, al
je 0x4db8e9
lea edi, [ebp - 0xf8]
mov ecx, edi
push 1
push 0x15a
push str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
call fcn.00424d40
lea eax, [ebp - 0xf0]
push 0x21
push str.invalid_e_magic_in_dos_header_of
jmp 0x4db8c1
push 1
call fcn.00424cb0
add esp, 4
test al, al
je 0x4db8e9
lea edi, [ebp - 0xf8]
mov ecx, edi
push 1
push 0x162
push str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
call fcn.00424d40
lea eax, [ebp - 0xf0]
push 0x1f
push str.could_not_read_nt_headers_from
jmp 0x4db8c1
push 1
call fcn.00424cb0
add esp, 4
test al, al
je 0x4db8e9
lea edi, [ebp - 0xf8]
mov ecx, edi
push 1
push 0x168
push str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
call fcn.00424d40
lea eax, [ebp - 0xf0]
push 0x23
push str.invalid_signature_in_nt_headers_of
push eax
call fcn.00401b1f
add esp, 0xc
movzx ecx, byte [esi + 0xb]
test cl, cl
jns 0x4db8d7
mov ecx, dword [esi + 4]
mov esi, dword [esi]
push ecx
push esi
push eax
call fcn.00401b1f
add esp, 0xc
mov ecx, edi
call fcn.004250e0
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe871
mov eax, ebx
add esp, 0xec
pop esi
pop edi
pop ebx
pop ebp
ret 8