joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140141780
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov qword [rsp + 0x58], r9
mov rdi, r8
mov qword [rsp + 0x40], rcx
mov rbx, qword [rdx + 0x10]
mov r15, qword [rdx + 0x18]
cmp r15, 0xffffffffffffffff
je 0x140141932
mov rax, qword [rsp + 0xe0]
mov r12d, 0xffffffff
cmp rax, r12
cmovb r12, rax
mov r13, qword [rdx + 0x20]
xorps xmm6, xmm6
lea rbp, [rsp + 0x48]
mov rcx, rbp
mov rdx, rbx
mov r8, rdi
mov r9b, 1
call fcn.140140e90
movzx eax, byte [rsp + 0x51]
cmp al, 3
je 0x14014194e
mov rsi, qword [rsp + 0x48]
cmp al, 2
je 0x140141965
movzx r14d, byte [rsp + 0x50]
mov dword [rsp + 0x48], 0
movups xmmword [rsp + 0x28], xmm6
mov dword [rsp + 0x20], 0
mov rcx, r15
mov rdx, qword [rsp + 0x58]
mov r8d, r12d
mov r9, rbp
call sub.ws2_32.dll_WSASend
cmp eax, 0xffffffff
jne 0x140141977
call sub.ws2_32.dll_WSAGetLastError
mov ebp, eax
shl rbp, 0x20
or rbp, 2
mov rcx, rbp
call fcn.14007fd60
cmp al, 0xd
jne 0x140141882
test r13, r13
je 0x140141882
mov rcx, qword [r13]
mov rdx, qword [r13 + 8]
lock inc qword [rdx]
jle 0x1401419b3
add rcx, 0x10
mov r8, qword [r13 + 0x10]
movzx r9d, byte [r13 + 0x18]
call fcn.14007ec00
test rax, rax
cmovne rbp, rax
mov rcx, rbp
call fcn.14007fd60
cmp al, 0xd
jne 0x14014198d
and esi, 0x23
mov rax, qword [rbx + 0xd0]
mov rcx, r14
shl rcx, 0x10
xor rsi, 0x2f
nop word [rax + rax]
mov edx, eax
shr edx, 0x10
cmp r14b, dl
jne 0x1401418cc
mov edx, eax
and edx, esi
or rdx, rcx
lock cmpxchg qword [rbx + 0xd0], rdx
jne 0x1401418b0
mov eax, ebp
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x1401417d0
test rax, rax
je 0x1401417d0
mov rsi, qword [rbp - 1]
mov r14, qword [rbp + 7]
mov rcx, rsi
call qword [r14]
cmp qword [r14 + 8], 0
je 0x140141919
cmp qword [r14 + 0x10], 0x11
jb 0x140141908
mov rsi, qword [rsi - 8]
mov rcx, qword [0x140222380]
xor edx, edx
mov r8, rsi
call sub.kernel32.dll_HeapFree
dec rbp
mov rcx, qword [0x140222380]
xor edx, edx
mov r8, rbp
call sub.kernel32.dll_HeapFree
jmp 0x1401417d0
lea rcx, [rsp + 0x48]
mov rdx, rbx
mov r8, rdi
mov r9b, 1
call fcn.140140e90
movzx eax, byte [rsp + 0x51]
cmp al, 3
jne 0x14014195c
mov rax, qword [rsp + 0x40]
mov qword [rax], 2
jmp 0x14014199d
cmp al, 2
jne 0x1401419b5
mov rsi, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov qword [rax], 1
mov qword [rax + 8], rsi
jmp 0x14014199d
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
mov qword [rcx], 0
mov qword [rcx + 8], rax
jmp 0x14014199d
mov rax, qword [rsp + 0x40]
mov qword [rax], 1
mov qword [rax + 8], rbp
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, str._home_drados_.cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.33.0_src_io_poll_evented.rs
mov edx, 0x2b
call fcn.140036810
int3
Function at 0x1401419d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x14016b2b8]
test ecx, ecx
je 0x1401419ff
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x140141a18
mov rsi, rax
cmp qword [rax + 8], 0
je 0x140141a18
add rsi, 8
jmp 0x140141b47
lea rcx, [0x14016b2a0]
call fcn.140113520
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x1401419ec
mov ecx, dword [0x14016b2b8]
test ecx, ecx
je 0x140141b28
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140141b45
mov rsi, rax
test rax, rax
jne 0x140141aad
movzx eax, byte [0x140222418]
mov rcx, qword [0x140222380]
test rcx, rcx
jne 0x140141a6a
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x140141b72
mov rcx, rax
mov qword [0x140222380], rax
mov r8d, 0x10
xor edx, edx
call fcn.140167f74
test rax, rax
je 0x140141b72
mov rsi, rax
lea rax, [0x14016b2a0]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14016b2b8]
test ecx, ecx
je 0x140141b50
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
movzx eax, byte [0x140222418]
mov rcx, qword [0x140222380]
test rcx, rcx
jne 0x140141ad8
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x140141b63
mov rcx, rax
mov qword [0x140222380], rax
mov r8d, 0x30
xor edx, edx
call fcn.140167f74
test rax, rax
je 0x140141b63
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 0x140141b47
lock dec qword [rcx]
jne 0x140141b47
call fcn.1400188d0
jmp 0x140141b47
lea rcx, [0x14016b2a0]
call fcn.140113520
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x140141a37
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14016b2a0]
call fcn.140113520
mov ecx, eax
jmp 0x140141aa5
mov ecx, 8
mov edx, 0x30
call fcn.1400315c0
mov ecx, 8
mov edx, 0x10
call fcn.1400315c0
int3
Function at 0x140167690
Capabilities:
Log keystrokes

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
xor eax, eax
test r9b, r9b
mov edi, 0xe000
cmove edi, eax
or edi, r8d
cmp dx, 0x10
je 0x1401676c8
movzx eax, dx
cmp eax, 0x11
je 0x1401676d8
cmp eax, 0x12
jne 0x1401676e4
movzx edx, r9b
or edx, 0xa4
jmp 0x14016773d
mov ecx, edi
mov edx, 3
call sub.user32.dll_MapVirtualKeyA
mov edx, eax
jmp 0x14016773d
movzx edx, r9b
or edx, 0xa2
jmp 0x14016773d
cmp edi, 0xe01c
jg 0x140167701
cmp edi, 0x45
je 0x140167713
cmp edi, 0x46
jne 0x14016773d
mov edi, 0x46
mov dx, 0x91
jmp 0x14016773d
cmp edi, 0xe01d
je 0x140167730
cmp edi, 0xe046
je 0x140167725
jmp 0x14016773d
cmp dx, 0x13
je 0x140167725
mov edi, 0x45
cmp eax, 0xff
jne 0x14016773d
mov edi, 0xe059
mov dx, 0x13
jmp 0x14016773d
mov edi, 0xe01d
xor eax, eax
cmp dx, 0x13
je 0x140167749
mov word [rsi + 4], dx
mov dword [rsi + 8], edi
mov eax, 1
mov dword [rsi], eax
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x140169d90
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
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.14016abf0
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.14016abf0
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 0x140169e00
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1402224a4]
mov rbx, rcx
test esi, esi
jle 0x140169f30
mov rax, qword [0x1402224a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140169e4b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140169ed5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140169e30
mov rcx, rbx
call fcn.14016a850
mov rdi, rax
test rax, rax
je 0x140169f52
mov rax, qword [0x1402224a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14016a990
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1402224a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140169f37
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140169ece
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140169ee0
add dword [0x1402224a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1402224a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140169ece
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140169d90
nop dword [rax]
xor esi, esi
jmp 0x140169e58
mov rax, qword [0x1402224a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140169d90
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140169d90
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14016a4c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140222500]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1402224e0]
test rbx, rbx
je 0x14016a51c
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 0x14016a513
test rsi, rsi
je 0x14016a513
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14016a4f8
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 0x14016a850
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140210700]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14016a870
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14016a878
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14016a870
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14016a8cd
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]
mov rdx, r8
cmp rcx, r8
jb 0x14016a8c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14016a870
add rax, 0x28
cmp rax, r9
jne 0x14016a8b0
xor eax, eax
ret

Function at 0x14016a8d0
Capabilities:
Parse pe header

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

Function at 0x14016a990
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140210700]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14016a9af
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14016a9b8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140041ef0]
mov dword [rax], 1
mov rax, qword [0x140041f00]
mov dword [rax], 1
mov rax, qword [0x140041f10]
mov dword [rax], 1
mov rax, qword [0x140041ee0]
mov dword [rax], 1
mov rax, qword [0x140041d70]
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 0x140009855
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
cmp qword [rbp + 0x18], 0
je 0x140009885
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.nimCStrLen_2
mov rdx, rax
jmp 0x14000988a
mov edx, 0
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rcx, qword [rbp + 0x10]
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140014bbb
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
lea rax, str.echoBinSafe
mov qword [rbp - 0x58], rax
lea rax, [0x14003d988]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov word [rbp - 0x40], 0
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.nimFrame_7
call sym.nimErrorFlag_5
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x50], 0xac5
lea rax, [0x14004b100]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x50], 0xd
lea rax, [0x14003e328]
mov qword [rbp - 0x48], rax
mov qword [rbp - 8], 0
mov qword [rbp - 0x50], 0xe
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x18]
jge 0x140014d48
mov qword [rbp - 0x50], 0xac6
lea rax, [0x14003d988]
mov qword [rbp - 0x48], rax
cmp qword [rbp - 8], 0
js 0x140014c7f
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x18]
jl 0x140014c98
mov rax, qword [rbp + 0x18]
lea rdx, [rax - 1]
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.raiseIndexError2
jmp 0x140014dd9
mov rax, qword [rbp - 8]
shl rax, 4
mov rdx, rax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov ecx, 1
mov rax, qword [sym.__acrt_iob_func]
call rax
mov rcx, rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rax + 8]
mov rax, qword [rax]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rdx
lea rax, [rbp - 0x80]
mov r8d, 0
mov rdx, rax
call sym.writeWindows__system_u9111
mov rax, qword [rbp - 0x10]
movzx eax, byte [rax]
movzx eax, al
test eax, eax
jne 0x140014dd8
mov qword [rbp - 0x50], 0x10
lea rax, [0x14003e328]
mov qword [rbp - 0x48], rax
mov edx, 0
mov rax, qword [rbp - 8]
add rax, 1
jno 0x140014d1d
mov edx, 1
mov rcx, rax
lea rax, [rbp - 0x68]
mov qword [rax], rcx
mov rax, rdx
and eax, 1
test al, al
je 0x140014d3b
call sym.raiseOverflow
jmp 0x140014dd9
mov rax, qword [rbp - 0x68]
mov qword [rbp - 8], rax
jmp 0x140014c4d
nop
mov qword [rbp - 0x50], 0xae1
lea rax, [0x14003d988]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x20], 0
mov ecx, 1
mov rax, qword [sym.__acrt_iob_func]
call rax
mov r9, rax
mov r8d, 1
mov edx, 1
lea rax, [0x14003e2c1]
mov rcx, rax
call sym.fwrite
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x50], 0xae2
mov dword [rbp - 0x24], 0
mov ecx, 1
mov rax, qword [sym.__acrt_iob_func]
call rax
mov rcx, rax
call sym.fflush
mov dword [rbp - 0x24], eax
mov qword [rbp - 0x50], 0xae6
lea rax, [0x14004b100]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140014dd9
nop
call sym.popFrame_7
nop
add rsp, 0xa0
pop rbp
ret
Function at 0x140027450
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 0x140028082
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14004b5a8]
test eax, eax
je 0x14002811a
lea rax, [0x14004b580]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14004b5b0]
mov qword [rbp - 8], rax
jmp 0x1400280fe
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 0x1400280f2
cmp qword [rbp - 0x10], 0
je 0x1400280f2
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 0x1400280b8
lea rax, [0x14004b580]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14002811b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140028220
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 0x140028248
mov eax, 0
jmp 0x140028296
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 0x140028271
mov eax, 0
jmp 0x140028296
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 0x140028291
mov eax, 0
jmp 0x140028296
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140030ddb
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 [0x14003b690], eax
mov eax, dword [0x14003b690]
cmp eax, 0xffffffff
jne 0x140030e02
call sym.abort
nop
add rsp, 0x20
pop rbp
ret

Function at 0x140030fb5
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, [0x14004c030]
mov rcx, rax
call sym._pthread_once_raw
mov eax, dword [0x14003b690]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140031008
mov rax, qword [rbp - 0x10]
jmp 0x140031168
call sym.pop_pthread_mem
mov qword [rbp - 0x10], rax
mov rax, qword [sym.__dyn_tls_pthread]
test rax, rax
je 0x140031024
cmp qword [rbp - 0x10], 0
jne 0x14003102e
mov eax, 0
jmp 0x140031168
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 0x140031109
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 [0x14003b690]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x140031164
call sym.abort
mov rax, qword [rbp - 0x10]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140032055
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, [0x14003b6a0]
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, [0x14004c030]
mov rcx, rax
call sym._pthread_once_raw
mov eax, dword [0x14003b690]
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 0x14003216a
mov qword [rbp - 0x10], pe_nt_image_headers64
lea rax, [0x14003b6a0]
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x140032138
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, [0x14003b6a0]
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 0x140032179
lea rax, [0x14003b6a0]
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 0x1400321b5
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 0x140032223
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 [0x14003b690]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x14003226d
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 0x14003226d
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rax, [0x14003b6a0]
mov rcx, rax
call sym.pthread_mutex_unlock
test eax, eax
je 0x14003225f
mov eax, dword [rbp - 0x14]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop