joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47bfc0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x124
mov eax, dword [0x5ff014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x6091c8]
mov ecx, dword [0x6033f4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x47c00d
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504596
mov eax, 0x6091c4
add esp, 0x124
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x6091c8
call fcn.00503e17
add esp, 4
cmp dword [0x6091c8], 0xffffffff
jne 0x47bff3
lea edi, [ebp - 0x128]
xor esi, esi
push 0x118
push esi
push edi
call fcn.00508060
add esp, 0xc
mov dword [edi - 4], 0x11c
lea edi, [ebp - 0x12c]
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea ebx, [ebp - 0x130]
mov dword [ebx], esi
push ebx
push esi
push esi
push dword [edi + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetProductInfo]
push 0x58
call fcn.00503d75
add esp, 4
mov esi, eax
mov ebx, dword [ebx]
mov eax, dword [0x6091f8]
mov ecx, dword [0x6033f4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x47c0d9
push 0x6091f8
call fcn.00503e17
add esp, 4
cmp dword [0x6091f8], 0xffffffff
jne 0x47c0d9
xorps xmm0, xmm0
movups xmmword [0x6091e4], xmm0
movups xmmword [0x6091d4], xmm0
mov dword [0x6091f4], 0
push 0x6091d4
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x6091f8
call fcn.00503e8d
add esp, 4
mov ecx, esi
push ebx
push 0x6091d4
push edi
call fcn.0047c1c0
mov dword [0x6091c4], esi
push 0x6091c8
call fcn.00503e8d
add esp, 4
jmp 0x47bff3

Function at 0x47c110
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x6091f8]
mov ecx, dword [0x6033f4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x47c179
push 0x6091f8
call fcn.00503e17
add esp, 4
cmp dword [0x6091f8], 0xffffffff
jne 0x47c179
xorps xmm0, xmm0
movups xmmword [0x6091e4], xmm0
movups xmmword [0x6091d4], xmm0
mov dword [0x6091f4], 0
push 0x6091d4
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x6091f8
call fcn.00503e8d
add esp, 4
movzx ecx, word [0x6091d4]
cmp cx, 9
jne 0x47c18b
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
test cx, cx
je 0x47c189
cmp cx, 6
jne 0x47c19f
mov eax, 2
jmp 0x47c189
cmp cx, 0xc
jne 0x47c1ac
mov eax, 3
jmp 0x47c189
mov eax, 4
jmp 0x47c189
Function at 0x47e2c0
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
jne 0x47e399
cmp dword [esi], 0
jne 0x47e399
cmp dword [esi + 0xc], 0
jne 0x47e399
xor eax, eax
cmp dword [esi + 4], 0
jne 0x47e399
mov ebx, dword [edi]
cmp eax, ebx
je 0x47e323
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x47e369
lea eax, [ebx + 1]
cmp eax, 2
jb 0x47e319
mov dword [esi], ebx
call fcn.004deab0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 4]
cmp dword [esi + 4], ebx
je 0x47e356
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi + 4]
inc eax
cmp eax, 2
jae 0x47e380
lea eax, [ebx + 1]
cmp eax, 2
jb 0x47e34c
mov dword [esi + 4], ebx
call fcn.004deab0
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
call fcn.004deab0
push dword [esi]
call fcn.004e84d0
add esp, 4
mov dword [esi], 0
jmp 0x47e30a
call fcn.004deab0
push dword [esi + 4]
call fcn.004e84d0
add esp, 4
mov dword [esi + 4], 0
jmp 0x47e33c
mov ecx, esi
call fcn.00565e80
mov eax, dword [esi]
jmp 0x47e2f4
Function at 0x487a40
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb8
mov esi, ecx
mov eax, dword [0x5ff014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x487a62
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x487a97
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x487ab0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504596
mov ecx, esi
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.00487b60
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504596
mov eax, ebx
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret
push 2
call fcn.004deac0
add esp, 4
test al, al
je 0x487b56
call fcn.00551fb0
lea ecx, [ebp - 0xb8]
push eax
push 2
push 0x25f
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.005520e0
lea eax, [ebp - 0xb0]
push 0x10
push str.CreateDirectory
push eax
call fcn.004d4870
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x487b04
mov eax, dword [esi + 4]
mov esi, dword [esi]
lea ebx, [ebp - 0xc4]
push eax
push esi
push ebx
call fcn.004e4b90
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x487b29
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push edi
call fcn.004d4870
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x487b4b
push dword [ebp - 0xc4]
call fcn.00503da5
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.00552140
xor ebx, ebx
jmp 0x487a99
Function at 0x487b60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb8
mov esi, ecx
mov eax, dword [0x5ff014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x487b82
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x487baf
mov bl, 1
test al, 0x10
je 0x487c5a
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504596
mov eax, ebx
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret
push 2
call fcn.004deac0
add esp, 4
test al, al
je 0x487d0a
call fcn.00551fb0
lea ecx, [ebp - 0xb8]
push eax
push 2
push 0x24a
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.005520e0
lea eax, [ebp - 0xb0]
push 0x12
push str.GetFileAttributes
push eax
call fcn.004d4870
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x487c03
mov eax, dword [esi + 4]
mov esi, dword [esi]
lea ebx, [ebp - 0xc4]
push eax
push esi
push ebx
call fcn.004e4b90
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x487c28
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push edi
call fcn.004d4870
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x487c4a
push dword [ebp - 0xc4]
call fcn.00503da5
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.00552140
jmp 0x487d0a
push 2
call fcn.004deac0
add esp, 4
test al, al
je 0x487d0a
lea ecx, [ebp - 0xb8]
push 2
push 0x24e
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.00454e90
lea eax, [ebp - 0xb0]
push 0x12
push str.GetFileAttributes
push eax
call fcn.004d4870
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x487ca8
mov eax, dword [esi + 4]
mov esi, dword [esi]
lea ebx, [ebp - 0xc4]
push eax
push esi
push ebx
call fcn.004e4b90
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x487ccd
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push edi
call fcn.004d4870
add esp, 0xc
push 0x11
push str.:_not_a_directory
push eax
call fcn.004d4870
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x487cff
push dword [ebp - 0xc4]
call fcn.00503da5
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.00455270
xor ebx, ebx
jmp 0x487b98
Function at 0x488fe0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x5ff014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x14]
mov dword [esi], 0xffffffff
mov edx, esi
call fcn.00487e30
mov eax, dword [esi]
test eax, eax
je 0x489033
mov ebx, dword [eax + 0x1c]
mov edi, dword [eax + 0x20]
xor esi, esi
cmp ebx, edi
jne 0x48903a
lea ecx, [ebp - 0x14]
call fcn.004887c0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504596
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov esi, 3
jmp 0x489015
mov eax, dword [ebp + 8]
add eax, 0xc
mov dword [ebp - 0x1c], eax
cmp dword [ebx + 0x50], 0
je 0x489052
add ebx, 0x58
cmp ebx, edi
je 0x489015
jmp 0x489043
cmp byte [ebx + 0x1b], 0
jns 0x48905d
mov eax, dword [ebx + 0x10]
jmp 0x489060
lea eax, [ebx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x489049
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x489093
mov edx, ecx
mov ecx, dword [ebp - 0x1c]
push ebx
mov dword [ebp - 0x18], edx
push edx
call fcn.00489870
mov ecx, dword [ebp - 0x18]
add ecx, 0x50
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
jmp 0x489049
mov ecx, dword [ebp + 8]
push ebx
call fcn.00572800
jmp 0x489049

Function at 0x4890a0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x5ff014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x14]
mov dword [esi], 0xffffffff
mov edx, esi
call fcn.00487e30
mov eax, dword [esi]
test eax, eax
je 0x4890f3
mov ebx, dword [eax + 0x1c]
mov edi, dword [eax + 0x20]
xor esi, esi
cmp ebx, edi
jne 0x4890fa
lea ecx, [ebp - 0x14]
call fcn.004887c0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504596
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov esi, 3
jmp 0x4890d5
mov eax, dword [ebp + 8]
add eax, 0xc
mov dword [ebp - 0x1c], eax
cmp dword [ebx + 0x50], 2
jne 0x489148
cmp byte [ebx + 0x1b], 0
jns 0x489114
mov eax, dword [ebx + 0x10]
jmp 0x489117
lea eax, [ebx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x489148
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x489151
mov edx, ecx
mov ecx, dword [ebp - 0x1c]
push ebx
mov dword [ebp - 0x18], edx
push edx
call fcn.00489870
mov ecx, dword [ebp - 0x18]
add ecx, 0x50
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
add ebx, 0x58
cmp ebx, edi
je 0x4890d5
jmp 0x489103
mov ecx, dword [ebp + 8]
push ebx
call fcn.00572800
jmp 0x489148
Function at 0x4899f0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
mov ecx, dword [0x5ff014]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
movzx ecx, byte [eax + 0xb]
test cl, cl
jns 0x489a14
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov ebx, dword [ebp + 0xc]
lea esi, [ebp - 0x1c]
push ecx
push eax
push esi
call fcn.004e4830
add esp, 0xc
cmp byte [esi + 0xb], 0
jns 0x489a2e
mov esi, dword [ebp - 0x1c]
lea edi, [ebp - 0x28]
push ebx
push dword [ebp + 8]
push edi
call fcn.004e4830
add esp, 0xc
cmp byte [edi + 0xb], 0
jns 0x489a47
mov edi, dword [ebp - 0x28]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esi, eax
cmp byte [ebp - 0x1d], 0
jns 0x489a62
push dword [ebp - 0x28]
call fcn.00503da5
add esp, 4
cmp byte [ebp - 0x11], 0
jns 0x489a73
push dword [ebp - 0x1c]
call fcn.00503da5
add esp, 4
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504596
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret 0xc

Function at 0x489b00
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, edx
mov edi, ecx
mov eax, dword [0x5ff014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x1c]
push edx
push ecx
push esi
call fcn.004e4830
add esp, 0xc
cmp byte [esi + 0xb], 0
jns 0x489b2e
mov esi, dword [ebp - 0x1c]
xor eax, eax
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
cmp byte [ebp - 0x11], 0
jns 0x489b4c
push dword [ebp - 0x1c]
call fcn.00503da5
add esp, 4
test esi, esi
je 0x489be4
cmp dword [ebp + 8], 0
je 0x489be4
xor eax, eax
dec eax
mov ecx, esi
add ecx, esi
cmovb ecx, eax
push ecx
call fcn.00503dd3
add esp, 4
mov ecx, edi
mov edi, eax
mov eax, ebx
lea ebx, [ebp - 0x1c]
push eax
push ecx
push ebx
call fcn.004e4830
add esp, 0xc
cmp byte [ebx + 0xb], 0
jns 0x489b8e
mov ebx, dword [ebp - 0x1c]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [ebp - 0x11], 0
jns 0x489ba8
push dword [ebp - 0x1c]
call fcn.00503da5
add esp, 4
test edi, edi
mov ebx, dword [ebp + 8]
je 0x489bfd
push edi
call fcn.0051f544
add esp, 4
lea ecx, [ebp - 0x1c]
push eax
push edi
push ecx
call fcn.004e4b90
add esp, 0xc
cmp byte [ebx + 0xb], 0
js 0x489c00
mov eax, dword [ebp - 0x14]
mov dword [ebx + 8], eax
movsd xmm0, qword [ebp - 0x1c]
movsd qword [ebx], xmm0
push edi
call fcn.00503ddc
add esp, 4
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504596
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
int3
push dword [ebx]
call fcn.00503da5
add esp, 4
jmp 0x489bcc
Function at 0x48bb70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x5ff014]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
cmp eax, 3
je 0x48bba0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504596
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
lea eax, [ebp - 0x14]
mov dword [eax], 0x48bc90
push 0
push eax
push 0x48bb50
push 0x60a89c
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x48bc7f
cmp dword [0x60a8a0], 0
jne 0x48bb8c
push dword [0x60a8a4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48bb8c
mov esi, eax
mov eax, 0x60a8a8
push eax
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov ebx, dword [0x60a8ac]
mov edi, dword [0x60a8b0]
mov eax, dword [0x60a8b4]
mov dword [ebp - 0x18], eax
mov eax, dword [0x60a8b8]
mov dword [ebp - 0x1c], eax
mov eax, 0x60a8a8
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test ebx, ebx
je 0x48bc2c
mov eax, dword [esi]
mov dword [ebp - 0x20], eax
mov ecx, ebx
call dword [section..00cfg]
push dword [ebp - 0x20]
call ebx
add esp, 4
test edi, edi
je 0x48bc41
mov ebx, dword [esi + 4]
mov ecx, edi
call dword [section..00cfg]
push ebx
call edi
add esp, 4
cmp dword [ebp - 0x18], 0
je 0x48bc59
mov edi, dword [esi + 8]
mov ecx, dword [ebp - 0x18]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
cmp dword [ebp - 0x1c], 0
je 0x48bc71
mov edi, dword [esi + 0xc]
mov ecx, dword [ebp - 0x1c]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
push esi
call fcn.004eb180
add esp, 4
jmp 0x48bb8c
call fcn.00517b60
int3
Function at 0x491140
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, ecx
lea eax, [ecx + 0x1c]
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x1c]
test edi, edi
jne 0x49120e
lea edi, [esi + 0x18]
mov ebx, dword [esi + 0x18]
test ebx, ebx
jne 0x49122a
push edi
push 0x5ee544
push 0x17
push 0
push 0x5b51d4
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [edi]
test eax, eax
js 0x491243
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebx]
test edi, edi
jne 0x491255
mov eax, dword [ecx]
mov edi, ecx
mov ecx, dword [eax + 0x48]
call dword [section..00cfg]
push ebx
push edi
call ecx
test eax, eax
js 0x491274
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
cmp esi, eax
je 0x4911d3
cmp byte [esi + 0xb], 0
movzx edx, byte [eax + 0xb]
js 0x4911fa
test dl, dl
jns 0x4911ea
mov ecx, esi
push dword [eax + 4]
push dword [eax]
call fcn.00443230
add esi, 0xc
mov ecx, esi
push edi
call fcn.004532e0
mov al, 1
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
movsd xmm0, qword [eax]
movsd qword [esi], xmm0
jmp 0x4911d3
test dl, dl
jns 0x491203
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov ecx, esi
push edx
push eax
call fcn.00443120
jmp 0x4911d3
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
mov eax, dword [edi]
mov ecx, dword [eax + 8]
call dword [section..00cfg]
push edi
call ecx
jmp 0x49115c
mov dword [edi], 0
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
call dword [section..00cfg]
push ebx
call ecx
jmp 0x49116a
test ecx, ecx
je 0x491291
mov eax, ecx
mov dword [edi], 0
mov esi, ecx
mov eax, dword [eax]
jmp 0x491285
mov dword [ebx], 0
mov eax, dword [edi]
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax + 8]
call dword [section..00cfg]
push edi
call ecx
mov ecx, dword [ebp - 0x14]
jmp 0x491196
mov esi, dword [ebx]
test esi, esi
je 0x491291
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
mov eax, dword [esi]
mov ecx, dword [eax + 8]
call dword [section..00cfg]
push esi
call ecx
xor eax, eax
jmp 0x4911e0
Function at 0x493470
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x12c
mov esi, dword [ebp + 8]
mov al, byte [ebp + 0xc]
mov ecx, dword [0x5ff014]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
xor ecx, ecx
dec ecx
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x130], ecx
test al, al
je 0x49354b
lea ebx, [ebp - 0x120]
xor edi, edi
push 0x110
push edi
push ebx
call fcn.00508060
add esp, 0xc
mov dword [ebx - 0xc], 0x11c
sub esp, 0x10
movaps xmm0, xmmword [0x5ef000]
movups xmmword [esp], xmm0
mov ebx, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
call ebx
mov ecx, 3
push ecx
push 1
push edx
push eax
call ebx
mov ecx, 3
push ecx
push 0x20
push edx
push eax
call ebx
lea ecx, [ebp - 0x120]
mov dword [ecx - 8], 6
mov dword [ecx - 4], edi
mov word [ecx + 0x108], 0
lea ecx, [ebp - 0x12c]
push edx
push eax
push 0x23
push ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov ebx, 0x80003
test eax, eax
je 0x493552
lea edi, [ebp - 0x138]
mov dword [edi], 0xc
push 0
call fcn.004935a0
add esp, 4
mov dword [edi + 4], eax
mov dword [edi + 8], 1
jmp 0x493552
xor edi, edi
mov ebx, 3
cmp byte [esi + 0xb], 0
jns 0x49355a
mov esi, dword [esi]
sub esp, 0x20
mov dword [esp + 0x1c], edi
movaps xmm0, xmmword [0x5ef010]
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]
mov esi, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504596
mov eax, esi
add esp, 0x12c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4958b0
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 0x49dcc0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, dword [ebp + 8]
mov eax, dword [0x5ff014]
xor eax, ebp
mov dword [ebp - 0x10], eax
test esi, esi
je 0x49de7c
cmp dword [0x602098], 0xe69e32f3
jne 0x49de7f
mov byte [ebp - 0x11], 0xff
lea ebx, [esi + 0x2a8]
lea ecx, [esi + 0x44]
xor edi, edi
inc edi
mov dword [ebp - 0x18], 0
mov eax, dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov dword [ebp - 0x1c], ecx
push ecx
call eax
test al, al
jne 0x49dd48
jmp 0x49de5f
pause
dec eax
jne 0x49dd19
mov edx, dword [ebp - 0x18]
add edx, edi
mov ecx, dword [ebp - 0x1c]
add edi, edi
cmp edi, 0x40
mov eax, 0x40
cmovge edi, eax
mov dword [ebp - 0x18], edx
cmp edx, 0x3e8
mov eax, dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
jl 0x49dd0d
call fcn.0049dea0
mov eax, dword [ebx]
mov edi, dword [eax]
test edi, edi
je 0x49de11
mov ecx, esi
mov byte [ebp - 0x11], 0
mov esi, dword [edi]
test esi, esi
je 0x49de0d
mov edx, dword [ecx + 0x2b4]
mov dword [ebp - 0x18], edx
mov ebx, esi
bswap ebx
test ebx, 0x1fc000
je 0x49de74
mov edx, ebx
xor edx, edi
cmp edx, 0x1fffff
ja 0x49de74
not esi
cmp dword [edi + 4], esi
jne 0x49de74
prefetcht0 byte [ebx]
mov dword [eax], ebx
inc word [eax + 0xc]
mov esi, ecx
mov eax, dword [eax + 8]
mov ecx, dword [esi + 0x8fc]
add ecx, dword [eax + 0xc]
mov eax, dword [esi + 0x900]
mov dword [esi + 0x8fc], ecx
cmp eax, ecx
cmovae ecx, eax
mov dword [esi + 0x900], ecx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, edi
push esi
call fcn.004ff1f0
push edi
push dword [0x60b414]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x6033f4]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov dword [eax + 0xb0], edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504596
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
jmp 0x49dd9b
lea eax, [ebp - 0x11]
mov ecx, ebx
push eax
push 0x4000
push 0x1c8
push 2
push esi
call fcn.004d3580
test eax, eax
je 0x49de82
mov edi, eax
mov ecx, eax
and ecx, 0xffe00000
mov edx, eax
shr edx, 9
and edx, 0xfe0
lea eax, [edx + ecx]
movzx ecx, byte [edx + ecx + 0x101e]
and ecx, 0x3f
shl ecx, 5
sub eax, ecx
add eax, 0x1000
jmp 0x49dda3
mov eax, edi
test edi, edi
jg 0x49dd19
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
jmp 0x49dd26
mov ecx, dword [ebp - 0x18]
call fcn.005346b0
int3
int3
xor edi, edi
jmp 0x49ddc6

Function at 0x49e4b0
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 [0x5ff014]
xor esi, ebp
mov dword [ebp - 8], esi
mov esi, SysReAllocString
cmp edx, esi
cmovb esi, edx
lea edx, [ebp - 0xc]
mov dword [edx], 0xffffffff
push 0
push edx
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x49e508
mov esi, dword [ebp - 0xc]
cmp esi, 0xffffffff
je 0x49e50d
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00504596
mov eax, esi
add esp, 8
pop esi
pop ebp
ret
xor esi, esi
dec esi
jmp 0x49e4f6
int3
Function at 0x49e510
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [0x5ff014]
xor ecx, ebp
mov esi, SysReAllocString
cmp eax, esi
cmovb esi, eax
mov dword [ebp - 0x10], ecx
lea eax, [ebp - 0x14]
mov ecx, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x14], 0xffffffff
push 0
push eax
push esi
push edx
mov edi, ebx
push ebx
call ecx
test eax, eax
je 0x49e588
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x49e575
cmp ebx, 0xffffffff
je 0x49e59a
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504596
mov eax, ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
je 0x49e59d
mov ebx, dword [ebp - 0x14]
jmp 0x49e561
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x6d
setne bl
neg ebx
jmp 0x49e561
int3
mov edx, dword [ebp + 0xc]
jmp 0x49e537

Function at 0x49e9d0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0xac
mov esi, dword [ebp + 8]
mov eax, dword [0x5ff014]
xor eax, ebp
mov dword [ebp - 0xc], eax
xor ebx, ebx
push ebx
push ebx
push ebx
push esi
call fcn.0049e8e0
add esp, 0x10
or edx, eax
jne 0x49ea07
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov bl, 1
test eax, eax
je 0x49ea1d
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00504596
mov eax, ebx
add esp, 0xac
pop esi
pop ebx
pop ebp
ret
push 2
call fcn.004deac0
add esp, 4
test al, al
je 0x49ea67
call fcn.00551fb0
lea esi, [ebp - 0xb4]
mov ecx, esi
push eax
push 2
push 0xfb
push str..._.._third_party_crashpad_crashpad_util_file_file_io_win.cc
call fcn.005520e0
lea eax, [ebp - 0xac]
push 0xc
push 0x5f2bca
push eax
call fcn.004d4870
add esp, 0xc
mov ecx, esi
call fcn.00552140
xor ebx, ebx
jmp 0x49ea07