joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401637f0
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rsi, r8
mov ebx, edx
mov edi, ecx
mov rax, qword [0x14044f038]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [r8 + 0x17]
test al, al
jns 0x140163823
mov rax, qword [rsi + 8]
test rax, rax
je 0x14016391f
bt ebx, 8
jae 0x14016383f
mov eax, ebx
and eax, 0x200
jne 0x14016391f
cmp edi, 2
lea rax, [0x14046ea40]
lea rcx, [0x14046ec40]
cmove rcx, rax
cmp word [rcx], 0
jne 0x14016391f
xorps xmm0, xmm0
lea r14, [rsp + 0x40]
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [r14], 0
je 0x14016391f
cmp byte [0x14046f040], 0
setne al
bt ebx, 8
jb 0x14016391f
shr ebx, 9
and ebx, 1
or bl, al
je 0x14016391f
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea r12, str.SOFTWARE
cmove r12, rax
movzx ebp, byte [rsi + 0x17]
test bpl, bpl
jns 0x14016397b
mov r14, qword [rsi]
mov rbp, qword [rsi + 8]
mov edi, 1
xor ebx, ebx
xor eax, eax
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0
mov r15, qword [r12 + 8]
mov r13, rbp
sub r13, r15
jb 0x14016390c
mov rdx, qword [r12]
mov rcx, r14
mov r8, r15
call fcn.1402774e0
test eax, eax
je 0x14016393e
add r12, 0x28
inc rbx
cmp rbx, rdi
jb 0x1401638ec
cmp dword [rsp + 0x2c], 0
jne 0x140163983
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14025a610
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movzx ecx, word [r14 + r15*2]
cmp ecx, 0x5c
je 0x14016394c
test ecx, ecx
jne 0x14016390c
lea rax, [r14 + r15*2]
mov edx, dword [r12 + 0x10]
mov dword [rsp + 0x2c], edx
cmp edx, 1
je 0x1401639ac
cmp dword [rsp + 0x2c], 2
jne 0x1401639bd
lea rdx, str.WOW6432Node
mov qword [rsp + 0x38], rdx
mov rdx, rax
mov qword [rsp + 0x30], rax
jmp 0x1401639bd
mov r14, rsi
jmp 0x1401638cf
cmp byte [rsi + 0x17], 0
mov rax, rsi
jns 0x14016398f
mov rax, qword [rsi]
mov rdx, qword [rsp + 0x30]
sub rdx, rax
sar rdx, 1
mov rcx, rsi
mov r8, qword [rsp + 0x38]
call fcn.1402d0e00
jmp 0x14016391f
lea rdx, str.WOW6432Node_
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r14
cmp cx, 0x5c
jne 0x1401639d6
lea r14, [rax + 2]
dec r13
cmp word [rax + 2], 0x5c
mov rax, r14
je 0x1401639c3
jmp 0x1401639d9
mov r14, rax
mov rdi, qword [r12 + 0x20]
mov r12, qword [r12 + 0x18]
xor ebx, ebx
mov rbp, r13
jmp 0x140163913
Function at 0x1401643d0
Capabilities:
Set environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rax, qword [0x14044f038]
xor rax, rsp
mov qword [rsp + 0x88], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x20], xmm0
movzx eax, byte [r8 + 0x17]
test al, al
mov rcx, qword [r8]
cmovns rcx, r8
lea rdx, [rsp + 0x60]
mov qword [rdx], rcx
cmovs rax, qword [r8 + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x70]
mov rcx, rsi
call fcn.1401ff430
cmp byte [rsi + 0x17], 0
jns 0x14016442b
mov rsi, qword [rsp + 0x70]
movaps xmm0, xmmword [rsp + 0x20]
lea rdx, [rsp + 0x30]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x48]
mov rcx, rdi
call fcn.1401ff430
cmp byte [rdi + 0x17], 0
jns 0x140164450
mov rdi, qword [rsp + 0x48]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esi, eax
cmp byte [rsp + 0x5f], 0
jns 0x14016446f
mov rcx, qword [rsp + 0x48]
call fcn.140258e54
cmp byte [rsp + 0x87], 0
jns 0x140164483
mov rcx, qword [rsp + 0x70]
call fcn.140258e54
test esi, esi
setne bl
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14025a610
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

Function at 0x140164530
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
mov rsi, rdx
mov r14, rcx
mov rax, qword [0x14044f038]
xor rax, rsp
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x58]
mov rcx, rdi
call fcn.1401ff430
cmp byte [rdi + 0x17], 0
jns 0x140164571
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp byte [rsp + 0x6f], 0
jns 0x140164592
mov rcx, qword [rsp + 0x58]
call fcn.140258e54
test rsi, rsi
je 0x140164639
test edi, edi
je 0x140164639
mov ecx, edi
add rcx, rcx
call fcn.140258e8c
mov rbx, rax
movups xmm0, xmmword [r14]
lea rdx, [rsp + 0x30]
movaps xmmword [rdx], xmm0
lea r14, [rsp + 0x58]
mov rcx, r14
call fcn.1401ff430
cmp byte [r14 + 0x17], 0
jns 0x1401645d5
mov r14, qword [rsp + 0x58]
mov rcx, r14
mov rdx, rbx
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [rsp + 0x6f], 0
jns 0x1401645f5
mov rcx, qword [rsp + 0x58]
call fcn.140258e54
mov qword [rsp + 0x20], rbx
test rbx, rbx
je 0x140164657
mov rcx, rbx
call fcn.1402831c4
lea rdx, [rsp + 0x20]
mov qword [rdx + 8], rax
lea rcx, [rsp + 0x58]
call fcn.1401ff8f0
cmp byte [rsi + 0x17], 0
js 0x14016465a
mov rax, qword [rsp + 0x68]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rsi], xmm0
mov rcx, rbx
call fcn.140258e94
test edi, edi
setne bl
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14025a610
mov eax, ebx
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret
int3
mov rcx, qword [rsi]
call fcn.140258e54
jmp 0x140164620
Function at 0x140169120
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x14046f168], 0
jne 0x14016915d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140169150
mov dword [rdi], eax
mov dword [0x14046f170], eax
mov qword [0x14046f168], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3
Function at 0x14016be30
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
lea r14, [rcx + 0x38]
mov rcx, qword [rcx + 0x38]
test rcx, rcx
jne 0x14016bf2b
lea r12, [rdi + 0x30]
mov rcx, qword [rdi + 0x30]
test rcx, rcx
jne 0x14016bf44
mov qword [rsp + 0x20], r12
lea rcx, [0x1403a8968]
lea r9, [0x140430ee0]
xor edx, edx
mov r8d, 0x17
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov r15, qword [r12]
test eax, eax
js 0x14016bf5e
mov rcx, qword [r14]
test rcx, rcx
jne 0x14016bf77
mov rax, qword [r15]
mov rax, qword [rax + 0x90]
mov rcx, r15
mov rdx, r14
call qword [case.0x1402d5a00.0]
test eax, eax
js 0x14016bf90
cmp rdi, rbx
je 0x14016bee3
cmp byte [rdi + 0x17], 0
movzx r8d, byte [rbx + 0x17]
js 0x14016bf12
test r8b, r8b
jns 0x14016bf02
mov rdx, qword [rbx]
mov r8, qword [rbx + 8]
mov rcx, rdi
call fcn.1400e4f70
add rdi, 0x18
mov rcx, rdi
mov rdx, rsi
call fcn.14020a820
mov al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rax, qword [rbx + 0x10]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rbx]
movups xmmword [rdi], xmm0
jmp 0x14016bee3
test r8b, r8b
jns 0x14016bf1e
mov r8, qword [rbx + 8]
mov rbx, qword [rbx]
mov rcx, rdi
mov rdx, rbx
call fcn.1400e4e80
jmp 0x14016bee3
mov qword [r14], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1402d5a00.0]
jmp 0x14016be57
mov qword [r12], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1402d5a00.0]
jmp 0x14016be68
test r15, r15
je 0x14016bfac
mov qword [r12], 0
mov rax, qword [r15]
mov rax, qword [rax + 0x10]
mov rcx, r15
jmp 0x14016bfa6
mov qword [r14], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1402d5a00.0]
jmp 0x14016bea1
mov rcx, qword [r14]
test rcx, rcx
je 0x14016bfac
mov qword [r14], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1402d5a00.0]
xor eax, eax
jmp 0x14016bef4
Function at 0x140174980
Capabilities:
Create pipe

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x188
mov rsi, rcx
mov rax, qword [0x14044f038]
xor rax, rsp
mov qword [rsp + 0x180], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [0x1403db8a0]
movaps xmmword [rsp + 0x40], xmm0
test dl, dl
je 0x140174a6c
lea rdi, [rsp + 0x70]
xor ebx, ebx
mov r8d, 0x110
mov rcx, rdi
xor edx, edx
call fcn.14025c760
mov dword [rdi - 0xc], 0x11c
mov r14, qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
xor ecx, ecx
mov edx, 2
mov r8b, 3
call r14
mov rcx, rax
mov edx, 1
mov r8b, 3
call r14
mov rcx, rax
mov edx, 0x20
mov r8b, 3
call r14
mov qword [rdi - 8], 6
mov word [rdi + 0x108], 0
lea rcx, [rsp + 0x64]
mov edx, 0x23
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov edi, 0x80003
test eax, eax
je 0x140174a73
xorps xmm0, xmm0
lea rbx, [rsp + 0x40]
movaps xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov dword [rbx], 0x18
xor ecx, ecx
call fcn.140174ad0
mov qword [rbx + 8], rax
mov dword [rbx + 0x10], 1
jmp 0x140174a73
mov edi, 3
xor ebx, ebx
cmp byte [rsi + 0x17], 0
jns 0x140174a7c
mov rsi, qword [rsi]
mov qword [rsp + 0x38], rbx
mov eax, 0x200
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x30], 0
mov rcx, rsi
mov edx, edi
mov r8d, 6
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rsi, rax
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.14025a610
mov rax, rsi
add rsp, 0x188
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140177350
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x140177360
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r14, rcx
cmp byte [rdx + 0x17], 0
jns 0x140177381
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x1401773a1
cmp byte [r14 + 0x68], 0
jne 0x140177465
or edi, 0x20000000
test dil, 8
jne 0x14017741b
xor r15d, r15d
cmp byte [r14 + 0x70], 0
mov r12d, 0
je 0x1401773bb
mov r12, qword [r14 + 0x78]
cmp byte [r14 + 0x50], 0
mov r13d, 0
je 0x1401773cc
mov r13, qword [r14 + 0x58]
cmp byte [r14 + 0x28], 0
jne 0x140177430
cmp byte [r14], 0
jne 0x14017743e
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x14017744f
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r15
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
test eax, eax
jne 0x14017745b
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [r14 + 0x88], 0
je 0x140177482
or edi, 0x40000000
jmp 0x1401773a7
lea rcx, [r14 + 0x30]
call fcn.1400ba710
mov r15, rax
jmp 0x1401773d3
add r14, 8
mov rcx, r14
call fcn.1400ba710
mov r9, rax
jmp 0x1401773dc
cmp ebx, 4
jne 0x140177470
mov edx, 6
jmp 0x1401773e5
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140177406
or edi, 0x80000000
jmp 0x1401773a1
lea eax, [rbx - 2]
cmp eax, 2
jae 0x14017748d
mov edx, 7
jmp 0x1401773e5
or edi, 0x10000000
jmp 0x1401773a7
cmp ebx, 1
jne 0x14017749c
mov edx, 4
jmp 0x1401773e5
xor edx, edx
jmp 0x1401773e5
Function at 0x140177360
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x140177360
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r14, rcx
cmp byte [rdx + 0x17], 0
jns 0x140177381
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x1401773a1
cmp byte [r14 + 0x68], 0
jne 0x140177465
or edi, 0x20000000
test dil, 8
jne 0x14017741b
xor r15d, r15d
cmp byte [r14 + 0x70], 0
mov r12d, 0
je 0x1401773bb
mov r12, qword [r14 + 0x78]
cmp byte [r14 + 0x50], 0
mov r13d, 0
je 0x1401773cc
mov r13, qword [r14 + 0x58]
cmp byte [r14 + 0x28], 0
jne 0x140177430
cmp byte [r14], 0
jne 0x14017743e
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x14017744f
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r15
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
test eax, eax
jne 0x14017745b
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [r14 + 0x88], 0
je 0x140177482
or edi, 0x40000000
jmp 0x1401773a7
lea rcx, [r14 + 0x30]
call fcn.1400ba710
mov r15, rax
jmp 0x1401773d3
add r14, 8
mov rcx, r14
call fcn.1400ba710
mov r9, rax
jmp 0x1401773dc
cmp ebx, 4
jne 0x140177470
mov edx, 6
jmp 0x1401773e5
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140177406
or edi, 0x80000000
jmp 0x1401773a1
lea eax, [rbx - 2]
cmp eax, 2
jae 0x14017748d
mov edx, 7
jmp 0x1401773e5
or edi, 0x10000000
jmp 0x1401773a7
cmp ebx, 1
jne 0x14017749c
mov edx, 4
jmp 0x1401773e5
xor edx, edx
jmp 0x1401773e5

Function at 0x1401774b0
Capabilities:
Inspect section memory permissions

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r15, rcx
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x1401774e8
cmp byte [r15 + 0x68], 0
jne 0x1401775b7
or edi, 0x20000000
test dil, 8
jne 0x140177576
xor r14d, r14d
cmp byte [r15 + 0x70], 0
mov r12d, 0
je 0x140177506
mov r12, qword [r15 + 0x78]
cmp byte [r15 + 0x50], 0
mov r13d, 0
je 0x140177517
mov r13, qword [r15 + 0x58]
cmp byte [r15 + 0x28], 0
jne 0x14017758b
cmp byte [r15], 0
jne 0x140177599
xor r9d, r9d
cmp ebx, 4
jne 0x140177567
mov edx, 6
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
mov esi, eax
test eax, eax
jne 0x1401775ad
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea eax, [rbx - 2]
cmp eax, 2
jae 0x1401775cd
mov edx, 7
jmp 0x140177531
cmp byte [r15 + 0x88], 0
je 0x1401775c2
or edi, 0x40000000
jmp 0x1401774f2
lea rcx, [r15 + 0x30]
call fcn.1400ba710
mov r14, rax
jmp 0x14017751e
add r15, 8
mov rcx, r15
call fcn.1400ba710
mov r9, rax
jmp 0x140177527
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140177552
or edi, 0x80000000
jmp 0x1401774e8
or edi, 0x10000000
jmp 0x1401774f2
mov edx, 1
test ebx, ebx
je 0x140177531
cmp ebx, 1
jne 0x1401775e9
mov edx, 4
jmp 0x140177531
xor edx, edx
jmp 0x140177531
Function at 0x14017bc40
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x14044f038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edi, 0xffffffff
cmp r8, rdi
cmovae r8, rdi
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14017bca0
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x14017bca9
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14025a610
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x14017bc89
int3
mov rcx, qword [rcx + 8]
jmp 0x14017bc40

Function at 0x14017bcb0
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 [0x14044f038]
xor rax, rsp
mov ebx, 0xffffffff
cmp r8, rbx
cmovb rbx, r8
mov qword [rsp + 0x30], rax
lea r14, [rsp + 0x2c]
mov r15, qword [sym.imp.KERNEL32.dll_ReadFile]
mov r12, qword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rsi
mov r8d, ebx
mov r9, r14
call r15
test eax, eax
je 0x14017bd53
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x14017bd42
cmp eax, 0xffffffff
je 0x14017bd67
mov esi, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14025a610
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, rdi
call r12
cmp eax, 3
je 0x14017bcf1
mov eax, dword [rsp + 0x2c]
jmp 0x14017bd22
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x6d
setne sil
neg rsi
jmp 0x14017bd24
int3

Function at 0x14017c230
Capabilities:
Clear file content

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rdi, rcx
mov rax, qword [0x14044f038]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor esi, esi
xor edx, edx
xor r8d, r8d
call fcn.14017c120
test rax, rax
jne 0x14017c26f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov sil, 1
test eax, eax
je 0x14017c28b
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14025a610
mov eax, esi
add rsp, 0x178
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140209bc0
test al, al
jne 0x14017c29d
xor esi, esi
jmp 0x14017c26f
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_file_io_win.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0xfb
mov r9d, 2
call fcn.1402dddc0
lea rcx, [rsp + 0x40]
lea rdx, [0x140433847]
mov r8d, ntohl
call fcn.14029aae0
mov rcx, rsi
call fcn.1402dde40
jmp 0x14017c299

Function at 0x14017c780
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x14044f038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edi, 0xffffffff
cmp r8, rdi
cmovae r8, rdi
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14017bca0
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x14017bca9
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14025a610
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x14017bc89
int3
mov rcx, qword [rcx + 8]
jmp 0x14017bc40
Function at 0x14017f940
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r8
mov rsi, rdx
mov ebx, ecx
mov rax, qword [0x14044f038]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x14017f910]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x1404701c0]
lea rdx, [0x14017f760]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14017fa38
cmp dword [0x1404701c8], 0
jne 0x14017fa45
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x1404701cc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x14017f9ec
mov ecx, 1
mov edx, 0x28
call fcn.1401fb410
test rax, rax
je 0x14017fa45
mov r14, rax
mov ecx, dword [0x1404701cc]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14017fa3d
lea r15, [0x1404701d0]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x1404701e0]
mov qword [rax + rbx*8], rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [r14 + rbx*8], rsi
mov esi, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14025a610
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1402735f0
mov rcx, r14
call fcn.1401fb370
mov rcx, rsi
mov rax, rdi
call qword [case.0x1402d5a00.0]
xor esi, esi
jmp 0x14017fa1c

Function at 0x140180350
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x14018038c
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 0x140180396
add rdi, rbx
sub rsi, rbx
jne 0x14018036a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1402735f0
int3
Function at 0x140195b80
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140461748]
cmp ecx, 0xffffffff
je 0x140195ba2
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140195ba7
call fcn.140195cc0
mov eax, dword [0x140471c40]
mov ecx, dword [0x14046184c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140195c57
mov rbx, qword [0x140471c38]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140195c9d
mov rax, qword [0x140470428]
inc rax
xor ecx, ecx
lea rdx, [0x140470430]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x140195caa
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov ecx, dword [0x140471c30]
inc ecx
mov dword [0x140471c30], ecx
mov dword [rax + 0x14], ecx
mov qword [0x140470428], r8
mov qword [rsi], r8
mov eax, dword [rax + 0x10]
mov dword [rsi + 8], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsi], 0x100
jae 0x140195cbc
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140471c40]
call fcn.140258f70
cmp dword [0x140471c40], 0xffffffff
jne 0x140195bcc
mov ecx, 8
call fcn.140258e18
mov rbx, rax
mov rcx, rax
call fcn.1401ee410
mov qword [0x140471c38], rbx
lea rcx, [0x140471c40]
call fcn.140259008
jmp 0x140195bcc
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x140195be4
inc rcx
cmp rcx, 0x100
jne 0x140195bf7
jmp 0x140195c3d
int3

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

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.14025a5b0
sub rsp, rax
mov rax, qword [0x14044f038]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x140461748]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x140195d74
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140195db2
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.14025c760
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.140258e8c
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.14025c0b0
mov ecx, dword [rsp + 0x2c]
mov rdx, rdi
or rdx, 3
call sub.KERNEL32.dll_TlsSetValue
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.14025a610
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.1401af240
test al, al
je 0x140195db5
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x140195db8
mov eax, 0xffffffff
lock cmpxchg dword [0x140461748], ecx
je 0x140195cf8
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x140461748]
mov dword [rsp + 0x2c], ecx
jmp 0x140195cf8
int3
int3
lea rcx, [rsp + 0x2c]
call fcn.1401af240
test al, al
je 0x140195ddd
cmp dword [rsp + 0x2c], 0xffffffff
je 0x140195ddd
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x140195d8b
int3