joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140049490
Capabilities:
Set environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rax, qword [0x140125038]
xor rax, rsp
mov qword [rsp + 0x88], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x20], xmm0
movzx eax, byte [r8 + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [r8]
cmovns rax, r8
lea rdx, [rsp + 0x60]
mov qword [rdx], rax
cmovs rcx, qword [r8 + 8]
mov qword [rdx + 8], rcx
lea rsi, [rsp + 0x70]
mov rcx, rsi
call fcn.14002e640
cmp byte [rsi + 0x17], 0
jns 0x1400494f0
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.14002e640
cmp byte [rdi + 0x17], 0
jns 0x140049515
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 0x140049534
mov rcx, qword [rsp + 0x48]
call fcn.140089ba8
cmp byte [rsp + 0x87], 0
jns 0x140049548
mov rcx, qword [rsp + 0x70]
call fcn.140089ba8
test esi, esi
setne bl
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14008b000
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400495f0
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 [0x140125038]
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.14002e640
cmp byte [rdi + 0x17], 0
jns 0x140049631
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 0x140049652
mov rcx, qword [rsp + 0x58]
call fcn.140089ba8
test rsi, rsi
je 0x1400496f9
test edi, edi
je 0x1400496f9
mov ecx, edi
add rcx, rcx
call fcn.140089bdc
mov rbx, rax
movups xmm0, xmmword [r14]
lea rdx, [rsp + 0x30]
movaps xmmword [rdx], xmm0
lea r14, [rsp + 0x58]
mov rcx, r14
call fcn.14002e640
cmp byte [r14 + 0x17], 0
jns 0x140049695
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 0x1400496b5
mov rcx, qword [rsp + 0x58]
call fcn.140089ba8
mov qword [rsp + 0x20], rbx
test rbx, rbx
je 0x140049717
mov rcx, rbx
call fcn.1400a9710
lea rdx, [rsp + 0x20]
mov qword [rdx + 8], rax
lea rcx, [rsp + 0x58]
call fcn.140067fe0
cmp byte [rsi + 0x17], 0
js 0x14004971a
mov rax, qword [rsp + 0x68]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rsi], xmm0
mov rcx, rbx
call fcn.140089be4
test edi, edi
setne bl
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14008b000
mov eax, ebx
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret
int3
mov rcx, qword [rsi]
call fcn.140089ba8
jmp 0x1400496e0
Function at 0x140049730
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14013c648]
mov ecx, dword [0x140134f3c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004976b
movzx eax, word [0x14013c618]
cmp eax, 9
jne 0x1400497b3
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x14013c648]
call fcn.140089cc0
cmp dword [0x14013c648], 0xffffffff
jne 0x140049755
xorps xmm0, xmm0
movups xmmword [0x14013c638], xmm0
movups xmmword [0x14013c628], xmm0
movups xmmword [0x14013c618], xmm0
lea rcx, [0x14013c618]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14013c648]
call fcn.140089d58
jmp 0x140049755
test eax, eax
je 0x140049766
cmp eax, 6
jne 0x1400497c3
mov eax, 2
jmp 0x140049766
cmp eax, 0xc
jne 0x1400497cf
mov eax, 3
jmp 0x140049766
mov eax, 4
jmp 0x140049766
Function at 0x14004acb0
Capabilities:
Create pipe

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x188
mov rsi, rcx
mov rax, qword [0x140125038]
xor rax, rsp
mov qword [rsp + 0x180], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [0x140109be0]
movaps xmmword [rsp + 0x40], xmm0
test dl, dl
je 0x14004ad9c
lea rdi, [rsp + 0x6c]
xor ebx, ebx
mov r8d, 0x110
mov rcx, rdi
xor edx, edx
call fcn.14008d130
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 + 0x60]
mov edx, 0x23
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov edi, 0x80003
test eax, eax
je 0x14004ada3
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.14004ae00
mov qword [rbx + 8], rax
mov dword [rbx + 0x10], 1
jmp 0x14004ada3
mov edi, 3
xor ebx, ebx
cmp byte [rsi + 0x17], 0
jns 0x14004adac
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.14008b000
mov rax, rsi
add rsp, 0x188
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14004b9f0
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x140125038]
xor rax, rsp
mov qword [rsp + 0x50], rax
test rcx, rcx
je 0x14004bc0c
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x140128dc0], rax
jne 0x14004bc0f
mov rsi, rcx
mov r14d, dword [rcx + 0xc]
add r14, 0x518
mov byte [rsp + 0x3f], 0xaa
mov dl, byte [rcx + 2]
mov rcx, r14
call fcn.1400762c0
movzx eax, ax
lea r12, [rax + rax*4]
lea r15, [rsi + r12*8]
add r15, 0x48
lea rbx, [rsi + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14004bbce
mov rax, qword [r15]
mov rdi, qword [rax]
test rdi, rdi
je 0x14004bb5c
mov byte [rsp + 0x3f], 0
mov rcx, qword [rdi]
test rcx, rcx
je 0x14004bbc7
lea rdx, [rsi + r12*8]
bswap rcx
mov r14d, dword [rdx + 0x60]
mov rdx, rcx
xor rdx, rdi
cmp rdx, 0x1fffff
ja 0x14004bbdb
mov edx, ecx
and edx, 0x1fc000
je 0x14004bbdb
prefetcht0 byte [rcx]
mov qword [rax], rcx
mov ecx, dword [rax + 0x18]
lea edx, [rcx + 2]
and edx, 0x3ffe
and ecx, 0xffffc001
or ecx, edx
mov dword [rax + 0x18], ecx
mov rax, qword [rax + 0x10]
mov eax, dword [rax + 0x18]
add rax, qword [rsi + 0x1498]
mov qword [rsi + 0x1498], rax
mov rcx, qword [rsi + 0x14a0]
cmp rcx, rax
cmova rax, rcx
mov qword [rsi + 0x14a0], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, rdi
mov rdx, rsi
call fcn.140079180
mov ecx, dword [0x14013c67c]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x140134f3c]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x120], rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14008b000
mov rax, rdi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rax, [rsp + 0x3f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x4000
mov rcx, r15
mov rdx, rsi
mov r8d, 2
mov r9, r14
call fcn.14007d220
test rax, rax
je 0x14004bc12
mov rdi, rax
mov rcx, rax
and rcx, 0xffffffffffe00000
mov rdx, rax
shr rdx, 9
and edx, 0xfe0
lea rax, [rdx + rcx]
movzx ecx, byte [rdx + rcx + 0x101e]
and ecx, 0x3f
shl rcx, 5
sub rax, rcx
add rax, 0x1000
jmp 0x14004bad7
xor ecx, ecx
jmp 0x14004babd
mov rcx, rbx
call fcn.140079fd0
jmp 0x14004ba6e
movaps xmm0, xmmword [0x140109be0]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi], xmm0
mov r8, qword [rdi]
lea rdx, str.first
mov rcx, rsi
call fcn.1400e07a0
mov rcx, rsi
call fcn.140019c10
mov rcx, r14
call fcn.1400e0810
int3
int3
xor edi, edi
jmp 0x14004bb01
Function at 0x14004c660
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x140125038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, 4
lea r9, [rsp + 0x3c]
mov dword [r9], eax
lea r8, [rsp + 0x38]
mov dword [r8], eax
lea rax, [rsp + 0x34]
mov dword [rax], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004c6e8
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x14004c6d2
cmp dword [rsp + 0x38], 4
jne 0x14004c6d2
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14008b000
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
mov edi, eax
jmp 0x14004c6d2

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

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.14008afa0
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140125038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.14008d130
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 0x14004c7b3
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x14004c7b7
lea rcx, [rsp + 0x840]
call fcn.1400a9710
lea rdx, [rsp + 0x840]
mov rcx, rsi
mov r8, rax
call fcn.140027e00
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14008b000
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x14004c794
cmp eax, 2
jne 0x14004c80c
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.14008d130
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 0x14004c813
lea rcx, [rsp + 0x40]
call fcn.1400a9710
lea rdx, [rsp + 0x40]
jmp 0x14004c787
mov edi, 0x3f4
jmp 0x14004c794
mov edi, 0xea
jmp 0x14004c794

Function at 0x14004c9a0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140134de4]
cmp ecx, 0xffffffff
je 0x14004c9c5
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
dec eax
cmp eax, 2
setb al
add rsp, 0x28
ret
xor eax, eax
jmp 0x14004c9c0
Function at 0x14004c9d0
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 [0x140134de4]
cmp ecx, 0xffffffff
je 0x14004ca99
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x14004ca99
mov eax, dword [0x14013eb78]
mov ecx, dword [0x140134f3c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004caa3
mov rbx, qword [0x14013eb70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14004cae9
mov rax, qword [0x14013d360]
inc rax
xor ecx, ecx
lea rdx, [0x14013d370]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x14004caf6
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov qword [0x14013d360], 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 0x14004cb0b
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14004cb10
jmp 0x14004c9fa
lea rcx, [0x14013eb78]
call fcn.140089cc0
cmp dword [0x14013eb78], 0xffffffff
jne 0x14004ca1f
mov ecx, 8
call fcn.140089b6c
mov rbx, rax
mov rcx, rax
call fcn.140069e30
mov qword [0x14013eb70], rbx
lea rcx, [0x14013eb78]
call fcn.140089d58
jmp 0x14004ca1f
mov rcx, rbx
call fcn.140069e40
jmp 0x14004ca37
inc rcx
cmp rcx, 0x100
jne 0x14004ca4a
jmp 0x14004ca7f
int3

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

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.14008afa0
sub rsp, rax
mov rax, qword [0x140125038]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x140134de4]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x14004cbc4
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14004cc02
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.14008d130
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.140089bdc
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.14008ca80
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.14008b000
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.140054120
test al, al
je 0x14004cc05
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x14004cc08
mov eax, 0xffffffff
lock cmpxchg dword [0x140134de4], ecx
je 0x14004cb48
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x140134de4]
mov dword [rsp + 0x2c], ecx
jmp 0x14004cb48
int3
int3
lea rcx, [rsp + 0x2c]
call fcn.140054120
test al, al
je 0x14004cc2d
cmp dword [rsp + 0x2c], 0xffffffff
je 0x14004cc2d
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x14004cbdb
int3
Function at 0x14004dc20
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x14013ebd8]
cmp rdi, 1
jbe 0x14004dc49
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14007a840
lea rcx, [0x14013ebd8]
call fcn.14004c8c0
test al, al
je 0x14004dc8e
xorps xmm0, xmm0
movups xmmword [0x14013ebe0], xmm0
lea rbx, [0x14013ebd8]
lea rdi, [0x14013ebe0]
mov rcx, rdi
xor edx, edx
call fcn.14004cd20
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.14004c980
jmp 0x14004dc37
mov rdi, qword [0x14013ebd8]
jmp 0x14004dc37
Function at 0x14004f1c0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov esi, ecx
call fcn.1400502e0
test al, al
jne 0x14004f248
call fcn.1400502b0
movzx edx, al
mov ecx, esi
call fcn.14003fa90
mov eax, dword [0x14013ec48]
mov ecx, dword [0x140134f3c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004f217
movsxd rdx, esi
inc rdx
lea rcx, [0x14013ec38]
add rsp, 0x20
pop rsi
jmp fcn.14007a840
lea rcx, [0x14013ec48]
call fcn.140089cc0
cmp dword [0x14013ec48], 0xffffffff
jne 0x14004f200
lea rcx, [0x14013ec38]
xor edx, edx
call fcn.14004cd20
lea rcx, [0x14013ec48]
call fcn.140089d58
jmp 0x14004f200
mov edx, 3
jmp 0x14004f1d8

Function at 0x14004f250
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov esi, ecx
call fcn.14003fa90
mov eax, dword [0x14013ec48]
mov ecx, dword [0x140134f3c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004f294
movsxd rdx, esi
inc rdx
lea rcx, [0x14013ec38]
add rsp, 0x20
pop rsi
jmp fcn.14007a840
lea rcx, [0x14013ec48]
call fcn.140089cc0
cmp dword [0x14013ec48], 0xffffffff
jne 0x14004f27d
lea rcx, [0x14013ec38]
xor edx, edx
call fcn.14004cd20
lea rcx, [0x14013ec48]
call fcn.140089d58
jmp 0x14004f27d

Function at 0x140052560
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x140125038]
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 0x1400525c0
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x1400525c9
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14008b000
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x1400525a9
int3
mov rcx, qword [rcx + 8]
jmp 0x140052560

Function at 0x1400525d0
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 [0x140125038]
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 0x140052673
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x140052662
cmp eax, 0xffffffff
je 0x140052687
mov esi, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14008b000
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 0x140052611
mov eax, dword [rsp + 0x2c]
jmp 0x140052642
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x6d
setne sil
neg rsi
jmp 0x140052644
int3
Function at 0x140052b50
Capabilities:
Clear file content

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rdi, rcx
mov rax, qword [0x140125038]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor esi, esi
xor edx, edx
xor r8d, r8d
call fcn.140052a70
test rax, rax
jne 0x140052b8f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov sil, 1
test eax, eax
je 0x140052bab
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14008b000
mov eax, esi
add rsp, 0x178
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.14006efc0
test al, al
jne 0x140052bbd
xor esi, esi
jmp 0x140052b8f
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.1400dacd0
lea rcx, [rsp + 0x40]
lea rdx, [0x140113dc0]
mov r8d, 0xc
call fcn.1400bd2f0
mov rcx, rsi
call fcn.1400dad50
jmp 0x140052bb9

Function at 0x140053090
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x140125038]
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 0x1400525c0
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x1400525c9
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14008b000
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x1400525a9
int3
mov rcx, qword [rcx + 8]
jmp 0x140052560

Function at 0x140053940
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x14013eed8], 0
jne 0x14005397d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140053970
mov dword [rdi], eax
mov dword [0x14013eee0], eax
mov qword [0x14013eed8], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3

Function at 0x140054120
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 0x140054135
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret
Function at 0x140054170
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x140125038]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r8, 0x30
ja 0x1400542bd
mov r14, r8
mov r15, rdx
mov rsi, rcx
movaps xmm0, xmmword [0x140109be0]
lea rdi, [rsp + 0x40]
movaps xmmword [rdi], xmm0
movaps xmmword [rdi - 0x10], xmm0
movaps xmmword [rdi - 0x20], xmm0
lea r12, [rsp + 0x30]
lea rbx, [rcx + 0x108]
mov eax, dword [rcx + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rcx + 0x114], eax
mov rax, qword [rcx + 0xf8]
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov r8, rsi
call qword [0x14014b008]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, rbx
mov rdx, r12
mov r8, rsi
call qword [0x14014b008]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call qword [0x14014b008]
test r14, r14
je 0x140054253
xor eax, eax
mov cl, byte [r15 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r14, rax
jne 0x140054243
lea r14, [rsi + 0xf8]
mov eax, dword [0x14013ef64]
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
bt eax, 0x19
jae 0x1400542c1
call fcn.140003260
lea rax, [0x140001d60]
test r14, r14
je 0x14005428e
lea rcx, section..text
mov qword [r14], rcx
mov qword [rsi + 0x100], rax
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
mov esi, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14008b000
mov eax, esi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor esi, esi
jmp 0x1400542a0
bt eax, 9
jae 0x1400542e1
call fcn.140004450
lea rax, [0x140004920]
test r14, r14
je 0x14005428e
lea rcx, [0x140004620]
jmp 0x14005428b
call fcn.1400ebf80
lea rax, [0x1400ec780]
test r14, r14
je 0x14005428e
lea rcx, [0x1400ebe40]
jmp 0x14005428b

Function at 0x140055500
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x14013ef98]
cmp rdi, 1
jbe 0x140055529
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14007a840
lea rcx, [0x14013ef98]
call fcn.14004c8c0
test al, al
je 0x14005556e
xorps xmm0, xmm0
movups xmmword [0x14013efa0], xmm0
lea rbx, [0x14013ef98]
lea rdi, [0x14013efa0]
mov rcx, rdi
xor edx, edx
call fcn.14004cd20
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.14004c980
jmp 0x140055517
mov rdi, qword [0x14013ef98]
jmp 0x140055517
Function at 0x1400563a0
Capabilities:
Encode data using base64

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rcx]
mov rbx, qword [rsi + 8]
sub rbx, rcx
sar rbx, 3
lea rdx, [rbx + 1]
mov rax, rdx
shr rax, 0x3d
jne 0x1400564e3
movabs rax, 0x1fffffffffffffff
mov r8, qword [rsi + 0x10]
sub r8, rcx
mov r14, r8
sar r14, 2
cmp r14, rdx
cmovbe r14, rdx
movabs rcx, 0x7ffffffffffffff8
cmp r8, rcx
cmovae r14, rax
test r14, r14
je 0x1400564dc
cmp r14, rax
ja 0x1400564e8
lea rcx, [r14*8]
call fcn.140089b6c
shl rbx, 3
add rbx, rax
je 0x1400564ed
mov rcx, qword [rdi]
mov qword [rbx], rcx
test rcx, rcx
je 0x140056439
lock inc dword [rcx + 8]
lea rax, [rax + r14*8]
lea rcx, [rbx + 8]
mov rdi, qword [rsi]
mov rdx, qword [rsi + 8]
cmp rdx, rdi
je 0x1400564c5
mov r8, qword [rdx - 8]
mov qword [rbx - 8], r8
mov qword [rdx - 8], 0
lea r8, [rdx - 8]
add rbx, 0xfffffffffffffff8
mov rdx, r8
cmp r8, rdi
jne 0x14005644d
mov rdi, qword [rsi]
mov r14, qword [rsi + 8]
mov qword [rsi], rbx
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
cmp r14, rdi
je 0x1400564af
add r14, 0xfffffffffffffff8
test r14, r14
je 0x140056519
mov rcx, qword [r14]
test rcx, rcx
je 0x1400564a3
lock dec dword [rcx + 8]
je 0x140056545
lea rax, [r14 - 8]
cmp r14, rdi
mov r14, rax
jne 0x140056488
test rdi, rdi
je 0x1400564d2
mov rcx, rdi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140089ba8
mov qword [rsi], rbx
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
jmp 0x1400564af
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
xor eax, eax
jmp 0x14005641d
call fcn.1400a2400
call fcn.1400bd2e0
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.1400bdb10
lea rax, str.null_pointer_given_to_destroy_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.__loc___nullptr
mov r8d, 0x3f
call fcn.1400bdb10
mov edx, 1
call fcn.14005cbb0
jmp 0x1400564a3