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

Disassembly:
sub rsp, 0x58
movaps 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 xmm10, r8d
pxor xmm10, xmm4
add rdx, 0xffffffffffffffc0
add rcx, 0x40
cmp rdx, 0x40
jb 0x14015a30f
movabs rax, 0x154442bd4
movq xmm9, rax
movdqa xmm8, xmmword [0x140333940]
nop word [rax + rax]
movdqa xmm6, xmm10
pclmulqdq xmm6, xmm9, 0
movdqa xmm7, xmm3
pclmulqdq xmm7, xmm9, 0
movdqa xmm5, xmm2
pclmulqdq xmm5, xmm9, 0
movdqa xmm4, xmm1
pclmulqdq xmm4, xmm9, 0
pclmulqdq xmm10, xmm8, 0x11
pclmulqdq xmm3, xmm8, 0x11
pclmulqdq xmm2, xmm8, 0x11
pclmulqdq xmm1, xmm8, 0x11
movdqu xmm0, xmmword [rcx]
pxor xmm0, xmm6
pxor xmm10, xmm0
movdqu xmm0, xmmword [rcx + 0x10]
pxor xmm0, xmm7
pxor xmm3, xmm0
movdqu xmm0, xmmword [rcx + 0x20]
pxor xmm0, xmm5
pxor xmm2, xmm0
movdqu xmm0, xmmword [rcx + 0x30]
pxor xmm0, xmm4
pxor xmm1, xmm0
add rdx, 0xffffffffffffffc0
add rcx, 0x40
cmp rdx, 0x3f
ja 0x14015a280
movabs rax, 0x1751997d0
movq xmm4, rax
movdqa xmm0, xmm10
pclmulqdq xmm0, xmm4, 0
pxor xmm0, xmm3
movdqa xmm3, xmmword [0x140333950]
pclmulqdq xmm10, xmm3, 0x11
pxor xmm10, xmm0
movdqa xmm0, xmm10
pclmulqdq xmm0, xmm4, 0
pxor xmm0, xmm2
pclmulqdq xmm10, xmm3, 0x11
pxor xmm10, xmm0
movdqa xmm0, xmm10
pclmulqdq xmm0, xmm4, 0
pxor xmm0, xmm1
pclmulqdq xmm10, xmm3, 0x11
pxor xmm10, xmm0
cmp rdx, 0x10
jb 0x14015a3aa
movdqu xmm0, xmmword [rcx]
movdqa xmm1, xmm10
pclmulqdq xmm1, xmm4, 0
pxor xmm1, xmm0
pclmulqdq xmm10, xmm3, 0x11
pxor xmm10, xmm1
add rcx, 0x10
add rdx, 0xfffffffffffffff0
cmp rdx, 0xf
ja 0x14015a37d
movdqa xmm0, xmmword [0x140333950]
pclmulqdq xmm0, xmm10, 1
psrldq xmm10, 8
pxor xmm10, xmm0
pxor xmm0, xmm0
pxor xmm1, xmm1
pblendw xmm1, xmm10, 3
psrldq xmm10, 4
movabs rax, 0x163cd6124
movq xmm2, rax
pclmulqdq xmm2, xmm1, 0
pxor xmm2, xmm10
pxor xmm1, xmm1
pblendw xmm1, xmm2, 3
pclmulqdq xmm1, xmmword [0x140333960], 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]
add rsp, 0x58
ret
Function at 0x14016d770
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc0
mov esi, r9d
mov r14, r8
mov rdi, rdx
mov r15, rcx
mov rax, qword [0x1403a0028]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea rbp, [rsp + 0x60]
mov qword [rbp + 0x50], r12
movaps xmm0, xmmword [0x14032f5c0]
movaps xmmword [rbp + 0x40], xmm0
movaps xmmword [rbp + 0x30], xmm0
movaps xmmword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
lea rdx, str.Read
lea r8, str....._base_files_file_win.cc
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov r9d, 0x3e
call fcn.140160630
mov rcx, rbp
mov rdx, rbx
xor r8d, r8d
call fcn.14016ac30
mov ebp, 0xffffffff
test rdi, rdi
js 0x14016d86d
test esi, esi
js 0x14016d86d
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], 0
call fcn.14017a620
test al, al
jne 0x14016d8ae
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rdi
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [r15]
mov qword [rsp + 0x20], rbx
mov rdx, r14
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14016d89b
mov ebp, dword [rsp + 0x2c]
test ebp, ebp
js 0x14016d8ca
lea rcx, [rsp + 0x30]
call fcn.14017a6b0
lea rcx, [rsp + 0x60]
call fcn.14016ac90
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1401bb0d0
mov eax, ebp
add rsp, 0xc0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
cmp eax, 0x26
setne bpl
neg ebp
jmp 0x14016d863
mov r9d, esi
lea rdx, str.File::Read
lea rcx, [rsp + 0x30]
mov r8, r15
call fcn.1402895b0
jmp 0x14016d825
int3
Function at 0x14016d8d0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc0
mov esi, r9d
mov r14, r8
mov rdi, rdx
mov r15, rcx
mov rax, qword [0x1403a0028]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea rbp, [rsp + 0x60]
mov qword [rbp + 0x50], r12
movaps xmm0, xmmword [0x14032f5c0]
movaps xmmword [rbp + 0x40], xmm0
movaps xmmword [rbp + 0x30], xmm0
movaps xmmword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
lea rdx, str.Write
lea r8, str....._base_files_file_win.cc
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov r9d, 0x7b
call fcn.140160630
mov rcx, rbp
mov rdx, rbx
xor r8d, r8d
call fcn.14016ac30
mov ebp, 0xffffffff
test rdi, rdi
js 0x14016d9c8
test esi, esi
js 0x14016d9c8
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], 0
call fcn.14017a620
test al, al
jne 0x14016d9f6
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rdi
lea rdi, [rsp + 0x2c]
mov dword [rdi], 0xaaaaaaaa
mov rcx, qword [r15]
mov qword [rsp + 0x20], rbx
mov rdx, r14
mov r8d, esi
mov r9, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor ebp, ebp
cmp eax, 1
sbb ebp, ebp
or ebp, dword [rdi]
lea rcx, [rsp + 0x30]
call fcn.14017a6b0
lea rcx, [rsp + 0x60]
call fcn.14016ac90
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1401bb0d0
mov eax, ebp
add rsp, 0xc0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r9d, esi
lea rdx, str.File::Write
lea rcx, [rsp + 0x30]
mov r8, r15
call fcn.1402895b0
jmp 0x14016d981

Function at 0x14016da20
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 0x14016da67
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14016da81
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14016da5f
mov qword [rsi], rdi
call fcn.140160650
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 0x14016da97
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140160650
mov rcx, qword [rsi]
call fcn.14016ddf0
mov qword [rsi], 0
jmp 0x14016da4d
int3

Function at 0x14016e060
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x14016e09c
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 0x14016e0a6
add rdi, rbx
sub rsi, rbx
jne 0x14016e07a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3
Function at 0x14016e640
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
movapd xmmword [rsp + 0x40], xmm6
mov rsi, rcx
mov rax, qword [0x1403a0028]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.14016ddd0
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x1403b4bc0]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x14016e69d
jnp 0x14016e702
ucomisd xmm0, xmm6
jne 0x14016e6a9
jnp 0x14016e818
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x140338770]
subpd xmm1, xmmword [0x140338780]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x140339730]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401bb0d0
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov r12d, eax
call rbx
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x1403b4bd0]
mov ecx, dword [0x1403b1c84]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14016e81f
mov eax, dword [0x1403b4be0]
mov ecx, dword [0x1403b1c84]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14016e859
rdtsc
mov r14, rax
mov r15, rdx
xor edi, edi
lea rbx, [rsp + 0x30]
mov qword [rbx], rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rbp, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [rbx], rdi
lea rdi, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub rbp, qword [0x1403b4bd8]
cvtsi2sd xmm1, rbp
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x140339728]
ucomisd xmm2, xmm1
ja 0x14016e69d
shl r15, 0x20
or r14, r15
sub r14, qword [0x1403b4bc8]
movq xmm0, r14
punpckldq xmm0, xmmword [0x140338770]
subpd xmm0, xmmword [0x140338780]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x1403b4bc0], xmm0
jmp 0x14016e69d
xor eax, eax
jmp 0x14016e6db
lea rcx, [0x1403b4bd0]
call fcn.1401b9e00
cmp dword [0x1403b4bd0], 0xffffffff
jne 0x14016e74c
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x1403b4bc8], rdx
lea rcx, [0x1403b4bd0]
call fcn.1401b9e98
jmp 0x14016e74c
lea rcx, [0x1403b4be0]
call fcn.1401b9e00
cmp dword [0x1403b4be0], 0xffffffff
jne 0x14016e771
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x1403b4bd8], rax
lea rcx, [0x1403b4be0]
call fcn.1401b9e98
jmp 0x14016e771
Function at 0x140172ea0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
cmp rdx, r9
mov r10, r9
cmovb r10, rdx
xor eax, eax
test r10, r10
je 0x140172f0e
xor r11d, r11d
mov r14, qword [r8 + r11*8]
mov r15, qword [rcx + r11*8]
mov rbx, r15
xor rbx, r14
mov edi, eax
lea rax, [rbx - 1]
mov rsi, r15
sub rsi, r14
xor rsi, r15
or rsi, rbx
not rbx
and rax, rbx
sar rax, 0x3f
xor rsi, r15
sar rsi, 0x3f
mov rbx, rsi
not rsi
and esi, 1
or rsi, rbx
mov rbx, rax
and edi, ebx
not rax
and rax, rsi
or rax, rdi
inc r11
cmp r10, r11
jne 0x140172ebb
cmp rdx, r9
jb 0x140172f1d
ja 0x140172f49
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
xor ecx, ecx
or rcx, qword [r8 + rdx*8]
inc rdx
cmp r9, rdx
jne 0x140172f1f
mov rdx, rcx
not rdx
dec rcx
and rcx, rdx
sar rcx, 0x3f
mov rdx, rcx
and edx, eax
not rcx
or ecx, edx
mov eax, ecx
jmp 0x140172f15
xor esi, esi
or rsi, qword [rcx + r9*8]
inc r9
cmp rdx, r9
jne 0x140172f4b
mov rcx, rsi
not rcx
dec rsi
and rsi, rcx
sar rsi, 0x3f
mov rcx, rsi
and ecx, eax
not rsi
and esi, 1
or esi, ecx
mov eax, esi
jmp 0x140172f15

Function at 0x1401731c0
Capabilities:
Encode data using xor

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
movsxd rax, dword [rdx + 8]
test rax, rax
je 0x1401732b3
mov r14, rcx
mov rcx, qword [rdx]
xor edi, edi
xor esi, esi
or rsi, qword [rcx + rdi*8]
inc rdi
cmp rax, rdi
jne 0x1401731e0
test rsi, rsi
je 0x1401732b3
test eax, eax
jle 0x1401732d8
mov rax, qword [rdx]
test byte [rax], 1
je 0x1401732d8
cmp dword [rdx + 0x10], 0
jne 0x140173311
lea rdi, [r14 + 0x18]
mov rcx, rdi
call fcn.140092490
test rax, rax
je 0x140173331
mov eax, dword [r14 + 0x20]
test eax, eax
jle 0x1401732f8
mov rdx, qword [rdi]
lea rcx, [rax - 1]
cmp qword [rdx + rax*8 - 8], 0
mov rax, rcx
je 0x14017322c
inc ecx
mov dword [r14 + 0x20], ecx
mov rax, qword [rdi]
mov r9, qword [rax]
mov ebx, 1
mov edx, 0x40
xor ecx, ecx
movabs r8, 0x8000000000000000
mov esi, ebx
and esi, 1
neg rsi
mov rax, r9
and rax, rsi
mov rdi, rax
xor rdi, rbx
shr rdi, 1
and rax, rbx
add rax, rdi
and rsi, r8
shr rcx, 1
or rcx, rsi
mov rbx, rax
dec rdx
jne 0x140173268
mov qword [r14 + 0x30], rcx
mov qword [r14 + 0x38], 0
mov esi, 1
mov eax, esi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
mov dword [rsp + 0x20], 0xa4
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bnmontgomery.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x69
call fcn.140299620
jmp 0x1401732a7
mov dword [rsp + 0x20], 0xa8
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bnmontgomery.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x68
jmp 0x1401732d1
mov dword [r14 + 0x20], eax
test eax, eax
jne 0x14017324c
mov dword [r14 + 0x28], 0
jmp 0x14017324c
mov dword [rsp + 0x20], 0xac
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bnmontgomery.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x6d
jmp 0x1401732d1
mov dword [rsp + 0x20], 0xb2
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bnmontgomery.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x44
jmp 0x1401732d1
Function at 0x140173a00
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x1403a0028]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r8, 0x30
ja 0x140173b5c
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
movaps xmm0, xmmword [0x14032f5c0]
lea r14, [rsp + 0x40]
movaps xmmword [r14], xmm0
movaps xmmword [r14 - 0x10], xmm0
movaps xmmword [r14 - 0x20], xmm0
lea r12, [rsp + 0x30]
lea r15, [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, r15
mov r8, rsi
call qword [0x1403de008]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, r15
mov rdx, r12
mov r8, rsi
call qword [0x1403de008]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, r15
mov rdx, r14
mov r8, rsi
call qword [0x1403de008]
test rdi, rdi
je 0x140173af0
xor eax, eax
nop word cs:[rax + rax]
movzx ecx, byte [rbx + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp rdi, rax
jne 0x140173ae0
lea rdi, [rsi + 0xf8]
mov eax, dword [0x1403be514]
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
bt eax, 0x19
jae 0x140173b60
call fcn.1400033a0
lea rax, [0x140001ea0]
test rdi, rdi
je 0x140173b2b
lea rcx, [0x140001140]
mov qword [rdi], rcx
mov qword [rsi + 0x100], rax
movups xmm0, xmmword [r14]
movups xmmword [r15], xmm0
mov esi, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401bb0d0
mov eax, esi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor esi, esi
jmp 0x140173b3f
bt eax, 9
jae 0x140173b80
call fcn.140004590
lea rax, [0x140004a60]
test rdi, rdi
je 0x140173b2b
lea rcx, [0x140004760]
jmp 0x140173b28
call fcn.14022f4c0
lea rax, [0x14022fcb0]
test rdi, rdi
je 0x140173b2b
lea rcx, [0x14022f3a0]
jmp 0x140173b28
Function at 0x1401772e0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x1403a0028]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1403ba950]
mov ecx, dword [0x1403b1c84]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140177340
mov rsi, qword [0x1403ba948]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1401bb0d0
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1403ba950]
call fcn.1401b9e00
cmp dword [0x1403ba950], 0xffffffff
jne 0x14017731c
lea rsi, [rsp + 0x34]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1401bd200
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x30]
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.1401b9cac
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1403ba998]
mov ecx, dword [0x1403b1c84]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140177400
lea r8, [0x1403ba968]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r9d, edi
call fcn.1400c8580
mov qword [0x1403ba948], rsi
lea rcx, [0x1403ba950]
call fcn.1401b9e98
jmp 0x14017731c
lea rcx, [0x1403ba998]
call fcn.1401b9e00
cmp dword [0x1403ba998], 0xffffffff
jne 0x1401773d1
xorps xmm0, xmm0
movups xmmword [0x1403ba988], xmm0
movups xmmword [0x1403ba978], xmm0
movups xmmword [0x1403ba968], xmm0
lea rcx, [0x1403ba968]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1403ba998]
call fcn.1401b9e98
jmp 0x1401773d1
Function at 0x140177450
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x1403a0028]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1403ba950]
mov ecx, dword [0x1403b1c84]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1401774b1
mov rax, qword [0x1403ba948]
mov esi, dword [rax]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1401bb0d0
mov eax, esi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1403ba950]
call fcn.1401b9e00
cmp dword [0x1403ba950], 0xffffffff
jne 0x14017748c
lea rsi, [rsp + 0x34]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1401bd200
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x30]
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.1401b9cac
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1403ba998]
mov ecx, dword [0x1403b1c84]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140177571
lea r8, [0x1403ba968]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r9d, edi
call fcn.1400c8580
mov qword [0x1403ba948], rsi
lea rcx, [0x1403ba950]
call fcn.1401b9e98
jmp 0x14017748c
lea rcx, [0x1403ba998]
call fcn.1401b9e00
cmp dword [0x1403ba998], 0xffffffff
jne 0x140177542
xorps xmm0, xmm0
movups xmmword [0x1403ba988], xmm0
movups xmmword [0x1403ba978], xmm0
movups xmmword [0x1403ba968], xmm0
lea rcx, [0x1403ba968]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1403ba998]
call fcn.1401b9e98
jmp 0x140177542

Function at 0x1401775f0
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 ebx, ebx
test edx, edx
sete bl
xor ecx, ecx
mov edx, ebx
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x140177687
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140177671
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14017764e
mov qword [rsi], rdi
call fcn.140160650
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 1
inc rax
cmp rax, 1
jbe 0x14017768b
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140160650
mov rcx, qword [rsi]
call fcn.14016ddf0
mov qword [rsi], 0
jmp 0x14017763c
mov byte [rsi + 8], 1
int3

Function at 0x14017eec0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
test r8, r8
je 0x14017eeeb
xor ecx, ecx
lea r9, [0x140379d40]
movzx r10d, al
movzx r11d, byte [rdx + rcx]
xor r11d, r10d
shr eax, 8
xor eax, dword [r9 + r11*4]
inc rcx
cmp r8, rcx
jne 0x14017eed0
ret
Function at 0x140180520
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x1403b1580]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140180554
mov rcx, qword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 8]
jne 0x140180554
mov rax, qword [rax + rcx]
add rsp, 0x20
pop rsi
ret
xor eax, eax
jmp 0x14018054e

Function at 0x140180560
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x1403b1580]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14018059e
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
test rdi, rdi
je 0x140180597
call fcn.1400d1610
jmp 0x14018057e

Function at 0x1401806f0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1403bc330]
mov ecx, dword [0x1403b1c84]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140180725
lea rcx, [0x1403bc320]
add rsp, 0x28
jmp fcn.140180520
lea rcx, [0x1403bc330]
call fcn.1401b9e00
cmp dword [0x1403bc330], 0xffffffff
jne 0x140180715
xorps xmm0, xmm0
movups xmmword [0x1403bc320], xmm0
lea rcx, [0x1403bc320]
xor edx, edx
call fcn.1400d1820
lea rcx, [0x1403bc330]
call fcn.1401b9e98
jmp 0x140180715

Function at 0x1401878d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
movzx eax, byte [rcx + 0x4f]
test al, al
js 0x1401879ab
test rax, rax
jne 0x14018799c
cmp dword [rsi + 0x50], 0
jne 0x14018799c
mov byte [rsi + 0x54], 0
mov rax, qword [rsi + 0x10]
mov qword [rsi + 8], rax
cmp rax, qword [rsi + 0x18]
je 0x1401879eb
lea rdi, [rsi + 0x20]
lea rcx, [rax + 1]
mov qword [rsi + 0x10], rcx
movzx edx, byte [rax]
mov rcx, rdi
xor r8d, r8d
call fcn.14015bf90
cmp rax, 0xffffffffffffffff
jne 0x1401879d9
cmp dword [rsi + 0x58], 1
je 0x1401879b4
mov rax, qword [rsi + 0x10]
mov bl, 1
cmp rax, qword [rsi + 0x18]
je 0x1401879f1
nop dword [rax]
movzx edx, byte [rax]
mov rcx, rdi
xor r8d, r8d
call fcn.14015bf90
cmp rax, 0xffffffffffffffff
jne 0x1401879f1
cmp dword [rsi + 0x58], 1
mov rax, qword [rsi + 0x10]
je 0x140187981
inc rax
mov qword [rsi + 0x10], rax
cmp rax, qword [rsi + 0x18]
jne 0x140187950
jmp 0x1401879f1
movzx ecx, byte [rax]
cmp rcx, 0x20
ja 0x140187972
movabs rdx, 0x100003600
bt rdx, rcx
jae 0x140187972
jmp 0x1401879f1
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1402964f0
mov rax, qword [rsi + 0x40]
jmp 0x1401878e6
mov rax, qword [rsi + 8]
movzx eax, byte [rax]
cmp rax, 0x20
ja 0x140187939
movabs rcx, 0x100003600
bt rcx, rax
jae 0x140187939
mov rax, qword [rsi + 0x10]
mov qword [rsi + 8], rax
cmp rax, qword [rsi + 0x18]
jne 0x140187913
mov byte [rsi + 0x54], 1
xor ebx, ebx
mov eax, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x14018b070
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x14018b099
xor r10d, r10d
xor r9d, r9d
nop dword [rax + rax]
movzx eax, byte [rdx + r10]
xor al, byte [rcx + r10]
or r9b, al
inc r10
cmp r8, r10
jne 0x14018b080
movzx eax, r9b
ret
xor eax, eax
ret

Function at 0x14018b370
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x1403a0028]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x1400e29f0]
lea r8, [rsp + 0x20]
mov qword [r8], rax
lea rcx, [0x1403bef48]
lea rdx, [0x1400e2840]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14018b402
cmp dword [0x1403bef50], 0
jne 0x14018b3fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x1403bef54]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x14018b3fe
movsxd rax, esi
mov rsi, qword [rdi + rax*8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401bb0d0
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x14018b3e6
call fcn.1401d3c50
int3

Function at 0x14018b650
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x1403bfc88]
cmp rsi, 1
jbe 0x14018b673
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140180560
lea rcx, [0x1403bfc88]
call fcn.140075b10
test al, al
je 0x14018b6b8
xorps xmm0, xmm0
movups xmmword [0x1403bfc90], xmm0
lea rdi, [0x1403bfc88]
lea rsi, [0x1403bfc90]
mov rcx, rsi
xor edx, edx
call fcn.1400d1820
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.140075bb0
jmp 0x14018b663
mov rsi, qword [0x1403bfc88]
jmp 0x14018b663