joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b070
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002e528]
test rcx, rcx
je 0x14000b0ab
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000b09e
mov rcx, qword [0x14002e528]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002e528]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140032578], 0
je 0x14000b19e
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x140025938]
mov qword [rsp + 0x80], rsi
lea rsi, [0x14002e560]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b17f
test al, 0x10
je 0x14000b17f
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000b125
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x14000d964
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14000d7f7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000d7f7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000d7f7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000d7f7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000d7f7
cmp dword [rcx + 0x84], 0xe
jbe 0x14000d7f7
cmp dword [rcx + 0xf8], 0
je 0x14000d7f7
mov ecx, ebx
call fcn.14000d898
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14000d688
cmp dword [rbp + 0x20], 0
je 0x14000d844
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000d84c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000d790
Function at 0x140ac4058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140ac41df
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 0x140ac4089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ac406f
add dl, dl
jne 0x140ac4096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ac40f6
xor eax, eax
add dl, dl
jne 0x140ac40a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ac41ad
add dl, dl
jne 0x140ac40b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ac40c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ac40d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ac40dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140ac40ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140ac407e
mov eax, 1
add dl, dl
jne 0x140ac4106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ac4113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ac40fb
sub eax, ebx
mov ebx, 1
jne 0x140ac414c
mov ecx, 1
add dl, dl
jne 0x140ac412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ac413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ac4123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ac407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140ac4168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ac4175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ac415d
cmp eax, 0x7d00
jae 0x140ac419b
cmp eax, 0x500
jb 0x140ac4196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ac407e
cmp eax, 0x7f
ja 0x140ac419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ac407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140ac41d2
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 0x140ac407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14061e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14061e1df
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 0x14061e089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14061e06f
add dl, dl
jne 0x14061e096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14061e0f6
xor eax, eax
add dl, dl
jne 0x14061e0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14061e1ad
add dl, dl
jne 0x14061e0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14061e0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14061e0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14061e0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14061e0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14061e07e
mov eax, 1
add dl, dl
jne 0x14061e106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14061e113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14061e0fb
sub eax, ebx
mov ebx, 1
jne 0x14061e14c
mov ecx, 1
add dl, dl
jne 0x14061e12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14061e13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14061e123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14061e07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14061e168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14061e175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14061e15d
cmp eax, 0x7d00
jae 0x14061e19b
cmp eax, 0x500
jb 0x14061e196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14061e07e
cmp eax, 0x7f
ja 0x14061e19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14061e07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14061e1d2
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 0x14061e07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x2fc4d1a90
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d2492
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f5108]
test eax, eax
je 0x2fc4d252a
lea rax, [0x2fc4f50e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f5110]
mov qword [rbp - 8], rax
jmp 0x2fc4d250e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d2502
cmp qword [rbp - 0x10], 0
je 0x2fc4d2502
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d24c8
lea rax, [0x2fc4f50e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d252b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d2630
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d2658
mov eax, 0
jmp 0x2fc4d26a6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d2681
mov eax, 0
jmp 0x2fc4d26a6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d26a1
mov eax, 0
jmp 0x2fc4d26a6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d26ac
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d272a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d2721
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d2721
mov rax, qword [rbp - 8]
jmp 0x2fc4d273f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d26f4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140018930
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x60
movsxd rbp, dword [rcx + 8]
mov rdi, rdx
mov rsi, rcx
test ebp, ebp
jne 0x140018959
xor eax, eax
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rdx]
mov rcx, qword [rcx]
mov qword [rsp + 0x58], rbx
xor ebx, ebx
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r15
xor r15d, r15d
mov dword [rsp + 0x98], ebx
cmp dword [rax + 8], ebx
je 0x14001898e
mov rdx, qword [rax]
jmp 0x140018995
lea rdx, [0x14025d748]
cmp dword [rcx + 8], ebx
je 0x14001899f
mov rcx, qword [rcx]
jmp 0x1400189a6
lea rcx, [0x14025d748]
call fcn.140009e50
test eax, eax
mov r13, rbp
setne r14b
xor ebp, ebp
mov byte [rsp + 0x90], r14b
nop
mov ecx, r15d
inc rbp
inc r15d
mov dword [rsp + 0x20], ecx
cmp rbp, r13
jge 0x140018a98
movzx r12d, r14b
mov r14, rbp
shl r14, 4
mov rbx, qword [rdi]
mov rax, qword [rsi]
cmp dword [rbx + 8], 0
je 0x1400189f2
mov rbx, qword [rbx]
jmp 0x1400189f9
lea rbx, [0x14025d748]
cmp dword [r14 + rax + 8], 0
je 0x140018a07
mov rdi, qword [r14 + rax]
jmp 0x140018a0e
lea rdi, [0x14025d748]
sub rdi, rbx
movzx ecx, word [rdi + rbx]
test cx, cx
jne 0x140018a1f
cmp word [rbx], cx
je 0x140018a41
cmp cx, word [rbx]
je 0x140018a3b
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
movzx ecx, word [rbx]
movzx esi, ax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
cmp si, ax
jne 0x140018a45
add rbx, 2
jmp 0x140018a11
xor ecx, ecx
jmp 0x140018a4d
movzx eax, ax
movzx ecx, si
sub ecx, eax
xor eax, eax
test ecx, ecx
setne al
cmp r12d, eax
jne 0x140018a7c
mov rsi, qword [rsp + 0x80]
inc r15d
mov rdi, qword [rsp + 0x88]
inc rbp
add r14, 0x10
cmp rbp, r13
jl 0x1400189e1
mov ecx, dword [rsp + 0x20]
mov rsi, qword [rsp + 0x80]
mov ebx, dword [rsp + 0x98]
movzx r14d, byte [rsp + 0x90]
mov edi, r15d
sub edi, ecx
test r14b, r14b
je 0x140018ad2
cmp ebx, ecx
je 0x140018ac7
movsxd rdx, ecx
shl rdx, 4
add rdx, qword [rsi]
movsxd rcx, ebx
shl rcx, 4
add rcx, qword [rsi]
movsxd r8, edi
shl r8, 4
call qword [sym.imp.VCRUNTIME140.dll_memmove]
add ebx, edi
mov dword [rsp + 0x98], ebx
jmp 0x140018afd
movsxd rbx, ecx
shl rbx, 4
add rbx, qword [rsi]
test edi, edi
je 0x140018af6
mov rcx, qword [rbx]
test rcx, rcx
je 0x140018aed
call fcn.14003e1e0
add rbx, 0x10
sub edi, 1
jne 0x140018ae0
mov ebx, dword [rsp + 0x98]
mov rdi, qword [rsp + 0x88]
xor r14b, 1
mov byte [rsp + 0x90], r14b
cmp rbp, r13
jl 0x1400189c0
mov r15, qword [rsp + 0x38]
mov eax, r13d
mov r14, qword [rsp + 0x40]
sub eax, ebx
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
mov dword [rsi + 8], ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x140018ee0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r10, rcx
not edx
movzx ecx, word [rcx]
add r10, 2
test cx, cx
je 0x140018f70
lea r11, [0x140356bf0]
nop dword [rax + rax]
mov eax, edx
movzx r8d, cx
xor r8, rax
shr edx, 8
movzx eax, r8b
lea r10, [r10 + 2]
shr cx, 8
movzx r9d, cx
mov r8d, dword [r11 + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rax, r9
shr r9, 8
movzx ecx, al
mov edx, dword [r11 + rcx*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rax, r9
shr r9, 8
movzx ecx, al
mov r8d, dword [r11 + rcx*4]
movzx ecx, word [r10 - 2]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor r9, rax
movzx eax, r9b
mov edx, dword [r11 + rax*4]
xor edx, r8d
test cx, cx
jne 0x140018f00
not edx
mov eax, edx
ret

Function at 0x140018f80
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
movzx eax, word [rcx]
xor ebx, ebx
mov rdi, rcx
test ax, ax
je 0x140018fe6
mov qword [rsp + 0x30], rsi
lea rsi, [0x140358bf0]
movzx ecx, ax
lea rdi, [rdi + 2]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towupper]
movzx r8d, ax
mov eax, ebx
xor rax, r8
shr ebx, 8
movzx ecx, al
shr r8, 8
mov edx, dword [rsi + rcx*4]
xor edx, ebx
mov eax, edx
shr edx, 8
xor r8, rax
movzx eax, r8b
mov ebx, dword [rsi + rax*4]
movzx eax, word [rdi]
xor ebx, edx
test ax, ax
jne 0x140018fa3
mov rsi, qword [rsp + 0x30]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140019bc0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xa0
lea rax, [0x140275d78]
mov rsi, rcx
mov qword [rcx], rax
mov rdi, rdx
add rcx, 8
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov edx, 0xfa0
lea rcx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_SetCriticalSectionSpinCount]
xor eax, eax
mov qword [rsi + 0x58], rdi
lea rcx, [rsp + 0x20]
mov dword [rsi + 0x30], eax
mov dword [rsi + 0x40], eax
mov dword [rsi + 0x50], eax
call fcn.1400914b0
mov edx, dword [rax + 0x10]
test edx, edx
mov eax, 0x10000
cmove edx, eax
lea ecx, [rdx - 1]
add edx, 0x1fffff
not ecx
and rcx, rdx
call fcn.14008fb40
mov rcx, rsi
mov qword [rsi + 0x38], rax
call fcn.140025c10
mov ecx, eax
call fcn.14008fb40
mov qword [rsi + 0x48], rax
test rax, rax
je 0x140019c57
cmp qword [rsi + 0x38], 0
jne 0x140019c6a
lea rcx, str.Memory_pools_allocations_failed__exiting..._n
call sub.KERNEL32.dll_OutputDebugStringW
mov cl, 1
call fcn.140094b10
test byte [rsi + 0x38], 0xf
jne 0x140019c76
test byte [rsi + 0x48], 0xf
je 0x140019c89
lea rcx, str.OS_allocations_must_be_aligned_to_a_value_multiple_of_16__exiting..._n
call sub.KERNEL32.dll_OutputDebugStringW
mov cl, 1
call fcn.140094b10
mov rcx, rsi
call fcn.1400262e0
lea r11, [rsp + 0xa0]
mov rax, rsi
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

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

Disassembly:
mov rdx, qword [rcx]
test rdx, rdx
je 0x14001a941
or eax, 0xffffffff
lock xadd dword [rdx + 0x48], eax
cmp eax, 1
jne 0x14001a941
lea rcx, [0x1403613a8]
jmp fcn.140024640
ret
Function at 0x14001ea40
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 rdi, rcx
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14001ea8e
lea ecx, [rax + 0x18]
call fcn.14000c600
mov rbx, rax
test rax, rax
je 0x14001ea80
mov qword [rax], rsi
mov qword [rax + 8], rsi
mov dword [rax + 0x10], esi
jmp 0x14001ea83
mov rbx, rsi
mov ecx, dword [rdi]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp qword [rbx + 8], rsi
jne 0x14001eaea
mov rax, qword [rbx]
test rax, rax
je 0x14001eaa5
mov qword [rbx + 8], rax
mov qword [rbx], rsi
jmp 0x14001eae3
lea rcx, [rdi + 8]
call fcn.140029190
mov qword [rbx + 8], rax
test rax, rax
jne 0x14001eae3
xor edx, edx
mov ecx, 0xa00
call fcn.140042ef0
mov qword [rbx + 8], rax
mov edx, 0x1f
nop dword [rax]
lea rcx, [rax + 0x50]
mov qword [rax], rcx
mov rax, rcx
sub rdx, 1
jne 0x14001ead0
mov qword [rcx], rsi
mov dword [rbx + 0x10], 0x20
mov rax, qword [rbx + 8]
mov rsi, qword [rsp + 0x38]
mov rcx, qword [rax]
dec dword [rbx + 0x10]
mov qword [rbx + 8], rcx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14001eb10
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
mov r9, rcx
xor eax, eax
mov ecx, dword [rcx + 0x4018]
test ecx, ecx
je 0x14001eb36
mov rbx, qword [r9 + rax*8 + 0x18]
cmp qword [rbx], 0
je 0x14001eb60
inc eax
cmp eax, ecx
jb 0x14001eb25
mov r8d, ecx
lea rcx, str.AllocateFromPool_run_out_of_memory_allocating__u_bytes_for__u_allocations_n
call fcn.140026bc0
lea rcx, str.Please_increase_MaxNumAllocations_for_that_pool__exiting..._n
call sub.KERNEL32.dll_OutputDebugStringW
mov cl, 1
call fcn.140094b10
xor eax, eax
add rsp, 0x20
pop rbx
ret
cmp dword [r9 + 4], eax
mov r8d, edx
mov edx, 0xfe
cmovae eax, dword [r9 + 4]
inc dword [r9]
mov ecx, dword [r9]
inc dword [r9 + 0xc]
cmp dword [r9 + 8], ecx
mov dword [r9 + 4], eax
cmovae ecx, dword [r9 + 8]
mov dword [r9 + 8], ecx
mov rcx, qword [rbx + 8]
mov qword [rbx], r8
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rbx + 8]
add rsp, 0x20
pop rbx
ret
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
cmp r8d, 0x10
jbe 0x140026d12
lea rcx, str.Alignment___16_is_not_supported_n
call sub.KERNEL32.dll_OutputDebugStringW
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsi + 0x30], eax
je 0x140026d2f
call fcn.14009a4f0
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor eax, eax
lea rdx, [rsi + 0x60]
nop word [rax + rax]
mov r8, qword [rdx]
mov ecx, dword [r8 + 0x10]
sub ecx, 0x10
cmp edi, ecx
jbe 0x140026df3
inc eax
add rdx, 8
cmp eax, 0xe
jb 0x140026d40
mov ecx, dword [rsi + 0x40]
lea edx, [rdi + 0x10]
add ecx, 0xf
mov r8d, 0x200000
and ecx, 0xfffffff0
add edx, ecx
mov dword [rsi + 0x40], ecx
cmp edx, r8d
ja 0x140026dc2
mov dword [rsi + 0x40], edx
mov edx, edi
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsi + 0x38]
add rbx, rcx
mov eax, edi
mov qword [rbx], rax
mov rax, qword [rsi + 0x38]
add rax, 0x10
add rcx, rax
mov qword [rbx + 8], rcx
lea rcx, str.Malloc_Size_u_LargeMemoryPoolOffset_u__n
mov r8d, dword [rsi + 0x40]
call fcn.140026bc0
mov rax, qword [rbx + 8]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
sub r8d, ecx
mov edx, edi
lea rcx, str.MallocCrash_run_out_of_memory_allocating__u_bytes__free__u_bytes_n
call fcn.140026bc0
lea rcx, str.Please_increase_LARGE_MEMORYPOOL_SIZE__exiting..._n
call sub.KERNEL32.dll_OutputDebugStringW
mov cl, 1
call fcn.140094b10
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov edx, edi
mov rcx, r8
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x14001eb10
Function at 0x140021240
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
push rsi
sub rsp, 0x48
mov qword [rsp + 0x40], rbp
mov rsi, rcx
mov qword [rsp + 0x38], rdi
mov rbp, rdx
xor edi, edi
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r15
mov r15d, r8d
mov dword [rsp + 0x70], edi
test rdx, rdx
je 0x140021275
mov r14d, dword [rdx + 0x28]
jmp 0x140021278
mov r14d, edi
mov ecx, dword [0x140361290]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x1400212ba
lea ecx, [rax + 0x18]
call fcn.14000c600
mov rbx, rax
test rax, rax
je 0x1400212a8
mov qword [rax], rdi
mov qword [rax + 8], rdi
mov dword [rax + 0x10], edi
jmp 0x1400212ab
mov rbx, rdi
mov ecx, dword [0x140361290]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp qword [rbx + 8], rdi
jne 0x14002131d
mov rax, qword [rbx]
test rax, rax
je 0x1400212d1
mov qword [rbx + 8], rax
mov qword [rbx], rdi
jmp 0x140021316
lea rcx, [0x140361298]
call fcn.140029190
mov qword [rbx + 8], rax
test rax, rax
jne 0x140021316
xor edx, edx
mov ecx, 0x2000
call fcn.140042ef0
mov qword [rbx + 8], rax
mov edx, 0x1f
nop dword [rax + rax]
lea rcx, [rax + 0x100]
mov qword [rax], rcx
mov rax, rcx
sub rdx, 1
jne 0x140021300
mov qword [rcx], rdi
mov dword [rbx + 0x10], 0x20
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
dec dword [rbx + 0x10]
mov qword [rbx + 8], rax
test rcx, rcx
je 0x14002134e
mov r8d, r14d
mov qword [rsp + 0x68], rdi
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x60], rdi
call fcn.140019220
mov edi, 1
jmp 0x140021351
mov rax, rdi
mov r14, qword [rsp + 0x30]
or ebx, 0xffffffff
mov qword [rsi + 8], rbp
mov rbp, qword [rsp + 0x40]
mov dword [rsi + 0x10], r15d
mov r15, qword [rsp + 0x28]
mov qword [rsi], rax
test dil, 2
je 0x14002139e
mov rax, qword [rsp + 0x78]
and edi, 0xfffffffd
test rax, rax
je 0x14002139e
mov ecx, ebx
lock xadd dword [rax + 0x48], ecx
cmp ecx, 1
jne 0x14002139e
mov rdx, qword [rsp + 0x78]
lea rcx, [0x1403613a8]
call fcn.140024640
test dil, 1
mov rdi, qword [rsp + 0x38]
je 0x1400213ce
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x1400213ce
lock xadd dword [rax + 0x48], ebx
cmp ebx, 1
jne 0x1400213ce
mov rdx, qword [rsp + 0x60]
lea rcx, [0x1403613a8]
call fcn.140024640
mov rax, rsi
add rsp, 0x48
pop rsi
pop rbx
ret