joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140081410
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140081441
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x1400814bb
mov rdi, r14
mov rcx, rbx
call fcn.1400776c0
test rax, rax
jle 0x140081493
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.140282ac0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1400814ab
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1400814b3
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140081455
sub r14, rdi
jmp 0x14008159f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x1400814d2
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400814d4
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140081506
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140282ac0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14008159c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140081541
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x14008157d
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14028c3d4
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14008159c
cmp rbp, rax
ja 0x140081550
test rbp, rbp
je 0x14008159c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14028c3d4
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140081670
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov r14, r8
mov rbp, rdx
mov rdi, rcx
mov rbx, r8
je 0x140081708
test r8, r8
jle 0x140081700
nop word [rax + rax]
mov rcx, rdi
call fcn.140077f70
test rax, rax
jle 0x1400816de
mov rcx, qword [rdi + 0x40]
cmp rbx, rax
mov rsi, rbx
mov rdx, rbp
cmovge rsi, rax
mov r8, rsi
mov rcx, qword [rcx]
call fcn.140282ac0
mov rax, qword [rdi + 0x58]
sub rbx, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
jmp 0x1400816f8
mov rax, qword [rdi]
mov rcx, rdi
movzx edx, byte [rbp]
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140081700
dec rbx
mov esi, 1
add rbp, rsi
test rbx, rbx
jg 0x1400816a0
sub r14, rbx
mov rax, r14
jmp 0x140081786
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], r15
mov r9, qword [rax]
test r9, r9
je 0x140081721
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140081723
xor ecx, ecx
movsxd rsi, ecx
test r14, r14
jle 0x14008177b
test ecx, ecx
jle 0x14008175c
cmp r14, rsi
mov rcx, r9
cmovl rsi, r14
mov r8, rsi
call fcn.140282ac0
mov rax, qword [rdi + 0x58]
add rbp, rsi
sub r14, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
test r14, r14
jle 0x14008177b
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14008177b
mov r8, r14
mov edx, 1
mov rcx, rbp
call fcn.14028c93c
sub r14, rax
mov r15, qword [rsp + 0x40]
sub rbx, r14
mov rax, rbx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x140085230
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
cmp qword [r8 + 0x18], 0x10
mov rbx, rdx
mov rdx, r8
mov rdi, rcx
jb 0x14008524d
mov rdx, qword [r8]
mov r11, qword [r8 + 0x10]
xor r10d, r10d
movabs r9, 0xcbf29ce484222325
test r11, r11
je 0x140085284
movabs rcx, 0x100000001b3
nop dword [rax]
movzx eax, byte [r10 + rdx]
inc r10
xor r9, rax
imul r9, rcx
cmp r10, r11
jb 0x140085270
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400835e0
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x1400852ab
mov qword [rbx], rcx
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rax, qword [rdi + 8]
mov qword [rbx], rax
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1400852c0
Capabilities:
Hash data using fnv

Disassembly:
movzx r9d, byte [r8]
mov r10, rcx
movabs rcx, 0x100000001b3
movabs rax, 0xcbf29ce484222325
xor r9, rax
mov r11, rdx
movzx eax, byte [r8 + 1]
mov rdx, qword [r10 + 0x30]
imul r9, rcx
xor r9, rax
movzx eax, byte [r8 + 2]
imul r9, rcx
xor r9, rax
movzx eax, byte [r8 + 3]
imul r9, rcx
xor r9, rax
movzx eax, byte [r8 + 4]
imul r9, rcx
xor r9, rax
movzx eax, byte [r8 + 5]
imul r9, rcx
xor r9, rax
movzx eax, byte [r8 + 6]
imul r9, rcx
xor r9, rax
movzx eax, byte [r8 + 7]
imul r9, rcx
xor r9, rax
imul r9, rcx
and rdx, r9
mov r9, qword [r10 + 8]
shl rdx, 4
add rdx, qword [r10 + 0x18]
mov rax, qword [rdx + 8]
cmp rax, r9
je 0x14008537e
mov rcx, qword [r8]
mov rdx, qword [rdx]
cmp rcx, qword [rax + 0x10]
je 0x140085380
cmp rax, rdx
je 0x14008537e
mov rax, qword [rax + 8]
cmp rcx, qword [rax + 0x10]
jne 0x140085361
test rax, rax
cmove rax, r9
mov qword [r11], rax
mov rax, r11
ret
xor eax, eax
test rax, rax
cmove rax, r9
mov qword [r11], rax
mov rax, r11
ret
Function at 0x1400914b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rdi, rcx
add rdx, 1
mov rbx, qword [rcx + 0x38]
xorps xmm0, xmm0
js 0x1400914d5
cvtsi2ss xmm0, rdx
jmp 0x1400914ea
mov rax, rdx
and edx, 1
shr rax, 1
or rax, rdx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rcx]
call fcn.1402913f8
movss xmm1, dword [0x1402c69e0]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x140091518
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x140091518
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rbx, rcx
jae 0x14009154a
cmp rbx, 0x200
jae 0x140091547
lea rbx, [rbx*8]
cmp rbx, rcx
jae 0x14009154a
mov rbx, rcx
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400907b0
Function at 0x140095020
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x1403b9868]
xor rax, rsp
mov qword [rbp + 0x1c8], rax
mov rsi, r8
mov rdi, rdx
mov r14, rcx
lea rdx, [rcx + 0x10]
lea rcx, [rsp + 0x70]
call fcn.1400bb7d0
mov rbx, rax
mov rdx, rax
lea rcx, [rbp + 0xf0]
call fcn.1400bb720
movups xmm0, xmmword [rdi]
movaps xmmword [rbp + 0x1a0], xmm0
mov rcx, qword [rsi]
mov qword [rbp + 0x1b0], rcx
lea rcx, [rbx + 0x50]
call fcn.1400c11c0
nop
lea rdx, [rbp + 0xf0]
lea rcx, [rbp + 0x20]
call fcn.1400bb720
movaps xmm0, xmmword [rbp + 0x1a0]
movaps xmmword [rbp + 0xd0], xmm0
mov rax, qword [rbp + 0x1b0]
mov qword [rbp + 0xe0], rax
lea rsi, [r14 + 8]
mov r14, qword [r14]
mov rbx, qword [rsi]
mov ecx, dword [0x1403e78b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400950f4
cmp qword [rax], rbx
je 0x140095237
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400950e2
lea rax, [rbp + 0x20]
mov qword [rsp + 0x48], rax
lea rdx, [rbp + 0x70]
mov ecx, 0x100
call fcn.140062870
mov rdi, rax
xor r15d, r15d
mov qword [rax + 0x20], r15
lea rax, [fcn.140146990]
mov qword [rdi + 0x28], rax
mov qword [rdi], r15
mov qword [rdi + 8], r15
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r15
mov dword [rdi + 0x30], r15d
lea rdx, [rbp + 0x20]
lea rcx, [rdi + 0x38]
call fcn.1400bb720
movaps xmm0, xmmword [rbp + 0xd0]
movups xmmword [rdi + 0xe8], xmm0
mov rax, qword [rbp + 0xe0]
mov qword [rdi + 0xf8], rax
mov r8, rdi
mov rdx, rsi
mov rcx, r14
call fcn.140156110
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
test al, al
je 0x1400951f5
mov rax, qword [rsi]
mov qword [rsp + 0x30], rax
mov ecx, dword [0x1403e78b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x30]
mov ecx, dword [0x1403e78b8]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rax, qword [r14 + 0x28]
mov qword [rsp + 0x20], rax
mov rax, qword [rsi]
mov qword [rsp + 0x28], rax
call fcn.14018e9e0
xor r9d, r9d
lea r8, [rsp + 0x60]
mov rdx, rdi
mov rcx, qword [r14 + 0x28]
call fcn.140146990
nop
lea rcx, [rsp + 0x20]
call fcn.1400c5a90
nop
mov rdx, qword [rsp + 0x40]
mov ecx, dword [0x1403e78b8]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rcx, [rbp + 0x70]
call fcn.1400c11c0
nop
lea rcx, [rbp + 0x140]
call fcn.1400c11c0
mov rcx, qword [rbp + 0x1c8]
xor rcx, rsp
call fcn.1402806f0
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
cmp qword [rax + 8], 0
je 0x1400950f4
nop
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x20]
call fcn.14009d550
nop
nop
jmp 0x1400951f5
Function at 0x14009c050
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
movsxd r8, dword [rcx + 0x28]
lea rdx, [rcx + 0x30]
add rsp, 0x28
jmp 0x140111030
mov qword [rsp + 0x10], rdx
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rcx, qword [rax + 0x28]
mov rbx, qword [rcx + 0x10]
mov ecx, dword [0x1403e78ac]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140111064
cmp qword [rax], rbx
je 0x1401110ab
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140111056
lea rdx, [rsp + 0x38]
mov ecx, 0x40
call fcn.140062870
xor edx, edx
lea rcx, [0x14013c400]
mov qword [rax + 0x20], rdx
mov qword [rax + 0x28], rcx
mov qword [rax], rdx
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rdx
mov dword [rax + 0x30], edx
lock inc dword [rbx + 0x30]
mov rdx, rax
mov rcx, rbx
call fcn.140064ee0
add rsp, 0x20
pop rbx
ret
cmp qword [rax + 8], 0
je 0x140111064
lea rdx, [rsp + 0x38]
nop
lea rcx, [rsp + 0x38]
call fcn.14009aea0
nop
add rsp, 0x20
pop rbx
ret
Function at 0x14009c080
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
lea rdx, [rcx + 0x20]
mov rcx, qword [rcx]
mov rcx, qword [rcx + 0x28]
add rsp, 0x28
jmp 0x1400ae680
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [rdx]
mov qword [rsp + 0x20], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov rax, qword [rdx + 0x10]
test rax, rax
je 0x1400ae6a8
lock inc dword [rax + 8]
mov rax, qword [rdx + 8]
mov qword [rsp + 0x28], rax
mov rax, qword [rdx + 0x10]
mov qword [rsp + 0x30], rax
mov rax, qword [rdx + 0x18]
mov qword [rsp + 0x38], rax
movdqu xmmword [rsp + 0x40], xmm0
mov rax, qword [rdx + 0x28]
test rax, rax
je 0x1400ae6d6
lock inc dword [rax + 8]
mov rax, qword [rdx + 0x20]
mov qword [rsp + 0x40], rax
mov rax, qword [rdx + 0x28]
mov qword [rsp + 0x48], rax
mov rbx, qword [rcx + 0x10]
mov ecx, dword [0x1403e78ac]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400ae712
nop dword [rax]
cmp qword [rax], rbx
je 0x1400ae81f
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400ae700
lea rdx, [rsp + 0x20]
mov ecx, 0x68
call fcn.140062870
mov rdx, rax
xor r8d, r8d
mov qword [rax + 0x20], r8
lea rax, [0x14013b530]
mov qword [rdx + 0x28], rax
mov qword [rdx], r8
mov qword [rdx + 8], r8
mov qword [rdx + 0x10], r8
mov qword [rdx + 0x18], r8
mov dword [rdx + 0x30], r8d
mov rcx, qword [rsp + 0x20]
mov qword [rdx + 0x38], rcx
mov qword [rdx + 0x40], r8
mov qword [rdx + 0x48], r8
mov rax, qword [rsp + 0x28]
mov qword [rdx + 0x40], rax
mov rax, qword [rsp + 0x30]
mov qword [rdx + 0x48], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov rax, qword [rsp + 0x38]
mov qword [rdx + 0x50], rax
mov qword [rdx + 0x58], r8
mov qword [rdx + 0x60], r8
mov rax, qword [rsp + 0x40]
mov qword [rdx + 0x58], rax
mov rax, qword [rsp + 0x48]
mov qword [rdx + 0x60], rax
movdqu xmmword [rsp + 0x40], xmm0
lock inc dword [rbx + 0x30]
mov rcx, rbx
call fcn.140064ee0
nop
mov edi, 0xffffffff
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x1400ae7e3
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400ae7e3
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400ae7e3
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x1400ae814
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400ae814
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1400ae814
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
cmp qword [rax + 8], 0
je 0x1400ae712
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x20]
call fcn.14009aac0
nop
nop
jmp 0x1400ae7ab
Function at 0x14009c0e0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
lea rdx, [rcx + 0x20]
mov rcx, qword [rcx]
mov rcx, qword [rcx + 0x28]
add rsp, 0x28
jmp 0x1400ae4b0
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xa0
mov rax, qword [0x1403b9868]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rbx, rcx
lea rcx, [rsp + 0x20]
call fcn.1400b6a90
nop
mov rdi, qword [rbx + 0x10]
mov ecx, dword [0x1403e78ac]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor esi, esi
test rax, rax
je 0x1400ae512
nop dword [rax]
cmp qword [rax], rdi
je 0x1400ae658
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400ae500
lea rdx, [rsp + 0x20]
mov ecx, 0x98
call fcn.140062870
mov rbx, rax
mov qword [rax + 0x20], rsi
lea rax, [0x1401382a0]
mov qword [rbx + 0x28], rax
mov qword [rbx], rsi
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
mov dword [rbx + 0x30], esi
mov qword [rbx + 0x38], rsi
mov qword [rbx + 0x40], rsi
mov rcx, qword [rsp + 0x20]
mov qword [rbx + 0x38], rcx
mov rax, qword [rsp + 0x28]
mov qword [rbx + 0x40], rax
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x20], xmm0
mov qword [rbx + 0x48], rsi
mov qword [rbx + 0x50], rsi
mov rax, qword [rsp + 0x30]
mov qword [rbx + 0x48], rax
mov rax, qword [rsp + 0x38]
mov qword [rbx + 0x50], rax
movdqa xmmword [rsp + 0x30], xmm0
lea rcx, [rbx + 0x58]
mov qword [rcx + 0x38], rsi
lea rdx, [rsp + 0x40]
call fcn.14012edf0
lock inc dword [rdi + 0x30]
mov rdx, rbx
mov rcx, rdi
call fcn.140064ee0
nop
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400ae5ca
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rsp + 0x78], rsi
mov edi, 0xffffffff
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x1400ae602
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400ae602
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400ae602
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, qword [rsp + 0x28]
test rbx, rbx
je 0x1400ae633
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400ae633
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1400ae633
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1402806f0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
cmp qword [rax + 8], rsi
je 0x1400ae512
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x20]
call fcn.140099fa0
nop
nop
jmp 0x1400ae5aa
Function at 0x1400ac660
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, 0x9f8
call fcn.1402802bc
mov qword [rsp + 0x38], rax
mov r8, rax
test rax, rax
je 0x1400ac74c
xor eax, eax
lea rcx, [0x1402c7088]
mov qword [r8 + 8], rax
mov r9d, 1
mov qword [r8 + 0x10], rax
mov qword [r8 + 0x18], rbx
mov qword [r8 + 0x20], rax
mov qword [r8], rcx
mov qword [r8 + 0x28], rbx
mov dword [r8 + 0x30], 0x1571
mov qword [r8 + 0x9f0], r9
nop dword [rax]
mov edx, dword [r8 + r9*4 + 0x2c]
shr edx, 0x1e
xor edx, dword [r8 + r9*4 + 0x2c]
imul ecx, edx, 0x6c078965
add ecx, r9d
mov dword [r8 + r9*4 + 0x30], ecx
mov r9, qword [r8 + 0x9f0]
inc r9
mov qword [r8 + 0x9f0], r9
cmp r9, 0x270
jb 0x1400ac6c0
mov edx, dword [r8 + 0x9ec]
xor edx, dword [r8 + 0x660]
mov r9d, dword [r8 + 0x30]
jge 0x1400ac716
xor edx, 0x1908b0df
add edx, edx
or edx, 1
jmp 0x1400ac718
add edx, edx
mov ecx, r9d
xor ecx, edx
btr ecx, 0x1f
xor ecx, r9d
mov dword [r8 + 0x30], ecx
cmp dword [r8 + rax*4 + 0x30], 0
jne 0x1400ac743
inc rax
cmp rax, 0x270
jb 0x1400ac728
mov dword [r8 + 0x30], 0x80000000
mov rax, r8
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
ret
Function at 0x1400ae4b0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
lea rdx, [rcx + 0x20]
mov rcx, qword [rcx]
mov rcx, qword [rcx + 0x28]
add rsp, 0x28
jmp 0x1400ae4b0
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xa0
mov rax, qword [0x1403b9868]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rbx, rcx
lea rcx, [rsp + 0x20]
call fcn.1400b6a90
nop
mov rdi, qword [rbx + 0x10]
mov ecx, dword [0x1403e78ac]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor esi, esi
test rax, rax
je 0x1400ae512
nop dword [rax]
cmp qword [rax], rdi
je 0x1400ae658
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400ae500
lea rdx, [rsp + 0x20]
mov ecx, 0x98
call fcn.140062870
mov rbx, rax
mov qword [rax + 0x20], rsi
lea rax, [0x1401382a0]
mov qword [rbx + 0x28], rax
mov qword [rbx], rsi
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
mov dword [rbx + 0x30], esi
mov qword [rbx + 0x38], rsi
mov qword [rbx + 0x40], rsi
mov rcx, qword [rsp + 0x20]
mov qword [rbx + 0x38], rcx
mov rax, qword [rsp + 0x28]
mov qword [rbx + 0x40], rax
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x20], xmm0
mov qword [rbx + 0x48], rsi
mov qword [rbx + 0x50], rsi
mov rax, qword [rsp + 0x30]
mov qword [rbx + 0x48], rax
mov rax, qword [rsp + 0x38]
mov qword [rbx + 0x50], rax
movdqa xmmword [rsp + 0x30], xmm0
lea rcx, [rbx + 0x58]
mov qword [rcx + 0x38], rsi
lea rdx, [rsp + 0x40]
call fcn.14012edf0
lock inc dword [rdi + 0x30]
mov rdx, rbx
mov rcx, rdi
call fcn.140064ee0
nop
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400ae5ca
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rsp + 0x78], rsi
mov edi, 0xffffffff
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x1400ae602
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400ae602
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400ae602
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, qword [rsp + 0x28]
test rbx, rbx
je 0x1400ae633
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400ae633
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1400ae633
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1402806f0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
cmp qword [rax + 8], rsi
je 0x1400ae512
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x20]
call fcn.140099fa0
nop
nop
jmp 0x1400ae5aa
Function at 0x1400ae680
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
lea rdx, [rcx + 0x20]
mov rcx, qword [rcx]
mov rcx, qword [rcx + 0x28]
add rsp, 0x28
jmp 0x1400ae680
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [rdx]
mov qword [rsp + 0x20], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov rax, qword [rdx + 0x10]
test rax, rax
je 0x1400ae6a8
lock inc dword [rax + 8]
mov rax, qword [rdx + 8]
mov qword [rsp + 0x28], rax
mov rax, qword [rdx + 0x10]
mov qword [rsp + 0x30], rax
mov rax, qword [rdx + 0x18]
mov qword [rsp + 0x38], rax
movdqu xmmword [rsp + 0x40], xmm0
mov rax, qword [rdx + 0x28]
test rax, rax
je 0x1400ae6d6
lock inc dword [rax + 8]
mov rax, qword [rdx + 0x20]
mov qword [rsp + 0x40], rax
mov rax, qword [rdx + 0x28]
mov qword [rsp + 0x48], rax
mov rbx, qword [rcx + 0x10]
mov ecx, dword [0x1403e78ac]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400ae712
nop dword [rax]
cmp qword [rax], rbx
je 0x1400ae81f
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400ae700
lea rdx, [rsp + 0x20]
mov ecx, 0x68
call fcn.140062870
mov rdx, rax
xor r8d, r8d
mov qword [rax + 0x20], r8
lea rax, [0x14013b530]
mov qword [rdx + 0x28], rax
mov qword [rdx], r8
mov qword [rdx + 8], r8
mov qword [rdx + 0x10], r8
mov qword [rdx + 0x18], r8
mov dword [rdx + 0x30], r8d
mov rcx, qword [rsp + 0x20]
mov qword [rdx + 0x38], rcx
mov qword [rdx + 0x40], r8
mov qword [rdx + 0x48], r8
mov rax, qword [rsp + 0x28]
mov qword [rdx + 0x40], rax
mov rax, qword [rsp + 0x30]
mov qword [rdx + 0x48], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov rax, qword [rsp + 0x38]
mov qword [rdx + 0x50], rax
mov qword [rdx + 0x58], r8
mov qword [rdx + 0x60], r8
mov rax, qword [rsp + 0x40]
mov qword [rdx + 0x58], rax
mov rax, qword [rsp + 0x48]
mov qword [rdx + 0x60], rax
movdqu xmmword [rsp + 0x40], xmm0
lock inc dword [rbx + 0x30]
mov rcx, rbx
call fcn.140064ee0
nop
mov edi, 0xffffffff
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x1400ae7e3
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400ae7e3
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400ae7e3
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x1400ae814
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400ae814
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1400ae814
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
cmp qword [rax + 8], 0
je 0x1400ae712
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x20]
call fcn.14009aac0
nop
nop
jmp 0x1400ae7ab