joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003afd0
Capabilities:
Check os version
Create pipe

Disassembly:
push rsi
push rbx
sub rsp, 0x68
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x1400a2318]
xor rax, rsp
mov qword [rsp + 0x60], rax
test dl, dl
je 0x14003b024
call qword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xfe
cmp eax, 6
jb 0x14003b024
xorps xmm0, xmm0
lea rax, [rsp + 0x40]
movaps xmmword [rax], xmm0
mov qword [rax + 0x10], 1
mov dword [rax], 0x18
lea rcx, [0x1400846e0]
mov qword [rax + 8], rcx
jmp 0x14003b026
xor eax, eax
movzx edx, bl
shl edx, 0x13
or edx, 3
cmp qword [rsi + 0x18], 7
jbe 0x14003b039
mov rsi, qword [rsi]
mov qword [rsp + 0x38], rax
mov eax, 0x200
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x30], 0
mov rcx, rsi
mov r8d, 6
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rsi, rax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14005aa40
mov rax, rsi
add rsp, 0x68
pop rbx
pop rsi
ret

Function at 0x14003b090
Capabilities:
Check os version

Disassembly:
push rsi
sub rsp, 0x150
mov rsi, rcx
mov rax, qword [0x1400a2318]
xor rax, rsp
mov qword [rsp + 0x148], rax
call qword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, eax
and ecx, 0xfe
cmp ecx, 6
jb 0x14003b163
and eax, 0xfeff
cmp eax, 6
je 0x14003b163
mov eax, dword [0x1400a5e18]
mov ecx, dword [0x1400a5148]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14003b18a
mov rcx, rsi
xor edx, edx
mov r8d, 0x10000000
call qword [0x1400a5e10]
mov sil, 1
test eax, eax
jne 0x14003b16f
mov ecx, 2
call fcn.1400230d0
test al, al
je 0x14003b15f
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_win_critical_section_with_debug_info.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x21
mov r9d, 2
call fcn.1400245c0
lea rcx, [rsp + 0x40]
lea rdx, [0x14008477f]
call fcn.14000d630
mov rcx, rsi
call fcn.140024700
xor esi, esi
jmp 0x14003b16f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov sil, 1
mov rcx, qword [rsp + 0x148]
xor rcx, rsp
call fcn.14005aa40
mov eax, esi
add rsp, 0x150
pop rsi
ret
lea rcx, [0x1400a5e18]
call fcn.14005a860
mov eax, dword [0x1400a5e18]
cmp eax, 0xffffffff
jne 0x14003b0f7
lea rcx, [0x14007f8d0]
lea rdx, str.::InitializeCriticalSectionEx
mov r8b, 1
call int.14003b3c0
mov qword [0x1400a5e10], rax
lea rcx, [0x1400a5e18]
call fcn.14005a8d0
jmp 0x14003b0f7

Function at 0x14003bc00
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1400a2398]
cmp ecx, 0xffffffff
je 0x14003bc1e
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp rax, 1
sete al
jmp 0x14003bc20
xor eax, eax
add rsp, 0x28
ret
Function at 0x14003bc30
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov r14, rdx
mov r15, rcx
mov ecx, dword [0x1400a2398]
cmp ecx, 0xffffffff
je 0x14003bc5d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x14003bc62
call fcn.14003bd90
mov eax, dword [0x1400a7bb8]
mov ecx, dword [0x1400a5148]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14003bd2b
mov rbx, qword [0x1400a7bb0]
mov rcx, rbx
call fcn.140020570
mov rcx, qword [0x1400a63a0]
add rcx, 1
xor edx, edx
lea rax, [0x1400a63b0]
nop word [rax + rax]
movzx edi, cl
lea rsi, [rdi + rdi*2]
cmp dword [rax + rsi*8], 0
je 0x14003bce1
lea edi, [rcx + 1]
movzx edi, dil
lea rsi, [rdi + rdi*2]
cmp dword [rax + rsi*8], 0
je 0x14003bce1
add rdx, 2
add rcx, 2
cmp rdx, 0x100
jb 0x14003bcb0
jmp 0x14003bd06
lea rcx, [rax + rsi*8]
mov dword [rcx], 1
lea rcx, [rdi + rdi*2]
mov qword [rax + rcx*8 + 8], r14
mov qword [0x1400a63a0], rdi
mov dword [r15], edi
mov eax, dword [rax + rcx*8 + 0x10]
mov dword [r15 + 4], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [r15]
cmp eax, 0xffffffff
je 0x14003bd73
cmp eax, 0x100
jge 0x14003bd7a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
lea rcx, [0x1400a7bb8]
call fcn.14005a860
mov eax, dword [0x1400a7bb8]
cmp eax, 0xffffffff
jne 0x14003bc87
mov ecx, 8
call fcn.14005a670
mov rbx, rax
mov rcx, rax
call fcn.140020560
mov qword [0x1400a7bb0], rbx
lea rcx, [0x1400a7bb8]
call fcn.14005a8d0
jmp 0x14003bc87
int3
int3

Function at 0x14003bd90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
mov eax, 0x1040
call fcn.14005c650
sub rsp, rax
lea rbp, [rsp + 0x80]
mov rax, qword [0x1400a2318]
xor rax, rbp
mov qword [rbp + 0xfb8], rax
mov ecx, dword [0x1400a2398]
mov dword [rbp - 0x54], ecx
cmp ecx, 0xffffffff
jne 0x14003be28
lea rcx, [rbp - 0x54]
call fcn.14004d800
test al, al
je 0x14003be9f
mov ecx, dword [rbp - 0x54]
cmp ecx, 0xffffffff
jne 0x14003be08
lea rcx, [rbp - 0x54]
call fcn.14004d800
test al, al
je 0x14003bea6
cmp dword [rbp - 0x54], 0xffffffff
je 0x14003bea6
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rbp - 0x54]
mov eax, 0xffffffff
lock cmpxchg dword [0x1400a2398], ecx
mov ecx, dword [rbp - 0x54]
je 0x14003be28
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x1400a2398]
mov dword [rbp - 0x54], ecx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x14003be98
lea rsi, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.14005f150
mov ecx, dword [rbp - 0x54]
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.14005a6f0
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.14005ece0
mov ecx, dword [rbp - 0x54]
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
mov rcx, qword [rbp + 0xfb8]
xor rcx, rbp
call fcn.14005aa40
mov rax, rdi
add rsp, 0x1040
pop rdi
pop rsi
pop rbp
ret
int3
int3
int3
Function at 0x14003bf80
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x1400a2398]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14003bfaf
movsxd rcx, dword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 4]
jne 0x14003bfaf
mov rax, qword [rax + rcx]
jmp 0x14003bfb1
xor eax, eax
add rsp, 0x20
pop rsi
ret

Function at 0x14003bfc0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x1400a2398]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x14003bfe7
test rdi, rdi
je 0x14003c000
call fcn.14003bd90
movsxd rcx, dword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 4]
movsxd rdx, dword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x14003c4f0
Capabilities:
Hash data using fnv

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov r14, rcx
mov rax, qword [0x1400a2318]
xor rax, rsp
mov qword [rsp + 0x28], rax
movzx eax, byte [rdx]
movabs rcx, 0xcbf29ce484222325
xor rcx, rax
movabs rax, 0x100000001b3
imul rcx, rax
movzx ebx, byte [rdx + 1]
xor rbx, rcx
imul rbx, rax
movzx ecx, byte [rdx + 2]
xor rcx, rbx
imul rcx, rax
movzx ebx, byte [rdx + 3]
xor rbx, rcx
imul rbx, rax
and rbx, qword [r14 + 0x30]
mov r9, qword [r14 + 8]
mov r10, qword [r14 + 0x18]
lea r11, [rbx + rbx]
add r11, 1
shl rbx, 4
mov rax, qword [r10 + rbx]
mov edx, dword [rdx]
xor edi, edi
mov r8, rax
jmp 0x14003c583
mov r8, qword [r8]
mov rbx, rax
cmp rax, r9
je 0x14003c592
mov rcx, qword [r10 + r11*8]
mov rbx, qword [rcx]
mov cl, 1
cmp rbx, r8
je 0x14003c602
cmp dword [r8 + 0x10], edx
jne 0x14003c580
mov rsi, r8
jmp 0x14003c5b3
mov rsi, qword [rsi]
mov rdi, rax
cmp rax, r9
je 0x14003c5c2
mov rdi, qword [r10 + r11*8]
mov rdi, qword [rdi]
cmp rdi, rsi
je 0x14003c5cc
cmp edx, dword [rsi + 0x10]
je 0x14003c5b0
xor edi, edi
cmp r8, rsi
je 0x14003c602
mov rax, r8
nop word cs:[rax + rax]
add rdi, 1
mov rax, qword [rax]
cmp rsi, rax
jne 0x14003c5e0
xor ecx, ecx
cmp qword [r9], r8
jne 0x14003c60d
cmp rsi, r9
jne 0x14003c60d
mov rcx, r14
call fcn.14003e690
jmp 0x14003c636
mov r8, r9
mov rsi, r9
cmp qword [r9], r8
je 0x14003c5f3
test cl, cl
jne 0x14003c636
lea r15, [rsp + 0x20]
nop word cs:[rax + rax]
mov rbx, qword [r8]
mov rcx, r14
mov rdx, r15
call fcn.140040b20
mov r8, rbx
cmp rsi, rbx
jne 0x14003c620
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14005aa40
mov rax, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400406d0
Capabilities:
Hash data using fnv

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r13, r8
mov r14, rdx
mov r12, rcx
movzx eax, byte [r8]
movabs rcx, 0xcbf29ce484222325
xor rcx, rax
movabs rax, 0x100000001b3
imul rcx, rax
movzx edx, byte [r8 + 1]
xor rdx, rcx
imul rdx, rax
movzx ecx, byte [r8 + 2]
xor rcx, rdx
imul rcx, rax
movzx edx, byte [r8 + 3]
xor rdx, rcx
imul rdx, rax
and rdx, qword [r12 + 0x30]
mov rax, qword [r12 + 8]
mov r8, qword [r12 + 0x18]
lea rsi, [rdx + rdx]
add rsi, 1
shl rdx, 4
mov rcx, qword [r8 + rdx]
mov ebx, dword [r13]
mov rdx, rcx
jmp 0x140040763
mov rdx, qword [rdx]
mov rdi, rcx
cmp rcx, rax
je 0x140040772
mov rdi, qword [r8 + rsi*8]
mov rdi, qword [rdi]
cmp rdi, rdx
je 0x14004078b
cmp dword [rdx + 0x10], ebx
jne 0x140040760
cmp rdx, rax
je 0x14004078b
mov qword [r14], rdx
mov byte [r14 + 8], 0
jmp 0x1400407fe
mov rsi, qword [rax]
mov r15, qword [rsi + 8]
mov ecx, 0x20
call fcn.14005a670
test rsi, rsi
mov rcx, r15
cmove rcx, rax
mov rdx, rsi
cmove rdx, rax
mov qword [rax], rdx
mov qword [rax + 8], rcx
mov ecx, dword [r13]
mov dword [rax + 0x10], ecx
mov qword [rax + 0x18], 0
mov rcx, qword [r12 + 0x10]
movabs rdx, 0x7fffffffffffffe
cmp rcx, rdx
je 0x140040811
add rcx, 1
mov qword [r12 + 0x10], rcx
mov qword [rsi + 8], rax
mov qword [r15], rax
mov rax, qword [r12 + 8]
mov r9, qword [rax]
lea r8, [r9 + 0x10]
mov rcx, r12
mov rdx, r14
call fcn.140040820
mov rax, r14
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.list_T__too_long
call fcn.14005ae60
ud2
Function at 0x140040b20
Capabilities:
Hash data using fnv

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r8
movzx eax, byte [r8 + 0x10]
movabs rbx, 0xcbf29ce484222325
xor rbx, rax
movabs r8, 0x100000001b3
imul rbx, r8
movzx edi, byte [rsi + 0x11]
xor rdi, rbx
imul rdi, r8
movzx eax, byte [rsi + 0x12]
xor rax, rdi
imul rax, r8
movzx ebx, byte [rsi + 0x13]
xor rbx, rax
imul rbx, r8
and rbx, qword [rcx + 0x30]
mov r14, rdx
lea rdx, [rbx + rbx]
mov rdi, qword [rcx + 0x18]
mov rax, rbx
shl rax, 4
lea r8, [rdi + rax]
mov rax, qword [rdi + rax]
cmp qword [rdi + rdx*8 + 8], rsi
je 0x140040b9c
cmp rax, rsi
jne 0x140040bd0
mov rdx, rsi
jmp 0x140040bca
cmp rax, rsi
je 0x140040baf
lea r8, [rdi + rdx*8]
add r8, 8
lea rdx, [rsi + 8]
jmp 0x140040bca
mov rax, qword [rcx + 8]
mov qword [r8], rax
lea r8, [rbx + rbx]
add r8, 1
lea rdx, [rcx + 8]
shl r8, 3
add r8, qword [rcx + 0x18]
mov rax, qword [rdx]
mov qword [r8], rax
mov rbx, qword [rsi]
mov rax, qword [rsi + 8]
mov qword [rax], rbx
mov rax, qword [rsi]
mov rdx, qword [rsi + 8]
mov qword [rax + 8], rdx
add qword [rcx + 0x10], 0xffffffffffffffff
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x140040c07
lock sub dword [rcx + 8], 1
jne 0x140040c07
add rcx, 8
add rcx, 0xfffffffffffffff8
call fcn.14004c130
mov edx, 0x20
mov rcx, rsi
call fcn.14005a6e0
mov qword [r14], rbx
mov rax, r14
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400411f0
Capabilities:
Hash data using fnv

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r13, r8
mov r14, rdx
mov r12, rcx
movzx eax, byte [r8]
movabs rcx, 0xcbf29ce484222325
xor rcx, rax
movabs rax, 0x100000001b3
imul rcx, rax
movzx edx, byte [r8 + 1]
xor rdx, rcx
imul rdx, rax
movzx ecx, byte [r8 + 2]
xor rcx, rdx
imul rcx, rax
movzx edx, byte [r8 + 3]
xor rdx, rcx
imul rdx, rax
and rdx, qword [r12 + 0x30]
mov rax, qword [r12 + 8]
mov r8, qword [r12 + 0x18]
lea rsi, [rdx + rdx]
add rsi, 1
shl rdx, 4
mov rcx, qword [r8 + rdx]
mov ebx, dword [r13]
mov rdx, rcx
jmp 0x140041283
mov rdx, qword [rdx]
mov rdi, rcx
cmp rcx, rax
je 0x140041292
mov rdi, qword [r8 + rsi*8]
mov rdi, qword [rdi]
cmp rdi, rdx
je 0x1400412ae
cmp dword [rdx + 0x10], ebx
jne 0x140041280
cmp rdx, rax
je 0x1400412ae
mov qword [r14], rdx
mov byte [r14 + 8], 0
jmp 0x140041331
mov rsi, qword [rax]
mov r15, qword [rsi + 8]
mov ecx, 0x38
call fcn.14005a670
test rsi, rsi
mov rcx, r15
cmove rcx, rax
mov rdx, rsi
cmove rdx, rax
mov qword [rax], rdx
mov qword [rax + 8], rcx
mov ecx, dword [r13]
mov dword [rax + 0x10], ecx
mov ecx, 0xf
movq xmm0, rcx
pslldq xmm0, 8
movdqu xmmword [rax + 0x28], xmm0
mov byte [rax + 0x18], 0
mov rcx, qword [r12 + 0x10]
movabs rdx, 0x492492492492491
cmp rcx, rdx
je 0x140041344
add rcx, 1
mov qword [r12 + 0x10], rcx
mov qword [rsi + 8], rax
mov qword [r15], rax
mov rax, qword [r12 + 8]
mov r9, qword [rax]
lea r8, [r9 + 0x10]
mov rcx, r12
mov rdx, r14
call fcn.140041360
mov rax, r14
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.list_T__too_long
call fcn.14005ae60
ud2
Function at 0x140041690
Capabilities:
Hash data using fnv

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r13, r8
mov r14, rdx
mov r12, rcx
movzx eax, byte [r8]
movabs rcx, 0xcbf29ce484222325
xor rcx, rax
movabs rax, 0x100000001b3
imul rcx, rax
movzx edx, byte [r8 + 1]
xor rdx, rcx
imul rdx, rax
movzx ecx, byte [r8 + 2]
xor rcx, rdx
imul rcx, rax
movzx edx, byte [r8 + 3]
xor rdx, rcx
imul rdx, rax
and rdx, qword [r12 + 0x30]
mov rax, qword [r12 + 8]
mov r8, qword [r12 + 0x18]
lea rsi, [rdx + rdx]
add rsi, 1
shl rdx, 4
mov rcx, qword [r8 + rdx]
mov ebx, dword [r13]
mov rdx, rcx
jmp 0x140041723
mov rdx, qword [rdx]
mov rdi, rcx
cmp rcx, rax
je 0x140041732
mov rdi, qword [r8 + rsi*8]
mov rdi, qword [rdi]
cmp rdi, rdx
je 0x14004174b
cmp dword [rdx + 0x10], ebx
jne 0x140041720
cmp rdx, rax
je 0x14004174b
mov qword [r14], rdx
mov byte [r14 + 8], 0
jmp 0x1400417c1
mov rsi, qword [rax]
mov r15, qword [rsi + 8]
mov ecx, 0x38
call fcn.14005a670
test rsi, rsi
mov rcx, r15
cmove rcx, rax
mov rdx, rsi
cmove rdx, rax
mov qword [rax], rdx
mov qword [rax + 8], rcx
mov ecx, dword [r13]
mov dword [rax + 0x10], ecx
xorps xmm0, xmm0
movups xmmword [rax + 0x28], xmm0
movups xmmword [rax + 0x18], xmm0
mov rcx, qword [r12 + 0x10]
movabs rdx, 0x492492492492491
cmp rcx, rdx
je 0x1400417d4
add rcx, 1
mov qword [r12 + 0x10], rcx
mov qword [rsi + 8], rax
mov qword [r15], rax
mov rax, qword [r12 + 8]
mov r9, qword [rax]
lea r8, [r9 + 0x10]
mov rcx, r12
mov rdx, r14
call fcn.1400417f0
mov rax, r14
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.list_T__too_long
call fcn.14005ae60
ud2
Function at 0x140042bd0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test rdx, rdx
je 0x140042c12
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 0x140042c1d
add rdi, rbx
sub rsi, rbx
jne 0x140042bf0
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
int3
Function at 0x14004b920
Capabilities:
Check os version
Get system information on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x160
mov rax, qword [0x1400a2318]
xor rax, rsp
mov qword [rsp + 0x158], rax
mov eax, dword [0x1400a8ba8]
mov ecx, dword [0x1400a5148]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004b982
lea rsi, [0x1400a8ba0]
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
call fcn.14005aa40
mov rax, rsi
add rsp, 0x160
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1400a8ba8]
call fcn.14005a860
mov eax, dword [0x1400a8ba8]
cmp eax, 0xffffffff
jne 0x14004b95d
lea rcx, [rsp + 0x3c]
xor esi, esi
mov r8d, 0x118
xor edx, edx
call fcn.14005f150
mov dword [rsp + 0x38], 0x11c
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x3c]
cmp eax, 0xa
je 0x14004b9d6
cmp eax, 6
jne 0x14004ba11
lea rcx, [0x14007f8d0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.GetProductInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [rsp + 0x3c]
mov edx, dword [rsp + 0x40]
lea rbx, [rsp + 0x34]
mov qword [rsp + 0x20], rbx
xor r8d, r8d
xor r9d, r9d
call rax
mov esi, dword [rsp + 0x34]
mov ecx, pe_nt_image_headers64
call fcn.14005a670
mov rdi, rax
lea rbx, [0x1400a8bb0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rdx, [rsp + 0x38]
mov rcx, rdi
mov r8, rbx
mov r9d, esi
call fcn.14004bb10
mov qword [0x1400a8ba0], rdi
lea rcx, [0x1400a8ba8]
call fcn.14005a8d0
jmp 0x14004b95d

Function at 0x14004ba80
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
lea rcx, [0x1400a8bb0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx ecx, word [0x1400a8bb0]
cmp rcx, 0xc
ja case.0x14004baae.1
xor eax, eax
lea rdx, [0x14004bad0]
movsxd rcx, dword [rdx + rcx*4]
add rcx, rdx
jmp rcx
mov eax, 2
jmp case.0x14004baae.0
mov eax, 4
jmp case.0x14004baae.0
mov eax, 1
jmp case.0x14004baae.0
mov eax, 3
add rsp, 0x28
ret

Function at 0x14004cc60
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1400a2318]
xor rax, rbp
mov qword [rbp - 8], rax
mov eax, 0xffffffff
cmp r8, rax
mov ebx, 0xffffffff
cmovb ebx, r8d
mov qword [rsp + 0x20], 0
lea r9, [rbp - 0xc]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004ccf2
mov r15, qword [sym.imp.KERNEL32.dll_GetFileType]
lea r14, [rbp - 0xc]
mov r12, qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rbp - 0xc]
test eax, eax
jne 0x14004cd06
mov rcx, rdi
call r15
cmp eax, 3
jne 0x14004cd2b
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rsi
mov r8d, ebx
mov r9, r14
call r12
test eax, eax
jne 0x14004ccc4
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x6d
setne sil
neg rsi
jmp 0x14004cd0d
cmp eax, 0xffffffff
je 0x14004cd30
mov esi, eax
mov rcx, qword [rbp - 8]
xor rcx, rbp
call fcn.14005aa40
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
mov eax, dword [rbp - 0xc]
jmp 0x14004cd0b
int3
Function at 0x14004d340
Capabilities:
Clear file content

Disassembly:
push rsi
push rdi
sub rsp, 0x148
mov rdi, rcx
mov rax, qword [0x1400a2318]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor esi, esi
xor edx, edx
xor r8d, r8d
call fcn.14004d280
test rax, rax
jne 0x14004d3d1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov sil, 1
test eax, eax
jne 0x14004d3d1
mov ecx, 2
call fcn.1400230d0
test al, al
je 0x14004d3cf
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_file_io_win.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0xf3
mov r9d, 2
call fcn.1400245c0
lea rcx, [rsp + 0x38]
lea rdx, [0x140086413]
call fcn.14000d630
mov rcx, rsi
call fcn.140024700
xor esi, esi
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14005aa40
mov eax, esi
add rsp, 0x148
pop rdi
pop rsi
ret

Function at 0x14004d800
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14004d819
mov dword [rsi], eax
mov al, 1
jmp 0x14004d81b
xor eax, eax
add rsp, 0x20
pop rsi
ret
Function at 0x140051e40
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov r12, rcx
mov r15, qword [r8 + 0x10]
cmp qword [r8 + 0x18], 0xf
mov rbx, r8
jbe 0x140051e64
mov rbx, qword [r8]
movabs rdi, 0xcbf29ce484222325
mov rbp, r15
sub rbp, 1
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], r8
jae 0x140051e89
mov rbp, rdi
jmp 0x140051f17
movabs rax, 0x100000001b3
mov ecx, r15d
and ecx, 3
cmp rbp, 3
jae 0x140051ea3
xor edx, edx
jmp 0x140051ee8
mov rsi, r15
sub rsi, rcx
xor edx, edx
nop dword [rax + rax]
movzx ebp, byte [rbx + rdx]
xor rbp, rdi
imul rbp, rax
movzx edi, byte [rbx + rdx + 1]
xor rdi, rbp
imul rdi, rax
movzx ebp, byte [rbx + rdx + 2]
xor rbp, rdi
imul rbp, rax
movzx edi, byte [rbx + rdx + 3]
xor rdi, rbp
imul rdi, rax
add rdx, 4
cmp rsi, rdx
jne 0x140051eb0
mov rbp, rdi
test rcx, rcx
je 0x140051f17
add rdx, rbx
xor esi, esi
nop word cs:[rax + rax]
nop
movzx ebp, byte [rdx + rsi]
xor rbp, rdi
imul rbp, rax
add rsi, 1
mov rdi, rbp
cmp rcx, rsi
jne 0x140051f00
and rbp, qword [r12 + 0x30]
mov r14, qword [r12 + 8]
mov rax, qword [r12 + 0x18]
mov rcx, rbp
shl rcx, 4
mov r13, rbp
add r13, rbp
mov rbp, qword [rax + rcx]
mov rdi, r14
cmp rbp, r14
je 0x140051f60
lea rcx, [r13*8]
or rcx, 8
mov rax, qword [rax + rcx]
mov rdi, qword [rax]
nop word cs:[rax + rax]
nop dword [rax]
cmp rbp, rdi
je 0x140051f9f
mov rdi, qword [rdi + 8]
cmp r15, qword [rdi + 0x20]
jne 0x140051f60
cmp qword [rdi + 0x28], 0xf
jbe 0x140051f80
mov rdx, qword [rdi + 0x10]
jmp 0x140051f84
lea rdx, [rdi + 0x10]
mov rcx, rbx
mov r8, r15
call fcn.14005ebe0
test eax, eax
jne 0x140051f60
xor eax, eax
mov rsi, qword [rsp + 0x28]
jmp 0x14005205d
lea rsi, [r12 + 8]
mov rdx, qword [r14]
mov rcx, rsi
mov r8, qword [rsp + 0x30]
call fcn.1400521e0
mov rdx, qword [rsi]
mov rdi, qword [rdx]
mov rax, qword [rdi]
cmp rax, rbp
je 0x140051ff4
mov rcx, qword [rdi + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rbp
mov rcx, qword [rbp + 8]
mov qword [rcx], rdi
mov rcx, qword [rbp + 8]
mov rdx, qword [rax + 8]
mov qword [rbp + 8], rdx
mov rdx, qword [rdi + 8]
mov qword [rax + 8], rdx
mov qword [rdi + 8], rcx
mov rdx, qword [r12 + 8]
mov rsi, qword [rsp + 0x28]
mov rcx, qword [r12 + 0x18]
lea rax, [rcx + r13*8]
mov rbx, qword [rcx + r13*8]
cmp rbx, rdx
je 0x14005203a
mov rdx, rdi
cmp rbx, rbp
je 0x140052050
or r13, 1
mov rax, qword [rcx + r13*8]
mov rax, qword [rax]
mov qword [rcx + r13*8], rax
cmp rdi, rax
je 0x140052053
mov rcx, qword [r12 + 0x18]
lea rax, [rcx + r13*8]
mov rcx, qword [rcx + r13*8]
mov rdx, qword [rcx + 8]
jmp 0x140052050
mov qword [rax], rdi
shl r13, 3
or r13, 8
add r13, qword [r12 + 0x18]
mov rax, r13
mov rdx, rdi
mov qword [rax], rdx
mov rcx, r12
call fcn.140052080
mov al, 1
mov qword [rsi], rdi
mov byte [rsi + 8], al
mov rax, rsi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret