joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401f2950
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov dword [rbp - 0x3c], eax
mov dword [rbp - 0x40], eax
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov qword [rbp + 0x28], r9
mov rcx, qword [rbp + 0x30]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp + 0x10]
mov qword [rbp - 0x50], rcx
mov rdx, qword [rbp + 0x18]
mov qword [rbp - 0x58], rdx
mov r8d, dword [rbp + 0x20]
mov dword [rbp - 0x48], r8d
mov r9, qword [rbp + 0x28]
mov qword [rbp - 0x60], r9
lea rcx, [rbp - 0x88]
call fcn.14000f010
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x58]
mov r8d, dword [rbp - 0x48]
mov r9, qword [rbp - 0x60]
call sub.KERNEL32.dll_ReadFile
mov ebx, eax
lea rcx, [rbp - 0x88]
call fcn.14000f060
mov dword [rbp - 0x40], ebx
mov eax, dword [rbp - 0x40]
mov dword [rbp - 0x3c], eax
mov rcx, rsp
call fcn.1401f2a04
nop
mov eax, dword [rbp - 0x3c]
mov dword [rbp - 0x44], eax
mov eax, dword [rbp - 0x44]
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x1401f2c30
Capabilities:
Create thread

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0xd0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x48], rax
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov ecx, dword [rbp + 0x30]
mov dword [rsp + 0x20], ecx
mov rcx, qword [rbp + 0x38]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rbp + 0x10]
mov qword [rbp - 0x58], rcx
mov rdx, qword [rbp + 0x18]
mov qword [rbp - 0x60], rdx
mov r8, qword [rbp + 0x20]
mov qword [rbp - 0x68], r8
mov r9, qword [rbp + 0x28]
mov qword [rbp - 0x70], r9
lea rcx, [rbp - 0x98]
call fcn.14000f010
mov rcx, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x60]
mov r8, qword [rbp - 0x68]
mov r9, qword [rbp - 0x70]
call sub.KERNEL32.dll_CreateThread
mov rbx, rax
lea rcx, [rbp - 0x98]
call fcn.14000f060
mov qword [rbp - 0x48], rbx
mov rax, qword [rbp - 0x48]
mov qword [rbp - 0x40], rax
mov rcx, rsp
call fcn.1401f2cfa
nop
mov rax, qword [rbp - 0x40]
mov qword [rbp - 0x50], rax
mov rax, qword [rbp - 0x50]
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x1401f2d20
Capabilities:
Resume thread

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0xa0]
xor eax, eax
mov dword [rbp - 0x3c], eax
mov dword [rbp - 0x40], eax
mov qword [rbp + 0x10], rcx
mov rcx, qword [rbp + 0x10]
mov qword [rbp - 0x4c], rcx
lea rcx, [rbp - 0x78]
call fcn.14000f010
mov rcx, qword [rbp - 0x4c]
call sub.KERNEL32.dll_ResumeThread
mov ebx, eax
lea rcx, [rbp - 0x78]
call fcn.14000f060
mov dword [rbp - 0x40], ebx
mov eax, dword [rbp - 0x40]
mov dword [rbp - 0x3c], eax
mov rcx, rsp
call fcn.1401f2d95
nop
mov eax, dword [rbp - 0x3c]
mov dword [rbp - 0x44], eax
mov eax, dword [rbp - 0x44]
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1401f3140
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov dword [rbp - 0x3c], eax
mov dword [rbp - 0x40], eax
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov qword [rbp + 0x28], r9
mov rcx, qword [rbp + 0x30]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp + 0x10]
mov qword [rbp - 0x50], rcx
mov rdx, qword [rbp + 0x18]
mov qword [rbp - 0x58], rdx
mov r8d, dword [rbp + 0x20]
mov dword [rbp - 0x48], r8d
mov r9, qword [rbp + 0x28]
mov qword [rbp - 0x60], r9
lea rcx, [rbp - 0x88]
call fcn.14000f010
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x58]
mov r8d, dword [rbp - 0x48]
mov r9, qword [rbp - 0x60]
call sub.KERNEL32.dll_WriteFile
mov ebx, eax
lea rcx, [rbp - 0x88]
call fcn.14000f060
mov dword [rbp - 0x40], ebx
mov eax, dword [rbp - 0x40]
mov dword [rbp - 0x3c], eax
mov rcx, rsp
call fcn.1401f31f4
nop
mov eax, dword [rbp - 0x3c]
mov dword [rbp - 0x44], eax
mov eax, dword [rbp - 0x44]
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x1401f3220
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov dword [rbp - 0x3c], eax
mov dword [rbp - 0x40], eax
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov qword [rbp + 0x28], r9
mov rcx, qword [rbp + 0x30]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp + 0x10]
mov qword [rbp - 0x50], rcx
mov rdx, qword [rbp + 0x18]
mov qword [rbp - 0x58], rdx
mov r8d, dword [rbp + 0x20]
mov dword [rbp - 0x48], r8d
mov r9, qword [rbp + 0x28]
mov qword [rbp - 0x60], r9
lea rcx, [rbp - 0x88]
call fcn.14000f010
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x58]
mov r8d, dword [rbp - 0x48]
mov r9, qword [rbp - 0x60]
call sub.KERNEL32.dll_WriteFile
mov ebx, eax
lea rcx, [rbp - 0x88]
call fcn.14000f060
mov dword [rbp - 0x40], ebx
mov eax, dword [rbp - 0x40]
mov dword [rbp - 0x3c], eax
mov rcx, rsp
call fcn.1401f32d4
nop
mov eax, dword [rbp - 0x3c]
mov dword [rbp - 0x44], eax
mov eax, dword [rbp - 0x44]
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1401f3300
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov dword [rbp - 0x3c], eax
mov dword [rbp - 0x40], eax
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov qword [rbp + 0x28], r9
mov rcx, qword [rbp + 0x30]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp + 0x10]
mov qword [rbp - 0x50], rcx
mov rdx, qword [rbp + 0x18]
mov qword [rbp - 0x58], rdx
mov r8d, dword [rbp + 0x20]
mov dword [rbp - 0x48], r8d
mov r9, qword [rbp + 0x28]
mov qword [rbp - 0x60], r9
lea rcx, [rbp - 0x88]
call fcn.14000f010
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x58]
mov r8d, dword [rbp - 0x48]
mov r9, qword [rbp - 0x60]
call sub.KERNEL32.dll_WriteFile
mov ebx, eax
lea rcx, [rbp - 0x88]
call fcn.14000f060
mov dword [rbp - 0x40], ebx
mov eax, dword [rbp - 0x40]
mov dword [rbp - 0x3c], eax
mov rcx, rsp
call fcn.1401f33b4
nop
mov eax, dword [rbp - 0x3c]
mov dword [rbp - 0x44], eax
mov eax, dword [rbp - 0x44]
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x1401f43b0
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0xd0]
xor eax, eax
mov dword [rbp - 0x3c], eax
mov dword [rbp - 0x40], eax
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov rcx, qword [rbp + 0x30]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp + 0x38]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rbp + 0x40]
mov qword [rsp + 0x30], rcx
mov rcx, qword [rbp + 0x48]
mov qword [rsp + 0x38], rcx
mov rcx, qword [rbp + 0x10]
mov qword [rbp - 0x50], rcx
mov edx, dword [rbp + 0x18]
mov dword [rbp - 0x48], edx
mov r8, qword [rbp + 0x20]
mov qword [rbp - 0x58], r8
mov r9, qword [rbp + 0x28]
mov qword [rbp - 0x60], r9
lea rcx, [rbp - 0x88]
call fcn.14000f010
mov rcx, qword [rbp - 0x50]
mov edx, dword [rbp - 0x48]
mov r8, qword [rbp - 0x58]
mov r9, qword [rbp - 0x60]
call sub.ADVAPI32.dll_RegEnumKeyExW
mov ebx, eax
lea rcx, [rbp - 0x88]
call fcn.14000f060
mov dword [rbp - 0x40], ebx
mov eax, dword [rbp - 0x40]
mov dword [rbp - 0x3c], eax
mov rcx, rsp
call fcn.1401f4481
nop
mov eax, dword [rbp - 0x3c]
mov dword [rbp - 0x44], eax
mov eax, dword [rbp - 0x44]
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1401f4590
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xor eax, eax
mov dword [rbp - 0x3c], eax
mov dword [rbp - 0x40], eax
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov rcx, qword [rbp + 0x30]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp + 0x38]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rbp + 0x10]
mov qword [rbp - 0x4c], rcx
mov rdx, qword [rbp + 0x18]
mov qword [rbp - 0x54], rdx
mov r8, qword [rbp + 0x20]
mov qword [rbp - 0x5c], r8
mov r9, qword [rbp + 0x28]
mov qword [rbp - 0x64], r9
lea rcx, [rbp - 0x90]
call fcn.14000f010
mov rcx, qword [rbp - 0x4c]
mov rdx, qword [rbp - 0x54]
mov r8, qword [rbp - 0x5c]
mov r9, qword [rbp - 0x64]
call sub.ADVAPI32.dll_RegQueryValueExW
mov ebx, eax
lea rcx, [rbp - 0x90]
call fcn.14000f060
mov dword [rbp - 0x40], ebx
mov eax, dword [rbp - 0x40]
mov dword [rbp - 0x3c], eax
mov rcx, rsp
call fcn.1401f4653
nop
mov eax, dword [rbp - 0x3c]
mov dword [rbp - 0x44], eax
mov eax, dword [rbp - 0x44]
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x1401f4680
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov dword [rbp - 0x3c], eax
mov dword [rbp - 0x40], eax
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov dword [rbp + 0x28], r9d
mov rcx, qword [rbp + 0x10]
mov qword [rbp - 0x54], rcx
mov rdx, qword [rbp + 0x18]
mov qword [rbp - 0x5c], rdx
mov r8d, dword [rbp + 0x20]
mov dword [rbp - 0x48], r8d
mov r9d, dword [rbp + 0x28]
mov dword [rbp - 0x4c], r9d
lea rcx, [rbp - 0x88]
call fcn.14000f010
mov rcx, qword [rbp - 0x54]
mov rdx, qword [rbp - 0x5c]
mov r8d, dword [rbp - 0x48]
mov r9d, dword [rbp - 0x4c]
call sub.bcrypt.dll_BCryptGenRandom
mov ebx, eax
lea rcx, [rbp - 0x88]
call fcn.14000f060
mov dword [rbp - 0x40], ebx
mov eax, dword [rbp - 0x40]
mov dword [rbp - 0x3c], eax
mov rcx, rsp
call fcn.1401f472b
nop
mov eax, dword [rbp - 0x3c]
mov dword [rbp - 0x44], eax
mov eax, dword [rbp - 0x44]
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1401f48f0
Capabilities:
Encrypt data using dpapi

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0xa0]
xor eax, eax
mov dword [rbp - 0x3c], eax
mov dword [rbp - 0x40], eax
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov dword [rbp + 0x20], r8d
mov rcx, qword [rbp + 0x10]
mov qword [rbp - 0x54], rcx
mov edx, dword [rbp + 0x18]
mov dword [rbp - 0x48], edx
mov r8d, dword [rbp + 0x20]
mov dword [rbp - 0x4c], r8d
lea rcx, [rbp - 0x80]
call fcn.14000f010
mov rcx, qword [rbp - 0x54]
mov edx, dword [rbp - 0x48]
mov r8d, dword [rbp - 0x4c]
call sub.CRYPT32.dll_CryptProtectMemory
mov ebx, eax
lea rcx, [rbp - 0x80]
call fcn.14000f060
mov dword [rbp - 0x40], ebx
mov eax, dword [rbp - 0x40]
mov dword [rbp - 0x3c], eax
mov rcx, rsp
call fcn.1401f4981
nop
mov eax, dword [rbp - 0x3c]
mov dword [rbp - 0x44], eax
mov eax, dword [rbp - 0x44]
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x1401f49b0
Capabilities:
Encrypt data using dpapi

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0xa0]
xor eax, eax
mov dword [rbp - 0x3c], eax
mov dword [rbp - 0x40], eax
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov dword [rbp + 0x20], r8d
mov rcx, qword [rbp + 0x10]
mov qword [rbp - 0x54], rcx
mov edx, dword [rbp + 0x18]
mov dword [rbp - 0x48], edx
mov r8d, dword [rbp + 0x20]
mov dword [rbp - 0x4c], r8d
lea rcx, [rbp - 0x80]
call fcn.14000f010
mov rcx, qword [rbp - 0x54]
mov edx, dword [rbp - 0x48]
mov r8d, dword [rbp - 0x4c]
call sub.CRYPT32.dll_CryptUnprotectMemory
mov ebx, eax
lea rcx, [rbp - 0x80]
call fcn.14000f060
mov dword [rbp - 0x40], ebx
mov eax, dword [rbp - 0x40]
mov dword [rbp - 0x3c], eax
mov rcx, rsp
call fcn.1401f4a41
nop
mov eax, dword [rbp - 0x3c]
mov dword [rbp - 0x44], eax
mov eax, dword [rbp - 0x44]
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1402d8c40
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xor eax, eax
mov dword [rbp - 0x3c], eax
mov dword [rbp - 0x40], eax
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov rcx, qword [rbp + 0x30]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp + 0x38]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rbp + 0x10]
mov qword [rbp - 0x4c], rcx
mov rdx, qword [rbp + 0x18]
mov qword [rbp - 0x54], rdx
mov r8, qword [rbp + 0x20]
mov qword [rbp - 0x5c], r8
mov r9, qword [rbp + 0x28]
mov qword [rbp - 0x64], r9
lea rcx, [rbp - 0x90]
call fcn.14000f010
mov rcx, qword [rbp - 0x4c]
mov rdx, qword [rbp - 0x54]
mov r8, qword [rbp - 0x5c]
mov r9, qword [rbp - 0x64]
call sub.ADVAPI32.dll_RegQueryValueExW
mov ebx, eax
lea rcx, [rbp - 0x90]
call fcn.14000f060
mov dword [rbp - 0x40], ebx
mov eax, dword [rbp - 0x40]
mov dword [rbp - 0x3c], eax
mov rcx, rsp
call fcn.1402d8d03
nop
mov eax, dword [rbp - 0x3c]
mov dword [rbp - 0x44], eax
mov eax, dword [rbp - 0x44]
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x140070ef0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140070efd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140070f0d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140070ef5
lea eax, [rcx + 1]
jmp 0x140070f1b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140070f2e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140070f14
sub eax, 3
jb 0x140070f4e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140070f9d
sar eax, 1
movsxd rbp, eax
jb 0x140070f84
jmp 0x140070f5c
add ebx, ebx
jne 0x140070f5a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140070f84
inc ecx
add ebx, ebx
jne 0x140070f6a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140070f84
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140070f7d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140070f6c
add ecx, 2
jmp 0x140070f89
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140070eb2
jmp 0x140070efd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x28800
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140070fe9
cmp rsi, rcx
jae 0x140070ff1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140070fd0
cmp al, 0x8f
ja 0x140070fd0
cmp byte [rsi - 2], 0xf
je 0x140070fd6
sub al, 0xe8
cmp al, 1
ja 0x140070fba
cmp rsi, rcx
jae 0x140070ff1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140070fc0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140070ff1
lodsb al, byte [rsi]
jmp 0x140070fd0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x6e000]
mov eax, dword [rdi]
or eax, eax
je 0x14007105a
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x8c9cc]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140070ffe
jns 0x140071033
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14007103d
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140071054
mov qword [rbx], rax
add rbx, 8
jmp 0x14007101e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140071094
cmp al, 0xef
ja 0x140071086
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140071066
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140071075
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x227]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400710e8
sub rsp, 0xffffffffffffff80
jmp 0x14000b310
Function at 0x140002b00
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1400a7328]
xor rax, rsp
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140002b99
mov qword [rsp + 0x50], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword gs:[0x58]
mov edi, eax
mov eax, 8
mov dword [rsp + 0x24], 0
mov rdx, qword [rcx]
mov ecx, dword [rax + rdx]
cmp dword [0x1400ae934], ecx
jle 0x140002b80
lea rcx, [0x1400ae934]
call fcn.14004b098
cmp dword [0x1400ae934], 0xffffffff
jne 0x140002b80
lea rcx, [0x140082180]
call fcn.14004b384
lea rcx, [0x1400ae934]
call fcn.14004b02c
lea rax, [0x1400a7f30]
mov dword [rsp + 0x20], edi
test edi, edi
mov qword [rsp + 0x28], rax
mov rdi, qword [rsp + 0x50]
jne 0x140002bae
mov eax, ebx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14004afd0
add rsp, 0x40
pop rbx
ret
lea rdx, [0x140090590]
lea rcx, [rsp + 0x20]
call fcn.1400029d0
int3

Function at 0x140002c80
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1400a7328]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [rcx + 0x10]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rax, qword [rcx + 8]
mov rbx, rcx
mov r9d, 0xffffffff
mov qword [rsp + 0x28], rax
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lock xadd dword [0x1400ae938], eax
mov rcx, qword [rbx + 8]
test eax, eax
je 0x140002cf9
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14004afd0
add rsp, 0x40
pop rbx
ret
mov rdx, rcx
xor r8d, r8d
lea rcx, [fcn.140002d30]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14004afd0
add rsp, 0x40
pop rbx
ret

Function at 0x140003f10
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x1400aec70]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140003f49
mov rdx, qword [rax + 8]
mov r8, rbx
add rsp, 0x20
pop rbx
jmp fcn.140009630
xor edx, edx
mov r8, rbx
add rsp, 0x20
pop rbx
jmp fcn.140009630

Function at 0x140003f60
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x28
mov rbx, rcx
mov rdi, rdx
mov ecx, dword [0x1400aec70]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor r8d, r8d
test rax, rax
je 0x140003f90
mov r9, qword [rax + 8]
jmp 0x140003f93
mov r9, r8
cmp rdi, 0x3fc
ja 0x140003fb7
test r9, r9
je 0x140003fb7
mov rax, r8
cmp qword [r9 + rax*8], 0
je 0x140003fc5
inc r8d
inc rax
cmp rax, 2
jl 0x140003fa4
mov rcx, rbx
add rsp, 0x28
pop rdi
pop rbx
jmp case.0x1400450db.0
movzx eax, byte [rbx + rdi]
mov byte [rbx], al
movsxd rax, r8d
mov qword [r9 + rax*8], rbx
add rsp, 0x28
pop rdi
pop rbx
ret
Function at 0x140004260
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x40
mov rax, qword [0x1400a7328]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [rcx]
xor r14d, r14d
mov rbx, rcx
mov qword [rdx], r14
mov rsi, rdx
mov qword [rdx + 8], r14
mov rbp, r8
mov edx, r14d
mov rcx, qword [rax]
mov r9d, r14d
test rcx, rcx
je 0x1400042c7
mov rax, qword [rcx]
lea rdx, [rsp + 0x20]
call qword [rax + 8]
mov r9, qword [rax]
mov rdx, qword [rax + 8]
mov rax, qword [rbx]
mov qword [rsi], r9
mov qword [rsi + 8], rdx
mov qword [rax], r14
cmp rbp, rdx
jbe 0x1400043e4
mov ebx, 6
test r9, r9
je 0x140004329
mov ecx, dword [0x1400aec70]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400042f1
mov rdx, qword [rax + 8]
jmp 0x1400042f4
mov rdx, r14
mov r9, qword [rsi + 8]
mov r8, qword [rsi]
cmp r9, 0x3fc
ja 0x140004321
test rdx, rdx
je 0x140004321
mov ecx, ebx
mov rax, rbx
nop
cmp qword [rdx + rax*8], r14
je 0x14000438a
inc ecx
inc rax
cmp rax, 8
jl 0x140004310
mov rcx, r8
call case.0x1400450db.0
mov ecx, dword [0x1400aec70]
mov qword [rsp + 0x50], rdi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea rdi, [rbp + 3]
shr rdi, 2
test rax, rax
je 0x1400043b6
mov r9, qword [rax + 8]
test r9, r9
je 0x1400043b6
mov ecx, ebx
lea r8, [r9 + 0x30]
mov rdx, qword [r8]
test rdx, rdx
je 0x140004366
movzx eax, byte [rdx]
cmp rax, rdi
jae 0x14000439b
inc ecx
add r8, 8
cmp ecx, 8
jl 0x140004356
mov rax, rbx
mov rcx, qword [r9 + rax*8]
test rcx, rcx
jne 0x1400043aa
inc ebx
inc rax
cmp rax, 8
jl 0x140004374
jmp 0x1400043b6
movzx eax, byte [r8 + r9]
mov byte [r8], al
movsxd rax, ecx
mov qword [rdx + rax*8], r8
jmp 0x140004329
movsxd rax, ecx
mov qword [r9 + rax*8], r14
movzx eax, byte [rdx]
mov byte [rdx + rbp], al
jmp 0x1400043d8
movsxd rax, ebx
mov qword [r9 + rax*8], r14
call case.0x1400450db.0
lea rcx, [rdi*4 + 1]
call fcn.14004b110
cmp rdi, 0xff
movzx ecx, dil
mov rdx, rax
cmova ecx, r14d
mov byte [rax + rbp], cl
mov rdi, qword [rsp + 0x50]
mov qword [rsi], rdx
mov qword [rsi + 8], rbp
mov rax, rsi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14004afd0
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140005df0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov ecx, dword [0x1400aec70]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140005e17
mov r8, qword [rax + 8]
jmp 0x140005e1a
xor r8d, r8d
cmp rdi, 0x3fc
ja 0x140005e42
test r8, r8
je 0x140005e42
mov ecx, 2
mov eax, ecx
nop
cmp qword [r8 + rax*8], 0
je 0x140005e54
inc ecx
inc rax
cmp rax, 4
jl 0x140005e30
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp case.0x1400450db.0
movzx eax, byte [rbx + rdi]
mov byte [rbx], al
movsxd rax, ecx
mov qword [r8 + rax*8], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140005e70
Capabilities:
Get 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 [0x1400aec70]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea rbx, [rdi + 3]
xor esi, esi
shr rbx, 2
test rax, rax
je 0x140005f14
mov r10, qword [rax + 8]
test r10, r10
je 0x140005f14
mov r9d, 2
lea r8, [r10 + 0x10]
mov ecx, r9d
mov rdx, qword [r8]
test rdx, rdx
je 0x140005ec3
movzx eax, byte [rdx]
cmp rax, rbx
jae 0x140005ee8
inc ecx
add r8, 8
cmp ecx, 4
jl 0x140005eb3
mov rax, r9
mov rcx, qword [r10 + rax*8]
test rcx, rcx
jne 0x140005f08
inc r9d
inc rax
cmp rax, 4
jl 0x140005ed1
jmp 0x140005f14
movsxd rcx, ecx
mov rax, rdx
mov qword [r10 + rcx*8], rsi
movzx ecx, byte [rdx]
mov byte [rdx + rdi], cl
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movsxd rax, r9d
mov qword [r10 + rax*8], rsi
call case.0x1400450db.0
lea rcx, [rbx*4 + 1]
call fcn.14004b110
cmp rbx, 0xff
movzx ecx, bl
mov rbx, qword [rsp + 0x30]
cmova ecx, esi
mov rsi, qword [rsp + 0x38]
mov byte [rax + rdi], cl
add rsp, 0x20
pop rdi
ret