joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004e1b6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov eax, edx
mov qword [rbp + 0x20], r8
mov edx, r9d
mov byte [rbp + 0x18], al
mov eax, edx
mov byte [rbp + 0x28], al
movzx eax, byte [rbp + 0x28]
shl eax, 3
mov dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
lea edx, [rax - 1]
mov rax, qword [rbp + 0x10]
mov edx, edx
mov byte [rax + rdx + 0xc8], 0
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax + 0x190]
movzx eax, al
mov rdx, qword [rbp + 0x10]
cdqe
movzx ecx, byte [rbp + 0x18]
mov byte [rdx + rax + 0xc8], cl
mov eax, dword [rbp - 0xc]
lea edx, [rax - 1]
mov rax, qword [rbp + 0x10]
mov edx, edx
movzx eax, byte [rax + rdx + 0xc8]
mov edx, dword [rbp - 0xc]
lea ecx, [rdx - 1]
or eax, 0xffffff80
mov edx, eax
mov rax, qword [rbp + 0x10]
mov ecx, ecx
mov byte [rax + rcx + 0xc8], dl
mov eax, dword [rbp - 0xc]
lea edx, [rax - 1]
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax + 0x190]
movzx eax, al
add eax, 1
cmp eax, edx
jae 0x14004e29f
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax + 0x190]
movzx eax, al
mov edx, dword [rbp - 0xc]
sub edx, eax
lea eax, [rdx - 2]
mov ecx, eax
mov rax, qword [rbp + 0x10]
lea rdx, [rax + 0xc8]
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax + 0x190]
movzx eax, al
add rax, 1
add rax, rdx
mov r8, rcx
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
mov dword [rbp - 8], 0
jmp 0x14004e2e6
mov rax, qword [rbp + 0x10]
lea rdx, [rax + 0xc8]
mov eax, dword [rbp - 8]
shl eax, 3
mov eax, eax
add rax, rdx
mov rcx, rax
call fcn.14004df39
mov rdx, qword [rbp + 0x10]
mov ecx, dword [rbp - 8]
mov rdx, qword [rdx + rcx*8]
xor rax, rdx
mov rcx, rax
mov rax, qword [rbp + 0x10]
mov edx, dword [rbp - 8]
mov qword [rax + rdx*8], rcx
add dword [rbp - 8], 1
movzx eax, byte [rbp + 0x28]
cmp dword [rbp - 8], eax
jb 0x14004e2a8
mov dword [rbp - 4], 0
jmp 0x14004e324
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.14004cba0
mov r8d, dword [rbp - 0xc]
mov rax, qword [rbp + 0x10]
mov ecx, dword [rbp - 4]
mov rdx, qword [rbp + 0x20]
add rcx, rdx
mov rdx, rax
call sub.msvcrt.dll_memcpy
mov eax, dword [rbp - 0xc]
add dword [rbp - 4], eax
mov eax, dword [rbp + 0x30]
sub eax, dword [rbp - 4]
cmp eax, dword [rbp - 0xc]
jae 0x14004e2f8
mov eax, dword [rbp - 4]
cmp eax, dword [rbp + 0x30]
je 0x14004e362
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.14004cba0
mov eax, dword [rbp + 0x30]
sub eax, dword [rbp - 4]
mov r8d, eax
mov rax, qword [rbp + 0x10]
mov ecx, dword [rbp - 4]
mov rdx, qword [rbp + 0x20]
add rcx, rdx
mov rdx, rax
call sub.msvcrt.dll_memcpy
mov eax, 0
add rsp, 0x30
pop rbp
ret
Function at 0x14004ec99
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov dword [rbp - 4], 0xffffffff
mov dword [rbp - 8], 0
cmp qword [rbp + 0x20], 0
je 0x14004eccd
mov rax, qword [rbp + 0x20]
mov qword [rax], 0
cmp qword [rbp + 0x10], 0
je 0x14004ecdb
cmp qword [rbp + 0x18], 0
jne 0x14004ece5
mov eax, 0xffffff53
jmp 0x14004eea4
mov rax, qword [rbp + 0x10]
mov r8d, 0x280
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sub.msvcrt.dll_strlen
mov dword [rbp - 8], eax
cmp dword [rbp - 8], 0x102
jle 0x14004ed1e
mov eax, 0xffffff0c
jmp 0x14004eea4
mov rax, qword [rbp + 0x10]
lea rcx, [rax + 0x178]
mov rax, qword [rbp + 0x18]
mov r8d, 0x102
mov rdx, rax
call sub.msvcrt.dll_strncpy
mov eax, 0x105
sub eax, dword [rbp - 8]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
lea rcx, [rax + 0x178]
mov eax, dword [rbp - 8]
cdqe
add rax, rcx
mov r8, rdx
lea rdx, [0x1400ad2e3]
mov rcx, rax
call sub.msvcrt.dll_strncpy
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x10]
lea rcx, [rdx + 0x178]
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindFirstFileA]
call rax
mov rdx, qword [rbp + 0x10]
mov qword [rdx + 0x140], rax
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x140]
cmp rax, 0xffffffffffffffff
jne 0x14004edac
mov eax, 0xffffff0c
jmp 0x14004eea4
mov rax, qword [rbp + 0x10]
mov eax, dword [rax]
and eax, 0x10
test eax, eax
jne 0x14004ee72
mov rax, qword [rbp + 0x10]
add rax, 0x2c
mov rcx, rax
call sub.msvcrt.dll_strlen
mov dword [rbp - 0xc], eax
mov edx, dword [rbp - 8]
mov eax, dword [rbp - 0xc]
add eax, edx
cmp eax, 0x103
jle 0x14004ede9
mov eax, 0xffffff0c
jmp 0x14004eea4
mov eax, dword [rbp - 8]
cdqe
lea rdx, [rax + 1]
mov rax, qword [rbp + 0x10]
lea rcx, [rax + 0x178]
mov rax, qword [rbp + 0x18]
mov r8, rdx
mov rdx, rax
call sub.msvcrt.dll_strncpy
mov rdx, qword [rbp + 0x10]
mov eax, dword [rbp - 8]
cdqe
mov byte [rdx + rax + 0x178], 0x5c
mov eax, 0x104
sub eax, dword [rbp - 8]
movsxd rcx, eax
mov rax, qword [rbp + 0x10]
lea rdx, [rax + 0x2c]
mov rax, qword [rbp + 0x10]
lea r8, [rax + 0x178]
mov eax, dword [rbp - 8]
cdqe
add rax, 1
add rax, r8
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_strncpy
cmp qword [rbp + 0x20], 0
je 0x14004ee6b
mov rax, qword [rbp + 0x10]
lea rdx, [rax + 0x178]
mov rax, qword [rbp + 0x20]
mov qword [rax], rdx
mov eax, 0
jmp 0x14004eea4
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindNextFileA]
call rax
test eax, eax
jne 0x14004edac
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.14004f025
mov eax, dword [rbp - 4]
add rsp, 0x30
pop rbp
ret
Function at 0x140063694
Capabilities:
Hash data with md5

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov dword [rbp - 4], 0
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x4c], 0x67452301
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x50], 0xefcdab89
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x54], 0x98badcfe
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x58], 0x10325476
mov rax, qword [rbp + 0x10]
mov dword [rax], 0
mov rax, qword [rbp + 0x10]
mov dword [rax + 4], 0
mov rax, qword [rbp + 0x10]
mov dword [rax + 8], 0
mov eax, dword [rbp - 4]
add rsp, 0x10
pop rbp
ret

Function at 0x140063dcc
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
cmp qword [rbp + 0x10], 0
je 0x140063dee
cmp qword [rbp + 0x18], 0
jne 0x140063df8
mov eax, 0xffffff53
jmp 0x140063ef6
cmp dword [rbp + 0x20], 0x10
je 0x140063e0e
cmp dword [rbp + 0x20], 0x20
je 0x140063e0e
mov eax, 0xffffff53
jmp 0x140063ef6
mov rax, qword [rbp + 0x18]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov edx, dword [rax]
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x10], edx
mov rax, qword [rbp - 0x10]
mov edx, dword [rax + 4]
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x14], edx
mov rax, qword [rbp - 0x10]
mov edx, dword [rax + 8]
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x18], edx
mov rax, qword [rbp - 0x10]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x1c], edx
cmp dword [rbp + 0x20], 0x20
jne 0x140063e65
add qword [rbp - 0x10], 0x10
lea rax, str.expand_32_byte_kexpand_16_byte_k
mov qword [rbp - 8], rax
jmp 0x140063e70
lea rax, [0x1400ae850]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 0x10]
mov edx, dword [rax]
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], edx
mov rax, qword [rbp - 0x10]
mov edx, dword [rax + 4]
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x24], edx
mov rax, qword [rbp - 0x10]
mov edx, dword [rax + 8]
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x28], edx
mov rax, qword [rbp - 0x10]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x2c], edx
mov rax, qword [rbp - 8]
mov edx, dword [rax]
mov rax, qword [rbp + 0x10]
mov dword [rax], edx
mov rax, qword [rbp - 8]
add rax, 4
mov edx, dword [rax]
mov rax, qword [rbp + 0x10]
mov dword [rax + 4], edx
mov rax, qword [rbp - 8]
add rax, 8
mov edx, dword [rax]
mov rax, qword [rbp + 0x10]
mov dword [rax + 8], edx
mov rax, qword [rbp - 8]
add rax, 0xc
mov edx, dword [rax]
mov rax, qword [rbp + 0x10]
mov dword [rax + 0xc], edx
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x40], 0
mov eax, 0
add rsp, 0x10
pop rbp
ret
Function at 0x140079956
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov dword [rbp + 0x20], r8d
mov eax, dword [rbp + 0x18]
sub eax, 1
mov dword [rbp - 8], eax
mov eax, dword [rbp + 0x18]
cdqe
lea rdx, [rax - 1]
mov rax, qword [rbp + 0x10]
add rax, rdx
movzx eax, byte [rax]
mov byte [rbp - 0xa], al
mov eax, dword [rbp + 0x18]
sub eax, 1
sub eax, dword [rbp + 0x20]
mov edx, eax
movzx eax, byte [rbp - 0xa]
mov ecx, eax
call fcn.14006e730
mov byte [rbp - 9], al
cmp dword [rbp - 8], 0xff
jle 0x1400799b1
mov dword [rbp - 8], 0xff
mov dword [rbp - 4], 0
jmp 0x1400799ee
movzx edx, byte [rbp - 0xa]
mov eax, dword [rbp - 4]
mov ecx, eax
call fcn.14006e7a2
mov byte [rbp - 0xb], al
mov eax, dword [rbp + 0x18]
sub eax, 1
sub eax, dword [rbp - 4]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
movzx eax, byte [rax]
xor al, byte [rbp - 0xa]
and al, byte [rbp - 0xb]
or byte [rbp - 9], al
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cmp eax, dword [rbp - 8]
jl 0x1400799ba
movzx eax, byte [rbp - 9]
add rsp, 0x30
pop rbp
ret

Function at 0x140089682
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov dword [rbp + 0x28], r9d
mov r8d, dword [rbp + 0x28]
mov ecx, dword [rbp + 0x20]
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp + 0x10]
mov r9d, r8d
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
mov dword [rbp - 4], eax
mov rax, qword [rbp + 0x10]
mov edx, eax
mov eax, dword [rbp - 4]
mov ecx, eax
call fcn.140089440
mov dword [rbp - 4], eax
mov eax, dword [rbp - 4]
add rsp, 0x30
pop rbp
ret

Function at 0x1400896da
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov dword [rbp + 0x28], r9d
mov r8d, dword [rbp + 0x28]
mov ecx, dword [rbp + 0x20]
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp + 0x10]
mov r9d, r8d
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
mov dword [rbp - 4], eax
mov rax, qword [rbp + 0x10]
mov edx, eax
mov eax, dword [rbp - 4]
mov ecx, eax
call fcn.140089440
mov dword [rbp - 4], eax
mov eax, dword [rbp - 4]
add rsp, 0x30
pop rbp
ret

Function at 0x14008e410
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14009eee0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14009eee0
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x14008f0e2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400ca668]
test eax, eax
je 0x14008f17a
lea rax, [0x1400ca640]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400ca670]
mov qword [rbp - 8], rax
jmp 0x14008f15e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14008f152
cmp qword [rbp - 0x10], 0
je 0x14008f152
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14008f118
lea rax, [0x1400ca640]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14008f17b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14008f280
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14008f2a8
mov eax, 0
jmp 0x14008f2f6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14008f2d1
mov eax, 0
jmp 0x14008f2f6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14008f2f1
mov eax, 0
jmp 0x14008f2f6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14008f2fc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14008f37a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14008f371
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14008f371
mov rax, qword [rbp - 8]
jmp 0x14008f38f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14008f344
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400a00e0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x7b], 0
mov qword [rsp + 0x83], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x1400a01e2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x1400a01ba
add rax, 1
cmp rax, 0x6b
je 0x1400a01d7
cmp byte [rcx + rax], 0
jne 0x1400a01b0
lea edx, [rax + 1]
cmp eax, 0x6a
je 0x1400a01d7
cdqe
mov byte [rsp + rax + 0x20], 0xa
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov edx, 0x28
mov eax, 0x27
lea rcx, [rsp + 0x20]
jmp 0x1400a01c8

Function at 0x1400a0580
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1400cb1e0], 1
je 0x1400a05f8
lea rdi, [0x1400cb1e0]
mov rcx, rdi
call fcn.14009fe70
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.14009f810
mov esi, dword [0x1400cb1e0]
test esi, esi
jne 0x1400a0608
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400a63e8], eax
cmp eax, 0xffffffff
je 0x1400a5356
mov dword [0x1400cb1e0], 1
mov rcx, rbp
call fcn.14009fae0
test rbx, rbx
je 0x1400a05f8
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.1400a0200
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x1400a05d8
mov ecx, 2
call qword [fcn.14009eee0]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x1400a05d8
Function at 0x1400a0630
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.1400a0310
cmp qword [0x1400ce048], 0
mov rbx, rax
je 0x1400a0748
test rax, rax
je 0x1400a0748
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.1400a3e10
cmp eax, 1
je 0x1400a0756
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rsi
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je fcn.1400a535c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400a63e8]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400a075c
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.1400a00e0
nop
jmp fcn.1400a535c

Function at 0x1400a0770
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.1400a0580
mov ecx, dword [0x1400a63e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400a0790
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.1400a0630

Function at 0x1400a1510
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.1400a0580
mov ecx, dword [0x1400a63e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400a1538
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.1400a0630
test rax, rax
jne 0x1400a152a
add rsp, 0x28
ret

Function at 0x1400a15a0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.1400a0580
mov ecx, dword [0x1400a63e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400a15c8
add rax, 0x18
add rsp, 0x28
ret
call fcn.1400a0630
test rax, rax
jne 0x1400a15ba
jmp 0x1400a15be

Function at 0x1400a16e0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400cb1e8]
test eax, eax
jne 0x1400a16f8
xor eax, eax
add rsp, 0x28
ret
call fcn.1400a0580
mov ecx, dword [0x1400a63e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400a1728
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x1400a16ee
test byte [rax + 0x40], 3
je 0x1400a16ee
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x1400a16f0
call fcn.1400a0630
test rax, rax
jne 0x1400a170e
jmp 0x1400a16ee
Function at 0x1400a1740
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.1400a0580
mov ecx, dword [0x1400a63e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400a1780
test ebx, ebx
jle 0x1400a1770
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.1400a0630
test rax, rax
jne 0x1400a175d
add rsp, 0x20
pop rbx
ret

Function at 0x1400a1870
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.1400a0580
mov ecx, dword [0x1400a63e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400a18e8
test byte [rbx + 0x40], 0xc
jne 0x1400a189f
mov eax, dword [0x1400cb1e8]
test eax, eax
jne 0x1400a18b0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14009f810
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x1400a18d3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x1400a18d3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x1400a18fc
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14009fae0
call fcn.1400a0630
mov rbx, rax
test rax, rax
jne 0x1400a188f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x1400a191a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14009fae0
call fcn.1400a1790
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x1400a19a0
call fcn.1400a2fb0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x1400a19d8
call fcn.1400a0580
mov ecx, dword [0x1400a63e8]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400a1a30
test esi, esi
je 0x1400a19b6
call fcn.1400a1870
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400a1a10
mov edx, edi
call fcn.1400a3060
call fcn.1400a1870
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.1400a0580
mov ecx, dword [0x1400a63e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400a1a20
call fcn.1400a1870
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400a1870
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.1400a0580
mov ecx, dword [0x1400a63e8]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x1400a1975
call fcn.1400a0630
mov rbx, rax
jmp 0x1400a1975
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400a198e
call fcn.1400a0630
jmp 0x1400a19b6
call fcn.1400a0630
mov rbx, rax
jmp 0x1400a1971