joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14010c850
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x14010c892
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x14010c8d9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x14010c932
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x14010c8f0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14010c973
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14013d0d2]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14013d0d3]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14010c940
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x14010d998
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14010d9e2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14010d9e2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14010d9e2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14010d9e2
cmp dword [rcx + 0x84], 0xe
jbe 0x14010d9e2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14010d9e4
xor al, al
add rsp, 0x28
ret
Function at 0x14000c980
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000c9cc
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000c9c4
cmp dword [rcx + 0x3c], edx
jl 0x14000c9c4
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14000c9c4
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000c9cc
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140001000
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
cmp dword [rsp + 0x50], 2
jge 0x140001022
lea rax, [0x140003030]
mov qword [rsp + 0x20], rax
jmp 0x140001039
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx + rax]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0x30], rax
add rsp, 0x48
ret

Function at 0x140001060
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x1c8
lea rdx, [rsp + 0x20]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14000109d
mov rdx, qword [rsp + 0x1d8]
mov ecx, dword [rsp + 0x1d0]
call section..text
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
add rsp, 0x1c8
ret
Function at 0x14000c6f0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov edi, r8d
mov rbx, rdx
mov r14, rcx
mov rax, qword [0x140145040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x1401213c0]
lea r15, [rsp + 0x50]
movaps xmmword [r15 + 0x30], xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
lea rdx, str.WriteAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea r12, [rsp + 0x30]
mov rcx, r12
mov r9d, 0x97
call fcn.1400754d0
xor esi, esi
mov rcx, r15
mov rdx, r12
xor r8d, r8d
call fcn.140098080
test edi, edi
js 0x14000c828
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r15, [rsp + 0x30]
mov qword [r15 + 8], rax
mov qword [r15], rsi
lea r12, [rsp + 0x98]
mov dword [r12], 0xaaaaaaaa
mov rcx, qword [r14]
mov qword [rsp + 0x20], rsi
mov rdx, rbx
mov r8d, edi
mov r9, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sbb esi, esi
or esi, dword [r12]
mov rcx, r15
call fcn.140097620
mov qword [rsp + 0x98], 0xa
mov al, byte [0x14015765a]
test al, al
jne 0x14000c804
lea rcx, [rsp + 0x50]
call fcn.140097660
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400b7310
mov eax, esi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
movzx ecx, al
lea r8, [rsp + 0x30]
mov qword [r8], 0
lea rdx, [rsp + 0x98]
mov r9d, 2
call fcn.1400754f0
jmp 0x14000c7d7
mov esi, 0xffffffff
jmp 0x14000c7c1

Function at 0x14000fbc0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x14000fbfc
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 0x14000fc06
add rdi, rbx
sub rsi, rbx
jne 0x14000fbda
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3
Function at 0x140012af0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140145040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x140157840]
mov ecx, dword [0x140153d98]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140012b50
lea rsi, [0x140157838]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400b7310
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140157840]
call fcn.1400b4df4
cmp dword [0x140157840], 0xffffffff
jne 0x140012b2c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1400eb280
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.1400b4d4c
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140157888]
mov ecx, dword [0x140153d98]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140012c10
lea r8, [0x140157858]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.14002a2f0
mov qword [0x140157838], rsi
lea rcx, [0x140157840]
call fcn.1400b4d88
jmp 0x140012b2c
lea rcx, [0x140157888]
call fcn.1400b4df4
cmp dword [0x140157888], 0xffffffff
jne 0x140012be1
xorps xmm0, xmm0
movups xmmword [0x140157878], xmm0
movups xmmword [0x140157868], xmm0
movups xmmword [0x140157858], xmm0
lea rcx, [0x140157858]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140157888]
call fcn.1400b4d88
jmp 0x140012be1

Function at 0x140013bf0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.1400b72b0
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140145040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.1400eb280
lea r9, [rsp + 0x3c]
mov dword [r9], 1
lea rax, [rsp + 0x38]
mov dword [rax], 0x800
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140013ca3
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x140013ca7
lea rdx, [rsp + 0x840]
mov rcx, rsi
call fcn.140013d00
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400b7310
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x140013c84
cmp eax, 2
jne 0x140013cef
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.1400eb280
lea rcx, [rsp + 0x840]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x140013cf6
lea rdx, [rsp + 0x40]
jmp 0x140013c7a
mov edi, 0x3f4
jmp 0x140013c84
mov edi, 0xea
jmp 0x140013c84
Function at 0x1400149a0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rdi, r8
mov rsi, rdx
mov rax, qword [0x140145040]
xor rax, rsp
mov qword [rsp + 0x48], rax
movabs rbx, 0xaaaaaaaaaaaaaaaa
mov qword [rdx], rcx
mov qword [rdx + 8], r8
mov byte [rdx + 0x10], r9b
mov qword [rdx + 0x18], 0
lea rcx, [rsp + 0x20]
mov qword [rcx], rbx
mov edx, 8
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140014ae6
lea rcx, [rsp + 0x20]
mov rax, qword [rcx]
mov qword [rsi + 0x20], rax
mov qword [rcx], rbx
mov edx, 8
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140014ae9
mov rax, qword [rsp + 0x20]
mov qword [rsi + 0x28], rax
mov eax, dword [0x14015c500]
mov ecx, dword [0x140153d98]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140014a80
mov rdx, rdi
shl rdx, 4
lea rcx, [0x14015ab00]
xor r8d, r8d
call fcn.140014af0
mov qword [rsi + 0x30], rax
xorps xmm0, xmm0
movups xmmword [rsi + 0x38], xmm0
test rdi, rdi
je 0x140014aec
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400b7310
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x14015c500]
call fcn.1400b4df4
cmp dword [0x14015c500], 0xffffffff
jne 0x140014a3e
mov al, 0xaa
lea rdx, [rsp + 0x20]
mov byte [rdx + 7], al
mov cx, 0xaaaa
mov word [rdx + 5], cx
mov word [rdx + 0x19], cx
mov dword [rdx + 0x1b], 0xaaaa00aa
mov byte [rdx + 0x1f], al
xor eax, eax
mov dword [rdx], eax
mov byte [rdx + 4], al
xorps xmm0, xmm0
movups xmmword [rdx + 8], xmm0
mov byte [rdx + 0x18], al
mov dword [rdx + 0x20], eax
lea rcx, [0x14015ab00]
call fcn.140022e10
lea rcx, [0x14015c500]
call fcn.1400b4d88
jmp 0x140014a3e
int3
int3
int3
Function at 0x140016630
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov edi, r9d
mov rbx, r8
mov r15, rdx
mov r14, rcx
xor ebp, ebp
test rcx, rcx
setne bpl
mov r12d, dword [rsp + 0xc0]
mov rax, qword [0x140145040]
xor rax, rsp
mov qword [rsp + 0x58], rax
shl ebp, 0x10
mov ecx, 0x18
call fcn.1400b4d4c
mov rsi, rax
mov rax, qword [0x140147c20]
and rax, r15
cmp rax, qword [0x140147c08]
jne 0x140016695
mov rcx, r15
call fcn.140086860
mov qword [rsi], r15
test rbx, rbx
setne byte [rsi + 8]
mov dword [rsi + 0xc], edi
mov dword [rsi + 0x10], r12d
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], 0
lea r8, [0x140004710]
xor ecx, ecx
mov rdx, r14
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x140016707
test rbx, rbx
je 0x1400166fc
mov qword [rbx], rdi
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400b7310
mov eax, ebx
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400166d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x27a
jle 0x14001672f
cmp ebx, 0x5af
je 0x1400167f3
cmp ebx, 0x27b
jne 0x140016741
jmp 0x1400167f3
cmp ebx, 8
je 0x1400167f3
cmp ebx, 0xe
je 0x1400167f3
mov eax, dword [0x140159b78]
mov ecx, dword [0x140153d98]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400167fb
lea r14, [rsp + 0x30]
mov rcx, r14
mov edx, ebx
call fcn.140063950
mov rdx, qword [0x140159b70]
test rdx, rdx
je 0x1400167b1
mov rcx, qword [0x140157a70]
test rcx, rcx
je 0x1400167b1
movzx eax, byte [rsp + 0x47]
test al, al
cmovs r14, qword [rsp + 0x30]
cmovs rax, qword [rsp + 0x38]
lea r8, [rsp + 0x48]
mov qword [r8], r14
mov qword [r8 + 8], rax
call fcn.140023300
cmp byte [rsp + 0x47], 0
jns 0x1400167c2
mov rcx, qword [rsp + 0x30]
call fcn.1400b4d44
test rsi, rsi
je 0x1400166d8
mov rcx, qword [rsi]
mov rax, qword [0x140147c20]
and rax, rcx
cmp rax, qword [0x140147c08]
jne 0x1400167e6
call fcn.140073aa0
mov rcx, rsi
call fcn.1400b4d44
jmp 0x1400166d8
mov rcx, r14
call fcn.140107e50
lea rcx, [0x140159b78]
call fcn.1400b4df4
cmp dword [0x140159b78], 0xffffffff
jne 0x140016766
cmp qword [0x140157a70], 0
je 0x140016883
mov ecx, 0x50
call fcn.1400b4d4c
lea rcx, str.create_thread_last_error
mov qword [rax], rcx
mov dword [rax + 8], 0x20
lea rdx, [rax + 0x30]
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], rcx
mov qword [rax + 0x20], rdx
mov dword [rax + 0x28], 0
mov word [rax + 0x2c], 1
xorps xmm0, xmm0
movups xmmword [rax + 0x2e], xmm0
movups xmmword [rax + 0x3e], xmm0
mov word [rax + 0x4e], 0
mov qword [0x140159b70], rax
lea rcx, [0x140159b78]
call fcn.1400b4d88
jmp 0x140016766
xor eax, eax
jmp 0x14001686b
Function at 0x140016bf0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov eax, dword [0x140153d98]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp byte [rax + 0x120], 0
je 0x140016cad
mov eax, dword [0x140153d98]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp qword [rax + 0x158], 1
je 0x140016ca9
mov ecx, dword [rsi + 0x1928]
test ecx, ecx
jne 0x140016ca9
mov ecx, 1
lock xadd dword [rsi + 0x1928], ecx
cmp ecx, 0x7fffffff
je 0x140016cb7
test rsi, rsi
je 0x140016cba
lea rbx, [rax + 0x158]
call fcn.1400a46e0
mov edx, 0x568
mov rcx, rax
xor r8d, r8d
call fcn.140014af0
mov rdi, rax
mov rcx, rax
mov rdx, rsi
call fcn.140016cc0
mov ecx, dword [0x140159c1c]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov qword [rbx], rdi
lock dec dword [rsi + 0x1928]
mov rax, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
xor edi, edi
jmp 0x140016c9e
call fcn.1400b6a68
jmp 0x140016c1a
int3
int3
Function at 0x14001b320
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
sub rsp, 0x30
mov rax, qword [0x140145040]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rcx, [0x14015c548]
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14001b417
cmp byte [0x14015c550], 0
je 0x14001b3b5
lea rcx, [0x14015c548]
mov rax, qword [0x14015c558]
mov rdx, qword [0x14015c560]
mov qword [0x14015c558], rdx
mov rsi, rax
shl rsi, 0x17
xor rsi, rax
mov rax, rdx
shr rax, 0x1a
xor rax, rdx
xor rax, rsi
shr rsi, 0x11
xor rsi, rax
mov qword [0x14015c560], rsi
add rsi, rdx
shr rsi, 0x20
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400b7310
mov eax, esi
add rsp, 0x30
pop rsi
ret
movabs rsi, 0xaaaaaaaaaaaaaaaa
xorps xmm0, xmm0
movups xmmword [0x14015c558], xmm0
lea rcx, [rsp + 0x20]
mov qword [rcx], rsi
mov edx, 8
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14001b428
lea rcx, [rsp + 0x20]
mov rax, qword [rcx]
mov qword [0x14015c558], rax
mov qword [rcx], rsi
mov edx, 8
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14001b42b
mov rax, qword [rsp + 0x20]
mov qword [0x14015c560], rax
mov byte [0x14015c550], 1
jmp 0x14001b352
lea rcx, [0x14015c548]
call fcn.140096890
jmp 0x14001b349
int3
int3
Function at 0x140021760
Capabilities:
Read 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 [0x140145040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ebx, 0xffffffff
cmp r8, rbx
cmovb rbx, r8
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140021828
mov r15, qword [sym.imp.KERNEL32.dll_GetFileType]
lea r14, [rsp + 0x2c]
mov r12, qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1400217f0
cmp eax, 0xffffffff
je 0x140021801
mov esi, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400b7310
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, rdi
call r15
cmp eax, 3
je 0x140021804
mov eax, dword [rsp + 0x2c]
jmp 0x1400217d0
int3
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rsi
mov r8d, ebx
mov r9, r14
call r12
test eax, eax
jne 0x1400217c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x6d
setne sil
neg rsi
jmp 0x1400217d2
Function at 0x140027110
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x140145040]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.1400eb280
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x1400271cd
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.1400b5304
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.1400a9970
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.140027200
cmp byte [rsi + 0x17], 0
jns 0x14002719f
mov rcx, qword [rsi]
call fcn.1400b4d44
mov rax, qword [rsp + 0x58]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rsi], xmm0
mov byte [rsp + 0x5f], 0
mov word [rsp + 0x48], 0
cmp byte [rsp + 0x47], 0
jns 0x1400271cd
mov rcx, qword [rsp + 0x30]
call fcn.1400b4d44
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400b7310
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140027360
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x290
movaps xmmword [rsp + 0x280], xmm6
mov rsi, rcx
mov rax, qword [0x140145040]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400eb280
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 0x28
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140027405
cmp word [rsp + 0x70], 0
je 0x140027405
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.1400b5304
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.1400a9970
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.1400b7310
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x280]
add rsp, 0x290
pop rbx
pop rdi
pop rsi
ret
xorps xmm6, xmm6
lea rcx, [rsp + 0x40]
movaps xmmword [rcx], xmm6
mov qword [rcx + 0x10], 0
call fcn.140027110
test al, al
jne 0x140027442
lea rax, [0x140135b08]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.1400a9970
jmp 0x140027461
mov rax, qword [rsp + 0x50]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi], xmm0
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
cmp byte [rsp + 0x57], 0
jns 0x1400273df
mov rcx, qword [rsp + 0x40]
call fcn.1400b4d44
jmp 0x1400273df
Function at 0x140027a60
Capabilities:
Reference processor manufacturer constants

Disassembly:
push rsi
push rdi
mov r8, rcx
xor edi, edi
xor eax, eax
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
test eax, eax
jle 0x140027b81
mov r10d, eax
xor ecx, ecx
mov eax, 1
xchg rbx, r9
cpuid
xchg rbx, r9
mov r9d, ecx
mov r11d, edx
mov esi, eax
cmp r10d, 7
jb 0x140027bbd
mov eax, 7
xor ecx, ecx
xchg rbx, rdi
cpuid
xchg rbx, rdi
mov r10d, ecx
and edi, 0x20
shr edi, 5
shr r10b, 4
and r10b, 1
mov dword [r8], esi
mov eax, esi
and eax, 0xf
mov dword [r8 + 8], eax
shr esi, 0xc
and esi, 3
mov dword [r8 + 4], esi
mov eax, r11d
shr eax, 0x17
and al, 1
mov byte [r8 + 0xc], al
mov eax, r11d
shr eax, 0x19
and al, 1
mov byte [r8 + 0xd], al
shr r11d, 0x1a
and r11b, 1
mov byte [r8 + 0xe], r11b
mov eax, r9d
and al, 1
mov byte [r8 + 0xf], al
mov eax, r9d
shr eax, 9
and al, 1
mov byte [r8 + 0x10], al
mov eax, r9d
shr eax, 0x13
and al, 1
mov byte [r8 + 0x11], al
mov eax, r9d
shr eax, 0x14
and al, 1
mov byte [r8 + 0x12], al
mov eax, r9d
shr eax, 0x17
and al, 1
mov byte [r8 + 0x13], al
mov eax, r9d
shr eax, 0x1f
mov byte [r8 + 0x1a], al
mov eax, r9d
not eax
test eax, 0x1c000000
jne 0x140027bc5
xor ecx, ecx
xgetbv
not eax
test al, 6
sete al
mov byte [r8 + 0x14], al
mov ecx, r9d
shr ecx, 0x19
and cl, 1
mov byte [r8 + 0x17], cl
shr r9d, 0xc
and r9b, 1
mov byte [r8 + 0x15], r9b
test al, al
setne al
and al, dil
mov byte [r8 + 0x16], al
mov byte [r8 + 0x18], r10b
xor ecx, ecx
mov eax, 0x80000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp eax, 0x80000006
jle 0x140027bb7
xor ecx, ecx
mov eax, 0x80000007
xchg rbx, r9
cpuid
xchg rbx, r9
shr edx, 8
and dl, 1
mov byte [r8 + 0x19], dl
test dl, dl
je 0x140027bc9
pop rdi
pop rsi
ret
mov dl, byte [r8 + 0x19]
jmp 0x140027bb0
xor r10d, r10d
jmp 0x140027abf
xor eax, eax
jmp 0x140027b54
cmp byte [r8 + 0x1a], 0
je 0x140027bb4
xor ecx, ecx
mov eax, 0x40000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp r9d, 0x7263694d
jne 0x140027bb4
cmp ecx, 0x666f736f
jne 0x140027bb4
cmp edx, 0x76482074
jne 0x140027bb4
mov byte [r8 + 0x19], 1
jmp 0x140027bb4
Function at 0x140029090
Capabilities:
Check if file exists
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x190
mov rsi, rcx
mov rax, qword [0x140145040]
xor rax, rsp
mov qword [rsp + 0x188], rax
cmp byte [rcx + 0x17], 0
jns 0x1400290b8
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
je 0x1400290e4
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.1400b7310
mov eax, edi
add rsp, 0x190
pop rbx
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140029113
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.1400b7310
mov rcx, rsi
add rsp, 0x190
pop rbx
pop rdi
pop rsi
jmp fcn.1400291e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0x48]
mov r8d, 0x265
mov r9d, 2
call fcn.1401082d0
lea rcx, [rsp + 0x58]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.1400edbd0
mov rdi, rax
movzx edx, byte [rsi + 0x17]
test dl, dl
jns 0x140029163
mov rdx, qword [rsi + 8]
mov rsi, qword [rsi]
xorps xmm0, xmm0
lea rbx, [rsp + 0x30]
movaps xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov rcx, rsi
mov r8, rbx
call fcn.14005a000
movzx r8d, byte [rbx + 0x17]
test r8b, r8b
jns 0x140029195
mov r8, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov rcx, rdi
mov rdx, rbx
call fcn.1400edbd0
cmp byte [rsp + 0x47], 0
jns 0x1400291b1
mov rcx, qword [rsp + 0x30]
call fcn.1400b4d44
lea rax, [0x140120630]
lea rsi, [rsp + 0x48]
mov qword [rsi], rax
mov rcx, rsi
call fcn.140108350
mov rcx, rsi
call fcn.1400080e0
xor edi, edi
jmp 0x1400290c7

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x170
mov rsi, rcx
mov rax, qword [0x140145040]
xor rax, rsp
mov qword [rsp + 0x168], rax
cmp byte [rcx + 0x17], 0
jns 0x140029208
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002923b
mov dil, 1
test al, 0x10
je 0x14002929f
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.1400b7310
mov eax, edi
add rsp, 0x170
pop rbx
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x251
mov r9d, 2
call fcn.1401082d0
lea rbx, [rsp + 0x38]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
mov rcx, rbx
call fcn.1400edbd0
mov rcx, rax
mov rdx, rsi
call fcn.140063a50
lea rax, [0x140120630]
mov qword [rbx - 0x10], rax
mov rcx, rdi
call fcn.140108350
jmp 0x1400292f6
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x255
mov r9d, 2
call fcn.140029310
lea rcx, [rsp + 0x38]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1400edbd0
mov rcx, rax
mov rdx, rsi
call fcn.140063a50
lea rdx, str.:_not_a_directory
mov r8d, 0x11
mov rcx, rax
call fcn.1400edbd0
mov rcx, rdi
call fcn.1400080e0
xor edi, edi
jmp 0x14002921e