joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400989d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
test byte [rdx + 4], 1
mov esi, r8d
mov rbx, qword [rdx + 0x10]
mov rdi, rdx
mov rbp, rcx
jne 0x140098a47
mov rcx, qword [rdi + 8]
mov r8d, 5
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x140098a17
call fcn.14004e320
mov rcx, qword [rdi + 8]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
jne 0x140098a31
call fcn.14004e320
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
jne 0x140098a47
call fcn.14004e320
call fcn.14003cab4
cmp qword [rax + 0x68], 0
je 0x140098a61
mov rdx, rbx
mov rcx, rbp
call fcn.140097e90
mov rbx, rax
mov edx, esi
mov rcx, rbx
call fcn.140098cbc
mov rcx, qword [rbp + 0xf8]
mov rsi, rax
test rcx, rcx
je 0x140098a88
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp + 0xf8], 0
test rsi, rsi
je 0x140098a97
mov rbx, rsi
mov qword [rbp + 0xf8], rsi
or dword [rdi + 4], 1
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov qword [rdi + 0x10], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400a17f8
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1400a181e
mov r8, rdx
mov rdx, qword [rbx]
call fcn.14006a454
jmp 0x1400a188a
cmp byte [0x140250208], 0
jne 0x1400a1862
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400a1852
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140250200], rax
jmp 0x1400a1859
mov rax, qword [0x140250200]
mov byte [0x140250208], 1
jmp 0x1400a1869
mov rax, qword [0x140250200]
mov rdx, rdi
mov rcx, qword [rbx]
test rax, rax
je 0x1400a1883
xor r9d, r9d
mov r8d, dword [rbx + 8]
call qword [case.0x1400180dd.0]
jmp 0x1400a188a
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1400a1898
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x1400a1aec
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x38
mov rcx, qword [rcx + 8]
lea rax, [r11 + 8]
mov qword [r11 - 0x10], rax
lea r9, [r11 + 0x20]
mov qword [r11 - 0x18], r8
xor r8d, r8d
mov dword [rsp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor edx, edx
test eax, eax
jne 0x1400a1b2e
mov ecx, dword [rsp + 0x58]
sub ecx, 4
neg ecx
sbb eax, eax
and eax, 0xd
test eax, eax
sete dl
mov eax, edx
add rsp, 0x38
ret
Function at 0x1400a1f24
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x1400a1fee
test rbx, rbx
je 0x1400a1fee
test r9, r9
je 0x1400a1fee
and qword [r8], 0
xor r8d, r8d
and dword [r9], 0
mov rcx, qword [rcx + 8]
mov qword [rax - 0x10], r9
lea r9, [rax + 0x10]
and qword [rax - 0x18], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400a1fea
cmp dword [rsp + 0x48], 3
jne 0x1400a1fea
cmp dword [rdi], eax
je 0x1400a1fea
mov ecx, dword [rdi]
call fcn.140002420
mov qword [rbx], rax
lea r9, [rsp + 0x48]
mov rcx, qword [rbp + 8]
xor r8d, r8d
mov qword [rsp + 0x28], rdi
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400a1fde
cmp dword [rsp + 0x48], 3
jne 0x1400a1fde
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rbx]
call fcn.140004b34
and qword [rbx], 0
xor eax, eax
jmp 0x1400a1fc9
call fcn.1400505f4
int3

Function at 0x1400a2408
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x1400a2419
xor eax, eax
jmp 0x1400a2447
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x40]
mov r9d, 4
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x1400a2450
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x1400a2461
xor eax, eax
jmp 0x1400a2485
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x28], r9d
mov r9d, 3
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x140118e90
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, rdx
mov rcx, qword [rdx]
cmp dword [rcx - 0x10], 0
je 0x140118ec2
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140118ec2
lea rcx, [rdi + 0x120]
mov rdx, rbx
call fcn.1401210a0
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rdi
ret
Function at 0x14019d300
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14019d15f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14019d15f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14019d15f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14019d15f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14019d15f
cmp dword [rcx + 0x84], 0xe
jbe 0x14019d15f
cmp dword [rcx + 0xf8], 0
je 0x14019d15f
mov ecx, ebx
call fcn.14019d21c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14019cfec
nop
cmp dword [rbp + 0x20], 0
je 0x14019d1ad
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14019d1b8
int3
xor r8d, r8d
xor edx, edx
jmp 0x14019d0f0

Function at 0x1401acf28
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1401acf48
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14019cec4
or eax, 0xffffffff
jmp 0x1401acf4a
xor eax, eax
add rsp, 0x28
ret
Function at 0x1401b12dc
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1401b1363
mov rsi, rbx
cmp word [rax], bp
je 0x1401b1322
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1401b130c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1401b1308
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1401aa85c
mov rdi, rax
test rax, rax
je 0x1401b1350
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140195600
mov rbp, rdi
xor ecx, ecx
call fcn.1401aa820
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180006c7b
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x18008a5c0
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
movsx eax, byte [rsp + 0x10]
mov ecx, dword [rsp + 8]
xor ecx, eax
mov eax, ecx
mov eax, eax
imul rax, rax, 0x1000193
ret
Function at 0x1404c1160
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1404c12e7
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 0x1404c1191
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1404c1177
add dl, dl
jne 0x1404c119e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1404c11fe
xor eax, eax
add dl, dl
jne 0x1404c11ad
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1404c12b5
add dl, dl
jne 0x1404c11be
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1404c11cb
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1404c11d8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1404c11e5
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1404c11f2
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1404c1186
mov eax, 1
add dl, dl
jne 0x1404c120e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1404c121b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1404c1203
sub eax, ebx
mov ebx, 1
jne 0x1404c1254
mov ecx, 1
add dl, dl
jne 0x1404c1236
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1404c1243
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1404c122b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1404c1186
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1404c1270
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1404c127d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1404c1265
cmp eax, 0x7d00
jae 0x1404c12a3
cmp eax, 0x500
jb 0x1404c129e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1404c1186
cmp eax, 0x7f
ja 0x1404c12a6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1404c1186
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1404c12da
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 0x1404c1186
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001ce0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
and al, 0xb4
add byte [rax], al
add byte [rax - 0x75], cl
and al, 0x38
Function at 0x140004a34
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 4]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x38], rax
jbe 0x140007b98
jmp 0x140007b4e
jmp 0x1400066a6
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x38], rax
jmp 0x140005bed
mov rax, rcx
mov qword [rsp + 0x58], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x58]
lea rax, [rcx + rax + 0x88]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x1a0]
jmp 0x14000367d
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
movsx eax, byte [rcx + rax]
cmp eax, 0x2e
je 0x14000452f
movzx edx, byte [rax]
cmp dl, byte [rax + rcx]
je 0x140003e06
jmp 0x14000669c
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x1a0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x1a0]
jmp 0x140005b0d
inc rax
test dl, dl
jne 0x1400032da
jmp 0x1400042b8
xor eax, eax
jmp 0x14000535b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x198
mov rax, qword [rsp + 0x1a0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x1a0]
add rcx, rax
jmp 0x14000307e
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x1a0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x68]
movzx eax, word [rcx + rax*2]
mov word [rsp + 0x28], ax
jmp 0x1400071ad
test eax, eax
je 0x140002e5d
jmp 0x140002257
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x1a0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x24], 0
jmp 0x1400078a5
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
jae 0x140001a0a
jmp 0x140007b4e
sbb eax, eax
or eax, 1
jmp 0x14000535b
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x24], eax
jae 0x140005bed
jmp 0x140004b78
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x24], eax
jae 0x140005bed
jmp 0x140004b78
movzx eax, word [rsp + 0x28]
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x1a0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x1a8]
sub rcx, rax
jmp 0x1400032da
jmp 0x140006877
mov rax, qword [rsp + 0x38]
add rsp, 0x198
ret
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x20], 0
jmp 0x1400031a1
Function at 0x140006fe5
Capabilities:
Enumerate pe sections
Parse pe header
Resolve function by parsing pe exports

Disassembly:
test eax, eax
je 0x140007be2
jmp 0x140003b9a
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x30], rax
mov edx, 0x40
mov rcx, qword [rsp + 0x108]
call fcn.140007bbf
jmp 0x140001827
mov ecx, 0xc1
call qword [0x14007d822]
xor eax, eax
jmp 0x140002981
mov ecx, 0xc1
call qword [0x14007d93b]
xor eax, eax
jmp 0x140002981
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140004872
jmp 0x140002056
test eax, eax
je 0x140006da5
jmp 0x1400082b3
mov rax, qword [rsp + 0x70]
movsxd rax, dword [rax + 0x3c]
add rax, 0x108
mov rdx, rax
mov rcx, qword [rsp + 0x108]
call fcn.140007bbf
jmp 0x140003de8
mov ecx, 0xc1
call qword [0x1400812c2]
xor eax, eax
jmp 0x140002981
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 4]
cmp eax, 0x8664
jne 0x140005b7d
jmp fcn.14000250c
xor eax, eax
jmp 0x140002981
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xe8
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x58], 0
jmp 0x140001fbb
xor eax, eax
jmp 0x140002981
mov rax, qword [rsp + 0x70]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x100]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
jne 0x1400021d4
jmp 0x140006716

Function at 0x140007509
Capabilities:
Enumerate pe sections

Disassembly:
mov rax, qword [rsp + 0x88]
mov rax, qword [rax]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x24], eax
jge 0x14000261d
jmp 0x140006be5
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 8]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x88]
jmp 0x140007eae
mov rax, qword [rax]
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx]
movzx ecx, word [rcx + 0x14]
lea rax, [rax + rcx + 0x18]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x88]
add byte [rax], al
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x24], 0
jmp 0x140008227
jmp 0x14000672f
Function at 0x140007abe
Capabilities:
Access peb ldr_data
Get process filename

Disassembly:
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax*2]
test eax, eax
jne 0x14000854a
jmp 0x140006f0f
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax*2 + 2]
mov qword [rsp + 0x38], rax
jmp 0x140001a2d
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x20], 0
jmp 0x140003275
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x48], rax
jmp 0x140005333
test eax, eax
je 0x14000240a
jmp 0x140007d2e
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax*2]
test eax, eax
je 0x140006f0f
jmp 0x14000854a
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140007d2e
jmp 0x1400022f4
mov rax, qword [rsp + 0x48]
add rsp, 0x68
ret
jmp 0x140001a2d
mov rcx, qword [rsp + 0x70]
call fcn.140005eb5
jmp 0x140008415
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], 0
jmp 0x1400034d0
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword gs:[0x60]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x20]
sub rax, 0x10
jmp 0x14000766d
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x10]
sub rax, 0x10
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x40]
cmp qword [rsp + 0x30], rax
je 0x140005333
jmp 0x1400034d0
xor r9d, r9d
mov r8d, eax
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
call fcn.1400052b4
jmp 0x140002c0e
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax*2]
cmp eax, 0x5c
jne 0x140006e1c
jmp 0x1400021f7
Function at 0x140008dd0
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 ecx, dword [0x140023188]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop dword [rax + rax]
test rax, rax
je 0x140008e00
mov eax, 1
jmp 0x140008ea5
lea rcx, [0x140024378]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
nop dword [rax + rax]
mov eax, dword [0x140024580]
xor edi, edi
mov rdx, qword [0x1400246e8]
lea ebx, [rdi + 1]
test eax, eax
jle 0x140008e3f
mov rcx, rdx
cmp dword [rcx], 0xffffffff
je 0x140008eb6
add edi, ebx
add rcx, 0x1c
cmp edi, eax
jl 0x140008e2c
xor edi, edi
test eax, eax
jle 0x140008e8e
xor esi, esi
mov r8d, dword [rsi + rdx]
cmp r8d, 0xffffffff
je 0x140008e84
xor edx, edx
lea ecx, [rdx + 0x40]
call qword [sym.imp.KERNEL32.dll_OpenThread]
nop dword [rax + rax]
cmp rax, 0xffffffffffffffff
je 0x140008eb6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, dword [0x140024580]
mov rdx, qword [0x1400246e8]
add edi, ebx
add rsi, 0x1c
cmp edi, eax
jl 0x140008e47
xor bl, bl
lea rcx, [0x140024378]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
nop dword [rax + rax]
mov al, bl
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
nop dword [rax + rax]
movsxd rcx, edi
imul rdx, rcx, 0x1c
mov rcx, qword [0x1400246e8]
mov dword [rdx + rcx], eax
add rdx, 4
add rdx, rcx
mov ecx, dword [0x140023188]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop dword [rax + rax]
jmp 0x140008e90
Function at 0x140009148
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov r14d, r8d
mov rbp, rdx
mov rsi, rcx
call fcn.140009d8c
test eax, eax
je 0x1400091d7
mov al, byte [rsi + 0x21]
cmp al, 2
jne 0x140009221
lea rax, [0x140024400]
cmp rbp, rax
jne 0x140009190
mov byte [rsi + 0x21], 4
jmp 0x1400091bf
cmp dword [rsi + 0x54], 0
je 0x1400091bb
and dword [rsi + 0x54], 0
mov rcx, qword [rsi + 0x30]
or eax, 0xffffffff
lock xadd dword [rcx + 0x84], eax
cmp eax, 1
jne 0x1400091bb
mov rdx, qword [rsi + 0x38]
mov rcx, qword [rsi + 0x30]
call fcn.14000a134
mov byte [rsi + 0x21], 6
mov rcx, qword [0x1400243c8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop dword [rax + rax]
jmp 0x140009271
cmp dword [0x1400245d0], 0
je 0x140009221
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [0x14002317c]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop dword [rax + rax]
xor ebx, ebx
mov ecx, edi
test rax, rax
setne bl
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
test ebx, ebx
je 0x140009221
mov al, byte [rsi + 0x21]
cmp al, 3
je 0x140009271
test r14d, r14d
je 0x140009248
test byte [rsi + 0x70], 0x10
je 0x140009234
inc dword [0x140024448]
jmp 0x140009248
mov rax, qword [rsi + 0x88]
add qword [0x140024450], rax
inc dword [0x14002444c]
test byte [rsi + 0x70], 0x10
je 0x140009253
inc dword [rbp]
jmp 0x140009261
mov rax, qword [rsi + 0x88]
add qword [rbp + 8], rax
inc dword [rbp + 4]
mov rcx, rsi
call fcn.140016d3c
mov rcx, rsi
call fcn.140001490
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140009b3c
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor ecx, ecx
lea edx, [r9 + 1]
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
nop dword [rax + rax]
mov qword [0x140023180], rax
cmp rax, 0xffffffffffffffff
je 0x140009c7d
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
nop dword [rax + rax]
mov dword [0x14002317c], eax
cmp eax, 0xffffffff
je 0x140009c7d
mov edx, 1
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop dword [rax + rax]
test eax, eax
je 0x140009c7d
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
nop dword [rax + rax]
mov dword [0x140023188], eax
cmp eax, 0xffffffff
je 0x140009c7d
call fcn.140009c94
test al, al
je 0x140009c7d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThreadpool]
nop dword [rax + rax]
mov qword [0x1400246d0], rax
test rax, rax
je 0x140009c7d
mov edx, dword [0x140024580]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadpoolThreadMaximum]
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_CreateThreadpoolCleanupGroup]
nop dword [rax + rax]
mov qword [0x1400246e0], rax
mov rcx, rax
test rax, rax
je 0x140009c7d
mov rax, qword [0x1400246d0]
xor r9d, r9d
and qword [0x140024398], 0
xor r8d, r8d
mov qword [0x140024390], rcx
xor edx, edx
xor ecx, ecx
mov qword [0x140024388], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
nop dword [rax + rax]
mov qword [0x1400243c8], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140009c7d
lea rcx, [0x140024350]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop dword [rax + rax]
xor eax, eax
mov dword [0x1400246cc], 1
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x140009d8c
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
cmp dword [0x1400245d0], edi
je 0x140009dd5
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [0x14002317c]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop dword [rax + rax]
test rax, rax
mov ecx, ebx
sete dil
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x30]
mov eax, edi
add rsp, 0x20
pop rdi
ret
Function at 0x14000b1a4
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r8, [0x140024380]
mov rdx, rcx
lea rcx, [0x14000ae20]
call qword [sym.imp.KERNEL32.dll_CreateThreadpoolWork]
nop dword [rax + rax]
test rax, rax
jne 0x14000b21e
lea r8d, [rax + 1]
mov rcx, rbx
lea rdx, [0x140024400]
call fcn.140009148
cmp dword [0x1400245d0], 0
jne 0x14000b1f4
mov rax, qword [0x14001d070]
jmp 0x14000b211
mov ecx, dword [0x140023188]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop dword [rax + rax]
test rax, rax
cmove rax, qword [0x14001d070]
mov rcx, rax
add rsp, 0x20
pop rbx
jmp fcn.140011eb8
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_SubmitThreadpoolWork]