joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447ec0
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [ebp + 8]
movzx edx, byte [eax + 0xb]
test dl, dl
jns 0x447ed5
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov ecx, edx
cmp edx, 4
jb 0x447f06
nop dword [eax]
imul esi, dword [eax], 0x5bd1e995
mov edi, esi
shr edi, 0x18
xor edi, esi
imul esi, edi, 0x5bd1e995
imul ecx, ecx, 0x5bd1e995
xor ecx, esi
add eax, 4
add edx, 0xfffffffc
cmp edx, 3
ja 0x447ee0
cmp edx, 1
je 0x447f27
cmp edx, 2
je 0x447f1e
cmp edx, 3
jne 0x447f32
movzx edx, byte [eax + 2]
shl edx, 0x10
xor ecx, edx
movzx edx, byte [eax + 1]
shl edx, 8
xor ecx, edx
movzx eax, byte [eax]
xor eax, ecx
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xf
xor eax, ecx
pop esi
pop edi
pop ebp
ret 4
Function at 0x44f7b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
mov dword [ecx], 0
test ebx, ebx
je 0x44f7eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x44f802
lea eax, [ebx + 1]
cmp eax, 2
jb 0x44f7e4
mov dword [esi], ebx
call fcn.004568e0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp eax, ebx
je 0x44f819
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.004568e0
push dword [esi]
call fcn.00456c80
add esp, 4
mov dword [esi], 0
jmp 0x44f7d5
int3

Function at 0x44f870
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
xor ebx, ebx
xor eax, eax
cmp dword [ebp + 0xc], ebx
sete al
xor ecx, ecx
cmp dword [ebp + 8], ebx
sete cl
push ebx
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi], ebx
test eax, eax
je 0x44f8ee
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x44f8d7
lea eax, [edi + 1]
cmp eax, 2
jb 0x44f8bb
mov dword [esi], edi
call fcn.004568e0
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi]
mov byte [esi + 4], 1
inc eax
cmp eax, 1
jbe 0x44f8f2
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 8
call fcn.004568e0
push dword [esi]
call fcn.00456c80
add esp, 4
mov dword [esi], 0
jmp 0x44f8ac
mov byte [esi + 4], 1
int3
Function at 0x45bfd0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x124
mov eax, dword [0x4e2024]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x4f4c10]
mov ecx, dword [0x4e5e14]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x45c021
mov eax, dword [0x4f4c0c]
mov esi, dword [eax]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046b8b5
mov eax, esi
add esp, 0x124
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4f4c10
call fcn.0046ad57
add esp, 4
cmp dword [0x4f4c10], 0xffffffff
jne 0x45c003
lea edi, [ebp - 0x128]
xor esi, esi
push 0x118
push esi
push edi
call fcn.0046e590
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 0x54
call fcn.0046acad
add esp, 4
mov esi, eax
mov ebx, dword [ebx]
mov eax, dword [0x4f4c40]
mov ecx, dword [0x4e5e14]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x45c0ca
mov ecx, esi
push ebx
push 0x4f4c1c
push edi
call fcn.00437640
mov dword [0x4f4c0c], esi
push 0x4f4c10
call fcn.0046adcd
add esp, 4
jmp 0x45c003
push 0x4f4c40
call fcn.0046ad57
add esp, 4
cmp dword [0x4f4c40], 0xffffffff
jne 0x45c0a4
xorps xmm0, xmm0
movups xmmword [0x4f4c2c], xmm0
movups xmmword [0x4f4c1c], xmm0
mov dword [0x4f4c3c], 0
push 0x4f4c1c
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x4f4c40
call fcn.0046adcd
add esp, 4
jmp 0x45c0a4
Function at 0x45c590
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x140c
call fcn.0046c230
mov eax, dword [0x4e2024]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x4e5d2c]
cmp eax, 0xffffffff
je 0x45c5c2
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test bl, 3
jne 0x45c5d7
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046b8b5
add esp, 0x140c
pop esi
pop edi
pop ebx
pop ebp
ret
and ebx, 0xfffffffc
lea eax, [ebp - 0x810]
push 0x800
push ebx
push eax
call fcn.0046e010
add esp, 0xc
mov ecx, dword [0x4e5d2c]
lea eax, [ebp - 0x80f]
push eax
mov dword [ebp - 0x1414], ecx
push ecx
call fcn.0043eca0
add esp, 8
test ebx, ebx
je 0x45c618
push ebx
call fcn.0046ad1c
add esp, 4
mov eax, dword [0x4f5858]
mov ecx, dword [0x4e5e14]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x45c703
mov esi, dword [0x4f5854]
push esi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x45c748
lea eax, [ebp - 0x1410]
push 0xc00
push 0x4f4c54
push eax
call fcn.0046e010
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov al, 1
mov ecx, 0x100
lea edx, [ebp - 0x1408]
test al, 1
je 0x45c6ee
mov dword [ebp - 0x1418], ecx
xor esi, esi
mov edi, edx
xor eax, eax
jmp 0x45c69c
inc esi
add edi, 0xc
cmp esi, 0x100
je 0x45c6e0
mov ebx, dword [ebp + esi*8 - 0x810]
test ebx, ebx
je 0x45c690
cmp dword [edi - 8], 0
je 0x45c690
mov ecx, dword [ebp + esi*8 - 0x80c]
cmp ecx, dword [edi]
jne 0x45c690
mov ecx, dword [edi - 4]
test ecx, ecx
je 0x45c690
mov dword [ebp + esi*8 - 0x810], 0
call dword [section..00cfg]
push ebx
call ecx
lea edx, [ebp - 0x1408]
add esp, 4
mov al, 1
jmp 0x45c690
mov esi, dword [ebp - 0x1418]
lea ecx, [esi - 1]
cmp esi, 2
jae 0x45c67b
push 2
push dword [ebp - 0x1414]
call fcn.0043eca0
add esp, 8
jmp 0x45c5c2
push 0x4f5858
call fcn.0046ad57
add esp, 4
cmp dword [0x4f5858], 0xffffffff
jne 0x45c639
push 4
call fcn.0046acad
add esp, 4
mov esi, eax
mov ecx, eax
call fcn.004505d0
mov dword [0x4f5854], esi
push 0x4f5858
call fcn.0046adcd
add esp, 4
jmp 0x45c639
mov ecx, esi
call fcn.004505e0
jmp 0x45c64e

Function at 0x45cb30
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
test ecx, ecx
je 0x45cb68
mov edx, dword [ebp + 0xc]
xor esi, esi
nop word cs:[eax + eax]
movzx edi, al
movzx ebx, byte [edx + esi]
xor ebx, edi
shr eax, 8
xor eax, dword [ebx*4 + 0x4d8a08]
inc esi
cmp ecx, esi
jne 0x45cb50
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x45e760
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
movzx eax, byte [ecx + 0x27]
test al, al
js 0x45e81a
test eax, eax
jne 0x45e80f
cmp dword [esi + 0x28], 0
jne 0x45e80f
mov byte [esi + 0x2c], 0
mov eax, dword [esi + 8]
mov dword [esi + 4], eax
cmp eax, dword [esi + 0xc]
je 0x45e849
lea edi, [esi + 0x10]
lea ecx, [eax + 1]
mov dword [esi + 8], ecx
movsx eax, byte [eax]
mov ecx, edi
push 0
push eax
call fcn.0044a3e0
cmp eax, 0xffffffff
jne 0x45e83a
cmp dword [esi + 0x30], 1
je 0x45e822
mov eax, dword [esi + 8]
mov bl, 1
cmp eax, dword [esi + 0xc]
je 0x45e84f
nop dword [eax]
movsx eax, byte [eax]
mov ecx, edi
push 0
push eax
call fcn.0044a3e0
cmp eax, 0xffffffff
jne 0x45e84f
mov eax, dword [esi + 8]
cmp dword [esi + 0x30], 1
je 0x45e7f6
inc eax
mov dword [esi + 8], eax
cmp eax, dword [esi + 0xc]
jne 0x45e7d0
jmp 0x45e84f
mov cl, byte [eax]
add cl, 0xf7
cmp cl, 0x17
ja 0x45e7eb
movzx ecx, cl
mov edx, 0x80001b
bt edx, ecx
jae 0x45e7eb
jmp 0x45e84f
mov ecx, esi
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.004ba0b0
mov eax, dword [esi + 0x20]
jmp 0x45e774
mov eax, dword [esi + 4]
mov al, byte [eax]
add al, 0xf7
cmp al, 0x17
ja 0x45e7be
movzx eax, al
mov ecx, 0x80001b
bt ecx, eax
jae 0x45e7be
mov eax, dword [esi + 8]
mov dword [esi + 4], eax
cmp eax, dword [esi + 0xc]
jne 0x45e79c
mov byte [esi + 0x2c], 1
xor ebx, ebx
mov eax, ebx
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4673f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4f6650]
mov ecx, dword [0x4e5e14]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x46741b
mov ecx, 0x4f6648
pop ebp
jmp fcn.0045c760
push 0x4f6650
call fcn.0046ad57
add esp, 4
cmp dword [0x4f6650], 0xffffffff
jne 0x467410
xor eax, eax
mov dword [0x4f664c], eax
mov dword [0x4f6648], eax
mov ecx, 0x4f6648
push eax
call fcn.004383f0
push 0x4f6650
call fcn.0046adcd
add esp, 4
jmp 0x467410

Function at 0x48bd47
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048bf90

Function at 0x48e940
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048e94b

Function at 0x495ef0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
lea esi, [ebp - 0x18]
mov dword [esi - 4], esp
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0x414220
mov eax, dword fs:[0]
mov dword [esi], eax
mov dword fs:[0], esi
call fcn.0047bc3a
mov ecx, eax
call dword [section..00cfg]
mov dword [esi + 8], 1
call ecx
push 2
call fcn.0046f38f
add esp, 4
push eax
push 1
push 0x28
push str.terminate_handler_unexpectedly_returned_n
call fcn.00481286
add esp, 0x10
call fcn.0047d100
nop word cs:[eax + eax]
push ebp
sub esp, 0x10
add ebp, 0xc
call fcn.0046c741
nop dword [eax]
push ebp
sub esp, 0x10
add ebp, 0xc
mov dword [ebp - 0x1c], esp
push 2
call fcn.0046f38f
add esp, 4
push eax
push 1
push 0x32
push str.terminate_handler_unexpectedly_threw_an_exception_n
call fcn.00481286
add esp, 0x10
call fcn.0047d100
int3

Function at 0x495f70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
lea esi, [ebp - 0x18]
mov dword [esi - 4], esp
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0x414220
mov eax, dword fs:[0]
mov dword [esi], eax
mov dword fs:[0], esi
call fcn.0047bc3a
mov ecx, eax
call dword [section..00cfg]
mov dword [esi + 8], 1
call ecx
push 2
call fcn.0046f38f
add esp, 4
push eax
push 1
push 0x28
push str.terminate_handler_unexpectedly_returned_n
call fcn.00481286
add esp, 0x10
call fcn.0047d100
nop word cs:[eax + eax]
push ebp
sub esp, 0x10
add ebp, 0xc
call fcn.0046c741
nop dword [eax]
push ebp
sub esp, 0x10
add ebp, 0xc
mov dword [ebp - 0x1c], esp
push 2
call fcn.0046f38f
add esp, 4
push eax
push 1
push 0x32
push str.terminate_handler_unexpectedly_threw_an_exception_n
call fcn.00481286
add esp, 0x10
call fcn.0047d100
int3
Function at 0x496b60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov dword [ebp - 0x20], ecx
mov eax, dword [0x4e2024]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
xor eax, eax
dec eax
mov dword [ecx - 4], eax
mov dword [ecx - 8], eax
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x1c], 0xffffffff
mov ebx, dword [edi + 0x24]
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [section..00cfg]
mov ecx, ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x24]
call esi
mov ebx, eax
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
sub esi, eax
push dword [edi + 0x20]
push esi
push 1
push eax
call fcn.00481286
add esp, 0x10
cmp eax, esi
jne 0x496bf7
cmp ebx, 1
je 0x496b85
cmp ebx, 2
mov esi, 0xffffffff
je 0x496bfa
mov eax, dword [ebp - 0x20]
push dword [eax + 0x20]
call fcn.00480dae
add esp, 4
xor esi, esi
neg eax
sbb esi, esi
jmp 0x496bfa
xor esi, esi
dec esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046b8b5
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x496c10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
cmp byte [ecx + 0x2c], 0
je 0x496c3b
push dword [ecx + 0x20]
push edi
push 1
push eax
call fcn.00481286
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 8
test edi, edi
jle 0x496c76
mov dword [ebp - 0x10], ecx
xor edi, edi
mov esi, dword [ebp - 0x10]
movzx eax, byte [eax + edi]
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
mov ebx, dword [eax + 0x30]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
push dword [ebp - 0x14]
call ebx
cmp eax, 0xffffffff
je 0x496c78
inc edi
mov edx, dword [ebp + 0xc]
cmp edx, edi
mov eax, dword [ebp + 8]
jne 0x496c47
mov edi, edx
jmp 0x496c78
xor edi, edi
mov eax, edi
add esp, 8
jmp 0x496c34
Function at 0x496c80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov ebx, dword [ebp + 8]
mov eax, dword [0x4e2024]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor edi, edi
dec edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
cmp ebx, edi
je 0x496cc6
mov byte [ebp - 0x19], bl
cmp byte [ecx + 0x2c], 0
je 0x496ce0
xor esi, esi
inc esi
lea eax, [ebp - 0x19]
push dword [ecx + 0x20]
push esi
push esi
push eax
call fcn.00481286
add esp, 0x10
cmp eax, esi
je 0x496cc8
jmp 0x496cca
xor ebx, ebx
mov edi, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046b8b5
mov eax, edi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret 4
lea eax, [ebp - 0x18]
lea edx, [ebp - 0x20]
mov dword [edx], eax
lea edi, [ebp - 0x19]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], 0xffffffff
mov esi, dword [ecx + 0x24]
mov eax, dword [ecx + 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi]
mov ebx, dword [eax + 8]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp - 0x2c]
call ebx
cmp dword [ebp - 0x24], edi
je 0x496d81
mov ebx, eax
cmp eax, 3
je 0x496d69
cmp ebx, 1
ja 0x496d81
mov esi, dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
sub esi, ecx
mov eax, dword [ebp - 0x28]
push dword [eax + 0x20]
push esi
push 1
push ecx
call fcn.00481286
add esp, 0x10
cmp eax, esi
jne 0x496d81
mov edi, dword [ebp - 0x24]
cmp ebx, 1
mov ecx, dword [ebp - 0x28]
je 0x496cee
mov ebx, dword [ebp + 8]
jmp 0x496cc8
xor esi, esi
inc esi
mov eax, dword [ebp - 0x28]
push dword [eax + 0x20]
push esi
push esi
push edi
call fcn.00481286
add esp, 0x10
cmp eax, esi
je 0x496d61
xor edi, edi
dec edi
jmp 0x496cca

Function at 0x496de0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
cmp byte [ecx + 0x2c], 0
je 0x496e0b
push dword [ecx + 0x20]
push edi
push 2
push eax
call fcn.00481286
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 8
test edi, edi
jle 0x496e47
mov dword [ebp - 0x10], ecx
xor edi, edi
mov esi, dword [ebp - 0x10]
movzx eax, word [eax + edi*2]
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
mov ebx, dword [eax + 0x30]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
push dword [ebp - 0x14]
call ebx
cmp ax, 0xffff
je 0x496e49
inc edi
mov edx, dword [ebp + 0xc]
cmp edx, edi
mov eax, dword [ebp + 8]
jne 0x496e17
mov edi, edx
jmp 0x496e49
xor edi, edi
mov eax, edi
add esp, 8
jmp 0x496e04
Function at 0x496e50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
movzx esi, word [ebp + 8]
mov eax, dword [0x4e2024]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
dec eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
cmp si, 0xffff
je 0x496e9d
mov word [ebp - 0x1a], si
cmp byte [ecx + 0x2c], 0
je 0x496eb5
lea eax, [ebp - 0x1a]
push dword [ecx + 0x20]
push 1
push 2
push eax
call fcn.00481286
add esp, 0x10
cmp eax, 1
je 0x496e9f
xor esi, esi
dec esi
jmp 0x496e9f
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046b8b5
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret 4
lea eax, [ebp - 0x18]
lea edx, [ebp - 0x20]
mov dword [edx], eax
lea edi, [ebp - 0x1a]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], 0xffffffff
mov esi, dword [ecx + 0x24]
mov eax, dword [ecx + 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi]
mov ebx, dword [eax + 8]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp - 0x2c]
call ebx
cmp dword [ebp - 0x24], edi
je 0x496e98
mov ebx, eax
cmp eax, 3
je 0x496f43
cmp ebx, 1
ja 0x496e98
mov esi, dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
sub esi, ecx
mov eax, dword [ebp - 0x28]
push dword [eax + 0x20]
push esi
push 1
push ecx
call fcn.00481286
add esp, 0x10
cmp eax, esi
jne 0x496e98
mov edi, dword [ebp - 0x24]
cmp ebx, 1
mov ecx, dword [ebp - 0x28]
je 0x496ec3
movzx esi, word [ebp + 8]
jmp 0x496e9f
xor esi, esi
inc esi
mov eax, dword [ebp - 0x28]
push dword [eax + 0x20]
push esi
push esi
push edi
call fcn.00481286
add esp, 0x10
cmp eax, esi
jne 0x496e98
jmp 0x496f3a
Function at 0x4aab00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
push 8
call fcn.0046acad
add esp, 4
mov dword [eax], ebx
mov dword [eax + 4], edi
xor ecx, ecx
push ecx
push ecx
push eax
push 0x4aab50
push ecx
push ecx
call fcn.00478430
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x4aab3f
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
pop esi
pop edi
pop ebx
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x4af6c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20c
mov eax, dword [0x4e2024]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov bl, 1
cmp dword [0x4f28b0], 0
je 0x4af6f8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046b8b5
mov eax, ebx
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [0x4f28a0]
test esi, esi
je 0x4af792
test byte [0x4e3ea4], 1
je 0x4af6e1
cmp byte [esi + 0xb], 0
jns 0x4af717
mov esi, dword [esi]
sub esp, 0x1c
movaps xmm0, xmmword [0x4d4ad0]
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 [0x4f28b0], eax
inc eax
cmp eax, 1
ja 0x4af6e1
lea esi, [ebp - 0x216]
push 0x206
push 0xff
push esi
call fcn.0046e590
add esp, 0xc
mov word [esi - 2], 0
lea esi, [ebp - 0x218]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x4af838
xor ebx, ebx
jmp 0x4af6e1
push 0xc
call fcn.0046acad
add esp, 4
mov esi, eax
lea edi, [ebp - 0x218]
push 0x208
push 0xff
push edi
call fcn.0046e590
add esp, 0xc
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edi, edi
dec edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov ecx, esi
lea eax, [ebp - 0x218]
push eax
call fcn.0041ac20
movzx eax, byte [esi + 0xb]
test al, al
jns 0x4af7e9
mov eax, dword [esi + 4]
mov ecx, esi
push eax
push 0x5c
call fcn.0044b1a0
cmp eax, edi
je 0x4af821
movzx ecx, byte [esi + 0xb]
mov edx, ecx
test cl, cl
jns 0x4af804
mov edx, dword [esi + 4]
cmp edx, eax
jbe 0x4af8e8
mov edx, eax
inc edx
test cl, cl
js 0x4af8cd
mov word [esi + eax*2 + 2], 0
mov byte [esi + 0xb], dl
mov ecx, esi
push str.debug.log
call fcn.0041c400
mov dword [0x4f28a0], esi
jmp 0x4af706
mov ecx, dword [0x4f28a0]
push esi
call fcn.0041bed0
mov ecx, dword [0x4f28a0]
movzx eax, byte [ecx + 0xb]
test al, al
js 0x4af8de
mov edx, ecx
cmp word [edx + eax*2 - 2], 0x5c
je 0x4af870
push 0x4d40ca
call fcn.0041c400
mov ecx, dword [0x4f28a0]
push str.debug.log
call fcn.0041c400
mov eax, dword [0x4f28a0]
cmp byte [eax + 0xb], 0
jns 0x4af887
mov eax, dword [eax]
movaps xmm0, xmmword [0x4d4ad0]
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 [0x4f28b0], eax
inc eax
cmp eax, 1
ja 0x4af6e1
mov dword [0x4f28b0], 0
jmp 0x4af78b
mov ecx, dword [esi]
mov word [ecx + eax*2 + 2], 0
mov dword [esi + 4], edx
jmp 0x4af821
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
jmp 0x4af858
mov ecx, esi
call fcn.004a9700
int3
Function at 0x4b4ad0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [0x4e2024]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov esi, dword [ecx + 0x28]
mov ebx, dword [ecx + 0x2c]
movups xmm0, xmmword [edx]
movups xmmword [ebp - 0x20], xmm0
cmp esi, ebx
je 0x4b4b22
mov dword [ebp - 0x24], ecx
lea edi, [ebp - 0x20]
mov ecx, esi
push edi
call fcn.004b48c0
test al, al
jne 0x4b4b0f
add esi, 0x58
cmp esi, ebx
jne 0x4b4afa
mov esi, ebx
mov eax, dword [ebp - 0x24]
cmp esi, dword [eax + 0x2c]
je 0x4b4b22
cmp byte [esi + 0x1b], 0
jns 0x4b4b39
mov eax, dword [esi + 0x10]
jmp 0x4b4b3c
xor edi, edi
inc edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046b8b5
mov eax, edi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
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 0x4b4b25
mov eax, dword [ebp + 8]
mov dword [eax], esi
xor edi, edi
jmp 0x4b4b25

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb8
mov edi, dword [ebp + 8]
mov eax, dword [0x4e2024]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x4bba93
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4bbab8
mov ebx, eax
cmp byte [ebp + 0xc], 0
jne 0x4bbab0
mov eax, ebx
and eax, 0x400
jne 0x4bbac6
and ebx, 0x10
shr ebx, 4
jmp 0x4bbac8
push 2
call fcn.004552c0
add esp, 4
test al, al
jne 0x4bbadf
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046b8b5
mov eax, ebx
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004af950
lea ecx, [ebp - 0xb8]
push eax
push 2
push 0x82
push str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
call fcn.004afa80
lea eax, [ebp - 0xb0]
push 0x12
push str.GetFileAttributes
push eax
call fcn.00494230
add esp, 0xc
mov esi, eax
movzx eax, byte [edi + 0xb]
test al, al
jns 0x4bbb21
mov eax, dword [edi + 4]
mov edi, dword [edi]
lea ebx, [ebp - 0xc4]
push eax
push edi
push ebx
call fcn.0044f100
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x4bbb46
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push esi
call fcn.00494230
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x4bbb68
push dword [ebp - 0xc4]
call fcn.0046acdd
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.004afae0
jmp 0x4bbac6