joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006f40
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1402f61c0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
mov rbp, rdx
mov ecx, 0x28
call fcn.140122d04
mov qword [rax + 0x20], 0xf
mov rsi, rax
mov qword [rax + 0x18], 0
mov byte [rax + 8], 0
lea rdi, [rax + 8]
mov qword [rax], rbx
cmp rdi, rbp
je 0x140006fa8
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbp
mov rcx, rdi
call fcn.14000c4f0
lea rax, [rsp + 0x30]
mov r9, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140006f00]
xor edx, edx
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x140007017
mov rcx, rdi
call fcn.14000b090
mov edx, 0x28
mov rcx, rsi
call fcn.140122d40
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Failed_to_create_thread_for_X87QrLpK5WsM1N._Error:
mov ebx, eax
lea rcx, [0x141e51ee0]
call fcn.14000e700
mov rcx, rax
mov edx, ebx
call fcn.14000b1c0
mov rcx, rax
call fcn.14000e950
jmp 0x140007020
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140122ce0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x1400071f0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1e8]
sub rsp, 0x2c0
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1402f61c0]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov r15, rcx
xor r12d, r12d
mov dword [rsp + 0x38], r12d
mov ebx, r12d
mov edi, r12d
lea r13, [0x1402c02b8]
or esi, 0xffffffff
nop word [rax + rax]
add ebx, edi
and ebx, 0x80000007
jge 0x140007261
dec ebx
or ebx, 0xfffffff8
inc ebx
mov qword [rsp + 0x50], 2
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r13
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.140016a40
mov r14, rax
mov r8d, esi
lea rdx, str.System_drive_obfuscation_calc:
lea rcx, [rsp + 0x20]
call fcn.140004140
nop
mov rdx, rax
mov rcx, qword [r14]
call fcn.14002e630
nop
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x1400072cb
cmp eax, 0xffffffff
je 0x1400072d9
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400072d9
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400309b0
mov rcx, qword [r14]
cmp byte [rcx + 0x20], 0
je 0x1400072e9
mov dl, 0x20
call fcn.14002e6b0
mov edx, ebx
mov rcx, qword [r14]
call fcn.14002e810
mov rcx, qword [r14]
cmp byte [rcx + 0x20], 0
je 0x140007304
mov dl, 0x20
call fcn.14002e6b0
nop
lea rcx, [rsp + 0x40]
call fcn.140027150
inc edi
cmp edi, 0x14
jl 0x140007250
mov edx, 0x104
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1400073cc
mov qword [rsp + 0x70], 2
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], r13
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x70]
call fcn.140016a40
mov rbx, rax
mov r8d, esi
lea rdx, str.Failed_to_get_system_directory.
lea rcx, [rsp + 0x28]
call fcn.140004140
nop
mov rdx, rax
mov rcx, qword [rbx]
call fcn.14002e630
nop
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx]
test eax, eax
je 0x140007397
cmp eax, 0xffffffff
je 0x1400073a5
lock xadd dword [rcx], esi
cmp esi, 1
jne 0x1400073a5
mov rcx, qword [rsp + 0x28]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400309b0
mov rcx, qword [rbx]
cmp byte [rcx + 0x20], 0
je 0x1400073b6
mov dl, 0x20
call fcn.14002e6b0
nop
lea rcx, [rsp + 0x48]
call fcn.140027150
lea rax, [0x14018c220]
mov qword [r15], rax
jmp 0x14000741c
mov r8d, esi
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x30]
call fcn.1400064b0
nop
mov r8d, 2
mov rdx, r15
mov rcx, rax
call fcn.140020fd0
nop
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x14000740e
cmp eax, 0xffffffff
je 0x14000741c
lock xadd dword [rcx], esi
cmp esi, 1
jne 0x14000741c
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400309b0
mov rax, r15
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140122ce0
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140007450
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x2d0
mov qword [rax - 0x260], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
mov rax, qword [0x1402f61c0]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov r14, rcx
xor ebp, ebp
mov dword [rsp + 0x30], ebp
movsd xmm6, qword [0x1402c2170]
mov ebx, ebp
lea r15, [0x1402c02b8]
or esi, 0xffffffff
movsd xmm7, qword [0x1402c2168]
nop word [rax + rax]
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm7
subsd xmm6, xmm0
mov qword [rsp + 0x48], 2
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r15
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x48]
call fcn.140016a40
mov rdi, rax
mov r8d, esi
lea rdx, str.SysWow64_folder_obfuscation_value:
lea rcx, [rsp + 0x20]
call fcn.140004140
nop
mov rdx, rax
mov rcx, qword [rdi]
call fcn.14002e630
nop
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x14000753a
cmp eax, 0xffffffff
je 0x140007548
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140007548
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400309b0
mov rcx, qword [rdi]
cmp byte [rcx + 0x20], 0
je 0x140007558
mov dl, 0x20
call fcn.14002e6b0
movaps xmm1, xmm6
mov rcx, qword [rdi]
call fcn.14002e910
mov rcx, qword [rdi]
cmp byte [rcx + 0x20], 0
je 0x140007574
mov dl, 0x20
call fcn.14002e6b0
nop
lea rcx, [rsp + 0x38]
call fcn.140027150
inc ebx
cmp ebx, 0x1e
jl 0x1400074c0
mov edx, 0x104
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
jne 0x140007644
mov qword [rsp + 0x68], 2
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x80], r15
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x68]
call fcn.140016a40
mov rbx, rax
mov r8d, esi
lea rdx, str.Failed_to_get_SysWow64_directory.
lea rcx, [rsp + 0x28]
call fcn.140004140
nop
mov rdx, rax
mov rcx, qword [rbx]
call fcn.14002e630
nop
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx]
test eax, eax
je 0x14000760f
cmp eax, 0xffffffff
je 0x14000761d
lock xadd dword [rcx], esi
cmp esi, 1
jne 0x14000761d
mov rcx, qword [rsp + 0x28]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400309b0
mov rcx, qword [rbx]
cmp byte [rcx + 0x20], 0
je 0x14000762e
mov dl, 0x20
call fcn.14002e6b0
nop
lea rcx, [rsp + 0x40]
call fcn.140027150
lea rax, [0x14018c220]
mov qword [r14], rax
jmp 0x140007657
mov r8d, esi
lea rdx, [rsp + 0x90]
mov rcx, r14
call fcn.1400064b0
mov rax, r14
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.140122ce0
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14000f480
Capabilities:
Enumerate processes

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x4b0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x4f0], rbx
mov rax, qword [0x1402f61c0]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
mov r15, rdx
mov r14, rcx
mov dword [rsp + 0x30], 0
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
lea rbp, [0x14018c220]
cmp rax, 0xffffffffffffffff
jne 0x14000f4e3
mov qword [r14], rbp
jmp 0x14000f647
mov dword [rsp + 0x40], 0x238
mov qword [rsp + 0x280], rbp
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
or ebx, 0xffffffff
test eax, eax
je 0x14000f606
mov r8d, ebx
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.1400064b0
xor r8d, r8d
mov rdx, r15
mov rcx, rax
call fcn.14001f820
test eax, eax
sete dil
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x14000f552
cmp eax, 0xffffffff
je 0x14000f560
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14000f560
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400309b0
test dil, dil
jne 0x14000f575
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x14000f504
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x14000f606
mov r9d, 0x104
lea r8, [rsp + 0x290]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
je 0x14000f5fd
mov r8d, ebx
lea rdx, [rsp + 0x290]
lea rcx, [rsp + 0x28]
call fcn.1400064b0
mov rcx, qword [rax]
mov qword [rsp + 0x280], rcx
mov qword [rax], rbp
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx]
test eax, eax
je 0x14000f5ef
cmp eax, 0xffffffff
je 0x14000f5fd
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14000f5fd
mov rcx, qword [rsp + 0x28]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400309b0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x280]
mov qword [r14], rax
mov eax, dword [0x14018c220]
test eax, eax
je 0x14000f636
cmp eax, 0xffffffff
je 0x14000f647
lock xadd dword [0x14018c220], ebx
cmp ebx, 1
jne 0x14000f647
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, rbp
call fcn.1400309b0
mov rax, r14
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.140122ce0
mov rbx, qword [rsp + 0x4f0]
add rsp, 0x4b0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000f680
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push rbp
push rsi
sub rsp, 0x288
mov rax, qword [0x1402f61c0]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor edx, edx
mov rbp, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000f6ba
xor al, al
jmp 0x14000f7ca
mov qword [rsp + 0x2b0], rdi
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov dword [rsp + 0x30], 0x238
xor dil, dil
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14000f7b5
mov qword [rsp + 0x2a8], rbx
mov qword [rsp + 0x280], r14
mov r14d, 1
nop dword [rax]
or r8d, 0xffffffff
lea rdx, [rsp + 0x5c]
lea rcx, [rsp + 0x20]
call fcn.1400064b0
xor r8d, r8d
mov rdx, rbp
mov rcx, rax
call fcn.14001f820
mov rcx, qword [rsp + 0x20]
test eax, eax
sete bl
mov eax, dword [rcx]
test eax, eax
je 0x14000f747
cmp eax, 0xffffffff
je 0x14000f755
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, r14d
jne 0x14000f755
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400309b0
test bl, bl
je 0x14000f78f
mov r8d, dword [rsp + 0x38]
xor edx, edx
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x14000f78f
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
movzx edi, dil
mov rcx, rbx
test eax, eax
cmovne edi, r14d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14000f700
mov r14, qword [rsp + 0x280]
mov rbx, qword [rsp + 0x2a8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, dil
mov rdi, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140122ce0
add rsp, 0x288
pop rsi
pop rbp
ret
Function at 0x140010170
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x1402f61c0]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
mov rdi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140010203
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400101fa
lea rax, [rsp + 0x4c]
mov r8, rdi
sub r8, rax
nop dword [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x1400101e4
add rax, 2
test ecx, ecx
jne 0x1400101d0
mov rcx, rbx
test edx, edx
je 0x140010226
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400101c0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140122ce0
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
jmp 0x140010205
Function at 0x1400128e0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov edx, 1
mov ecx, 0x100000
call fcn.140127248
mov rdi, rax
test rax, rax
jne 0x140012911
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor r9d, r9d
mov r8d, 0x100000
mov rdx, rdi
lea ecx, [r9 + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x140012904
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rdi], ebx
jbe 0x14001296b
nop word [rax + rax]
mov eax, ebx
mov rdx, rsi
imul rcx, rax, 0x128
movzx eax, word [rdi + rcx + 0x2e]
add rax, rcx
lea rcx, [rdi + 0x30]
add rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x14001297d
inc ebx
cmp ebx, dword [rdi]
jb 0x140012940
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
imul rax, rax, 0x128
mov rax, qword [rax + rdi + 0x18]
add rsp, 0x20
pop rdi
ret

Function at 0x140015f10
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0xa0
mov rax, qword [0x1402f61c0]
xor rax, rsp
mov qword [rsp + 0x90], rax
xor ecx, ecx
call fcn.14012f5cc
mov rcx, rax
call fcn.14012ee10
call fcn.14012ede4
mov ebx, eax
and ebx, 0x80000003
jge 0x140015f50
dec ebx
or ebx, 0xfffffffc
inc ebx
movaps xmm0, xmmword [str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]
add ebx, 7
movaps xmm1, xmmword [0x1402c1fb0]
mov edx, 1
movzx eax, word [0x1402c2008]
movaps xmmword [rsp + 0x20], xmm0
movaps xmm0, xmmword [0x1402c1fc0]
movaps xmmword [rsp + 0x40], xmm0
movaps xmm0, xmmword [0x1402c1fe0]
movaps xmmword [rsp + 0x30], xmm1
movaps xmm1, xmmword [0x1402c1fd0]
mov word [rsp + 0x88], ax
lea eax, [rbx*2 + 0xc]
movaps xmmword [rsp + 0x60], xmm0
movsd xmm0, qword [0x1402c2000]
movaps xmmword [rsp + 0x50], xmm1
movaps xmm1, xmmword [0x1402c1ff0]
movsxd rcx, eax
movsd qword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm1
call fcn.140127248
mov qword [0x141e537a8], rax
test rax, rax
je 0x14001604e
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0xb8], rdi
xor edi, edi
movsxd rsi, ebx
test ebx, ebx
jle 0x140016025
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [rax - 1]
call fcn.14012ede4
cdq
idiv ebx
movsxd rax, edx
movzx ecx, word [rsp + rax*2 + 0x20]
mov rax, qword [0x141e537a8]
mov word [rax + rdi*2], cx
inc rdi
cmp rdi, rsi
jl 0x140015ff4
mov rsi, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140122ce0
add rsp, 0xa0
pop rbx
ret
lea rcx, str.Random_Error__n
call fcn.140011f30
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140016100
Capabilities:
Print debug messages

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov r9, r8
mov r8, rdx
mov edx, ecx
lea rcx, [rsp + 0x20]
call fcn.140017620
nop
lea rax, [0x14018c220]
or edi, 0xffffffff
mov rcx, qword [rsp + 0x20]
cmp rcx, rax
je 0x1400161e9
call fcn.140018160
lea rcx, [rsp + 0x20]
test al, al
jne 0x140016174
mov eax, 0xa
mov word [rsp + 0x68], ax
movzx edx, ax
call fcn.14001dd50
lea rcx, [rsp + 0x20]
call fcn.140025d00
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1400161e4
lea rdx, [rsp + 0x28]
call fcn.14000f450
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x10]
add rbx, rcx
mov ecx, 2
call fcn.14012ef48
mov rcx, rax
mov r8, rbx
lea rdx, [0x1402c1d8c]
call fcn.1400197a0
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx]
test eax, eax
je 0x1400161c4
cmp eax, 0xffffffff
je 0x1400161d2
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400161d2
mov rcx, qword [rsp + 0x28]
mov edx, 1
lea r8d, [rdx + 7]
call fcn.1400309b0
mov ecx, 2
call fcn.14012ef48
mov rcx, rax
call fcn.14012fa20
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x140016202
cmp eax, 0xffffffff
je 0x140016210
lock xadd dword [rcx], edi
cmp edi, 1
jne 0x140016210
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400309b0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14003f300
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
push rsi
push rdi
push r14
sub rsp, 0x50
mov qword [r11 - 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x20], rbp
mov rbx, rdx
mov rdi, rcx
mov r8, qword [rcx]
mov esi, dword [r8 + 8]
btr esi, 0x1f
mov ebp, dword [r8 + 4]
inc ebp
cmp dword [r8], 1
ja 0x14003f364
cmp ebp, esi
ja 0x14003f364
movsxd rax, dword [r8 + 4]
lea rcx, [rax + rax*2]
mov rax, qword [r8 + 0x10]
lea rcx, [rax + rcx*8]
add rcx, r8
mov qword [r11 + 8], rcx
mov qword [r11 + 0x18], rcx
je 0x14003f35f
call fcn.14003cbb0
nop
jmp 0x14003f45b
lea rcx, [rsp + 0x28]
call fcn.14003c810
nop
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x30]
call fcn.14003c810
mov r14d, dword [rbx + 0x10]
mov dword [rsp + 0x38], r14d
movzx ebx, byte [rbx + 0x14]
mov byte [rsp + 0x3c], bl
cmp esi, ebp
sbb r9d, r9d
and r9d, 8
mov rax, qword [rdi]
cmp ebp, esi
jbe 0x14003f3a7
mov r8d, dword [rax + 4]
inc r8d
jmp 0x14003f3b0
mov r8d, dword [rax + 8]
btr r8d, 0x1f
mov edx, dword [rax + 4]
mov rcx, rdi
call fcn.140046ab0
mov rdx, qword [rdi]
movsxd rax, dword [rdx + 4]
lea rcx, [rax + rax*2]
mov rax, qword [rdx + 0x10]
lea r8, [rax + rcx*8]
add r8, rdx
je 0x14003f3ff
mov rax, qword [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x14018c220]
mov qword [rsp + 0x28], rcx
mov rax, qword [rsp + 0x30]
mov qword [r8 + 8], rax
mov qword [rsp + 0x30], rcx
mov dword [r8 + 0x10], r14d
mov byte [r8 + 0x14], bl
jmp 0x14003f404
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
or ebx, 0xffffffff
test eax, eax
je 0x14003f421
cmp eax, ebx
je 0x14003f42f
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14003f42f
mov rcx, qword [rsp + 0x30]
mov edx, 4
lea r8d, [rdx + 4]
call fcn.1400309b0
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x14003f448
cmp ecx, 0xffffffff
je 0x14003f45b
lock xadd dword [rax], ebx
cmp ebx, 1
jne 0x14003f45b
mov edx, 4
lea r8d, [rdx + 4]
mov rcx, qword [rsp + 0x28]
call fcn.1400309b0
mov rax, qword [rdi]
inc dword [rax + 4]
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x140056520
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
movzx ebx, cl
call fcn.140056dd0
mov ecx, dword [0x1402f4ad0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rax, rax
jne 0x140056641
test bl, bl
je 0x140056641
lea ecx, [rax + 0x78]
call fcn.140122d04
mov qword [rsp + 0x78], rax
lea edx, [rsi + 1]
mov rcx, rax
call fcn.140057a80
mov rsi, rax
mov qword [rsp + 0x88], rax
mov rdx, rax
mov ecx, dword [0x1402f4ad0]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov ecx, 0x10
call fcn.140122d04
mov qword [rsp + 0x78], rax
mov rdx, rsi
mov rcx, rax
call fcn.140057960
nop
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsi + 0x38], rax
mov rcx, rsi
call fcn.140057fb0
mov byte [rsi + 0x72], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
mov qword [rsi + 0x40], rax
mov rax, qword [0x141e4e830]
test rax, rax
jne 0x1400565ec
mov rax, qword [rsi + 0x38]
mov qword [0x141e4e830], rax
jmp 0x140056641
mov qword [rsp + 0x78], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov dword [rsp + 0x30], 2
xor eax, eax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x78]
mov r8, rdi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rsi + 0x38]
mov rcx, qword [rsp + 0x78]
call fcn.140056e90
mov rax, rsi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret

Function at 0x140056dd0
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
cmp dword [0x1402f4ad0], 0xffffffff
jne 0x140056e7e
mov ecx, dword [0x141e524dc]
mov rax, qword gs:[0x58]
mov r8d, 8
mov rdx, qword [rax + rcx*8]
lea rbx, [0x141e4e970]
mov eax, dword [r8 + rdx]
cmp dword [0x141e4e978], eax
jle 0x140056e50
lea rcx, [0x141e4e978]
call fcn.140122f20
cmp dword [0x141e4e978], 0xffffffff
jne 0x140056e50
xor edx, edx
mov rcx, rbx
call fcn.14004d810
lea rcx, [0x140159210]
call fcn.14012330c
nop
lea rcx, [0x141e4e978]
call fcn.140122ec0
mov rcx, rbx
call fcn.14004dc40
or rbx, 1
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1402f4ad0], eax
test bl, 1
je 0x140056e7e
and rbx, 0xfffffffffffffffe
mov rcx, rbx
add rsp, 0x30
pop rbx
jmp fcn.14004e0f0
add rsp, 0x30
pop rbx
ret
Function at 0x140056e90
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov rsi, rdx
mov rdi, rcx
lea rbx, [0x141e4e968]
mov rcx, rbx
call fcn.14004dc40
or rbx, 1
mov qword [rsp + 0x60], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x141e4e950]
jne 0x140056ee3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140057023
mov rax, qword [0x1402f4ad8]
mov r8d, dword [rax + 8]
btr r8d, 0x1f
movsxd rdx, dword [rax + 4]
lea ecx, [rdx + 1]
cmp dword [rax], 1
ja 0x140056f06
cmp r8d, ecx
jb 0x140056f09
jmp 0x140056f2e
cmp r8d, ecx
sbb r9d, r9d
and r9d, 8
cmp ecx, r8d
cmova r8d, ecx
lea rcx, [0x1402f4ad8]
call fcn.1400571e0
mov rax, qword [0x1402f4ad8]
movsxd rdx, dword [rax + 4]
mov rcx, qword [rax + 0x10]
lea rdx, [rcx + rdx*8]
mov qword [rdx + rax], rdi
mov rax, qword [0x1402f4ad8]
inc dword [rax + 4]
mov rax, qword [0x1402f4ae0]
mov r8d, dword [rax + 8]
btr r8d, 0x1f
movsxd rdx, dword [rax + 4]
lea ecx, [rdx + 1]
cmp dword [rax], 1
ja 0x140056f67
cmp r8d, ecx
jb 0x140056f6a
jmp 0x140056f8f
cmp r8d, ecx
sbb r9d, r9d
and r9d, 8
cmp ecx, r8d
cmova r8d, ecx
lea rcx, [0x1402f4ae0]
call fcn.140057050
mov rax, qword [0x1402f4ae0]
movsxd rdx, dword [rax + 4]
mov rcx, qword [rax + 0x10]
lea rdx, [rcx + rdx*8]
mov qword [rdx + rax], rsi
mov rax, qword [0x1402f4ae0]
inc dword [rax + 4]
cmp dword [0x141e4e950], 0
jne 0x140057015
cmp qword [0x141e4e958], 0
jne 0x140056fe2
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x141e4e958], rax
lea rdx, [0x141e4e958]
lea rcx, [0x1402f4ad8]
call fcn.140056850
lea rax, [0x141e4e950]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140056950]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140057023
mov rcx, qword [0x141e4e958]
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop
test bl, 1
je 0x140057034
and rbx, 0xfffffffffffffffe
mov rcx, rbx
call fcn.14004e0f0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret