joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000e790
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x14001f380], rbx
je 0x14000e7f7
cmp rax, rbx
jne 0x14000e7ea
mov ebx, 1
mov esi, ebx
jmp 0x14000e7fc
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000e7cf
mov ebx, 1
mov eax, dword [0x14001f388]
cmp eax, ebx
jne 0x14000e814
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14000e880
mov eax, dword [0x14001f388]
test eax, eax
jne 0x14000e875
mov dword [0x14001f388], ebx
lea r15, [0x140010b88]
lea rdi, [0x140010b70]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14000e867
test eax, eax
jne 0x14000e86b
cmp qword [rdi], r14
je 0x14000e85c
mov rax, qword [rdi]
mov rcx, qword [0x140010b20]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000e83e
test eax, eax
je 0x14000e87b
mov eax, 0xff
jmp 0x14000e9d6
mov dword [0x14001ebf8], ebx
mov edi, 0x1f
mov eax, dword [0x14001f388]
cmp eax, ebx
jne 0x14000e8a7
lea rdx, [0x140010b68]
lea rcx, [0x140010b28]
call sub.msvcrt.dll__initterm
mov dword [0x14001f388], 2
test esi, esi
jne 0x14000e8b5
mov rax, r14
xchg qword [0x14001f380], rax
cmp qword [0x14001f3a0], r14
je 0x14000e8e8
lea rcx, [0x14001f3a0]
call fcn.14000f0a0
test eax, eax
je 0x14000e8e8
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14001f3a0]
mov r9, qword [0x140010b20]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000e901
mov eax, 0xff
jmp 0x14000e9d6
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14000e987
test ax, ax
je 0x14000e91c
test edx, edx
jne 0x14000e987
sub ax, bx
cmp ax, di
ja 0x14000e932
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14000e91c
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.14000b6e4
mov dword [0x14001ebf4], eax
cmp dword [0x14001ec18], r14d
jne 0x14000e970
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14001ebf8], r14d
jne 0x14000e985
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14001ebf4]
jmp 0x14000e9d6
cmp ax, 0x22
jne 0x14000e99b
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000e90a
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.14000f134
add rsp, 0x28
jmp 0x14000e790
Function at 0x14000ef8c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000efd8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000efd0
cmp dword [rcx + 0x3c], edx
jl 0x14000efd0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14000efd0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000efd8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140003d30
Capabilities:
Parse pe header

Disassembly:
push rsi
push rdi
mov r8d, 0x100
mov eax, 1
cmp rdx, 0x40
jb 0x140003e32
test cl, 3
je 0x140003d57
mov r8d, 0x400
jmp 0x140003e32
movzx r9d, word [rcx]
cmp r9d, 0x5a4d
jne 0x140003e2c
mov r9d, dword [rcx + 0x3c]
test r9b, 3
jne 0x140003d4c
cmp r9d, 0x1000000
jbe 0x140003d86
mov r8d, 0x700
jmp 0x140003e32
lea r11, [r9 + 0x88]
cmp r11, rdx
ja 0x140003e32
cmp dword [rcx + r9], 0x4550
jne 0x140003e2c
movzx esi, word [rcx + r9 + 0x18]
cmp esi, 0x20b
je 0x140003dba
cmp esi, 0x10b
jne 0x140003e2c
mov edi, dword [rcx + r9 + 0x54]
cmp rdi, rdx
ja 0x140003e32
mov r10d, dword [rcx + r9 + 0x50]
cmp edi, r10d
ja 0x140003d7b
movzx esi, si
cmp esi, 0x20b
jne 0x140003e38
mov esi, dword [rcx + r9 + 0x84]
cmp esi, 0x10
mov edi, 0x10
cmovb edi, esi
shl edi, 3
add r11, rdi
cmp r11, rdx
ja 0x140003e32
movzx r11d, word [rcx + r9 + 6]
cmp r11, 0x60
ja 0x140003d7b
lea r11, [r11 + r11*4]
lea r11, [r9 + r11*8]
movzx ecx, word [rcx + r9 + 0x14]
add rcx, r11
add rcx, 0x18
cmp rcx, rdx
ja 0x140003e32
shl r10, 0x20
xor eax, eax
mov r8, r10
jmp 0x140003e32
mov r8d, 0x500
or rax, r8
pop rdi
pop rsi
ret
mov r8d, 0x600
jmp 0x140003e32
Function at 0x1400045b0
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov qword [rbp], 0xfffffffffffffffe
mov qword [rbp - 0x10], rcx
mov qword [rbp - 0x28], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov dword [rbp - 4], 0
mov qword [rbp - 0x30], rdx
mov r14, qword [rdx]
mov edi, 8
lea r15, [rbp - 4]
xor ebx, ebx
xor esi, esi
jmp 0x14000460d
mov r13, r12
mov qword [rbp - 0x18], r13
mov rbx, r13
mov esi, r12d
lea r8d, [rbx*8]
mov dword [rsp + 0x20], 3
mov rcx, r14
mov rdx, rdi
mov r9, r15
call sub.PSAPI.DLL_EnumProcessModulesEx
test eax, eax
je 0x1400046ac
mov r12d, dword [rbp - 4]
cmp r12d, esi
jbe 0x140004708
mov rsi, r12
sub rsi, rbx
jbe 0x140004600
mov rax, qword [rbp - 0x20]
sub rax, rbx
mov r13, rbx
cmp rax, rsi
jae 0x14000466a
lea rcx, [rbp - 0x28]
mov rdx, rbx
mov r8, rsi
call fcn.14001e6c0
mov rdi, qword [rbp - 0x28]
mov r13, qword [rbp - 0x18]
lea rcx, [rdi + r13*8]
cmp rsi, 2
jb 0x14000469d
mov r8, rbx
not r8
add r8, r12
shl r8, 3
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rax, [r12 + r13]
sub rax, rbx
lea rcx, [rdi + rax*8]
add rcx, 0xfffffffffffffff8
add r13, rsi
dec r13
mov qword [rcx], 0
inc r13
jmp 0x140004603
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, qword [rbp - 0x10]
mov qword [rcx + 8], rax
movups xmm0, xmmword [rbp - 0x48]
movups xmmword [rcx + 0x10], xmm0
mov rax, qword [rbp - 0x38]
mov qword [rcx + 0x20], rax
mov qword [rcx], 0
mov rdx, qword [rbp - 0x20]
test rdx, rdx
je 0x1400046f3
shl rdx, 3
mov r8d, 8
mov rcx, rdi
call fcn.140003830
mov rax, qword [rbp - 0x10]
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov r14d, r12d
shr r14d, 3
cmp rbx, r14
jb 0x1400047d8
cmp r12d, 8
jae 0x14000472a
mov eax, 8
xor ecx, ecx
jmp 0x1400047af
mov r15, r14
shl r15, 4
movzx eax, byte [0x140085161]
mov edx, 8
mov rcx, r15
call fcn.140003820
test rax, rax
je 0x1400047ec
cmp r14d, 1
jne 0x14000475c
xor ecx, ecx
mov r10, qword [rbp - 0x30]
jmp 0x140004795
mov edx, r14d
and edx, 0xfffffffe
lea r8, [rax + 0x18]
xor ecx, ecx
mov r10, qword [rbp - 0x30]
nop dword [rax]
mov r9, qword [rdi + rcx*8]
mov qword [r8 - 0x18], r10
mov qword [r8 - 0x10], r9
mov r9, qword [rdi + rcx*8 + 8]
mov qword [r8 - 8], r10
mov qword [r8], r9
add rcx, 2
add r8, 0x20
cmp rdx, rcx
jne 0x140004770
test r14b, 1
je 0x1400047ac
mov rdx, qword [rdi + rcx*8]
shl rcx, 4
mov qword [rax + rcx], r10
mov qword [rax + rcx + 8], rdx
mov rcx, r14
mov rdx, qword [rbp - 0x10]
mov qword [rdx + 8], rax
mov qword [rdx + 0x10], r14
mov qword [rdx + 0x18], rcx
mov qword [rdx], 4
mov rdx, qword [rbp - 0x20]
test rdx, rdx
jne 0x1400046e1
jmp 0x1400046f3
lea r8, str.__a_
mov rcx, r14
mov rdx, rbx
call fcn.14001f870
jmp 0x1400047f9
mov ecx, 8
mov rdx, r15
call fcn.14001f290
ud2
Function at 0x140007280
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x140007310
jmp 0x1400072ff
jae 0x1400073d0
cmp r8, 0x201
jae 0x140007310
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140007368
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14000733f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14001e900
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140007391
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140007438
mov r8d, r14d
cmp r15, r8
jne 0x1400072f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000745b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1400072ff
jmp 0x140007310
cmp rsi, r8
jb 0x140007475
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140008cb0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x140007421
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.140003830
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x140007409
jmp 0x140007421
lea rcx, str.internal_error:_entered_unreachable_code_rustc_a28077b28a02b92985b3a3faecf92813155f1ea1library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14001f420
jmp 0x14000748a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14001f870
ud2
Function at 0x14000daf0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x1400797e8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14000db34
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000db9a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14000dbd1
test eax, eax
js 0x14000dbab
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000dbc4
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140008a50
mov rcx, rax
call fcn.140005360
mov ecx, 7
int 0x29
ud2
Function at 0x14001bf80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001bffa
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14001bff0
cmp r11, r10
ja 0x14001c093
cmp r10, rdx
ja 0x14001c0a7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14001bff2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14001bfd0
jmp 0x14001c067
ja 0x14001bffa
mov r11, r10
cmp rax, r8
jne 0x14001bfa2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001c06b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14001c040
mov r8, r10
sub ecx, r9d
jns 0x14001c05e
jmp 0x14001c06d
cmp r10, rdx
je 0x14001c079
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001c06d
xor al, 1
cmp r8, rdx
jne 0x14001c020
jmp 0x14001c06d
xor eax, eax
jmp 0x14001c06d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuefrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14001f420
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001f8f0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001f870
ud2

Function at 0x14001e1a4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001e1ee
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001e1ee
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001e1ee
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001e1ee
cmp dword [rcx + 0x84], 0xe
jbe 0x14001e1ee
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001e1f0
xor al, al
add rsp, 0x28
ret
Function at 0x1400040bc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004106
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004106
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004106
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004106
cmp dword [rcx + 0x84], 0xe
jbe 0x140004106
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140004108
xor al, al
add rsp, 0x28
ret
Function at 0x140004260
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x140004296
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 3
jbe 0x14000429e
mov esi, dword [rdx]
mov r9d, 4
jmp 0x1400042a3
xor r10d, r10d
jmp 0x140004351
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x1400042c6
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x1400042dd
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x1400042fd
add r11, r8
jmp 0x14000442e
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x1400043d2
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop word cs:[rax + rax]
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x140004380
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 3
jbe 0x1400043e4
mov r9d, dword [rdx + r10]
mov r8d, 4
jmp 0x1400043ea
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x140004410
lea rcx, [r8 + r10]
movzx esi, word [rdx + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x14000442a
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400055f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x80
mov ecx, dword [0x14004c050]
test ecx, ecx
je 0x14000575e
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140005621
mov rsi, rax
cmp qword [rax + 8], 0
jne 0x140005781
mov ecx, dword [0x14004c050]
test ecx, ecx
je 0x140005791
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14000575a
mov rsi, rax
test rax, rax
jne 0x1400056b6
movzx eax, byte [0x14005d030]
mov rcx, qword [0x14005d0f0]
test rcx, rcx
jne 0x140005673
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x1400057b7
mov rcx, rax
mov qword [0x14005d0f0], rax
mov r8d, 0x60
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x1400057b7
mov rsi, rax
lea rax, [0x14004c038]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14004c050]
test ecx, ecx
je 0x1400057a4
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov rax, qword [rsi + 0x58]
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rsi + 0x48]
movaps xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [rsi + 8]
movups xmm1, xmmword [rsi + 0x18]
movups xmm2, xmmword [rsi + 0x28]
movups xmm3, xmmword [rsi + 0x38]
movaps xmmword [rsp + 0x50], xmm3
movaps xmmword [rsp + 0x40], xmm2
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 8], 1
movups xmm0, xmmword [0x1400513e8]
movups xmmword [rsi + 0x50], xmm0
movups xmm0, xmmword [0x1400513d8]
movups xmmword [rsi + 0x40], xmm0
movups xmm0, xmmword [0x1400513c8]
movups xmmword [rsi + 0x30], xmm0
movups xmm0, xmmword [0x1400513b8]
movups xmmword [rsi + 0x20], xmm0
movups xmm0, xmmword [0x1400513a8]
movups xmmword [rsi + 0x10], xmm0
cmp qword [rsp + 0x20], 0
je 0x140005781
mov rax, qword [rsp + 0x30]
cmp rax, 2
je 0x140005781
lea rcx, [rsp + 0x38]
test rax, rax
je 0x140005771
mov rax, qword [rsp + 0x38]
lock dec qword [rax]
jne 0x140005781
call fcn.140003bb0
jmp 0x140005781
xor esi, esi
jmp 0x140005785
lea rcx, [0x14004c038]
call fcn.1400226a0
mov ecx, eax
jmp 0x140005608
mov rax, qword [rsp + 0x38]
lock dec qword [rax]
jne 0x140005781
call fcn.140003960
add rsi, 0x10
mov rax, rsi
add rsp, 0x80
pop rsi
ret
lea rcx, [0x14004c038]
call fcn.1400226a0
mov ecx, eax
jmp 0x140005631
lea rcx, [0x14004c038]
call fcn.1400226a0
mov ecx, eax
jmp 0x1400056ae
mov ecx, 8
mov edx, 0x60
call fcn.140012d60
ud2
Function at 0x1400057d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x14004c020]
test ecx, ecx
je 0x140005922
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140005803
mov rsi, rax
cmp qword [rax + 8], 0
je 0x140005803
add rsi, 8
jmp 0x140005919
mov ecx, dword [0x14004c020]
test ecx, ecx
je 0x140005935
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140005917
mov rsi, rax
test rax, rax
jne 0x140005898
movzx eax, byte [0x14005d030]
mov rcx, qword [0x14005d0f0]
test rcx, rcx
jne 0x140005855
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x14000596c
mov rcx, rax
mov qword [0x14005d0f0], rax
mov r8d, 0x10
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x14000596c
mov rsi, rax
lea rax, [0x14004c008]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14004c020]
test ecx, ecx
je 0x140005948
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
movzx eax, byte [0x14005d030]
mov rcx, qword [0x14005d0f0]
test rcx, rcx
jne 0x1400058c3
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x14000595b
mov rcx, rax
mov qword [0x14005d0f0], rax
mov r8d, 0x30
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x14000595b
add rsi, 8
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x10], 0
mov byte [rax + 0x18], 0
xorps xmm0, xmm0
movups xmmword [rax + 0x20], xmm0
mov rcx, qword [rsi]
mov qword [rsi], rax
test rcx, rcx
je 0x140005919
lock dec qword [rcx]
jne 0x140005919
call fcn.140012580
jmp 0x140005919
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14004c008]
call fcn.1400226a0
mov ecx, eax
jmp 0x1400057e5
lea rcx, [0x14004c008]
call fcn.1400226a0
mov ecx, eax
jmp 0x140005813
lea rcx, [0x14004c008]
call fcn.1400226a0
mov ecx, eax
jmp 0x140005890
mov ecx, 8
mov edx, 0x30
call fcn.140012d60
ud2
mov ecx, 8
mov edx, 0x10
call fcn.140012d60
ud2
Function at 0x140010ad0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x80
mov ecx, dword [0x14004c050]
test ecx, ecx
je 0x140010c3e
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140010b01
mov rsi, rax
cmp qword [rax + 8], 0
jne 0x140010c61
mov ecx, dword [0x14004c050]
test ecx, ecx
je 0x140010c71
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140010c3a
mov rsi, rax
test rax, rax
jne 0x140010b96
movzx eax, byte [0x14005d030]
mov rcx, qword [0x14005d0f0]
test rcx, rcx
jne 0x140010b53
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x140010c97
mov rcx, rax
mov qword [0x14005d0f0], rax
mov r8d, 0x60
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x140010c97
mov rsi, rax
lea rax, [0x14004c038]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14004c050]
test ecx, ecx
je 0x140010c84
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov rax, qword [rsi + 0x58]
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rsi + 0x48]
movaps xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [rsi + 8]
movups xmm1, xmmword [rsi + 0x18]
movups xmm2, xmmword [rsi + 0x28]
movups xmm3, xmmword [rsi + 0x38]
movaps xmmword [rsp + 0x50], xmm3
movaps xmmword [rsp + 0x40], xmm2
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 8], 1
movups xmm0, xmmword [0x1400513e8]
movups xmmword [rsi + 0x50], xmm0
movups xmm0, xmmword [0x1400513d8]
movups xmmword [rsi + 0x40], xmm0
movups xmm0, xmmword [0x1400513c8]
movups xmmword [rsi + 0x30], xmm0
movups xmm0, xmmword [0x1400513b8]
movups xmmword [rsi + 0x20], xmm0
movups xmm0, xmmword [0x1400513a8]
movups xmmword [rsi + 0x10], xmm0
cmp qword [rsp + 0x20], 0
je 0x140010c61
mov rax, qword [rsp + 0x30]
cmp rax, 2
je 0x140010c61
lea rcx, [rsp + 0x38]
test rax, rax
je 0x140010c51
mov rax, qword [rsp + 0x38]
lock dec qword [rax]
jne 0x140010c61
call fcn.140011c10
jmp 0x140010c61
xor esi, esi
jmp 0x140010c65
lea rcx, [0x14004c038]
call fcn.1400226a0
mov ecx, eax
jmp 0x140010ae8
mov rax, qword [rsp + 0x38]
lock dec qword [rax]
jne 0x140010c61
call fcn.140011b20
add rsi, 0x10
mov rax, rsi
add rsp, 0x80
pop rsi
ret
lea rcx, [0x14004c038]
call fcn.1400226a0
mov ecx, eax
jmp 0x140010b11
lea rcx, [0x14004c038]
call fcn.1400226a0
mov ecx, eax
jmp 0x140010b8e
mov ecx, 8
mov edx, 0x60
call fcn.140012d60
ud2