joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180011046
Capabilities:
Create process on windows

Disassembly:
jmp 0x180011710
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1d8
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1f8]
mov rax, qword [0x18001c008]
xor rax, rbp
mov qword [rbp + 0x178], rax
lea rcx, [0x180021002]
call fcn.1800112da
mov r8d, 0x68
xor edx, edx
lea rcx, [rbp + 0x10]
call fcn.18001124e
mov dword [rbp + 0x10], 0x68
mov r8d, 0x18
xor edx, edx
lea rcx, [rbp + 0x98]
call fcn.18001124e
lea rax, [rbp + 0x98]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.C:WindowsSystem32_notepad.exe
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x50]
lea rdx, [0x180019910]
call fcn.180011285
mov eax, edi
mov rcx, qword [rbp + 0x178]
xor rcx, rbp
call fcn.18001116d
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret

Function at 0x180011177
Capabilities:
Create thread

Disassembly:
jmp 0x180011680
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x30]
lea rcx, [0x180021002]
call fcn.1800112da
mov eax, dword [rbp + 0xf8]
mov dword [rbp + 0xc0], eax
cmp dword [rbp + 0xc0], 1
je 0x1800116bf
jmp 0x1800116e4
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [sym.DllHijackPayload.dll_Payload]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
lea rsp, [rbp + 0xd8]
pop rdi
pop rbp
ret

Function at 0x1800111a4
Capabilities:
Terminate process

Disassembly:
jmp 0x180012d80
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400025bb
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov r13, rcx
mov r12, rdx
test rdx, rdx
je 0x1400025dc
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, r12
mov r9, r13
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, r13
add rsp, 0x28
pop r12
pop r13
jmp fcn.140018bc0

Function at 0x1400053b2
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x38
mov qword [rsp + 0x28], rdx
mov r13, rcx
mov ecx, 2
call qword [fcn.140019190]
mov r8, qword [rsp + 0x28]
mov rcx, r13
mov edx, 1
mov r12, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, r12
add rsp, 0x38
pop r12
pop r13
jmp fcn.140018bc0
push r13
push r12
sub rsp, 0x38
cmp qword [0x14011f0f0], 0
jne 0x140005411
add rsp, 0x38
pop r12
pop r13
jmp 0x1400053b2
lea r13, [rsp + 0x20]
mov rdx, rcx
mov rcx, r13
call fcn.140005324
mov r12, qword [rsp + 0x28]
mov rcx, r13
call qword [0x14011f0f0]
test r12, r12
je 0x140005444
test byte [r12 + 7], 0x40
jne 0x140005444
mov rcx, r12
call fcn.1400036c2
lea rcx, [0x14001a340]
call fcn.140013d30
cmp byte [rax], 0
je 0x14000547e
mov byte [rax], 0
lea rcx, [0x14001a240]
call fcn.140013d30
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x38
pop r12
pop r13
jmp fcn.1400046a1
add rsp, 0x38
pop r12
pop r13
ret

Function at 0x1400053f5
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x38
mov qword [rsp + 0x28], rdx
mov r13, rcx
mov ecx, 2
call qword [fcn.140019190]
mov r8, qword [rsp + 0x28]
mov rcx, r13
mov edx, 1
mov r12, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, r12
add rsp, 0x38
pop r12
pop r13
jmp fcn.140018bc0
push r13
push r12
sub rsp, 0x38
cmp qword [0x14011f0f0], 0
jne 0x140005411
add rsp, 0x38
pop r12
pop r13
jmp 0x1400053b2
lea r13, [rsp + 0x20]
mov rdx, rcx
mov rcx, r13
call fcn.140005324
mov r12, qword [rsp + 0x28]
mov rcx, r13
call qword [0x14011f0f0]
test r12, r12
je 0x140005444
test byte [r12 + 7], 0x40
jne 0x140005444
mov rcx, r12
call fcn.1400036c2
lea rcx, [0x14001a340]
call fcn.140013d30
cmp byte [rax], 0
je 0x14000547e
mov byte [rax], 0
lea rcx, [0x14001a240]
call fcn.140013d30
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x38
pop r12
pop r13
jmp fcn.1400046a1
add rsp, 0x38
pop r12
pop r13
ret
Function at 0x140005b20
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
xor r12d, r12d
lea rbp, [0x14001a340]
mov rsi, rcx
mov rbx, rdx
lea rdi, [rsp + 0x20]
lea rcx, [0x14011f0c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp r12, rbx
jl 0x140005ba4
mov rbx, qword [fcn.140019190]
mov ecx, 1
call rbx
mov r8d, 1
mov edx, 1
lea rcx, [0x14001b31b]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbx
mov rcx, rax
call fcn.140018bc0
lea rcx, [0x14011f0c0]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test r12, r12
jns 0x140005bc1
lea rdx, [rbx - 1]
mov rcx, r12
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp fcn.140004dca
mov r13, r12
mov ecx, 1
call qword [fcn.140019190]
shl r13, 4
xor r8d, r8d
mov rdx, rdi
add r13, rsi
mov rcx, rax
movups xmm0, xmmword [r13]
movups xmmword [rsp + 0x20], xmm0
call fcn.1400059fe
mov rcx, rbp
call fcn.140013d30
cmp byte [rax], 0
jne 0x140005c16
add r12, 1
jno 0x140005b4e
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp fcn.1400037da
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x14000fbfe
Capabilities:
Parse pe header

Disassembly:
push r12
sub rsp, 0x20
test rcx, rcx
je 0x14000fc3f
cmp word [rcx], 0x5a4d
jne 0x14000fc3f
movsxd rdx, dword [rcx + 0x3c]
cmp edx, 0x400
jg 0x14000fc3f
call fcn.140007414
mov rcx, qword [0x140119fd0]
mov r12, rax
call fcn.140013d30
cmp byte [rax], 0
jne 0x14000fc3f
cmp dword [r12], 0x4550
je 0x14000fc42
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop r12
ret

Function at 0x140012dd0
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.140019190
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.140019190
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 0x140012e40
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x14011fab4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140012ff0
mov rax, qword [0x14011fab8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140012e8c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140012f17
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140012e70
mov rcx, r12
call fcn.1400138f0
mov rbp, rax
test rax, rax
je 0x14001304d
mov rax, qword [0x14011fab8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.140013a20
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14011fab8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140013032
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140012f10
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140012fa0
add dword [0x14011fab4], 1
cmp ebx, 8
jae 0x140012f48
test bl, 4
jne 0x140013000
test ebx, ebx
je 0x140012f39
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140013020
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x140012f39
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x140012f7a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
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 rdi, qword [0x14011fab8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140012f10
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140012dd0
xor edi, edi
jmp 0x140012e97
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140012f39
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140012f39
mov rax, qword [0x14011fab8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.140012dd0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140012dd0
nop
nop dword [rax]
Function at 0x140013560
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14011fb20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14011fb00]
test rbx, rbx
je 0x1400135b4
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 0x1400135ab
test r12, r12
je 0x1400135ab
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140013590
lea rcx, [0x14011fb20]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400138f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140119fe0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x140013969
mov rcx, r10
call fcn.1400137c0
test eax, eax
je 0x140013969
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x140013966
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x14001395d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x140013969
add r8, 0x28
cmp r8, r9
jne 0x140013948
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x140013cd0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor ecx, ecx
xor r9d, r9d
mov r8d, 0xffff
mov dword [0x14011fba0], 0xffffffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x14011fba8], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x140013d20
lea rdx, [0x140013be0]
mov dword [0x14011fb98], eax
call fcn.1400193d0
test eax, eax
jne 0x140013d28
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140013d17
call sub.msvcrt.dll_abort
nop
nop
Function at 0x140013d30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r13, qword [0x140119f70]
mov r11d, dword [r13]
mov r12, rcx
test r11d, r11d
jne 0x140013d70
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x140013dd8
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
ret
mov rsi, qword [rcx + 0x10]
test rsi, rsi
je 0x140013df0
mov r13d, dword [0x14011fb98]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rdi
mov r14d, eax
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r14d
mov r13, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r13, r13
je 0x140013e68
mov rbx, qword [r13]
cmp rbx, rsi
jb 0x140013eb0
sub rsi, 1
mov rax, qword [r13 + rsi*8 + 8]
test rax, rax
jne 0x140013d59
mov rcx, r12
call fcn.140013c30
mov qword [r13 + rsi*8 + 8], rax
jmp 0x140013d59
call fcn.140013c30
mov qword [r12 + 0x10], rax
jmp 0x140013d59
mov r10d, dword [r13]
test r10d, r10d
je 0x140013f12
mov r9d, dword [0x14001a590]
test r9d, r9d
je 0x140013f40
lock add dword [0x14011fba0], 1
jne 0x140013f74
mov rsi, qword [r12 + 0x10]
test rsi, rsi
je 0x140013f20
mov eax, dword [r13]
test eax, eax
je 0x140013d79
mov eax, 0xffffffff
lock xadd dword [0x14011fba0], eax
sub eax, 1
js 0x140013d79
mov rcx, qword [0x14011fba8]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x140013d79
lea rcx, [rsi + 0x21]
mov edx, 8
lea rbx, [rsi + 0x20]
call sub.msvcrt.dll_calloc
mov r13, rax
test rax, rax
je 0x140013f9b
mov qword [rax], rbx
mov ecx, dword [0x14011fb98]
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x140013db7
call rdi
jmp 0x140013db7
lea r14, [rbx + rbx]
lea rax, [rsi + 0x20]
mov rcx, r13
cmp rsi, r14
cmova r14, rax
lea rdx, [r14*8 + 8]
call sub.msvcrt.dll_realloc
mov r13, rax
test rax, rax
je 0x140013f9b
mov qword [rax], r14
sub r14, rbx
lea rcx, [rax + rbx*8 + 8]
xor edx, edx
lea r8, [r14*8]
call sub.msvcrt.dll_memset
jmp 0x140013e89
call fcn.140013cd0
mov dword [0x14001a590], 1
mov edx, dword [r13]
test edx, edx
jne 0x140013e0d
mov rsi, qword [r12 + 0x10]
test rsi, rsi
jne 0x140013d79
mov rax, qword [0x14011fb90]
lea rsi, [rax + 1]
mov qword [0x14011fb90], rsi
mov qword [r12 + 0x10], rsi
jmp 0x140013e29
lock add dword [0x14001a594], 1
je 0x140013ef7
mov r8d, dword [0x14001a590]
mov rsi, qword [sym.imp.KERNEL32.dll_Sleep]
lea rbx, [0x14001a590]
test r8d, r8d
jne 0x140013f06
nop dword [rax]
xor ecx, ecx
call rsi
mov ecx, dword [rbx]
test ecx, ecx
je 0x140013f68
jmp 0x140013f06
mov rcx, qword [0x14011fba8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140013e1b
lock sub dword [0x14011fba0], 1
jmp 0x140013e1b
call sub.msvcrt.dll_abort
nop
nop word cs:[rax + rax]
nop dword [rax]
cmp qword [rcx], rdx
jae 0x140013fc0
mov qword [rcx], rdx
mov qword [rcx + 0x18], 0
cmp qword [rcx + 8], r8
jae 0x140013fca
mov qword [rcx + 8], r8
test r9, r9
je 0x140013fd4
cmp qword [rcx], rdx
je 0x140013fd8
ret
mov qword [rcx + 0x18], r9
ret
Function at 0x140001001
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400087d0]
mov rcx, qword [0x140008770]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x1400087e0]
cmp word [rcx], 0x5a4d
mov dword [rax], 1
mov rax, qword [0x1400087f0]
mov dword [rax], 1
jne 0x140001083
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x140001083
mov ecx, dword [rax + 0x18]
cmp cx, 0x10b
je 0x14000105e
cmp cx, 0x20b
je 0x14000106d
jmp 0x140001083
cmp dword [rax + 0x74], 0xe
jbe 0x140001083
cmp dword [rax + 0xe8], 0
jmp 0x14000107d
cmp dword [rax + 0x84], 0xe
jbe 0x140001083
cmp dword [rax + 0xf8], 0
setne dl
movzx edx, dl
mov rax, qword [0x1400087c0]
mov dword [0x14000b020], edx
mov ecx, 2
cmp dword [rax], 0
jne 0x14000109f
mov ecx, 1
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x1400088a0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140008880]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140008720]
cmp dword [rax], 1
jne 0x1400010e1
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
Function at 0x140001a34
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x14000b0b8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x14000b0b4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140001a82
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140001a7a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001b69
inc ebx
add rax, 0x28
jmp 0x140001a5a
mov rcx, r12
call sym.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
jne 0x140001aa1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
movsxd rbx, ebx
mov rax, qword [0x14000b0b8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call sym._GetPEImageBase
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000b0b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140001b03
mov rax, qword [0x14000b0b8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001b63
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001b63
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 [0x14000b0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001b63
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
inc dword [0x14000b0b4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140001fd0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x14000b120]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000b100]
test rbx, rbx
je 0x14000201c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140002016
test rsi, rsi
je 0x140002016
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140001fee
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400021d0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400021f3
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x1400021f3
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1400021f4
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x14000222e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140002225
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140002230
inc r8d
add rax, 0x28
jmp 0x14000220c
xor eax, eax
ret

Function at 0x1400022a1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140008770]
mov r8, rcx
mov rcx, r9
call sym._ValidateImageBase
test eax, eax
je 0x1400022cd
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp sym._FindPESection
xor eax, eax
add rsp, 0x28
ret
Function at 0x140003ee0
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x490], rbx
mov rax, qword [0x140057028]
xor rax, rbp
mov qword [rbp + 0x440], rax
mov rdi, rdx
mov dword [rbp], 0x438
mov edx, dword [rcx + 0x10]
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rbp]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
xor r14d, r14d
movabs r15, 0xffffffffffffff0
lea rcx, [rbp + 0x30]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140003f50
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jg 0x140003fca
cdqe
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140003f7b
mov rcx, r15
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400412d0
sub rsp, rcx
lea rbx, [rsp + 0x40]
test rbx, rbx
je 0x140003fca
lea eax, [rdx + rdx]
mov qword [rsp + 0x38], r14
xor edx, edx
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], eax
lea r8, [rbp + 0x30]
mov r9d, 0xffffffff
mov byte [rbx], r14b
mov qword [rsp + 0x20], rbx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
cmove rbx, r14
jmp 0x140003fcd
mov rbx, r14
cmp qword [rdi + 0x18], 0x10
mov rdx, rdi
jb 0x140003fda
mov rdx, qword [rdi]
sub rdx, rbx
nop dword [rax]
movzx ecx, byte [rbx]
movzx eax, byte [rbx + rdx]
sub ecx, eax
jne 0x140003ff2
inc rbx
test eax, eax
jne 0x140003fe0
test ecx, ecx
mov rcx, rsi
je 0x140004052
lea rdx, [rbp]
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x140003f41
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x14000404e
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140004049
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400040c9
mov rcx, r8
call fcn.1400406bc
xor eax, eax
jmp 0x140004095
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rdi + 0x18]
mov rbx, qword [rbp + 0x28]
cmp rdx, 0x10
jb 0x140004092
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x14000408d
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400040c9
mov rcx, r8
call fcn.1400406bc
mov rax, rbx
mov byte [rdi], r14b
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], r14
mov rcx, qword [rbp + 0x440]
xor rcx, rbp
call fcn.140040220
mov rbx, qword [rbp + 0x490]
lea rsp, [rbp + 0x450]
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3