joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003b8a0
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 r12, r8
mov ebx, edx
mov edi, ecx
mov rax, qword [0x140154028]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [r8 + 0x17]
test al, al
jns 0x14003b8d4
mov rax, qword [r12 + 8]
test rax, rax
je 0x14003b9cc
mov eax, ebx
not eax
test eax, 0x300
je 0x14003b9cc
cmp edi, 2
lea rax, [0x14015bec0]
lea rcx, [0x14015c0c0]
cmove rcx, rax
cmp word [rcx], 0
jne 0x14003b9cc
xorps xmm0, xmm0
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [rsi], 0
je 0x14003b9cc
cmp byte [0x14015beb0], 0
setne al
bt ebx, 8
jb 0x14003b9cc
shr ebx, 9
and ebx, 1
or bl, al
je 0x14003b9cc
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea rsi, str.SOFTWARE
cmove rsi, rax
movzx r13d, byte [r12 + 0x17]
test r13b, r13b
jns 0x14003ba27
mov rbx, qword [r12]
mov r13, qword [r12 + 8]
mov r14d, 1
xor r15d, r15d
xor eax, eax
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0
mov rdi, qword [rsi + 8]
mov rbp, r13
sub rbp, rdi
jb 0x14003b9b9
mov rdx, qword [rsi]
mov rcx, rbx
mov r8, rdi
call fcn.1400ab624
test eax, eax
je 0x14003b9eb
add rsi, 0x28
inc r15
cmp r15, r14
jb 0x14003b99b
cmp dword [rsp + 0x2c], 0
jne 0x14003ba2f
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140097620
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movzx ecx, word [rbx + rdi*2]
cmp cx, 0x5c
je 0x14003b9fa
test cx, cx
jne 0x14003b9b9
lea rax, [rbx + rdi*2]
mov edx, dword [rsi + 0x10]
mov dword [rsp + 0x2c], edx
cmp edx, 1
je 0x14003ba57
cmp dword [rsp + 0x2c], 2
jne 0x14003ba68
lea rdx, str.WOW6432Node
mov qword [rsp + 0x38], rdx
mov rdx, rax
mov qword [rsp + 0x30], rax
jmp 0x14003ba68
mov rbx, r12
jmp 0x14003b97c
cmp byte [r12 + 0x17], 0
js 0x14003ba97
mov rax, r12
mov rdx, qword [rsp + 0x30]
sub rdx, rax
sar rdx, 1
mov rcx, r12
mov r8, qword [rsp + 0x38]
call fcn.140029be0
jmp 0x14003b9cc
lea rdx, str.WOW6432Node_
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rbx
cmp cx, 0x5c
jne 0x14003ba81
lea rbx, [rax + 2]
dec rbp
cmp word [rax + 2], 0x5c
mov rax, rbx
je 0x14003ba6e
jmp 0x14003ba84
mov rbx, rax
mov r14, qword [rsi + 0x20]
mov rsi, qword [rsi + 0x18]
xor r15d, r15d
mov r13, rbp
jmp 0x14003b9c0
mov rax, qword [r12]
jmp 0x14003ba3a
Function at 0x14003e040
Capabilities:
Query or enumerate registry value

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

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

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.1400975b0
sub rsp, rax
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140154028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea rsi, [rsp + 0x840]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.140099ee0
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], rsi
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14003e183
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x14003e187
lea rdx, [rsp + 0x840]
mov rcx, r14
call fcn.1400298b0
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140097620
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x14003e164
cmp eax, 2
jne 0x14003e1cc
lea rsi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.140099ee0
lea rcx, [rsp + 0x840]
mov rdx, rsi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
dec eax
cmp eax, 0x3ff
ja 0x14003e1d3
lea rdx, [rsp + 0x40]
jmp 0x14003e15a
mov edi, 0x3f4
jmp 0x14003e164
mov edi, 0xea
jmp 0x14003e164

Function at 0x14003eaf0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140157278]
cmp ecx, 0xffffffff
je 0x14003eb15
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 0x14003eb10
Function at 0x14003eb20
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r14, rdx
mov r15, rcx
mov ecx, dword [0x140157278]
cmp ecx, 0xffffffff
je 0x14003ebfe
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x14003ebfe
mov eax, dword [0x14015dda8]
mov ecx, dword [0x140157484]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14003ec08
mov rbx, qword [0x14015dda0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14003ec4e
mov rax, qword [0x14015c598]
inc rax
xor ecx, ecx
lea rdx, [0x14015c5a0]
lea edi, [rax + rcx]
movzx edi, dil
lea rsi, [rdi + rdi*2]
cmp dword [rdx + rsi*8], 0
jne 0x14003ec5b
lea rax, [rdx + rsi*8]
mov dword [rax], 1
mov qword [rax + 8], r14
mov qword [0x14015c598], rdi
mov dword [r15], edi
mov eax, dword [rax + 0x10]
mov dword [r15 + 4], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [r15]
cmp eax, 0xffffffff
je 0x14003ec70
cmp eax, 0x100
jge 0x14003ec73
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14003ec80
jmp 0x14003eb4e
lea rcx, [0x14015dda8]
call fcn.140096920
cmp dword [0x14015dda8], 0xffffffff
jne 0x14003eb73
mov ecx, 8
call fcn.1400967c4
mov rbx, rax
mov rcx, rax
call fcn.14006d5d0
mov qword [0x14015dda0], rbx
lea rcx, [0x14015dda8]
call fcn.1400969b8
jmp 0x14003eb73
mov rcx, rbx
call fcn.14006d5e0
jmp 0x14003eb8b
inc rcx
cmp rcx, 0x100
jne 0x14003eb9e
jmp 0x14003ebd2
int3
int3

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

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.1400975b0
sub rsp, rax
mov rax, qword [0x140154028]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x140157278]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x14003ed34
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14003ed72
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.140099ee0
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.14009683c
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.140099ad0
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.140097620
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.14004de00
test al, al
je 0x14003ed75
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x14003ed78
mov eax, 0xffffffff
lock cmpxchg dword [0x140157278], ecx
je 0x14003ecb8
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x140157278]
mov dword [rsp + 0x2c], ecx
jmp 0x14003ecb8
int3
int3
lea rcx, [rsp + 0x2c]
call fcn.14004de00
test al, al
je 0x14003ed9d
cmp dword [rsp + 0x2c], 0xffffffff
je 0x14003ed9d
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x14003ed4b
int3
Function at 0x14003fde0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x14015ded8]
cmp rdi, 1
jbe 0x14003fe09
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140074b20
lea rcx, [0x14015ded8]
call fcn.14004de50
test al, al
je 0x14003fe4f
mov qword [0x14015dee0], 0
lea rbx, [0x14015ded8]
lea rdi, [0x14015dee0]
mov rcx, rdi
xor edx, edx
call fcn.14003ee90
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.14004def0
jmp 0x14003fdf7
mov rdi, qword [0x14015ded8]
jmp 0x14003fdf7
Function at 0x140043460
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov r14, r8
mov ebx, edx
mov rdi, rcx
mov esi, dword [0x14015e040]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test ebp, ebp
jne 0x140043572
cmp rsi, 1
je 0x14004356e
mov eax, dword [rdi + 0x1518]
test eax, eax
jne 0x14004356e
mov eax, 1
lock xadd dword [rdi + 0x1518], eax
cmp eax, 0x7fffffff
je 0x14004357f
mov rcx, rdi
call fcn.140043880
lock dec dword [rdi + 0x1518]
mov rdi, rax
inc qword [rax + 0x5a0]
cmp word [0x1401572c0], bx
jb 0x140043560
movzx edx, bx
mov rsi, rdx
shl rsi, 4
mov rbx, rdi
add rbx, rsi
mov rax, qword [rdi + rsi]
test rax, rax
jne 0x140043582
inc qword [rdi + 0x5b8]
inc qword [rdi + 0x5b0]
mov rcx, rdi
call fcn.14007a6e0
mov rax, qword [rbx]
test rax, rax
je 0x14004356e
mov rcx, qword [rax]
test rcx, rcx
je 0x14004358b
mov rdx, rcx
not rdx
cmp qword [rax + 8], rdx
jne 0x14004358f
bswap rcx
prefetcht0 byte [rcx]
dec byte [rdi + rsi + 8]
mov qword [rbx], rcx
movzx ecx, word [rdi + rsi + 0xa]
mov qword [r14], rcx
movzx ecx, word [rdi + rsi + 0xa]
sub qword [rdi + 0x590], rcx
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
inc qword [rdi + 0x5c0]
inc qword [rdi + 0x5b0]
xor eax, eax
jmp 0x140043555
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140043493
int3
inc qword [rdi + 0x5a8]
jmp 0x140043520
xor ecx, ecx
jmp 0x14004353a
call fcn.1400c2bc0
int3

Function at 0x140043880
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rax, qword [0x140154028]
xor rax, rsp
mov qword [rsp + 0x40], rax
test rcx, rcx
je 0x1400439af
mov rsi, rcx
mov byte [rsp + 0x3f], 0xaa
lea rbx, [rcx + 0x858]
lea r14, [rcx + 8]
mov edi, 1
xor ebp, ebp
mov r15, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov rcx, r14
call r15
test al, al
jne 0x1400438f9
jmp 0x1400439a0
pause
dec eax
jne 0x1400438d4
add ebp, edi
add edi, edi
cmp edi, 0x40
mov eax, 0x40
cmovge edi, eax
cmp ebp, 0x3e8
jl 0x1400438c5
mov rcx, r14
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword [rbx]
mov rdi, qword [rax]
test rdi, rdi
je 0x14004395a
mov byte [rsp + 0x3f], 0
mov rcx, qword [rdi]
test rcx, rcx
jne 0x140043989
xor ecx, ecx
mov qword [rax], rcx
inc word [rax + 0x18]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, rdi
mov rdx, rsi
call fcn.14007a530
mov ecx, dword [0x14015e040]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140097620
mov rax, rdi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rax, [rsp + 0x3f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x4000
mov r9d, 0x610
mov rcx, rbx
mov rdx, rsi
mov r8d, 2
call fcn.14005da40
mov rdi, rax
jmp 0x14004391a
mov rdx, rcx
not rdx
cmp qword [rdi + 8], rdx
jne 0x1400439b2
bswap rcx
prefetcht0 byte [rcx]
jmp 0x140043913
mov eax, edi
test edi, edi
jg 0x1400438d4
jmp 0x1400438dc
int3
call fcn.1400c2bc0
int3
Function at 0x1400439c0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov esi, dword [0x14015e040]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test edi, edi
jne 0x1400439f7
cmp rsi, 2
jb 0x140043a01
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14007ab60
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400439e3
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x14004c910
Capabilities:
Encrypt data using openssl rsa

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov r14, rdx
mov rax, qword [0x140154028]
xor rax, rsp
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [0x140133080]
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
mov r8d, 6
call fcn.14004c4c0
xor ebp, ebp
test eax, eax
je 0x14004c99b
lea rcx, [rsp + 0x20]
call fcn.14007ce60
movzx edi, byte [0x140144ed5]
cmp rax, rdi
jne 0x14004c9b5
mov rbx, rax
lea rcx, [rsp + 0x20]
call fcn.14007ce50
lea rsi, [0x140144ec8]
test dil, dil
je 0x14004c991
lea rdx, [0x140144ecc]
mov rcx, rax
mov r8, rbx
call fcn.1400999d0
test eax, eax
jne 0x14004c9b5
mov eax, dword [rsi]
mov dword [r14], eax
mov ebp, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140097620
mov eax, ebp
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
lea rcx, [rsp + 0x20]
call fcn.14007ce60
movzx edi, byte [0x140144f9d]
cmp rax, rdi
jne 0x14004c9fa
mov rbx, rax
lea rcx, [rsp + 0x20]
call fcn.14007ce50
lea rsi, [0x140144f90]
test dil, dil
je 0x14004c991
lea rdx, [0x140144f94]
mov rcx, rax
mov r8, rbx
call fcn.1400999d0
test eax, eax
je 0x14004c991
lea rcx, [rsp + 0x20]
call fcn.14007ce60
movzx edi, byte [0x140145065]
cmp rax, rdi
jne 0x14004ca47
mov rbx, rax
lea rcx, [rsp + 0x20]
call fcn.14007ce50
lea rsi, [0x140145058]
test dil, dil
je 0x14004c991
lea rdx, [0x14014505c]
mov rcx, rax
mov r8, rbx
call fcn.1400999d0
test eax, eax
je 0x14004c991
lea rcx, [rsp + 0x20]
call fcn.14007ce60
movzx edi, byte [0x14014512d]
cmp rax, rdi
jne 0x14004ca94
mov rbx, rax
lea rcx, [rsp + 0x20]
call fcn.14007ce50
lea rsi, [0x140145120]
test dil, dil
je 0x14004c991
lea rdx, [0x140145124]
mov rcx, rax
mov r8, rbx
call fcn.1400999d0
test eax, eax
je 0x14004c991
lea rcx, [rsp + 0x20]
call fcn.14007ce60
movzx edi, byte [0x1401451fd]
cmp rax, rdi
jne 0x14004c99b
mov rbx, rax
lea rcx, [rsp + 0x20]
call fcn.14007ce50
lea rsi, [0x1401451f0]
test dil, dil
je 0x14004c991
lea rdx, [0x1401451f4]
mov rcx, rax
mov r8, rbx
call fcn.1400999d0
test eax, eax
je 0x14004c991
jmp 0x14004c99b

Function at 0x14004de00
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 0x14004de15
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret
Function at 0x140050c20
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x14015fad8]
cmp rdi, 1
jbe 0x140050c49
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140074b20
lea rcx, [0x14015fad8]
call fcn.14004de50
test al, al
je 0x140050c8f
mov qword [0x14015fae0], 0
lea rbx, [0x14015fad8]
lea rdi, [0x14015fae0]
mov rcx, rdi
xor edx, edx
call fcn.14003ee90
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.14004def0
jmp 0x140050c37
mov rdi, qword [0x14015fad8]
jmp 0x140050c37

Function at 0x140053410
Capabilities:
Allocate thread local storage

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

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

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
mov rdi, r8
mov r14, rdx
mov ebx, ecx
mov rax, qword [0x140154028]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x140053e60]
lea r8, [rsp + 0x20]
mov qword [r8], rax
lea rcx, [0x14015ffb8]
lea rdx, [0x140053d10]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140053f89
cmp dword [0x14015ffc0], 0
jne 0x140053f96
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x14015ffc4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
jne 0x140053f3f
mov ecx, 0x20
call fcn.14007cd40
test rax, rax
je 0x140053f96
mov rsi, rax
xorps xmm0, xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax], xmm0
mov ecx, dword [0x14015ffc4]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140053f8e
lea rbp, [0x14015ffc8]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x14015ffd0]
mov qword [rax + rbx*8], rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [rsi + rbx*8], r14
mov esi, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140097620
mov eax, esi
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call fcn.1400a8840
mov rcx, rsi
call fcn.14007cd70
mov rcx, r14
call rdi
xor esi, esi
jmp 0x140053f6f

Function at 0x140054110
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x14005414c
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 0x140054156
add rdi, rbx
sub rsi, rbx
jne 0x14005412a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400a8840
int3
Function at 0x140064080
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x88
movdqa xmmword [rsp + 0x70], xmm13
movdqa xmmword [rsp + 0x60], xmm12
movdqa xmmword [rsp + 0x50], xmm11
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 xmm0, xmmword [rcx]
movdqu xmm3, xmmword [rcx + 0x10]
movdqu xmm2, xmmword [rcx + 0x20]
movdqu xmm1, xmmword [rcx + 0x30]
movd xmm4, r8d
pxor xmm4, xmm0
add rdx, 0xffffffffffffffc0
add rcx, 0x40
cmp rdx, 0x40
jb 0x1400641b5
movabs rax, 0x154442bd4
movq xmm9, rax
movdqa xmm8, xmmword [0x140134270]
nop word cs:[rax + rax]
nop dword [rax]
movdqa xmm6, xmm4
pclmulqdq xmm6, xmm9, 0
movdqa xmm12, xmm3
pclmulqdq xmm12, xmm9, 0
movdqa xmm11, xmm2
pclmulqdq xmm11, xmm9, 0
movdqa xmm10, xmm1
pclmulqdq xmm10, xmm9, 0
movdqa xmm0, xmm4
pclmulqdq xmm0, xmm8, 0x11
movdqa xmm5, xmm3
pclmulqdq xmm5, xmm8, 0x11
movdqa xmm7, xmm2
pclmulqdq xmm7, xmm8, 0x11
movdqa xmm13, xmm1
pclmulqdq xmm13, xmm8, 0x11
movdqu xmm4, xmmword [rcx]
pxor xmm4, xmm6
pxor xmm4, xmm0
movdqu xmm3, xmmword [rcx + 0x10]
pxor xmm3, xmm12
pxor xmm3, xmm5
movdqu xmm2, xmmword [rcx + 0x20]
pxor xmm2, xmm11
pxor xmm2, xmm7
movdqu xmm1, xmmword [rcx + 0x30]
pxor xmm1, xmm10
pxor xmm1, xmm13
add rdx, 0xffffffffffffffc0
add rcx, 0x40
cmp rdx, 0x3f
ja 0x140064110
movabs rax, 0x1751997d0
movq xmm0, rax
movdqa xmm5, xmm4
pclmulqdq xmm5, xmm0, 0
pxor xmm5, xmm3
movdqa xmm3, xmmword [0x140134280]
pclmulqdq xmm4, xmm3, 0x11
pxor xmm4, xmm5
movdqa xmm5, xmm4
pclmulqdq xmm5, xmm0, 0
pxor xmm5, xmm2
pclmulqdq xmm4, xmm3, 0x11
pxor xmm4, xmm5
movdqa xmm2, xmm4
pclmulqdq xmm2, xmm0, 0
pxor xmm2, xmm1
pclmulqdq xmm4, xmm3, 0x11
pxor xmm4, xmm2
cmp rdx, 0x10
jb 0x140064244
movdqu xmm1, xmmword [rcx]
movdqa xmm2, xmm4
pclmulqdq xmm2, xmm0, 0
pxor xmm2, xmm1
pclmulqdq xmm4, xmm3, 0x11
pxor xmm4, xmm2
add rcx, 0x10
add rdx, 0xfffffffffffffff0
cmp rdx, 0xf
ja 0x14006421a
movdqa xmm0, xmmword [0x140134280]
pclmulqdq xmm0, xmm4, 1
psrldq xmm4, 8
pxor xmm4, xmm0
pxor xmm0, xmm0
pxor xmm1, xmm1
pblendw xmm1, xmm4, 3
psrldq xmm4, 4
movabs rax, 0x163cd6124
movq xmm2, rax
pclmulqdq xmm2, xmm1, 0
pxor xmm2, xmm4
pxor xmm1, xmm1
pblendw xmm1, xmm2, 3
pclmulqdq xmm1, xmmword [0x140134290], 0x10
pblendw xmm1, xmm0, 0xfc
movabs rax, 0x1db710641
movq xmm0, rax
pclmulqdq xmm0, xmm1, 0
pxor xmm0, xmm2
pextrd eax, xmm0, 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]
movaps xmm11, xmmword [rsp + 0x50]
movaps xmm12, xmmword [rsp + 0x60]
movaps xmm13, xmmword [rsp + 0x70]
add rsp, 0x88
ret
Function at 0x140068220
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x140068269
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
add rax, 1
cmp rax, 2
jae 0x140068272
lea rax, [rsi + 1]
cmp rax, 2
jb 0x140068259
mov qword [rdi], rsi
call fcn.140069e00
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140069e00
mov rcx, qword [rdi]
call fcn.14006c2f0
mov qword [rdi], 0
jmp 0x140068247
Function at 0x14006bae0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov esi, r8d
mov r14, rdx
mov r15, rcx
mov rax, qword [0x140154028]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x50]
mov qword [rdi + 0x50], r12
movaps xmm0, xmmword [0x140133080]
movaps xmmword [rdi + 0x40], xmm0
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, str.ReadAtCurrentPos
lea r8, str..._.._base_files_file_win.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r9d, 0x57
call fcn.140069de0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140070090
test esi, esi
js 0x14006bbe5
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], 0
call fcn.14006e430
test al, al
jne 0x14006bbec
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [r15]
mov qword [rsp + 0x20], 0
mov rdx, r14
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14006bc08
mov esi, dword [rsp + 0x2c]
lea rcx, [rsp + 0x30]
call fcn.14006e4a0
lea rcx, [rsp + 0x50]
call fcn.1400700f0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140097620
mov eax, esi
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x14006bbb8
mov r9d, esi
lea rdx, str.File::ReadAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, r15
call fcn.1400de6a0
jmp 0x14006bb82
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
jmp 0x14006bbae

Function at 0x14006bc20
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x14006bc67
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14006bc81
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14006bc5f
mov qword [rsi], rdi
call fcn.140069e00
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x14006bc97
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140069e00
mov rcx, qword [rsi]
call fcn.14006c2f0
mov qword [rsi], 0
jmp 0x14006bc4d
int3