joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400243d8
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1400410e0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14001e354
xor ebx, ebx
cmp qword [0x140044c80], rbx
mov rdi, rax
jne 0x1400244eb
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x1400245c2
lea rdx, [0x140034ea0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400245c2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140044c80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140044c88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x140044c90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140044ca0], rax
test rax, rax
je 0x1400244e2
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140044c98], rax
jmp 0x1400244f2
mov rax, qword [0x140044c98]
jmp 0x1400244f9
mov rax, qword [0x140044c98]
mov r11, qword [0x140044ca0]
cmp rax, rdi
je 0x140024560
cmp r11, rdi
je 0x140024560
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140044ca0]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140024560
test rax, rax
je 0x140024560
call rsi
test rax, rax
je 0x14002455a
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14002455a
test byte [rsp + 0x40], 1
jne 0x140024560
bts ebp, 0x15
jmp 0x1400245a0
mov rcx, qword [0x140044c88]
cmp rcx, rdi
je 0x1400245a0
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400245a0
call rax
mov rbx, rax
test rax, rax
je 0x1400245a0
mov rcx, qword [0x140044c90]
cmp rcx, rdi
je 0x1400245a0
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400245a0
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140044c80]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400245c2
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x1400245c4
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14001a510
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400022c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004630]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400022e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400022e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400022e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000233d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002334
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400022e0
add rax, 0x28
cmp rax, r9
jne 0x140002320
xor eax, eax
ret

Function at 0x140002340
Capabilities:
Parse pe header

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

Function at 0x140002400
Capabilities:
Parse pe header

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

Function at 0x1400027a0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, r8
push rdi
mov edi, edx
push rsi
mov rsi, rcx
push rbx
xor ebx, ebx
sub rsp, 0x28
mov ecx, 0x10
call sub.msvcrt.dll_malloc
xor edx, edx
xor r8d, r8d
mov r9d, r8d
mov r8b, byte [rsi + rdx]
mov ecx, r8d
xor ecx, ebx
xor ecx, r9d
mov byte [rax + rdx], cl
inc rdx
cmp rdx, 0x10
jne 0x1400027c1
cmp byte [rax + rbp], dil
je 0x1400027f6
mov rcx, rax
inc ebx
call sub.msvcrt.dll_free
cmp ebx, 0x100
jne 0x1400027b2
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x140002800
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
call fcn.1400015f0
mov r9d, 4
mov r8d, 0x3000
xor ecx, ecx
mov edx, 0x114
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x14000283e
lea rsi, [0x140004060]
mov ecx, 0x45
mov rdi, rax
rep movsd dword [rdi], dword [rsi]
mov r8, qword [0x140003010]
movzx edx, byte [0x140003018]
lea rcx, [0x140003020]
call fcn.1400027a0
mov r8, rax
test rax, rax
je 0x14000287b
mov rcx, rbx
mov r9d, 0x10
mov edx, 0x114
call fcn.140002770
mov rcx, r8
call sub.msvcrt.dll_free
xor eax, eax
lea r9, [rsp + 0x2c]
mov rcx, rbx
mov r8d, 0x40
mov dword [rsp + 0x2c], eax
mov edx, 0x114
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rbx
add rsp, 0x30
xor eax, eax
pop rbx
pop rsi
pop rdi
ret
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x1400054f0]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x140005500]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.140003120
jmp 0x14000123c
mov rax, qword [0x140005500]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x140005500]
mov dword [rax], 1
mov rax, qword [0x140005540]
mov rdx, rax
mov rax, qword [0x140005530]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x140009024], 1
mov rax, qword [0x140005500]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x140005520]
mov rdx, rax
mov rax, qword [0x140005510]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x140005500]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x1400054f0]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x140005440]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x140005440]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.140002348
mov rax, qword [0x140005580]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x1400054e0]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.140001b40
mov eax, dword [0x140009004]
lea rdx, [0x140009008]
mov ecx, eax
call fcn.14000147c
call fcn.1400018d7
mov rax, qword [0x140005470]
mov rax, qword [rax]
mov rdx, qword [0x140009010]
mov qword [rax], rdx
mov rcx, qword [0x140009010]
mov rdx, qword [0x140009008]
mov eax, dword [0x140009004]
mov r8, rcx
mov ecx, eax
call fcn.1400033f0
mov dword [0x14000901c], eax
mov eax, dword [0x140009020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14000901c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x140009024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14000901c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400054a0]
mov dword [rax], 1
mov rax, qword [0x1400054b0]
mov dword [rax], 1
mov rax, qword [0x1400054c0]
mov dword [rax], 1
mov rax, qword [0x140005460]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400016d0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x148
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
lea r15, [rax + 0x10]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x198], rdx
mov rdi, rcx
cmp r15, rax
je 0x1400017d8
mov rbp, r15
lea r13, [rsp + 0x30]
jmp 0x140001731
mov rbp, qword [rbp]
mov rax, qword [rbp]
cmp rax, r15
je 0x1400017d8
mov rdx, qword [rax + 0x60]
mov rcx, r13
mov r8d, 0x104
mov rbx, qword [rax + 0x30]
call sub.api_ms_win_crt_convert_l1_1_0.dll_wcstombs
mov rdx, qword [rsp + 0x198]
mov rcx, r13
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140001720
movsxd rax, dword [rbx + 0x3c]
mov r14d, dword [rbx + rax + 0x88]
lea rsi, [rbx + r14]
mov qword [rsp + 0x28], rsi
mov eax, dword [rsi + 0x20]
mov esi, dword [rsi + 0x14]
test esi, esi
je 0x140001720
xor r14d, r14d
lea r12, [rbx + rax]
jmp 0x140001791
add r14, 1
cmp r14, rsi
je 0x140001720
mov ecx, dword [r12 + r14*4]
mov rdx, rdi
add rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140001788
mov rdi, qword [rsp + 0x28]
lea rdx, [rbx + r14*2]
mov eax, dword [rdi + 0x24]
movzx edx, word [rdx + rax]
mov eax, dword [rdi + 0x1c]
lea rdx, [rbx + rdx*4]
mov eax, dword [rdx + rax]
add rax, rbx
add rsp, 0x148
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
jmp 0x1400017c1
Function at 0x3bd3a3270
Capabilities:
Write file on windows

Disassembly:
push r12
sub rsp, 0x20
xor r8d, r8d
mov r12, rcx
mov rcx, rdx
test rdx, rdx
je 0x3bd3a329b
cmp byte [rdx], 0
je 0x3bd3a329b
nop dword [rax]
add r8, 1
cmp byte [rcx + r8], 0
jne 0x3bd3a3290
mov r9, r12
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, r12
add rsp, 0x20
pop r12
jmp fcn.3bd3bc368
Function at 0x3bd3a9e10
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
xor ebx, ebx
mov rsi, rdx
mov rbp, rcx
lea rcx, [0x3bd3c73a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdi, qword [fcn.3bd3bcaa0]
test rsi, rsi
jle 0x3bd3a9e63
nop dword [rax + rax]
mov r12, qword [rbp + rbx*8]
mov ecx, 1
add rbx, 1
call rdi
xor r8d, r8d
mov rcx, rax
mov rdx, r12
call fcn.3bd3a9cf0
cmp rsi, rbx
jne 0x3bd3a9e40
mov ecx, 1
call rdi
mov r8d, 1
mov edx, 1
lea rcx, [0x3bd3c0221]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rdi
mov rcx, rax
call fcn.3bd3bc368
lea rcx, [0x3bd3c73a0]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x3bd3b2d20
Capabilities:
Access peb ldr_data
Get ntdll base address
Populate syswhispers2 syscall list
Resolve function by parsing pe exports

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov r8, qword [rax + 0x10]
mov rcx, qword [r8 + 0x30]
test rcx, rcx
je 0x3bd3b2f4e
xor r10d, r10d
nop dword [rax]
mov rdx, rcx
movsxd rcx, dword [rcx + 0x3c]
mov eax, dword [rdx + rcx + 0x88]
test eax, eax
je 0x3bd3b2d8f
lea r10, [rdx + rax]
mov ecx, dword [r10 + 0xc]
add rcx, rdx
mov r9d, dword [rcx]
or r9d, 0x20202020
cmp r9d, 0x6c64746e
jne 0x3bd3b2d8f
mov eax, dword [rcx + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
je 0x3bd3b2da4
mov r8, qword [r8]
mov rcx, qword [r8 + 0x30]
test rcx, rcx
jne 0x3bd3b2d50
test r10, r10
je 0x3bd3b2f4e
mov eax, dword [r10 + 0x18]
mov edi, dword [r10 + 0x24]
xor r9d, r9d
lea r12, [0x3bd3bd348]
mov ebp, dword [r10 + 0x1c]
lea ecx, [rax - 1]
mov eax, dword [r10 + 0x20]
add rdi, rdx
add rbp, rdx
lea rbx, [rdi + rcx*2]
add rax, rdx
lea rsi, [rax + rcx*4]
jmp 0x3bd3b2dec
sub rsi, 4
lea rax, [rbx - 2]
cmp rdi, rbx
je 0x3bd3b2e80
mov rbx, rax
mov eax, dword [rsi]
add rax, rdx
cmp word [rax], 0x775a
jne 0x3bd3b2dd8
mov r13d, r9d
shl r13, 4
add r13, r12
cmp byte [rax], 0
je 0x3bd3b2f43
cmp byte [rax + 1], 0
mov r8d, 0xe81f7a60
je 0x3bd3b2e46
mov ecx, 1
mov r10d, 1
nop word [rax + rax]
mov r11d, r8d
movzx ecx, word [rax + rcx]
add r10d, 1
ror r11d, 8
add ecx, r11d
xor r8d, ecx
mov ecx, r10d
cmp byte [rax + rcx], 0
jne 0x3bd3b2e28
mov dword [r13], r8d
movzx eax, word [rbx]
add r9d, 1
mov eax, dword [rbp + rax*4]
mov qword [r13 + 8], 0
mov dword [r13 + 4], eax
cmp r9d, 0x1f4
jne 0x3bd3b2dd8
mov dword [0x3bd3bd340], 0x1f4
jmp 0x3bd3b2e91
mov dword [0x3bd3bd340], r9d
cmp r9d, 1
je 0x3bd3b2f18
xor ebx, ebx
sub r9d, 1
lea r11, [0x3bd3bd348]
nop
mov r10d, dword [0x3bd3bd34c]
xor edx, edx
cmp ebx, r9d
je 0x3bd3b2f10
nop
lea eax, [rdx + 1]
mov rcx, rax
shl rax, 4
add rax, r11
mov r8d, dword [rax + 4]
cmp r8d, r10d
jae 0x3bd3b2f30
mov edi, dword [rax]
shl rdx, 4
add rdx, r11
mov r9d, dword [rdx]
mov r8, qword [rdx + 8]
mov dword [rdx], edi
mov esi, dword [rax + 4]
mov dword [rdx + 4], esi
mov rdi, qword [rax + 8]
mov qword [rdx + 8], rdi
mov dword [rax], r9d
mov r9d, dword [0x3bd3bd340]
mov dword [rax + 4], r10d
sub r9d, 1
mov qword [rax + 8], r8
mov eax, r9d
sub eax, ebx
cmp eax, ecx
jbe 0x3bd3b2f10
mov edx, ecx
jmp 0x3bd3b2eb0
add ebx, 1
cmp ebx, r9d
jb 0x3bd3b2ea0
mov eax, 1
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov eax, r9d
sub eax, ebx
cmp ecx, eax
jae 0x3bd3b2f10
mov r10d, r8d
mov edx, ecx
jmp 0x3bd3b2eb0
mov r8d, 0x6778958f
jmp 0x3bd3b2e46
xor eax, eax
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x3bd3b3100
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
nop
nop
nop
mov qword [rsp + 0x10], rdx
nop
nop
nop
nop
mov qword [rsp + 0x18], r8
nop
nop
nop
mov qword [rsp + 0x20], r9
nop
nop
nop
nop
nop
sub rsp, 0x28
nop
nop
nop
mov ecx, 0x37953903
nop
nop
call fcn.3bd3b2fc0
nop
nop
nop
nop
nop
add rsp, 0x28
nop
nop
nop
mov rcx, qword [rsp + 8]
nop
nop
nop
mov rdx, qword [rsp + 0x10]
nop
nop
nop
nop
nop
mov r8, qword [rsp + 0x18]
nop
nop
mov r9, qword [rsp + 0x20]
nop
nop
nop
nop
mov r10, rcx
nop
nop
nop
nop
nop
nop
nop
syscall
nop
nop
nop
nop
ret

Function at 0x3bd3b3180
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
nop
nop
nop
mov qword [rsp + 0x10], rdx
nop
mov qword [rsp + 0x18], r8
nop
nop
nop
mov qword [rsp + 0x20], r9
sub rsp, 0x28
nop
nop
nop
mov ecx, 0x8d149393
nop
nop
call fcn.3bd3b2fc0
nop
add rsp, 0x28
nop
nop
mov rcx, qword [rsp + 8]
nop
nop
nop
nop
mov rdx, qword [rsp + 0x10]
nop
nop
nop
nop
nop
mov r8, qword [rsp + 0x18]
nop
mov r9, qword [rsp + 0x20]
nop
mov r10, rcx
nop
syscall
ret
Function at 0x3bd3b40a0
Capabilities:
Access peb ldr_data

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov edx, 0x77912f88
lea rdi, [0x3bd3c2de0]
mov r12, rcx
lea rcx, [0x3bd3c2e20]
lea rbx, [rsp + 0x28]
call fcn.3bd3b25e0
mov edx, 0x3a433588
mov rcx, rax
call fcn.3bd3b34d0
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rsi, qword [rax + 0x20]
lea rbp, [rax + 0x20]
nop
movzx eax, word [r12]
mov qword [rsp + 0x28], r12
mov rdx, r12
test ax, ax
je 0x3bd3b4131
nop word [rax + rax]
lea ecx, [rax - 0x41]
cmp cx, 0x19
ja 0x3bd3b4117
add eax, 0x20
mov word [rdx], ax
mov edx, 1
mov rcx, rbx
call fcn.3bd3adba0
mov rdx, qword [rsp + 0x28]
movzx eax, word [rdx]
test ax, ax
jne 0x3bd3b4108
mov r13, qword [rsi + 0x50]
mov qword [rsp + 0x28], r13
movzx eax, word [r13]
test ax, ax
je 0x3bd3b4179
mov rdx, r13
nop word [rax + rax]
lea ecx, [rax - 0x41]
cmp cx, 0x19
ja 0x3bd3b415f
add eax, 0x20
mov word [rdx], ax
mov edx, 1
mov rcx, rbx
call fcn.3bd3adba0
mov rdx, qword [rsp + 0x28]
movzx eax, word [rdx]
test ax, ax
jne 0x3bd3b4150
mov rdx, r13
mov rcx, r12
call fcn.3bd3b3ff0
mov edx, 0x3fcd4508
mov rcx, rdi
mov r13, rax
call fcn.3bd3b25e0
mov edx, 0x4d8ead88
mov rcx, rax
call fcn.3bd3b34d0
test r13, r13
je 0x3bd3b41cb
mov rsi, qword [rsi]
cmp rbp, rsi
jne 0x3bd3b40f0
mov edx, 1
mov rcx, r12
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp 0x3bd3b3900
mov rax, qword [rsi + 0x20]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x3bd3b4240
Capabilities:
Access peb ldr_data

Disassembly:
push r12
push rbx
sub rsp, 0x48
mov r12, rcx
test edx, edx
je 0x3bd3b39a8
mov edx, 0x28270708
lea rcx, [0x3bd3c2d00]
lea rbx, [rsp + 0x30]
call fcn.3bd3b25e0
mov edx, 0x4947e388
mov rcx, rax
call fcn.3bd3b34d0
mov rdx, r12
mov rcx, rbx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x28], 0
call qword [0x3bd3cd970]
lea r9, [rsp + 0x28]
mov r8, rbx
xor edx, edx
xor ecx, ecx
call qword [0x3bd3cd948]
mov edx, 0x3d701188
lea rcx, [0x3bd3c2cc0]
mov r12d, eax
call fcn.3bd3b25e0
mov edx, 0x642b2f08
mov rcx, rax
call fcn.3bd3b34d0
test r12d, r12d
mov eax, 0
cmove rax, qword [rsp + 0x28]
add rsp, 0x48
pop rbx
pop r12
ret
mov edx, 0x7823ab88
lea rcx, [0x3bd3c2da0]
call fcn.3bd3b25e0
mov edx, 0x1f9b2d08
mov rcx, rax
call fcn.3bd3b34d0
xor eax, eax
add rsp, 0x48
pop rbx
pop r12
ret
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
lea rdi, [0x3bd3c2de0]
mov r13, rcx
mov r14d, edx
lea rcx, [0x3bd3c2e20]
mov edx, 0x77912f88
call fcn.3bd3b25e0
mov edx, 0x3a433588
lea rbx, [rsp + 0x28]
mov rcx, rax
call fcn.3bd3b34d0
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rsi, qword [rax + 0x20]
lea rbp, [rax + 0x20]
nop dword [rax + rax]
movzx eax, word [r13]
mov qword [rsp + 0x28], r13
mov rdx, r13
test ax, ax
je 0x3bd3b42d9
nop word [rax + rax]
lea ecx, [rax - 0x41]
cmp cx, 0x19
ja 0x3bd3b42bf
add eax, 0x20
mov word [rdx], ax
mov edx, 1
mov rcx, rbx
call fcn.3bd3adba0
mov rdx, qword [rsp + 0x28]
movzx eax, word [rdx]
test ax, ax
jne 0x3bd3b42b0
mov r12, qword [rsi + 0x50]
mov qword [rsp + 0x28], r12
movzx eax, word [r12]
test ax, ax
je 0x3bd3b4319
mov rdx, r12
nop
lea ecx, [rax - 0x41]
cmp cx, 0x19
ja 0x3bd3b42ff
add eax, 0x20
mov word [rdx], ax
mov edx, 1
mov rcx, rbx
call fcn.3bd3adba0
mov rdx, qword [rsp + 0x28]
movzx eax, word [rdx]
test ax, ax
jne 0x3bd3b42f0
mov rdx, r12
mov rcx, r13
call fcn.3bd3b3ff0
mov edx, 0x3fcd4508
mov rcx, rdi
mov r12, rax
call fcn.3bd3b25e0
mov edx, 0x4d8ead88
mov rcx, rax
call fcn.3bd3b34d0
test r12, r12
je 0x3bd3b436b
mov rsi, qword [rsi]
cmp rbp, rsi
jne 0x3bd3b4298
mov edx, r14d
mov rcx, r13
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp 0x3bd3b3900
mov rax, qword [rsi + 0x20]
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x3bd3b6450
Capabilities:
Check for peb beingdebugged flag

Disassembly:
sub rsp, 0x28
call fcn.3bd3a13a0
call fcn.3bd3a21c0
call fcn.3bd3aa7a0
call fcn.3bd3aa750
call fcn.3bd3aac40
call fcn.3bd3ab280
call fcn.3bd3ab330
call fcn.3bd3ad940
call fcn.3bd3adb60
call fcn.3bd3adc10
call fcn.3bd3b01c0
call fcn.3bd3b2150
call fcn.3bd3b25c0
call fcn.3bd3b6060
call fcn.3bd3a31e0
call fcn.3bd3adb20
call fcn.3bd3b20d0
call fcn.3bd3b24c0
nop
add rsp, 0x28
jmp fcn.3bd3b5770

Function at 0x3bd3b6740
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.3bd3bcaa0
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.3bd3bcaa0
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 0x3bd3b67b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x3bd3cddb4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x3bd3b6960
mov rax, qword [0x3bd3cddb8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x3bd3b67fc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x3bd3b6887
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x3bd3b67e0
mov rcx, r12
call fcn.3bd3b7050
mov rbp, rax
test rax, rax
je 0x3bd3b69bd
mov rax, qword [0x3bd3cddb8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.3bd3b7180
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x3bd3cddb8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x3bd3b69a2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x3bd3b6880
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x3bd3b6910
add dword [0x3bd3cddb4], 1
cmp ebx, 8
jae 0x3bd3b68b8
test bl, 4
jne 0x3bd3b6970
test ebx, ebx
je 0x3bd3b68a9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x3bd3b6990
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 0x3bd3b68a9
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 0x3bd3b68ea
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 [0x3bd3cddb8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x3bd3b6880
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.3bd3b6740
xor edi, edi
jmp 0x3bd3b6807
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x3bd3b68a9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x3bd3b68a9
mov rax, qword [0x3bd3cddb8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.3bd3b6740
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.3bd3b6740
nop
nop dword [rax]