joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140025f74
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
test rcx, rcx
jne 0x140025fae
call fcn.14000f6b4
and dword [rax], 0
call fcn.14000f694
and qword [rsp + 0x20], 0
mov ebx, 0x16
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rax], ebx
call fcn.14000e5f8
mov eax, ebx
jmp 0x140025ffe
test edx, 0xfffffff9
jne 0x140025f81
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140025fd7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000f6d4
call fcn.14000f694
mov eax, dword [rax]
jmp 0x140025ffe
test al, 0x10
jne 0x140025ffc
test al, 1
je 0x140025ffc
test bl, 2
je 0x140025ffc
call fcn.14000f6b4
mov dword [rax], 5
call fcn.14000f694
mov dword [rax], 0xd
jmp 0x140025fce
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x112d058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0112d1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x112d089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x112d06f
add dl, dl
jne 0x112d096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x112d0f6
xor eax, eax
add dl, dl
jne 0x112d0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x112d1ad
add dl, dl
jne 0x112d0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x112d0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x112d0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x112d0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x112d0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x112d07e
mov eax, 1
add dl, dl
jne 0x112d106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x112d113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x112d0fb
sub eax, ebx
mov ebx, 1
jne 0x112d14c
mov ecx, 1
add dl, dl
jne 0x112d12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x112d13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x112d123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x112d07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x112d168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x112d175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x112d15d
cmp eax, 0x7d00
jae 0x112d19b
cmp eax, 0x500
jb 0x112d196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x112d07e
cmp eax, 0x7f
ja 0x112d19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x112d07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x112d1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x112d07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x183347058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1833471df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x183347089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18334706f
add dl, dl
jne 0x183347096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1833470f6
xor eax, eax
add dl, dl
jne 0x1833470a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1833471ad
add dl, dl
jne 0x1833470b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1833470c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1833470d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1833470dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1833470ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18334707e
mov eax, 1
add dl, dl
jne 0x183347106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x183347113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1833470fb
sub eax, ebx
mov ebx, 1
jne 0x18334714c
mov ecx, 1
add dl, dl
jne 0x18334712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18334713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x183347123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18334707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x183347168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x183347175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18334715d
cmp eax, 0x7d00
jae 0x18334719b
cmp eax, 0x500
jb 0x183347196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18334707e
cmp eax, 0x7f
ja 0x18334719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18334707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1833471d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x18334707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400436c0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x14009e240], rbx
je 0x14004370c
cmp rax, rbx
jne 0x1400436ff
mov ebx, 1
mov esi, ebx
jmp 0x140043711
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400436e4
mov ebx, 1
mov eax, dword [0x14009e248]
cmp eax, ebx
jne 0x140043727
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x14004378c
mov eax, dword [0x14009e248]
test eax, eax
jne 0x140043786
mov dword [0x14009e248], ebx
lea r15, [0x140053f60]
lea rdi, [0x140053f48]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140043778
test eax, eax
jne 0x14004377c
cmp qword [rdi], 0
je 0x14004376d
mov rax, qword [rdi]
mov rcx, qword [0x140053f18]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14004374e
test eax, eax
je 0x14004378c
mov eax, 0xff
jmp 0x140043868
mov dword [0x14007c4b4], ebx
mov eax, dword [0x14009e248]
cmp eax, ebx
jne 0x1400437b3
lea rdx, [0x140053f40]
lea rcx, [0x140053f20]
call sub.msvcrt.dll__initterm
mov dword [0x14009e248], 2
test esi, esi
jne 0x1400437c0
xor eax, eax
xchg qword [0x14009e240], rax
cmp qword [0x14009e260], 0
je 0x1400437f4
lea rcx, [0x14009e260]
call fcn.140044300
test eax, eax
je 0x1400437f4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14009e260]
mov r9, qword [0x140053f18]
call r9
mov r8, qword [0x14007c4c8]
mov rdx, qword [0x14007c4c0]
mov ecx, dword [0x14007c4b8]
call fcn.1400012fc
mov dword [0x14007c4b0], eax
cmp dword [0x14007c4d0], 0
jne 0x140043824
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14007c4b4], 0
jne 0x140043839
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14007c4b0]
jmp 0x140043868
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140221000
add rsp, 0x28
jmp 0x1400436c0

Function at 0x140043ea8
Capabilities:
Print debug messages

Disassembly:
jmp 0x140043eb4
push rbx
sub rsp, 0x540
mov rax, qword [0x14007c478]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x140043f31
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x140043f51
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.1400438c0
add rsp, 0x540
pop rbx
ret
Function at 0x401060
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor eax, eax
cmp word [0x00400000], 0x5a4d
mov dword [0x004a80b8], 1
mov dword [0x004a80b4], 1
mov dword [0x004a80b0], 1
mov dword [0x004a80c0], 1
je 0x401110
mov edx, dword [0x004a80d0]
mov dword [0x004a801c], eax
test edx, edx
je 0x401100
mov ecx, 2
call sym.__set_app_type
mov rcx, 0xffffffffffffffff
call dbg._encode_pointer
mov edx, dword [0x004a80e0]
mov qword [0x004a9440], rax
mov qword [0x004a9438], rax
mov rax, qword [sym.imp.msvcrt.dll__fmode]
mov dword [rax], edx
call dbg._setargv
mov eax, dword [0x004a8a10]
test eax, eax
je 0x4010f7
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x4010b3
movsxd rcx, dword [0x0040003c]
lea rdx, [0x00400000]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x401099
movzx ecx, word [rdx + 0x18]
cmp cx, 0x10b
je 0x401162
cmp cx, 0x20b
jne 0x401099
cmp dword [rdx + 0x84], 0xe
jbe 0x401099
mov ecx, dword [rdx + 0xf8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401099
cmp dword [rdx + 0x74], 0xe
jbe 0x401099
mov r8d, dword [rdx + 0xe8]
xor eax, eax
test r8d, r8d
setne al
jmp 0x401099
Function at 0x40a690
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
test r8, r8
mov rbx, rcx
mov rdi, rdx
mov rsi, r8
jne 0x40a6c0
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov ecx, dword [0x004a83c0]
test ecx, ecx
jle 0x40a7c7
mov rax, qword [0x004a83b8]
xor r12d, r12d
nop dword [rax + rax]
mov rdx, qword [rax + 8]
cmp rbx, rdx
jb 0x40a6fd
mov r8, qword [rax + 0x10]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x40a780
add r12d, 1
add rax, 0x18
cmp r12d, ecx
jne 0x40a6e0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov rbp, rax
je 0x40a7cf
movsxd r12, r12d
lea r12, [r12 + r12*2]
shl r12, 3
mov r13, r12
add r13, qword [0x004a83b8]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call dbg._GetPEImageBase
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x004a83b8]
mov rcx, qword [rax + r12 + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40a7de
mov eax, dword [rsp + 0x44]
cmp eax, 4
jne 0x40a7a0
add dword [0x004a83c0], 1
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.memcpy
cmp eax, 0x40
je 0x40a779
mov r9, qword [0x004a83b8]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
add r9, r12
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x40a779
xor r12d, r12d
jmp 0x40a70a
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call dbg.__report_error
mov rax, qword [0x004a83b8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + r12 + 8]
call dbg.__report_error
nop
nop word [rax + rax]

Function at 0x40ab10
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
je 0x40ab20
repz ret
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x40ab19
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x40b1a0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004a89a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004a89c8]
test rbx, rbx
je 0x40b1f4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rdi
mov rbp, rax
call rsi
test eax, eax
jne 0x40b1eb
test rbp, rbp
je 0x40b1eb
mov rax, qword [rbx + 8]
mov rcx, rbp
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x40b1d0
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x004a89a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax

Function at 0x40b470
Capabilities:
Check mutex on windows

Disassembly:
lea rcx, str.fc_static
xor r8d, r8d
mov edx, 8
jmp dbg.__shmem_grab

Function at 0x40b490
Capabilities:
Check mutex on windows

Disassembly:
lea rcx, str.fc_key
xor r8d, r8d
mov edx, 4
jmp dbg.__shmem_grab
Function at 0x40b4b0
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [dbg.__shmem_init_use_fc_key]
lea rcx, str.use_fc_key
mov edx, 4
jmp dbg.__shmem_grab

Function at 0x40b4d0
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [dbg.__shmem_init_sjlj_once]
lea rcx, str.sjlj_once
mov edx, 8
jmp dbg.__shmem_grab

Function at 0x40b4f0
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x004a89f0]
test rbx, rbx
je 0x40b580
mov r9d, dword [0x00488b10]
test r9d, r9d
je 0x40b560
test rbx, rbx
je 0x40b560
mov r8d, dword [rbx]
test r8d, r8d
jne 0x40b54a
mov eax, 1
lock xadd dword [rbx + 4], eax
cmp eax, 0xffffffff
je 0x40b594
mov ecx, dword [rbx]
mov rsi, qword [sym.imp.KERNEL32.dll_Sleep]
test ecx, ecx
jne 0x40b54a
nop dword [rax + rax]
xor ecx, ecx
call rsi
mov edx, dword [rbx]
test edx, edx
je 0x40b540
mov rax, qword [0x004a89f8]
test rax, rax
je 0x40b5f1
mov eax, dword [rax]
test eax, eax
jns 0x40b572
mov rax, qword [0x004a89f8]
test rax, rax
je 0x40b5e0
mov dword [rax], 0
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call dbg.__shmem_grabber_sjlj_once
mov rbx, rax
mov qword [0x004a89f0], rax
jmp 0x40b503
mov rsi, qword [0x004a89f8]
test rsi, rsi
je 0x40b621
mov rdi, qword [0x004a8a00]
test rdi, rdi
je 0x40b60a
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov ecx, eax
je 0x40b602
mov dword [rdi], eax
xor edx, edx
call dbg.__mingwthr_key_dtor
test eax, eax
sete al
movzx eax, al
mov dword [rsi], eax
mov dword [rbx], 1
jmp 0x40b54a
call dbg.__shmem_grabber_use_fc_key
mov qword [0x004a89f8], rax
jmp 0x40b56c
call dbg.__shmem_grabber_use_fc_key
mov qword [0x004a89f8], rax
jmp 0x40b55a
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40b5c6
nop word [rax + rax]
call dbg.__shmem_grabber_fc_key
mov rdi, rax
mov qword [0x004a8a00], rax
jmp 0x40b5b0
call dbg.__shmem_grabber_use_fc_key
mov rsi, rax
mov qword [0x004a89f8], rax
jmp 0x40b5a4
Function at 0x40b710
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov r14, qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov r13, qword [rcx + 0x10]
mov rdi, rcx
mov rbx, rdx
mov r12, qword [rcx + 0x18]
mov rax, qword [rdx]
mov r15, qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40b76a
mov rax, qword [0x004a8a00]
test rax, rax
je 0x40b8a2
mov rdx, rsi
mov ecx, dword [rax]
call r14
test eax, eax
je 0x40b831
mov rax, qword [rbx]
mov rax, qword [rax]
mov qword [rbx], rax
test rax, rax
je 0x40b820
mov rbp, qword [rax + 0x30]
xor esi, esi
mov edx, 0xa
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rbx
mov r9, rdi
mov r8, qword [rdi]
mov ecx, 1
call r13
test eax, eax
jne 0x40b860
cmp esi, 5
je 0x40b865
test rbp, rbp
je 0x40b7d7
mov qword [rsp + 0x20], rbx
mov r9, rdi
mov r8, qword [rdi]
mov edx, 0xa
mov ecx, 1
call rbp
cmp eax, 7
mov esi, eax
je 0x40b865
cmp eax, 8
jne 0x40b860
mov rax, qword [rbx]
mov rsi, qword [rax]
mov rax, qword [0x004a89f8]
test rax, rax
je 0x40b880
mov eax, dword [rax]
test eax, eax
js 0x40b840
mov rax, qword [0x004a89f8]
test rax, rax
je 0x40b851
mov ebp, dword [rax]
test ebp, ebp
jne 0x40b741
mov rax, qword [0x004a8a08]
test rax, rax
je 0x40b891
mov qword [rax], rsi
jmp 0x40b761
xor ebp, ebp
mov esi, 5
mov edx, 0x1a
jmp 0x40b77e
call r15
jmp 0x40b761
call dbg.fc_key_init_once
mov rax, qword [0x004a89f8]
test rax, rax
jne 0x40b7ff
call dbg.__shmem_grabber_use_fc_key
mov qword [0x004a89f8], rax
jmp 0x40b7ff
mov esi, 2
mov eax, esi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call dbg.__shmem_grabber_use_fc_key
mov qword [0x004a89f8], rax
jmp 0x40b7ed
call dbg.__shmem_grabber_fc_static
mov qword [0x004a8a08], rax
jmp 0x40b815
call dbg.__shmem_grabber_fc_key
mov qword [0x004a8a00], rax
jmp 0x40b751
Function at 0x40b8c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rax, qword [0x004a89f8]
mov rsi, rcx
test rax, rax
je 0x40b9a0
mov eax, dword [rax]
test eax, eax
js 0x40b990
mov rax, qword [0x004a89f8]
test rax, rax
je 0x40b9b1
mov eax, dword [rax]
test eax, eax
je 0x40b960
mov rax, qword [0x004a8a00]
test rax, rax
je 0x40b9c2
mov ebp, dword [rax]
mov rbx, qword [sym.imp.KERNEL32.dll_GetLastError]
call rbx
mov edi, eax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [0x004a8a00]
mov qword [rsi], rbp
test rax, rax
je 0x40ba00
mov rdx, rsi
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x40b980
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rax, qword [0x004a8a08]
test rax, rax
je 0x40b9d3
mov rdx, qword [rax]
mov qword [rsi], rdx
mov qword [rax], rsi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rdx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rdx
call dbg.fc_key_init_once
jmp 0x40b8e5
call dbg.__shmem_grabber_use_fc_key
mov qword [0x004a89f8], rax
jmp 0x40b8db
call dbg.__shmem_grabber_use_fc_key
mov qword [0x004a89f8], rax
jmp 0x40b8f5
call dbg.__shmem_grabber_fc_key
mov qword [0x004a8a00], rax
jmp 0x40b90b
call dbg.__shmem_grabber_fc_static
mov qword [0x004a8a08], rax
mov rdx, qword [rax]
test rax, rax
mov qword [rsi], rdx
jne 0x40b972
call dbg.__shmem_grabber_fc_static
mov qword [0x004a8a08], rax
jmp 0x40b972
call dbg.__shmem_grabber_fc_key
mov qword [0x004a8a00], rax
jmp 0x40b93e

Function at 0x40ba20
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x004a89f8]
mov rbx, qword [rcx]
test rax, rax
je 0x40bab0
mov eax, dword [rax]
test eax, eax
js 0x40ba94
mov rax, qword [0x004a89f8]
test rax, rax
je 0x40baa0
mov eax, dword [rax]
test eax, eax
je 0x40ba70
mov rax, qword [0x004a8a00]
test rax, rax
je 0x40bad0
mov rdx, rbx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x40ba85
add rsp, 0x20
pop rbx
ret
mov rax, qword [0x004a8a08]
test rax, rax
je 0x40bac1
mov qword [rax], rbx
add rsp, 0x20
pop rbx
ret
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x20
pop rbx
jmp rax
call dbg.fc_key_init_once
jmp 0x40ba3a
call dbg.__shmem_grabber_use_fc_key
mov qword [0x004a89f8], rax
jmp 0x40ba46
call dbg.__shmem_grabber_use_fc_key
mov qword [0x004a89f8], rax
jmp 0x40ba34
call dbg.__shmem_grabber_fc_static
mov qword [0x004a8a08], rax
jmp 0x40ba7c
call dbg.__shmem_grabber_fc_key
mov qword [0x004a8a00], rax
jmp 0x40ba58
Function at 0x40bbb0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rax, qword [0x004a89f8]
mov rbx, rcx
test rax, rax
je 0x40bcda
mov edx, dword [rax]
test edx, edx
js 0x40bcd0
mov rax, qword [0x004a89f8]
test rax, rax
je 0x40bcf1
mov eax, dword [rax]
test eax, eax
je 0x40bc80
mov rax, qword [0x004a8a00]
test rax, rax
je 0x40bd13
mov edi, dword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
mov qword [rsp + 0x30], rdi
je 0x40bc6c
lea rsi, [rsp + 0x30]
mov rax, rdi
nop dword [rax]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x40bc5a
mov qword [rsp + 0x20], rsi
mov r9, rbx
mov r8, qword [rbx]
mov edx, 1
mov ecx, 1
call rax
cmp eax, 6
je 0x40bc91
cmp eax, 8
jne 0x40bcc0
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
test rax, rax
mov qword [rsp + 0x30], rax
jne 0x40bc30
mov eax, 5
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
mov rax, qword [0x004a8a08]
test rax, rax
je 0x40bd02
mov rdi, qword [rax]
jmp 0x40bc1b
mov rax, qword [rsp + 0x30]
mov qword [rbx + 0x10], 0
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x30], rdi
mov qword [rbx + 0x18], rax
call dbg._Unwind_RaiseException_Phase2
cmp eax, 7
jne 0x40bc71
mov rcx, rsi
call sym.uw_install_context.isra.2
nop
mov eax, 3
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
call dbg.fc_key_init_once
jmp 0x40bbd4
nop word [rax + rax]
call dbg.__shmem_grabber_use_fc_key
mov qword [0x004a89f8], rax
jmp 0x40bbca
call dbg.__shmem_grabber_use_fc_key
mov qword [0x004a89f8], rax
jmp 0x40bbe4
call dbg.__shmem_grabber_fc_static
mov qword [0x004a8a08], rax
jmp 0x40bc8c
call dbg.__shmem_grabber_fc_key
mov qword [0x004a8a00], rax
jmp 0x40bbfe
Function at 0x40bd30
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rax, qword [0x004a89f8]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test rax, rax
je 0x40be01
mov r8d, dword [rax]
test r8d, r8d
js 0x40bde1
mov rax, qword [0x004a89f8]
test rax, rax
je 0x40bdf0
mov ecx, dword [rax]
test ecx, ecx
je 0x40bdd0
mov rax, qword [0x004a8a00]
test rax, rax
je 0x40be20
mov r12d, dword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebp
mov r12, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [rsp + 0x20]
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rdi
mov rcx, rbx
mov qword [rsp + 0x20], r12
call dbg._Unwind_ForcedUnwind_Phase2
cmp eax, 7
je 0x40be31
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [0x004a8a08]
test rax, rax
je 0x40be12
mov r12, qword [rax]
jmp 0x40bda4
call dbg.fc_key_init_once
jmp 0x40bd5f
call dbg.__shmem_grabber_use_fc_key
mov qword [0x004a89f8], rax
jmp 0x40bd6f
call dbg.__shmem_grabber_use_fc_key
mov qword [0x004a89f8], rax
jmp 0x40bd53
call dbg.__shmem_grabber_fc_static
mov qword [0x004a8a08], rax
jmp 0x40bddc
call dbg.__shmem_grabber_fc_key
mov qword [0x004a8a00], rax
jmp 0x40bd85
lea rcx, [rsp + 0x20]
call sym.uw_install_context.isra.2
nop
nop dword [rax]

Function at 0x40bf50
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x10], 0
mov rbx, rcx
jne 0x40bf70
call dbg._Unwind_SjLj_RaiseException
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
mov rax, qword [0x004a89f8]
test rax, rax
je 0x40c020
mov esi, dword [rax]
test esi, esi
js 0x40c000
mov rax, qword [0x004a89f8]
test rax, rax
je 0x40c031
mov r11d, dword [rax]
test r11d, r11d
jne 0x40bfd0
mov rax, qword [0x004a8a08]
test rax, rax
je 0x40c042
mov rdi, qword [rax]
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call dbg._Unwind_ForcedUnwind_Phase2
cmp eax, 7
je 0x40c010
call sym.abort
nop dword [rax]
mov rax, qword [0x004a8a00]
test rax, rax
je 0x40c053
mov edi, dword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40bfb1
call dbg.fc_key_init_once
jmp 0x40bf86
lea rcx, [rsp + 0x20]
call sym.uw_install_context.isra.2
nop word [rax + rax]
call dbg.__shmem_grabber_use_fc_key
mov qword [0x004a89f8], rax
jmp 0x40bf80
call dbg.__shmem_grabber_use_fc_key
mov qword [0x004a89f8], rax
jmp 0x40bf96
call dbg.__shmem_grabber_fc_static
mov qword [0x004a8a08], rax
jmp 0x40bfae
call dbg.__shmem_grabber_fc_key
mov qword [0x004a8a00], rax
jmp 0x40bfdc