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

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14021f580]
mov ecx, dword [0x14021ad00]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14008253b
movzx eax, word [0x14021f550]
cmp eax, 9
jne 0x140082583
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x14021f580]
call fcn.140111b40
cmp dword [0x14021f580], 0xffffffff
jne 0x140082525
xorps xmm0, xmm0
movups xmmword [0x14021f570], xmm0
movups xmmword [0x14021f560], xmm0
movups xmmword [0x14021f550], xmm0
lea rcx, [0x14021f550]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14021f580]
call fcn.140111bd8
jmp 0x140082525
cmp eax, 5
jg 0x140082598
test eax, eax
je 0x140082536
cmp eax, 5
jne 0x1400825b0
mov eax, 3
jmp 0x140082536
cmp eax, 6
jne 0x1400825a4
mov eax, 2
jmp 0x140082536
cmp eax, 0xc
jne 0x1400825b0
mov eax, 4
jmp 0x140082536
mov eax, 5
jmp 0x140082536

Function at 0x1400828e0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rbx, r9
mov ebp, r8d
mov rdi, rdx
mov rsi, rcx
xor eax, eax
mov qword [rcx], rax
mov r12, qword [rdx]
mov qword [rdx], rax
lea r13, [r12 + 1]
cmp r13, 2
jb 0x140082917
call fcn.1400713d0
mov r15, qword [rsp + 0x90]
cmp qword [rsi], r12
je 0x140082950
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14008297f
cmp r13, 2
jb 0x140082947
mov qword [rsi], r12
call fcn.1400713d0
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsi + 8], ebp
mov qword [rsi + 0x10], rbx
movups xmm0, xmmword [r15]
movups xmmword [rsi + 0x18], xmm0
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x140082995
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400713d0
mov rcx, qword [rsi]
call fcn.140081d40
mov qword [rsi], 0
jmp 0x140082939
call fcn.1400713d0
mov rcx, qword [rdi]
call fcn.140081d40
mov qword [rdi], 0
jmp 0x14008296b

Function at 0x1400829b0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
movzx eax, byte [0x14021f59c]
test al, 1
jne 0x140082a0c
test rsi, rsi
je 0x140082a02
mov r14d, 0xffffffff
nop word cs:[rax + rax]
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140082a25
add rdi, rbx
sub rsi, rbx
jne 0x1400829e0
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.14009be80
mov rcx, rdi
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.1400dd3d0
int3
Function at 0x140082af0
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
movapd xmmword [rsp + 0x40], xmm6
mov rsi, rcx
mov rax, qword [0x14020b038]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.140081b10
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x14021f5b0]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x140082b4a
jnp 0x140082bac
ucomisd xmm0, xmm6
jne 0x140082b56
jnp 0x140082cd0
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x1401e8970]
subpd xmm1, xmmword [0x1401e8980]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x1401e94b0]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140113000
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
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 edi, eax
call rbx
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x14021f5c0]
mov ecx, dword [0x14021ad00]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140082cd7
mov eax, dword [0x14021f5d0]
mov ecx, dword [0x14021ad00]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140082d11
rdtsc
mov rbx, rax
mov r14, rdx
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r15, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub r15, qword [0x14021f5c8]
cvtsi2sd xmm1, r15
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x30]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x1401e94a8]
ucomisd xmm2, xmm1
ja 0x140082b4a
shl r14, 0x20
or rbx, r14
sub rbx, qword [0x14021f5b8]
movq xmm2, rbx
punpckldq xmm2, xmmword [0x1401e8970]
subpd xmm2, xmmword [0x1401e8980]
movapd xmm0, xmm2
unpckhpd xmm0, xmm2
addsd xmm0, xmm2
divsd xmm0, xmm1
movsd qword [0x14021f5b0], xmm0
jmp 0x140082b4a
xor eax, eax
jmp 0x140082b88
lea rcx, [0x14021f5c0]
call fcn.140111b40
cmp dword [0x14021f5c0], 0xffffffff
jne 0x140082bf5
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x14021f5b8], rdx
lea rcx, [0x14021f5c0]
call fcn.140111bd8
jmp 0x140082bf5
lea rcx, [0x14021f5d0]
call fcn.140111b40
cmp dword [0x14021f5d0], 0xffffffff
jne 0x140082c1a
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x14021f5c8], rax
lea rcx, [0x14021f5d0]
call fcn.140111bd8
jmp 0x140082c1a
Function at 0x140086642
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
xor eax, eax
mov dword [rcx], eax
mov qword [rcx + 8], rax
mov ecx, dword [rdx]
mov dword [rsi], ecx
mov dword [rdx], eax
mov rbx, qword [rdx + 8]
mov qword [rdx + 8], rax
lea r14, [rbx + 1]
cmp r14, 2
jb 0x140086673
call fcn.1400713d0
cmp qword [rsi + 8], rbx
je 0x1400866a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x1400866b2
cmp r14, 2
jb 0x14008669d
mov qword [rsi + 8], rbx
call fcn.1400713d0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400713d0
mov rcx, qword [rsi + 8]
call fcn.140081d40
mov qword [rsi + 8], 0
jmp 0x14008668e

Function at 0x1400866ca
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov eax, dword [rdx]
mov dword [rcx], eax
mov dword [rdx], 0
mov rbx, qword [rdx + 8]
mov qword [rdx + 8], 0
lea r14, [rbx + 1]
cmp r14, 2
jb 0x1400866fb
call fcn.1400713d0
cmp qword [rsi + 8], rbx
je 0x14008672d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x14008673a
cmp r14, 2
jb 0x140086725
mov qword [rsi + 8], rbx
call fcn.1400713d0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400713d0
mov rcx, qword [rsi + 8]
call fcn.140081d40
mov qword [rsi + 8], 0
jmp 0x140086716

Function at 0x140086752
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov dword [rcx], 1
xor eax, eax
mov qword [rcx + 8], rax
mov r14, qword [rdx]
mov qword [rdx], rax
lea r15, [r14 + 1]
cmp r15, 2
jb 0x140086784
call fcn.1400713d0
cmp qword [rsi + 8], r14
je 0x1400867b6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x1400867d1
cmp r15, 2
jb 0x1400867ae
mov qword [rsi + 8], r14
call fcn.1400713d0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x1400867e9
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400713d0
mov rcx, qword [rsi + 8]
call fcn.140081d40
mov qword [rsi + 8], 0
jmp 0x14008679f
call fcn.1400713d0
mov rcx, qword [rdi]
call fcn.140081d40
mov qword [rdi], 0
jmp 0x1400867c2
Function at 0x140094170
Capabilities:
Encode data using base64

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rcx]
mov rbx, qword [rsi + 8]
sub rbx, rcx
sar rbx, 3
lea rdx, [rbx + 1]
mov rax, rdx
shr rax, 0x3d
jne 0x1400942b6
movabs rax, 0x1fffffffffffffff
mov r8, qword [rsi + 0x10]
sub r8, rcx
mov r14, r8
sar r14, 2
cmp r14, rdx
cmovbe r14, rdx
movabs rcx, 0x7ffffffffffffff8
cmp r8, rcx
cmovae r14, rax
test r14, r14
je 0x1400942af
cmp r14, rax
ja 0x1400942bb
lea rcx, [r14*8]
call fcn.1401119e0
shl rbx, 3
add rbx, rax
je 0x1400942c0
lea rax, [rax + r14*8]
mov rcx, qword [rdi]
mov qword [rdi], 0
mov qword [rbx], rcx
lea rcx, [rbx + 8]
mov rdi, qword [rsi]
mov rdx, qword [rsi + 8]
cmp rdx, rdi
jne 0x140094235
mov qword [rsi], rbx
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
test rdi, rdi
jne 0x140094292
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
mov r8, qword [rdx - 8]
mov qword [rdx - 8], 0
lea r9, [rdx - 8]
mov qword [rbx - 8], r8
add rbx, 0xfffffffffffffff8
mov rdx, r9
cmp r9, rdi
jne 0x140094235
mov rdi, qword [rsi]
mov r14, qword [rsi + 8]
mov qword [rsi], rbx
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
cmp r14, rdi
je 0x140094226
add r14, 0xfffffffffffffff8
test r14, r14
je 0x1400942ec
mov rcx, qword [r14]
mov qword [r14], 0
test rcx, rcx
jne 0x1400942a3
lea rax, [r14 - 8]
cmp r14, rdi
mov r14, rax
je 0x140094226
jmp 0x140094270
mov rcx, rdi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140111a1c
mov edx, 1
call fcn.140088a50
jmp 0x140094284
xor eax, eax
jmp 0x1400941ed
call fcn.14012ba40
call fcn.140150c28
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x23
call fcn.140152a0d
lea rax, str.null_pointer_given_to_destroy_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__loc___nullptr
mov r8d, 0x3f
call fcn.140152a0d
int3
Function at 0x140099204
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
test r8, r8
je 0x14009922f
xor ecx, ecx
lea r9, [0x1401edb80]
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 0x140099214
ret

Function at 0x14009a7a0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1402258a8]
mov ecx, dword [0x14021ad00]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14009a7d5
lea rcx, [0x140225898]
add rsp, 0x28
jmp fcn.14007f1b0
lea rcx, [0x1402258a8]
call fcn.140111b40
cmp dword [0x1402258a8], 0xffffffff
jne 0x14009a7c5
xorps xmm0, xmm0
movups xmmword [0x140225898], xmm0
lea rcx, [0x140225898]
xor edx, edx
call fcn.14007f240
lea rcx, [0x1402258a8]
call fcn.140111bd8
jmp 0x14009a7c5

Function at 0x14009b810
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x14009b839
xor eax, eax
xor r9d, r9d
nop word [rax + rax]
movzx r10d, byte [rdx + rax]
xor r10b, byte [rcx + rax]
or r9b, r10b
inc rax
cmp r8, rax
jne 0x14009b820
movzx eax, r9b
ret
xor eax, eax
ret

Function at 0x14009bfd0
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 0x14009c041
xor r11d, r11d
mov rdi, qword [r8 + r11*8]
mov rsi, qword [rcx + r11*8]
mov rbx, rsi
xor rbx, rdi
mov r14d, eax
lea rax, [rbx - 1]
mov r15, rsi
sub r15, rdi
xor r15, rsi
or r15, rbx
not rbx
and rax, rbx
sar rax, 0x3f
xor r15, rsi
sar r15, 0x3f
mov rsi, r15
not r15
and r15d, 1
or r15, rsi
mov rsi, rax
and r14d, esi
not rax
and rax, r15
or rax, r14
inc r11
cmp r10, r11
jne 0x14009bfeb
cmp rdx, r9
jb 0x14009c050
ja 0x14009c07c
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 0x14009c052
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 0x14009c048
xor r8d, r8d
or r8, qword [rcx + r9*8]
inc r9
cmp rdx, r9
jne 0x14009c07f
mov rcx, r8
not rcx
dec r8
and r8, rcx
sar r8, 0x3f
mov rcx, r8
and ecx, eax
not r8
and r8d, 1
or r8d, ecx
mov eax, r8d
jmp 0x14009c048
Function at 0x14009cf70
Capabilities:
Hash data using sha256

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rdi, rdx
mov rsi, rcx
cmp qword [rcx], rdx
je 0x14009cfa2
mov ecx, dword [rdi + 0x2c]
call fcn.14009b6d0
test rax, rax
je 0x14009d003
mov rbx, rax
mov rcx, qword [rsi + 8]
call fcn.14009b710
mov qword [rsi + 8], rbx
mov qword [rsi], rdi
mov rax, qword [rdi + 0x10]
lea rcx, [0x14018e9e0]
cmp rax, rcx
jne 0x14009cff8
mov rax, qword [rsi + 8]
xorps xmm0, xmm0
movups xmmword [rax + 0x5c], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x20], xmm0
movaps xmm0, xmmword [0x1401ee3c0]
movups xmmword [rax], xmm0
movaps xmm0, xmmword [0x1401ee3d0]
movups xmmword [rax + 0x10], xmm0
mov dword [rax + 0x6c], 0x20
mov esi, 1
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, rsi
call qword [case.0x140173f30.0]
jmp 0x14009cfe9
mov dword [rsp + 0x20], 0xd2
lea r9, str....._third_party_boringssl_srccrypto_fipsmoduledigestdigest.c
xor esi, esi
mov ecx, 0x1d
xor edx, edx
mov r8d, 0x41
call fcn.14019e990
jmp 0x14009cfee
Function at 0x14009f260
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x1402273e8]
cmp rsi, 1
jbe 0x14009f283
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14007f1f0
lea rcx, [0x1402273e8]
call fcn.140071290
test al, al
je 0x14009f2c8
xorps xmm0, xmm0
movups xmmword [0x1402273f0], xmm0
lea rdi, [0x1402273e8]
lea rsi, [0x1402273f0]
mov rcx, rsi
xor edx, edx
call fcn.14007f240
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.140071350
jmp 0x14009f273
mov rsi, qword [0x1402273e8]
jmp 0x14009f273

Function at 0x1400a1310
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov rdi, r8
mov rsi, rdx
mov r12, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0xd0]
mov rax, qword [0x14020b038]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r15, rbx
shr r15, 0x20
movzx eax, r9b
lea ebp, [rax + rax]
add ebp, 4
mov qword [rsp + 0x20], r12
mov rcx, r8
mov edx, ebp
mov r8d, r15d
mov r9d, ebx
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r14, rax
test rax, rax
je 0x1400a13d7
movaps xmm0, xmmword [0x1401dfd10]
lea rdi, [rsp + 0x30]
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
mov r8d, 0x30
mov rcx, r14
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rcx, qword [rdi + 0x18]
sub rcx, r14
add rcx, qword [rdi + 8]
test rax, rax
cmove rcx, rax
mov byte [rsi], 1
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], r14
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140113000
mov rax, rsi
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.140107ee0
mov qword [rsp + 0x20], r12
mov rcx, rdi
mov edx, ebp
mov r8d, r15d
mov r9d, ebx
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r14, rax
test rax, rax
jne 0x1400a1372
call fcn.140107ee0
mov byte [rsi], 0
jmp 0x1400a13b8

Function at 0x1400a7050
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x1402276b8]
cmp rsi, 1
jbe 0x1400a7073
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14007f1f0
lea rcx, [0x1402276b8]
call fcn.140071290
test al, al
je 0x1400a70b8
xorps xmm0, xmm0
movups xmmword [0x1402276c0], xmm0
lea rdi, [0x1402276b8]
lea rsi, [0x1402276c0]
mov rcx, rsi
xor edx, edx
call fcn.14007f240
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.140071350
jmp 0x1400a7063
mov rsi, qword [0x1402276b8]
jmp 0x1400a7063
Function at 0x1400a7560
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x14020b038]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x1400f1140]
mov qword [rsp + 0x20], rax
lea rcx, [0x140227720]
lea rdx, [0x1400f10d0]
lea r8, [rsp + 0x20]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1400a75f4
cmp dword [0x140227728], 0
jne 0x1400a75f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x14022772c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x1400a75f0
movsxd rax, esi
mov rsi, qword [rdi + rax*8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140113000
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x1400a75d8
call fcn.14012ba40
int3

Function at 0x1400a7640
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x1400a767c
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 0x1400a7686
add rdi, rbx
sub rsi, rbx
jne 0x1400a765a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.14012ba40
int3
Function at 0x1400abd90
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1402278a8]
mov ecx, dword [0x14021ad00]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400abdf6
lea rcx, [0x140227898]
xor edx, edx
call fcn.14007f1f0
mov eax, dword [0x1402278c0]
mov ecx, dword [0x14021ad00]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400abe31
lea rcx, [0x1402278b0]
xor edx, edx
add rsp, 0x28
jmp fcn.14007f1f0
lea rcx, [0x1402278a8]
call fcn.140111b40
cmp dword [0x1402278a8], 0xffffffff
jne 0x1400abdb5
xorps xmm0, xmm0
movups xmmword [0x140227898], xmm0
lea rcx, [0x140227898]
xor edx, edx
call fcn.14007f240
lea rcx, [0x1402278a8]
call fcn.140111bd8
jmp 0x1400abdb5
lea rcx, [0x1402278c0]
call fcn.140111b40
cmp dword [0x1402278c0], 0xffffffff
jne 0x1400abde4
xorps xmm0, xmm0
movups xmmword [0x1402278b0], xmm0
lea rcx, [0x1402278b0]
xor edx, edx
call fcn.14007f240
lea rcx, [0x1402278c0]
call fcn.140111bd8
jmp 0x1400abde4
Function at 0x1400b30d0
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
cmp rdx, 1
je 0x1400b3112
mov rdi, rdx
lea rax, [rdx - 1]
test rdx, rax
je 0x1400b30f7
mov rcx, rdi
call fcn.1400664bc
mov rdi, rax
mov rbx, qword [rsi + 8]
cmp rdi, rbx
jbe 0x1400b3119
mov rcx, rsi
mov rdx, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1400b3220
mov edi, 2
jmp 0x1400b30f7
jae 0x1400b320f
mov rax, qword [rsi + 0x18]
test rax, rax
js 0x1400b312f
cvtsi2ss xmm0, rax
jmp 0x1400b3144
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rsi + 0x20]
call fcn.140130af0
cvttss2si rax, xmm0
mov rcx, rax
subss xmm0, dword [0x1401d3bc8]
cvttss2si rdx, xmm0
sar rcx, 0x3f
and rdx, rcx
or rdx, rax
cmp rbx, 3
jb 0x1400b31f7
mov rax, rbx
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, rbx
sub rax, rcx
movabs rcx, 0x3333333333333333
mov r8, rax
shr r8, 2
and rax, rcx
and r8, rcx
add r8, rax
mov rax, r8
shr rax, 4
add rax, r8
movabs rcx, 0xf0f0f0f0f0f0f0f
and rcx, rax
movabs rax, 0x101010101010101
imul rax, rcx
shr rax, 0x38
cmp eax, 1
ja 0x1400b31f7
lea rax, [rdx - 1]
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
cmp rdx, 2
cmovb rax, rdx
jmp 0x1400b31ff
mov rcx, rdx
call fcn.1400664bc
cmp rdi, rax
cmovbe rdi, rax
cmp rdi, rbx
jb 0x1400b3100
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400b3b00
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 0x1400b3bfe
movabs rax, 0x154442bd4
movq xmm4, rax
movdqa xmm5, xmmword [0x1401e50f0]
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 0x1400b3b70
movabs rax, 0x1751997d0
movq xmm4, rax
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm3
movdqa xmm3, xmmword [0x1401e5100]
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 0x1400b3c8d
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 0x1400b3c63
movdqa xmm1, xmmword [0x1401e5100]
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 [0x1401e5110], 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