joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1c503f0
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x1cd643c]
xor eax, ebp
mov dword [esp + 0x30], eax
movsd xmm1, qword [0x1cf19b8]
xorpd xmm0, xmm0
ucomisd xmm1, xmm0
jne 0x1c50574
jp 0x1c50574
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esp + 0xc], eax
call edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x1cf19c8]
mov ecx, dword [0x1cf1960]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1c50599
mov eax, dword [0x1cf19d8]
mov ecx, dword [0x1cf1960]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1c505d2
rdtsc
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
lea esi, [esp + 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub edi, dword [0x1cf19d0]
sbb ebx, dword [0x1cf19d4]
movd xmm0, ebx
movd xmm1, edi
punpckldq xmm1, xmm0
punpckldq xmm1, xmmword [0x1cb9480]
subpd xmm1, xmmword [0x1cb9490]
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
fild qword [esp + 0x28]
fstp qword [esp + 0x20]
divsd xmm0, qword [esp + 0x20]
xorpd xmm1, xmm1
movsd xmm2, qword [0x1cbec60]
ucomisd xmm2, xmm0
ja 0x1c50574
mov eax, dword [esp + 8]
sub eax, dword [0x1cf19c0]
mov ecx, dword [esp + 4]
sbb ecx, dword [0x1cf19c4]
movd xmm1, ecx
movd xmm2, eax
punpckldq xmm2, xmm1
punpckldq xmm2, xmmword [0x1cb9480]
subpd xmm2, xmmword [0x1cb9490]
movapd xmm1, xmm2
unpckhpd xmm1, xmm2
addsd xmm1, xmm2
divsd xmm1, xmm0
movsd qword [0x1cf19b8], xmm1
movsd qword [esp + 0x18], xmm1
fld qword [esp + 0x18]
fstp xword [esp + 0xc]
mov ecx, dword [esp + 0x30]
xor ecx, ebp
call fcn.01c8ff11
fld xword [esp + 0xc]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x1cf19c8
call fcn.01c8ff57
add esp, 4
cmp dword [0x1cf19c8], 0xffffffff
jne 0x1c50462
rdtsc
mov dword [0x1cf19c0], eax
mov dword [0x1cf19c4], edx
push 0x1cf19c8
call fcn.01c8ffcd
add esp, 4
jmp 0x1c50462
push 0x1cf19d8
call fcn.01c8ff57
add esp, 4
cmp dword [0x1cf19d8], 0xffffffff
jne 0x1c50483
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [0x1cf19d4], ecx
mov dword [0x1cf19d0], eax
push 0x1cf19d8
call fcn.01c8ffcd
add esp, 4
jmp 0x1c50483
Function at 0x1c54b50
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov ebx, ecx
mov eax, dword [0x1cd643c]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x24], edx
push edx
push ecx
push edi
call fcn.01c44800
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x1c54b7f
mov edi, dword [ebp - 0x1c]
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
cmp byte [ebp - 0x11], 0
jns 0x1c54b9d
push dword [ebp - 0x1c]
call fcn.01c8fed0
add esp, 4
cmp dword [ebp + 8], 0
je 0x1c54c7c
test esi, esi
je 0x1c54c7c
mov dword [ebp - 0x20], esi
add esi, esi
mov ecx, 0xffffffff
cmovae ecx, esi
push ecx
call fcn.01c8ff03
add esp, 4
mov edi, eax
lea esi, [ebp - 0x1c]
push dword [ebp - 0x24]
push ebx
push esi
call fcn.01c44800
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x1c54be0
mov esi, dword [ebp - 0x1c]
push dword [ebp - 0x20]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [ebp - 0x11], 0
jns 0x1c54bfc
push dword [ebp - 0x1c]
call fcn.01c8fed0
add esp, 4
cmp word [edi], 0
mov esi, dword [ebp + 8]
je 0x1c54c1f
xor ecx, ecx
nop word [eax + eax]
lea eax, [ecx + 1]
cmp word [edi + ecx*2 + 2], 0
mov ecx, eax
jne 0x1c54c10
jmp 0x1c54c21
xor eax, eax
lea ecx, [ebp - 0x1c]
push eax
push edi
push ecx
call fcn.01c44c80
add esp, 0xc
cmp byte [esi + 0xb], 0
js 0x1c54c3e
mov byte [esi], 0
mov byte [esi + 0xb], 0
jmp 0x1c54c61
mov eax, dword [esi]
mov byte [eax], 0
mov dword [esi + 4], 0
cmp byte [esi + 0xb], 0
jns 0x1c54c61
push dword [esi]
call fcn.01c8fed0
add esp, 4
mov dword [esi + 8], 0
mov eax, dword [ebp - 0x14]
mov dword [esi + 8], eax
movsd xmm0, qword [ebp - 0x1c]
movsd qword [esi], xmm0
push edi
call fcn.01c8ff0c
add esp, 4
mov esi, dword [ebp - 0x20]
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c8ff11
mov eax, ebx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1c54ca0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x228
mov eax, dword [0x1cd643c]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x21a]
push 0x20a
push 0xff
push edi
call fcn.01c93b00
add esp, 0xc
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
add esi, 0xffffffff
cmp esi, 0x102
ja 0x1c54d48
cmp word [ebp - 0x21a], 0
je 0x1c54d12
xor ecx, ecx
nop word cs:[eax + eax]
nop
lea eax, [ecx + 1]
cmp word [ebp + ecx*2 - 0x218], 0
mov ecx, eax
jne 0x1c54d00
jmp 0x1c54d14
xor eax, eax
lea ebx, [ebp - 0x234]
mov ecx, ebx
push eax
push edi
call fcn.01c53210
lea edi, [ebp - 0x228]
mov ecx, ebx
push edi
call fcn.01c54430
mov ecx, dword [ebp + 8]
push edi
call fcn.01c53310
mov ecx, edi
call fcn.01c532d0
mov ecx, ebx
call fcn.01c532d0
cmp esi, 0x103
setb bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c8ff11
mov eax, ebx
add esp, 0x228
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1c559d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20c
mov eax, dword [0x1cd643c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov bl, 1
cmp dword [0x1cf1a38], 0
jne 0x1c55c26
mov esi, dword [0x1cf1a28]
test esi, esi
je 0x1c55a11
test byte [0x1cee330], 1
jne 0x1c55b0b
jmp 0x1c55c26
push 0xc
call fcn.01c8fea0
add esp, 4
mov esi, eax
lea edi, [ebp - 0x218]
push 0x208
push 0xff
push edi
call fcn.01c93b00
add esp, 0xc
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [esi + 4], 0
mov dword [esi], 0
mov dword [esi + 8], 0
push edi
call fcn.01ca7914
add esp, 4
cmp eax, 0x7ffffff0
jae 0x1c55c3d
mov ebx, eax
cmp eax, 5
jae 0x1c55a7e
mov byte [esi + 0xb], bl
mov eax, esi
test ebx, ebx
jne 0x1c55aaa
jmp 0x1c55abd
lea edi, [ebx + 8]
and edi, 0xfffffff8
js 0x1c55c44
lea eax, [edi + edi]
push eax
call fcn.01c8fea0
add esp, 4
mov dword [esi], eax
or edi, 0x80000000
mov dword [esi + 8], edi
mov dword [esi + 4], ebx
lea edi, [ebp - 0x218]
mov ecx, ebx
add ecx, ebx
push ecx
push edi
push eax
mov edi, eax
call fcn.01c93580
mov eax, edi
add esp, 0xc
mov word [eax + ebx*2], 0
movzx eax, byte [esi + 0xb]
test al, al
jns 0x1c55ace
mov eax, dword [esi + 4]
mov ecx, esi
push eax
push 0x5c
call fcn.01c3fd1a
cmp eax, 0xffffffff
mov bl, 1
je 0x1c55aec
add eax, 1
mov ecx, esi
push 0xffffffffffffffff
push eax
call fcn.01c3fa7a
mov ecx, esi
push str.debug.log
call fcn.01c3f7b8
mov dword [0x1cf1a28], esi
test byte [0x1cee330], 1
je 0x1c55c26
cmp byte [esi + 0xb], 0
jns 0x1c55b13
mov esi, dword [esi]
sub esp, 0x1c
movaps xmm0, xmmword [0x1cbeef0]
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1cf1a38], eax
add eax, 1
cmp eax, 1
ja 0x1c55c26
lea eax, [ebp - 0x216]
push 0x206
push 0xff
push eax
call fcn.01c93b00
add esp, 0xc
mov word [ebp - 0x218], 0
lea esi, [ebp - 0x218]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1c55c24
cmp eax, 0x104
ja 0x1c55c24
mov ecx, dword [0x1cf1a28]
push esi
call fcn.01c3f93c
mov ecx, dword [0x1cf1a28]
movzx eax, byte [ecx + 0xb]
test al, al
js 0x1c55bb1
mov edx, ecx
jmp 0x1c55bb6
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
cmp word [edx + eax*2 - 2], 0x5c
je 0x1c55bce
push 0x1cbc78e
call fcn.01c3f7b8
mov ecx, dword [0x1cf1a28]
push str.debug.log
call fcn.01c3f7b8
mov eax, dword [0x1cf1a28]
cmp byte [eax + 0xb], 0
jns 0x1c55be5
mov eax, dword [eax]
movaps xmm0, xmmword [0x1cbeef0]
sub esp, 0x1c
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1cf1a38], eax
add eax, 1
cmp eax, 1
ja 0x1c55c26
mov dword [0x1cf1a38], 0
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c8ff11
mov eax, ebx
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
call fcn.01c3e7c4
call fcn.01ca281e
int3
Function at 0x1c56e9f
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 [0x1cd643c]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x1c56ec1
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x1c56fa4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1c56efc
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c8ff11
mov ecx, esi
add esp, 0xbc
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.01c56fbb
push 2
call fcn.01c55c50
add esp, 4
test al, al
je 0x1c56fa2
call fcn.01c56670
lea ecx, [ebp - 0xbc]
push eax
push 2
push 0x25e
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.01c56810
lea eax, [ebp - 0xb4]
push 0x10
push str.CreateDirectory
push eax
call fcn.01c23784
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x1c56f50
mov eax, dword [esi + 4]
mov esi, dword [esi]
lea ebx, [ebp - 0xc8]
push eax
push esi
push ebx
call fcn.01c44c80
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x1c56f75
mov eax, dword [ebp - 0xc4]
mov ebx, dword [ebp - 0xc8]
push eax
push ebx
push edi
call fcn.01c23784
add esp, 0xc
cmp byte [ebp - 0xbd], 0
jns 0x1c56f97
push dword [ebp - 0xc8]
call fcn.01c8fed0
add esp, 4
lea ecx, [ebp - 0xbc]
call fcn.01c568c0
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c8ff11
mov eax, ebx
add esp, 0xbc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1c56fbb
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 [0x1cd643c]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x1c56fdd
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1c570ac
mov bl, 1
test al, 0x10
jne 0x1c57154
push 2
call fcn.01c55c50
add esp, 4
test al, al
je 0x1c57152
lea ecx, [ebp - 0xbc]
push 2
push 0x24d
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.01c55cf0
lea eax, [ebp - 0xb4]
push 0x12
push str.GetFileAttributes
push eax
call fcn.01c23784
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x1c57045
mov eax, dword [esi + 4]
mov esi, dword [esi]
lea ebx, [ebp - 0xc8]
push eax
push esi
push ebx
call fcn.01c44c80
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x1c5706a
mov eax, dword [ebp - 0xc4]
mov ebx, dword [ebp - 0xc8]
push eax
push ebx
push edi
call fcn.01c23784
add esp, 0xc
push 0x11
push str.:_not_a_directory
push eax
call fcn.01c23784
add esp, 0xc
cmp byte [ebp - 0xbd], 0
jns 0x1c5709c
push dword [ebp - 0xc8]
call fcn.01c8fed0
add esp, 4
lea ecx, [ebp - 0xbc]
call fcn.01c560d0
jmp 0x1c57152
push 2
call fcn.01c55c50
add esp, 4
test al, al
je 0x1c57152
call fcn.01c56670
lea ecx, [ebp - 0xbc]
push eax
push 2
push 0x249
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.01c56810
lea eax, [ebp - 0xb4]
push 0x12
push str.GetFileAttributes
push eax
call fcn.01c23784
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x1c57100
mov eax, dword [esi + 4]
mov esi, dword [esi]
lea ebx, [ebp - 0xc8]
push eax
push esi
push ebx
call fcn.01c44c80
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x1c57125
mov eax, dword [ebp - 0xc4]
mov ebx, dword [ebp - 0xc8]
push eax
push ebx
push edi
call fcn.01c23784
add esp, 0xc
cmp byte [ebp - 0xbd], 0
jns 0x1c57147
push dword [ebp - 0xc8]
call fcn.01c8fed0
add esp, 4
lea ecx, [ebp - 0xbc]
call fcn.01c568c0
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c8ff11
mov eax, ebx
add esp, 0xbc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1c58598
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 [0x1cd643c]
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 0x1c585ee
mov dword [ebp - 0x34], ecx
lea edi, [ebp - 0x20]
mov ecx, esi
push edi
call fcn.01c5a744
test al, al
jne 0x1c585db
add esi, 0x58
cmp ebx, esi
jne 0x1c585c6
mov esi, ebx
mov eax, dword [ebp - 0x34]
cmp esi, dword [eax + 0x20]
je 0x1c585ee
cmp byte [esi + 0x1b], 0
jns 0x1c585f3
mov eax, dword [esi + 0x10]
jmp 0x1c585f6
xor edi, edi
inc edi
jmp 0x1c58619
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 0x1c58619
mov eax, dword [ebp + 8]
mov dword [eax], esi
xor edi, edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c8ff11
mov eax, edi
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0x50]
cmp eax, edx
jne 0x1c599a1
cmp byte [ecx + 0x1b], 0
jns 0x1c599af
mov ecx, dword [ecx + 0x10]
jmp 0x1c599b2
xor ecx, ecx
cmp eax, 1
sete cl
lea eax, [ecx + ecx*2]
inc eax
jmp 0x1c599cc
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 0x1c5b8d8
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 [0x1cd643c]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
xor ecx, ecx
dec ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
xor edi, edi
mov ebx, 3
test al, al
je 0x1c5b93d
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xfe
mov ebx, 0x80003
cmp eax, 6
jb 0x1c5b93d
lea edi, [ebp - 0x1c]
mov dword [edi], 0xc
mov dword [esp], 0
call fcn.01c5b983
mov dword [edi + 4], eax
mov dword [edi + 8], 1
cmp byte [esi + 0xb], 0
jns 0x1c5b945
mov esi, dword [esi]
mov dword [esp + 0x1c], edi
movaps xmm0, xmmword [0x1cbf400]
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.01c8ff11
mov eax, esi
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1c5bc3c
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 [0x1cd643c]
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 0x1c5bcfd
and eax, 0xfeff
cmp eax, 6
je 0x1c5bcfd
mov eax, dword [0x1cf1a64]
mov ecx, dword [0x1cf1960]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1c5bd1d
push 0x10000000
push 0
push esi
call dword [0x1cf1a60]
mov esi, eax
test eax, eax
jne 0x1c5bcf6
push 2
call fcn.01c55c50
add esp, 4
test al, al
je 0x1c5bcf6
call fcn.01c56670
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.01c56810
lea eax, [ebp - 0xb4]
push 0x1b
push 0x1cbf63d
push eax
call fcn.01c23784
add esp, 0xc
mov ecx, edi
call fcn.01c568c0
test esi, esi
setne bl
jmp 0x1c5bd06
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c8ff11
mov eax, ebx
add esp, 0xb0
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x1cf1a64
call fcn.01c8ff57
add esp, 4
cmp dword [0x1cf1a64], 0xffffffff
jne 0x1c5bc9b
push 1
push str.::InitializeCriticalSectionEx
push 0x1cb9050
call fcn.01c5c018
add esp, 0xc
mov dword [0x1cf1a60], eax
push 0x1cf1a64
call fcn.01c8ffcd
add esp, 4
jmp 0x1c5bc9b

Function at 0x1c5bddc
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 0x1c5ef70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1408
call fcn.01c902e0
mov eax, dword [0x1cd643c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x1cee350]
cmp eax, 0xffffffff
je 0x1c5f0d6
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test bl, 3
je 0x1c5f0d6
and ebx, 0xfffffffc
lea eax, [ebp - 0x810]
push 0x800
push ebx
push eax
call fcn.01c93580
add esp, 0xc
mov ecx, dword [0x1cee350]
lea eax, [ebp - 0x80f]
push eax
mov dword [ebp - 0x1414], ecx
push ecx
call fcn.01c6c5b0
add esp, 8
push ebx
call fcn.01c8ff0c
add esp, 4
lea edi, [ebp - 0x1410]
push 0xc00
push 0xff
push edi
call fcn.01c93b00
add esp, 0xc
mov eax, dword [0x1cf29c8]
mov ecx, dword [0x1cf1960]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1c5f0f7
mov esi, dword [0x1cf29c4]
push esi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1c5f0eb
push 0xc00
push 0x1cf1dc4
push edi
call fcn.01c93580
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov al, 1
mov ebx, 0x100
jmp 0x1c5f06a
lea ecx, [ebx - 1]
cmp ebx, 2
mov ebx, ecx
jb 0x1c5f0c6
test al, 1
je 0x1c5f0c6
xor edi, edi
lea esi, [ebp - 0x1408]
xor eax, eax
jmp 0x1c5f08e
add edi, 1
add esi, 0xc
cmp edi, 0x100
je 0x1c5f060
mov ecx, dword [ebp + edi*8 - 0x810]
test ecx, ecx
je 0x1c5f080
cmp dword [esi - 8], 0
je 0x1c5f080
mov edx, dword [ebp + edi*8 - 0x80c]
cmp edx, dword [esi]
jne 0x1c5f080
mov edx, dword [esi - 4]
test edx, edx
je 0x1c5f080
mov dword [ebp + edi*8 - 0x810], 0
push ecx
call edx
add esp, 4
mov al, 1
jmp 0x1c5f080
push 2
push dword [ebp - 0x1414]
call fcn.01c6c5b0
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c8ff11
add esp, 0x1408
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
call fcn.01c5bd80
jmp 0x1c5f036
push 0x1cf29c8
call fcn.01c8ff57
add esp, 4
cmp dword [0x1cf29c8], 0xffffffff
jne 0x1c5f021
push 4
call fcn.01c8fea0
add esp, 4
mov esi, eax
mov ecx, eax
call fcn.01c5bd70
mov dword [0x1cf29c4], esi
push 0x1cf29c8
call fcn.01c8ffcd
add esp, 4
jmp 0x1c5f021

Function at 0x1c5f140
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x1cee350]
cmp eax, 0xffffffff
je 0x1c5f162
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
add eax, 0xffffffff
cmp eax, 2
setb al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1c5f170
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov eax, dword [0x1cee350]
cmp eax, 0xffffffff
je 0x1c5f18d
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x1c5f192
call fcn.01c5f2b0
mov eax, dword [0x1cf29c8]
mov ecx, dword [0x1cf1960]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1c5f265
mov edi, dword [0x1cf29c4]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1c5f259
mov ecx, dword [0x1cf1dc0]
add ecx, 1
mov edx, 0x100
nop word cs:[eax + eax]
movzx ebx, cl
lea eax, [ebx + ebx*2]
cmp dword [eax*4 + 0x1cf1dc4], 0
je 0x1c5f20d
lea eax, [ecx + 1]
movzx ebx, al
lea eax, [ebx + ebx*2]
cmp dword [eax*4 + 0x1cf1dc4], 0
je 0x1c5f20d
add ecx, 2
add edx, 0xfffffffe
jne 0x1c5f1e0
jmp 0x1c5f23d
lea ecx, [eax*4 + 0x1cf1dc4]
mov dword [ecx], 1
lea eax, [ebx*4]
mov ecx, dword [ebp + 8]
mov dword [eax + eax*2 + 0x1cf1dc8], ecx
mov dword [0x1cf1dc0], ebx
mov dword [esi], ebx
mov eax, dword [eax + eax*2 + 0x1cf1dcc]
mov dword [esi + 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x1c5f2aa
cmp eax, 0x100
jge 0x1c5f2ad
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov ecx, edi
call fcn.01c5bd80
jmp 0x1c5f1c8
push 0x1cf29c8
call fcn.01c8ff57
add esp, 4
cmp dword [0x1cf29c8], 0xffffffff
jne 0x1c5f1b3
push 4
call fcn.01c8fea0
add esp, 4
mov edi, eax
mov ecx, eax
call fcn.01c5bd70
mov dword [0x1cf29c4], edi
push 0x1cf29c8
call fcn.01c8ffcd
add esp, 4
jmp 0x1c5f1b3
int3
int3

Function at 0x1c5f2b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x808
mov eax, dword [0x1cd643c]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x810], 0xffffffff
mov eax, dword [0x1cee350]
mov dword [ebp - 0x810], eax
cmp eax, 0xffffffff
jne 0x1c5f358
lea esi, [ebp - 0x810]
push esi
call fcn.01c6c580
add esp, 4
test al, al
je 0x1c5f3d9
mov ecx, dword [ebp - 0x810]
cmp ecx, 0xffffffff
jne 0x1c5f32f
push esi
call fcn.01c6c580
add esp, 4
test al, al
je 0x1c5f3dc
cmp dword [ebp - 0x810], 0xffffffff
je 0x1c5f3dc
push 0xffffffffffffffff
call fcn.01c6c5a0
add esp, 4
mov ecx, dword [ebp - 0x810]
mov eax, 0xffffffff
lock cmpxchg dword [0x1cee350], ecx
mov eax, dword [ebp - 0x810]
je 0x1c5f358
push eax
call fcn.01c6c5a0
add esp, 4
mov eax, dword [0x1cee350]
mov dword [ebp - 0x810], eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x1c5f3d6
lea edi, [ebp - 0x80c]
push 0x800
push 0
push edi
call fcn.01c93b00
add esp, 0xc
lea eax, [ebp - 0x809]
push eax
push dword [ebp - 0x810]
call fcn.01c6c5b0
add esp, 8
push 0x800
call fcn.01c8ff03
add esp, 4
mov esi, eax
push 0x800
push edi
push eax
call fcn.01c93580
add esp, 0xc
mov eax, esi
or eax, 3
push eax
push dword [ebp - 0x810]
call fcn.01c6c5b0
add esp, 8
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.01c8ff11
mov eax, esi
add esp, 0x808
pop esi
pop edi
pop ebp
ret
int3
int3
int3