joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47ca90
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x60
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x57ffac]
xor eax, ebp
mov dword [esp + 0x58], eax
lea edi, [esp + 8]
push 0x4d
push str..._.._base_file_version_info_win.cc
push str.CreateFileVersionInfoWin
push edi
call fcn.00424a20
add esp, 0x10
lea ecx, [esp + 0x18]
push 0
push edi
call fcn.0042ec60
cmp byte [ebx + 0xb], 0
jns 0x47cad7
mov ebx, dword [ebx]
mov edi, dword [ebp + 8]
lea eax, [esp + 4]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x47cc08
mov esi, eax
mov dword [esp], ebx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
test eax, eax
js 0x47cc2c
push esi
call fcn.004fe808
add esp, 4
mov ebx, eax
mov dword [esp + 8], eax
mov edi, esi
add edi, eax
mov dword [esp + 0x10], edi
push esi
push 0
push eax
call fcn.00502350
add esp, 0xc
mov dword [esp + 0xc], edi
push ebx
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoW
xor edi, edi
test eax, eax
je 0x47cbea
mov eax, dword [esp + 8]
mov dword [esp + 0x54], 0
lea ecx, [esp + 0x50]
lea ebx, [esp + 0x54]
push ecx
push ebx
push str.VarFileInfoTranslation
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x47cbea
mov esi, dword [esp + 0x54]
test esi, esi
je 0x47cbea
push 0x1c
call fcn.004fe808
add esp, 4
mov edi, eax
mov eax, dword [esi]
mov dword [edi], 0x5373e0
mov ecx, dword [esp + 8]
mov dword [edi + 4], ecx
mov edx, dword [esp + 0xc]
mov dword [edi + 8], edx
mov edx, dword [esp + 0x10]
mov dword [edi + 0xc], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], eax
mov dword [esp + 0x54], 0
lea eax, [esp + 0x50]
push eax
push ebx
push 0x53757c
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x47cc35
mov eax, dword [esp + 0x54]
mov dword [edi + 0x18], eax
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov edi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x47cc0e
mov dword [esp + 0xc], eax
push eax
call fcn.004fe838
add esp, 4
jmp 0x47cc0e
mov dword [edi], 0
lea ecx, [esp + 0x18]
call fcn.0042ed80
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.004fe871
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 8]
call fcn.0041df3c
int3
Function at 0x47ce20
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x224
mov esi, ecx
mov eax, dword [0x57ffac]
xor eax, ebp
mov dword [ebp - 0x10], eax
movzx eax, word [ecx + 0x14]
mov dword [ebp - 0x230], eax
movzx ebx, word [ecx + 0x16]
mov edi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call edi
mov word [ebp - 0x224], ax
movzx eax, word [esi + 0x16]
mov dword [ebp - 0x22c], eax
movzx eax, word [esi + 0x14]
mov dword [ebp - 0x228], eax
call edi
mov word [ebp - 0x222], ax
lea edi, [ebp - 0x218]
push dword [ebp + 8]
push ebx
push dword [ebp - 0x230]
push str.StringFileInfo_04x_04x_ls
push 0x104
push 0x104
push edi
call fcn.00445e73
add esp, 0x1c
mov dword [ebp - 0x21c], 0
lea ebx, [ebp - 0x220]
lea eax, [ebp - 0x21c]
push ebx
push eax
push edi
push dword [esi + 0x10]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x47ced7
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x47ced7
mov edx, dword [ebp - 0x220]
test edx, edx
jne 0x47cfeb
movzx eax, word [ebp - 0x224]
push dword [ebp + 8]
push dword [ebp - 0x22c]
push eax
push str.StringFileInfo_04x_04x_ls
push 0x104
push 0x104
push edi
call fcn.00445e73
add esp, 0x1c
mov dword [ebp - 0x21c], 0
push ebx
lea eax, [ebp - 0x21c]
push eax
push edi
push dword [esi + 0x10]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x47cf37
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x47cf37
mov edx, dword [ebp - 0x220]
test edx, edx
jne 0x47cfeb
push dword [ebp + 8]
push 0x4e4
push dword [ebp - 0x228]
push str.StringFileInfo_04x_04x_ls
push 0x104
push 0x104
push edi
call fcn.00445e73
add esp, 0x1c
mov dword [ebp - 0x21c], 0
push ebx
lea eax, [ebp - 0x21c]
push eax
push edi
push dword [esi + 0x10]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x47cf90
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x47cf90
mov edx, dword [ebp - 0x220]
test edx, edx
jne 0x47cfeb
movzx eax, word [ebp - 0x222]
push dword [ebp + 8]
push 0x4e4
push eax
push str.StringFileInfo_04x_04x_ls
push 0x104
push 0x104
push edi
call fcn.00445e73
add esp, 0x1c
mov dword [ebp - 0x21c], 0
push ebx
lea eax, [ebp - 0x21c]
push eax
push edi
push dword [esi + 0x10]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x47d013
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x47d013
mov edx, dword [ebp - 0x220]
test edx, edx
je 0x47d013
mov ecx, dword [ebp + 0xc]
add edx, 0xffffffff
push edx
push eax
call fcn.0041cc48
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe871
mov eax, ebx
add esp, 0x224
pop esi
pop edi
pop ebx
pop ebp
ret 8
xor ebx, ebx
jmp 0x47cffa

Function at 0x47d900
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x583050]
mov ecx, dword [0x581ddc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x47d92b
mov ecx, 0x583048
pop ebp
jmp fcn.0044c3b0
push 0x583050
call fcn.004fe8b7
add esp, 4
cmp dword [0x583050], 0xffffffff
jne 0x47d920
mov dword [0x58304c], 0
mov dword [0x583048], 0
mov ecx, 0x583048
push 0
call fcn.0044c420
push 0x583050
call fcn.004fe92d
add esp, 4
jmp 0x47d920
Function at 0x485680
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, ecx
call fcn.00486df0
mov byte [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi], 0x537c80
mov dword [esi + 0xc], 0
lea eax, [esi + 0x10]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 0
movaps xmm0, xmmword [0x537a90]
movups xmmword [esp], xmm0
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
sub esp, 0x10
cmp dword [esi + 0xc], eax
je 0x485719
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi + 0xc]
add eax, 1
cmp eax, 2
jb 0x4856fd
call fcn.00424a50
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call fcn.00435200
mov dword [esi + 0xc], 0
lea eax, [edi + 1]
cmp eax, 2
jb 0x48570d
mov dword [esi + 0xc], edi
call fcn.00424a50
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x496bd1
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xbc
mov esi, ecx
mov eax, dword [0x57ffac]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x496bf3
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x496cd6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x496c2e
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.00496ced
push 2
call fcn.00424cb0
add esp, 4
test al, al
je 0x496cd4
call fcn.00425620
lea ecx, [ebp - 0xbc]
push eax
push 2
push 0x261
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.00425750
lea eax, [ebp - 0xb4]
push 0x10
push str.CreateDirectory
push eax
call fcn.00401b1f
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x496c82
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 0x496ca7
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 0x496cc9
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 0x496ced
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xbc
mov esi, ecx
mov eax, dword [0x57ffac]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x496d0f
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x496dde
mov bl, 1
test al, 0x10
jne 0x496e86
push 2
call fcn.00424cb0
add esp, 4
test al, al
je 0x496e84
lea ecx, [ebp - 0xbc]
push 2
push 0x24f
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.00424d40
lea eax, [ebp - 0xb4]
push 0x12
push str.GetFileAttributes
push eax
call fcn.00401b1f
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x496d77
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 0x496d9c
mov eax, dword [ebp - 0xc4]
mov ebx, dword [ebp - 0xc8]
push eax
push ebx
push edi
call fcn.00401b1f
add esp, 0xc
push 0x11
push str.:_not_a_directory
push eax
call fcn.00401b1f
add esp, 0xc
cmp byte [ebp - 0xbd], 0
jns 0x496dce
push dword [ebp - 0xc8]
call fcn.004fe838
add esp, 4
lea ecx, [ebp - 0xbc]
call fcn.004250e0
jmp 0x496e84
push 2
call fcn.00424cb0
add esp, 4
test al, al
je 0x496e84
call fcn.00425620
lea ecx, [ebp - 0xbc]
push eax
push 2
push 0x24b
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.00425750
lea eax, [ebp - 0xb4]
push 0x12
push str.GetFileAttributes
push eax
call fcn.00401b1f
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x496e32
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 0x496e57
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 0x496e79
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 0x4981ec
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [0x57ffac]
xor eax, ebp
mov dword [ebp - 0x10], eax
movups xmm0, xmmword [edx]
movups xmmword [ebp - 0x30], xmm0
mov esi, dword [ecx + 0x1c]
mov ebx, dword [ecx + 0x20]
movups xmmword [ebp - 0x20], xmm0
cmp esi, ebx
je 0x498242
mov dword [ebp - 0x34], ecx
lea edi, [ebp - 0x20]
mov ecx, esi
push edi
call fcn.004b4974
test al, al
jne 0x49822f
add esi, 0x58
cmp ebx, esi
jne 0x49821a
mov esi, ebx
mov eax, dword [ebp - 0x34]
cmp esi, dword [eax + 0x20]
je 0x498242
cmp byte [esi + 0x1b], 0
jns 0x498247
mov eax, dword [esi + 0x10]
jmp 0x49824a
xor edi, edi
inc edi
jmp 0x49826d
lea eax, [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
shr ecx, 3
and ecx, 2
xor edi, edi
inc edi
cmp eax, 0xffffffff
cmovne edi, ecx
test edi, edi
jne 0x49826d
mov eax, dword [ebp + 8]
mov dword [eax], esi
xor edi, edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe871
mov eax, edi
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x49949c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0x50]
cmp eax, edx
jne 0x4994b1
cmp byte [ecx + 0x1b], 0
jns 0x4994bf
mov ecx, dword [ecx + 0x10]
jmp 0x4994c2
xor ecx, ecx
cmp eax, 1
sete cl
lea eax, [ecx + ecx*2]
inc eax
jmp 0x4994dc
add ecx, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
mov edx, eax
shr edx, 3
and edx, 2
xor eax, eax
inc eax
cmp ecx, 0xffffffff
cmovne eax, edx
pop ebp
ret
Function at 0x49f5d2
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x60
mov eax, dword [0x57ffac]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0x38], 0
je 0x49f6e4
mov esi, ecx
lea edx, [ecx + 0x30]
lea eax, [ebp - 0x58]
lea edi, [ebp - 0x5c]
mov ecx, edi
push eax
push 2
call fcn.0049f70b
add esp, 8
mov edx, dword [edi]
test edx, edx
je 0x49f6eb
mov dword [ebp - 0x64], esi
cmp dword [edx], 0
je 0x49f6d0
mov eax, dword [ebp - 0x64]
add eax, 0x18
mov dword [ebp - 0x6c], eax
xor eax, eax
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x60], eax
test dword [edx + eax*8 + 8], 0xc0000020
jne 0x49f6c4
cmp dword [ebp + 8], 0
je 0x49f688
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp dword [eax + 4], ecx
je 0x49f688
xor ebx, ebx
xor edi, edi
mov eax, dword [ebp - 0x60]
mov esi, dword [edx + eax*8 + 4]
add ecx, ebx
call fcn.0042e5f0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov edx, dword [ebp - 0x68]
test eax, eax
jne 0x49f6c4
inc edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 2
imul eax, eax, 0xf0f0f0f1
add ebx, 0x44
cmp edi, eax
jb 0x49f650
lea ebx, [ebp - 0x54]
mov ecx, ebx
mov eax, dword [ebp - 0x60]
push dword [edx + eax*8 + 4]
call fcn.0049fed4
mov esi, dword [ebp - 0x64]
mov edi, dword [esi + 0x1c]
cmp edi, dword [esi + 0x20]
jae 0x49f6b8
push 0x44
push ebx
push edi
call fcn.00501dd0
add esp, 0xc
add edi, 0x44
mov dword [esi + 0x1c], edi
jmp 0x49f6c1
mov ecx, dword [ebp - 0x6c]
push ebx
call fcn.0047719a
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x60]
inc eax
cmp eax, dword [edx]
jb 0x49f62b
mov dword [ebp - 0x5c], 0
push edx
call fcn.004fe86c
add esp, 4
xor esi, esi
jmp 0x49f6f5
mov esi, 0x3f0
jmp 0x49f6f5
mov esi, dword [ebp - 0x58]
mov dword [ebp - 0x5c], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe871
mov eax, esi
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x4a4c50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov edi, dword [ebp + 8]
cmp dword [ecx + 8], 0
je 0x4a4c67
mov eax, dword [esi]
mov ecx, eax
jmp 0x4a4c8c
mov eax, dword [esi]
test eax, eax
je 0x4a4c71
mov ecx, eax
jmp 0x4a4c8c
cmp dword [esi + 0xc], 0
je 0x4a4c7d
mov ecx, eax
xor eax, eax
jmp 0x4a4c8c
mov ecx, eax
xor eax, eax
cmp dword [esi + 4], 0
mov edx, 0
je 0x4a4ce3
add ecx, 1
cmp ecx, 2
jb 0x4a4cab
call fcn.00424a50
push dword [esi]
call fcn.00435200
add esp, 4
mov dword [esi], 0
xor eax, eax
mov ecx, dword [esi + 4]
lea edx, [ecx + 1]
cmp edx, 2
jb 0x4a4cd1
call fcn.00424a50
push dword [esi + 4]
call fcn.00435200
add esp, 4
mov dword [esi + 4], 0
mov eax, dword [esi]
xor ecx, ecx
mov edx, eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, ecx
mov ebx, dword [edi]
cmp edx, ebx
je 0x4a4d2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
add eax, 1
cmp eax, 2
jb 0x4a4d10
call fcn.00424a50
push dword [esi]
call fcn.00435200
add esp, 4
mov dword [esi], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x4a4d1f
mov dword [esi], ebx
call fcn.00424a50
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 4]
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 4]
cmp eax, ebx
je 0x4a4d77
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi + 4]
add eax, 1
cmp eax, 2
jb 0x4a4d5d
call fcn.00424a50
push dword [esi + 4]
call fcn.00435200
add esp, 4
mov dword [esi + 4], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x4a4d6d
mov dword [esi + 4], ebx
call fcn.00424a50
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x4a4ea0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x57ffac]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x4a4f32
mov edi, ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call esi
mov ebx, eax
call esi
lea ecx, [ebp - 0x14]
push 2
push 0
push 0
push ecx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov edi, eax
test eax, eax
je 0x4a4f36
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
cmp dword [esi], ebx
je 0x4a4f43
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
add ecx, 1
cmp ecx, 2
jb 0x4a4f1d
mov dword [ebp - 0x18], eax
call fcn.00424a50
push dword [esi]
call fcn.00435200
mov eax, dword [ebp - 0x18]
add esp, 4
mov dword [esi], 0
lea ecx, [ebx + 1]
cmp ecx, 2
jb 0x4a4f3c
mov dword [esi], ebx
mov esi, eax
call fcn.00424a50
mov eax, esi
jmp 0x4a4f3c
mov bl, 1
jmp 0x4a4f48
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
setne bl
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
Function at 0x4a505a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
call fcn.004a4e30
test al, al
je 0x4a507e
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.004a50e0
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4a509d
mov dword [esi + 0x34], eax
push eax
call fcn.004fe838
add esp, 4
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x2c], 0
test eax, eax
je 0x4a50b4
push eax
call fcn.00435680
add esp, 4
mov ecx, edi
push 0
call fcn.004a50e0
lea ecx, [esi + 0x18]
call fcn.00405024
lea ecx, [esi + 0x14]
call fcn.00405024
lea ecx, [esi + 0x10]
call fcn.00405024
mov ecx, esi
pop esi
pop edi
pop ebp
jmp fcn.004a4d90
Function at 0x4a83b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5834e0]
mov ecx, dword [0x581ddc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4a83db
mov ecx, 0x5834d8
pop ebp
jmp fcn.0044c3b0
push 0x5834e0
call fcn.004fe8b7
add esp, 4
cmp dword [0x5834e0], 0xffffffff
jne 0x4a83d0
mov dword [0x5834dc], 0
mov dword [0x5834d8], 0
mov ecx, 0x5834d8
push 0
call fcn.0044c420
push 0x5834e0
call fcn.004fe92d
add esp, 4
jmp 0x4a83d0
Function at 0x4a9e30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, dword [ecx + 4]
jmp 0x4a9e46
mov esi, dword [esi + 0x8c]
test esi, esi
je 0x4a9e7b
xor edi, edi
xchg dword [esi], edi
test edi, edi
je 0x4a9e40
nop word cs:[eax + eax]
nop dword [eax]
bsf ecx, edi
mov ebx, 1
shl ebx, cl
mov eax, dword [esi + ecx*4 + 8]
push eax
call dword [eax + 4]
add esp, 4
xor edi, ebx
jne 0x4a9e60
jmp 0x4a9e40
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4b14a4
Capabilities:
Check os version
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov esi, dword [ebp + 8]
mov al, byte [ebp + 0xc]
mov ecx, dword [0x57ffac]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
xor edi, edi
mov ebx, 3
test al, al
je 0x4b14fd
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xfe
mov ebx, 0x80003
cmp eax, 6
jb 0x4b14fd
lea edi, [ebp - 0x1c]
mov dword [edi], 0xc
mov dword [esp], 0
call fcn.004b1543
mov dword [edi + 4], eax
mov dword [edi + 8], 1
cmp byte [esi + 0xb], 0
jns 0x4b1505
mov esi, dword [esi]
mov dword [esp + 0x1c], edi
movaps xmm0, xmmword [0x53e860]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
sub esp, 0x20
mov esi, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe871
mov eax, esi
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4b17dc
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb0
mov esi, dword [ebp + 8]
mov eax, dword [0x57ffac]
xor eax, ebp
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, eax
and ecx, 0xfe
cmp ecx, 6
jb 0x4b189d
and eax, 0xfeff
cmp eax, 6
je 0x4b189d
mov eax, dword [0x583510]
mov ecx, dword [0x581ddc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4b18bd
push 0x10000000
push 0
push esi
call dword [0x58350c]
mov esi, eax
test eax, eax
jne 0x4b1896
push 2
call fcn.00424cb0
add esp, 4
test al, al
je 0x4b1896
call fcn.00425620
lea edi, [ebp - 0xbc]
mov ecx, edi
push eax
push 2
push 0x21
push str..._.._third_party_crashpad_crashpad_util_win_critical_section_with_debug_info.cc
call fcn.00425750
lea eax, [ebp - 0xb4]
push 0x1b
push 0x53ea9d
push eax
call fcn.00401b1f
add esp, 0xc
mov ecx, edi
call fcn.00425800
test esi, esi
setne bl
jmp 0x4b18a6
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe871
mov eax, ebx
add esp, 0xb0
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x583510
call fcn.004fe8b7
add esp, 4
cmp dword [0x583510], 0xffffffff
jne 0x4b183b
push 1
push str.::InitializeCriticalSectionEx
push 0x52ee12
call fcn.004b1a54
add esp, 0xc
mov dword [0x58350c], eax
push 0x583510
call fcn.004fe92d
add esp, 4
jmp 0x4b183b

Function at 0x4b1904
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xa0]
mov eax, dword [eax + 0xc]
mov ecx, dword fs:[0x18]
cmp eax, dword [ecx + 0x24]
sete al
pop ebp
ret
Function at 0x4b4d92
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 0x4b4db5
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4b4dde
mov ebx, eax
bt eax, 0xa
jae 0x4b4dd3
cmp byte [ebp + 0xc], 0
je 0x4b4e84
and ebx, 0x10
shr ebx, 4
jmp 0x4b4e86
push 2
call fcn.00424cb0
add esp, 4
test al, al
je 0x4b4e84
call fcn.00425620
lea ecx, [ebp - 0xbc]
push eax
push 2
push 0x81
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 0x4b4e32
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 0x4b4e57
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 0x4b4e79
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