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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1a0
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x14042f038]
xor rax, rsp
mov qword [rsp + 0x198], rax
cmp byte [rcx + 0x17], 0
jns 0x14034e42a
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14034e44c
mov edi, eax
test bl, bl
jne 0x14034e444
mov eax, edi
and eax, 0x400
jne 0x14034e45a
and edi, 0x10
shr edi, 4
jmp 0x14034e45c
mov ecx, 2
call fcn.1401ee3d0
test al, al
jne 0x14034e479
xor edi, edi
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.14024c3c0
mov eax, edi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rcx, [rsp + 0x58]
mov r8d, 0x82
mov r9d, 2
call fcn.1402c61f0
lea rcx, [rsp + 0x68]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1402885e0
mov rdi, rax
movzx eax, byte [rsi + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsi]
cmovns rax, rsi
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
cmovs rcx, qword [rsi + 8]
mov qword [rdx + 8], rcx
lea rsi, [rsp + 0x40]
mov rcx, rsi
call fcn.1401fa740
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14034e4ff
mov r8, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
jmp 0x14034e503
and r8d, 0x7f
mov rcx, rdi
mov rdx, rsi
call fcn.1402885e0
cmp byte [rsp + 0x57], 0
jns 0x14034e51f
mov rcx, qword [rsp + 0x40]
call fcn.14024ac18
lea rcx, [rsp + 0x58]
call fcn.1402c6270
jmp 0x14034e45a
Function at 0x14034e530
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1b0
mov ebx, r8d
mov rsi, rcx
mov rax, qword [0x14042f038]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
cmp byte [rcx + 0x17], 0
jns 0x14034e55b
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
je 0x14034e587
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.14024c3c0
mov eax, edi
add rsp, 0x1b0
pop rbx
pop rdi
pop rsi
ret
test bl, bl
je 0x14034e59c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14034e644
mov ecx, 2
call fcn.1401ee3d0
test al, al
jne 0x14034e5ae
xor edi, edi
jmp 0x14034e56a
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rcx, [rsp + 0x40]
mov r8d, 0x62
mov r9d, 2
call fcn.1402c61f0
lea rcx, [rsp + 0x50]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.1402885e0
mov rdi, rax
movzx eax, byte [rsi + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsi]
cmovns rax, rsi
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
cmovs rcx, qword [rsi + 8]
mov qword [rdx + 8], rcx
lea rsi, [rsp + 0x190]
mov rcx, rsi
call fcn.1401fa740
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14034e6df
mov r8, qword [rsp + 0x198]
mov rsi, qword [rsp + 0x190]
jmp 0x14034e6e3
mov dil, 1
mov rcx, rsi
mov dl, 1
call fcn.14034e400
test al, al
jne 0x14034e56a
mov ecx, 2
call fcn.1401ee3d0
test al, al
je 0x14034e5aa
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rcx, [rsp + 0x40]
mov r8d, 0x5d
mov r9d, 2
call fcn.1400ee420
lea rdi, [rsp + 0x50]
movzx eax, byte [rsi + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsi]
cmovns rax, rsi
lea rdx, [rsp + 0x180]
mov qword [rdx], rax
cmovs rcx, qword [rsi + 8]
mov qword [rdx + 8], rcx
lea rsi, [rsp + 0x190]
mov rcx, rsi
call fcn.1401fa740
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14034e714
mov r8, qword [rsp + 0x198]
mov rsi, qword [rsp + 0x190]
jmp 0x14034e718
and r8d, 0x7f
mov rcx, rdi
mov rdx, rsi
call fcn.1402885e0
cmp byte [rsp + 0x1a7], 0
jns 0x14034e705
mov rcx, qword [rsp + 0x190]
call fcn.14024ac18
lea rcx, [rsp + 0x40]
call fcn.1402c6270
jmp 0x14034e5aa
and r8d, 0x7f
mov rcx, rdi
mov rdx, rsi
call fcn.1402885e0
lea rdx, str._not_a_directory
mov r8d, 0x10
mov rcx, rax
call fcn.1402885e0
cmp byte [rsp + 0x1a7], 0
jns 0x14034e74f
mov rcx, qword [rsp + 0x190]
call fcn.14024ac18
lea rcx, [rsp + 0x40]
call fcn.1400ee910
jmp 0x14034e5aa
Function at 0x14034e760
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x14042f038]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x14034e787
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14034e7b7
test eax, 0x410
sete sil
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.14024c3c0
mov eax, esi
add rsp, 0x198
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1401ee3d0
test al, al
jne 0x14034e7c9
xor esi, esi
jmp 0x14034e79b
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x75
mov r9d, 2
call fcn.1402c61f0
lea rcx, [rsp + 0x60]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1402885e0
mov rdi, rax
movzx eax, byte [rsi + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsi]
cmovns rax, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
cmovs rcx, qword [rsi + 8]
mov qword [rdx + 8], rcx
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.1401fa740
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14034e84f
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
jmp 0x14034e853
and r8d, 0x7f
mov rcx, rdi
mov rdx, rsi
call fcn.1402885e0
cmp byte [rsp + 0x4f], 0
jns 0x14034e86f
mov rcx, qword [rsp + 0x38]
call fcn.14024ac18
lea rcx, [rsp + 0x50]
call fcn.1402c6270
jmp 0x14034e7c5
Function at 0x14034e880
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x14042f038]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x14034e8a7
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14034e8be
and eax, 0x410
cmp eax, 0x410
je 0x14034e905
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14034e8ca
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dil, 1
test eax, eax
je 0x14034e8f3
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.14024c3c0
mov eax, edi
add rsp, 0x198
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1401ee3d0
test al, al
jne 0x14034e926
xor edi, edi
jmp 0x14034e8d7
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.14024c3c0
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp fcn.14034e9e0
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x95
mov r9d, 2
call fcn.1402c61f0
lea rcx, [rsp + 0x60]
lea rdx, str.DeleteFile
mov r8d, ntohl
call fcn.1402885e0
mov rdi, rax
movzx eax, byte [rsi + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsi]
cmovns rax, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
cmovs rcx, qword [rsi + 8]
mov qword [rdx + 8], rcx
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.1401fa740
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14034e9ac
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
jmp 0x14034e9b0
and r8d, 0x7f
mov rcx, rdi
mov rdx, rsi
call fcn.1402885e0
cmp byte [rsp + 0x4f], 0
jns 0x14034e9cc
mov rcx, qword [rsp + 0x38]
call fcn.14024ac18
lea rcx, [rsp + 0x50]
call fcn.1402c6270
jmp 0x14034e901
Function at 0x14034e9e0
Capabilities:
Delete directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1a0
mov rdi, rcx
mov rax, qword [0x14042f038]
xor rax, rsp
mov qword [rsp + 0x198], rax
cmp byte [rcx + 0x17], 0
jns 0x14034ea08
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test eax, eax
jne 0x14034ea22
mov ecx, 2
call fcn.1401ee3d0
test al, al
jne 0x14034ea44
test esi, esi
setne bl
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.14024c3c0
mov eax, ebx
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rcx, [rsp + 0x58]
mov r8d, 0x30
mov r9d, 2
call fcn.1402c61f0
lea rcx, [rsp + 0x68]
lea rdx, str.RemoveDirectory
mov r8d, 0x10
call fcn.1402885e0
mov rbx, rax
movzx eax, byte [rdi + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rdi]
cmovns rax, rdi
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
cmovs rcx, qword [rdi + 8]
mov qword [rdx + 8], rcx
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.1401fa740
movzx r8d, byte [rdi + 0x17]
test r8b, r8b
jns 0x14034eaca
mov r8, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
jmp 0x14034eace
and r8d, 0x7f
mov rcx, rbx
mov rdx, rdi
call fcn.1402885e0
cmp byte [rsp + 0x57], 0
jns 0x14034eaea
mov rcx, qword [rsp + 0x40]
call fcn.14024ac18
lea rcx, [rsp + 0x58]
call fcn.1402c6270
jmp 0x14034ea22

Function at 0x140353bb0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov r14, rdx
mov rsi, rcx
mov rax, qword [rcx + 8]
cmp rax, qword [rcx + 0x10]
je 0x140353bee
test rax, rax
je 0x140353cab
mov rcx, qword [r14]
mov qword [rax], rcx
add rax, 8
mov qword [rsi + 8], rax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
sub rax, qword [rsi]
mov rbx, rax
sar rbx, 3
lea rcx, [rbx + 1]
mov rdx, rcx
shr rdx, 0x3d
jne 0x140353cd7
movabs rdx, 0x1fffffffffffffff
lea rdi, [rsi + 0x18]
mov r15, rax
sar r15, 2
cmp r15, rcx
cmovbe r15, rcx
movabs rcx, 0x7ffffffffffffff8
cmp rax, rcx
cmovae r15, rdx
test r15, r15
jne 0x140353c9e
xor eax, eax
shl rbx, 3
add rbx, rax
je 0x140353cab
lea r15, [rax + r15*8]
mov rax, qword [r14]
mov qword [rbx], rax
lea r14, [rbx + 8]
mov rdx, qword [rsi]
mov r8, qword [rsi + 8]
sub r8, rdx
sub rbx, r8
mov rcx, rbx
call fcn.14024de40
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
mov qword [rsi], rbx
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], r15
test rdx, rdx
je 0x140353be2
sub r8, rdx
sar r8, 3
mov rcx, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.140354210
mov rcx, rdi
mov rdx, r15
call fcn.140354790
jmp 0x140353c3d
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x23
call fcn.14028c680
call fcn.140264f20
int3
Function at 0x14035cdc0
Capabilities:
Enumerate processes

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rcx
lea rsi, [rcx + 0x18]
mov r8d, 0x238
mov rcx, rsi
xor edx, edx
call fcn.14024e4f0
mov dword [rdi + 0x18], 0x238
cmp byte [rdi + 0x10], 0
je 0x14035ce02
mov rcx, qword [rdi + 8]
mov rdx, rsi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
mov byte [rdi + 0x10], 1
mov rcx, qword [rdi + 8]
mov rdx, rsi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x14035cdf6

Function at 0x14035d4d0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x14035d50c
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14035d516
add rdi, rbx
sub rsi, rbx
jne 0x14035d4ea
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140264f20
int3

Function at 0x140365180
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov rax, qword [0x14042f038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14, qword [rdx + r8*8]
lea rdi, [rsp + 0x20]
lea rbx, [rsp + 0x38]
movabs r15, 0x9e3779b97f4a7c15
mov r12, qword [r14 + 0x38]
mov rcx, r14
mov rdx, rdi
call fcn.1401e8910
mov rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x28]
mov rcx, rbx
call fcn.1401d20f0
xor rax, qword [rsi + 0x10]
imul rax, r15
shr rax, 0x20
mov r8d, dword [rsi + 8]
dec r8d
and r8d, eax
mov rcx, rsi
mov rdx, rdi
mov r9, r14
call fcn.140364c20
mov r14, r12
test r12, r12
jne 0x1403651b7
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14024c3c0
nop
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x140365220
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rdi, rcx
mov rax, qword [0x14042f038]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, qword [rdx + r8*8]
mov rax, qword [rsi]
lea rbx, [rsp + 0x40]
mov qword [rbx], rax
lea r13, [rsi + 8]
lea r14, [rsp + 0x28]
lea r15, [rsp + 0x48]
movabs rbp, 0x9e3779b97f4a7c15
mov rcx, qword [rax + 0x28]
mov r12, qword [rax + 0x30]
mov rdx, r14
call fcn.1401e8910
mov rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x30]
mov rcx, r15
call fcn.1401d20f0
xor rax, qword [rdi + 0x10]
imul rax, rbp
shr rax, 0x20
mov r8d, dword [rdi + 8]
dec r8d
and r8d, eax
mov rcx, rdi
mov rdx, r14
mov r9, r12
call fcn.140364c20
mov rcx, rbx
call fcn.1401812d0
mov rax, qword [rsp + 0x40]
cmp rax, r13
jne 0x140365269
test rsi, rsi
je 0x1403652cd
cmp qword [rdi + 0x28], 0
je 0x1403652ec
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14024c3c0
nop
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, qword [rsi + 8]
mov rcx, rsi
call fcn.140364700
mov rcx, rsi
call fcn.14024ac18
jmp 0x1403652cd
Function at 0x140376720
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14042f038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
add rsi, rdi
xor r15d, r15d
lea r14, [rsp + 0x2c]
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
cmp rdi, rsi
jae 0x1403767a8
mov dword [rsp + 0x2c], 0
mov r8d, esi
sub r8d, edi
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rdx, rdi
mov r9, r14
call r12
test eax, eax
sete dl
mov ecx, dword [rsp + 0x2c]
test rcx, rcx
sete al
or al, dl
mov edx, 0
jne 0x1403767a1
mov rdx, rcx
add rdi, rdx
cmp al, 1
jne 0x140376762
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14024c3c0
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x140381800
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp edx, 0x33ff
jg 0x140381822
add edx, edx
movzx r8d, dx
movzx edx, word [rcx]
cmp r8d, edx
jbe 0x140381880
and edx, 1
or edx, 2
lea rcx, [rcx + rdx*2]
jmp 0x14038180e
mov r8d, edx
shr r8d, 9
add r8d, 0x3400
shl edx, 6
and r8d, 0xfffe
mov eax, 0xffffffff
movzx r9d, word [rcx]
cmp r8d, r9d
jbe 0x140381859
and r9d, 1
or r9, 2
mov r10, r9
lea rcx, [rcx + r10*2]
jmp 0x14038183f
mov r10d, r9d
and r10d, 0x7ffe
cmp r8d, r10d
jne 0x14038187f
movzx r10d, word [rcx + 2]
cmp r10w, dx
jae 0x1403818ac
mov r10d, 3
test r9w, r9w
jns 0x140381853
ret
mov r9d, edx
and r9d, 0x7ffe
mov eax, 0xffffffff
cmp r8d, r9d
jne 0x14038187f
movzx eax, word [rcx + 2]
test dl, 1
je 0x14038187f
shl eax, 0x10
mov r10d, eax
movzx eax, word [rcx + 4]
or eax, r10d
jmp 0x14038187f
xor edx, r10d
test edx, 0xffc0
jne 0x14038187f
and r10d, 0x3f
shl r10d, 0x10
jmp 0x1403818a3
Function at 0x140388cd0
Capabilities:
Parse pe header

Disassembly:
cmp rdx, 0x40
jb 0x140388d1e
cmp byte [rcx], 0x4d
jne 0x140388d1e
cmp byte [rcx + 1], 0x5a
jne 0x140388d1e
mov r9d, dword [rcx + 0x3c]
mov r10, rdx
sub r10, r9
xor eax, eax
cmp r10, 0x18
jb 0x140388d20
cmp r9, rdx
jae 0x140388d20
cmp r9d, 0x40
jb 0x140388d20
mov r10d, r9d
and r10d, 7
jne 0x140388d20
cmp byte [rcx + r9], 0x50
jne 0x140388d1e
cmp byte [rcx + r9 + 1], 0x45
jne 0x140388d1e
cmp byte [rcx + r9 + 2], 0
je 0x140388d21
xor eax, eax
ret
cmp byte [rcx + r9 + 3], 0
jne 0x140388d1e
add r9, 0x18
xor eax, eax
sub rdx, r9
jbe 0x140388d20
cmp rdx, 2
jb 0x140388d20
cmp word [rcx + r9], r8w
sete al
jmp 0x140388d20
Function at 0x14038f0e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, r8
mov rax, qword [0x14042f038]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov eax, 0xaaaaaaaa
lea rdi, [rsp + 0x44]
mov dword [rdi], eax
lea r8, [rsp + 0x40]
mov dword [r8], eax
lea rax, [rsp + 0x3c]
mov dword [rax], 4
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
xor r8d, r8d
mov r9, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rdi]
xor ecx, 4
or ecx, eax
sete bl
jne 0x14038f140
mov eax, dword [rsp + 0x40]
mov dword [rsi], eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14024c3c0
mov eax, ebx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
Function at 0x1403980a0
Capabilities:
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
cmp dword [r8], 0
jle 0x1403980bb
xor eax, eax
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
call fcn.14019e1c0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000080
mov dword [rsp + 0x20], 3
mov rcx, rbx
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x140398169
mov r14, rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
mov r8d, 2
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x140398169
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi + 8], rax
test rax, rax
je 0x140398194
mov qword [rdi + 0x28], rbx
mov al, 1
jmp 0x1403980b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
cmp ecx, 0x8007000e
jne 0x1403980af
mov dword [rsi], 7
jmp 0x1403980af
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1403980af
Function at 0x14039cde0
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1b0
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14042f038]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
movaps xmm0, xmmword [0x1403be790]
lea r15, [rsp + 0x160]
movaps xmmword [r15 + 0x30], xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
lea r14, [rcx + 0x18]
mov rcx, r14
call fcn.1402882e0
mov r8d, 0x40
mov rcx, rsi
mov rdx, rax
mov r9, r15
call fcn.1403a1c20
test al, al
je 0x14039cea6
movzx eax, word [rsp + 0x160]
cmp eax, 0x5a4d
jne 0x14039cedb
mov rcx, r14
call fcn.1402882e0
movsxd r14, dword [rsp + 0x19c]
add r14, rax
mov r8d, 0x108
mov rcx, rsi
mov rdx, r14
mov r9, rbx
call fcn.1403a1c20
test al, al
je 0x14039cf20
cmp dword [rbx], 0x4550
jne 0x14039cf5c
mov sil, 1
test rdi, rdi
je 0x14039ceba
mov qword [rdi], r14
jmp 0x14039ceba
mov ecx, 1
call fcn.1401ee3d0
test al, al
jne 0x14039cfa2
xor esi, esi
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.14024c3c0
mov eax, esi
add rsp, 0x1b0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, 1
call fcn.1401ee3d0
test al, al
je 0x14039ceb8
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x15a
mov r9d, 1
call fcn.1400ee420
lea rcx, [rsp + 0x38]
lea rdx, str.invalid_e_magic_in_dos_header_of
mov r8d, 0x21
jmp 0x14039cfd4
mov ecx, 1
call fcn.1401ee3d0
test al, al
je 0x14039ceb8
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x162
mov r9d, 1
call fcn.1400ee420
lea rcx, [rsp + 0x38]
lea rdx, str.could_not_read_nt_headers_from
jmp 0x14039cfce
mov ecx, 1
call fcn.1401ee3d0
test al, al
je 0x14039ceb8
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x168
mov r9d, 1
call fcn.1400ee420
lea rcx, [rsp + 0x38]
lea rdx, str.invalid_signature_in_nt_headers_of
mov r8d, 0x23
jmp 0x14039cfd4
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x154
mov r9d, 1
call fcn.1400ee420
lea rcx, [rsp + 0x38]
lea rdx, str.could_not_read_dos_header_from
mov r8d, 0x1f
call fcn.1402885e0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14039cfec
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
jmp 0x14039cff0
and r8d, 0x7f
mov rcx, rax
mov rdx, rsi
call fcn.1402885e0
mov rcx, rdi
call fcn.1400ee910
jmp 0x14039ceb8
Function at 0x14039d010
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1b0
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14042f038]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
movaps xmm0, xmmword [0x1403be790]
lea r15, [rsp + 0x160]
movaps xmmword [r15 + 0x30], xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
lea r14, [rcx + 0x18]
mov rcx, r14
call fcn.1402882e0
mov r8d, 0x40
mov rcx, rsi
mov rdx, rax
mov r9, r15
call fcn.1403a1c20
test al, al
je 0x14039d0d6
movzx eax, word [rsp + 0x160]
cmp eax, 0x5a4d
jne 0x14039d10b
mov rcx, r14
call fcn.1402882e0
movsxd r14, dword [rsp + 0x19c]
add r14, rax
mov r8d, 0xf8
mov rcx, rsi
mov rdx, r14
mov r9, rbx
call fcn.1403a1c20
test al, al
je 0x14039d150
cmp dword [rbx], 0x4550
jne 0x14039d18c
mov sil, 1
test rdi, rdi
je 0x14039d0ea
mov qword [rdi], r14
jmp 0x14039d0ea
mov ecx, 1
call fcn.1401ee3d0
test al, al
jne 0x14039d1d2
xor esi, esi
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.14024c3c0
mov eax, esi
add rsp, 0x1b0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, 1
call fcn.1401ee3d0
test al, al
je 0x14039d0e8
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x15a
mov r9d, 1
call fcn.1400ee420
lea rcx, [rsp + 0x38]
lea rdx, str.invalid_e_magic_in_dos_header_of
mov r8d, 0x21
jmp 0x14039d204
mov ecx, 1
call fcn.1401ee3d0
test al, al
je 0x14039d0e8
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x162
mov r9d, 1
call fcn.1400ee420
lea rcx, [rsp + 0x38]
lea rdx, str.could_not_read_nt_headers_from
jmp 0x14039d1fe
mov ecx, 1
call fcn.1401ee3d0
test al, al
je 0x14039d0e8
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x168
mov r9d, 1
call fcn.1400ee420
lea rcx, [rsp + 0x38]
lea rdx, str.invalid_signature_in_nt_headers_of
mov r8d, 0x23
jmp 0x14039d204
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x154
mov r9d, 1
call fcn.1400ee420
lea rcx, [rsp + 0x38]
lea rdx, str.could_not_read_dos_header_from
mov r8d, 0x1f
call fcn.1402885e0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14039d21c
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
jmp 0x14039d220
and r8d, 0x7f
mov rcx, rax
mov rdx, rsi
call fcn.1402885e0
mov rcx, rdi
call fcn.1400ee910
jmp 0x14039d0e8