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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov esi, ecx
mov eax, dword [0x64a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ecx], 0
mov byte [ecx + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
je 0x4186a0
mov dword [esp], 0x18
call fcn.0057dc30
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0x80000018
mov dword [ebp - 0x18], 0x15
cmp eax, str.ExitCodeWatcherThread
ja 0x4185e0
lea ecx, [eax + 0x15]
cmp ecx, str.ExitCodeWatcherThread
ja 0x4186a3
lea ecx, [esi + 8]
movsd xmm0, qword [0x62ab61]
movsd qword [eax + 0xd], xmm0
movups xmm0, xmmword [str.ExitCodeWatcherThread]
movups xmmword [eax], xmm0
mov byte [eax + 0x15], 0
lea edi, [ebp - 0x1c]
mov dword [esp], edi
call fcn.004186c0
sub esp, 4
cmp byte [edi + 0xb], 0
jns 0x41861d
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.0057dc2b
mov dword [esi + 0x50], 0x103
movsd xmm0, qword [0x62ab40]
movups xmmword [esp], xmm0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
sub esp, 0x10
mov dword [esi + 0x54], 0
test eax, eax
je 0x418673
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi + 0x54]
inc eax
cmp eax, 2
jae 0x418687
lea eax, [edi + 1]
cmp eax, 2
jb 0x418667
mov dword [esi + 0x54], edi
call fcn.005050f0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005810d5
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.005050f0
mov eax, dword [esi + 0x54]
mov dword [esp], eax
call fcn.0056b660
mov dword [esi + 0x54], 0
jmp 0x418657
int3
mov dword [esp + 4], str....._third_partylibc_srcinclude__stringchar_traits.h:146:_assertion__std::__is_pointer_in_range___s1____s1____n____s2__failed:_char_traits::copy:_source_and_destination_ranges_overlap_n
mov dword [esp], 0x62a183
call fcn.005aacb0
int3
Function at 0x418d80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, ecx
mov eax, dword [0x64a040]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x10]
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
mov ebx, esp
push 0x5f
push str.file_win.cc
push str.ReadAtCurrentPos
push ebx
call fcn.0051dbb0
add esp, 0x10
xor eax, eax
mov ecx, edi
push eax
push eax
call fcn.00536a30
mov dword [esp + 0x4c], 0xa
mov al, byte [0x64f42e]
test al, al
jne 0x418e47
mov ecx, dword [ebp + 0xc]
test ecx, ecx
js 0x418e2b
mov eax, dword [ebp + 8]
mov dword [esp], 0xffffffff
push 0
push ebx
push ecx
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418e35
mov ebx, dword [esp]
test ebx, ebx
js 0x418e30
lea ecx, [esp + 0x10]
call fcn.00545870
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.005810d5
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
xor ebx, ebx
dec ebx
jmp 0x418e0b
int3
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x26
setne bl
neg ebx
jmp 0x418e0b
movzx ecx, al
lea eax, [esp + 0x54]
mov dword [eax], ebx
lea edi, [esp + 0x50]
mov dword [edi], str.ScopedBlockingCall
lea edx, [esp + 0x4c]
push eax
push edi
call fcn.005da0b0
add esp, 8
jmp 0x418de2
Function at 0x41c150
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x80
mov esi, ecx
mov eax, dword [0x64a040]
xor eax, ebp
mov dword [ebp - 0xc], eax
cmp byte [ecx], 0
jne 0x41c1ab
cmp byte [esi + 0x1b], 0
js 0x41c18c
cmp byte [esi + 0xf], 0
js 0x41c199
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.005810d5
add esp, 0x80
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi + 0x10]
mov dword [esp], eax
call fcn.0057dc2b
jmp 0x41c172
mov eax, dword [esi + 4]
mov dword [esp], eax
call fcn.0057dc2b
jmp 0x41c178
mov ecx, dword [esi + 8]
jmp 0x41c1cb
mov ecx, esi
call fcn.005eabd0
test al, al
je 0x41c27b
mov ecx, esi
call fcn.005eac40
movsx eax, byte [esi + 0xf]
test eax, eax
js 0x41c1a6
mov ecx, eax
test ecx, ecx
je 0x41c27e
pxor xmm0, xmm0
movdqu xmmword [ebp - 0x1c], xmm0
movdqu xmmword [ebp - 0x2c], xmm0
movdqu xmmword [ebp - 0x3c], xmm0
movdqu xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x50], 0x44
lea ecx, [esi + 0x10]
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0x60], xmm0
cmp byte [esi + 0x1b], 0
jns 0x41c206
mov ecx, dword [ecx]
lea edx, [esi + 4]
test al, al
jns 0x41c20f
mov edx, dword [edx]
lea eax, [ebp - 0x60]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x50]
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
movaps xmm0, xmmword [0x63a8c0]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
je 0x41c16c
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
sub esp, 4
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
sub esp, 4
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call edi
sub esp, 4
jmp 0x41c16c
int3
int3
Function at 0x41dab0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov edi, dword [ebp + 8]
mov eax, dword [0x64a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov esi, dword [0x6507bc]
test esi, esi
je 0x41daf0
mov ecx, esi
push 0x636747
call fcn.00556fb0
test al, al
jne 0x41db13
mov ecx, esi
push str.vmodule
call fcn.00556fb0
test al, al
jne 0x41db13
mov eax, dword [edi]
mov dword [0x64c0b4], eax
test al, 1
jne 0x41dba3
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005810d5
mov al, 1
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [ebp - 0x1c]
mov ecx, esi
push 7
push str.vmodule
push eax
call fcn.005570d0
lea ebx, [ebp - 0x28]
mov ecx, esi
push 1
push 0x636747
push ebx
call fcn.005570d0
push 0x10
call fcn.0057dc30
add esp, 4
mov esi, eax
mov ecx, eax
push 0x650774
lea eax, [ebp - 0x1c]
push eax
push ebx
call fcn.005ea490
cmp byte [ebx + 0xb], 0
jns 0x41db65
push dword [ebp - 0x28]
call fcn.0057dc2b
add esp, 4
cmp byte [ebp - 0x11], 0
jns 0x41db76
push dword [ebp - 0x1c]
call fcn.0057dc2b
add esp, 4
test esi, esi
je 0x41daf0
xor eax, eax
lock cmpxchg dword [0x650778], esi
je 0x41daf0
mov ecx, esi
call fcn.005ea560
push esi
call fcn.0057dc2b
add esp, 4
jmp 0x41daf0
mov eax, dword [0x65076c]
test eax, eax
je 0x41dbcd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x65076c], 0
cmp dword [0x650770], 0
jne 0x41dbcd
and byte [0x64c0b4], 0xfe
mov eax, dword [edi + 0x10]
test eax, eax
je 0x41dbde
mov dword [0x65076c], eax
jmp 0x41daff
mov ecx, dword [0x650770]
test ecx, ecx
jne 0x41dc07
push 0xc
call fcn.0057dc30
add esp, 4
mov ecx, eax
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
mov dword [0x650770], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x41dc44
push eax
call fcn.00422c20
cmp dword [edi + 0xc], 0
jne 0x41dc2e
mov eax, dword [0x650770]
cmp byte [eax + 0xb], 0
jns 0x41dc27
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005810d5
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.0040b850
push str....._third_partylibc_srcinclude_string:2719:_assertion___s___nullptr_failed:_string::assign_received_nullptr_n
push 0x62a183
call fcn.005aacb0
int3
Function at 0x41dc60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb0
mov esi, ecx
mov eax, dword [0x64a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ecx + 4], eax
mov dword [ecx], 0x628b58
mov dword [ecx + 8], eax
mov ecx, 0x628b6c
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], eax
mov byte [esi + 0x14], al
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], al
sub esp, 0x10
movsd xmm0, qword [0x62ab40]
movups xmmword [esp], xmm0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov eax, dword [esi + 0x10]
test eax, eax
je 0x41dcc3
cmp eax, edi
je 0x41dd49
test eax, eax
jne 0x41dd4e
mov dword [esi + 0x10], edi
cmp dword [0x650774], 2
jg 0x41dcdf
test edi, edi
je 0x41dda4
sub esp, 0x10
movsd xmm0, qword [0x62ab40]
movups xmmword [esp], xmm0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x41dd01
cmp eax, edi
je 0x41dd49
test eax, eax
jne 0x41dd5c
mov dword [esi + 0x1c], edi
cmp dword [0x650774], 2
jg 0x41dd19
test edi, edi
je 0x41dde2
xor eax, eax
push eax
push eax
push esi
push 0x504620
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
je 0x41dd67
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005810d5
mov eax, esi
add esp, 0xb0
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00592636
push eax
call fcn.0043a990
add esp, 4
jmp 0x41dccb
push eax
call fcn.0043a990
add esp, 4
jmp 0x41dd05
lea ebx, [ebp - 0xbc]
push 0x1b
push str.thread_win.cc
push str.Start
push ebx
call fcn.0051dbb0
add esp, 0x10
lea edi, [ebp - 0x14]
push ebx
push edi
call fcn.005df230
add esp, 8
mov ecx, edi
push 0x63dbb0
call fcn.005fa010
mov ecx, edi
call fcn.005abb00
jmp 0x41dd32
call fcn.00417770
lea edi, [ebp - 0xbc]
mov ecx, edi
push eax
push 2
push 0x5b
push str.session_end_watcher.cc
call fcn.00409720
lea eax, [ebp - 0xb4]
push 0xb
push str.CreateEvent
push eax
call fcn.00545ec0
add esp, 0xc
mov ecx, edi
call fcn.00409610
jmp 0x41dcdf
call fcn.00417770
lea edi, [ebp - 0xbc]
mov ecx, edi
push eax
push 2
push 0x5e
push str.session_end_watcher.cc
call fcn.00409720
lea eax, [ebp - 0xb4]
push 0xb
push str.CreateEvent
push eax
call fcn.00545ec0
add esp, 0xc
mov ecx, edi
call fcn.00409610
jmp 0x41dd19
Function at 0x41e470
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov edi, dword [ebp + 8]
mov eax, dword [0x64a040]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x10]
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
mov ebx, esp
push 0x227
push str.file_util_win.cc
push str.PathExists
push ebx
call fcn.0051dbb0
add esp, 0x10
xor eax, eax
mov ecx, esi
push eax
push eax
call fcn.00536a30
mov dword [esp + 0x4c], 0xa
mov al, byte [0x64f42e]
test al, al
jne 0x41e509
cmp byte [edi + 0xb], 0
jns 0x41e4de
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
lea ecx, [esp + 0x10]
call fcn.00545870
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.005810d5
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movzx ecx, al
lea eax, [esp + 0x54]
mov dword [eax], ebx
lea esi, [esp + 0x50]
mov dword [esi], str.ScopedBlockingCall
lea edx, [esp + 0x4c]
push eax
push esi
call fcn.005da0b0
add esp, 8
jmp 0x41e4d6
Function at 0x41fa00
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb4
mov edi, dword [ebp + 8]
mov eax, dword [0x64a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
movaps xmm0, xmmword [0x63ffd0]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x41fa30
mov eax, dword [edi]
sub esp, 0x1c
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x110000
call ebx
cmp eax, 0xffffffff
je 0x41facd
mov esi, eax
lea eax, [ebp - 0xbc]
mov dword [eax], 2
xor edi, edi
push edi
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x41fbe4
lea eax, [ebp - 0xc0]
mov dword [eax], edi
push edi
push eax
push 0xc
push dword [ebp + 0x10]
push 0x24
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
je 0x41fc18
mov bl, 1
cmp dword [ebp - 0xc0], 0xc
jne 0x41fb79
push esi
call fcn.00408380
add esp, 4
test al, al
je 0x41faca
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005810d5
mov eax, ebx
add esp, 0xb4
pop esi
pop edi
pop ebx
pop ebp
ret
int3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x41fb30
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x41fae4
mov eax, dword [edi]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
movaps xmm0, xmmword [0x63ffd0]
jne 0x41fa26
cmp dword [0x650774], 2
jg 0x41fb72
call fcn.00417770
lea esi, [ebp - 0xb8]
mov ecx, esi
push eax
push 2
push 0x71
push str.registration_protocol_win.cc
call fcn.00409720
lea eax, [ebp - 0xb0]
push 0xd
push str.WaitNamedPipe
jmp 0x41fb62
cmp dword [0x650774], 2
jg 0x41fb72
call fcn.00417770
lea esi, [ebp - 0xb8]
mov ecx, esi
push eax
push 2
push 0x6c
push str.registration_protocol_win.cc
call fcn.00409720
lea eax, [ebp - 0xb0]
push 0xa
push str.CreateFile
push eax
call fcn.00545ec0
add esp, 0xc
mov ecx, esi
call fcn.00409610
xor ebx, ebx
jmp 0x41fab3
cmp dword [0x650774], 2
jg 0x41fc5d
lea edi, [ebp - 0xb8]
mov ecx, edi
push 2
push 0x8c
push str.registration_protocol_win.cc
call fcn.0040ca50
lea eax, [ebp - 0xb0]
push 0x1c
push str.TransactNamedPipe:_expected
push eax
call fcn.00545ec0
add esp, 0xc
mov ecx, eax
push 0xc
call fcn.00464a90
push 0xb
push str.__observed
push eax
call fcn.00545ec0
add esp, 0xc
mov ecx, eax
push dword [ebp - 0xc0]
call fcn.00443490
mov ecx, edi
call fcn.0040b060
jmp 0x41fc5d
cmp dword [0x650774], 2
jg 0x41fc5d
call fcn.00417770
lea edi, [ebp - 0xb8]
mov ecx, edi
push eax
push 2
push 0x7a
push str.registration_protocol_win.cc
call fcn.00409720
lea eax, [ebp - 0xb0]
push 0x17
push 0x640046
jmp 0x41fc4d
cmp dword [0x650774], 2
jg 0x41fc5d
call fcn.00417770
lea edi, [ebp - 0xb8]
mov ecx, edi
push eax
push 2
push 0x88
push str.registration_protocol_win.cc
call fcn.00409720
lea eax, [ebp - 0xb0]
push 0x11
push 0x64005e
push eax
call fcn.00545ec0
add esp, 0xc
mov ecx, edi
call fcn.00409610
xor ebx, ebx
jmp 0x41faa6
Function at 0x421680
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xf0
mov dword [ebp - 0xfc], edx
mov edi, ecx
mov eax, dword [0x64a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
pcmpeqd xmm0, xmm0
lea ebx, [ebp - 0x50]
movdqu xmmword [ebx + 0x30], xmm0
movdqu xmmword [ebx + 0x20], xmm0
movdqu xmmword [ebx + 0x10], xmm0
movdqu xmmword [ebx], xmm0
lea esi, [ecx + 0x10]
mov ecx, esi
call fcn.00421890
mov dword [ebp - 0xf8], edi
mov ecx, edi
push ebx
push 0
push 0x40
push edx
push eax
call fcn.004210f0
test al, al
je 0x421796
movzx eax, word [ebp - 0x50]
cmp eax, 0x5a4d
jne 0x42175c
mov ecx, esi
call fcn.00421890
mov esi, eax
mov eax, dword [ebp - 0x14]
mov ebx, eax
sar ebx, 0x1f
add esi, eax
adc ebx, edx
mov ecx, dword [ebp - 0xf8]
mov edi, dword [ebp - 0xfc]
push edi
push 0
push 0xf8
push ebx
push esi
call fcn.004210f0
test al, al
je 0x421852
cmp dword [edi], 0x4550
jne 0x4217d0
mov eax, dword [ebp + 8]
mov cl, 1
mov dword [ebp - 0xf8], ecx
test eax, eax
je 0x421741
mov dword [eax], esi
mov dword [eax + 4], ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005810d5
mov eax, dword [ebp - 0xf8]
add esp, 0xf0
pop esi
pop edi
pop ebx
pop ebp
ret
push 1
call fcn.00557ce0
add esp, 4
test al, al
je 0x421843
lea edi, [ebp - 0xf4]
mov ecx, edi
push 1
push 0x15a
push str.pe_image_reader.cc
call fcn.0040ca50
lea eax, [ebp - 0xec]
push 0x21
push str.invalid_e_magic_in_dos_header_of
jmp 0x421804
push 1
call fcn.00557ce0
add esp, 4
test al, al
je 0x421843
lea edi, [ebp - 0xf4]
mov ecx, edi
push 1
push 0x154
push str.pe_image_reader.cc
call fcn.0040ca50
lea eax, [ebp - 0xec]
push 0x1f
push str.could_not_read_dos_header_from
jmp 0x421804
push 1
call fcn.00557ce0
add esp, 4
test al, al
je 0x421843
lea edi, [ebp - 0xf4]
mov ecx, edi
push 1
push 0x168
push str.pe_image_reader.cc
call fcn.0040ca50
lea eax, [ebp - 0xec]
push 0x23
push str.invalid_signature_in_nt_headers_of
push eax
call fcn.00545ec0
add esp, 0xc
mov ecx, dword [ebp - 0xf8]
movsx ecx, byte [ecx + 0xb]
test ecx, ecx
jns 0x42182c
mov edx, dword [ebp - 0xf8]
mov ecx, dword [edx + 4]
mov edx, dword [edx]
mov dword [ebp - 0xf8], edx
push ecx
push dword [ebp - 0xf8]
push eax
call fcn.00545ec0
add esp, 0xc
mov ecx, edi
call fcn.0040b060
mov dword [ebp - 0xf8], 0
jmp 0x421741
push 1
call fcn.00557ce0
add esp, 4
test al, al
je 0x421843
lea edi, [ebp - 0xf4]
mov ecx, edi
push 1
push 0x162
push str.pe_image_reader.cc
call fcn.0040ca50
lea eax, [ebp - 0xec]
push 0x1f
push str.could_not_read_nt_headers_from
jmp 0x421804
Function at 0x421a80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [ebp + 0x10]
mov ecx, dword [0x64a040]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
mov esi, 0x7fffffff
cmp eax, 0x7fffffff
cmovb esi, eax
lea edi, [ebp - 0x14]
mov dword [edi], 0xffffffff
push 0
push edi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x421b19
mov eax, dword [sym.imp.KERNEL32.dll_GetFileType]
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x421ae6
cmp ebx, 0xffffffff
je 0x421af8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005810d5
mov eax, ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [ebp + 8]
push ebx
mov ebx, eax
call eax
cmp eax, 3
je 0x421afb
mov ebx, dword [ebp - 0x14]
jmp 0x421ad2
int3
mov dword [ebp - 0x14], 0xffffffff
push 0
push edi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
mov eax, dword [sym.imp.KERNEL32.dll_ReadFile]
call eax
test eax, eax
mov eax, ebx
jne 0x421ac6
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x6d
setne bl
neg ebx
jmp 0x421ad2

Function at 0x421b30
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x804
mov eax, dword [0x64a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov esi, dword [0x64c0b0]
cmp esi, 0xffffffff
je 0x421bc5
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x421bf7
mov ebx, 0x800
lea eax, [ebp - 0x810]
push ebx
push 0
push eax
call fcn.00582870
add esp, 0xc
lea eax, [ebp - 0x80d]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call fcn.0057f5ae
add esp, 4
mov edi, eax
push ebx
lea eax, [ebp - 0x810]
push eax
push edi
call fcn.005822f0
add esp, 0xc
mov eax, edi
or eax, 3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005810d5
mov eax, edi
add esp, 0x804
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x421bfa
mov esi, eax
xor eax, eax
dec eax
lock cmpxchg dword [0x64c0b0], esi
je 0x421b51
push esi
call fcn.005e65d0
add esp, 4
mov esi, dword [0x64c0b0]
jmp 0x421b51
int3
int3
Function at 0x4222d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, edx
mov ebx, ecx
mov eax, dword [0x64a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x1c]
push edx
push ecx
push esi
call fcn.00539030
add esp, 0xc
cmp byte [esi + 0xb], 0
jns 0x4222fe
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 0x42231c
push dword [ebp - 0x1c]
call fcn.0057dc2b
add esp, 4
cmp dword [ebp + 8], 0
je 0x422326
test esi, esi
jne 0x42233f
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005810d5
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esi + esi]
xor ecx, ecx
dec ecx
test esi, esi
cmovns ecx, eax
push ecx
call fcn.0057f5ae
add esp, 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push edi
push ebx
mov edi, eax
push eax
call fcn.00539030
mov eax, edi
add esp, 0xc
cmp byte [edi + 0xb], 0
jns 0x422371
mov eax, dword [ebp - 0x1c]
push esi
mov edi, dword [ebp - 0x20]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [ebp - 0x11], 0
jns 0x42238e
push dword [ebp - 0x1c]
call fcn.0057dc2b
add esp, 4
test edi, edi
je 0x4223cf
push edi
call fcn.0057f442
add esp, 4
lea ecx, [ebp - 0x1c]
push eax
push edi
push ecx
call fcn.00557410
add esp, 0xc
mov ecx, dword [ebp + 8]
cmp byte [ecx + 0xb], 0
js 0x4223de
mov eax, dword [ebp - 0x14]
mov dword [ecx + 8], eax
movsd xmm0, qword [ebp - 0x1c]
movsd qword [ecx], xmm0
push edi
call fcn.0057f43d
add esp, 4
jmp 0x422326
push str....._third_partylibc_srcinclude_string_view:267:_assertion___s___nullptr_failed:_null_pointer_passed_to_non_null_argument_of_char_traits_..._::length_n
push 0x62a183
call fcn.005aacb0
push dword [ecx]
call fcn.0057dc2b
mov ecx, dword [ebp + 8]
add esp, 4
jmp 0x4223b2
Function at 0x422b30
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x100c
call fcn.00581500
mov esi, ecx
mov eax, dword [0x64a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov edi, 0x800
lea ebx, [ebp - 0x810]
push edi
push 0xff
push ebx
call fcn.00582870
add esp, 0xc
lea eax, [ebp - 0x1014]
mov dword [eax], 1
lea ecx, [ebp - 0x1018]
mov dword [ecx], edi
push ecx
push ebx
push eax
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x422bbf
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1014]
cmp eax, 1
jne 0x422bc3
mov ecx, esi
push ebx
call fcn.00422c20
xor edi, edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005810d5
mov eax, edi
add esp, 0x100c
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov edi, eax
jmp 0x422ba6
mov edi, 0x3f4
cmp eax, 2
jne 0x422ba6
lea edi, [ebp - 0x1010]
push 0x800
push 0xff
push edi
call fcn.00582870
add esp, 0xc
push 0x400
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1018], eax
add eax, 0xfffffbff
mov edi, 0xea
cmp eax, 0xfffffc00
jb 0x422ba6
mov ecx, esi
lea eax, [ebp - 0x1010]
push eax
jmp 0x422b9f
Function at 0x423c20
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 [0x64a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x423c42
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x423c77
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x423c90
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005810d5
mov ecx, esi
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.00423d60
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005810d5
mov eax, ebx
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret
push 2
call fcn.00557ce0
add esp, 4
test al, al
je 0x423d40
call fcn.00417770
lea ecx, [ebp - 0xb8]
push eax
push 2
push 0x26f
push str.crash_report_database_win.cc
call fcn.00409720
lea eax, [ebp - 0xb0]
push 0x10
push str.CreateDirectory
push eax
call fcn.00545ec0
add esp, 0xc
mov edi, eax
movsx eax, byte [esi + 0xb]
test eax, eax
jns 0x423ce4
mov eax, dword [esi + 4]
mov esi, dword [esi]
test eax, eax
js 0x423d4e
je 0x423cee
test esi, esi
je 0x423d47
lea ebx, [ebp - 0xc4]
push eax
push esi
push ebx
call fcn.00557410
add esp, 0xc
movsx eax, byte [ebx + 0xb]
test eax, eax
jns 0x423d13
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push edi
call fcn.00545ec0
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x423d35
push dword [ebp - 0xc4]
call fcn.0057dc2b
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.00409610
xor ebx, ebx
jmp 0x423c79
push str....._third_partylibc_srcinclude_string_view:316:_assertion___len__0____s___nullptr_failed:_string_view::string_view__CharT___size_t_:_received_nullptr_n
jmp 0x423d53
push str....._third_partylibc_srcinclude_string_view:314:_assertion___len___static_cast_size_type__numeric_limits_difference_type_::max____failed:_string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type_n
push 0x62a183
call fcn.005aacb0
int3