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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x140192040]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r8, 0x30
ja 0x140050d09
mov r14, r8
mov r15, rdx
mov rsi, rcx
movaps xmm0, xmmword [0x1401667f0]
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 [0x140185010]
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 [0x140185010]
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 [0x140185010]
test r14, r14
je 0x140050ca3
xor eax, eax
mov cl, byte [r15 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r14, rax
jne 0x140050c93
mov ecx, 1
call fcn.140095bf0
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
bt eax, 0x19
jae 0x140050d0d
call fcn.140002fe0
lea rax, [0x140001d60]
lea rcx, [fcn.140001000]
mov qword [rsi + 0xf8], 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.1400b4010
mov eax, esi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor esi, esi
jmp 0x140050cec
bt eax, 9
jae 0x140050d28
call fcn.1400040d0
lea rax, [0x1400045a0]
lea rcx, [fcn.1400042a0]
jmp 0x140050cd3
call fcn.140113290
lea rax, [0x140113a90]
lea rcx, [0x140113170]
jmp 0x140050cd3
Function at 0x140050d50
Capabilities:
Hash data using sha256

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xe8
movaps xmmword [rsp + 0xd0], xmm8
movaps xmmword [rsp + 0xc0], xmm7
movaps xmmword [rsp + 0xb0], xmm6
mov qword [rsp + 0x28], r9
mov rax, qword [0x140192040]
xor rax, rsp
mov qword [rsp + 0xa8], rax
xorps xmm6, xmm6
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
mov esi, 1
test rdx, rdx
je 0x140050f1b
mov r15, r8
mov rdi, rdx
mov rbx, rcx
mov rsi, qword [rsp + 0x150]
mov r13d, dword [rsi + 4]
xor r14d, r14d
movaps xmm7, xmmword [0x140179d60]
movaps xmm8, xmmword [0x140179d70]
lea r12, [rsp + 0x30]
mov eax, r14d
bswap eax
mov dword [rsp + 0x5c], eax
cmp qword [rsp + 0x30], rsi
je 0x140050e12
mov ecx, dword [rsi + 0x2c]
call fcn.140097f90
test rax, rax
je 0x140050f6e
mov rbp, rax
mov rcx, qword [rsp + 0x38]
call fcn.140097ff0
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rsi
mov rax, qword [rsi + 0x10]
lea rcx, [0x140128cf0]
cmp rax, rcx
jne 0x140050f72
mov rax, qword [rsp + 0x38]
movups xmmword [rax + 0x5c], xmm6
movups xmmword [rax + 0x50], xmm6
movups xmmword [rax + 0x40], xmm6
movups xmmword [rax + 0x30], xmm6
movups xmmword [rax + 0x20], xmm6
movups xmmword [rax], xmm7
movups xmmword [rax + 0x10], xmm8
mov dword [rax + 0x6c], 0x20
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x18]
mov rcx, r12
mov rdx, r15
mov r8, qword [rsp + 0x28]
call qword [0x140185010]
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x18]
mov r8d, 4
mov rcx, r12
lea rdx, [rsp + 0x5c]
call qword [0x140185010]
cmp rdi, r13
jb 0x140050ec2
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x20]
mov rcx, r12
mov rdx, rbx
call qword [0x140185010]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov edx, dword [rax + 0x2c]
call fcn.140098030
add rbx, r13
inc r14d
sub rdi, r13
jne 0x140050dda
jmp 0x140050f16
movaps xmm0, xmmword [0x1401667f0]
lea r14, [rsp + 0x60]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea r15, [rsp + 0x30]
mov rax, qword [r15]
mov rax, qword [rax + 0x20]
mov rcx, r15
mov rdx, r14
call qword [0x140185010]
mov rax, qword [r15]
mov rcx, qword [r15 + 8]
mov edx, dword [rax + 0x2c]
call fcn.140098030
mov rcx, rbx
mov rdx, r14
mov r8, rdi
call fcn.1400e6070
mov esi, 1
mov rcx, qword [rsp + 0x38]
call fcn.140097ff0
mov rax, qword [rsp + 0x48]
test rax, rax
jne 0x140050f82
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1400b4010
mov eax, esi
movaps xmm6, xmmword [rsp + 0xb0]
movaps xmm7, xmmword [rsp + 0xc0]
movaps xmm8, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor esi, esi
jmp 0x140050f1b
lea rcx, [rsp + 0x30]
call qword [0x140185010]
jmp 0x140050e4e
mov rax, qword [rax]
mov rcx, qword [rsp + 0x40]
call qword [0x140185010]
jmp 0x140050f2f
Function at 0x1400522f0
Capabilities:
Encode data using xor
Hash data using sha1 via x86 extensions

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov ecx, 2
call fcn.140095bf0
mov ebp, eax
bt eax, 0x1d
jb 0x140052333
not ebp
test ebp, 0x128
jne 0x140052359
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.140010eb0
mov ecx, 1
call fcn.140095bf0
bt eax, 9
jae 0x140052313
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.14000ef40
mov ecx, 1
call fcn.140095bf0
mov ebp, eax
bt eax, 0x1c
jae 0x140052378
xor ecx, ecx
call fcn.140095bf0
bt eax, 0x1e
jb 0x1400523a2
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
bt ebp, 9
jb 0x140052394
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.14000df00
nop
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.14000f210
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.1400100b0

Function at 0x140052410
Capabilities:
Encode data using xor
Hash data using sha256 via x86 extensions

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov ecx, 2
call fcn.140095bf0
bt eax, 0x1d
jb 0x140052490
mov ecx, 1
call fcn.140095bf0
mov ebp, eax
bt eax, 0x1c
jae 0x140052466
xor ecx, ecx
call fcn.140095bf0
bt eax, 0x1e
jae 0x140052466
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.140014f40
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
bt ebp, 9
jb 0x140052482
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.140012a80
nop
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.140014000
mov ecx, 1
call fcn.140095bf0
bt eax, 9
jae 0x140052431
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.140013c40
Function at 0x140052fb0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x140192040]
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 0x140053038
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x140053022
cmp dword [rsp + 0x38], 4
jne 0x140053022
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400b4010
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
mov edi, eax
jmp 0x140053022

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

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.1400b3fb0
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140192040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.1400e6710
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 0x1400530f3
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x1400530f7
lea rdx, [rsp + 0x840]
mov rcx, rsi
call fcn.140036670
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400b4010
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x1400530d4
cmp eax, 2
jne 0x14005313f
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.1400e6710
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 0x140053146
lea rdx, [rsp + 0x40]
jmp 0x1400530ca
mov edi, 0x3f4
jmp 0x1400530d4
mov edi, 0xea
jmp 0x1400530d4
Function at 0x140054b50
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x140054b60
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 0x140054b81
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x140054ba1
cmp byte [r14 + 0x50], 1
je 0x140054c2c
or edi, 0x20000000
test dil, 8
jne 0x140054c37
xor r15d, r15d
cmp byte [r14 + 0x60], 0
mov r12d, 0
je 0x140054bbf
mov r12, qword [r14 + 0x58]
cmp byte [r14 + 0x48], 0
mov r13d, 0
je 0x140054bd0
mov r13, qword [r14 + 0x40]
cmp byte [r14 + 0x38], 1
je 0x140054c5e
cmp byte [r14 + 0x18], 1
je 0x140054c6f
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x140054c7f
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 0x140054c54
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
or edi, 0x80000000
jmp 0x140054ba1
cmp byte [r14 + 0x68], 1
jne 0x140054c49
or edi, 0x40000000
jmp 0x140054bab
or edi, 0x10000000
jmp 0x140054bab
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140054c17
lea rcx, [r14 + 0x20]
call fcn.140038170
mov r15, rax
jmp 0x140054bdb
mov rcx, r14
call fcn.140038170
mov r9, rax
jmp 0x140054be9
cmp ebx, 4
jne 0x140054c8e
mov edx, 6
jmp 0x140054bf6
lea eax, [rbx - 2]
cmp eax, 2
jae 0x140054ca0
mov edx, 7
jmp 0x140054bf6
cmp ebx, 1
jne 0x140054caf
mov edx, 4
jmp 0x140054bf6
xor edx, edx
jmp 0x140054bf6
Function at 0x140054b60
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x140054b60
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 0x140054b81
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x140054ba1
cmp byte [r14 + 0x50], 1
je 0x140054c2c
or edi, 0x20000000
test dil, 8
jne 0x140054c37
xor r15d, r15d
cmp byte [r14 + 0x60], 0
mov r12d, 0
je 0x140054bbf
mov r12, qword [r14 + 0x58]
cmp byte [r14 + 0x48], 0
mov r13d, 0
je 0x140054bd0
mov r13, qword [r14 + 0x40]
cmp byte [r14 + 0x38], 1
je 0x140054c5e
cmp byte [r14 + 0x18], 1
je 0x140054c6f
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x140054c7f
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 0x140054c54
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
or edi, 0x80000000
jmp 0x140054ba1
cmp byte [r14 + 0x68], 1
jne 0x140054c49
or edi, 0x40000000
jmp 0x140054bab
or edi, 0x10000000
jmp 0x140054bab
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140054c17
lea rcx, [r14 + 0x20]
call fcn.140038170
mov r15, rax
jmp 0x140054bdb
mov rcx, r14
call fcn.140038170
mov r9, rax
jmp 0x140054be9
cmp ebx, 4
jne 0x140054c8e
mov edx, 6
jmp 0x140054bf6
lea eax, [rbx - 2]
cmp eax, 2
jae 0x140054ca0
mov edx, 7
jmp 0x140054bf6
cmp ebx, 1
jne 0x140054caf
mov edx, 4
jmp 0x140054bf6
xor edx, edx
jmp 0x140054bf6

Function at 0x140054cc0
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 0x140054cf8
cmp byte [r15 + 0x50], 1
je 0x140054d8f
or edi, 0x20000000
test dil, 8
jne 0x140054d9a
xor r14d, r14d
cmp byte [r15 + 0x60], 0
mov r12d, 0
je 0x140054d16
mov r12, qword [r15 + 0x58]
cmp byte [r15 + 0x48], 0
mov r13d, 0
je 0x140054d27
mov r13, qword [r15 + 0x40]
cmp byte [r15 + 0x38], 1
je 0x140054dc1
cmp byte [r15 + 0x18], 1
je 0x140054dd2
xor r9d, r9d
cmp ebx, 4
jne 0x140054d80
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 0x140054db7
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 0x140054de2
mov edx, 7
jmp 0x140054d4a
or edi, 0x80000000
jmp 0x140054cf8
cmp byte [r15 + 0x68], 1
jne 0x140054dac
or edi, 0x40000000
jmp 0x140054d02
or edi, 0x10000000
jmp 0x140054d02
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140054d6b
lea rcx, [r15 + 0x20]
call fcn.140038170
mov r14, rax
jmp 0x140054d32
mov rcx, r15
call fcn.140038170
mov r9, rax
jmp 0x140054d40
mov edx, 1
test ebx, ebx
je 0x140054d4a
cmp ebx, 1
jne 0x140054dfe
mov edx, 4
jmp 0x140054d4a
xor edx, edx
jmp 0x140054d4a
Function at 0x1400558c0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x10050
call fcn.1400b3fb0
sub rsp, rax
mov rsi, rdx
mov rax, qword [0x140192040]
xor rax, rsp
mov qword [rsp + 0x10048], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1401667f0]
movaps xmmword [rdi], xmm0
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
mov rcx, rdi
call fcn.14007f5a0
test rsi, rsi
je 0x140055998
lea rbx, [rsp + 0x4a]
mov r8d, 0xfffe
mov rcx, rbx
mov dl, 0xaa
call fcn.1400e6710
cmp byte [rsp + 0x47], 0
jns 0x14005593b
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
mov rdx, rbx
mov r8d, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne bl
je 0x14005596a
cmp eax, 0x7fff
jae 0x1400559bd
mov edx, eax
lea rcx, [rsp + 0x4a]
mov r8, rsi
call fcn.14003c0b0
cmp byte [rsp + 0x47], 0
jns 0x14005597b
mov rcx, qword [rsp + 0x30]
call fcn.1400b2d24
mov rcx, qword [rsp + 0x10048]
xor rcx, rsp
call fcn.1400b4010
mov eax, ebx
add rsp, 0x10050
pop rbx
pop rdi
pop rsi
ret
cmp byte [rsp + 0x47], 0
js 0x1400559a6
lea rcx, [rsp + 0x30]
jmp 0x1400559ab
mov rcx, qword [rsp + 0x30]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne bl
jmp 0x14005596a
int3

Function at 0x140055ef0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rcx, rcx
je 0x140055f67
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x1401946a0], rax
jne 0x140055f6a
mov rsi, rcx
call fcn.14005c300
mov edx, 0x568
mov rcx, rax
xor r8d, r8d
call fcn.140055f80
mov rdi, rax
mov rcx, rax
mov rdx, rsi
call fcn.140096190
mov ecx, dword [0x1401a6ae0]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x1401a0798]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x150], rdi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
int3
int3
Function at 0x140057db0
Capabilities:
Encrypt data using openssl rsa

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rax, qword [0x140192040]
xor rax, rsp
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [0x1401667f0]
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
mov r8d, 6
call fcn.14005c410
test eax, eax
je 0x140057ec8
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
movzx eax, byte [0x14017d1d5]
cmp rsi, rax
jne 0x140057e37
lea rbx, [0x14017d1c8]
test al, al
je 0x140057e1f
lea rdx, [0x14017d1cc]
mov rcx, rdi
mov r8, rsi
call fcn.1400e5f70
test eax, eax
jne 0x140057e37
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400b4010
mov rax, rbx
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
movzx eax, byte [0x14017d40d]
cmp rsi, rax
jne 0x140057e64
lea rbx, [0x14017d400]
test al, al
je 0x140057e1f
lea rdx, [0x14017d404]
mov rcx, rdi
mov r8, rsi
call fcn.1400e5f70
test eax, eax
je 0x140057e1f
movzx eax, byte [0x14017d2ed]
cmp rsi, rax
jne 0x140057e91
lea rbx, [0x14017d2e0]
test al, al
je 0x140057e1f
lea rdx, [0x14017d2e4]
mov rcx, rdi
mov r8, rsi
call fcn.1400e5f70
test eax, eax
je 0x140057e1f
movzx eax, byte [0x14017d4ed]
cmp rsi, rax
jne 0x140057ecf
lea rbx, [0x14017d4e0]
test al, al
je 0x140057e1f
lea rdx, [0x14017d4e4]
mov rcx, rdi
mov r8, rsi
call fcn.1400e5f70
test eax, eax
je 0x140057e1f
jmp 0x140057ecf
xor ebx, ebx
jmp 0x140057e1f
movzx eax, byte [0x14017d5d5]
cmp rsi, rax
jne 0x140057ec8
lea rbx, [0x14017d5c8]
test al, al
je 0x140057e1f
lea rdx, [0x14017d5cc]
mov rcx, rdi
mov r8, rsi
call fcn.1400e5f70
test eax, eax
je 0x140057e1f
jmp 0x140057ec8

Function at 0x140058fa0
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 [0x140192040]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x140058f70]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x1401a78d0]
lea rdx, [0x140058dc0]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140059098
cmp dword [0x1401a78d8], 0
jne 0x1400590a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x1401a78dc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x14005904c
mov ecx, 1
mov edx, 0x28
call fcn.140084420
test rax, rax
je 0x1400590a5
mov r14, rax
mov ecx, dword [0x1401a78dc]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14005909d
lea r15, [0x1401a78e0]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x1401a78f0]
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.1400b4010
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400c7960
mov rcx, r14
call fcn.140084380
mov rcx, rsi
mov rax, rdi
call qword [0x140185010]
xor esi, esi
jmp 0x14005907c
Function at 0x14005c200
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x1401a7968], 0
jne 0x14005c23d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14005c230
mov dword [rdi], eax
mov dword [0x1401a7970], eax
mov qword [0x1401a7968], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3
Function at 0x1400789a0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x58
movdqa xmmword [rsp + 0x40], xmm10
movdqa xmmword [rsp + 0x30], xmm9
movdqa xmmword [rsp + 0x20], xmm8
movdqa xmmword [rsp + 0x10], xmm7
movdqa xmmword [rsp], xmm6
movdqu xmm4, xmmword [rcx]
movdqu xmm3, xmmword [rcx + 0x10]
movdqu xmm2, xmmword [rcx + 0x20]
movdqu xmm1, xmmword [rcx + 0x30]
movd xmm0, r8d
pxor xmm0, xmm4
add rdx, 0xffffffffffffffc0
add rcx, 0x40
cmp rdx, 0x40
jae 0x140078b1f
movabs rax, 0x1751997d0
movq xmm4, rax
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm3
pmovzxdq xmm3, qword [0x140169d00]
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm5
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm2
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm5
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm2
cmp rdx, 0x10
jb 0x140078a82
movdqu xmm1, xmmword [rcx]
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm2
add rcx, 0x10
add rdx, 0xfffffffffffffff0
cmp rdx, 0xf
ja 0x140078a58
pmovzxdq xmm1, qword [0x140169d00]
pclmulqdq xmm1, xmm0, 1
psrldq xmm0, 8
pxor xmm0, xmm1
pxor xmm1, xmm1
pxor xmm2, xmm2
pblendw xmm2, xmm0, 3
psrldq xmm0, 4
movabs rax, 0x163cd6124
movq xmm3, rax
pclmulqdq xmm3, xmm2, 0
pxor xmm3, xmm0
pxor xmm0, xmm0
pblendw xmm0, xmm3, 3
pclmulqdq xmm0, xmmword [0x140169cf0], 0x10
pblendw xmm0, xmm1, 0xfc
movabs rax, 0x1db710641
movq xmm1, rax
pclmulqdq xmm1, xmm0, 0
pxor xmm1, xmm3
pextrd eax, xmm1, 1
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
add rsp, 0x58
ret
movabs rax, 0x154442bd4
movq xmm4, rax
movdqa xmm5, xmmword [0x140169ce0]
nop word cs:[rax + rax]
movdqa xmm6, xmm0
pclmulqdq xmm6, xmm4, 0
movdqa xmm7, xmm3
pclmulqdq xmm7, xmm4, 0
movdqa xmm8, xmm2
pclmulqdq xmm8, xmm4, 0
movdqa xmm9, xmm1
pclmulqdq xmm9, xmm4, 0
pclmulqdq xmm0, xmm5, 0x11
pclmulqdq xmm3, xmm5, 0x11
pclmulqdq xmm2, xmm5, 0x11
pclmulqdq xmm1, xmm5, 0x11
movdqu xmm10, xmmword [rcx]
pxor xmm10, xmm6
pxor xmm0, xmm10
movdqu xmm6, xmmword [rcx + 0x10]
pxor xmm6, xmm7
pxor xmm3, xmm6
movdqu xmm6, xmmword [rcx + 0x20]
pxor xmm6, xmm8
pxor xmm2, xmm6
movdqu xmm6, xmmword [rcx + 0x30]
pxor xmm6, xmm9
pxor xmm1, xmm6
add rdx, 0xffffffffffffffc0
add rcx, 0x40
cmp rdx, 0x3f
ja 0x140078b40
jmp 0x1400789f2
Function at 0x14007c1c0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
xor eax, eax
test r8d, r8d
sete al
xor r8d, r8d
test edx, edx
sete r8b
xor ecx, ecx
mov edx, r8d
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x14007c25a
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14007c244
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14007c221
mov qword [rsi], rdi
call fcn.1400816a0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 0
inc rax
cmp rax, 1
jbe 0x14007c25e
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400816a0
mov rcx, qword [rsi]
call fcn.14007c190
mov qword [rsi], 0
jmp 0x14007c20f
mov byte [rsi + 8], 0
int3

Function at 0x14007c6a0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x14007c6fe
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x14007c6e8
lea rax, [rsi + 1]
cmp rax, 2
jb 0x14007c6d8
mov qword [rdi], rsi
call fcn.1400816a0
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.1400816a0
mov rcx, qword [rdi]
call fcn.14007c190
mov qword [rdi], 0
jmp 0x14007c6c6
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x14007d340
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140192040]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x1401667f0]
lea r14, [rsp + 0x50]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.ReadAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x30]
mov rcx, r15
mov r9d, 0x5f
call fcn.140081680
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1400878f0
test esi, esi
js 0x14007d445
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
call fcn.140087b50
test al, al
jne 0x14007d451
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14007d46d
mov esi, dword [rsp + 0x2c]
test esi, esi
js 0x14007d44c
lea rcx, [rsp + 0x30]
call fcn.1400880e0
lea rcx, [rsp + 0x50]
call fcn.140087970
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400b4010
mov eax, esi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x14007d41a
int3
mov r9d, esi
lea rdx, str.File::ReadAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.14010ced0
jmp 0x14007d3e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
jmp 0x14007d410