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

Disassembly:
push rsi
push rbx
push rdi
sub rsp, 0x80
mov eax, 0x6f46a6c8
mov edx, 0x1be882de
mov r8d, edx
mov r9b, 0xdb
mov r10b, byte [rsp + 0x7f]
mov r11b, r10b
or r11b, r11b
mov byte [rsp + 0x7f], r11b
mov qword [rsp + 0x68], 0xb5ea1e3
mov dword [rsp + 0x5c], 0x6f46a6c8
mov r11b, r10b
add r11b, 0xe9
mov byte [rsp + 0x7f], r11b
sub r9b, r10b
mov rsi, qword [rsp + 0x68]
sub r8, rsi
mov byte [rsp + 0x7f], r9b
mov qword [rsp + 0x50], r8
mov di, word [rsp + 0x62]
or di, di
mov r8, qword [0x1400d9b18]
mov word [rsp + 0x62], di
mov edx, dword [rsp + 0x5c]
mov ebx, edx
add ebx, 0x6ffb992
mov dword [rsp + 0x64], ebx
sub eax, edx
mov dword [rsp + 0x4c], eax
mov word [rsp + 0x62], 0xc01a
cmp r8, 0
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x3c], edx
mov byte [rsp + 0x3b], r10b
mov qword [rsp + 0x30], r8
je 0x140003586
jmp 0x14000355e
mov eax, 0xbf91b247
mov ecx, dword [rsp + 0x5c]
mov byte [rsp + 0x7f], 4
mov rdx, qword [rsp + 0x68]
xor rdx, 0x21298a1b
mov r8b, byte [rsp + 0x3b]
mov byte [rsp + 0x7f], r8b
mov eax, 0x6ff8fbf2
mov ecx, dword [rsp + 0x5c]
mov edx, dword [rsp + 0x5c]
xor ecx, 0x3aacafde
mov word [rsp + 0x62], 0x95da
sub eax, edx
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], ecx
je 0x14000355e
jmp 0x140003518

Function at 0x140004dd8
Capabilities:
Encode data using xor

Disassembly:
mov word [rsp + 0x17e], bp
cmp rbx, rdi
invalid
invalid
sahf
cld
invalid
Function at 0x1400057d8
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push r14
push rbx
sub rsp, 0x68
xor eax, eax
mov r9d, eax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x60], 0x79b9589d
mov qword [rsp + 0x48], 0x1ff37919
mov r10, qword [rsp + 0x58]
mov r11, r10
sub r11, r11
mov qword [rsp + 0x58], r11
mov qword [rsp + 0x40], rdx
mov dword [rsp + 0x3c], r8d
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], r10
push rsp
and al, 0x28
mov dword [rsp + 0x24], eax
mov qword [rsp + 0x18], r9
jmp 0x1400057d0
mov rax, qword [rsp + 0x48]
mov cx, word [rsp + 0x52]
xor cx, 0xffff
mov word [rsp + 0x52], cx
xor rax, 0x1ff37939
mov dl, byte [rsp + 0x67]
add dl, 0xa7
mov r8, qword [rsp + 0x48]
xor r8, 0x1ff37918
mov r9, qword [rsp + 0x10]
add r9, r8
mov byte [rsp + 0x67], dl
cmp r9, rax
mov qword [rsp + 0x18], r9
je 0x140005808
jmp 0x1400057d0
mov eax, dword [rsp + 0xc]
mov dword [rsp + 8], eax
jmp 0x14000581b
mov rax, qword [rsp + 0x18]
lea rcx, [0x1400cc4d0]
insb byte [rdi], dx
or al, 0
mov dx, word [rsp + 0x52]
or dx, 0xd501
mov word [rsp + 0x52], dx
mov r8d, dword [rcx + rax*4]
mov r9d, dword [rsp + 0x3c]
cmp r8d, r9d
mov qword [rsp + 0x10], rax
mov dword [rsp + 0xc], r8d
jb 0x1400057c6
jmp 0x140005782
mov qword [rsp + 0x58], 0x635d3eef
add rsp, 0x68
pop rbx
pop r14
pop rdi
pop rsi
ret
mov eax, dword [rsp + 8]
lea rcx, [0x1400cc6d5]
mov dx, word [rsp + 0x52]
mov r8w, word [rsp + 0x52]
mov r9d, dword [rsp + 0x60]
sub dx, r8w
mov word [rsp + 0x52], dx
xor r9d, 0x79b95882
mov dx, word [rsp + 0x52]
sub dx, word [rsp + 0x52]
mov word [rsp + 0x52], dx
mov r10d, eax
and r10d, r9d
mov r9d, r10d
mov r11d, r9d
mov qword [rsp + 0x58], 0x50a930eb
mov bl, byte [rsp + 0x67]
mov sil, 0x50
mov dword [rsp + 4], eax
mov al, bl
mul sil
mov byte [rsp + 0x67], al
mov r9d, dword [rsp + 0x60]
mov qword [rsp + 0x58], 0x30be1f8a
mov al, byte [rsp + 0x67]
and al, 0x61
xor r9d, 0x79b958bd
mov bl, byte [rcx + r11]
mov r10d, dword [rsp + 4]
mov edi, r10d
mov ecx, edi
mov byte [rsp + 0x67], al
mov r11, qword [rsp + 0x28]
xor r11, 0x5bf0e0c9
mov r14, qword [rsp + 0x40]
mov al, byte [r14 + rcx]
sub al, bl
mov qword [rsp + 0x58], r11
mov r11, qword [rsp + 0x30]
mov byte [r11 + rcx], al
add r10d, r9d
mov r9d, dword [rsp + 0x3c]
cmp r10d, r9d
mov dword [rsp + 8], r10d
jb 0x14000581b
jmp 0x140005782
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140021150]
mov dword [rax], 1
mov rax, qword [0x140021160]
mov dword [rax], 1
mov rax, qword [0x140021170]
mov dword [rax], 1
mov rax, qword [0x140021140]
mov dword [rax], 1
mov rax, qword [0x140020ff0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
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 0x14000150a
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140003140
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov r13, rcx
mov r12, rdx
test rdx, rdx
je 0x140003161
mov rcx, rdx
call sym.strlen
mov r8, rax
mov rcx, r12
mov r9, r13
mov edx, 1
call sym.fwrite
mov rcx, r13
add rsp, 0x28
pop r12
pop r13
jmp sym.fflush

Function at 0x1400032b8
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x38
mov qword [rsp + 0x28], rdx
mov r13, rcx
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov r8, qword [rsp + 0x28]
mov rcx, r13
mov edx, 1
mov r12, rax
mov r9, rax
call sym.fwrite
mov rcx, r12
add rsp, 0x38
pop r12
pop r13
jmp sym.fflush

Function at 0x1400081a7
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x38
cmp qword [0x140028150], 0
jne 0x1400081c6
add rsp, 0x38
pop r12
pop r13
jmp sym.writeToStdErr__system_u3961
lea r13, [rsp + 0x20]
mov rdx, rcx
mov rcx, r13
call sym.cstrToNimstr
mov r12, qword [rsp + 0x28]
mov rcx, r13
call qword [0x140028150]
test r12, r12
je 0x1400081f9
test byte [r12 + 7], 0x40
jne 0x1400081f9
mov rcx, r12
call sym.deallocImpl__system_u1765
lea rcx, [0x14001e240]
call sym.__emutls_get_address
cmp byte [rax], 0
je 0x140008233
mov byte [rax], 0
lea rcx, [0x14001e140]
call sym.__emutls_get_address
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x38
pop r12
pop r13
jmp sym.eqcopy___stdZtypedthreads_u171
add rsp, 0x38
pop r12
pop r13
ret

Function at 0x14000823c
Capabilities:
Write file on windows

Disassembly:
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
lea rcx, [0x14001f655]
test rdx, rdx
je 0x140008253
lea rcx, [rax + 8]
jmp sym.showErrorMessage__system_u3966
Function at 0x14000a530
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x14000b162
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400282a8]
test eax, eax
je 0x14000b1fa
lea rax, [0x140028280]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400282b0]
mov qword [rbp - 8], rax
jmp 0x14000b1de
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 0x14000b1d2
cmp qword [rbp - 0x10], 0
je 0x14000b1d2
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 0x14000b198
lea rax, [0x140028280]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000b1fb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14000b300
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 0x14000b328
mov eax, 0
jmp 0x14000b376
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 0x14000b351
mov eax, 0
jmp 0x14000b376
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 0x14000b371
mov eax, 0
jmp 0x14000b376
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14000b37c
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 0x14000b3fa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14000b3f1
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 0x14000b3f1
mov rax, qword [rbp - 8]
jmp 0x14000b40f
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 0x14000b3c4
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140012d44
Capabilities:
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
cmp qword [rbp + 0x10], 0
je 0x140012e8e
mov rcx, qword [rbp + 0x10]
call sym.pthread_spin_destroy
cmp eax, 1
jne 0x140012e81
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
movabs rax, 0x6b5f6e6970732070
movabs rdx, 0x20726f6620737965
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
movabs rax, 0x20646165726874
mov edx, 0
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0
mov word [rbp - 8], 0
mov byte [rbp - 6], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov ecx, eax
lea rax, [rbp - 0x70]
add rax, 0x27
mov r8d, 0xa
mov rdx, rax
mov rax, qword [sym.imp.msvcrt.dll__ultoa]
call rax
mov dword [rbp - 4], 0x27
jmp 0x140012e37
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x70]
test al, al
je 0x140012e4d
mov eax, dword [rbp - 4]
cmp eax, 0x69
jbe 0x140012e33
mov eax, dword [rbp - 4]
cmp eax, 0x69
ja 0x140012e6c
mov eax, dword [rbp - 4]
cdqe
mov byte [rbp + rax - 0x70], 0xa
mov eax, dword [rbp - 4]
add eax, 1
cdqe
mov byte [rbp + rax - 0x70], 0
lea rax, [rbp - 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
call sym.abort
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rax], rdx
jmp 0x140012e8f
nop
add rsp, 0x90
pop rbp
ret
Function at 0x140013eab
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [sym.imp.KERNEL32.dll_TlsAlloc]
call rax
mov dword [0x14001e4b0], eax
mov eax, dword [0x14001e4b0]
cmp eax, 0xffffffff
jne 0x140013ed2
call sym.abort
nop
add rsp, 0x20
pop rbp
ret

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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xffffffffffffffff
lea rax, [sym.pthread_tls_init]
mov rdx, rax
lea rax, [0x140028d30]
mov rcx, rax
call sym._pthread_once_raw
mov eax, dword [0x14001e4b0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x1400140d8
mov rax, qword [rbp - 0x10]
jmp 0x140014238
call sym.pop_pthread_mem
mov qword [rbp - 0x10], rax
mov rax, qword [sym.__dyn_tls_pthread]
test rax, rax
je 0x1400140f4
cmp qword [rbp - 0x10], 0
jne 0x1400140fe
mov eax, 0
jmp 0x140014238
mov rax, qword [rbp - 0x10]
mov dword [rax + 0x44], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0x70], eax
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov rdx, qword [rbp - 0x10]
mov qword [rdx + 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 0x10]
lea rcx, [rax + 0x68]
mov rax, qword [rbp - 8]
mov rdx, rax
call sym.replace_spin_keys
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xb8], 0
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
lea rdi, [rax + 0x28]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rsi, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rdi
mov r8, rsi
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call rax
test eax, eax
jne 0x1400141d9
call sym.abort
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadPriority]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0xc0], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 0
mov rax, qword [rbp - 0x10]
movzx edx, byte [rax + 0x40]
and edx, 0xffffffcf
or edx, 0x10
mov byte [rax + 0x40], dl
mov eax, dword [0x14001e4b0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x140014234
call sym.abort
mov rax, qword [rbp - 0x10]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140014332
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x10], 0
mov rax, qword [rbp + 0x10]
mov dword [rbp - 4], eax
call sym.__pthread_self_lite
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp + 0x10]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call sym._pthread_cleanup_dest
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax + 0x40]
and eax, 0x30
test al, al
jne 0x14001439f
mov rax, qword [rbp - 0x18]
add rax, 0xd0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll_longjmp]
call rax
mov eax, dword [0x14001e4b0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x1400144e3
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x14001443c
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x1400143f7
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 0x10], 0
mov eax, dword [0x14001e4b0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x1400144e3
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 1
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x140014476
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x44]
and eax, 4
test eax, eax
je 0x1400144e3
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 0x10], 0
mov eax, dword [0x14001e4b0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x140015125
Capabilities:
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov dword [rbp - 0x14], 0
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
call sym._fpreset
lea rax, [0x14001e4c0]
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_lock
lea rax, [sym.pthread_tls_init]
mov rdx, rax
lea rax, [0x140028d30]
mov rcx, rax
call sym._pthread_once_raw
mov eax, dword [0x14001e4b0]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 8]
mov dword [rdx + 0x70], eax
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rdx, rbp
mov rax, qword [rbp - 8]
add rax, 0xd0
mov rcx, rax
call sym._setjmp
test eax, eax
jne 0x14001523a
mov qword [rbp - 0x10], pe_nt_image_headers64
lea rax, [0x14001e4c0]
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x140015208
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 0x10]
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov rcx, rax
call rdx
mov qword [rbp - 0x10], rax
nop
nop
lea rax, [0x14001e4c0]
mov rcx, rax
call sym.pthread_mutex_lock
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call sym._pthread_cleanup_dest
jmp 0x140015249
lea rax, [0x14001e4c0]
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov dword [rbp - 0x14], eax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x140015285
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x1400152f3
mov rax, qword [rbp - 8]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_destroy
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 8], 0
mov eax, dword [0x14001e4b0]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x14001533d
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_destroy
mov rax, qword [rbp - 8]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 8]
mov dword [rax + 0xbc], 1
jmp 0x14001533d
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rax, [0x14001e4c0]
mov rcx, rax
call sym.pthread_mutex_unlock
test eax, eax
je 0x14001532f
mov eax, dword [rbp - 0x14]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x140051f50
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140051f5d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140051f6d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140051f55
lea eax, [rcx + 1]
jmp 0x140051f7b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140051f8e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140051f74
sub eax, 3
jb 0x140051fae
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140051ffd
sar eax, 1
movsxd rbp, eax
jb 0x140051fe4
jmp 0x140051fbc
add ebx, ebx
jne 0x140051fba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140051fe4
inc ecx
add ebx, ebx
jne 0x140051fca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140051fe4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140051fdd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140051fcc
add ecx, 2
jmp 0x140051fe9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140051f12
jmp 0x140051f5d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x33200
mov dl, 0xa
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140052049
cmp rsi, rcx
jae 0x140052051
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140052030
cmp al, 0x8f
ja 0x140052030
cmp byte [rsi - 2], 0xf
je 0x140052036
sub al, 0xe8
cmp al, 1
ja 0x14005201a
cmp rsi, rcx
jae 0x140052051
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140052020
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140052051
lodsb al, byte [rsi]
jmp 0x140052030
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x4f000]
mov eax, dword [rdi]
or eax, eax
je 0x1400520ba
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x66950]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14005205e
jns 0x140052093
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14005209d
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1400520b4
mov qword [rbx], rax
add rbx, 8
jmp 0x14005207e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400520f4
cmp al, 0xef
ja 0x1400520e6
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400520c6
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400520d5
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x20f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140052148
sub rsp, 0xffffffffffffff80
jmp 0x14003322c