joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180005aa8
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov rax, qword gs:[0x60]
mov r12, r8
mov r14, rdx
mov r15, rcx
xor ebx, ebx
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov r10, qword [rax + 0x30]
movsxd r9, dword [r10 + 0x3c]
mov r9d, dword [r9 + r10 + 0x88]
add r9, r10
cmp r9, r10
je 0x180005b4d
mov r8d, dword [r9 + 0x18]
test r8d, r8d
je 0x180005b4d
mov esi, dword [r9 + 0x20]
dec r8d
mov r11d, 0xbae2e215
lea rcx, [rsi + r8*4]
mov edx, dword [rcx + r10]
add rdx, r10
mov cl, byte [rdx]
inc rdx
test cl, cl
je 0x180005b48
movsx ecx, cl
xor ecx, r11d
imul r11d, ecx, 0x1000193
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x180005b29
cmp r11d, 0xe749ee87
je 0x180005b52
test r8d, r8d
jne 0x180005b0c
mov rax, qword [rax]
jmp 0x180005ae7
mov ecx, dword [r9 + 0x24]
add rcx, r10
movzx edx, word [rcx + r8*2]
mov ecx, dword [r9 + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
mov rcx, r15
add rax, r10
call rax
movups xmm0, xmmword [0x180011610]
mov rcx, r15
movups xmm1, xmmword [r14]
movdqa xmmword [rbp - 9], xmm0
addpd xmm1, xmmword [0x180012cd0]
movups xmm0, xmmword [0x180019140]
movaps xmmword [rbp - 0x19], xmm1
movaps xmm1, xmmword [r12]
movdqu xmmword [rbp + 0x17], xmm1
movaps xmm1, xmmword [r14]
movdqa xmmword [rbp + 7], xmm0
movaps xmm0, xmmword [0x180012cc0]
movdqu xmmword [rbp + 0x37], xmm1
movaps xmmword [rbp + 0x27], xmm0
call fcn.18000561c
cmp word [rax], bx
je 0x180005bda
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], bx
jne 0x180005bc7
add ecx, 1
je 0x180005bdc
mov rbx, rax
jmp 0x180005bdc
mov ecx, ebx
lea rax, [rbp - 9]
mov dword [rbp - 0x21], ecx
mov qword [rsp + 0x60], rax
lea r9, [rbp + 0x37]
mov byte [rsp + 0x50], 1
lea rax, [rbp - 0x19]
mov byte [rsp + 0x48], 1
lea r8, [rbp - 0x29]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
lea rax, [rbp + 7]
mov dword [rbp - 0x1d], ecx
mov rcx, qword [0x180015810]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x17]
movss dword [rsp + 0x30], xmm0
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x27]
mov qword [rsp + 0x20], rax
mov qword [rbp - 0x29], rbx
call fcn.180001340
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x180006d70
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Log keystrokes
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0xc0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movzx esi, dl
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor edx, edx
mov ecx, esi
mov ebx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
mov r11d, eax
cmp sil, 1
jne 0x180006dbe
lea rdx, str.Left_Mouse_Button
jmp 0x180006f0e
cmp sil, 2
jne 0x180006dd0
lea rdx, str.Right_Mouse_Button
jmp 0x180006f0e
cmp sil, 4
jne 0x180006de2
lea rdx, str.Middle_Mouse_Button
jmp 0x180006f0e
cmp sil, 5
jne 0x180006df4
lea rdx, str.Side_Button_1
jmp 0x180006f0e
cmp sil, 6
jne 0x180006e06
lea rdx, str.Side_Button_2
jmp 0x180006f0e
cmp ebx, 0x2d
ja 0x180006e37
je 0x180006e5f
sub ebx, 0x21
je 0x180006e5f
sub ebx, 1
je 0x180006e5f
sub ebx, 1
je 0x180006e5f
sub ebx, 1
je 0x180006e5f
sub ebx, 1
je 0x180006e5f
sub ebx, 1
je 0x180006e5f
sub ebx, 1
je 0x180006e5f
cmp ebx, 1
je 0x180006e5f
jmp 0x180006e64
sub ebx, 0x2e
je 0x180006e5f
sub ebx, 0x2d
je 0x180006e5f
sub ebx, 1
je 0x180006e5f
sub ebx, 1
je 0x180006e5f
sub ebx, 0x12
je 0x180006e5f
sub ebx, 0x21
je 0x180006e5f
sub ebx, 0x13
je 0x180006e5f
cmp ebx, 2
jne 0x180006e64
bts r11d, 8
mov rax, qword gs:[0x60]
shl r11d, 0x10
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov r8, qword [rax + 0x30]
movsxd rcx, dword [r8 + 0x3c]
mov r10d, dword [rcx + r8 + 0x88]
add r10, r8
cmp r10, r8
je 0x180006edb
mov r9d, dword [r10 + 0x18]
test r9d, r9d
je 0x180006edb
mov r14d, dword [r10 + 0x20]
dec r9d
mov ebx, 0x42de5b9c
lea rcx, [r14 + r9*4]
mov edx, dword [rcx + r8]
add rdx, r8
mov cl, byte [rdx]
inc rdx
test cl, cl
je 0x180006ed6
movsx ecx, cl
xor ecx, ebx
imul ebx, ecx, 0x1000193
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x180006eba
cmp ebx, 0x5e8a9ca6
je 0x180006ee0
test r9d, r9d
jne 0x180006e9e
mov rax, qword [rax]
jmp 0x180006e79
mov ecx, dword [r10 + 0x24]
add rcx, r8
movzx edx, word [rcx + r9*2]
mov ecx, dword [r10 + 0x1c]
add rcx, r8
mov eax, dword [rcx + rdx*4]
lea rdx, [rsp + 0x30]
add rax, r8
mov ecx, r11d
mov r8d, 0x80
call rax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.18000f4f0
mov rax, rdi
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.18000f740
mov rbx, qword [rsp + 0xf0]
add rsp, 0xc0
pop r14
pop rdi
pop rsi
ret
Function at 0x18000f1f8
Capabilities:
Encode data using xor

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 rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x47], rax
movaps xmm0, xmmword [str.qWKNUUI____0h]
lea r9, [rbp - 9]
movaps xmm1, xmmword [0x1800122d0]
xor r14d, r14d
mov eax, dword [0x180012300]
mov r8d, r14d
movaps xmmword [rbp - 9], xmm0
mov edi, 0x29e4129f
movaps xmm0, xmmword [0x1800122e0]
movaps xmmword [rbp + 7], xmm1
lea ebx, [r14 + 1]
movaps xmm1, xmmword [0x1800122f0]
movaps xmmword [rbp + 0x17], xmm0
movaps xmmword [rbp + 0x27], xmm1
mov dword [rbp + 0x37], eax
mov ecx, r8d
mov eax, edi
mul r8d
mov eax, ebx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 5
sub ax, cx
movzx eax, ax
imul ecx, eax, 0x37
add cx, r8w
add r8d, ebx
xor word [r9], cx
lea r9, [r9 + 2]
cmp r8d, 0x22
jl 0x18000f26d
mov rax, qword gs:[0x60]
test rax, rax
je 0x18000f3fe
mov r11, qword [rax + 0x18]
add r11, 0x20
mov r8, qword [r11]
jmp 0x18000f3f5
mov r9, qword [r8 + 0x50]
test r9, r9
je 0x18000f3f2
mov rax, r9
mov ecx, r14d
cmp word [r9], r14w
je 0x18000f2e5
add ecx, ebx
lea rax, [rax + 2]
cmp word [rax], r14w
jne 0x18000f2d9
lea rax, [rbp - 9]
mov edx, r14d
cmp word [rbp - 9], r14w
je 0x18000f2ff
add edx, ebx
lea rax, [rax + 2]
cmp word [rax], r14w
jne 0x18000f2f3
cmp ecx, edx
jne 0x18000f3f2
movsxd r10, ecx
mov rdx, r14
test ecx, ecx
je 0x18000f334
movzx ecx, word [r9 + rdx*2]
movzx eax, word [rbp + rdx*2 - 9]
or cx, 0x20
or ax, 0x20
cmp cx, ax
jne 0x18000f3f2
add rdx, rbx
cmp rdx, r10
jb 0x18000f311
mov rax, qword [r8 + 0x20]
mov qword [0x180015930], rax
test rax, rax
je 0x18000f405
call fcn.180003db8
movups xmm0, xmmword [str.qJVTOYSZ_]
movzx eax, word [0x180011508]
lea r9, [rbp - 0x29]
mov word [rbp - 0x19], ax
mov r8d, r14d
movups xmmword [rbp - 0x29], xmm0
mov ecx, r8d
mov eax, edi
mul r8d
mov eax, ebx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 5
sub ax, cx
movzx eax, ax
imul ecx, eax, 0x37
add cx, r8w
add r8d, ebx
xor word [r9], cx
lea r9, [r9 + 2]
cmp r8d, 9
jl 0x18000f36a
mov rax, qword [0x180015930]
lea r8, [rbp - 0x29]
add rax, 0x1909800
or rdx, 0xffffffffffffffff
xor ecx, ecx
call rax
mov rdi, rax
test rax, rax
je 0x18000f405
mov rdx, rax
call fcn.180002a80
mov rsi, rax
lea rcx, [rax + 0x38]
test rcx, rcx
je 0x18000f3d8
movups xmm0, xmmword [rcx]
movdqu xmmword [rbp - 0x39], xmm0
mov rcx, qword [rbp - 0x39]
mov rdx, rdi
mov rbx, qword [rcx]
call fcn.180002b7c
add rbx, 0x78
je 0x18000f42e
mov rbx, qword [rbx]
jmp 0x18000f432
mov r8, qword [r8]
cmp r8, r11
jne 0x18000f2c0
mov qword [0x180015930], r14
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.18000f740
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 rbp
ret
mov rbx, qword [rbp - 0x39]
mov rdx, rsi
call fcn.180002ed8
add rax, 0x70
je 0x18000f445
mov rcx, qword [rax]
jmp 0x18000f449
mov rcx, qword [rbp - 0x39]
mov qword [0x1800157b8], rcx
mov rcx, rbx
call fcn.18000f67c
mov qword [0x180015808], rax
jmp 0x18000f405
Function at 0x140002b50
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1401c6c30]
test rax, rax
jne 0x140002bc6
lea rcx, str.sciter64.dll
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x140002bb5
lea rdx, str.SciterAPI
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140002bac
call rax
mov qword [0x1401c6c30], rax
call qword [rax + 0x4d8]
test rax, rax
je 0x140002bb5
mov qword [0x1401c6c28], rax
jmp 0x140002bb5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [0x1401c6c30]
mov rbx, qword [rsp + 0x20]
test rax, rax
je 0x140002bcb
add rsp, 0x28
ret
mov ecx, 0xffffffff
call fcn.1400ef750
int3
Function at 0x140008170
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x14000817b
xor eax, eax
ret
lea r11, [0x140193190]
not ecx
cmp r8d, 8
jb 0x140008251
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x1400081a0
test r8d, r8d
je 0x14000827d
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x140008260
not ecx
mov eax, ecx
ret

Function at 0x140008b80
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov r10, r8
mov rdi, r9
imul r10d, edx
mov rsi, rdx
cmp byte [r9], 0
mov r11, rcx
je 0x140008bda
mov rdx, rcx
mov qword [rsp + 0x20], 0
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x48]
mov r8d, r10d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140008bc6
mov byte [rdi + 0x10], 1
mov eax, dword [rsp + 0x48]
xor edx, edx
div rsi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov edx, dword [r9 + 0x2c]
mov ecx, dword [r9 + 0x28]
sub ecx, edx
mov qword [rsp + 0x40], rbx
lea eax, [rdx + r10]
cmp eax, dword [r9 + 0x28]
cmovbe ecx, r10d
add rdx, qword [r9 + 0x20]
mov ebx, ecx
mov r8d, ecx
mov rcx, r11
call fcn.1400d8c00
add dword [rdi + 0x2c], ebx
mov eax, ebx
mov rbx, qword [rsp + 0x40]
xor edx, edx
div rsi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140008c20
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
sub rsp, 0x38
cmp byte [rcx], 0
mov r14, rdx
mov qword [rsp + 0x58], rbp
mov rbx, rcx
mov qword [rsp + 0x30], rdi
mov edi, 1
je 0x140008c70
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x60]
mov r8d, edi
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140008c6a
mov byte [rbx + 0x10], dil
mov ebp, dword [rsp + 0x60]
jmp 0x140008ca7
mov qword [rsp + 0x68], rsi
mov esi, dword [rcx + 0x2c]
mov ecx, dword [rcx + 0x28]
lea eax, [rsi + 1]
cmp eax, ecx
jbe 0x140008c86
mov edi, ecx
sub edi, esi
mov rdx, rsi
mov r8d, edi
add rdx, qword [rbx + 0x20]
lea rcx, [rsp + 0x50]
mov ebp, edi
call fcn.1400d8c00
lea eax, [rsi + rdi]
mov rsi, qword [rsp + 0x68]
mov dword [rbx + 0x2c], eax
mov rdi, qword [rsp + 0x30]
cmp ebp, 1
mov rbp, qword [rsp + 0x58]
jne 0x140008cc8
movzx eax, byte [rsp + 0x50]
mov dword [r14], eax
xor eax, eax
add rsp, 0x38
pop r14
pop rbx
ret
cmp byte [rbx], 0
je 0x140008cbe
cmp byte [rbx + 0x10], 0
je 0x140008cbe
mov eax, 0xffffffff
add rsp, 0x38
pop r14
pop rbx
ret
Function at 0x1400099a0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x140009ba6
cmp dword [rcx + 0x1c], 0
je 0x140009ba6
cmp qword [rcx + 0x80], 0
je 0x1400099cf
call fcn.140009f40
lea r9, [rsp + 0x50]
mov rcx, rdi
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
call fcn.1400096f0
test eax, eax
je 0x1400099f6
mov eax, 0xffffff99
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0xb0
mov qword [rsp + 0x48], rbx
call fcn.140105530
mov rbx, rax
test rax, rax
jne 0x140009a1c
lea eax, [rbx - 0x68]
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0x4000
mov qword [rsp + 0x20], rbp
call fcn.140105530
mov ecx, dword [rsp + 0x40]
xor ebp, ebp
mov dword [rbx + 0x68], ecx
mov ecx, dword [rsp + 0x50]
mov dword [rbx + 0x6c], ecx
mov qword [rbx], rax
mov dword [rbx + 0x70], ebp
test rax, rax
jne 0x140009a62
mov rcx, rbx
call fcn.140105500
mov rbx, qword [rsp + 0x48]
lea eax, [rbp - 0x68]
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov eax, dword [rdi + 0x40]
mov ecx, dword [rdi + 0x38]
mov dword [rbx + 0x78], eax
mov rax, qword [rdi]
mov qword [rbx + 0x88], rax
mov eax, dword [rdi + 0x10]
mov dword [rbx + 0x94], eax
mov dword [rbx + 0x64], ebp
mov dword [rbx + 0x74], ebp
mov dword [rbx + 0x90], ecx
mov dword [rbx + 0x24], ebp
test ecx, ecx
je 0x140009ab1
lea rcx, [rbx + 8]
mov qword [rbx + 0x38], rbp
mov qword [rbx + 0x40], rbp
mov qword [rbx + 0x48], rbp
call fcn.140008510
test eax, eax
jne 0x140009ab1
mov dword [rbx + 0x64], 1
mov eax, dword [rdi + 0x44]
movzx ecx, byte [rdi + 0x34]
mov dword [rbx + 0x7c], eax
and cl, 1
mov eax, dword [rdi + 0x48]
mov dword [rbx + 0x80], eax
mov eax, dword [rdi + 0x34]
shr eax, 3
mov byte [rbx + 0x98], cl
test al, 1
je 0x140009add
movzx eax, byte [rdi + 0x3d]
jmp 0x140009ae1
movzx eax, byte [rdi + 0x43]
mov byte [rbx + 0xac], al
neg cl
mov dword [rbx + 0x9c], 0x12345678
sbb eax, eax
mov dword [rbx + 0xa0], 0x23456789
and eax, 0xc
mov dword [rbx + 0xa4], 0x34567890
mov dword [rbx + 0xa8], eax
test rsi, rsi
je 0x140009b7a
lea r8, [0x140193190]
nop
movzx eax, byte [rsi]
test al, al
je 0x140009b7a
mov edx, dword [rbx + 0x9c]
xor rax, rdx
movzx ecx, al
shr edx, 8
xor edx, dword [r8 + rcx*4]
mov ecx, dword [rbx + 0xa4]
movzx eax, dl
add eax, dword [rbx + 0xa0]
mov dword [rbx + 0x9c], edx
imul edx, eax, 0x8088405
movzx eax, cl
shr ecx, 8
inc edx
mov dword [rbx + 0xa0], edx
shr rdx, 0x18
xor rax, rdx
xor ecx, dword [r8 + rax*4]
mov dword [rbx + 0xa4], ecx
add rsi, 1
jne 0x140009b20
mov eax, dword [rsp + 0x58]
mov ecx, dword [rdi + 0x7c]
add eax, 0x1e
add ecx, eax
mov dword [rbx + 0x10], ebp
mov rbp, qword [rsp + 0x20]
xor eax, eax
mov dword [rbx + 0x60], ecx
mov qword [rdi + 0x80], rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rsi
ret
mov eax, 0xffffff9a
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x14000a710
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbx
push rdi
sub rsp, 0x458
mov rax, qword [0x1401bf0a0]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x14000a74d
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000a74d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [rdi]
test ax, ax
je 0x14000a85e
mov qword [rsp + 0x480], rbp
mov rdx, rdi
mov rcx, rdi
cmp ax, 0x2f
je 0x14000a773
cmp ax, 0x5c
jne 0x14000a776
mov rdx, rcx
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x14000a767
xor ebp, ebp
mov qword [rsp + 0x450], rsi
cmp rdx, rdi
je 0x14000a7d4
sub rdx, rdi
lea rcx, [rsp + 0x230]
sar rdx, 1
lea rsi, [rdx + rdx]
mov rdx, rdi
mov r8, rsi
call fcn.1400d8c00
cmp rsi, 0x208
jae 0x14000a878
lea rdx, [rsp + 0x230]
mov word [rsp + rsi + 0x230], bp
mov rcx, rbx
call fcn.14000a710
mov word [rsp + 0x20], bp
test rbx, rbx
je 0x14000a800
lea rcx, [rsp + 0x20]
sub rcx, rbx
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rcx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x14000a7f0
lea rcx, [rsp + 0x20]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], bp
lea rcx, [rcx + 2]
jne 0x14000a810
xor edx, edx
nop dword [rax]
movzx eax, word [rdi + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x14000a820
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000a84e
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rsi, qword [rsp + 0x450]
mov rbp, qword [rsp + 0x480]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1400ba210
add rsp, 0x458
pop rdi
pop rbx
ret
call fcn.1400ba440
int3
Function at 0x14001a5c0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x1401c7a78]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001a5f9
mov rdx, qword [rax + 8]
mov r8, rbx
add rsp, 0x20
pop rbx
jmp fcn.14003e3b0
xor edx, edx
mov r8, rbx
add rsp, 0x20
pop rbx
jmp fcn.14003e3b0

Function at 0x14001a610
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x28
mov rbx, rcx
mov rdi, rdx
mov ecx, dword [0x1401c7a78]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001a63d
mov r8, qword [rax + 8]
jmp 0x14001a640
xor r8d, r8d
cmp rdi, 0x3fc
ja 0x14001a664
test r8, r8
je 0x14001a664
cmp qword [r8], 0
jne 0x14001a664
movzx eax, byte [rbx + rdi]
mov byte [rbx], al
mov qword [r8], rbx
add rsp, 0x28
pop rdi
pop rbx
ret
mov rcx, rbx
add rsp, 0x28
pop rdi
pop rbx
jmp fcn.1400ba1e0

Function at 0x14001aa40
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rcx + 0x10]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rax, qword [rcx + 8]
mov rbx, rcx
mov r9d, 0xffffffff
mov qword [rsp + 0x28], rax
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lock xadd dword [0x1401c77a0], eax
mov rcx, qword [rbx + 8]
test eax, eax
je 0x14001aa9d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
add rsp, 0x30
pop rbx
ret
mov rdx, rcx
xor r8d, r8d
lea rcx, [fcn.1400025e0]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add rsp, 0x30
pop rbx
ret
Function at 0x14001aad0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov dword [rsp + 0x18], r8d
push rsi
push rdi
push r14
sub rsp, 0x40
xor r9d, r9d
mov rsi, rdx
mov rbp, rcx
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi + 8], rax
mov rdi, rax
lea r14, [0x140195cb8]
test rax, rax
jne 0x14001ab3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
lea edx, [rdi + 1]
mov rcx, rsi
mov ebx, eax
call qword [r8]
test ebx, ebx
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], r14
setne byte [rsp + 0x34]
test ebx, ebx
jne 0x14001ac43
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp + 0x10], rax
mov qword [rsi + 0x10], rax
cmp qword [rbp + 0x10], 0
jne 0x14001ab8d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
mov ebx, eax
call qword [r8]
test ebx, ebx
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], r14
setne byte [rsp + 0x34]
test ebx, ebx
jne 0x14001ac55
xor ecx, ecx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea r8, [0x14001ac70]
mov r9, rsi
mov dword [rsp + 0x20], ecx
xor edx, edx
mov dword [rsp + 0x70], ecx
call fcn.14010bfd0
mov qword [rbp + 8], rax
test rax, rax
jne 0x14001ac02
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
mov ebx, eax
call qword [r8]
test rdi, rdi
je 0x14001abdf
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x14001abee
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], r14
setne byte [rsp + 0x34]
test ebx, ebx
jne 0x14001ac31
test rdi, rdi
je 0x14001ac1e
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
lea rdx, str.thread
lea rcx, [rsp + 0x30]
call fcn.14001a330
int3
lea rdx, str.thread.entry_event
lea rcx, [rsp + 0x30]
call fcn.14001a330
int3
lea rdx, str.thread.exit_event
lea rcx, [rsp + 0x30]
call fcn.14001a330
int3
Function at 0x14001b390
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov eax, ebx
lock xadd dword [rcx + 0x30], eax
test eax, eax
jne 0x14001b3e7
call fcn.14001b530
mov dword [rsp + 0x20], ebx
mov byte [rsp + 0x24], bl
lea rax, [0x140195cb8]
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov dword [rsp + 0x50], ebx
lea rcx, [rsp + 0x58]
call fcn.14008b1e0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rbx
lea rax, [rdi + 0x28]
test rdi, rdi
cmove rax, rbx
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov ecx, dword [0x1401c7a78]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x20]
mov ecx, dword [0x1401c7a78]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov r9, rsi
lea r8, [rsp + 0x38]
mov rcx, rdi
call fcn.14001b990
test rax, rax
je 0x14001b484
nop word [rax + rax]
lea rax, [rbx + 1]
cmp rbx, 0xffffffffffffffff
cmove rax, rbx
mov rbx, rax
mov r9, rsi
lea r8, [rsp + 0x38]
mov rcx, rdi
call fcn.14001b990
test rax, rax
jne 0x14001b460
mov rdx, qword [rsp + 0x30]
mov ecx, dword [0x1401c7a78]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rdi, [rsp + 0x38]
mov esi, 3
mov rcx, qword [rdi]
test rcx, rcx
je 0x14001b4ad
call fcn.1400ba1e0
add rdi, 8
sub rsi, 1
jne 0x14001b4a0
lea rcx, [rsp + 0x58]
call fcn.14008b2f0
mov rax, rbx
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x14001b5a0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rbx, [rcx + 0x28]
xor edi, edi
test rcx, rcx
mov ecx, dword [0x1401c7a78]
cmove rbx, rdi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001b5eb
cmp qword [rax], rbx
je 0x14001b5e7
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14001b5c8
test rdi, rdi
setne al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rdi, qword [rax + 8]
mov rbx, qword [rsp + 0x30]
test rdi, rdi
setne al
add rsp, 0x20
pop rdi
ret