joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b0924
Capabilities:
Encode data using xor

Disassembly:
xchg rsi, rbx
mov qword [rsp + 0x10], rsi
xchg rsi, rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov r13, r13
nop
mov qword [rsp - 8], rbp
sub rsp, 8
mov rbp, rsp
xchg r10, r10
sub rsp, 0x50
xor esi, esi
mov dword [rbp - 0x30], 0x397a7492
xor dword [rbp - 0x30], 0x64bc4df5
sub dword [rbp - 0x30], 0x205cfd89
add dword [rbp - 0x30], 0x26c44b6f
xor dword [rbp - 0x30], 0x641087c6
mov dword [rbp - 0x2c], 0x571b3bbe
add dword [rbp - 0x2c], 0x14e3a1
sub dword [rbp - 0x2c], 0x31d53b54
xor dword [rbp - 0x2c], 0x42d3a88f
sub dword [rbp - 0x2c], 0x67744c69
mov rbx, rcx
mov dword [rsp - 0x38], ecx
mov dword [rbp - 0x28], 0x2bb049fe
sub dword [rbp - 0x28], 0x4286c5f
xor dword [rbp - 0x28], 0x690c2a79
xor dword [rbp - 0x28], 0x4ef7f709
mov dword [rbp - 0x24], 0x4d249428
sub dword [rbp - 0x24], 0x5bd4943
add dword [rbp - 0x24], 0x31c72fa4
sub dword [rbp - 0x24], 0x79007a82
mov dword [rbp - 0x20], 0x3ff66976
xor dword [rbp - 0x20], 0x64ad6b47
xor dword [rbp - 0x20], 0x3c4799f
sub dword [rbp - 0x20], 0x19c16ab8
xor dword [rbp - 0x20], 0x3efc1046
mov qword [rbp + 0x10], rsi
mov rbp, rbp
xchg r9, rax
mov r9, qword [rbp + 0x10]
xchg r9, rax
xchg r10, rcx
mov r10, qword [rbp + 0x10]
xchg r10, rcx
mov edx, 0x11f296f3
add edx, 0x225a7628
add edx, 0xbfb9db7
add edx, 0x9e0a40a
xchg r11, rax
mov r11, qword [rbp + 0x10]
xchg r11, rax
and cl, 3
shl cl, 2
shl cl, 1
shr edx, cl
movzx ecx, dl
mov dword [rsp - 0x20], 0x15607848
xor cx, word [rbp + rax*2 - 0x30]
xchg rsi, rax
mov rsi, qword [rbp + 0x10]
xchg rsi, rax
mov word [rbp + rax*2 - 0x1c], cx
mov dword [rsp - 0x18], esp
xchg r13, rax
mov r13, qword [rbp + 0x10]
xchg r13, rax
inc rax
mov dword [rsp - 0x1c], ebp
mov qword [rbp + 0x10], rax
mov rax, qword [rbp + 0x10]
cmp rax, 0xa
mov r8, r8
jb 0x1400b0a09
xor edx, edx
mov word [rbp - 8], si
lea rcx, [rbp - 0x1c]
mov dword [rsp - 0x28], 0x49f9d7ae
call fcn.140076a70
xchg r8, rax
mov rax, r8
xchg r8, rax
mov qword [rbx + 0x200], rax
xor eax, eax
lea rdi, [rbp - 0x1c]
mov dword [rsp - 0x24], esp
lea ecx, [rax + 0xa]
rep stosb byte [rdi], al
test r8, r8
je 0x1400b0b18
mov dword [rsp - 0x20], 0x69c8861d
lea rdx, [rbx + 0x208]
xchg rdi, rcx
mov rdi, r8
xchg rdi, rcx
call fcn.1400b11c4
mov r15, r15
test al, al
jne 0x1400b0b0e
xchg rsp, rcx
mov rsp, qword [rbx + 0x200]
xchg rcx, rsp
call fcn.140078f00
xor al, al
mov dword [rsp - 0x38], 0xbd32fb0
mov qword [rbx + 0x200], rsi
jmp 0x1400b0b18
mov al, 0x50
xor al, 0x47
xor al, 0x44
xor al, 0x7b
xor al, 0x29
xchg r12, rbx
mov r12, qword [rsp + 0x68]
xchg rbx, r12
xchg rcx, rsi
mov rcx, qword [rsp + 0x70]
xchg rsi, rcx
mov rdi, qword [rsp + 0x78]
xchg rsi, rsi
nop
add rsp, 0x7d02ced
sub rsp, 0x7d02c9d
nop
add rsp, 8
mov rbp, qword [rsp - 8]
ret
Function at 0x1400b0fbc
Capabilities:
Encode data using xor

Disassembly:
xchg r11, rbx
mov qword [rsp + 0x10], r11
xchg rbx, r11
push rdi
add rsp, 0xfffffffffffffec0
mov r10, r10
xchg rdi, r8
mov r8, rdi
xchg r8, rdi
xchg rdi, rcx
mov rbx, rdi
xchg rcx, rdi
mov r8d, 0x33f5bf1f
add r8d, 0x3f6cd111
xor r8d, 0x1206a68e
sub r8d, 0x107ea34f
sub r8d, 0x50e5926f
lea rcx, [rsp + 0x40]
mov dword [rsp - 0x24], ebp
xor edx, edx
call fcn.1400844a0
mov rax, qword [rbx + 0x238]
mov dword [rsp - 0x3c], 0x489f5507
lea r8, [rsp + 0x40]
mov edx, dword [rdi + 0x10]
not rax
ror rax, 0x19
ror rax, 2
ror rax, 2
ror rax, 6
ror rax, 2
ror rax, 1
ror rax, 1
movabs rcx, 0x19492a84523f80ef
sub rcx, 0x2339ae5b
xor rcx, 0xb7ae320
xor rcx, 0x18955688
add rcx, 0x7fffffff
add rcx, 0x42232935
not rax
mov dword [rsp + 0x30], 0x142bc04
add dword [rsp + 0x30], 0x71651f67
sub dword [rsp + 0x30], 0x49394f40
sub dword [rsp + 0x30], 0x296e8c29
and dword [rsp + 0x28], 0
mov r9d, 0x79c81625
add r9d, 0x1aebdb5
sub r9d, 0x44def9ae
xor r9d, 0x3697db2c
and qword [rsp + 0x20], 0
mov dword [rsp - 0x20], ebx
ror rax, 7
ror rax, 8
ror rax, 2
ror rax, 1
ror rax, 1
not rax
mov dword [rsp - 0x14], 0x5e17e08f
sub rax, rcx
xchg rbx, rcx
mov rbx, qword [rdi + 0x20]
xchg rbx, rcx
call rax
test eax, eax
mov dword [rsp - 0x3c], 0x72409423
jne 0x1400b1194
or eax, 0xffffffff
lea rbx, [rsp + 0x40]
xchg r14, r14
cmp byte [rsp + 0x40], 0
mov dword [rsp + 0x150], eax
je 0x1400b116a
mov rdx, rbx
mov dword [rsp - 0x18], 0x4ddbb1ec
lea rcx, [rsp + 0x150]
mov r8d, 0x2aaa532c
xor r8d, 0x20c2b060
add r8d, 0x36c84da4
sub r8d, 0x413130ef
inc rbx
call fcn.14007a560
mov rcx, rcx
cmp byte [rbx], 0
jne 0x1400b111d
mov eax, dword [rsp + 0x150]
mov dword [rsp - 0x40], esp
not eax
cmp eax, 0xa2ca6717
je 0x1400b1187
cmp eax, 0xd7b7e7a8
mov rdi, rdi
sete al
jmp 0x1400b119a
mov al, 0x32
sub al, 0x17
add al, 0x3b
xor al, 0x57
jmp 0x1400b119a
xor al, al
mov dword [rsp - 0x10], esi
xchg rdx, rbx
mov rdx, qword [rsp + 0x158]
xchg rbx, rdx
sub rsp, 0x60e36b83
add rsp, 0x60e36cc3
nop
add rsp, 8
mov rdi, qword [rsp - 8]
ret

Function at 0x1400b5600
Capabilities:
Encrypt data using curve25519

Disassembly:
xchg rdx, rbx
mov qword [rsp + 8], rdx
xchg rbx, rdx
push rdi
add rsp, 0x113360e4
sub rsp, 0x113361a4
xchg r8, rax
mov r8, rax
xchg r8, rax
xchg r9, rdx
mov rbx, r9
xchg rdx, r9
xchg rdx, r8
mov rdx, r8
xchg rdx, r8
xchg rdi, r14
mov r14, rcx
xchg r14, rdi
mov edx, 0x2fb1cf27
add edx, 0x9291ce2
xor edx, 0x1a0b042a
sub edx, 0x22d1e803
xchg r8, rcx
mov r8, rax
xchg r8, rcx
call fcn.1400b5e80
xchg rdx, rdx
movzx eax, byte [rbx + 0x1f]
lea rcx, [rsp + 0x20]
and byte [rbx], 0xf8
mov dword [rsp - 0xc], 0x30bc3ab8
and al, 0x3f
or al, 0x40
xchg r12, rdx
mov r12, rbx
xchg r12, rdx
mov byte [rbx + 0x1f], al
call fcn.1400b9160
mov dword [rsp - 0x18], 0x464f301f
lea rdx, [rsp + 0x20]
xchg rdi, rcx
mov rdi, rcx
xchg rcx, rdi
call fcn.1400b9090
xchg r8, rbx
mov r8, qword [rsp + 0xd0]
xchg rbx, r8
neg rsp
add rsp, 0xffffffffffffff40
neg rsp
nop
add rsp, 8
mov rdi, qword [rsp - 8]
ret
Function at 0x1400cba74
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp - 0x38], 0x155ce30
mov qword [rsp + 0x18], rsi
xchg rdi, rbp
mov qword [rsp + 0x20], rbp
xchg rdi, rbp
push rbp
mov dword [rsp - 0x20], ecx
xchg rsp, rbp
mov rsp, rbp
xchg rbp, rsp
sub rsp, 0x80
mov dword [rsp - 0x30], ecx
xor esi, esi
mov dword [rbp - 0x50], 0x3427397f
add dword [rbp - 0x50], 0x36a2111d
xor dword [rbp - 0x50], 0x61720432
sub dword [rbp - 0x50], 0xb9f4e22
mov dword [rbp - 0x4c], 0x102d7c4
add dword [rbp - 0x4c], 0x5a4cf827
sub dword [rbp - 0x4c], 0x2b789669
xor dword [rbp - 0x4c], 0x2fde39e4
mov dword [rbp - 0x48], 0x7712c2d
xor dword [rbp - 0x48], 0x24aad1c7
xor dword [rbp - 0x48], 0x3b249566
add dword [rbp - 0x48], 0x66458c6d
xor dword [rbp - 0x48], 0x7f52f460
mov dword [rbp - 0x44], 0x6732ab40
sub dword [rbp - 0x44], 0x4c878064
add dword [rbp - 0x44], 0xe984f96
xor dword [rbp - 0x44], 0x683223db
xor dword [rbp - 0x44], 0x417759d0
xchg rsi, r12
mov qword [rbp + 0x10], r12
xchg r12, rsi
lea ebx, [rsi + 1]
xchg rcx, rax
mov rcx, qword [rbp + 0x10]
xchg rcx, rax
mov rcx, qword [rbp + 0x10]
mov edx, 0x6f65c6ee
sub edx, 0xd50b0ba
sub edx, 0x316165d1
xor edx, 0x40307df9
xor edx, 0x3aaa8346
mov rax, qword [rbp + 0x10]
xchg r9, r9
and cl, 3
shl cl, 1
shl cl, 2
shr edx, cl
mov dword [rsp - 0xc], edx
movzx ecx, dl
xor cx, word [rbp + rax*2 - 0x50]
mov rax, qword [rbp + 0x10]
mov word [rbp + rax*2 - 0x20], cx
mov rbp, rbp
xchg r15, rax
mov r15, qword [rbp + 0x10]
xchg r15, rax
add rax, rbx
mov rdx, rdx
xchg r8, rax
mov qword [rbp + 0x10], r8
xchg r8, rax
mov rax, qword [rbp + 0x10]
xchg r13, r13
cmp rax, 8
jb 0x1400cbb3f
lea rax, [rbp - 0x20]
mov dword [rsp - 0x24], ecx
mov word [rbp - 0x10], si
xorps xmm0, xmm0
xchg r13, rax
mov qword [rbp - 0x38], r13
xchg r13, rax
lea r9, [rbp - 0x30]
mov dword [rbp - 0x40], 0x788fca0e
sub dword [rbp - 0x40], 0x6aff6d26
add dword [rbp - 0x40], 0x6bf1b939
sub dword [rbp - 0x40], 0x6b2f33e7
xor dword [rbp - 0x40], 0xe40e22a
lea r8, [rbp - 0x40]
xchg rcx, rcx
mov dword [rsp + 0x20], esi
xor edx, edx
xor ecx, ecx
movups xmmword [rbp - 0x30], xmm0
mov dword [rsp - 0xc], 0x6ac3ed42
call fcn.1400d12c0
xchg rdi, r15
mov r15, rax
xchg rdi, r15
test rax, rax
je 0x1400cbc57
xchg rbx, rbx
xchg r12, rax
mov rcx, r12
xchg r12, rax
call fcn.1400c2b6c
mov dword [rsp - 0x18], edx
test al, al
je 0x1400cbc57
lea rdx, [rbp - 0x40]
mov rcx, rdi
mov dword [rsp - 0x14], 0x1dda288f
call fcn.1400c1a94
test al, al
jne 0x1400cbc5d
mov bl, sil
mov r8, r8
xor eax, eax
lea r11, [rsp + 0x80]
mov rsi, qword [r11 + 0x20]
mov dword [rsp - 0xc], esi
lea rdi, [rbp - 0x20]
lea ecx, [rax + 8]
rep stosb byte [rdi], al
xchg rbp, rbp
xchg rdi, r8
mov r8, qword [r11 + 0x28]
xchg rdi, r8
mov al, bl
mov rbx, qword [r11 + 0x18]
mov dword [rsp - 0x20], 0x11eb48e3
xchg r11, rsp
mov r11, rsp
xchg rsp, r11
nop
add rsp, 8
mov rbp, qword [rsp - 8]
ret
Function at 0x1400d12c0
Capabilities:
Execute syscall

Disassembly:
xchg rcx, rdi
mov r10, rdi
xchg rdi, rcx
mov eax, dword [0x1400db7a4]
cmp qword [0x1400db698], 0
jne 0x1400805d0
mov dword [rsp - 0x10], 0x2507729c
syscall
ret
jmp 0x1400810e3
Function at 0x14000b1b0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140015090
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140015090
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x14000b220
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400e00a4]
test esi, esi
mov rbx, rcx
jle 0x14000b350
mov rax, qword [0x1400e00a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000b26b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000b2f5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000b250
mov rcx, rbx
call fcn.14000bc70
test rax, rax
mov rdi, rax
je 0x14000b372
mov rax, qword [0x1400e00a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000bdb0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400e00a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000b357
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000b2ee
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000b300
add dword [0x1400e00a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x1400e00a8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000b2ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000b1b0
nop dword [rax]
xor esi, esi
jmp 0x14000b278
mov rax, qword [0x1400e00a8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.14000b1b0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.14000b1b0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000b8e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400e0100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400e00e0]
test rbx, rbx
je 0x14000b93c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14000b933
test rsi, rsi
je 0x14000b933
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000b918
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000bc70
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400ba490]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000bc90
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000bc98
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000bc90
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000bced
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x14000bce4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000bc90
add rax, 0x28
cmp rax, r9
jne 0x14000bcd0
xor eax, eax
ret

Function at 0x14000bcf0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400ba490]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000bd0f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000bd18
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000bd0f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14000bdb0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400ba490]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000bdcf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000bdd8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1400175c0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
mov qword [rsp + 0x20], rax
movabs rax, 0x7520676e696e6165
mov qword [rsp + 0x28], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x30], rax
movabs rax, 0x20726f6620737965
mov qword [rsp + 0x38], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
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 + 0x78], 0
mov dword [rsp + 0x87], 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 0x1400176ca
lea rcx, [rsp + 0x20]
mov eax, 0x28
jmp 0x1400176a2
add rax, 1
cmp rax, 0x6b
je 0x1400176bf
cmp byte [rcx + rax], 0
jne 0x140017698
cmp eax, 0x6a
movsxd rdx, eax
je 0x1400176bf
add eax, 1
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
lea rcx, [rsp + 0x20]
mov eax, 0x28
mov edx, 0x27
jmp 0x1400176b3
Function at 0x140017a40
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1400e0d20], 1
je 0x140017ab8
lea rdi, [0x1400e0d20]
mov rcx, rdi
call fcn.140017340
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.140016c50
mov esi, dword [0x1400e0d20]
test esi, esi
jne 0x140017ac8
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x1400b2158], eax
je 0x1400b1a06
mov dword [0x1400e0d20], 1
mov rcx, rbp
call fcn.140016f40
test rbx, rbx
je 0x140017ab8
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.1400176e0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x140017a98
mov ecx, 2
call qword [fcn.140015090]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x140017a98
call sub.msvcrt.dll_abort
nop

Function at 0x140017af0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.1400177f0
cmp qword [0x1400e3048], 0
mov rbx, rax
je 0x140017c08
test rax, rax
je 0x140017c08
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.140017240
cmp eax, 1
je 0x140017c16
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
lea r9, [rbx + 0x28]
mov rcx, rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je fcn.1400b1a0c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400b2158]
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 0x140017c1c
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.1400175c0
nop
jmp fcn.1400b1a0c

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

Disassembly:
sub rsp, 0x28
call fcn.140017a40
mov ecx, dword [0x1400b2158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140017c50
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140017af0
Function at 0x1400183c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
test rdx, rdx
mov rbx, rcx
mov rsi, rdx
je 0x1400184e8
cmp eax, 1
je 0x14001841b
call fcn.140017340
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.140016c50
mov r12d, dword [rbx]
test r12d, r12d
je 0x140018430
cmp r12d, 1
jne 0x1400184c0
mov rcx, rbp
call fcn.140016f40
test rdi, rdi
je 0x14001841b
mov rcx, rdi
call fcn.1400176e0
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x1400177c0]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140017a40
mov ecx, dword [0x1400b2158]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x140018528
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.140017a40
mov ecx, dword [0x1400b2158]
call r12
test rax, rax
je 0x140018510
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.140017a40
mov ecx, dword [0x1400b2158]
call r12
test rax, rax
je 0x140018500
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x140018406
mov ecx, 2
call qword [fcn.140015090]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x140018406
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140017af0
test rax, rax
jne 0x1400184a9
jmp 0x1400b1a25
call fcn.140017af0
test rax, rax
jne 0x140018485
jmp 0x1400b1a3e
call fcn.140017af0
test rax, rax
jne 0x14001845f
jmp 0x1400b1a34
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2

Function at 0x1400187b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.140017a40
mov ecx, dword [0x1400b2158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140018828
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.140017250
cmp esi, dword [rbx + 0x48]
jae 0x140018803
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x140018803
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.140017290
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140017af0
mov rbx, rax
jmp 0x1400187dd
Function at 0x140018840
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.140017a40
mov ecx, dword [0x1400b2158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140018950
lea r14, [rbx + 0x68]
mov rcx, r14
call fcn.140017250
cmp esi, dword [rbx + 0x48]
jae 0x1400188d0
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r14
mov byte [rax + rsi], 1
call fcn.140017290
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rbx + 0x50]
lea r15d, [rsi + 1]
movsxd r13, r15d
lea rdx, [r13*8]
call sub.msvcrt.dll_realloc
test rax, rax
mov rdi, rax
je 0x14001895d
mov rcx, qword [rbx + 0x58]
mov rdx, r13
movq xmm6, rdi
call sub.msvcrt.dll_realloc
movq xmm0, rax
test rax, rax
mov r13, rax
punpcklqdq xmm6, xmm0
je 0x14001895d
mov eax, dword [rbx + 0x48]
mov edx, r15d
lea rcx, [rdi + rax*8]
sub edx, eax
lea r8, [rdx*8]
xor edx, edx
call sub.msvcrt.dll_memset
mov edx, dword [rbx + 0x48]
mov r8d, r15d
lea rcx, [r13 + rdx]
sub r8d, edx
xor edx, edx
call sub.msvcrt.dll_memset
movaps xmmword [rbx + 0x50], xmm6
mov dword [rbx + 0x48], r15d
jmp 0x140018894
call fcn.140017af0
mov rbx, rax
jmp 0x14001887f
mov rcx, r14
call fcn.140017290
mov eax, 0xc
jmp 0x1400188b2

Function at 0x1400189e0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140017a40
mov ecx, dword [0x1400b2158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140018a08
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.140017af0
test rax, rax
jne 0x1400189fa
add rsp, 0x28
ret

Function at 0x140018a70
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140017a40
mov ecx, dword [0x1400b2158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140018a98
add rax, 0x18
add rsp, 0x28
ret
call fcn.140017af0
test rax, rax
jne 0x140018a8a
jmp 0x140018a8e

Function at 0x140018bb0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400e0d28]
test eax, eax
jne 0x140018bc8
xor eax, eax
add rsp, 0x28
ret
call fcn.140017a40
mov ecx, dword [0x1400b2158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140018bf8
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x140018bbe
test byte [rax + 0x40], 3
je 0x140018bbe
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x140018bc0
call fcn.140017af0
test rax, rax
jne 0x140018bde
jmp 0x140018bbe