joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x7f38471a
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
mov eax, str._.
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x2e6916ce
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x41c6a8
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41c6ae
ret

Function at 0x454fc0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x454fee
mov eax, ebx
call fcn.00455a74
cmp dword [ebx + 0x40], 0
je 0x454fe7
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x45505f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x455051
cmp dword [ebx + 8], 0
je 0x455010
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x455022
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x455051
cmp dword [ebx + 8], 0
je 0x455003
cmp eax, 3
je 0x455035
dec eax
jne 0x455003
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x455003
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x455003
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x45507d
cmp dword [ebx + 0x14], 0xcc
je 0x45507d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00455088
pop ebx
ret
Function at 0x8de224
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8de22a
pop ebp
sub ebp, 6
sub ebp, 0x4de224
jmp 0x8de288
jmp 0x8de291
mov eax, 0x4de224
add eax, ebp
add eax, 0x93
mov ecx, 0x63b
mov edx, 0xf97dc01b
xor byte [eax], dl
inc eax
dec ecx
jne 0x8de2a8
jmp 0x8de2bb
jno 0x8de318
jae 0x8de2da
or ebx, dword [ebx]
sbb esi, dword [ebx + 0x1b]
xlatb
aaa
sbb ebx, dword [edx + 0x4c63efeb]
call [edx + 0x4c63efeb]
jmp [eax]
pop edi
sbb ecx, dword [ebx - 0x70]
salc
nop
xchg edx, eax
daa
sbb ebx, dword [ebx]
sbb ebx, dword [edx + 0x1b1be3da]
sbb ebx, dword [eax]
salc
mov dword [0x1b1b1b1d], eax
mov eax, dword [0x1b1b1b33]
in al, dx
stc
sbb bl, dl
nop
lcall 0xde18, 0x1b1b1b17
sbb ebx, dword [ebx]
sbb dh, bl
dec ebx
jae 0x8de2ff
sub eax, 0x5b731b12
mov al, 0x5f
sbb ebx, dword [edx]
aaa
aas
jae 0x8de32e
sbb ebx, dword [ebx]
sbb esi, ebx
push ds
sbb ebx, dword [ebx]
sbb esi, edx
xor dword [ebx], ebx
sbb ebx, dword [ebx]
dec esi
xchg esi, eax
ja 0x8de363
sbb edx, dword [eax + 0x1b1b139e]
sbb edx, dword [eax + 0x1b1b178e]
sbb ebx, dword [ebx]
sbb edx, dword [eax + 0x1b1b0b96]
sbb ebx, edx
sbb dword [edx], ebp
sbb dword [eax + 0x14521fd9], ebx
sahf
out dx, eax
in al, 0xe4
in al, 0x46
fst dword [edi]
sbb edx, dword [eax + 0x1b1f3f97]
sbb ebx, dword [ebx]
nop
xchg esi, eax
or ebx, dword [ebx]
sbb ebx, dword [ebx]
invalid
aas
pop ds
sbb ebx, dword [ebx]
sbb esi, dword [ebx - 7]
jae 0x8de34c
sub eax, 0x5b731b12
mov al, 0x5f
sbb ebx, dword [edx]
aaa
aas
dec edx
push ds
sbb ebx, dword [ebx]
sbb esi, edx
pop edx
sbb dword [ebx], ebx
sbb ecx, dword [esi - 0x6a]
ja 0x8de3ac
sbb esp, esp
outsb dx, byte [esi]
pop ss
in al, 0x6e
adc esi, ebx
imul ebx, dword [ebx], 0xa6901b1b
adc ebx, dword [ebx]
sbb ebx, dword [ebx]
sub dl, dl
lcall 0x9a06, 0x747903e9
jmp 0x7025c90
sbb ebx, dword [ebx]
jge 0x8de331
pop es
and bl, byte [ebx - 0x60eb0c20]
add dword [ebx], ebx
sbb ebx, dword [ebx]
wait
loopne 0x8de3a1
adc al, 0x9f
or bl, byte [ebx]
sbb ebx, dword [ebx]
jge 0x8de351
loopne 0x8de39d
adc al, 0x9f
push cs
sbb ebx, dword [ebx]
sbb ebx, dword [edx - 0xe]
xlatb
in al, 0xe4
in al, 0x32
push edi
and bl, byte [edx]
cwde
ficomp dword [esi]
cwde
pop ds
repne cmpsb byte [esi], byte es:[edi]
in al, 0xe4
in al, 0x32
dec edi
and bl, byte [ecx]
cwde
ficomp dword [0x981ff198]
push ds
mov al, 0xe4
in al, 0xe4
inc esi
fst dword [edi]
sbb ecx, dword [esi - 0x70]
test dword [ebp + 0x4c], 0x176e904e
nop
adc sp, di
test eax, 0x9a1d919b
fstp qword [edx]
sbb ebx, dword [ebx]
sbb edx, dword [ebx + 0x1adc9a1c]
sbb ebx, dword [ebx]
sbb esp, dword [eax + 0x1b1b1b19]
sbb ecx, ecx
adc al, 0x9e
push ds
sbb ebx, dword [ebx]
sbb edx, dword [ecx - 0x36f6a2f3]
adc al, 0x98
ret
Function at 0x40235b
Capabilities:
Check if file exists
Delete file

Disassembly:
jmp 0x54cac0
jmp fcn.004052e5

Function at 0x403e18
Capabilities:
Terminate process

Disassembly:
jmp 0x4d4aa9
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x4d4aba
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00401b1d
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x405588
Capabilities:
Parse pe header

Disassembly:
jmp 0x4c56de
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4c571e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4c571e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4c571e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4c571e
cmp dword [ecx + 0x74], 0xe
jbe 0x4c571e
cmp dword [ecx + 0xe8], 0
je 0x4c571e
mov al, 1
ret
xor al, al
ret

Function at 0x406e1a
Capabilities:
Query environment variable

Disassembly:
jmp 0x5283b7
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x5283c8
pop esi
ret
push ebx
push edi
push esi
call fcn.0052829e
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004047e6
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5283f0
push ebx
push esi
push edi
call fcn.00407036
add esp, 0xc
push 0
call fcn.00401d25
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x407d1f
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x493730
mov eax, dword fs:[0x18]
mov ecx, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xa0]
mov eax, dword [eax + 0xc]
cmp eax, dword [ecx + 0x24]
sete al
ret
Function at 0x467a60
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x560271
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x5ca018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov al, byte [ecx + 0x45]
mov byte [ebp - 0xe], al
lea eax, [ebp - 0xd]
push str._initialized__.state_____initialized__.kStateValid
push eax
lea eax, [ebp - 0xe]
mov byte [ebp - 0xd], 2
push eax
call fcn.00406f46
add esp, 0xc
test eax, eax
je 0x467ad8
push eax
push 0xaa
push str.T:p4PatcherExternalLibraries_sentry_native0.3.1externalcrashpad_snapshotwin_system_snapshot_win.cc
push str.unsigned_char___thiscall_crashpad::internal::SystemSnapshotWin::CPUCount_void__const
lea ecx, [ebp - 0xe0]
call fcn.00404e21
lea ecx, [ebp - 0xe0]
call fcn.004082e7
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x24]
cmp ecx, 0xff
jbe 0x467b3f
push 1
push 0xb0
push str.T:p4PatcherExternalLibraries_sentry_native0.3.1externalcrashpad_snapshotwin_system_snapshot_win.cc
push str.unsigned_char___thiscall_crashpad::internal::SystemSnapshotWin::CPUCount_void__const
lea ecx, [ebp - 0x188]
call fcn.00403189
push str.dwNumberOfProcessors_exceeds_uint8_t_storage
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
call fcn.0040533a
add esp, 8
lea ecx, [ebp - 0x188]
call fcn.004082e7
mov ecx, dword [ebp - 0x24]
cmp ecx, 0xff
jbe 0x467b3f
xor dl, dl
jmp 0x467b41
mov dl, 1
test dl, dl
movzx ecx, cl
mov eax, 0xff
cmovne eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x49fd10
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5ca018]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x108], edx
test edi, edi
jg 0x49fd4c
jl 0x49fd3a
test edx, edx
jne 0x49fd4c
mov eax, dword [ebp + 8]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405a92
mov esp, ebp
pop ebp
ret
mov ecx, 1
mov dword [ebp - 0x84], 0xedb88320
mov eax, ecx
nop dword [eax]
mov dword [ebp + eax*4 - 0x84], ecx
inc eax
add ecx, ecx
cmp eax, 0x20
jl 0x49fd60
push ebx
push esi
xor esi, esi
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebp + esi - 0x84]
lea ecx, [ebp - 0x84]
xor edx, edx
test eax, eax
je 0x49fda0
test al, 1
je 0x49fd99
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x49fd93
mov dword [ebp + esi - 0x104], edx
add esi, 4
cmp esi, 0x80
jl 0x49fd80
xor esi, esi
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [ebp + esi - 0x104]
lea ecx, [ebp - 0x104]
xor edx, edx
test eax, eax
je 0x49fde0
test al, 1
je 0x49fdd9
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x49fdd3
mov dword [ebp + esi - 0x84], edx
add esi, 4
cmp esi, 0x80
jl 0x49fdc0
mov ebx, dword [ebp + 8]
nop word [eax + eax]
xor esi, esi
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebp + esi - 0x84]
lea ecx, [ebp - 0x84]
xor edx, edx
test eax, eax
je 0x49fe30
test al, 1
je 0x49fe29
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x49fe23
mov dword [ebp + esi - 0x104], edx
add esi, 4
cmp esi, 0x80
jl 0x49fe10
mov edx, dword [ebp - 0x108]
mov eax, edx
and eax, 1
or eax, 0
je 0x49fe70
xor ecx, ecx
lea eax, [ebp - 0x104]
test ebx, ebx
je 0x49fe6e
nop
test bl, 1
je 0x49fe67
xor ecx, dword [eax]
add eax, 4
shr ebx, 1
jne 0x49fe60
mov ebx, ecx
shrd edx, edi, 1
sar edi, 1
mov eax, edx
or eax, edi
mov dword [ebp - 0x108], edx
je 0x49ff06
xor esi, esi
nop dword [eax + eax]
mov eax, dword [ebp + esi - 0x104]
lea ecx, [ebp - 0x104]
xor edx, edx
test eax, eax
je 0x49feb0
test al, 1
je 0x49fea9
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x49fea3
mov dword [ebp + esi - 0x84], edx
add esi, 4
cmp esi, 0x80
jl 0x49fe90
mov edx, dword [ebp - 0x108]
mov eax, edx
and eax, 1
or eax, 0
je 0x49fef0
xor ecx, ecx
lea eax, [ebp - 0x84]
test ebx, ebx
je 0x49feee
nop
test bl, 1
je 0x49fee7
xor ecx, dword [eax]
add eax, 4
shr ebx, 1
jne 0x49fee0
mov ebx, ecx
shrd edx, edi, 1
sar edi, 1
mov ecx, edx
or ecx, edi
mov dword [ebp - 0x108], edx
jne 0x49fe00
xor ebx, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
pop ebx
xor ecx, ebp
pop edi
call fcn.00405a92
mov esp, ebp
pop ebp
ret
Function at 0x526819
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5ca018]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
push esi
push edi
cmp edx, ebx
je 0x526864
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00526ceb
test al, al
jne 0x52685e
sub edx, 2
cmp edx, ebx
jne 0x526844
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x526886
lea eax, [ebx + 2]
cmp edx, eax
je 0x526886
push ecx
xor edi, edi
push edi
push edi
push ebx
call fcn.00526412
add esp, 0x10
jmp 0x52696c
push esi
lea ecx, [ebp - 0x255]
call fcn.00526ceb
sub edx, ebx
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor edi, edi
push edi
push edi
and eax, edx
push edi
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
mov eax, dword [ebp - 0x25c]
cmp esi, 0xffffffff
jne 0x5268ca
push eax
jmp 0x526876
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
sar ecx, 2
push 0x2e
mov dword [ebp - 0x264], ecx
pop ecx
cmp word [ebp - 0x228], cx
jne 0x5268ff
cmp word [ebp - 0x226], di
je 0x52691a
cmp word [ebp - 0x226], cx
jne 0x5268ff
cmp word [ebp - 0x224], di
je 0x52691a
push eax
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push ebx
push eax
call fcn.00526412
add esp, 0x10
test eax, eax
jne 0x526961
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
mov eax, dword [ebp - 0x25c]
pop ecx
jne 0x5268db
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0x264]
sub eax, edx
sar eax, 2
cmp ecx, eax
je 0x526963
push 0x525c15
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00403945
add esp, 0x10
jmp 0x526963
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405a92
leave
ret
Function at 0x534800
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x3f
sar ecx, 6
push ebx
imul ebx, eax, 0x38
push esi
mov eax, dword [ecx*4 + 0x5cf790]
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], 0xa
mov edx, dword [ebx + eax + 0x18]
mov dword [ebp - 0x20], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x53484a
push 0xa
pop edi
cmp word [esi], di
jne 0x53484a
or byte [ebx + eax + 0x28], 4
jmp 0x53484f
and byte [ebx + eax + 0x28], 0xfb
lea edx, [esi + edx*2]
mov eax, esi
mov dword [ebp - 0x14], edx
mov edi, esi
mov dword [ebp - 8], eax
cmp esi, edx
jae 0x5349b5
mov dword [ebp - 0x18], 0xd
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0x1c], ecx
push 0x1a
pop ecx
cmp dx, cx
mov ecx, dword [ebp - 0xc]
je 0x534995
add eax, 2
cmp dx, word [ebp - 0x18]
je 0x534899
mov word [edi], dx
add edi, 2
mov dword [ebp - 8], eax
jmp 0x53498a
cmp eax, dword [ebp - 0x14]
jae 0x5348cf
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x10]
mov edx, eax
mov esi, dword [ebp + 0xc]
sete cl
xor eax, eax
push 0xa
lea ecx, [ecx*2 + 2]
add dword [ebp - 8], ecx
pop ecx
cmp dx, cx
sete al
dec eax
and eax, 3
add eax, ecx
jmp 0x534981
push 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x24]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x53497e
cmp dword [ebp - 0x24], 0
je 0x53497e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x5cf790]
test byte [ebx + eax + 0x28], 0x48
je 0x534957
mov dx, word [ebp - 4]
lea eax, [edi + 2]
mov dword [ebp - 0x1c], eax
cmp dx, word [ebp - 0x10]
jne 0x534922
push 0xa
pop edx
mov word [edi], dx
jmp 0x534953
push 0xd
pop eax
mov word [edi], ax
mov eax, dword [ecx*4 + 0x5cf790]
push 0xa
mov byte [ebx + eax + 0x2a], dl
mov eax, dword [ecx*4 + 0x5cf790]
shr dx, 8
mov byte [ebx + eax + 0x2b], dl
mov eax, dword [ecx*4 + 0x5cf790]
pop edx
mov byte [ebx + eax + 0x2c], dl
mov eax, dword [ebp - 0x1c]
mov edi, eax
jmp 0x534987
push 0xa
pop eax
cmp word [ebp - 4], ax
jne 0x534964
cmp edi, esi
je 0x534981
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401122
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x534987
push 0xd
pop eax
mov word [edi], ax
add edi, 2
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jb 0x53486b
jmp 0x5349b5
mov ecx, dword [ecx*4 + 0x5cf790]
mov al, byte [ecx + ebx + 0x28]
test al, 0x40
jne 0x5349ac
or al, 2
mov byte [ecx + ebx + 0x28], al
jmp 0x5349b5
push 0x1a
pop eax
mov word [edi], ax
add edi, 2
sub edi, esi
and edi, 0xfffffffe
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x53ca50
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b84a
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x5ca018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, esi
mov dword [ebp - 0x2c], 0
cmp dword [esi + 0x14], 8
jb 0x53ca90
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x53caa4
mov al, 1
jmp 0x53cb5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x53cb54
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x53cabf
mov eax, dword [esi]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00402351
add esp, 8
mov esi, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 1
call fcn.00401b13
push eax
push 2
push 0x247
push str.T:p4PatcherExternalLibraries_sentry_native0.3.1externalcrashpadclientcrash_report_database_win.cc
push str.bool___cdecl_crashpad::_anonymous_namespace::CreateDirectoryIfNecessary_const_class_base::FilePath__
lea ecx, [ebp - 0xe4]
call fcn.00405484
push str.CreateDirectory
push eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x2c], 3
call fcn.0040533a
add esp, 8
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x53cb30
mov ecx, dword [esi]
push dword [esi + 0x10]
push ecx
push eax
call fcn.0040299b
add esp, 0xc
lea ecx, [ebp - 0xe4]
call fcn.004042b9
lea ecx, [ebp - 0x28]
call fcn.00405c40
xor al, al
jmp 0x53cb5d
push esi
call fcn.0053cf40
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00405a92
mov esp, ebp
pop ebp
ret
Function at 0x53cf40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b99f
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x5ca018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, esi
mov dword [ebp - 0x44], 0
cmp dword [esi + 0x14], 8
jb 0x53cf80
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x53d032
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x53cf9a
mov eax, dword [esi]
mov dword [ebp - 0x4c], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00402351
add esp, 8
mov esi, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x44], 1
call fcn.00401b13
push eax
push 2
push 0x231
push str.T:p4PatcherExternalLibraries_sentry_native0.3.1externalcrashpadclientcrash_report_database_win.cc
push str.bool___cdecl_crashpad::_anonymous_namespace::EnsureDirectory_const_class_base::FilePath__
lea ecx, [ebp - 0x1ac]
call fcn.00405484
push str.GetFileAttributes
push eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x44], 3
call fcn.0040533a
add esp, 8
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x53d00b
mov ecx, dword [esi]
push dword [esi + 0x10]
push ecx
push eax
call fcn.0040299b
add esp, 0xc
lea ecx, [ebp - 0x1ac]
call fcn.004042b9
lea ecx, [ebp - 0x28]
call fcn.00405c40
xor al, al
jmp 0x53d0e0
test al, 0x10
jne 0x53d0de
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x53d044
mov eax, dword [esi]
mov dword [ebp - 0x54], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00402351
add esp, 8
mov esi, eax
push 2
push 0x235
push str.T:p4PatcherExternalLibraries_sentry_native0.3.1externalcrashpadclientcrash_report_database_win.cc
push str.bool___cdecl_crashpad::_anonymous_namespace::EnsureDirectory_const_class_base::FilePath__
lea ecx, [ebp - 0xfc]
mov dword [ebp - 4], 2
mov dword [ebp - 0x44], 4
call fcn.00403189
push str.GetFileAttributes
push eax
mov dword [ebp - 4], 3
mov dword [ebp - 0x44], 0xc
call fcn.0040533a
add esp, 8
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x53d0af
mov ecx, dword [esi]
push dword [esi + 0x10]
push ecx
push eax
call fcn.0040299b
push str.:_not_a_directory
push eax
call fcn.0040533a
add esp, 0x14
lea ecx, [ebp - 0xfc]
call fcn.004082e7
lea ecx, [ebp - 0x40]
call fcn.00405c40
xor al, al
jmp 0x53d0e0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00405a92
mov esp, ebp
pop ebp
ret
Function at 0x53d170
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56ba11
mov eax, dword fs:[0]
push eax
sub esp, 0xac
push ebx
push esi
push edi
mov eax, dword [0x5ca018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov eax, dword [edi]
cmp eax, dword [edi + 4]
je 0x53d1ef
push 4
push 0x15c
push str.T:p4PatcherExternalLibraries_sentry_native0.3.1externalcrashpadclientcrash_report_database_win.cc
push str.enum_crashpad::CrashReportDatabase::OperationStatus___thiscall_crashpad::_anonymous_namespace::Metadata::FindReports_enum_crashpad::_anonymous_namespace::ReportState_class_std::vector_struct_crashpad::CrashReportDatabase::Report_class_std::allocator_struct_crashpad::CrashReportDatabase::Report______const
lea ecx, [ebp - 0xb8]
call fcn.00403189
push 0x5733ac
mov dword [ebp - 4], ebx
mov ebx, 1
push str.Check_failed:_reports__empty__
push eax
mov dword [ebp - 0x10], ebx
call fcn.0040533a
add esp, 8
push eax
call fcn.0040533a
add esp, 8
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x53d206
lea ecx, [ebp - 0xb8]
call fcn.004082e7
mov ebx, dword [esi + 0x24]
mov esi, dword [esi + 0x20]
cmp esi, ebx
je 0x53d25b
mov eax, dword [ebp + 8]
cmp dword [esi + 0x68], eax
jne 0x53d254
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
jb 0x53d223
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x53d251
test al, 0x10
jne 0x53d251
mov eax, dword [edi + 4]
push esi
cmp eax, dword [edi + 8]
je 0x53d249
mov ecx, eax
call fcn.0040201d
add dword [edi + 4], 0x68
jmp 0x53d251
push eax
mov ecx, edi
call fcn.00401366
mov eax, dword [ebp + 8]
add esi, 0x70
cmp esi, ebx
jne 0x53d213
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5ca018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x18], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebx + 0x24]
movups xmm0, xmmword [eax]
mov esi, dword [ebx + 0x20]
movups xmmword [ebp - 0x14], xmm0
cmp esi, edi
je 0x53d306
nop
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.004068b1
test al, al
jne 0x53d306
add esi, 0x70
cmp esi, edi
jne 0x53d2f0
cmp esi, dword [ebx + 0x24]
jne 0x53d323
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405a92
mov esp, ebp
pop ebp
ret 8
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
jb 0x53d32e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x53d30b
shr eax, 3
and eax, 2
jne 0x53d347
mov ecx, dword [ebp - 0x18]
mov dword [ecx], esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405a92
mov esp, ebp
pop ebp
ret 8