joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e7c20
Capabilities:
Access peb ldr_data

Disassembly:
lea r12, [rsp - 0x30]
cmp r12, qword [r14 + 0x10]
jbe 0x1400e7e81
sub rsp, 0xb0
mov qword [rsp + 0xa8], rbp
lea rbp, [rsp + 0xa8]
test rax, rax
je 0x1400e7e65
mov qword [rsp + 0xb8], rax
mov rbx, qword [rax + 8]
mov rdx, qword [rax]
mov rcx, qword [rax + 0x10]
test rbx, rbx
jne 0x1400e7c6d
xor ebx, ebx
xor ecx, ecx
jmp 0x1400e7c80
mov rax, rdx
call fcn.1400d9780
mov rcx, rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x88], rcx
mov qword [rsp + 0x48], rbx
cmp qword [rax + 0x28], 0
je 0x1400e7d98
mov rcx, qword [rax + 0x18]
mov rax, rcx
nop
call fcn.140073fe0
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x58], rbx
mov rcx, qword [rsp + 0xb8]
mov r8, qword [rcx + 0x20]
mov r9, qword [rcx + 0x28]
mov rcx, qword [rsp + 0x48]
lea rdi, [0x1401a6a68]
mov esi, 1
lea rax, [rsp + 0x68]
mov rbx, qword [rsp + 0x88]
call fcn.14004e3c0
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0x3a
call fcn.1400036e0
xorps xmm15, xmm15
mov r14, qword [0x1402e0548]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0
jl 0x1400e7d5b
xor eax, eax
lea rbx, [0x14016e404]
mov ecx, 1
mov rdi, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0x60]
lea r8, [0x14016e479]
mov r9d, 2
mov r10, qword [rsp + 0x98]
mov r11, qword [rsp + 0x58]
call fcn.14004e4a0
jmp 0x1400e7d88
xor eax, eax
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x60]
lea rdi, [0x1401a6af0]
mov esi, 1
mov r8, qword [rsp + 0x98]
mov r9, qword [rsp + 0x58]
call fcn.14004e3c0
mov rbp, qword [rsp + 0xa8]
add rsp, 0xb0
ret
mov rax, qword [rax + 0x18]
nop dword [rax]
call fcn.140073fe0
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x50], rbx
mov rcx, qword [rsp + 0x88]
mov qword [rsp], rcx
mov rdx, qword [rsp + 0x48]
mov qword [rsp + 8], rdx
mov byte [rsp + 0x10], 0x3a
call fcn.1400036e0
xorps xmm15, xmm15
mov r14, qword [0x1402e0548]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0
jl 0x1400e7e28
xor eax, eax
lea rbx, [0x14016e404]
mov ecx, 1
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x48]
lea r8, [0x14016e479]
mov r9d, 2
mov r10, qword [rsp + 0x90]
mov r11, qword [rsp + 0x50]
call fcn.14004e4a0
jmp 0x1400e7e55
xor eax, eax
mov rbx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
lea rdi, [0x1401a6af0]
mov esi, 1
mov r8, qword [rsp + 0x90]
mov r9, qword [rsp + 0x50]
call fcn.14004e3c0
mov rbp, qword [rsp + 0xa8]
add rsp, 0xb0
ret
lea rax, [0x14016e7e0]
mov ebx, 5
mov rbp, qword [rsp + 0xa8]
add rsp, 0xb0
ret
mov qword [rsp + 8], rax
call fcn.140062440
mov rax, qword [rsp + 8]
jmp fcn.1400e7c20
Function at 0x140101d00
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x140101f17
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [rsp + 0x48]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x58], rax
add qword [rax + 0x58], rcx
mov rdx, qword [rax + 0x50]
test rdx, rdx
jle 0x140101e2e
nop dword [rax + rax]
cmp rdx, 0x40
ja 0x140101f09
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x60], rbx
lea rsi, [rdx - 0x40]
mov r8, rsi
neg rsi
cmp rcx, rsi
cmovl rsi, rcx
mov qword [rsp + 0x28], rsi
sar r8, 0x3f
and r8, rdx
lea rdx, [rax + r8]
lea rdx, [rdx + 0x10]
cmp rbx, rdx
je 0x140101da2
mov rax, rdx
mov rcx, rsi
call fcn.140065460
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x70]
mov rdx, qword [rax + 0x50]
add rdx, rsi
mov qword [rax + 0x50], rdx
cmp rdx, 0x40
jne 0x140101e0a
mov qword [rsp], rax
lea rcx, [rax + 0x10]
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], 0x40
mov qword [rsp + 0x18], 0x40
call fcn.140102180
xorps xmm15, xmm15
mov r14, qword [0x1402e0548]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x58]
mov qword [rax + 0x50], 0
mov rcx, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x70]
cmp rcx, rsi
jb 0x140101f01
sub rdi, rsi
mov rdx, rcx
sub rcx, rsi
mov r8, rdi
neg rdi
sar rdi, 0x3f
and rsi, rdi
add rbx, rsi
jmp 0x140101e34
mov rdx, rcx
mov r8, rdi
cmp rcx, 0x40
jl 0x140101eb1
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
and rcx, 0xffffffffffffffc0
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x10], rcx
mov qword [rsp + 0x18], r8
call fcn.140102180
xorps xmm15, xmm15
mov r14, qword [0x1402e0548]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x38]
mov rdx, rax
sub rax, rcx
sar rax, 0x3f
mov rcx, qword [rsp + 0x30]
and rax, rcx
and rax, 0xffffffffffffffc0
mov rbx, qword [rsp + 0x40]
add rbx, rax
sub rcx, rdx
mov rax, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x68]
test rcx, rcx
je 0x140101eef
cmp rcx, 0x40
mov esi, 0x40
cmovl rsi, rcx
lea rdi, [rax + 0x10]
cmp rbx, rdi
je 0x140101eeb
mov qword [rsp + 0x38], rsi
mov rax, rdi
mov rcx, rsi
call fcn.140065460
mov rax, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x38]
mov qword [rax + 0x50], rsi
mov rax, rdx
xor ebx, ebx
xor ecx, ecx
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
nop
ret
mov rax, rsi
call fcn.140064b80
mov rax, rdx
mov ecx, 0x40
call fcn.140064b80
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.140062440
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.140101d00
Function at 0x140105d80
Capabilities:
Persist via run registry key

Disassembly:
lea r12, [rsp - 0x20]
cmp r12, qword [r14 + 0x10]
jbe 0x140105f3f
sub rsp, 0xa0
mov qword [rsp + 0x98], rbp
lea rbp, [rsp + 0x98]
mov r13, 0
mov qword [rsp + 0x90], r13
mov qword [rsp + 0xb0], rbx
mov qword [rsp + 0xb8], rcx
mov qword [rsp + 0xa8], rax
mov byte [rsp + 0x4f], 0
lea rdx, fcn.14010c820
mov qword [rsp + 0x90], rdx
mov byte [rsp + 0x4f], 1
lea rax, [0x14016ec06]
mov ebx, 7
call fcn.14009aac0
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x58], rbx
mov eax, 0x18
call fcn.14010aae0
mov rcx, qword [rsp + 0x58]
lea rdi, [0x1401a6b88]
mov esi, 1
mov r8, rax
mov r9, rbx
lea r10, [0x140170e59]
mov r11d, 0xf
xor eax, eax
mov rbx, qword [rsp + 0x88]
nop dword [rax]
call fcn.14004e4a0
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x50], rbx
nop
mov rcx, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xb0]
mov rsi, qword [rsp + 0xb8]
mov r8d, 0x1b4
call fcn.14009cf20
mov eax, 0x18
nop dword [rax + rax]
call fcn.14010aae0
mov rcx, rbx
lea rdi, [0x140170e59]
mov esi, 0xf
mov rbx, rax
lea rax, [rsp + 0x60]
nop dword [rax]
call fcn.14004e320
mov ecx, 0x2d
mov rdi, rax
mov rsi, rbx
mov r8, qword [rsp + 0x80]
mov r9, qword [rsp + 0x50]
mov eax, 0x80000001
lea rbx, [0x140179c88]
call fcn.140105ba0
mov eax, 0x18
call fcn.14010aae0
mov ecx, 0x33
mov rdi, rax
mov rsi, rbx
lea r8, [0x140172b73]
mov r9d, 0x14
mov r10, qword [rsp + 0x80]
mov r11, qword [rsp + 0x50]
xor eax, eax
lea rbx, [0x14017ab44]
call fcn.14004e4a0
call fcn.140105a20
mov byte [rsp + 0x4f], 0
call fcn.14010c820
mov rbp, qword [rsp + 0x98]
add rsp, 0xa0
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call fcn.140062440
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp fcn.140105d80
Function at 0x1401062a0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x140106399
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [rsp + 0x48]
mov qword [rsp + 0x58], rax
lea rcx, [rbx + 1]
test rcx, rcx
jle 0x140106385
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x58], rax
mov qword [rsp], rcx
nop dword [rax]
call fcn.140106500
xorps xmm15, xmm15
mov r14, qword [0x1402e0548]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x18]
cmp rcx, rdx
mov rbx, rdx
cmovl rdx, rcx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x58]
cmp rdi, rsi
jne 0x140106333
cmp rcx, rbx
jmp 0x140106368
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
mov rax, rsi
mov rbx, rdi
mov rcx, rdx
call fcn.140065460
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x18]
cmp rax, rcx
mov rbx, rcx
mov rsi, qword [rsp + 0x20]
mov rcx, rax
mov rax, qword [rsp + 0x28]
jae 0x140106378
mov byte [rsi + rcx], 0
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
mov rax, rcx
mov rcx, rbx
nop
call fcn.140064ac0
lea rax, [0x140149880]
lea rbx, [0x1401a7b68]
call fcn.140036060
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.140062440
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.1401062a0
Function at 0x140106d00
Capabilities:
Parse pe header

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x140106e95
sub rsp, 0x38
mov qword [rsp + 0x30], rbp
lea rbp, [rsp + 0x30]
nop dword [rax + rax]
test rax, rax
je 0x140106e89
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rax
mov rcx, rax
mov qword [rsp + 0x28], rax
nop dword [rax + rax]
test rbx, rbx
je 0x140106d5f
nop
lea rdx, [rcx + rbx]
lea rsi, [rcx + 0x40]
cmp rsi, rdx
jbe 0x140106d5f
xor eax, eax
mov rbp, qword [rsp + 0x30]
add rsp, 0x38
ret
lea rax, [0x14014a700]
call fcn.14000dda0
mov rcx, qword [rsp + 0x40]
mov qword [rax], rcx
mov qword [rax + 8], 0x40
mov rdx, qword [0x14028b848]
mov rbx, rax
mov edi, 2
mov rax, rdx
mov rcx, rdi
call fcn.1400ed260
test rax, rax
jne 0x140106e7d
mov rcx, qword [rsp + 0x28]
cmp word [rcx], 0x5a4d
jne 0x140106e71
mov ecx, dword [rcx + 0x3c]
cmp ecx, 0x400
jg 0x140106e65
movsxd rcx, ecx
mov rdx, qword [rsp + 0x40]
add rcx, rdx
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rcx
mov rsi, qword [rsp + 0x48]
test rsi, rsi
je 0x140106dfb
nop
add rsi, rdx
cmp rdx, 8
ja 0x140106def
cmp rsi, 0x100
jae 0x140106dfb
xor eax, eax
mov rbp, qword [rsp + 0x30]
add rsp, 0x38
ret
lea rax, [0x14014a700]
call fcn.14000dda0
mov rcx, qword [rsp + 0x20]
mov qword [rax], rcx
mov qword [rax + 8], 0x40
mov rcx, qword [0x14028b848]
mov rbx, rax
mov edi, 2
mov rax, rcx
mov rcx, rdi
call fcn.1400ed260
test rax, rax
jne 0x140106e59
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140106e4f
xor eax, eax
mov rbp, qword [rsp + 0x30]
add rsp, 0x38
ret
mov rbp, qword [rsp + 0x30]
add rsp, 0x38
ret
xor eax, eax
mov rbp, qword [rsp + 0x30]
add rsp, 0x38
ret
xor eax, eax
mov rbp, qword [rsp + 0x30]
add rsp, 0x38
ret
xor eax, eax
mov rbp, qword [rsp + 0x30]
add rsp, 0x38
ret
xor eax, eax
mov rbp, qword [rsp + 0x30]
add rsp, 0x38
ret
xor eax, eax
mov rbp, qword [rsp + 0x30]
add rsp, 0x38
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
nop
call fcn.140062440
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.140106d00
Function at 0x140107000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x1401070c5
sub rsp, 0x28
mov qword [rsp + 0x20], rbp
lea rbp, [rsp + 0x20]
nop dword [rax + rax]
cmp ebx, 0x10
jae 0x1401070b9
mov dword [rsp + 0x38], ebx
mov byte [rsp + 0x3c], cl
mov qword [rsp + 0x10], rax
xor ebx, ebx
call fcn.140106d00
nop dword [rax]
test rax, rax
je 0x1401070ad
mov qword [rsp + 0x18], rax
nop
mov rax, qword [rsp + 0x10]
call fcn.140106ec0
cmp ax, 0x20b
jne 0x140107073
mov ecx, dword [rsp + 0x38]
mov ecx, ecx
mov rdx, qword [rsp + 0x18]
lea rcx, [rdx + rcx*8]
lea rcx, [rcx + 0x88]
jmp 0x140107086
mov edx, dword [rsp + 0x38]
mov edx, edx
mov rbx, qword [rsp + 0x18]
lea rcx, [rbx + rdx*8]
lea rcx, [rcx + 0x78]
movzx edx, byte [rsp + 0x3c]
test dl, dl
jne 0x140107094
cmp dword [rcx], 0
je 0x1401070a1
mov rax, rcx
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
ret
xor eax, eax
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
ret
xor eax, eax
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
ret
xor eax, eax
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
ret
mov qword [rsp + 8], rax
mov dword [rsp + 0x10], ebx
mov byte [rsp + 0x14], cl
call fcn.140062440
mov rax, qword [rsp + 8]
mov ebx, dword [rsp + 0x10]
movzx ecx, byte [rsp + 0x14]
jmp fcn.140107000
Function at 0x140112510
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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.14011d6c0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.14011d6c0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x140112580
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1402e5014]
mov r12, rcx
test ebx, ebx
jle 0x1401126b0
mov rax, qword [0x1402e5018]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x1401125cc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140112653
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x1401125b0
mov rcx, r12
call fcn.140112f20
mov rsi, rax
test rax, rax
je 0x1401126d2
mov rax, qword [0x1402e5018]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.140113050
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1402e5018]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1401126b7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14011264c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140112660
add dword [0x1402e5014], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1402e5018]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14011264c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140112510
nop dword [rax]
xor ebx, ebx
jmp 0x1401125d7
mov rax, qword [0x1402e5018]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140112510
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140112510
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140112b90
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1402e5080]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1402e5060]
test rbx, rbx
je 0x140112be4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140112bdb
test r12, r12
je 0x140112bdb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140112bc0
lea rcx, [0x1402e5080]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140112f20
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1402883c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140112f40
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140112f48
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140112f40
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140112f95
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140112f8c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140112f40
add rax, 0x28
cmp rax, r9
jne 0x140112f78
xor eax, eax
ret

Function at 0x140112fa0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1402883c0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140112fc0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140112fc8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140112fc0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140113050
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1402883c0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140113070
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140113078
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x1401149d0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [str._Q._]
mov rax, qword [rsi]
test rax, rax
je 0x140114a60
cmp qword [rax + 0x30], 0
jne 0x140114a80
lea rbx, [0x140139c48]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140114a30
cmp qword [rax + 0x30], 0
jne 0x140114a50
lea rdx, [0x140139c48]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x14011d850
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1401198d0
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140114a12
test rax, rax
jne 0x140114a50
call fcn.1401198d0
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140114a20
call fcn.1401198d0
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x1401149f0
test rax, rax
jne 0x140114a80
call fcn.1401198d0
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x1401149fb
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2
Function at 0x140114a90
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 + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
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 + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 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 0x140114ba2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x140114b7a
add rax, 1
cmp rax, 0x6b
je 0x140114b97
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x140114b70
cmp edx, 0x6a
je 0x140114b97
lea eax, [rdx + 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 0x140114b8b
Function at 0x1401155b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rsi, qword [str._Q._]
mov rax, qword [rsi]
test rax, rax
je 0x1401157a0
cmp qword [rax + 0x28], 0
jne 0x140115788
lea rcx, [0x1402e5138]
cmp dword [rcx], 1
mov qword [rax + 0x28], rcx
je 0x140115795
call fcn.140114bc0
mov rax, qword [rsi]
test rax, rax
je 0x140115630
cmp qword [rax + 0x30], 0
jne 0x140115650
lea rdx, [0x140139c48]
mov qword [rax + 0x30], rdx
mov rax, rdx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x140115664
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.1401198d0
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140115600
test rax, rax
jne 0x140115650
call fcn.1401198d0
nop dword [rax]
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
jne 0x14011561e
call fcn.140114700
cmp qword [0x1402e9050], 0
mov rbx, rax
je 0x14011561e
test rax, rax
je 0x14011561e
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.14011b770
cmp eax, 1
je 0x14011580d
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 r12, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, r12
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 0x14011d856
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
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
mov rax, qword [rsi]
test rax, rax
je 0x1401157e8
cmp qword [rax + 0x30], 0
je 0x1401157d0
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14011d856
mov r12, rbx
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x1401155ec
mov rax, qword [rsi]
jmp 0x1401155f9
call fcn.1401198d0
cmp qword [rax + 0x28], 0
mov rax, qword [rsi]
je 0x1401155d8
test rax, rax
jne 0x140115788
call fcn.1401198d0
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x1401155ec
jmp 0x1401155f1
lea rdx, [0x140139c48]
mov qword [rax + 0x30], rdx
mov rax, rdx
jmp 0x14011575e
call fcn.1401198d0
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x1401157d0
test rax, rax
jne 0x14011575a
call fcn.1401198d0
jmp 0x14011575a
call fcn.140114a90
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [str._Q._]
mov rdx, qword [rax]
lea rax, [0x1402e5148]
mov qword [rdx + 0x10], rax
ret
Function at 0x140119750
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140119770
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x1401197b8
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140119764
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1401197a5