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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x14025e040]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r8, 0x30
ja 0x1400f1c49
mov r14, r8
mov r15, rdx
mov rsi, rcx
movaps xmm0, xmmword [0x14022f060]
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 [0x140250b60]
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 [0x140250b60]
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 [0x140250b60]
test r14, r14
je 0x1400f1be3
xor eax, eax
mov cl, byte [r15 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r14, rax
jne 0x1400f1bd3
mov ecx, 1
call fcn.140141150
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
bt eax, 0x19
jae 0x1400f1c4d
call fcn.14002fe60
lea rax, [0x14002ebe0]
lea rcx, [0x14002de80]
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.140156d40
mov eax, esi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor esi, esi
jmp 0x1400f1c2c
bt eax, 9
jae 0x1400f1c68
call fcn.140030f50
lea rax, [0x140031420]
lea rcx, [0x140031120]
jmp 0x1400f1c13
call fcn.1401bff30
lea rax, [0x1401c0730]
lea rcx, [0x1401bfe10]
jmp 0x1400f1c13
Function at 0x1400f1c90
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 [0x14025e040]
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 0x1400f1e61
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 [0x140241ff0]
movaps xmm8, xmmword [0x140242000]
lea r12, [rsp + 0x30]
mov eax, r14d
bswap eax
mov dword [rsp + 0x5c], eax
mov rax, qword [rsp + 0x30]
cmp rax, rsi
je 0x1400f1d58
mov ecx, dword [rsi + 0x2c]
call fcn.140141cb0
test rax, rax
je 0x1400f1eb4
mov rbp, rax
mov rcx, qword [rsp + 0x38]
call fcn.140141d10
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rsi
mov rax, rsi
mov rax, qword [rax + 0x10]
lea rcx, [0x1401d4820]
cmp rax, rcx
jne 0x1400f1eb8
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 [0x140250b60]
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x18]
mov r8d, 4
mov rcx, r12
lea rdx, [rsp + 0x5c]
call qword [0x140250b60]
cmp rdi, r13
jb 0x1400f1e08
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x20]
mov rcx, r12
mov rdx, rbx
call qword [0x140250b60]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov edx, dword [rax + 0x2c]
call fcn.140141d50
add rbx, r13
inc r14d
sub rdi, r13
jne 0x1400f1d1a
jmp 0x1400f1e5c
movaps xmm0, xmmword [0x14022f060]
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 [0x140250b60]
mov rax, qword [r15]
mov rcx, qword [r15 + 8]
mov edx, dword [rax + 0x2c]
call fcn.140141d50
mov rcx, rbx
mov rdx, r14
mov r8, rdi
call fcn.14018f480
mov esi, 1
mov rcx, qword [rsp + 0x38]
call fcn.140141d10
mov rax, qword [rsp + 0x48]
test rax, rax
jne 0x1400f1ec8
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140156d40
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 0x1400f1e61
lea rcx, [rsp + 0x30]
call qword [0x140250b60]
jmp 0x1400f1d94
mov rax, qword [rax]
mov rcx, qword [rsp + 0x40]
call qword [0x140250b60]
jmp 0x1400f1e75
Function at 0x1400f3230
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.140141150
mov ebp, eax
bt eax, 0x1d
jb 0x1400f3273
not ebp
test ebp, 0x128
jne 0x1400f3299
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.14003dd30
mov ecx, 1
call fcn.140141150
bt eax, 9
jae 0x1400f3253
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.14003bdc0
mov ecx, 1
call fcn.140141150
mov ebp, eax
bt eax, 0x1c
jae 0x1400f32b8
xor ecx, ecx
call fcn.140141150
bt eax, 0x1e
jb 0x1400f32e2
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
bt ebp, 9
jb 0x1400f32d4
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.14003ad80
nop
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.14003c090
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.14003cf30

Function at 0x1400f3350
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.140141150
bt eax, 0x1d
jb 0x1400f33d0
mov ecx, 1
call fcn.140141150
mov ebp, eax
bt eax, 0x1c
jae 0x1400f33a6
xor ecx, ecx
call fcn.140141150
bt eax, 0x1e
jae 0x1400f33a6
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.140041dc0
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
bt ebp, 9
jb 0x1400f33c2
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.14003f900
nop
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.140040e80
mov ecx, 1
call fcn.140141150
bt eax, 9
jae 0x1400f3371
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.140040ac0
Function at 0x1400fbd90
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14025e040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x140270c70]
mov ecx, dword [0x14026c848]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400fbdf0
lea rsi, [0x140270c68]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140156d40
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140270c70]
call fcn.14015589c
cmp dword [0x140270c70], 0xffffffff
jne 0x1400fbdcc
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.14018fb20
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
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, 0x88
call fcn.140155818
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140270cb8]
mov ecx, dword [0x14026c848]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400fbeb0
lea r8, [0x140270c88]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.1400fbfb0
mov qword [0x140270c68], rsi
lea rcx, [0x140270c70]
call fcn.140155950
jmp 0x1400fbdcc
lea rcx, [0x140270cb8]
call fcn.14015589c
cmp dword [0x140270cb8], 0xffffffff
jne 0x1400fbe81
xorps xmm0, xmm0
movups xmmword [0x140270ca8], xmm0
movups xmmword [0x140270c98], xmm0
movups xmmword [0x140270c88], xmm0
lea rcx, [0x140270c88]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140270cb8]
call fcn.140155950
jmp 0x1400fbe81

Function at 0x1400fbf00
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140270cb8]
mov ecx, dword [0x14026c848]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400fbf3b
movzx eax, word [0x140270c88]
cmp eax, 9
jne 0x1400fbf83
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x140270cb8]
call fcn.14015589c
cmp dword [0x140270cb8], 0xffffffff
jne 0x1400fbf25
xorps xmm0, xmm0
movups xmmword [0x140270ca8], xmm0
movups xmmword [0x140270c98], xmm0
movups xmmword [0x140270c88], xmm0
lea rcx, [0x140270c88]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140270cb8]
call fcn.140155950
jmp 0x1400fbf25
test eax, eax
je 0x1400fbf36
cmp eax, 6
jne 0x1400fbf93
mov eax, 2
jmp 0x1400fbf36
cmp eax, 0xc
jne 0x1400fbf9f
mov eax, 3
jmp 0x1400fbf36
mov eax, 4
jmp 0x1400fbf36
Function at 0x1400fe520
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
jne 0x1400fe615
cmp qword [rsi], 0
jne 0x1400fe615
cmp dword [rsi + 0x14], 0
jne 0x1400fe615
cmp qword [rsi + 8], 0
jne 0x1400fe615
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x1400fe594
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400fe5fc
lea rax, [r14 + 1]
cmp rax, 2
jb 0x1400fe58c
mov qword [rsi], r14
call fcn.14012d270
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x1400fe5ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x1400fe5e4
lea rax, [r14 + 1]
cmp rax, 2
jb 0x1400fe5c6
mov qword [rsi + 8], r14
call fcn.14012d270
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rdi + 0x10]
mov dword [rsi + 0x10], eax
mov eax, dword [rdi + 0x14]
mov dword [rsi + 0x14], eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.14012d270
mov rcx, qword [rsi + 8]
call fcn.140121480
mov qword [rsi + 8], 0
jmp 0x1400fe5b3
call fcn.14012d270
mov rcx, qword [rsi]
call fcn.140121480
mov qword [rsi], 0
jmp 0x1400fe57a
mov rcx, rsi
call fcn.14011d4c0
lea rcx, [rsi + 8]
call fcn.14011d4c0
mov qword [rsi + 0x10], 0
mov rax, qword [rsi]
jmp 0x1400fe55a
Function at 0x140102140
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x248
mov rax, qword [0x14025e040]
xor rax, rsp
mov qword [rsp + 0x240], rax
movaps xmm0, xmmword [0x14022f060]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
call sub.ntdll.dll_RtlFormatCurrentUserKeyPath
mov esi, eax
test eax, eax
js 0x1401022bc
lea rdi, [rsp + 0x20]
mov rdx, qword [rdi + 8]
lea rbx, [0x140272b50]
mov r14d, 0xff
mov r8d, 0xff
mov rcx, rbx
call fcn.1401775c0
mov rcx, rbx
call fcn.140175a44
sub r14, rax
lea rdx, [0x14023693c]
mov rcx, rbx
mov r8, r14
call fcn.1401775c0
mov rcx, rdi
call sub.ntdll.dll_RtlFreeUnicodeString
lea rbx, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call fcn.14018fb20
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdi, rax
lea rcx, str.PROGRAMFILES
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14010221c
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140177608
test eax, eax
je 0x1401022e0
lea rcx, str.PROGRAMFILES_X86_
lea rdx, [rsp + 0x30]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140102257
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140177608
test eax, eax
je 0x1401022e0
xor eax, eax
mov byte [0x140272749], al
mov dword [rsp + 0x30], 0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x140248ce4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1401022e7
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rax, rdi
call qword [0x140250b60]
test eax, eax
je 0x1401022e7
cmp dword [rsp + 0x30], 0
setne al
mov byte [0x140272d50], al
mov byte [0x140272748], 1
test esi, esi
setns bl
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140156d40
mov eax, ebx
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r14
ret
mov al, 1
jmp 0x140102259
xor eax, eax
jmp 0x1401022af
Function at 0x1401025e0
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rsi, r8
mov ebx, edx
mov edi, ecx
mov rax, qword [0x14025e040]
xor rax, rsp
mov qword [rsp + 0x70], rax
movsx rax, byte [r8 + 0x17]
test rax, rax
jns 0x140102614
mov rax, qword [rsi + 8]
test rax, rax
je 0x14010270b
bt ebx, 8
jae 0x140102630
mov eax, ebx
and eax, 0x200
jne 0x14010270b
cmp edi, 2
lea rax, [0x140272750]
lea rcx, [0x140272950]
cmove rcx, rax
cmp word [rcx], 0
jne 0x14010270b
xorps xmm0, xmm0
lea r14, [rsp + 0x40]
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [r14], 0
je 0x14010270b
bt ebx, 8
jb 0x14010270b
shr ebx, 9
and ebx, 1
or bl, byte [0x140272d50]
je 0x14010270b
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea r12, str.SOFTWARE
cmove r12, rax
movsx r13, byte [rsi + 0x17]
test r13, r13
jns 0x14010272a
mov r14, qword [rsi]
mov r13, qword [rsi + 8]
mov edi, 1
xor ebx, ebx
xor eax, eax
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0
mov r15, qword [r12 + 8]
mov rbp, r13
sub rbp, r15
jb 0x1401026f4
mov rdx, qword [r12]
mov rcx, r14
mov r8, r15
call fcn.140170b2c
test eax, eax
je 0x14010272f
add r12, 0x28
inc rbx
cmp rbx, rdi
jb 0x1401026d4
cmp dword [rsp + 0x2c], 0
jne 0x1401027aa
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140156d40
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14, rsi
jmp 0x1401026b7
movzx ecx, word [r14 + r15*2]
cmp ecx, 0x5c
je 0x14010273d
test ecx, ecx
jne 0x1401026f4
lea rax, [r14 + r15*2]
mov edx, dword [r12 + 0x10]
mov dword [rsp + 0x2c], edx
cmp edx, 1
je 0x140102769
cmp dword [rsp + 0x2c], 2
jne 0x14010277a
lea rdx, str.WOW6432Node
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rax
jmp 0x14010277a
lea rdx, str.WOW6432Node_
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r14
cmp cx, 0x5c
jne 0x140102793
lea r14, [rax + 2]
dec rbp
cmp word [rax + 2], 0x5c
mov rax, r14
je 0x140102780
jmp 0x140102796
mov r14, rax
mov rdi, qword [r12 + 0x20]
mov r12, qword [r12 + 0x18]
xor ebx, ebx
mov r13, rbp
jmp 0x1401026fb
cmp byte [rsi + 0x17], 0
mov rax, rsi
jns 0x1401027b6
mov rax, qword [rsi]
mov rdx, qword [rsp + 0x30]
sub rdx, rax
sar rdx, 1
mov rcx, rsi
mov r8, qword [rsp + 0x38]
call fcn.1401b5df0
jmp 0x14010270b
Function at 0x140103dc0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rcx, rcx
je 0x140103e37
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x140260740], rax
jne 0x140103e3a
mov rsi, rcx
call fcn.14010a720
mov edx, 0x570
mov rcx, rax
xor r8d, r8d
call fcn.1400fdc30
mov rdi, rax
mov rcx, rax
mov rdx, rsi
call fcn.140149310
mov ecx, dword [0x140272d5c]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x14026c848]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x158], rdi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
int3
int3
Function at 0x140106750
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 [0x14025e040]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x140106720]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x1402754c0]
lea rdx, [0x140106570]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140106848
cmp dword [0x1402754c8], 0
jne 0x140106855
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x1402754cc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x1401067fc
mov ecx, 1
mov edx, 0x28
call fcn.140130f30
test rax, rax
je 0x140106855
mov r14, rax
mov ecx, dword [0x1402754cc]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14010684d
lea r15, [0x1402754d0]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x1402754e0]
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.140156d40
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14016d420
mov rcx, r14
call fcn.140130e90
mov rcx, rsi
mov rax, rdi
call qword [0x140250b60]
xor esi, esi
jmp 0x14010682c

Function at 0x140109cc0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x10050
call fcn.140156ce0
sub rsp, rax
mov rsi, rdx
mov rax, qword [0x14025e040]
xor rax, rsp
mov qword [rsp + 0x10048], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x14022f060]
movaps xmmword [rdi], xmm0
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
mov rcx, rdi
call fcn.140126090
test rsi, rsi
je 0x140109d98
lea rbx, [rsp + 0x4a]
mov r8d, 0xfffe
mov rcx, rbx
mov dl, 0xaa
call fcn.14018fb20
cmp byte [rsp + 0x47], 0
jns 0x140109d3b
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 0x140109d6a
cmp eax, 0x7fff
jae 0x140109dbd
mov edx, eax
lea rcx, [rsp + 0x4a]
mov r8, rsi
call fcn.1400e0af0
cmp byte [rsp + 0x47], 0
jns 0x140109d7b
mov rcx, qword [rsp + 0x30]
call fcn.140155854
mov rcx, qword [rsp + 0x10048]
xor rcx, rsp
call fcn.140156d40
mov eax, ebx
add rsp, 0x10050
pop rbx
pop rdi
pop rsi
ret
cmp byte [rsp + 0x47], 0
js 0x140109da6
lea rcx, [rsp + 0x30]
jmp 0x140109dab
mov rcx, qword [rsp + 0x30]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne bl
jmp 0x140109d6a
int3
Function at 0x140109f70
Capabilities:
Encrypt data using openssl rsa

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rax, qword [0x14025e040]
xor rax, rsp
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [0x14022f060]
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
mov r8d, 6
call fcn.140107430
test eax, eax
je 0x14010a088
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
movzx eax, byte [0x14024b525]
cmp rsi, rax
jne 0x140109ff7
lea rbx, [0x14024b518]
test al, al
je 0x140109fdf
lea rdx, [0x14024b51c]
mov rcx, rdi
mov r8, rsi
call fcn.14018f380
test eax, eax
jne 0x140109ff7
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140156d40
mov rax, rbx
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
movzx eax, byte [0x14024b6e5]
cmp rsi, rax
jne 0x14010a024
lea rbx, [0x14024b6d8]
test al, al
je 0x140109fdf
lea rdx, [0x14024b6dc]
mov rcx, rdi
mov r8, rsi
call fcn.14018f380
test eax, eax
je 0x140109fdf
movzx eax, byte [0x14024b605]
cmp rsi, rax
jne 0x14010a051
lea rbx, [0x14024b5f8]
test al, al
je 0x140109fdf
lea rdx, [0x14024b5fc]
mov rcx, rdi
mov r8, rsi
call fcn.14018f380
test eax, eax
je 0x140109fdf
movzx eax, byte [0x14024b8ad]
cmp rsi, rax
jne 0x14010a08f
lea rbx, [0x14024b8a0]
test al, al
je 0x140109fdf
lea rdx, [0x14024b8a4]
mov rcx, rdi
mov r8, rsi
call fcn.14018f380
test eax, eax
je 0x140109fdf
jmp 0x14010a08f
xor ebx, ebx
jmp 0x140109fdf
movzx eax, byte [0x14024b7c5]
cmp rsi, rax
jne 0x14010a088
lea rbx, [0x14024b7b8]
test al, al
je 0x140109fdf
lea rdx, [0x14024b7bc]
mov rcx, rdi
mov r8, rsi
call fcn.14018f380
test eax, eax
je 0x140109fdf
jmp 0x14010a088

Function at 0x14010baf0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x140277208], 0
jne 0x14010bb2d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14010bb20
mov dword [rdi], eax
mov dword [0x140277210], eax
mov qword [0x140277208], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3
Function at 0x14011c6e0
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 0x14011c85f
movabs rax, 0x1751997d0
movq xmm4, rax
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm3
pmovzxdq xmm3, qword [0x140235720]
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 0x14011c7c2
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 0x14011c798
pmovzxdq xmm1, qword [0x140235720]
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 [0x140235710], 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 [0x140235700]
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 0x14011c880
jmp 0x14011c732

Function at 0x14011d450
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x14011d4ae
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 0x14011d498
lea rax, [rsi + 1]
cmp rax, 2
jb 0x14011d488
mov qword [rdi], rsi
call fcn.14012d270
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.14012d270
mov rcx, qword [rdi]
call fcn.140121480
mov qword [rdi], 0
jmp 0x14011d476
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret