joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400fb660
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.14015b6c0
mov ebp, eax
bt eax, 0x1d
jb 0x1400fb6a3
not ebp
test ebp, 0x128
jne 0x1400fb6c9
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.14003d270
mov ecx, 1
call fcn.14015b6c0
bt eax, 9
jae 0x1400fb683
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.14003b300
mov ecx, 1
call fcn.14015b6c0
mov ebp, eax
bt eax, 0x1c
jae 0x1400fb6e8
xor ecx, ecx
call fcn.14015b6c0
bt eax, 0x1e
jb 0x1400fb712
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
bt ebp, 9
jb 0x1400fb704
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.14003a2c0
nop
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.14003b5d0
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.14003c470
Function at 0x1400fc010
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x28
test rdx, rdx
jne 0x1400fc02a
test r8d, r8d
jne 0x1400fc023
call fcn.14015bb00
xor eax, eax
add rsp, 0x28
ret
mov r8d, r8d
add rsp, 0x28
jmp fcn.1401523b0

Function at 0x1400fc1a0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14026c040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x14027ec10]
mov ecx, dword [0x14027a7c8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400fc207
lea rax, [0x14027ec08]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
cmp rcx, qword [0x14026c040]
je 0x1400fc1fd
call fcn.140169190
int3
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x14027ec10]
call fcn.140167cec
cmp dword [0x14027ec10], 0xffffffff
jne 0x1400fc1dc
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1401a3560
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.140167c6c
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x14027ec58]
mov ecx, dword [0x14027a7c8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400fc2c7
lea r8, [0x14027ec28]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.1400fc3c0
mov qword [0x14027ec08], rsi
lea rcx, [0x14027ec10]
call fcn.140167da0
jmp 0x1400fc1dc
lea rcx, [0x14027ec58]
call fcn.140167cec
cmp dword [0x14027ec58], 0xffffffff
jne 0x1400fc298
xorps xmm0, xmm0
movups xmmword [0x14027ec48], xmm0
movups xmmword [0x14027ec38], xmm0
movups xmmword [0x14027ec28], xmm0
lea rcx, [0x14027ec28]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14027ec58]
call fcn.140167da0
jmp 0x1400fc298

Function at 0x1400fc310
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14027ec58]
mov ecx, dword [0x14027a7c8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400fc34b
movzx eax, word [0x14027ec28]
cmp eax, 9
jne 0x1400fc393
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x14027ec58]
call fcn.140167cec
cmp dword [0x14027ec58], 0xffffffff
jne 0x1400fc335
xorps xmm0, xmm0
movups xmmword [0x14027ec48], xmm0
movups xmmword [0x14027ec38], xmm0
movups xmmword [0x14027ec28], xmm0
lea rcx, [0x14027ec28]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14027ec58]
call fcn.140167da0
jmp 0x1400fc335
test eax, eax
je 0x1400fc346
cmp eax, 6
jne 0x1400fc3a3
mov eax, 2
jmp 0x1400fc346
cmp eax, 0xc
jne 0x1400fc3af
mov eax, 3
jmp 0x1400fc346
mov eax, 4
jmp 0x1400fc346
Function at 0x1400ffdd0
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 0x1400ffebe
cmp qword [rsi], 0
jne 0x1400ffebe
cmp dword [rsi + 0x14], 0
jne 0x1400ffebe
cmp qword [rsi + 8], 0
jne 0x1400ffebe
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x1400ffe40
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400ffe90
lea rax, [r14 + 1]
cmp rax, 2
jb 0x1400ffe38
mov qword [rsi], r14
call fcn.14013e120
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x1400ffe7a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x1400ffea6
lea rax, [r14 + 1]
cmp rax, 2
jb 0x1400ffe72
mov qword [rsi + 8], r14
call fcn.14013e120
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.14013e120
mov rcx, qword [rsi]
call fcn.140131ec0
mov qword [rsi], 0
jmp 0x1400ffe26
call fcn.14013e120
mov rcx, qword [rsi + 8]
call fcn.140131ec0
mov qword [rsi + 8], 0
jmp 0x1400ffe5f
mov rcx, rsi
call fcn.1401f4f30
mov rax, qword [rsi]
jmp 0x1400ffe0a

Function at 0x140101ff0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x14026e690]
cmp ecx, 0xffffffff
je 0x1401020ca
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x1401020ca
mov eax, dword [0x140280590]
mov ecx, dword [0x14027a7c8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1401020d4
mov rbx, qword [0x140280588]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140102124
mov rax, qword [0x14027ed78]
inc rax
xor ecx, ecx
lea rdx, [0x14027ed80]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x140102131
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov ecx, dword [0x140280580]
inc ecx
mov dword [0x140280580], ecx
mov dword [rax + 0x14], ecx
mov qword [0x14027ed78], r8
mov qword [rsi], r8
mov eax, dword [rax + 0x10]
mov dword [rsi + 8], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsi], 0x100
jae 0x140102121
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140102150
jmp 0x14010201a
lea rcx, [0x140280590]
call fcn.140167cec
cmp dword [0x140280590], 0xffffffff
jne 0x14010203f
mov ecx, 8
call fcn.140167c6c
mov rbx, rax
mov qword [rax], 0
mov rcx, rax
call fcn.1401326e0
mov qword [0x140280588], rbx
lea rcx, [0x140280590]
call fcn.140167da0
jmp 0x14010203f
int3
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x140102057
inc rcx
cmp rcx, 0x100
jne 0x14010206a
jmp 0x1401020b0
Function at 0x140102150
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.140169130
sub rsp, rax
mov rax, qword [0x14026c040]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov ecx, dword [0x14026e690]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x14010220a
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140102248
lea rdi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rdi
xor edx, edx
call fcn.1401a3560
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.140167cdc
mov rsi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rdi
call fcn.1401a2ec0
mov ecx, dword [rsp + 0x2c]
mov rdx, rsi
or rdx, 3
call sub.KERNEL32.dll_TlsSetValue
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
cmp rcx, qword [0x14026c040]
je 0x1401021fd
call fcn.140169190
int3
mov rax, rsi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.140116250
test al, al
je 0x14010224b
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x14010224e
mov eax, 0xffffffff
lock cmpxchg dword [0x14026e690], ecx
je 0x140102184
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x14026e690]
mov dword [rsp + 0x2c], ecx
jmp 0x140102184
int3
int3
lea rcx, [rsp + 0x2c]
call fcn.140116250
test al, al
je 0x140102273
cmp dword [rsp + 0x2c], 0xffffffff
je 0x140102273
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x140102221
int3

Function at 0x140102280
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x14026e690]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
jne 0x1401022a8
test rdi, rdi
je 0x1401022c1
call fcn.140102150
mov rcx, qword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 8]
mov rdx, qword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x140104d90
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x248
mov rax, qword [0x14026c040]
xor rax, rsp
mov qword [rsp + 0x240], rax
movaps xmm0, xmmword [0x14023d9f0]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
call sub.ntdll.dll_RtlFormatCurrentUserKeyPath
mov esi, eax
test eax, eax
js 0x140104f0c
lea rdi, [rsp + 0x20]
mov rdx, qword [rdi + 8]
lea rbx, [0x140280b50]
mov r14d, 0xff
mov r8d, 0xff
mov rcx, rbx
call fcn.140188a64
mov rcx, rbx
call fcn.140187d04
sub r14, rax
lea rdx, [0x1402439f8]
mov rcx, rbx
mov r8, r14
call fcn.140188a64
mov rcx, rdi
call sub.ntdll.dll_RtlFreeUnicodeString
lea rbx, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call fcn.1401a3560
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 0x140104e6c
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140188aac
test eax, eax
je 0x140104f38
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 0x140104ea7
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140188aac
test eax, eax
je 0x140104f38
xor eax, eax
mov byte [0x140280741], al
mov dword [rsp + 0x30], 0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x140255ad4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140104f3f
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rax, rdi
call qword [0x14025e9a8]
test eax, eax
je 0x140104f3f
cmp dword [rsp + 0x30], 0
setne al
mov byte [0x140280d50], al
mov byte [0x140280740], 1
test esi, esi
setns al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
cmp rcx, qword [0x14026c040]
je 0x140104f2b
call fcn.140169190
int3
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r14
ret
mov al, 1
jmp 0x140104ea9
xor eax, eax
jmp 0x140104eff
Function at 0x140105170
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 [0x14026c040]
xor rax, rsp
mov qword [rsp + 0x70], rax
movsx rax, byte [r8 + 0x17]
test rax, rax
jns 0x1401051a4
mov rax, qword [rsi + 8]
test rax, rax
je 0x1401052aa
bt ebx, 8
jae 0x1401051c0
mov eax, ebx
and eax, 0x200
jne 0x1401052aa
cmp edi, 2
lea rax, [0x140280750]
lea rcx, [0x140280950]
cmove rcx, rax
cmp word [rcx], 0
jne 0x1401052aa
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 0x1401052aa
bt ebx, 8
jb 0x1401052aa
shr ebx, 9
and ebx, 1
or bl, byte [0x140280d50]
test bl, 1
je 0x1401052aa
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea r12, str.SOFTWARE
cmove r12, rax
movsx r13, byte [rsi + 0x17]
test r13, r13
jns 0x1401052d2
mov r14, qword [rsi]
mov r13, qword [rsi + 8]
mov edi, 1
xor ebx, ebx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x2c], 0
mov r15, qword [r12 + 8]
mov rbp, r13
sub rbp, r15
jb 0x140105293
mov rdx, qword [r12]
mov rcx, r14
mov r8, r15
call fcn.140182d8c
test eax, eax
je 0x1401052da
add r12, 0x28
inc rbx
cmp rbx, rdi
jb 0x140105273
cmp dword [rsp + 0x2c], 0
jne 0x140105355
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
cmp rcx, qword [0x14026c040]
je 0x1401052c1
call fcn.140169190
int3
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14, rsi
jmp 0x140105252
movzx ecx, word [r14 + r15*2]
cmp ecx, 0x5c
je 0x1401052e8
test ecx, ecx
jne 0x140105293
lea rax, [r14 + r15*2]
mov edx, dword [r12 + 0x10]
mov dword [rsp + 0x2c], edx
cmp edx, 1
je 0x140105314
cmp dword [rsp + 0x2c], 2
jne 0x140105325
lea rdx, str.WOW6432Node
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
jmp 0x140105325
lea rdx, str.WOW6432Node_
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], r14
cmp cx, 0x5c
jne 0x14010533e
lea r14, [rax + 2]
dec rbp
cmp word [rax + 2], 0x5c
mov rax, r14
je 0x14010532b
jmp 0x140105341
mov r14, rax
mov rdi, qword [r12 + 0x20]
mov r12, qword [r12 + 0x18]
xor ebx, ebx
mov r13, rbp
jmp 0x14010529a
cmp byte [rsi + 0x17], 0
mov rax, rsi
jns 0x140105361
mov rax, qword [rsi]
cmp qword [rsp + 0x30], 0
je 0x140105397
mov rbx, qword [rsp + 0x38]
sub rbx, rax
sar rbx, 1
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.140187d04
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
mov r9, rax
call fcn.1400d65e0
jmp 0x1401052aa
ud2
Function at 0x140107880
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rcx, rcx
je 0x1401078f7
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x14026e720], rax
jne 0x1401078fa
mov rsi, rcx
call fcn.140112e80
mov edx, 0x570
mov rcx, rax
xor r8d, r8d
call fcn.1400ff050
mov rdi, rax
mov rcx, rax
mov rdx, rsi
call fcn.140107910
mov ecx, dword [0x140280d5c]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x14027a7c8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x198], rdi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
int3
int3
Function at 0x14010fb70
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 [0x14026c040]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x14010fb40]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x140283900]
lea rdx, [0x14010f990]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14010fc70
cmp dword [0x140283908], 0
jne 0x14010fc7d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x14028390c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x14010fc1c
mov ecx, 1
mov edx, 0x28
call fcn.1400eca50
test rax, rax
je 0x14010fc7d
mov r14, rax
mov ecx, dword [0x14028390c]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14010fc75
lea r15, [0x140283910]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x140283920]
mov qword [rax + rbx*8], rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [r14 + rbx*8], rsi
mov eax, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
cmp rcx, qword [0x14026c040]
je 0x14010fc63
call fcn.140169190
int3
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14017f680
mov rcx, r14
call fcn.1400ec9c0
mov rcx, rsi
mov rax, rdi
call qword [0x14025e9a8]
xor eax, eax
jmp 0x14010fc4c
Function at 0x140112850
Capabilities:
Encrypt data using openssl rsa

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rax, qword [0x14026c040]
xor rax, rsp
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [0x14023d9f0]
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
mov r8d, 6
call fcn.14010f4f0
test eax, eax
je 0x140112972
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
movzx eax, byte [0x14025828d]
cmp rsi, rax
jne 0x1401128e1
lea rbx, [0x140258280]
test al, al
je 0x1401128bf
lea rdx, [0x140258284]
mov rcx, rdi
mov r8, rsi
call fcn.1401a2dc0
test eax, eax
jne 0x1401128e1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
cmp rcx, qword [0x14026c040]
je 0x1401128d6
call fcn.140169190
int3
mov rax, rbx
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
movzx eax, byte [0x14025844d]
cmp rsi, rax
jne 0x14011290e
lea rbx, [0x140258440]
test al, al
je 0x1401128bf
lea rdx, [0x140258444]
mov rcx, rdi
mov r8, rsi
call fcn.1401a2dc0
test eax, eax
je 0x1401128bf
movzx eax, byte [0x14025836d]
cmp rsi, rax
jne 0x14011293b
lea rbx, [0x140258360]
test al, al
je 0x1401128bf
lea rdx, [0x140258364]
mov rcx, rdi
mov r8, rsi
call fcn.1401a2dc0
test eax, eax
je 0x1401128bf
movzx eax, byte [0x140258615]
cmp rsi, rax
jne 0x140112979
lea rbx, [0x140258608]
test al, al
je 0x1401128bf
lea rdx, [0x14025860c]
mov rcx, rdi
mov r8, rsi
call fcn.1401a2dc0
test eax, eax
je 0x1401128bf
jmp 0x140112979
xor ebx, ebx
jmp 0x1401128bf
movzx eax, byte [0x14025852d]
cmp rsi, rax
jne 0x140112972
lea rbx, [0x140258520]
test al, al
je 0x1401128bf
lea rdx, [0x140258524]
mov rcx, rdi
mov r8, rsi
call fcn.1401a2dc0
test eax, eax
je 0x1401128bf
jmp 0x140112972

Function at 0x140114630
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x10050
call fcn.140169130
sub rsp, rax
mov rsi, rdx
mov rax, qword [0x14026c040]
xor rax, rsp
mov qword [rsp + 0x10048], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x14023d9f0]
movaps xmmword [rdi], xmm0
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
mov rcx, rdi
call fcn.140136b20
test rsi, rsi
je 0x140114716
lea rbx, [rsp + 0x4a]
mov r8d, 0xfffe
mov rcx, rbx
mov dl, 0xaa
call fcn.1401a3560
cmp byte [rsp + 0x47], 0
jns 0x1401146af
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 0x1401146de
cmp eax, 0x7fff
jae 0x14011473b
mov edx, eax
lea rcx, [rsp + 0x4a]
mov r8, rsi
call fcn.1400dfdb0
cmp byte [rsp + 0x47], 0
jns 0x1401146ef
mov rcx, qword [rsp + 0x30]
call fcn.140167ca8
mov rcx, qword [rsp + 0x10048]
xor rcx, rsp
cmp rcx, qword [0x14026c040]
je 0x140114709
call fcn.140169190
int3
mov eax, ebx
add rsp, 0x10050
pop rbx
pop rdi
pop rsi
ret
cmp byte [rsp + 0x47], 0
js 0x140114724
lea rcx, [rsp + 0x30]
jmp 0x140114729
mov rcx, qword [rsp + 0x30]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne bl
jmp 0x1401146de
int3
Function at 0x140116250
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 0x140116265
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret
Function at 0x1401177c0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x140285a68], 0
jne 0x1401177fd
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1401177f0
mov dword [rdi], eax
mov dword [0x140285a70], eax
mov qword [0x140285a68], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3
Function at 0x140129a00
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
jb 0x140129afe
movabs rax, 0x154442bd4
movq xmm4, rax
movdqa xmm5, xmmword [0x140242750]
nop dword [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 0x140129a70
movabs rax, 0x1751997d0
movq xmm4, rax
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm3
pmovzxdq xmm3, qword [0x140242770]
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 0x140129b8e
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 0x140129b64
pmovzxdq xmm1, qword [0x140242770]
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 [0x140242760], 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