joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140020cd0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
movsxd rdi, r8d
mov rsi, rdx
mov rbx, rcx
mov dword [rsp + 0x50], ebp
cmp dword [rcx + 0x24], ebp
jne 0x140020e0e
cmp dword [rcx + 0x1c], 1
jne 0x140020d23
mov eax, dword [rcx + 0x14]
mov rcx, qword [rcx]
lea r9d, [rbp + 1]
neg eax
lea r8, [rsp + 0x6c]
cdqe
mov edx, eax
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x1c], ebp
mov dword [rbx + 0x14], eax
mov ecx, dword [rbx + 0x14]
cmp ecx, edi
jle 0x140020daf
mov eax, dword [rbx + 0x10]
mov edx, edi
sub eax, ecx
movsxd rcx, eax
add rcx, qword [rbx + 8]
dec edx
je 0x140020d97
dec edx
je 0x140020d7e
cmp edx, 2
je 0x140020d67
mov r8, rdi
mov rdx, rsi
call sub.msvcrt.dll_memcpy
sub dword [rbx + 0x14], edi
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov eax, dword [rsi]
mov dword [rcx], eax
sub dword [rbx + 0x14], edi
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
movzx eax, word [rsi]
mov word [rcx], ax
sub dword [rbx + 0x14], edi
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
movzx eax, byte [rsi]
mov byte [rcx], al
sub dword [rbx + 0x14], edi
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov rcx, rbx
call fcn.14001f640
mov eax, dword [rbx + 0x10]
mov rdx, rsi
cmp edi, eax
jl 0x140020de9
mov rcx, qword [rbx]
lea r9, [rsp + 0x50]
mov r8d, edi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
sub eax, dword [rbx + 0x14]
mov r8, rdi
movsxd rcx, eax
add rcx, qword [rbx + 8]
call sub.msvcrt.dll_memcpy
sub dword [rbx + 0x14], edi
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
movsxd rax, ebp
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x140020e20
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov dword [rsp + 0x48], 0
test rdx, rdx
je 0x140020f23
cmp word [rdx], 0
je 0x140020f23
cmp r8d, 0x19
jne 0x140020eb3
or rax, 0xffffffffffffffff
cmp qword [rcx + 8], 0
je 0x140020e81
nop word [rax + rax]
cmp word [rdx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140020e60
lea r8d, [rax + rax]
call fcn.140020cd0
mov dword [rsp + 0x48], eax
cdqe
add rsp, 0x30
pop rbx
ret
cmp word [rdx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140020e81
mov rcx, qword [rcx]
lea r8d, [rax + rax]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, dword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret
xor ecx, ecx
cmp r8d, 2
mov eax, 0xfde9
lea r8, [rsp + 0x58]
cmove ecx, eax
mov qword [rsp + 0x40], rdi
call fcn.140021100
mov rdi, rax
test rax, rax
je 0x140020f1e
cmp qword [rbx + 8], 0
mov r8d, dword [rsp + 0x58]
mov rdx, rax
je 0x140020ef5
mov rcx, rbx
call fcn.140020cd0
mov dword [rsp + 0x48], eax
jmp 0x140020f0c
mov rcx, qword [rbx]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x140146d3c]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, qword [rsp + 0x40]
movsxd rax, dword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret

Function at 0x140020fc0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x30
cmp qword [rcx + 8], 0
mov rbx, rdx
mov rsi, rcx
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x50], 0
je 0x140020ff5
mov r8d, 1
call fcn.1400205f0
mov dword [rsp + 0x50], eax
jmp 0x140021016
mov rcx, qword [rcx]
lea r9, [rsp + 0x50]
mov r8d, 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x50]
cmp eax, 1
je 0x140021028
xor eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
movzx ecx, byte [rsp + 0x40]
test cl, cl
js 0x140021047
mov byte [rbx], cl
mov byte [rbx + 1], 0
mov eax, 1
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
movzx eax, cl
mov qword [rsp + 0x48], rdi
and al, 0xe0
cmp al, 0xc0
jne 0x14002105c
mov edi, 2
jmp 0x14002107a
movzx eax, cl
and al, 0xf0
cmp al, 0xe0
jne 0x14002106c
mov edi, 3
jmp 0x14002107a
movzx eax, cl
and al, 0xf8
cmp al, 0xf0
jne 0x1400210e5
mov edi, 4
mov byte [rbx], cl
cmp qword [rsi + 8], 0
lea rdx, [rbx + 1]
je 0x14002109a
lea eax, [rdi - 1]
mov rcx, rsi
movsxd r8, eax
call fcn.1400205f0
mov rcx, rax
jmp 0x1400210b9
mov rcx, qword [rsi]
lea r8d, [rdi - 1]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x50]
lea eax, [rdi - 1]
cmp ecx, eax
je 0x1400210d2
xor eax, eax
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
movsxd rax, edi
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
mov rdi, qword [rsp + 0x48]
mov word [rbx], 0x3f
mov rbx, qword [rsp + 0x58]
mov eax, 1
add rsp, 0x30
pop rsi
ret
Function at 0x140022410
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
lea edi, [rbx + 1]
mov ecx, edi
call qword [sym.imp.USER32.DLL_GetKeyState]
mov esi, 0x8000
lea ecx, [rdi + 1]
test si, ax
cmovne ebx, edi
call qword [sym.imp.USER32.DLL_GetKeyState]
test si, ax
je 0x140022448
or ebx, 2
mov ecx, 4
call qword [sym.imp.USER32.DLL_GetKeyState]
test si, ax
je 0x14002245b
or ebx, 4
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140022938
Capabilities:
Capture screenshot

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rbx, rcx
mov rcx, qword [rcx]
mov rdi, rdx
lea rdx, [rbp - 0x10]
xor r13d, r13d
mov r12d, r13d
call qword [sym.imp.USER32.DLL_GetClientRect]
test rdi, rdi
jne 0x140022985
mov rcx, qword [rbx]
call qword [sym.imp.USER32.DLL_GetDC]
lea r12d, [r13 + 1]
mov rdi, rax
test byte [rbx + 0x28], 8
je 0x140022aaa
call qword [sym.imp.USER32.DLL_GetFocus]
cmp qword [rbx], rax
jne 0x140022aaa
mov r15d, dword [rbp - 8]
mov r14d, dword [rbp - 4]
sub r15d, dword [rbp - 0x10]
sub r14d, dword [rbp - 0xc]
test r15d, r15d
jle 0x140022afc
test r14d, r14d
jle 0x140022afc
mov rcx, rdi
call qword [sym.imp.GDI32.DLL_CreateCompatibleDC]
mov rsi, rax
test rax, rax
je 0x140022afc
mov r8d, r14d
mov edx, r15d
mov rcx, rdi
call qword [sym.imp.GDI32.DLL_CreateCompatibleBitmap]
mov r13, rax
test rax, rax
je 0x140022a9f
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.GDI32.DLL_SelectObject]
mov r9, qword [rbx + 0x20]
xor eax, eax
test r9, r9
je 0x140022a34
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], eax
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.DLL_DrawStateW]
jmp 0x140022a4c
xor ecx, ecx
call qword [sym.imp.GDI32.DLL_GetStockObject]
lea rdx, [rbp - 0x10]
mov rcx, rsi
mov r8, rax
call qword [sym.imp.USER32.DLL_FillRect]
add dword [rbp - 0x10], 2
add dword [rbp - 0xc], 2
sub dword [rbp - 8], 2
sub dword [rbp - 4], 2
lea rdx, [rbp - 0x10]
mov rcx, rsi
call qword [sym.imp.USER32.DLL_DrawFocusRect]
mov dword [rsp + 0x40], 0xcc0020
and dword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
mov r9d, r15d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], r14d
call qword [sym.imp.GDI32.DLL_BitBlt]
mov rcx, r13
call qword [sym.imp.GDI32.DLL_DeleteObject]
mov rcx, rsi
call qword [sym.imp.GDI32.DLL_DeleteDC]
jmp 0x140022afc
mov r9, qword [rbx + 0x20]
test r9, r9
je 0x140022ae4
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r13d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.USER32.DLL_DrawStateW]
jmp 0x140022afc
xor ecx, ecx
call qword [sym.imp.GDI32.DLL_GetStockObject]
lea rdx, [rbp - 0x10]
mov rcx, rdi
mov r8, rax
call qword [sym.imp.USER32.DLL_FillRect]
test r12d, r12d
je 0x140022b0d
mov rcx, qword [rbx]
mov rdx, rdi
call qword [sym.imp.USER32.DLL_ReleaseDC]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140022b2c
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r14d, r9d
mov r15d, r8d
mov r12, rdx
mov rdi, rcx
xor ebp, ebp
call qword [sym.imp.USER32.DLL_GetMessagePos]
mov rcx, qword [rdi]
lea edx, [rbp - 0xc]
mov ebx, eax
call qword [sym.imp.USER32.DLL_GetWindowLongPtrW]
mov rcx, qword [rdi]
mov r13, rax
call fcn.140024ea4
mov rcx, rax
call fcn.1400255a8
mov rcx, qword [0x1401475c0]
mov qword [rsp + 0x30], rax
call fcn.14003c280
movsx ecx, bx
mov dword [rsp + 0x70], ecx
shr ebx, 0x10
lea rdx, [rsp + 0x70]
movsx ecx, bx
mov rsi, rax
mov dword [rsp + 0x74], ecx
mov rcx, qword [rdi]
call qword [sym.imp.USER32.DLL_ScreenToClient]
lea ecx, [rbp + 0x10]
call qword [sym.imp.USER32.DLL_GetKeyState]
mov ebx, 0x8000
test bx, ax
lea eax, [rbp + 1]
lea ecx, [rax + 0x11]
cmovne ebp, eax
call qword [sym.imp.USER32.DLL_GetKeyState]
test bx, ax
je 0x140022bd8
or ebp, 2
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test bx, ax
je 0x140022beb
or ebp, 4
mov eax, dword [rsp + 0x70]
mov dword [rsi], eax
mov eax, dword [rsp + 0x74]
mov dword [rsi + 4], eax
call fcn.140022410
mov r8, qword [rsp + 0x30]
mov dword [rsi + 8], eax
movzx eax, word [rsp + 0x90]
mov r9, r12
mov dword [rsi + 0x18], eax
lea rax, [0x140022c5c]
mov rdx, r13
mov qword [rsp + 0x28], rax
mov ecx, 0x332c
mov dword [rsi + 0xc], r15d
mov qword [rsp + 0x20], rsi
mov dword [rsi + 0x10], ebp
mov dword [rsi + 0x14], r14d
call fcn.1400275ec
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x1400245ac
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x140147df0]
call fcn.14003bf60
xor ebp, ebp
mov rsi, rax
test rax, rax
je 0x14002462c
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x1400245f1
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x14002462c
mov rcx, qword [rsi]
call qword [sym.imp.USER32.DLL_GetWindowTextLengthW]
mov edx, ebx
mov ecx, eax
mov edi, eax
call fcn.14003d270
lea r8d, [rdi + 1]
mov word [rax], bp
mov rcx, qword [rsi]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.USER32.DLL_GetWindowTextW]
mov rcx, rbx
call sub.msvcrt.dll_wcslen
sub edi, eax
mov ecx, edi
call fcn.14003d380
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400252f0
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x90
xor edx, edx
mov ebx, ecx
lea rcx, [rsp + 0x50]
lea r8d, [rdx + 0x40]
call sub.msvcrt.dll_memset
cmp ebx, 6
jne 0x140025321
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x24]
jmp 0x14002537f
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x14002537d
test ebx, ebx
je 0x140025376
dec ebx
je 0x14002536f
dec ebx
je 0x140025368
dec ebx
je 0x14002535e
dec ebx
je 0x140025357
dec ebx
jne 0x14002537d
mov rax, qword [rsp + 0x70]
jmp 0x14002537f
mov rax, qword [rsp + 0x68]
jmp 0x14002537f
mov rax, qword [rsp + 0x80]
jmp 0x14002537f
mov rax, qword [rsp + 0x78]
jmp 0x14002537f
mov rax, qword [rsp + 0x60]
jmp 0x14002537f
mov rax, qword [rsp + 0x58]
jmp 0x14002537f
xor eax, eax
add rsp, 0x90
pop rbx
ret

Function at 0x140026b8c
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
call qword [sym.imp.USER32.DLL_GetFocus]
mov rbx, rax
test rax, rax
je 0x140026c35
mov ecx, 9
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
jns 0x140026c35
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x140026c35
mov ecx, 0x10
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x140026c35
mov ecx, 0x12
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x140026c35
lea rdx, [rsp + 0x20]
mov r8d, 5
mov rcx, rbx
call qword [sym.imp.USER32.DLL_GetClassNameW]
lea rdx, [0x140084110]
lea rcx, [rsp + 0x20]
mov r8d, 4
call sub.msvcrt.dll_wcsncmp
test eax, eax
jne 0x140026c35
xor r9d, r9d
xor r8d, r8d
mov edx, 0x44e
mov rcx, rbx
call qword [sym.imp.USER32.DLL_SendMessageW]
bt rax, 0xb
jae 0x140026cdf
test rdi, rdi
je 0x140026c74
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x140026c67
mov ecx, 0x10
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x140026c67
mov ecx, 0x12
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
jns 0x140026c74
mov edx, 1
mov rcx, rdi
call fcn.140026cec
test rbx, rbx
je 0x140026c8e
lea rdx, str.PB_Hotkey
mov rcx, rbx
call qword [sym.imp.USER32.DLL_GetPropW]
test rax, rax
jne 0x140026cdf
lea rdx, str.PB_WindowID
mov rcx, rdi
call qword [sym.imp.USER32.DLL_GetPropW]
mov rbx, rax
test rax, rax
je 0x140026cdf
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x140026cdf
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x48], eax
jne 0x140026cdf
mov rcx, qword [0x140147e00]
lea rdx, [rbx - 1]
call fcn.14003bf60
test rax, rax
je 0x140026cdf
mov rax, qword [rax + 0x10]
jmp 0x140026ce1
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140028af8
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140147f80], eax
add rsp, 0x28
ret
Function at 0x140028b44
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
test rcx, rcx
je 0x140028bb9
mov eax, dword [rcx + 0xf4]
mov dword [rcx + 0x108], eax
mov eax, dword [rcx + 0xf8]
mov dword [rcx + 0x10c], eax
call qword [rcx + 0xb0]
mov rdi, rax
test rax, rax
jne 0x140028bb9
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x140028b91
xor edx, edx
mov rcx, rbx
call rax
mov rcx, qword [0x140146d3c]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x140147f80]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
and qword [0x140147f90], 0
mov rax, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140028bc8
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x140147f80]
mov ebx, r8d
mov edi, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rsi
mov r9d, dword [rax + 0x104]
mov r8d, dword [rax + 0x100]
mov rcx, rax
add r9d, ebx
add r8d, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [rax + 0x48]

Function at 0x140028c18
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov ecx, dword [0x140147f80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, ebx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [rax + 0x40]

Function at 0x140028c3c
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x140147f80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [rax + 0x20]

Function at 0x140028c60
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov r15d, ecx
mov ecx, dword [0x140147f80]
mov edi, r9d
mov rsi, r8
mov r14d, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
cmp edi, dword [rax + 0x120]
je 0x140028cad
mov edx, edi
mov rcx, rax
mov dword [rax + 0x120], edi
call qword [rax + pe_nt_image_headers64]
mov edx, dword [rbx + 0x11c]
cmp edx, dword [rbx + 0x124]
je 0x140028cc6
mov rcx, rbx
mov dword [rbx + 0x124], edx
call qword [rbx]
mov r8d, dword [rbx + 0x104]
mov edx, dword [rbx + 0x100]
mov r9, rsi
add r8d, r14d
add edx, r15d
mov rcx, rbx
mov rax, qword [rbx + 0x60]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
jmp rax
Function at 0x140028d34
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x140147f80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140028d95
mov rcx, rax
call qword [rax + 0xb8]
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x140028d6d
mov edx, 1
mov rcx, rbx
call rax
mov rcx, qword [0x140146d3c]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x140147f80]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
and qword [0x140147f90], 0
add rsp, 0x20
pop rbx
ret

Function at 0x140028d9c
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x30
mov r15d, ecx
mov ecx, dword [0x140147f80]
mov ebx, r9d
mov edi, r8d
mov r14d, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add r15d, dword [rax + 0x100]
add r14d, dword [rax + 0x104]
mov rsi, rax
test edi, edi
je 0x140028e30
test ebx, ebx
je 0x140028e30
test edi, edi
jns 0x140028dee
inc edi
jmp 0x140028df0
dec edi
test ebx, ebx
jns 0x140028df8
inc ebx
jmp 0x140028dfa
dec ebx
mov edx, dword [rsp + 0x60]
cmp edx, dword [rax + 0x120]
je 0x140028e15
mov rcx, rax
mov dword [rax + 0x120], edx
call qword [rax + pe_nt_image_headers64]
lea eax, [r14 + rbx]
lea r9d, [r15 + rdi]
mov r8d, r14d
mov edx, r15d
mov rcx, rsi
mov dword [rsp + 0x20], eax
call qword [rsi + 0x90]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret

Function at 0x140028e4c
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x30
mov r15d, ecx
mov ecx, dword [0x140147f80]
mov edi, r9d
mov esi, r8d
mov r14d, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [rsp + 0x60]
mov rbx, rax
cmp edx, dword [rax + 0x120]
je 0x140028e9b
mov rcx, rax
mov dword [rax + 0x120], edx
call qword [rax + pe_nt_image_headers64]
mov r8d, dword [rbx + 0x104]
mov edx, dword [rbx + 0x100]
mov r9d, esi
mov rcx, rbx
add r8d, r14d
add edx, r15d
mov dword [rsp + 0x60], edi
mov rax, qword [rbx + 8]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
add rsp, 0x30
pop r15
jmp rax

Function at 0x140028ef8
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x140147f80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [rax + 0xc8]
Function at 0x140028f20
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov ecx, dword [0x140147f80]
mov ebp, r9d
mov ebx, r8d
mov edi, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r11, rax
mov rax, qword [rax + 0x58]
mov rdx, rsi
mov r9d, dword [r11 + 0x104]
mov r8d, dword [r11 + 0x100]
mov rcx, r11
add r9d, ebx
add r8d, edi
test rax, rax
je 0x140028f79
mov dword [rsp + 0x20], ebp
call rax
jmp 0x140028f7d
call qword [r11 + 0x48]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140029004
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
mov rcx, qword [0x140146d3c]
mov edx, 8
mov r8d, 0x250
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140147f80]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov qword [0x140147f90], rdi
and dword [rdi + 0x11c], 0
or eax, 0xffffffff
mov edx, ebx
mov rcx, rdi
mov dword [rdi + 0x118], 0xffffff
mov dword [rdi + 0xe8], 2
mov dword [rdi + 0xec], 0x3f
mov dword [rdi + 0x120], eax
mov dword [rdi + 0x124], eax
call fcn.14002e050
mov rbx, qword [rsp + 0x30]
lea rax, [0x14002a088]
mov qword [rdi + 0xb0], rax
lea rax, [0x14002a0ec]
mov qword [rdi + 0xb8], rax
lea rax, [fcn.140029960]
mov qword [rdi + 0x20], rax
lea rax, [0x140029810]
mov qword [rdi + 0x60], rax
lea rax, [0x14002a190]
mov qword [rdi + 0xc8], rax
lea rax, [0x14002a138]
mov qword [rdi + 0xc0], rax
lea rax, [0x14002949c]
mov qword [rdi + 0x68], rax
lea rax, [0x140029440]
mov qword [rdi + 0x48], rax
lea rax, [0x14002946c]
mov qword [rdi + 0x50], rax
lea rax, [0x1400292f0]
mov qword [rdi + 0x58], rax
lea rax, [0x140029cb4]
mov qword [rdi + 0x88], rax
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x14002ba5c
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x140146d3c]
mov edx, 8
mov r8d, 0x1c0
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140147f80]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov qword [0x140147f90], rbx
and dword [rbx + 0x11c], 0
or eax, 0xffffffff
mov dword [rbx + 0x118], 0xffffff
mov dword [rbx + 0xe8], 1
mov dword [rbx + 0x120], eax
mov dword [rbx + 0x124], eax
lea rax, [0x14002a654]
mov qword [rbx], rax
lea rax, [0x14002a684]
mov dword [rbx + 0xec], 7
mov qword [rbx + 8], rax
lea rax, [0x14002b7a4]
mov qword [rbx + 0x10], rax
lea rax, [0x14002a72c]
mov qword [rbx + 0x18], rax
lea rax, [0x14002ae0c]
mov qword [rbx + 0x20], rax
lea rax, [0x14002ad9c]
mov qword [rbx + 0x28], rax
lea rax, [0x14002ade4]
mov qword [rbx + 0x30], rax
lea rax, [0x14002adf8]
mov qword [rbx + 0x38], rax
lea rax, [fcn.14002ae80]
mov qword [rbx + 0x40], rax
lea rax, [0x14002a99c]
mov qword [rbx + 0x48], rax
lea rax, [fcn.14002a9b4]
mov qword [rbx + 0x50], rax
lea rax, [0x14002a838]
mov qword [rbx + 0x58], rax
lea rax, [0x14002ad04]
mov qword [rbx + 0x60], rax
lea rax, [0x14002ac18]
mov qword [rbx + 0x68], rax
lea rax, [0x14002af1c]
mov qword [rbx + 0x70], rax
lea rax, [0x14002b060]
mov qword [rbx + 0x78], rax
lea rax, [0x14002b14c]
mov qword [rbx + 0x80], rax
lea rax, [0x14002b204]
mov qword [rbx + 0x88], rax
lea rax, [0x14002b354]
mov qword [rbx + 0x90], rax
lea rax, [0x14002b3d4]
mov qword [rbx + 0x98], rax
lea rax, [0x14002b4c8]
mov qword [rbx + 0xa0], rax
lea rax, [0x14002b6b4]
mov qword [rbx + 0xa8], rax
lea rax, [0x14002b82c]
mov qword [rbx + 0xb0], rax
lea rax, [0x14002b914]
mov qword [rbx + 0xb8], rax
lea rax, [0x14002b9b0]
mov qword [rbx + 0xc0], rax
lea rax, [0x14002ba04]
mov qword [rbx + 0xc8], rax
mov rax, rbx
add rsp, 0x20
pop rbx
ret