joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140157950
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140157966
mov al, 1
jmp 0x1401579c6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140157977
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1401579c4
mov ecx, dword [rcx + 0x18]
nop
call fcn.140158b3c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401579c4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1401579c4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1401579c4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1401579c6
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140158c4c
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14014c5f8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14014c5f8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140158d9c
cmp rax, 0xffffffffffffffff
je 0x140158d9c
xor edi, edi
test rbp, rbp
jle 0x140158d47
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14015531c
mov rbx, rax
test rax, rax
jne 0x140158cd4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140158d3d
mov edx, 0x8000
mov ecx, r14d
call fcn.14014ded4
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140150d10
cmp eax, 0xffffffff
je 0x140158d1d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140158ce4
mov edx, r15d
mov ecx, r14d
call fcn.14014ded4
jmp 0x140158d3d
cmp byte [rsi + 0x38], dil
je 0x140158d34
cmp dword [rsi + 0x34], 5
jne 0x140158d34
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x140158d3d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140155394
jmp 0x140158db0
jns 0x140158db0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14014c5f8
cmp rax, 0xffffffffffffffff
jne 0x140158d68
cmp byte [rsi + 0x30], dil
je 0x140158db0
mov edi, dword [rsi + 0x2c]
jmp 0x140158db0
mov ecx, r14d
call fcn.140158b3c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140158db0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x140158db0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140158da9
mov eax, dword [rsi + 0x2c]
jmp 0x140158dae
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14014c5f8
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14015a82c
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 0x14015a8b3
mov rsi, rbx
cmp word [rax], bp
je 0x14015a872
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14015a85c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14015a858
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1401563ec
mov rdi, rax
test rax, rax
je 0x14015a8a0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140137710
mov rbp, rdi
xor ecx, ecx
call fcn.140155394
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 0x14015d980
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140154d48
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14015da21
cmp ebx, dword [rsp + 0x30]
je 0x14015da1a
test esi, esi
je 0x14015da1a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14015d9f5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14015da02
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14015d9df
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14015da06
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14015da23
mov eax, 1
jmp 0x14015da23
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14015dfb8
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14015dfd8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140148d90
or eax, 0xffffffff
jmp 0x14015dfda
xor eax, eax
add rsp, 0x28
ret

Function at 0x140161794
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1401cc760]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1401617de
call fcn.140148dfc
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.140148e1c
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.140147650
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140132b60
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1401617e9
lea eax, [rbx + 1]
jmp 0x1401617cb
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1401617c9
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1401617cb
Function at 0x1400067f0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rsi, rcx
mov rbx, rdx
test rdx, rdx
je 0x14000680f
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp 0x140020430
jmp qword [sym.imp.msvcrt.dll_fflush]

Function at 0x140019e00
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.14001fe40
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14001fe40
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140019e70
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14002f1f4]
mov rbx, rcx
test esi, esi
jle 0x140019fa0
mov rax, qword [0x14002f1f8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140019ebb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140019f45
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140019ea0
mov rcx, rbx
call fcn.14001a8c0
mov rdi, rax
test rax, rax
je 0x140019fc2
mov rax, qword [0x14002f1f8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14001aa00
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14002f1f8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140019fa7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140019f3e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140019f50
add dword [0x14002f1f4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14002f1f8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140019f3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140019e00
nop dword [rax]
xor esi, esi
jmp 0x140019ec8
mov rax, qword [0x14002f1f8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140019e00
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140019e00
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x14001a530
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14002f260]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14002f240]
test rbx, rbx
je 0x14001a58c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14001a583
test rsi, rsi
je 0x14001a583
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14001a568
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14001a8c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140028c80]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14001a8e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14001a8e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14001a8e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14001a93d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14001a934
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14001a8e0
add rax, 0x28
cmp rax, r9
jne 0x14001a920
xor eax, eax
ret

Function at 0x14001a940
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140028c80]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14001a95f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14001a968
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14001a95f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14001aa00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140028c80]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14001aa1f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14001aa28
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140020ec0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x7b], 0
mov qword [rsp + 0x83], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x140020fc2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x140020f9a
add rax, 1
cmp rax, 0x6b
je 0x140020fb7
cmp byte [rcx + rax], 0
jne 0x140020f90
movsxd rdx, eax
cmp eax, 0x6a
je 0x140020fb7
add eax, 1
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x140020fab

Function at 0x140021360
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x14002fd60], 1
je 0x1400213d8
lea rdi, [0x14002fd60]
mov rcx, rdi
call fcn.140020c40
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.1400205c0
mov esi, dword [0x14002fd60]
test esi, esi
jne 0x1400213e8
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140026438], eax
cmp eax, 0xffffffff
je 0x140025da6
mov dword [0x14002fd60], 1
mov rcx, rbp
call fcn.1400208b0
test rbx, rbx
je 0x1400213d8
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.140020fe0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x1400213b8
mov ecx, 2
call qword [fcn.14001fe40]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x1400213b8
call sub.msvcrt.dll_abort
nop
Function at 0x140021410
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.1400210f0
cmp qword [0x140031048], 0
mov rbx, rax
je 0x140021528
test rax, rax
je 0x140021528
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.140024690
cmp eax, 1
je 0x140021536
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rsi
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je fcn.140025dac
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x140026438]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14002153c
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.140020ec0
nop
jmp fcn.140025dac

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

Disassembly:
sub rsp, 0x28
call fcn.140021360
mov ecx, dword [0x140026438]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140021570
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140021410
Function at 0x140021ce0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x140021e08
cmp eax, 1
je 0x140021d3b
call fcn.140020c40
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.1400205c0
mov r12d, dword [rbx]
test r12d, r12d
je 0x140021d50
cmp r12d, 1
jne 0x140021de0
mov rcx, rbp
call fcn.1400208b0
test rdi, rdi
je 0x140021d3b
mov rcx, rdi
call fcn.140020fe0
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x1400210c0]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140021360
mov ecx, dword [0x140026438]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x140021e48
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.140021360
mov ecx, dword [0x140026438]
call r12
test rax, rax
je 0x140021e30
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.140021360
mov ecx, dword [0x140026438]
call r12
test rax, rax
je 0x140021e20
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x140021d26
mov ecx, 2
call qword [fcn.14001fe40]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x140021d26
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140021410
test rax, rax
jne 0x140021dc9
jmp 0x140025dc5
call fcn.140021410
test rax, rax
jne 0x140021da5
jmp 0x140025dde
call fcn.140021410
test rax, rax
jne 0x140021d7f
jmp 0x140025dd4
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2

Function at 0x1400220d0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.140021360
mov ecx, dword [0x140026438]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140022148
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.1400246a0
cmp esi, dword [rbx + 0x48]
jae 0x140022123
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x140022123
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.1400246e0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140021410
mov rbx, rax
jmp 0x1400220fd
Function at 0x140022160
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.140021360
mov ecx, dword [0x140026438]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140022260
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.1400246a0
cmp esi, dword [rbx + 0x48]
jae 0x1400221e0
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r13
mov byte [rax + rsi], 1
call fcn.1400246e0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r15d, [rsi + 1]
mov rcx, qword [rbx + 0x50]
movsxd r14, r15d
lea rdx, [r14*8]
call sub.msvcrt.dll_realloc
mov rdi, rax
test rax, rax
je 0x14002226d
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x14002226d
mov eax, dword [rbx + 0x48]
mov edx, r15d
sub edx, eax
lea rcx, [rdi + rax*8]
lea r8, [rdx*8]
xor edx, edx
call sub.msvcrt.dll_memset
mov ecx, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
mov rax, rcx
add rcx, r14
sub r8d, eax
call sub.msvcrt.dll_memset
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], r14
mov dword [rbx + 0x48], r15d
jmp 0x1400221af
call fcn.140021410
mov rbx, rax
jmp 0x14002219a
mov rcx, r13
call fcn.1400246e0
mov eax, 0xc
jmp 0x1400221cd

Function at 0x1400222f0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140021360
mov ecx, dword [0x140026438]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140022318
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.140021410
test rax, rax
jne 0x14002230a
add rsp, 0x28
ret

Function at 0x140022380
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140021360
mov ecx, dword [0x140026438]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400223a8
add rax, 0x18
add rsp, 0x28
ret
call fcn.140021410
test rax, rax
jne 0x14002239a
jmp 0x14002239e

Function at 0x1400224c0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14002fd68]
test eax, eax
jne 0x1400224d8
xor eax, eax
add rsp, 0x28
ret
call fcn.140021360
mov ecx, dword [0x140026438]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140022508
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x1400224ce
test byte [rax + 0x40], 3
je 0x1400224ce
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x1400224d0
call fcn.140021410
test rax, rax
jne 0x1400224ee
jmp 0x1400224ce

Function at 0x140022520
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.140021360
mov ecx, dword [0x140026438]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140022560
test ebx, ebx
jle 0x140022550
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.140021410
test rax, rax
jne 0x14002253d
add rsp, 0x20
pop rbx
ret
Function at 0x140022650
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140021360
mov ecx, dword [0x140026438]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400226c8
test byte [rbx + 0x40], 0xc
jne 0x14002267f
mov eax, dword [0x14002fd68]
test eax, eax
jne 0x140022690
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.1400205c0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x1400226b3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x1400226b3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x1400226dc
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.1400208b0
call fcn.140021410
mov rbx, rax
test rax, rax
jne 0x14002266f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x1400226fa
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.1400208b0
call fcn.140022570
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140022780
call fcn.140023830
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x1400227b8
call fcn.140021360
mov ecx, dword [0x140026438]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140022810
test esi, esi
je 0x140022796
call fcn.140022650
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400227f0
mov edx, edi
call fcn.1400238e0
call fcn.140022650
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140021360
mov ecx, dword [0x140026438]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140022800
call fcn.140022650
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140022650
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140021360
mov ecx, dword [0x140026438]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140022755
call fcn.140021410
mov rbx, rax
jmp 0x140022755
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14002276e
call fcn.140021410
jmp 0x140022796
call fcn.140021410
mov rbx, rax
jmp 0x140022751