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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x190
mov rax, qword [0x1400f9028]
xor rax, rsp
mov qword [rsp + 0x188], rax
mov eax, dword [0x1400ff150]
mov ecx, dword [0x1400fc638]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140055793
mov rax, qword [0x1400ff148]
mov esi, dword [rax]
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.140065120
mov eax, esi
add rsp, 0x190
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1400ff150]
call fcn.140062c24
cmp dword [0x1400ff150], 0xffffffff
jne 0x14005576d
lea rsi, [rsp + 0x6c]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140067750
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x68]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x2c]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.140062b88
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1400ff188]
mov ecx, dword [0x1400fc638]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005584c
lea rdx, [rsp + 0x68]
mov rcx, rsi
mov r8d, edi
call fcn.140007b30
mov qword [0x1400ff148], rsi
lea rcx, [0x1400ff150]
call fcn.140062bc4
jmp 0x14005576d
lea rcx, [0x1400ff188]
call fcn.140062c24
cmp dword [0x1400ff188], 0xffffffff
jne 0x140055824
xorps xmm0, xmm0
lea rbx, [rsp + 0x30]
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movaps xmm0, xmmword [rbx]
movaps xmm1, xmmword [rbx + 0x10]
movaps xmm2, xmmword [rbx + 0x20]
movups xmmword [0x1400ff178], xmm2
movups xmmword [0x1400ff168], xmm1
movups xmmword [0x1400ff158], xmm0
lea rcx, [0x1400ff188]
call fcn.140062bc4
jmp 0x140055824
Function at 0x14005f1b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rsi
push rdi
mov r9, qword [rcx]
mov r10, qword [rcx + 8]
mov r8, r10
sub r8, r9
je 0x14005f23f
mov rax, r8
shr rax, 2
mov rdx, r9
not rdx
add rdx, r10
jne 0x14005f1d7
xor edx, edx
jmp 0x14005f21c
mov r10, r8
and r10, 0xfffffffffffffffe
xor edx, edx
lea r11, [0x1400e88b0]
nop word [rax + rax]
movzx esi, al
movzx edi, byte [r9 + rdx]
xor edi, esi
shr eax, 8
xor eax, dword [r11 + rdi*4]
movzx esi, al
movzx edi, byte [r9 + rdx + 1]
xor edi, esi
shr eax, 8
xor eax, dword [r11 + rdi*4]
add rdx, 2
cmp r10, rdx
jne 0x14005f1f0
test r8b, 1
je 0x14005f239
movzx edi, al
movzx edx, byte [r9 + rdx]
xor edx, edi
lea rdi, [0x1400e88b0]
shr eax, 8
xor eax, dword [rdi + rdx*4]
mov dword [rcx + 0x18], eax
pop rdi
pop rsi
ret
xor eax, eax
jmp 0x14005f239
Function at 0x14005f790
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov edi, dword [0x140100ce4]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test esi, esi
jne 0x14005f7bd
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14005f7b3
Function at 0x140060240
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov qword [rcx], rdx
mov rdi, qword [0x140102700]
cmp rdi, 1
jbe 0x140060290
mov ecx, dword [0x1400fc468]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400602d6
movsxd rcx, dword [rdi]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [rdi + 4]
movsxd rdx, dword [rdi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140102700]
call fcn.14003b3c0
test al, al
je 0x1400602e2
mov qword [0x140102708], 0
lea rbx, [0x140102700]
lea rdi, [0x140102708]
mov rcx, rdi
xor edx, edx
call fcn.140035760
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.14003b330
jmp 0x14006025a
test rsi, rsi
je 0x140060285
call fcn.1400065a0
jmp 0x14006026c
mov rdi, qword [0x140102700]
jmp 0x14006025a

Function at 0x1400602f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov byte [rcx], dl
mov rdi, qword [0x140102710]
cmp rdi, 1
jbe 0x14006033f
mov ecx, dword [0x1400fc468]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140060385
movsxd rcx, dword [rdi]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [rdi + 4]
movsxd rdx, dword [rdi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140102710]
call fcn.14003b3c0
test al, al
je 0x140060391
mov qword [0x140102718], 0
lea rbx, [0x140102710]
lea rdi, [0x140102718]
mov rcx, rdi
xor edx, edx
call fcn.140035760
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.14003b330
jmp 0x140060309
test rsi, rsi
je 0x140060334
call fcn.1400065a0
jmp 0x14006031b
mov rdi, qword [0x140102710]
jmp 0x140060309

Function at 0x1400603a0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x140102710]
cmp rsi, 1
jbe 0x1400603e9
mov ecx, dword [0x1400fc468]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400603e2
movsxd rcx, dword [rsi]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [rsi + 4]
movsxd rdx, dword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x140102710]
call fcn.14003b3c0
test al, al
je 0x14006042f
mov qword [0x140102718], 0
lea rdi, [0x140102710]
lea rsi, [0x140102718]
mov rcx, rsi
xor edx, edx
call fcn.140035760
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.14003b330
jmp 0x1400603b3
mov rsi, qword [0x140102710]
jmp 0x1400603b3
Function at 0x1400612c0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov eax, dword [0x1401041c0]
mov ecx, dword [0x1400fc638]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140061325
mov ecx, dword [0x1400fc468]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140061361
movsxd rcx, dword [0x1401041b8]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [0x1401041bc]
movsxd rdx, dword [0x1401041b8]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1401041c0]
call fcn.140062c24
cmp dword [0x1401041c0], 0xffffffff
jne 0x1400612e9
mov qword [0x1401041b8], 0
lea rcx, [0x1401041b8]
xor edx, edx
call fcn.140035760
lea rcx, [0x1401041c0]
call fcn.140062bc4
jmp 0x1400612e9
test rsi, rsi
je 0x14006131f
call fcn.1400065a0
jmp 0x1400612fb

Function at 0x140061390
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov eax, dword [rdx]
mov dword [rcx], eax
mov eax, 1
lock xadd dword [0x140104194], eax
mov dword [rcx + 4], eax
mov eax, dword [0x140104190]
mov ecx, dword [0x1400fc638]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140061479
mov ecx, dword [0x1400fc468]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400614ff
movsxd rcx, dword [0x140104188]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [0x14010418c]
movsxd rdx, dword [0x140104188]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov eax, dword [0x1401041a0]
mov ecx, dword [0x1400fc638]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400614bc
lea rdi, [rsi + 4]
mov ecx, dword [0x1400fc468]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140061512
movsxd rcx, dword [0x140104198]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [0x14010419c]
movsxd rdx, dword [0x140104198]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rax, rsi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x140104190]
call fcn.140062c24
cmp dword [0x140104190], 0xffffffff
jne 0x1400613d2
mov qword [0x140104188], 0
lea rcx, [0x140104188]
xor edx, edx
call fcn.140035760
lea rcx, [0x140104190]
call fcn.140062bc4
jmp 0x1400613d2
lea rcx, [0x1401041a0]
call fcn.140062c24
cmp dword [0x1401041a0], 0xffffffff
jne 0x140061431
mov qword [0x140104198], 0
lea rcx, [0x140104198]
xor edx, edx
call fcn.140035760
lea rcx, [0x1401041a0]
call fcn.140062bc4
jmp 0x140061431
test rsi, rsi
je 0x14006140c
call fcn.1400065a0
jmp 0x1400613e8
test rdi, rdi
je 0x14006146f
call fcn.1400065a0
jmp 0x14006144b
Function at 0x140061530
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [0x1401041a8]
cmp rbx, 1
jbe 0x140061584
mov ecx, dword [0x1400fc468]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400615ca
movsxd rcx, dword [rbx]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rbx + 4]
movsxd rdx, dword [rbx]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1401041a8]
call fcn.14003b3c0
test al, al
je 0x1400615d6
mov qword [0x1401041b0], 0
lea r14, [0x1401041a8]
lea rbx, [0x1401041b0]
mov rcx, rbx
xor edx, edx
call fcn.140035760
mov rcx, r14
mov rdx, rbx
xor r8d, r8d
mov r9, r14
call fcn.14003b330
jmp 0x14006154c
test rdi, rdi
je 0x140061577
call fcn.1400065a0
jmp 0x14006155e
mov rbx, qword [0x1401041a8]
jmp 0x14006154c

Function at 0x1400615f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x1401041a8]
cmp rsi, 1
jbe 0x140061639
mov ecx, dword [0x1400fc468]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140061632
movsxd rcx, dword [rsi]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [rsi + 4]
movsxd rdx, dword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1401041a8]
call fcn.14003b3c0
test al, al
je 0x14006167f
mov qword [0x1401041b0], 0
lea rdi, [0x1401041a8]
lea rsi, [0x1401041b0]
mov rcx, rsi
xor edx, edx
call fcn.140035760
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.14003b330
jmp 0x140061603
mov rsi, qword [0x1401041a8]
jmp 0x140061603

Function at 0x1400616f0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140104190]
mov ecx, dword [0x1400fc638]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400617b7
mov ecx, dword [0x1400fc468]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140061753
movsxd rcx, dword [0x140104188]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [0x14010418c]
movsxd rdx, dword [0x140104188]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov eax, dword [0x1401041a0]
mov ecx, dword [0x1400fc638]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400617fa
mov ecx, dword [0x1400fc468]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400617b2
movsxd rcx, dword [0x140104198]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [0x14010419c]
movsxd rdx, dword [0x140104198]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
ret
lea rcx, [0x140104190]
call fcn.140062c24
cmp dword [0x140104190], 0xffffffff
jne 0x140061719
mov qword [0x140104188], 0
lea rcx, [0x140104188]
xor edx, edx
call fcn.140035760
lea rcx, [0x140104190]
call fcn.140062bc4
jmp 0x140061719
lea rcx, [0x1401041a0]
call fcn.140062c24
cmp dword [0x1401041a0], 0xffffffff
jne 0x140061778
mov qword [0x140104198], 0
lea rcx, [0x140104198]
xor edx, edx
call fcn.140035760
lea rcx, [0x1401041a0]
call fcn.140062bc4
jmp 0x140061778
Function at 0x1400716fc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140071820
Function at 0x14008eb10
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov esi, dword [0x140100ce4]
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 0x14008eb47
cmp rsi, 2
jb 0x14008eb51
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140036320
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14008eb33
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x14008f4a0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x140102690]
cmp rdi, 1
jbe 0x14008f505
mov ecx, dword [0x1400fc468]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14008f4e6
movsxd rcx, dword [rdi]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [rdi + 4]
movsxd rdx, dword [rdi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
lea rcx, [rsi + 8]
call fcn.140035540
mov rcx, qword [rsi]
test rcx, rcx
je 0x14008f4fd
lock dec dword [rcx + 8]
je 0x14008f55a
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140102690]
call fcn.14003b3c0
test al, al
je 0x14008f54e
mov qword [0x140102698], 0
lea rbx, [0x140102690]
lea rdi, [0x140102698]
mov rcx, rdi
xor edx, edx
call fcn.140035760
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.14003b330
jmp 0x14008f4b7
mov rdi, qword [0x140102690]
jmp 0x14008f4b7
add rcx, 8
add rcx, 0xfffffffffffffff8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140035610

Function at 0x14008f580
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 0x14008f595
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret
Function at 0x140092fb0
Capabilities:
Create thread

Disassembly:
jmp 0x140092fb0
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov edi, r9d
mov rbp, r8
mov rsi, rdx
mov r15, rcx
xor ebx, ebx
test rcx, rcx
setne bl
mov rax, qword [0x1400f9028]
xor rax, rsp
mov qword [rsp + 0x60], rax
shl ebx, 0x10
mov ecx, 0x10
call fcn.140062b88
mov r14, rax
mov qword [rax], rsi
test rbp, rbp
setne byte [rax + 8]
mov dword [rax + 0xc], edi
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x28], 0
lea r8, [0x14008dd90]
xor ecx, ecx
mov rdx, r15
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x140093051
test rbp, rbp
je 0x140093081
mov qword [rbp], rdi
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140065120
mov eax, ebx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x14009306a
mov ebp, eax
cmp eax, 0x5af
je 0x14009306a
cmp ebp, 0xe
jne 0x14009308c
mov rcx, r15
call fcn.1400bee70
test r14, r14
je 0x14009302f
mov rcx, r14
call fcn.140062b78
jmp 0x14009302f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14009302f
mov eax, dword [0x1401006e8]
mov ecx, dword [0x1400fc638]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400930fb
lea rsi, [rsp + 0x38]
mov rcx, rsi
mov edx, ebp
call fcn.1400bee80
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
cmovs rax, qword [rsi + 8]
lea rdx, [rsp + 0x50]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
mov rcx, qword [0x1401006e0]
call fcn.140034b00
cmp byte [rsi + 0x17], 0
jns 0x140093072
mov rcx, qword [rsp + 0x38]
call fcn.140062b78
jmp 0x140093072
lea rcx, [0x1401006e8]
call fcn.140062c24
cmp dword [0x1401006e8], 0xffffffff
jne 0x1400930ad
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.14008eb60
mov qword [0x1401006e0], rax
lea rcx, [0x1401006e8]
call fcn.140062bc4
jmp 0x1400930ad

Function at 0x140096c50
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x140104100]
cmp rdi, 1
jbe 0x140096c79
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14004da50
lea rcx, [0x140104100]
call fcn.14003b3c0
test al, al
je 0x140096cbf
mov qword [0x140104108], 0
lea rbx, [0x140104100]
lea rdi, [0x140104108]
mov rcx, rdi
xor edx, edx
call fcn.140035760
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.14003b330
jmp 0x140096c67
mov rdi, qword [0x140104100]
jmp 0x140096c67
Function at 0x140096ea0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x140100b90]
cmp rdi, 1
jbe 0x140096eea
mov ecx, dword [0x1400fc468]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140096f30
movsxd rcx, dword [rdi]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [rdi + 4]
movsxd rdx, dword [rdi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140100b90]
call fcn.14003b3c0
test al, al
je 0x140096f3c
mov qword [0x140100b98], 0
lea rbx, [0x140100b90]
lea rdi, [0x140100b98]
mov rcx, rdi
xor edx, edx
call fcn.140035760
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.14003b330
jmp 0x140096eb7
test rsi, rsi
je 0x140096ee2
call fcn.1400065a0
jmp 0x140096ec9
mov rdi, qword [0x140100b90]
jmp 0x140096eb7

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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.1400650b0
sub rsp, rax
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1400f9028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r15, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r15
mov dl, 0xaa
call fcn.140067750
lea r12, [rsp + 0x3c]
mov dword [r12], 1
lea rsi, [rsp + 0x38]
mov dword [rsi], 0x800
lea rdx, str.ReadValue
lea r8, str..._.._base_win_registry.cc
lea rcx, [rsp + 0x40]
mov r9d, 0x19e
call fcn.14003b310
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r15
mov rdx, rdi
xor r8d, r8d
mov r9, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14009771d
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x140097721
lea rdx, [rsp + 0x840]
mov rcx, r14
call fcn.14004f20e
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140065120
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov edi, eax
jmp 0x1400976fa
cmp eax, 2
jne 0x140097766
lea rsi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.140067750
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 0x14009776d
lea rdx, [rsp + 0x40]
jmp 0x1400976f0
mov edi, 0x3f4
jmp 0x1400976fa
mov edi, 0xea
jmp 0x1400976fa
Function at 0x1400979b0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rcx + 0x10]
cmp rbx, qword [rcx + 0x18]
je 0x1400979ea
mov rax, qword [rdi]
mov qword [rbx], rax
add qword [rsi + 0x10], 8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r15, qword [rsi]
mov r14, qword [rsi + 8]
mov rax, r14
sub rax, r15
jbe 0x140097a46
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r12, rax
neg r12
shl rax, 3
mov r15, r14
sub r15, rax
sub rbx, r14
je 0x140097a35
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.1400670a0
mov r14, qword [rsi + 8]
add rbx, r15
mov qword [rsi + 0x10], rbx
lea rax, [r14 + r12*8]
mov qword [rsi + 8], rax
jmp 0x1400979cf
mov rax, rbx
sub rax, r15
mov rcx, rax
sar rcx, 2
test rax, rax
mov r13d, 1
cmovne r13, rcx
mov rax, r13
shr rax, 0x3d
jne 0x140097adc
mov r12, r13
shr r12, 2
lea rcx, [r13*8]
call fcn.140062b88
lea r9, [rax + r12*8]
lea r8, [rax + r13*8]
mov r10, r9
sub rbx, r14
je 0x140097ab0
lea r10, [r9 + rbx]
sar rbx, 3
shl rbx, 3
lea r11, [rax + r12*8]
xor edx, edx
mov rcx, qword [r14 + rdx]
mov qword [r11 + rdx], rcx
add rdx, 8
cmp rbx, rdx
jne 0x140097a9f
mov qword [rsi], rax
mov qword [rsi + 8], r9
mov qword [rsi + 0x10], r10
mov qword [rsi + 0x18], r8
mov rbx, r10
test r15, r15
je 0x1400979cf
mov rcx, r15
call fcn.140062b78
mov rbx, qword [rsi + 0x10]
jmp 0x1400979cf
call fcn.140062eb0
int3
Function at 0x14009ae20
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1400f9028]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov eax, 4
lea r15, [rsp + 0x3c]
mov dword [r15], eax
lea r12, [rsp + 0x38]
mov dword [r12], eax
lea rsi, [rsp + 0x34]
mov dword [rsi], 0
lea rdx, str.ReadValue
lea r8, str..._.._base_win_registry.cc
lea rcx, [rsp + 0x40]
mov r9d, 0x19e
call fcn.14003b310
mov rcx, qword [rbx]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rsi
mov rdx, rdi
xor r8d, r8d
mov r9, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14009aee2
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x14009aec5
cmp dword [rsp + 0x38], 4
jne 0x14009aec5
mov eax, dword [rsp + 0x34]
mov dword [r14], eax
xor edi, edi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140065120
mov eax, edi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov edi, eax
jmp 0x14009aec5

Function at 0x14009b0e0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov rax, qword [0x1400f9028]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x1400e1c10]
mov qword [rcx], rax
lea rdi, [rcx + 8]
lea rax, [0x1400e1ff0]
mov qword [rcx + 8], rax
lea rbx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400367c0
mov rcx, rbx
mov rdx, rsi
call fcn.14009b240
call fcn.140036590
mov rcx, rax
mov rdx, rdi
call fcn.140051cd0
mov rdi, qword [rsi + 0x10]
add rdi, 8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14009b1e9
mov rax, qword [rsi + 0x18]
test rax, rax
jne 0x14009b1f6
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x20]
mov dword [rdx], eax
mov ecx, 0x308
add rcx, qword [rsi + 0x10]
call fcn.14009b250
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rdi, qword [rsi + 0x10]
mov ecx, dword [0x1400fc468]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14009b1c2
movsxd rcx, dword [rdi + 0x2f0]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [rdi + 0x2f4]
movsxd rdx, dword [rdi + 0x2f0]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rdi, qword [rsi + 0x18]
mov qword [rsi + 0x18], 0
test rdi, rdi
jne 0x14009b22d
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140065120
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, rdi
call fcn.140034be0
jmp 0x14009b153
mov rcx, qword [rsi + 0x10]
mov rdx, qword [rcx + 0x360]
cmp dword [rsi + 0x28], edx
jne 0x14009b160
mov rcx, qword [rcx + 0x20]
mov qword [rsi + 0x18], 0
lea r8, [rsp + 0x20]
mov qword [r8], rax
mov rdx, qword [rsi + 0x20]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x14009b160
mov rcx, rdi
call fcn.14008eb70
mov rcx, rdi
call fcn.140062b78
jmp 0x14009b1d3