joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000a060
Capabilities:
Log keystrokes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [0x140045010]
xor rax, rsp
mov qword [rbp - 8], rax
movzx r14d, r8w
mov ebx, r9d
mov r15d, edx
mov rdi, rcx
cmp r9d, 0x10000
jae 0x14000a0fc
lea eax, [r9 - 0xd800]
cmp eax, 0x7ff
jbe 0x14000a1e9
mov dword [rbp - 0x1c], edx
mov esi, 1
xor edx, edx
mov word [rbp - 0x18], si
mov ecx, r14d
mov dword [rbp - 0x20], 1
mov word [rbp - 0x16], r14w
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov rdx, qword [rdi + 8]
mov word [rbp - 0x14], ax
movzx eax, word [rbp + 0x60]
mov dword [rbp - 0x10], eax
mov word [rbp - 0x12], bx
cmp rdx, qword [rdi + 0x10]
je 0x14000a1db
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [rdx], xmm0
mov dword [rdx + 0x10], eax
add qword [rdi + 8], 0x14
jmp 0x14000a1f7
cmp ebx, 0x110000
jae 0x14000a1e9
mov qword [rsp + 0x88], r13
mov eax, 0xd800
lea r13d, [r9 - 0x10000]
mov dword [rbp - 0x20], 1
mov ebx, r13d
mov dword [rbp - 0x1c], r15d
shr ebx, 0xa
mov esi, 1
or bx, ax
mov word [rbp - 0x18], si
mov eax, 0x3ff
mov word [rbp - 0x16], r14w
and r13w, ax
mov ecx, r14d
mov eax, 0xdc00
xor edx, edx
or r13w, ax
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov rdx, qword [rdi + 8]
mov word [rbp - 0x12], bx
movzx ebx, word [rbp + 0x60]
mov word [rbp - 0x14], ax
mov dword [rbp - 0x10], ebx
cmp rdx, qword [rdi + 0x10]
je 0x14000a185
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [rdx], xmm0
mov dword [rdx + 0x10], ebx
add qword [rdi + 8], 0x14
jmp 0x14000a191
lea r8, [rbp - 0x20]
mov rcx, rdi
call fcn.14000a380
xor edx, edx
mov dword [rbp - 0x20], esi
mov ecx, r14d
mov dword [rbp - 0x1c], r15d
mov word [rbp - 0x18], si
mov word [rbp - 0x16], r14w
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov rdx, qword [rdi + 8]
mov word [rbp - 0x12], r13w
mov r13, qword [rsp + 0x88]
mov word [rbp - 0x14], ax
mov dword [rbp - 0x10], ebx
cmp rdx, qword [rdi + 0x10]
je 0x14000a1db
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [rdx], xmm0
mov dword [rdx + 0x10], ebx
add qword [rdi + 8], 0x14
jmp 0x14000a1f7
lea r8, [rbp - 0x20]
mov rcx, rdi
call fcn.14000a380
jmp 0x14000a1f7
mov edx, ebx
lea rcx, str.INTERNAL_ERROR:_appendInputRecordCP:_invalid_codePoint:_U_04X
call fcn.1400149c0
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140017c90
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14000caa0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rbx, rcx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
xor r14d, r14d
mov qword [rsp + 0x30], r14
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r12d, eax
mov rbp, qword [rsp + 0x20]
cmp byte [rbx + 8], r14b
jne 0x14000cbf7
nop word [rax + rax]
xor r15b, r15b
mov rsi, rbp
mov qword [rsp + 0x28], rbp
mov rdi, r14
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx + 0x18]
sub rax, rcx
sar rax, 3
test rax, rax
je 0x14000cb5d
lea rdx, [rsp + 0x20]
mov rcx, qword [rcx + rdi*8]
call fcn.14000e650
test al, al
je 0x14000cb3c
mov rax, qword [rbx]
mov r8, qword [rax + 0x10]
mov rax, qword [rbx + 0x10]
mov rdx, qword [rax + rdi*8]
mov rcx, rbx
call r8
mov r15b, 1
inc rdi
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx + 0x18]
sub rax, rcx
sar rax, 3
cmp rdi, rax
jb 0x14000cb12
mov rsi, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x20]
mov ecx, dword [rbx + 0x28]
test ecx, ecx
jle 0x14000cb88
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r12d
mov ecx, dword [rbx + 0x28]
cmp eax, ecx
jl 0x14000cb88
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r12d, eax
jmp 0x14000cbe8
test r15b, r15b
jne 0x14000cbe8
mov r9d, 0xffffffff
test ecx, ecx
jle 0x14000cbae
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [rbx + 0x28]
add ecx, r12d
sub ecx, eax
mov r9d, r14d
test ecx, ecx
cmovg r9d, ecx
sub rsi, rbp
cmp rsi, 8
jae 0x14000cbd1
cmp r9d, 0xffffffff
je 0x14000cc6d
test r9d, r9d
je 0x14000cbe8
mov ecx, r9d
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000cbe8
sar rsi, 3
xor r8d, r8d
mov rdx, rbp
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0xffffffff
je 0x14000cc4e
cmp byte [rbx + 8], 0
je 0x14000caf0
mov r14, qword [rsp + 0x30]
test rbp, rbp
je 0x14000cc2f
sub r14, rbp
and r14, 0xfffffffffffffff8
mov rax, rbp
cmp r14, 0x1000
jb 0x14000cc24
add r14, 0x27
mov rbp, qword [rbp - 8]
sub rax, rbp
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000cc67
mov rdx, r14
mov rcx, rbp
call fcn.140017cec
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
lea r8, str.result___WAIT_FAILED
mov edx, 0x4f
lea rcx, str.D:_a_work1_s_node_modules_node_ptydepswinpty_src_agentEventLoop.cc
call fcn.1400178c0
nop
call fcn.14001e704
nop
lea r8, str.timeout___INFINITE
mov edx, 0x47
lea rcx, str.D:_a_work1_s_node_modules_node_ptydepswinpty_src_agentEventLoop.cc
call fcn.1400178c0
int3
Function at 0x14000e8e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor r14d, r14d
lea rdi, [rcx + 0x20]
mov esi, r14d
mov rbx, rcx
cmp byte [rcx + 0x10], sil
je 0x14000e965
mov rcx, qword [rcx + 8]
lea r8, [rsp + 0x68]
mov dword [rsp + 0x68], r14d
xor r9d, r9d
mov rdx, rdi
mov rcx, qword [rcx + 0x98]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x14000e941
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e4
jne 0x14000ea48
xor eax, eax
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rax, qword [rbx]
mov rcx, rbx
mov edx, dword [rsp + 0x68]
mov byte [rbx + 0x10], sil
call qword [rax + 8]
mov dword [rbx + 0x14], r14d
mov esi, 2
mov rax, qword [rbx]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x70], r14d
mov rcx, rbx
mov byte [rsp + 0x60], r14b
call qword [rax + 0x10]
test al, al
je 0x14000ea1d
nop word [rax + rax]
lea r9, [rsp + 0x68]
mov r8d, dword [rsp + 0x70]
lea rdx, [rbx + 0x40]
mov dword [rbx + 0x14], r8d
xorps xmm0, xmm0
mov dword [rsp + 0x68], r14d
movups xmmword [rdi], xmm0
mov qword [rsp + 0x20], rdi
movups xmmword [rdi + 0x10], xmm0
mov rcx, qword [rbx + 8]
mov rax, qword [rbx + 0x18]
mov qword [rbx + 0x38], rax
mov rcx, qword [rcx + 0x98]
cmp byte [rsp + 0x60], r14b
je 0x14000e9d8
call qword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x14000e9de
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000ea2a
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rax, qword [rbx]
mov rcx, rbx
mov edx, dword [rsp + 0x68]
call qword [rax + 8]
mov dword [rbx + 0x14], r14d
lea r8, [rsp + 0x60]
mov rax, qword [rbx]
lea rdx, [rsp + 0x70]
mov rcx, rbx
mov esi, 2
call qword [rax + 0x10]
test al, al
jne 0x14000e990
mov eax, esi
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14000ea48
mov byte [rbx + 0x10], 1
mov eax, esi
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov eax, 1
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140011280
Capabilities:
Manipulate console buffer

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xb0
mov rax, qword [0x140045010]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov ebx, edx
mov rdi, rcx
cmp edx, 1
jl 0x1400113a2
xor eax, eax
mov qword [rsp + 0xd0], rsi
mov rsi, qword [rcx + 8]
lea rdx, [rsp + 0x48]
xorps xmm0, xmm0
mov dword [rsp + 0x58], eax
movups xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x5c], ax
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x1400112ea
lea rcx, str.GetConsoleScreenBufferInfo_failed
call fcn.1400149c0
lea edx, [rbx - 1]
mov r8d, 0x11
lea r9, [rsp + 0x48]
mov rcx, rsi
call fcn.140012720
inc dword [rdi + 0x1c]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.140011000
xor ecx, ecx
mov dword [rdi + 0x18], ebx
mov word [rsp + 0x30], cx
lea rdx, [rsp + 0x60]
mov word [rsp + 0x34], cx
mov dword [rsp + 0x38], ecx
lea rcx, [rsp + 0x40]
mov r9d, dword [rsp + 0x38]
mov word [rsp + 0x32], bx
add bx, 0xf
mov qword [rsp + 0x20], rcx
mov word [rsp + 0x36], bx
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov rax, qword [rdi + 8]
mov dword [rsp + 0x30], 0x100001
mov r8d, dword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_WriteConsoleOutputW]
mov rsi, qword [rsp + 0xd0]
test eax, eax
jne 0x140011381
lea rcx, str.WriteConsoleOutput_failed
call fcn.1400149c0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140017c90
mov rbx, qword [rsp + 0xd8]
add rsp, 0xb0
pop rdi
ret
lea r8, str.row___1
mov edx, 0x2ad
lea rcx, str.D:_a_work1_s_node_modules_node_ptydepswinpty_src_agentScraper.cc
call fcn.1400178c0
int3
Function at 0x140017850
Capabilities:
Read pipe
Write pipe

Disassembly:
mov rax, r8
mov r9d, edx
mov r8, rcx
mov rdx, rax
lea rcx, str.Assertion_failed:__s__file__s__line__d
jmp fcn.1400149c0
Function at 0x14001a2a4
Capabilities:
Access peb ldr_data
Get process filename

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword gs:[0x60]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x20]
sub rax, 0x10
jmp 0x14001d5e8
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], 0
jmp 0x14001d576

Function at 0x14001a70e
Capabilities:
Enumerate pe sections

Disassembly:
mov rax, qword [rsp + 0x88]
mov rax, qword [rax]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x24], eax
jge 0x14001c7e4
jmp 0x14001cf57
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 8]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x88]
jmp 0x14001ddbe
mov rax, qword [rax]
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx]
movzx ecx, word [rcx + 0x14]
lea rax, [rax + rcx + 0x18]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x24], 0
jmp 0x14001f2ac
jmp 0x14001a4be

Function at 0x14001adaa
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x1a0]
add byte [rax], al
mov rax, rcx
mov qword [rsp + 0x58], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x58]
lea rax, [rcx + rax + 0x88]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x1a0]
jmp 0x140018a57
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x198
mov rax, qword [rsp + 0x1a0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x1a0]
add rcx, rax
jmp 0x14001a26d
Function at 0x14001bf0d
Capabilities:
Inspect section memory permissions

Disassembly:
mov dword [rsp + 0x24], 0
jmp 0x14001cba4
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x18]
and eax, 0x2000000
test eax, eax
je 0x14001cfec
jmp 0x14001b580
cmp qword [rsp + 0x38], 0
jne 0x14001ab01
jmp 0x14001d72a
mov dword [rsp + 0x28], 1
jmp 0x14001cafb
mov dword [rsp + 0x24], 1
jmp 0x14001cba4
mov r8d, 0x4000
mov rax, qword [rsp + 0x98]
mov rdx, qword [rax + 0x10]
mov rax, qword [rsp + 0x98]
mov rcx, qword [rax]
mov rax, qword [rsp + 0x38]
call qword [rax + 8]
jmp 0x14001b94f
mov dword [rsp + 0x28], 0
jmp 0x14001cafb
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x40]
mov qword [rsp + 0x70], rax
xor edx, edx
mov rcx, qword [rsp + 0x98]
mov rax, qword [rcx + 0x10]
mov rcx, qword [rsp + 0x70]
div rcx
mov rax, rdx
test rax, rax
je 0x140019328
jmp 0x14001b94f
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x98]
mov rcx, qword [rcx + 8]
cmp qword [rax], rcx
jne 0x14001f25c
jmp 0x14001c307
mov eax, 1
jmp 0x14001f1d6
mov dword [rsp + 0x2c], 0
jmp 0x14001861a
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x98]
cmp qword [rax + 0x10], 0
jne 0x140018c9b
jmp 0x14001c98a
mov rax, qword [rsp + 0x98]
cmp dword [rax + 0x1c], 0
jne 0x140019328
jmp 0x14001ea0a
mov eax, 1
jmp 0x14001f1d6
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x18]
and eax, 0x80000000
test eax, eax
jne 0x14001cf0e
jmp 0x14001bc18
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x18]
and eax, 0x40000000
test eax, eax
jne 0x140019d5b
jmp 0x14001ab77
mov dword [rsp + 0x2c], 1
jmp 0x14001861a
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x18]
and eax, 0x20000000
test eax, eax
jne 0x14001a36e
jmp 0x1400186d0
mov r8d, 0x4000
mov rax, qword [rsp + 0x98]
mov rdx, qword [rax + 0x10]
mov rax, qword [rsp + 0x98]
mov rcx, qword [rax]
call qword [0x140099aa4]
jmp 0x14001b94f
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x90]
mov ecx, dword [rcx + 0x40]
cmp dword [rax + 0x38], ecx
jne 0x14001ad54
jmp 0x140019328
mov eax, 1
jmp 0x14001f1d6
Function at 0x14002173c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14002159b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002159b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002159b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002159b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002159b
cmp dword [rcx + 0x84], 0xe
jbe 0x14002159b
cmp dword [rcx + 0xf8], 0
je 0x14002159b
mov ecx, ebx
call fcn.140021658
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140021428
nop
cmp dword [rbp + 0x20], 0
je 0x1400215e9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400215f4
int3
xor r8d, r8d
xor edx, edx
jmp 0x14002152c
Function at 0x140015720
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.140016ed0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x140015790
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400a80b4]
mov rbx, rcx
test esi, esi
jle 0x1400158c0
mov rax, qword [0x1400a80b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400157db
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140015865
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400157c0
mov rcx, rbx
call fcn.140016200
mov rdi, rax
test rax, rax
je 0x1400158e2
mov rax, qword [0x1400a80b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140016340
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400a80b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400158c7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14001585e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140015870
add dword [0x1400a80b4], 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 [0x1400a80b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001585e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140015720
nop dword [rax]
xor esi, esi
jmp 0x1400157e8
mov rax, qword [0x1400a80b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140015720
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140015720
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140015e70
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400a8120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400a8100]
test rbx, rbx
je 0x140015ecc
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 rsi, rsi
je 0x140015ec3
test eax, eax
jne 0x140015ec3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140015ea8
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 0x140016200
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14009f8e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140016220
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140016228
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140016220
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14001627d
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 0x140016274
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140016220
add rax, 0x28
cmp rax, r9
jne 0x140016260
xor eax, eax
ret

Function at 0x140016280
Capabilities:
Parse pe header

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

Function at 0x140016340
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14009f8e0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14001635f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140016368
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140016e30
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2d
lea rdx, str._buffer_overflow_detected_:_terminated_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x140016e60
mov ecx, 8
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x140016e80
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2c
lea rdx, str._stack_smashing_detected_:_terminated_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x140016eb0
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140017dc0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0xa8
mov rax, qword [0x14009f9c0]
mov rdx, qword [rax]
mov qword [rsp + 0x98], rdx
xor edx, edx
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x78], 0
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 + 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.api_ms_win_crt_convert_l1_1_0.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x140017eda
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x140017eb2
add rax, 1
cmp rax, 0x6b
je 0x140017ecf
cmp byte [rcx + rax], 0
jne 0x140017ea8
lea edx, [rax + 1]
cmp eax, 0x6a
je 0x140017ecf
cdqe
mov byte [rsp + rax + 0x20], 0xa
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
mov edx, 0x28
mov eax, 0x27
lea rcx, [rsp + 0x20]
jmp 0x140017ec0

Function at 0x140018270
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1400a8240], 1
je 0x1400182e8
lea rdi, [0x1400a8240]
mov rcx, rdi
call fcn.140017b50
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.1400174f0
mov esi, dword [0x1400a8240]
test esi, esi
jne 0x1400182f8
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140092168], eax
cmp eax, 0xffffffff
je 0x14002aa46
mov dword [0x1400a8240], 1
mov rcx, rbp
call fcn.1400177c0
test rbx, rbx
je 0x1400182e8
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.140017ef0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x1400182c8
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call fcn.140016f30
jmp 0x1400182c8
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
Function at 0x140018320
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.140018000
cmp qword [0x1400ab048], 0
mov rbx, rax
je 0x140018438
test rax, rax
je 0x140018438
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.14001b930
cmp eax, 1
je 0x140018446
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.14002aa4c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x140092168]
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 0x14001844c
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.140017dc0
nop
jmp fcn.14002aa4c

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

Disassembly:
sub rsp, 0x28
call fcn.140018270
mov ecx, dword [0x140092168]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140018480
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140018320