joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400055fc
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, r8d
mov rbx, rdx
mov rbp, rcx
test r9d, r9d
je 0x140005673
mov rcx, qword [0x140012388]
add esi, 2
xor edx, edx
lea eax, [rsi + 1]
movsxd r8, eax
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x140005673
mov rcx, rax
test rbx, rbx
je 0x140005664
mov rdx, rbx
call sub.msvcrt.dll_wcscpy
lea rdx, [0x14000bb44]
mov rcx, rdi
call sub.msvcrt.dll_wcscat
jmp 0x140005670
lea rdx, [0x14000bb44]
call sub.msvcrt.dll_wcscpy
mov rbx, rdi
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
mov r8d, esi
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
jne 0x1400056fd
mov eax, dword [reloc.WS2_32.dll_bind]
cmp eax, 2
je 0x1400056c8
cmp eax, 0x18
je 0x1400056be
and qword [rsp + 0x20], 0
lea r8d, [rsi + rsi]
lea r9, [rsp + 0x58]
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1400056fd
mov rcx, rbx
call fcn.140009f70
jmp 0x1400056d0
mov rcx, rbx
call fcn.140009bd0
mov rcx, rax
mov rbx, rax
call sub.msvcrt.dll_strlen
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
mov r8, rax
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call fcn.140009f60
test rdi, rdi
je 0x140005714
mov rcx, qword [0x140012388]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov r9d, edx
mov r10, rcx
test rcx, rcx
jne 0x1400063da
mov eax, r8d
jmp 0x140006448
not r8d
lea rdi, [0x14000bb50]
cmp r9d, 8
jb 0x14000641e
mov r11, r9
shr r11, 3
mov ebx, 8
movzx ecx, byte [r10]
mov eax, r8d
inc r10
xor rcx, rax
shr eax, 8
movzx edx, cl
mov r8d, dword [rdi + rdx*4]
xor r8d, eax
dec rbx
jne 0x1400063f6
add r9d, 0xfffffff8
dec r11
jne 0x1400063f1
test r9d, r9d
je 0x140006442
movzx ecx, byte [r10]
mov eax, r8d
inc r10
xor rcx, rax
shr eax, 8
movzx edx, cl
mov r8d, dword [rdi + rdx*4]
xor r8d, eax
dec r9d
jne 0x140006423
not r8d
movsxd rax, r8d
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
Function at 0x140006aa0
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
mov r15d, dword [rsp + 0x50]
xor eax, eax
mov r14d, r9d
mov r13, rcx
lea rbp, [r8 + 8]
lea r12, [0x1400104c0]
lea edi, [rax + 0x19]
mov r11d, eax
nop dword [rax + rax]
mov rbx, rbp
mov esi, 8
nop dword [rax + rax]
mov r10d, dword [rbx - 8]
mov r9d, r11d
shr r9d, 0x10
xor r9d, r11d
mov edx, r9d
and r9d, r15d
and edx, r14d
mov ecx, edx
shl ecx, 0x10
xor r10d, ecx
mov ecx, r9d
shl ecx, 0x10
xor r10d, edx
mov edx, dword [rbx - 4]
xor edx, ecx
xor r10d, r11d
xor edx, r9d
xor edx, r11d
ror edx, 4
mov r9d, edx
shr rdx, 0x18
and edx, 0x3f
mov ecx, r9d
mov r8d, dword [r12 + rdx*4 + 0x700]
mov edx, dword [rbx + 4]
shr rcx, 0x10
and ecx, 0x3f
or r8d, dword [r12 + rcx*4 + 0x500]
mov ecx, r9d
and r9d, 0x3f
shr rcx, 8
and ecx, 0x3f
or r8d, dword [r12 + rcx*4 + 0x300]
mov ecx, r10d
shr rcx, 0x18
and ecx, 0x3f
or r8d, dword [r12 + rcx*4 + 0x600]
mov ecx, r10d
shr rcx, 0x10
and ecx, 0x3f
or r8d, dword [r12 + rcx*4 + 0x400]
mov ecx, r10d
and r10d, 0x3f
shr rcx, 8
and ecx, 0x3f
or r8d, dword [r12 + rcx*4 + 0x200]
or r8d, dword [r12 + r9*4 + 0x100]
or r8d, dword [r12 + r10*4]
xor eax, r8d
mov r9d, eax
shr r9d, 0x10
xor r9d, eax
mov ecx, r9d
and r9d, r15d
and ecx, r14d
mov r10d, ecx
shl r10d, 0x10
xor r10d, ecx
mov ecx, r9d
shl ecx, 0x10
xor r10d, eax
xor r10d, dword [rbx]
xor edx, ecx
xor edx, r9d
xor edx, eax
ror edx, 4
mov r9d, edx
shr rdx, 0x18
and edx, 0x3f
mov ecx, r9d
mov r8d, dword [r12 + rdx*4 + 0x700]
shr rcx, 0x10
and ecx, 0x3f
or r8d, dword [r12 + rcx*4 + 0x500]
mov ecx, r9d
shr rcx, 8
and ecx, 0x3f
or r8d, dword [r12 + rcx*4 + 0x300]
mov ecx, r10d
shr rcx, 0x18
and ecx, 0x3f
or r8d, dword [r12 + rcx*4 + 0x600]
mov ecx, r10d
and r9d, 0x3f
shr rcx, 0x10
lea rbx, [rbx + 0x10]
and ecx, 0x3f
or r8d, dword [r12 + rcx*4 + 0x400]
mov ecx, r10d
and r10d, 0x3f
shr rcx, 8
and ecx, 0x3f
or r8d, dword [r12 + rcx*4 + 0x200]
or r8d, dword [r12 + r9*4 + 0x100]
or r8d, dword [r12 + r10*4]
xor r11d, r8d
dec rsi
jne 0x140006af0
mov r8d, eax
mov eax, r11d
mov r11d, r8d
dec rdi
jne 0x140006ae0
ror eax, 1
mov r12, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov ecx, eax
shr ecx, 1
ror r8d, 1
xor ecx, r8d
and ecx, 0x55555555
xor r8d, ecx
add ecx, ecx
xor eax, ecx
mov ecx, r8d
shr ecx, 8
xor ecx, eax
and ecx, 0xff00ff
xor eax, ecx
shl ecx, 8
xor r8d, ecx
mov ecx, eax
shr ecx, 2
xor ecx, r8d
and ecx, 0x33333333
xor r8d, ecx
lea ecx, [rcx*4]
xor eax, ecx
mov ecx, r8d
shr ecx, 0x10
xor ecx, eax
movzx edx, cx
xor eax, edx
shl edx, 0x10
xor r8d, edx
mov edx, eax
shr edx, 4
xor edx, r8d
and edx, 0xf0f0f0f
mov ecx, edx
shl edx, 4
xor ecx, r8d
xor edx, eax
xor eax, eax
mov dword [r13], ecx
mov dword [r12], edx
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140007ce0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.140007f10
xor r10d, r10d
lea edx, [rax*4]
mov r11d, eax
movsxd r9, edx
test edx, edx
jle 0x140007d59
lea r8, [rbx + 8]
lea rcx, [rbx + 8]
lea r8, [r8 + r9*4]
nop
mov eax, dword [r8 - 8]
mov edx, dword [rcx - 8]
add r10, 4
mov dword [rcx - 8], eax
mov eax, dword [r8 - 4]
mov dword [r8 - 8], edx
mov edx, dword [rcx - 4]
mov dword [rcx - 4], eax
mov eax, dword [r8]
mov dword [r8 - 4], edx
mov edx, dword [rcx]
mov dword [rcx], eax
mov eax, dword [r8 + 4]
mov dword [r8], edx
mov edx, dword [rcx + 4]
mov dword [rcx + 4], eax
sub r9, 4
mov dword [r8 + 4], edx
lea r8, [r8 - 0x10]
lea rcx, [rcx + 0x10]
cmp r10, r9
jl 0x140007d10
cmp r11d, 1
jle 0x140007efd
mov qword [rsp + 0x30], rdi
add rbx, 2
lea r10d, [r11 - 1]
lea rdi, [0x140000000]
nop word [rax + rax]
mov r8d, dword [rbx + 0xe]
lea rbx, [rbx + 0x10]
mov eax, r8d
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0xcf50]
movzx eax, byte [rbx - 1]
movzx ecx, byte [rdi + rax*4 + 0xcf50]
mov r9d, dword [rdi + rdx*4 + 0xd350]
movzx eax, r8b
xor r9d, dword [rdi + rcx*4 + 0xdb50]
movzx ecx, byte [rdi + rax*4 + 0xcf50]
movzx eax, byte [rbx]
xor r9d, dword [rdi + rcx*4 + 0xdf50]
movzx ecx, byte [rdi + rax*4 + 0xcf50]
movzx eax, byte [rbx + 3]
movzx edx, byte [rdi + rax*4 + 0xcf50]
xor r9d, dword [rdi + rcx*4 + 0xd750]
movzx eax, byte [rbx + 4]
movzx ecx, byte [rdi + rax*4 + 0xcf50]
mov r8d, dword [rdi + rdx*4 + 0xdb50]
mov dword [rbx - 2], r9d
xor r8d, dword [rdi + rcx*4 + 0xd750]
mov r9d, dword [rbx + 2]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0xcf50]
movzx eax, r9b
mov r9d, dword [rbx + 6]
xor r8d, dword [rdi + rcx*4 + 0xd350]
movzx ecx, byte [rdi + rax*4 + 0xcf50]
movzx eax, byte [rbx + 7]
xor r8d, dword [rdi + rcx*4 + 0xdf50]
movzx edx, byte [rdi + rax*4 + 0xcf50]
movzx eax, byte [rbx + 8]
movzx ecx, byte [rdi + rax*4 + 0xcf50]
mov dword [rbx + 2], r8d
mov r8d, dword [rdi + rdx*4 + 0xdb50]
xor r8d, dword [rdi + rcx*4 + 0xd750]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0xcf50]
movzx eax, r9b
mov r9d, dword [rbx + 0xa]
xor r8d, dword [rdi + rcx*4 + 0xd350]
movzx ecx, byte [rdi + rax*4 + 0xcf50]
movzx eax, byte [rbx + 0xb]
xor r8d, dword [rdi + rcx*4 + 0xdf50]
movzx edx, byte [rdi + rax*4 + 0xcf50]
movzx eax, byte [rbx + 0xc]
movzx ecx, byte [rdi + rax*4 + 0xcf50]
mov dword [rbx + 6], r8d
mov r8d, dword [rdi + rdx*4 + 0xdb50]
xor r8d, dword [rdi + rcx*4 + 0xd750]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0xcf50]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0xd350]
movzx ecx, byte [rdi + rax*4 + 0xcf50]
xor r8d, dword [rdi + rcx*4 + 0xdf50]
mov dword [rbx + 0xa], r8d
dec r10
jne 0x140007d80
mov rdi, qword [rsp + 0x30]
mov eax, r11d
add rsp, 0x20
pop rbx
ret
Function at 0x140008420
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x50
mov rdi, rdx
mov rax, r9
mov r12, r9
cqo
mov rbx, r8
mov r13, rcx
and edx, 0xf
add rax, rdx
mov rbp, rax
and eax, 0xf
sub rax, rdx
sar rbp, 4
mov rsi, rax
test rax, rax
je 0x14000846b
test rbp, rbp
jne 0x140008468
xor eax, eax
jmp 0x140008649
dec rbp
mov qword [rsp + 0x80], r14
mov r14, qword [rsp + 0xa0]
movups xmm0, xmmword [r14]
movups xmm1, xmm0
movups xmmword [rsp + 0x20], xmm0
test rbp, rbp
je 0x1400084f2
mov qword [rsp + 0x88], r15
nop dword [rax]
nop dword [rax + rax]
mov edx, dword [r13 + 4]
lea rcx, [r13 + 0xf8]
mov r9, rbx
mov r8, rdi
call fcn.1400070b0
mov eax, dword [rsp + 0x20]
add rdi, 0x10
xor dword [rbx], eax
mov eax, dword [rsp + 0x24]
add rbx, 0x10
xor dword [rbx - 0xc], eax
mov eax, dword [rsp + 0x28]
xor dword [rbx - 8], eax
mov eax, dword [rsp + 0x2c]
xor dword [rbx - 4], eax
movups xmm0, xmmword [rdi - 0x10]
movups xmm1, xmm0
movups xmmword [rsp + 0x20], xmm0
dec rbp
jne 0x1400084a0
mov r15, qword [rsp + 0x88]
test rsi, rsi
je 0x14000863a
movups xmm0, xmmword [rdi]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x40]
lea rcx, [r13 + 0xf8]
movups xmmword [r14], xmm0
mov edx, dword [r13 + 4]
movups xmmword [rsp + 0x40], xmm0
call fcn.1400070b0
xor r9d, r9d
test rsi, rsi
je 0x140008605
cmp rsi, 0x10
jb 0x1400085c9
lea r10, [rsi + 0xf]
lea rdx, [rsi + 0xf]
lea r8, [rbx + 0x10]
add r10, rdi
add rdx, rbx
lea rcx, [rdi + 0x10]
cmp r8, r10
ja 0x140008557
cmp rdx, rcx
jae 0x1400085c9
lea rax, [rsp + rsi + 0x2f]
cmp r8, rax
ja 0x14000856b
lea r8, [rsp + 0x30]
cmp rdx, r8
jae 0x1400085c9
lea rdx, [rsp + 0x30]
cmp rdx, r10
ja 0x14000857a
cmp rax, rcx
jae 0x1400085c9
mov rax, rsi
mov rdx, rsi
lea r8, [rsp + 0x30]
and eax, 0xf
sub r8, rdi
sub rdx, rax
mov rax, rbx
sub rax, rdi
nop dword [rax]
nop dword [rax + rax]
movdqu xmm1, xmmword [rcx]
movdqu xmm0, xmmword [r8 + rcx - 0x10]
add r9, 0x10
lea rcx, [rcx + 0x10]
pxor xmm0, xmm1
movdqu xmmword [rax + rcx - 0x10], xmm0
movdqu xmmword [r8 + rcx - 0x20], xmm1
cmp r9, rdx
jb 0x1400085a0
cmp r9, rsi
jae 0x140008605
lea rax, [rsp + 0x30]
lea rcx, [rsp + 0x30]
mov r10, rbx
sub rdi, rax
sub r10, rcx
lea r8, [rsp + 0x30]
add r8, r9
inc r9
movzx eax, byte [r8 + rdi + 0x10]
movzx edx, al
xor dl, byte [r8]
mov byte [r8], al
mov byte [r8 + r10 + 0x10], dl
cmp r9, rsi
jb 0x1400085e1
mov edx, dword [r13 + 4]
lea r8, [rsp + 0x30]
lea rcx, [r13 + 0xf8]
mov r9, rbx
call fcn.1400070b0
mov eax, dword [rsp + 0x20]
xor dword [rbx], eax
mov eax, dword [rsp + 0x24]
xor dword [rbx + 4], eax
mov eax, dword [rsp + 0x28]
xor dword [rbx + 8], eax
mov eax, dword [rsp + 0x2c]
xor dword [rbx + 0xc], eax
jmp 0x14000863e
movups xmmword [r14], xmm1
mov r14, qword [rsp + 0x80]
mov rax, r12
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140008d7c
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, ecx
mov rbp, r8
mov rdi, rdx
and ecx, 7
je 0x140008da6
mov eax, 8
sub eax, ecx
add ebx, eax
mov rcx, qword [0x1400134e8]
test rcx, rcx
jne 0x140008de9
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, qword [0x140012388]
movsxd r8, ebx
mov edx, 8
mov dword [0x1400134f0], eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1400134f0]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x1400134e8]
mov rsi, rcx
movsxd rax, ebx
add rcx, rax
mov qword [0x1400134e8], rcx
mov ecx, dword [0x1400134f0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, qword [0x1400134e8]
mov rcx, qword [0x140012388]
mov r8, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [0x1400134f0]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test rdi, rdi
jne 0x140008e3d
test rbp, rbp
je 0x140008e64
lea rcx, [0x1400134e0]
mov edx, 0x28
call fcn.1400091e0
mov qword [rax], rsi
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rbp
test rdi, rdi
je 0x140008e64
lea rcx, [rbx + rsi]
call rdi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140009270
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor r8d, r8d
mov edx, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x140013820], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400115c0], eax
call fcn.140009760
add rsp, 0x28
ret

Function at 0x1400092e0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov ecx, dword [0x1400115c0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x1400093a0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x1400115c0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x10]
add rax, 2
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x10], rax
add rsp, 0x38
ret

Function at 0x140009400
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x1400115c0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
add rsp, 0x38
ret
Function at 0x1400095a0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov ecx, dword [0x1400115c0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x28], rax
cmp dword [rsp + 0x58], 0xffffffff
jne 0x1400095d0
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x58], eax
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x10]
lea rax, [rcx + rax*2]
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 8]
sub rcx, 4
cmp rax, rcx
jl 0x140009642
mov eax, dword [rsp + 0x20]
add eax, 0x4000
cdqe
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
add rax, 0xa
mov r9, rax
mov rax, qword [rsp + 0x28]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x140013820]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
jmp 0x1400096a0
mov rax, qword [rsp + 0x28]
cmp qword [rax + 8], 0x100000
jle 0x1400096a0
cmp dword [rsp + 0x20], 0x100000
jge 0x140009663
mov dword [rsp + 0x20], 0x100000
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
add rax, 0xa
mov r9, rax
mov rax, qword [rsp + 0x28]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x140013820]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
movsxd rax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x28]
add rax, qword [rcx]
mov qword [rsp + 0x30], rax
movsxd rax, dword [rsp + 0x58]
movsxd rcx, dword [rsp + 0x50]
lea rax, [rax + rcx*2]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x1400096e0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x1400115c0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
mov eax, dword [rsp + 0x40]
shl eax, 1
cdqe
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0x10]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x10], rax
add rsp, 0x38
ret

Function at 0x140009720
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x1400115c0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x10], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx]
xor edx, edx
mov word [rcx + rax], dx
add rsp, 0x38
ret
Function at 0x140009760
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x38
mov r8d, 0x18
xor edx, edx
mov rcx, qword [0x140013820]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x20], rax
mov r8d, select
xor edx, edx
mov rcx, qword [0x140013820]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rsp + 0x20]
mov qword [rcx], rax
mov rax, qword [rsp + 0x20]
mov qword [rax + 8], socket
mov rax, qword [rsp + 0x20]
mov qword [rax + 0x10], 0
mov rdx, qword [rsp + 0x20]
mov ecx, dword [0x1400115c0]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x38
ret

Function at 0x140009a44
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp dword [0x1400134f8], 0
mov r14, rdx
mov r15, rcx
lea rbx, [0x140013508]
jne 0x140009a91
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x140013530], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x1400134f8], 1
mov ecx, dword [0x140013530]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x140009b66
mov rcx, qword [0x140012388]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x140009b91
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x140013500]
test rax, rax
je 0x140009ae1
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x140013500], rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
lea r9, [rbp + 0x20]
mov r8, rdi
mov rcx, rax
mov rdx, rbx
mov dword [rsp + 0x20], 0x100000
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x18]
lea r8, [0x140009bac]
mov r9, rbp
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x140013530]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x140012388]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x140009b91
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov qword [rbp + 0x10], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x14007c180
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14007c1dd
lea rbx, [0x140159be0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x14007c1c4
cmp r10, 2
jb 0x14007c1c4
cmp byte [r9], r8b
jne 0x14007c1c4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x14007c1a0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14007c21f
lea rbx, [0x140159be0]
cmp r8b, 0x23
jne 0x14007c203
cmp byte [r9], r8b
jne 0x14007c203
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x14007c1f0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x14007c360
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x14007c37a
mov qword [r8], 0
lea rdx, [0x14015992c]
call fcn.14007c230
mov rbx, rax
test rax, rax
jne 0x14007c39a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x14007c471
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14007c471
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14007c471
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14007c471
cmp rdi, 0xffffffffffffffff
je 0x14007c471
mov rax, qword [0x14017daa0]
test rax, rax
je 0x14007c40e
inc dword [rax + 0x3b0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x14007c471
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x14007c45e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14017daa0]
test rax, rax
je 0x14007c453
dec dword [rax + 0x3b0]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14007c47a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14007c46c
mov qword [r14], rdi
mov rax, rsi
jmp 0x14007c47c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14007e8d0
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xc8]
mov rax, qword [rcx + 0xd0]
movsxd r9, edx
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x140159be0]
not ebx
movzx eax, r9b
movzx ecx, bl
xor rcx, rax
shr ebx, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
mov rax, qword [0x14017daa0]
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r9d
shr rdx, 0x18
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
not ebx
cmp dword [rax + 0x1c5c], ebx
jne 0x14007e95d
mov dword [rax + 0x1c60], ebx
cmp dword [rax + 0x1c98], ebx
jne 0x14007e96c
mov byte [rax + 0x1c9c], 1
cmp dword [rax + 0x1c44], ebx
jne 0x14007e983
mov r8, r9
mov edx, 4
mov ecx, ebx
call fcn.14008fc80
mov eax, ebx
add rsp, 0x20
pop rbx
ret