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

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
xor esi, esi
mov rbx, rcx
mov dword [rsp + 0x48], esi
test rdx, rdx
je 0x140005f67
cmp word [rdx], si
je 0x140005f67
test r8d, r8d
jne 0x140005e9e
mov r8d, dword [rcx + 0x20]
cmp r8d, 0x19
jne 0x140005efe
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rdx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x140005eb0
lea r8d, [rax + rax]
cmp qword [rcx + 8], rsi
je 0x140005edb
call fcn.14003b410
mov dword [rsp + 0x48], eax
cdqe
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
mov rcx, qword [rcx]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, dword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp r8d, 2
mov qword [rsp + 0x40], rdi
mov ecx, 0xfde9
lea r8, [rsp + 0x58]
cmovne ecx, esi
call fcn.14003b520
mov rdi, rax
test rax, rax
je 0x140005f62
mov rdx, rax
mov r8d, dword [rsp + 0x58]
cmp qword [rbx + 8], rsi
je 0x140005f3d
mov rcx, rbx
call fcn.14003b410
mov dword [rsp + 0x48], eax
jmp 0x140005f50
mov rcx, qword [rbx]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x14015b0c8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, qword [rsp + 0x40]
movsxd rax, dword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret

Function at 0x140005f80
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
mov rdx, rcx
mov rcx, qword [0x14015ba58]
call fcn.140018e10
test rax, rax
je 0x140005fb0
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp fcn.140005e70
add rsp, 0x20
pop rbx
ret

Function at 0x140005fc0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rdx, rcx
mov rcx, qword [0x14015ba58]
call fcn.140018e10
mov rbx, rax
test rax, rax
je 0x140006010
mov r8d, dword [rax + 0x20]
mov rdx, rdi
mov rcx, rax
call fcn.140005e70
mov r8d, dword [rbx + 0x20]
lea rdx, [0x1400fc474]
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140005e70
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000cac4
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 [0x14015d560]
call fcn.140018e10
xor ebp, ebp
mov rsi, rax
test rax, rax
je 0x14000cb44
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x14000cb09
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x14000cb44
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ecx, eax
mov edx, ebx
mov edi, eax
call fcn.140018940
lea r8d, [rdi + 1]
mov rdx, rax
mov rbx, rax
mov word [rax], bp
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, rbx
call fcn.1400184e8
sub edi, eax
mov ecx, edi
call fcn.140018cd0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400109b8
Capabilities:
Copy file

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x1400109d3
test rdx, rdx
je 0x1400109d3
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cdqe
jmp 0x1400109d5
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400109dc
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x230
xor ebx, ebx
test rcx, rcx
je 0x140010a66
mov rdx, rcx
mov r8d, 0x104
lea rcx, [rsp + 0x20]
call fcn.140018c84
lea rcx, [rsp + 0x20]
mov word [rsp + 0x228], bx
call fcn.1400184e8
lea rcx, [rsp + 0x20]
lea rcx, [rcx + rax*2]
lea rax, [rsp + 0x20]
cmp rcx, rax
jbe 0x140010a52
lea rdx, [rcx - 2]
movzx eax, word [rdx]
sub ax, 0x20
cmp ax, 0x3c
ja 0x140010a52
movabs r8, 0x1000000000008001
bt r8, rax
jae 0x140010a52
lea rax, [rsp + 0x20]
mov rcx, rdx
cmp rdx, rax
ja 0x140010a24
mov word [rcx], bx
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cdqe
jmp 0x140010a68
xor eax, eax
add rsp, 0x230
pop rbx
ret
Function at 0x140010de4
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140010e0f
test dl, 2
je 0x140010e02
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cdqe
jmp 0x140010e11
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140010e18
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
xor eax, eax
test rcx, rcx
je 0x140010e2b
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cdqe
add rsp, 0x28
ret

Function at 0x140010f24
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rax, qword [0x14015dde8]
xor r13d, r13d
mov rbp, r8
mov r14, rdx
mov rdi, rcx
mov esi, r13d
test rax, rax
jne 0x140010f76
lea r8, [fcn.140010ee0]
mov ecx, 0x260
lea edx, [rax + 0x10]
call fcn.140018f60
mov qword [0x14015dde8], rax
mov rdx, rdi
mov rcx, rax
call fcn.140018d40
mov rbx, rax
test rax, rax
je 0x140011079
test r14, r14
lea r15, [0x1400fc48c]
cmovne r15, r14
test rbp, rbp
je 0x140010fa7
cmp word [rbp], r13w
jne 0x140010fae
lea rbp, [0x14010dba8]
mov rcx, r15
call fcn.1400184e8
mov rcx, rbp
mov r12, rax
call fcn.1400184e8
mov rcx, qword [0x14015b0c8]
add eax, 2
add eax, r12d
xor edx, edx
movsxd r8, eax
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x140011062
mov rdx, r15
mov rcx, rax
call fcn.1400184cc
test r12d, r12d
je 0x14001100f
movsxd rax, r12d
cmp word [r15 + rax*2 - 2], 0x5c
je 0x14001100f
lea rdx, [0x1400fc414]
mov rcx, r14
call fcn.140018c58
mov rdx, rbp
mov rcx, r14
call fcn.140018c58
lea rdx, [rbx + 0xc]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x140011036
mov dword [rbx + 8], r13d
jmp 0x140011048
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14001104b
mov dword [rbx + 8], 1
mov rsi, rbx
mov rcx, qword [0x14015b0c8]
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rsi, rsi
jne 0x140011079
mov rcx, qword [0x14015dde8]
cmp rdi, 0xffffffffffffffff
cmove rdi, rbx
mov rdx, rdi
call fcn.140018ef4
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400110f8
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x380]
sub rsp, 0x480
or rbx, 0xffffffffffffffff
xor edi, edi
test rcx, rcx
je 0x140011269
cmp word [rcx], di
je 0x140011269
mov rdx, rcx
mov r8d, 0x104
lea rcx, [rsp + 0x20]
call fcn.140018c84
lea rcx, [rsp + 0x20]
mov word [rbp + 0x128], di
call fcn.1400184e8
mov rdx, rax
cdqe
lea rcx, [rsp + rax*2 + 0x1e]
lea eax, [rdx - 2]
cmp eax, 1
ja 0x14001119e
cmp word [rsp + 0x22], 0x3a
jne 0x14001119e
cmp edx, 2
jne 0x14001117e
lea rdx, [0x1400fc414]
lea rcx, [rsp + 0x20]
call fcn.140018c58
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140011269
mov rbx, 0xfffffffffffffffe
jmp 0x140011269
cmp word [rcx], 0x5c
je 0x1400111aa
cmp word [rcx], 0x2f
jne 0x1400111b3
mov word [rcx], di
sub rcx, 2
jmp 0x14001119e
lea rdx, [rbp + 0x130]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rax
cmp rax, rbx
je 0x1400111fa
test byte [rbp + 0x130], 0x10
je 0x1400111df
mov rbx, 0xfffffffffffffffe
jmp 0x1400111f2
mov ebx, dword [rbp + 0x14c]
mov eax, dword [rbp + 0x150]
shl rbx, 0x20
or rbx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140011269
movzx ecx, word [rsp + 0x20]
movzx eax, word [rsp + 0x22]
cmp cx, 0x5c
jne 0x14001120f
cmp ax, cx
je 0x140011225
cmp cx, 0x2f
jne 0x14001121a
cmp ax, cx
je 0x140011225
cmp cx, 0x2e
jne 0x140011269
cmp ax, cx
jne 0x140011269
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001124a
not eax
mov rbx, 0xfffffffffffffffe
shr rax, 4
and eax, 1
or rbx, rax
jmp 0x140011269
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov rcx, rbx
mov rbx, 0xfffffffffffffffe
cmp eax, 1
cmova rcx, rbx
mov rbx, rcx
lea r11, [rsp + 0x480]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret

Function at 0x1400112a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edx, ecx
mov edi, 0x104
mov ecx, edi
call fcn.140018940
mov rdx, rax
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor ebp, ebp
movsxd rbx, eax
test eax, eax
je 0x1400112ef
lea edx, [rbx - 1]
movsxd r8, edx
lea eax, [rbp + 0x5c]
cmp word [rsi + r8*2], ax
je 0x1400112ef
mov word [rsi + rbx*2], ax
inc ebx
sub edi, ebx
mov ecx, edi
call fcn.140018cd0
movsxd rax, ebx
mov rbx, qword [rsp + 0x30]
mov word [rsi + rax*2], bp
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400114d4
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x1400114ec
test rdx, rdx
je 0x1400114ec
call qword [sym.imp.KERNEL32.dll_MoveFileW]
cdqe
jmp 0x1400114ee
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400114f4
Capabilities:
Set file attributes

Disassembly:
sub rsp, 0x28
xor eax, eax
test rcx, rcx
je 0x140011505
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cdqe
add rsp, 0x28
ret
Function at 0x140011540
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub rsp, 0x28
cmp qword [0x14015ddf8], 0
jne 0x1400115a6
lea rcx, [0x14015ddf8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140011592
movabs rax, 0x20c49ba5e353f7cf
lea rcx, [0x14015de00]
imul qword [0x14015ddf8]
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [0x14015ddf8], rdx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp qword [0x14015ddf8], 0
jne 0x1400115a6
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
jmp 0x1400115cc
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x30]
sub rax, qword [0x14015de00]
cqo
idiv qword [0x14015ddf8]
add rsp, 0x28
ret

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

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x14015de80]
jne 0x140013d8a
mov rax, qword [0x14015e928]
add rsp, 0x28
ret
mov rcx, qword [0x14015e948]
add rsp, 0x28
jmp fcn.140017910

Function at 0x1400142b8
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x14015dfbc], eax
add rsp, 0x28
ret

Function at 0x140014a28
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, rdx
xor ebx, ebx
mov r14, rcx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [rbx + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140014a0f
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, qword [0x14015b0c8]
xor edx, edx
mov r8d, eax
mov edi, eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x140014a06
lea r9, [rsp + 0x78]
mov qword [rsp + 0x20], rbx
mov r8d, edi
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400149f4
cmp dword [rsp + 0x78], edi
jne 0x1400149f4
mov r8d, edi
mov rdx, rsi
mov rcx, r14
call fcn.1400142e8
mov rbx, rax
mov rcx, qword [0x14015b0c8]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
xor r8d, r8d
jmp 0x14001494c

Function at 0x140017280
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov esi, 0x40
mov ecx, esi
call fcn.140018940
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call fcn.14003c328
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rdi + rdx*2], 0
jne 0x1400172b3
sub esi, edx
mov ecx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140018cd0
Function at 0x1400172e0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r12
push r13
push r15
sub rsp, 0x28
xor ebp, ebp
mov r13d, r9d
mov r15d, edx
mov r12d, ebp
cmp edx, 1
jl 0x14001744b
test rcx, rcx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
mov edi, ebp
mov qword [rsp + 0x20], r14
lea r14, [0x1400fc48c]
mov rsi, r14
cmovne rsi, rcx
test r8, r8
cmovne r14, r8
movzx ecx, word [r14]
test cx, cx
je 0x1400173da
cmp word [r14 + 2], di
je 0x1400173da
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [r14 + rax*2], di
jne 0x140017350
mov rbx, rsi
movsxd rbp, eax
mov r8, rbp
mov rdx, r14
mov rcx, rbx
call fcn.14003c0cc
test eax, eax
je 0x14001737e
cmp word [rbx], r12w
je 0x14001737e
add rbx, 2
jmp 0x140017360
inc edi
cmp edi, r15d
je 0x140017394
cmp word [rbx], r12w
je 0x14001739d
lea rbx, [rbx + rbp*2]
mov rsi, rbx
jmp 0x140017360
mov r12, rbx
sub r12, rsi
sar r12, 1
xor ebp, ebp
mov rcx, rbx
call fcn.140023740
mov r14, qword [rsp + 0x20]
movsxd rbx, r12d
test eax, eax
je 0x140017410
mov ecx, r13d
call fcn.140043250
lea r8, [rbx + rbx]
mov rdx, rsi
mov rcx, rax
call fcn.140019020
mov edx, r13d
mov ecx, r12d
call fcn.140018940
mov rdi, rax
jmp 0x14001742c
mov rbx, rsi
nop dword [rax]
movzx eax, word [rbx]
cmp ax, cx
je 0x1400173f3
test ax, ax
je 0x1400173f3
add rbx, 2
jmp 0x1400173e0
inc edi
cmp edi, r15d
je 0x140017405
test ax, ax
je 0x14001739f
lea rsi, [rbx + 2]
jmp 0x1400173da
mov r12, rbx
sub r12, rsi
sar r12, 1
jmp 0x14001739f
mov edx, r13d
mov ecx, r12d
call fcn.140018940
mov r8, rbx
mov rdx, rsi
mov rcx, rax
mov rdi, rax
call fcn.140018c84
mov rsi, qword [rsp + 0x58]
mov word [rdi + rbx*2], bp
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
ret
mov ecx, r13d
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
jmp fcn.1400189f0

Function at 0x140017910
Capabilities:
Get thread local storage value
Set 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 [0x14015e150]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x140017991
mov r8, qword [0x14015e148]
lea edx, [rax + 8]
mov rcx, qword [0x14015b0c8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x14015e150]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x14015e140]
jmp 0x14001797d
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x14001797a
mov rcx, qword [rbx + 0x10]
add rcx, rdi
call rdx
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140017968
mov rdx, rdi
lea rcx, [0x140017aac]
call fcn.140043274
mov rbx, qword [rsp + 0x30]
lea rax, [rdi + rsi]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400179a8
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, ecx
mov rbp, r8
mov rsi, rdx
and ecx, 7
je 0x1400179d2
mov eax, 8
sub eax, ecx
add edi, eax
mov rbx, qword [0x14015e148]
test rbx, rbx
jne 0x140017a18
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, qword [0x14015b0c8]
lea edx, [rbx + 8]
movsxd rdi, edi
mov r8, rdi
mov dword [0x14015e150], eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x14015e150]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x14015e148]
jmp 0x140017a1b
movsxd rdi, edi
mov ecx, dword [0x14015e150]
lea rax, [rdi + rbx]
mov qword [0x14015e148], rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, qword [0x14015e148]
mov edx, 8
mov rcx, qword [0x14015b0c8]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [0x14015e150]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test rsi, rsi
jne 0x140017a6a
test rbp, rbp
je 0x140017a91
mov edx, 0x28
lea rcx, [0x14015e140]
call fcn.140018440
mov qword [rax], rbx
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rbp
test rsi, rsi
je 0x140017a91
lea rcx, [rdi + rbx]
call rsi
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140017b30
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov r14, rcx
movsxd rbx, edx
mov ecx, dword [0x14015a138]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [0x14015e158]
xor edx, edx
mov rsi, rax
mov rax, qword [r14]
mov r8d, dword [rsi + 0x10]
sub r8d, ebx
movsxd rdi, r8d
lea r9, [rdi + 0xa]
test rax, rax
jne 0x140017b84
mov r8, r9
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x140017b8d
mov r8, rax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [r14], rax
mov rcx, rax
mov rdx, qword [rsi]
shr rdi, 1
add rdx, rbx
mov r8d, edi
call fcn.140043030
mov rdi, qword [rsp + 0x40]
mov qword [rsi + 0x10], rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret

Function at 0x140017c00
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x14015a138]
cmp ecx, 0xffffffff
jne 0x140017c16
call fcn.140017e00
jmp 0x140017c26
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x140017c45
call fcn.1400434b0
mov ecx, dword [0x14015a138]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
lea rcx, [0x140017bc0]
add rsp, 0x28
jmp fcn.140043274
add rsp, 0x28
ret

Function at 0x140017e00
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
sub rsp, 0x28
xor r8d, r8d
mov edx, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x14015e158], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x14015a138], eax
add rsp, 0x28
jmp fcn.1400434b0
Function at 0x140017e60
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x14015a138]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rax, qword [rax]
add rsp, 0x28
ret

Function at 0x140017e80
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x14015a138]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [rax + 0x10]
add rcx, qword [rax]
mov rax, rcx
add rsp, 0x28
ret

Function at 0x140017ea0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x14015a138]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rbx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140017ee0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x14015a138]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add qword [rax + 0x10], 2
add rsp, 0x28
ret

Function at 0x140017f00
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
movsxd rbx, ecx
mov ecx, dword [0x14015a138]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rax + 0x10], rbx
mov rax, qword [rax]
add rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140018940
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, 0x20
movsxd rbp, ecx
mov esi, edx
mov ecx, dword [0x14015a138]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
cmp esi, 0xffffffff
jne 0x140018970
mov esi, dword [rax + 0x10]
mov eax, dword [rax + 0x10]
mov r8, qword [rbx + 8]
lea edx, [rax + rbp*2]
movsxd rax, edx
lea rcx, [r8 - 4]
cmp rax, rcx
jl 0x140018991
lea eax, [rdx + 0x4000]
movsxd r9, eax
jmp 0x1400189a3
mov eax, 0x100000
cmp r8, rax
jle 0x1400189c0
cmp edx, eax
cmovl edx, eax
mov r9d, edx
mov r8, qword [rbx]
xor edx, edx
mov qword [rbx + 8], r9
add r9, 0xa
mov rcx, qword [0x14015e158]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [rbx], rax
mov rax, qword [rbx]
movsxd rdx, esi
mov rsi, qword [rsp + 0x40]
add rax, rdx
lea rcx, [rdx + rbp*2]
mov rbp, qword [rsp + 0x38]
mov qword [rbx + 0x10], rcx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400189f0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
movsxd rbx, ecx
mov ecx, dword [0x14015a138]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor edx, edx
mov qword [rax + 0x10], rbx
mov rax, qword [rax]
mov word [rbx + rax], dx
add rsp, 0x20
pop rbx
ret
Function at 0x140018a5c
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x140018ad8
movsxd rdx, ecx
lea rcx, [0x140018b60]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [0x14015e170]
test rbx, rbx
je 0x140018b4b
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140018ace
cmp byte [rbx + 0x20], 0
je 0x140018ace
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
xor r8d, r8d
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x140018a94
jmp 0x140018b4b
mov rbx, qword [0x14015e170]
test rbx, rbx
je 0x140018b4b
mov rsi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140018b43
cmp byte [rbx + 0x21], 0
je 0x140018b07
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x140018b33
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
xor r8d, r8d
and dword [rsp + 0x28], 0
or rdx, 0xffffffffffffffff
and dword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x14015e170]
call fcn.140018484
mov rbx, rsi
test rsi, rsi
jne 0x140018ae4
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140018cd0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov ecx, dword [0x14015a138]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [rbx + rbx]
movsxd rdx, ecx
sub qword [rax + 0x10], rdx
add rsp, 0x20
pop rbx
ret