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

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
xor ebx, ebx
mov dword [0x1401601c0], eax
mov eax, dword [rsp + 0x24]
mov dword [0x1401601c4], eax
mov eax, dword [rsp + 0x48]
mov dword [0x1401601c8], eax
mov dword [rsp + 0x60], ebx
mov byte [0x1401601cd], bl
call fcn.140012620
test al, al
je 0x14001149e
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetNumaHighestNodeNumber]
test eax, eax
je 0x14001149e
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x14001149e
inc eax
mov byte [0x1401601cd], 1
mov dword [0x140160250], eax
mov byte [0x1401601ce], bl
mov word [rsp + 0x60], bx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessGroupAffinity]
mov edi, 1
test eax, eax
jne 0x1400114db
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400114db
movzx eax, word [rsp + 0x60]
jmp 0x1400114e2
mov eax, edi
mov word [rsp + 0x60], ax
cmp ax, di
seta cl
call fcn.140012510
test al, al
je 0x14001150b
call fcn.140011210
test al, al
je 0x14001150b
cmp dword [0x140160254], edi
seta al
mov byte [0x1401601ce], al
jmp 0x140011512
movzx eax, byte [0x1401601ce]
test al, al
je 0x140011560
mov r9d, dword [0x140160258]
test r9, r9
je 0x1400115e3
lea r8, [0x1401601d0]
nop dword [rax]
mov rcx, rbx
mov rax, rbx
shr rax, 6
and ecx, 0x3f
lea rdx, [r8 + rax*8]
inc rbx
mov rax, qword [rdx]
bts rax, rcx
mov qword [rdx], rax
cmp rbx, r9
jb 0x140011530
mov al, 1
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
test eax, eax
je 0x1400115e3
mov r9, qword [rsp + 0x60]
lea r8, [0x1401601d0]
nop dword [rax]
test r9, rdi
je 0x1400115b1
mov rcx, rbx
mov rax, rbx
shr rax, 6
and ecx, 0x3f
lea rdx, [r8 + rax*8]
mov rax, qword [r8 + rax*8]
bts rax, rcx
mov qword [rdx], rax
rol rdi, 1
test r9, rdi
je 0x1400115d6
lea rdx, [rbx + 1]
mov rax, rdx
and edx, 0x3f
shr rax, 6
lea rcx, [r8 + rax*8]
mov rax, qword [r8 + rax*8]
bts rax, rdx
mov qword [rcx], rax
rol rdi, 1
add rbx, 2
cmp rbx, 0x40
jb 0x140011590
mov rbx, qword [rsp + 0x70]
mov al, 1
add rsp, 0x50
pop rdi
ret
Function at 0x14005c130
Capabilities:
Get number of processors

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r15, r9
mov r12, r8
mov r13, rdx
call fcn.140059dd0
mov r14, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov r9, r14
mov rdi, qword [rsp + 0x78]
mov r8, rsi
mov rbx, qword [rsp + 0x70]
mov rdx, rdi
mov rcx, rbx
call fcn.14005a500
vmovdqu32 zmm3, zmmword [rbx]
vpmaxsd zmm1, zmm3, zmmword [r15]
mov rax, qword [rsp + 0x50]
mov r9, r15
vmovdqu32 zmmword [rbx], zmm1
vpminsd zmm0, zmm3, zmmword [r15]
vmovdqu32 zmmword [r15], zmm0
vmovdqu32 zmm4, zmmword [rdi]
vpmaxsd zmm0, zmm4, zmmword [r12]
vmovdqu32 zmmword [rdi], zmm0
vpminsd zmm1, zmm4, zmmword [r12]
vmovdqu32 zmmword [r12], zmm1
vmovdqu32 zmm3, zmmword [rsi]
vpmaxsd zmm1, zmm3, zmmword [r13]
vmovdqu32 zmmword [rsi], zmm1
vpminsd zmm0, zmm3, zmmword [r13]
vmovdqu32 zmmword [r13], zmm0
vmovdqu32 zmm4, zmmword [r14]
vpmaxsd zmm0, zmm4, zmmword [rax]
vmovdqu32 zmmword [r14], zmm0
vpminsd zmm1, zmm4, zmmword [rax]
vmovdqu32 zmmword [rax], zmm1
mov r8, r12
mov rdx, r13
mov rcx, rax
vzeroupper
call fcn.14005ac30
mov r9, r14
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
jmp fcn.14005ac30

Function at 0x14005c250
Capabilities:
Get number of processors

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r15, r9
mov r12, r8
mov r13, rdx
call fcn.14005a500
mov r14, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov r9, r14
mov rdi, qword [rsp + 0x78]
mov r8, rsi
mov rbx, qword [rsp + 0x70]
mov rdx, rdi
mov rcx, rbx
call fcn.140059dd0
vmovdqu32 zmm3, zmmword [rbx]
vpmaxsd zmm1, zmm3, zmmword [r15]
mov rax, qword [rsp + 0x50]
mov r9, r15
vmovdqu32 zmmword [rbx], zmm1
vpminsd zmm0, zmm3, zmmword [r15]
vmovdqu32 zmmword [r15], zmm0
vmovdqu32 zmm4, zmmword [rdi]
vpmaxsd zmm0, zmm4, zmmword [r12]
vmovdqu32 zmmword [rdi], zmm0
vpminsd zmm1, zmm4, zmmword [r12]
vmovdqu32 zmmword [r12], zmm1
vmovdqu32 zmm3, zmmword [rsi]
vpmaxsd zmm1, zmm3, zmmword [r13]
vmovdqu32 zmmword [rsi], zmm1
vpminsd zmm0, zmm3, zmmword [r13]
vmovdqu32 zmmword [r13], zmm0
vmovdqu32 zmm4, zmmword [r14]
vpmaxsd zmm0, zmm4, zmmword [rax]
vmovdqu32 zmmword [r14], zmm0
vpminsd zmm1, zmm4, zmmword [rax]
vmovdqu32 zmmword [rax], zmm1
mov r8, r12
mov rdx, r13
mov rcx, rax
vzeroupper
call fcn.14005ae30
mov r9, r14
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
jmp fcn.14005ae30
Function at 0x14005d930
Capabilities:
Get number of processors

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [rsp + 0xb8]
mov r13, qword [rsp + 0xb0]
mov r12, qword [rsp + 0xa8]
mov r14, qword [rsp + 0xa0]
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x48], r13
mov qword [r11 - 0x50], r12
mov qword [r11 - 0x58], r14
call fcn.14005c130
mov r15, qword [rsp + 0xd8]
mov rsi, qword [rsp + 0xd0]
mov r9, r15
mov rdi, qword [rsp + 0xc8]
mov r8, rsi
mov rbx, qword [rsp + 0xc0]
mov rdx, rdi
mov rcx, rbx
call fcn.14005a500
vmovdqu32 zmm3, zmmword [rbx]
mov rax, qword [rsp + 0xb8]
mov r9, qword [rsp + 0x98]
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
vpmaxsd zmm1, zmm3, zmmword [rax]
mov rcx, qword [rsp + 0x80]
vmovdqu32 zmmword [rbx], zmm1
vpminsd zmm0, zmm3, zmmword [rax]
vmovdqu32 zmmword [rax], zmm0
vmovdqu32 zmm4, zmmword [rdi]
vpmaxsd zmm0, zmm4, zmmword [r13]
vmovdqu32 zmmword [rdi], zmm0
vpminsd zmm1, zmm4, zmmword [r13]
vmovdqu32 zmmword [r13], zmm1
vmovdqu32 zmm3, zmmword [rsi]
vpmaxsd zmm1, zmm3, zmmword [r12]
vmovdqu32 zmmword [rsi], zmm1
vpminsd zmm0, zmm3, zmmword [r12]
vmovdqu32 zmmword [r12], zmm0
vmovdqu32 zmm4, zmmword [r15]
vpmaxsd zmm0, zmm4, zmmword [r14]
vmovdqu32 zmmword [r15], zmm0
vpminsd zmm1, zmm4, zmmword [r14]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r12
vmovdqu32 zmmword [r14], zmm1
mov qword [rsp + 0x20], r14
vzeroupper
call fcn.14005c370
mov r9, r15
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
jmp fcn.14005ac30
Function at 0x14005f830
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [rsp + 0xb8]
mov qword [r11 - 0x40], rax
mov rax, qword [rsp + 0xb0]
mov qword [r11 - 0x48], rax
mov rax, qword [rsp + 0xa8]
mov qword [r11 - 0x50], rax
mov rax, qword [rsp + 0xa0]
mov qword [r11 - 0x58], rax
call fcn.14005c130
mov rax, qword [rsp + 0xf8]
mov r13, qword [rsp + 0xf0]
mov r12, qword [rsp + 0xe8]
mov r14, qword [rsp + 0xd8]
mov rsi, qword [rsp + 0xd0]
mov r9, r14
mov rdi, qword [rsp + 0xc8]
mov r8, rsi
mov rbx, qword [rsp + 0xc0]
mov rdx, rdi
mov r15, qword [rsp + 0xe0]
mov rcx, rbx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r15
call fcn.14005c250
vmovdqu32 zmm3, zmmword [rbx]
mov r9, qword [rsp + 0xb8]
mov r8, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0xa8]
mov rax, qword [rsp + 0xa0]
vpmaxsd zmm1, zmm3, zmmword [r9]
vmovdqu32 zmmword [rbx], zmm1
vpminsd zmm0, zmm3, zmmword [r9]
vmovdqu32 zmmword [r9], zmm0
vmovdqu32 zmm4, zmmword [rdi]
vpmaxsd zmm0, zmm4, zmmword [r8]
mov r10, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x80]
mov r11, qword [rsp + 0x90]
vmovdqu32 zmmword [rdi], zmm0
vpminsd zmm1, zmm4, zmmword [r8]
vmovdqu32 zmmword [r8], zmm1
vmovdqu32 zmm3, zmmword [rsi]
vpmaxsd zmm1, zmm3, zmmword [rdx]
vmovdqu32 zmmword [rsi], zmm1
vpminsd zmm0, zmm3, zmmword [rdx]
vmovdqu32 zmmword [rdx], zmm0
vmovdqu32 zmm4, zmmword [r14]
vpmaxsd zmm0, zmm4, zmmword [rax]
vmovdqu32 zmmword [r14], zmm0
vpminsd zmm1, zmm4, zmmword [rax]
vmovdqu32 zmmword [rax], zmm1
vmovdqu32 zmm3, zmmword [r15]
vpmaxsd zmm1, zmm3, zmmword [r10]
vmovdqu32 zmmword [r15], zmm1
vpminsd zmm0, zmm3, zmmword [r10]
vmovdqu32 zmmword [r10], zmm0
vmovdqu32 zmm4, zmmword [r12]
vpmaxsd zmm0, zmm4, zmmword [r11]
vmovdqu32 zmmword [r12], zmm0
vpminsd zmm1, zmm4, zmmword [r11]
vmovdqu32 zmmword [r11], zmm1
vmovdqu32 zmm3, zmmword [r13]
vpmaxsd zmm1, zmm3, zmmword [rcx]
vmovdqu32 zmmword [r13], zmm1
vpminsd zmm0, zmm3, zmmword [rcx]
vmovdqu32 zmmword [rcx], zmm0
mov rcx, qword [rsp + 0xf8]
mov qword [rsp + 0x38], r9
mov r9, r10
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x28], rdx
vmovdqu32 zmm4, zmmword [rcx]
vpmaxsd zmm0, zmm4, zmmword [rbx]
vmovdqu32 zmmword [rcx], zmm0
vpminsd zmm1, zmm4, zmmword [rbx]
vmovdqu32 zmmword [rbx], zmm1
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov rdx, qword [rsp + 0x88]
mov r8, r11
vzeroupper
call fcn.14005c370
mov rax, qword [rsp + 0xf8]
mov r9, r14
mov rcx, qword [rsp + 0xc0]
mov r8, rsi
mov qword [rsp + 0xb8], rax
mov rdx, rdi
mov qword [rsp + 0xb0], r13
mov qword [rsp + 0xa8], r12
mov qword [rsp + 0xa0], r15
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
jmp fcn.14005c370
Function at 0x1400605e0
Capabilities:
Parse pe header

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

Function at 0x140064ef0
Capabilities:
Parse pe header

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

Function at 0x140067fc0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov rbx, rcx
mov rsi, rdx
mov edi, r8d
mov qword [rbp - 0x40], r9
mov r14, r9
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov qword [rbp - 0x4c], rcx
mov rdx, rsi
mov qword [rbp - 0x54], rdx
mov r8d, edi
mov dword [rbp - 0x44], r8d
mov r9, r14
mov qword [rbp - 0x5c], r9
lea rcx, [rbp - 0x88]
call fcn.140002280
mov rcx, qword [rbp - 0x4c]
mov rdx, qword [rbp - 0x54]
mov r8d, dword [rbp - 0x44]
mov r9, qword [rbp - 0x5c]
call sub.KERNEL32.dll_WriteFile
mov ebx, eax
lea rcx, [rbp - 0x88]
call fcn.1400022d0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
call fcn.140001853
mov dword [rax + 0x60], esi
mov eax, ebx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x14009eae0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov rbx, rcx
mov rsi, rdx
mov edi, r8d
mov qword [rbp - 0x40], r9
mov r14, r9
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov qword [rbp - 0x4c], rcx
mov rdx, rsi
mov qword [rbp - 0x54], rdx
mov r8d, edi
mov dword [rbp - 0x44], r8d
mov r9, r14
mov qword [rbp - 0x5c], r9
lea rcx, [rbp - 0x88]
call fcn.140002280
mov rcx, qword [rbp - 0x4c]
mov rdx, qword [rbp - 0x54]
mov r8d, dword [rbp - 0x44]
mov r9, qword [rbp - 0x5c]
call sub.KERNEL32.dll_WriteFile
mov ebx, eax
lea rcx, [rbp - 0x88]
call fcn.1400022d0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
call fcn.140001853
mov dword [rax + 0x60], esi
mov eax, ebx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1400a7900
Capabilities:
Create process on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x198
lea rbp, [rsp + 0x1d0]
xorps xmm4, xmm4
movabs rax, 0xffffffffffffff10
movaps xmmword [rbp + rax - 0x40], xmm4
movaps xmmword [rbp + rax - 0x30], xmm4
movaps xmmword [rbp + rax - 0x20], xmm4
add rax, 0x30
jne 0x1400a7928
mov qword [rbp - 0x40], rax
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rbx, rcx
mov r14, rdx
mov r15, r8
mov r13, r9
mov r12, qword [rbp + 0x48]
mov rsi, qword [rbp + 0x50]
mov rcx, rbx
mov edx, 1
xor r8d, r8d
call fcn.1400950a0
mov qword [rbp - 0x40], rax
mov rcx, r14
mov edx, 1
xor r8d, r8d
call fcn.1400950a0
mov qword [rbp - 0x48], rax
xor r10d, r10d
cmp byte [rbp + 0x30], 0
setne r10b
mov dword [rbp - 0x4c], r10d
mov rcx, r12
mov edx, 1
xor r8d, r8d
call fcn.1400950a0
mov qword [rbp - 0x58], rax
lea rdi, [rbp - 0xb8]
mov qword [rbp + 0x50], rsi
mov ecx, 0xc
rep movsq qword [rdi], qword [rsi]
lea rcx, [rbp - 0xb8]
lea rdx, [rbp - 0x120]
call fcn.1400b6eb0
mov rdi, qword [rbp + 0x58]
mov qword [rbp - 0x128], rdi
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov ebx, dword [rbp - 0x4c]
mov dword [rsp + 0x20], ebx
mov ebx, dword [rbp + 0x38]
mov dword [rsp + 0x28], ebx
mov rbx, qword [rbp + 0x40]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rbp - 0x58]
mov qword [rsp + 0x38], rbx
lea rcx, [rbp - 0x120]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rdi
mov rcx, qword [rbp - 0x40]
mov qword [rbp - 0x138], rcx
mov rdx, qword [rbp - 0x48]
mov qword [rbp - 0x140], rdx
mov r8, r15
mov qword [rbp - 0x148], r8
mov r9, r13
mov qword [rbp - 0x150], r9
lea rcx, [rbp - 0x178]
call fcn.140002280
mov rcx, qword [rbp - 0x138]
mov rdx, qword [rbp - 0x140]
mov r8, qword [rbp - 0x148]
mov r9, qword [rbp - 0x150]
call sub.KERNEL32.dll_CreateProcessA
mov esi, eax
lea rcx, [rbp - 0x178]
call fcn.1400022d0
call fcn.140001853
mov rdi, rax
mov qword [rbp - 0x130], rdi
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [rbp - 0x130]
mov dword [rcx + 0x60], eax
xor r14d, r14d
test esi, esi
setne r14b
lea rcx, [rbp - 0x120]
lea rdx, [rbp - 0xb8]
call fcn.1400b6df0
mov rdi, qword [rbp + 0x50]
lea rsi, [rbp - 0xb8]
call fcn.1400021f0
call fcn.1400021f0
call fcn.1400021f0
mov ecx, 9
rep movsq qword [rdi], qword [rsi]
cmp qword [rbp + 0x10], 0
je 0x1400a7aee
mov r15, qword [rbp - 0x40]
test r15, 0xffffffffffff0000
je 0x1400a7aee
mov rcx, r15
call fcn.14009f370
cmp qword [rbp + 0x18], 0
je 0x1400a7b0a
mov r13, qword [rbp - 0x48]
test r13, 0xffffffffffff0000
je 0x1400a7b0a
mov rcx, r13
call fcn.14009f370
cmp qword [rbp + 0x48], 0
je 0x1400a7b22
test rbx, 0xffffffffffff0000
je 0x1400a7b22
mov rcx, rbx
call fcn.14009f370
lea rcx, [rbp - 0x120]
call fcn.1400b6d30
movzx eax, r14b
add rsp, 0x198
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1400a7c70
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xor eax, eax
mov qword [rbp - 0x58], rax
xorps xmm4, xmm4
movaps xmmword [rbp - 0x50], xmm4
mov qword [rbp - 0x40], rax
mov rbx, rcx
mov esi, r8d
test rdx, rdx
je 0x1400a7cb8
lea rcx, [rdx + 0x10]
cmp dword [rdx + 8], 0
cmove rcx, qword [rbp - 0x40]
mov qword [rbp - 0x40], rcx
mov rdi, qword [rbp - 0x40]
mov qword [rbp - 0x48], r9
mov r14, r9
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov qword [rbp - 0x60], rcx
mov rdx, rdi
mov qword [rbp - 0x68], rdx
mov r8d, esi
mov dword [rbp - 0x4c], r8d
mov r9, r14
mov qword [rbp - 0x70], r9
lea rcx, [rbp - 0x98]
call fcn.140002280
mov rcx, qword [rbp - 0x60]
mov rdx, qword [rbp - 0x68]
mov r8d, dword [rbp - 0x4c]
mov r9, qword [rbp - 0x70]
call sub.KERNEL32.dll_ReadFile
mov ebx, eax
lea rcx, [rbp - 0x98]
call fcn.1400022d0
call fcn.140001853
mov rsi, rax
mov qword [rbp - 0x58], rsi
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [rbp - 0x58]
mov dword [rcx + 0x60], eax
xor eax, eax
test ebx, ebx
setne al
movzx eax, al
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1800113f7
Capabilities:
Create thread

Disassembly:
jmp 0x18001cff0
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x30]
lea rcx, [0x18003205e]
call fcn.18001177b
mov eax, dword [rbp + 0xf8]
mov dword [rbp + 0xc0], eax
cmp dword [rbp + 0xc0], 0
je 0x18001d0b2
cmp dword [rbp + 0xc0], 1
je 0x18001d04e
cmp dword [rbp + 0xc0], 2
je 0x18001d0b2
cmp dword [rbp + 0xc0], 3
je 0x18001d0b2
jmp 0x18001d0c7
mov rcx, qword [rbp + 0xf0]
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov rax, qword [rbp + 0xf0]
mov qword [0x18002c4c8], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rbp + 0xf0]
lea r8, [0x18001173f]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x18002c4c0], rax
cmp qword [0x18002c4c0], 0
je 0x18001d0b0
mov rcx, qword [0x18002c4c0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18001d0c7
call qword [sym.imp.KERNEL32.dll_FreeConsole]
xor edx, edx
mov rcx, qword [rbp + 0xf0]
call qword [sym.imp.KERNEL32.dll_FreeLibraryAndExitThread]
mov eax, 1
lea rsp, [rbp + 0xd8]
pop rdi
pop rbp
ret

Function at 0x180011465
Capabilities:
Terminate process

Disassembly:
jmp 0x18001ed50
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 0x18001173a
Capabilities:
Allocate or change rwx memory

Disassembly:
jmp 0x18001a2c0
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x128]
mov rax, qword [0x18002c040]
xor rax, rbp
mov qword [rbp + 0xd8], rax
lea rcx, [0x180032008]
call fcn.18001177b
mov eax, dword [rbp + 0x110]
lea r9, [rbp + 4]
mov r8d, 0x40
mov edx, eax
mov rcx, qword [rbp + 0x100]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [rbp + 0x110]
mov r8d, eax
mov rdx, qword [rbp + 0x108]
mov rcx, qword [rbp + 0x100]
call fcn.1800113e3
mov eax, dword [rbp + 0x110]
lea r9, [rbp + 4]
mov r8d, dword [rbp + 4]
mov edx, eax
mov rcx, qword [rbp + 0x100]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rcx, [rbp - 0x20]
lea rdx, [0x1800274e0]
call fcn.18001164a
mov rcx, qword [rbp + 0xd8]
xor rcx, rbp
call fcn.1800113de
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x18001cad0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rdi
sub rsp, 0x278
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x66
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x18002c040]
xor rax, rbp
mov qword [rbp + 0x248], rax
lea rcx, [0x180032064]
call fcn.18001177b
lea rcx, str.C:_Windows_System32_version.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x18001cb2c
xor eax, eax
jmp 0x18001cca0
lea rax, sym.version.dll_GetFileVersionInfoA
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x28]
add rax, 0x198
mov qword [rbp + 0x68], rax
jmp 0x18001cb5b
mov rax, qword [rbp + 0x48]
add rax, 0x18
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x68]
cmp qword [rbp + 0x48], rax
je 0x18001cc9c
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x88]
mov rdx, qword [rax + 8]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x88]
mov rax, qword [rax]
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0xc8]
movzx eax, byte [rax]
cmp eax, 0xe9
jne 0x18001cbe1
mov rax, qword [rbp + 0xc8]
mov eax, dword [rax + 1]
mov dword [rbp + 0xe4], eax
mov eax, dword [rbp + 0xe4]
add eax, 5
cdqe
mov rcx, qword [rbp + 0xc8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0xc8], rax
mov byte [rbp + 0x108], 0xff
mov byte [rbp + 0x109], 0x25
mov byte [rbp + 0x10a], 0
mov byte [rbp + 0x10b], 0
mov byte [rbp + 0x10c], 0
mov byte [rbp + 0x10d], 0
lea rax, [rbp + 0x10e]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0x10e], rax
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0x178], rax
lea r9, [rbp + 0x134]
mov r8d, 0x40
mov edx, 0xe
mov rcx, qword [rbp + 0x178]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r9d, 0xe
lea r8, [rbp + 0x108]
mov edx, 0xe
mov rcx, qword [rbp + 0x178]
call fcn.18001d1e0
lea r9, [rbp + 0x154]
mov r8d, dword [rbp + 0x134]
mov edx, 0xe
mov rcx, qword [rbp + 0x178]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x18001cb4f
mov rax, qword [rbp + 8]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x180026d40]
call fcn.18001164a
mov rax, rdi
mov rcx, qword [rbp + 0x248]
xor rcx, rbp
call fcn.1800113de
lea rsp, [rbp + 0x258]
pop rdi
pop rbp
ret
Function at 0x225a41420
Capabilities:
Access peb ldr_data

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x18]
mov rbx, rdx
mov rax, qword [rax + 0x20]
mov rsi, qword [rax]
mov r11, qword [rsi - 0x10]
lea r10, [rsi - 0x10]
cmp r11, rsi
je 0x225a4149c
nop dword [rax]
mov rax, qword [r10 + 0x60]
lea rcx, [rax + 2]
movzx eax, word [rax]
test ax, ax
je 0x225a41491
mov edx, 0xe0e
nop dword [rax]
mov r9d, edx
add rcx, 2
shl r9d, 6
add edx, r9d
add edx, eax
movzx eax, word [rcx - 2]
test ax, ax
jne 0x225a41470
cmp edx, 0x18cf5f14
je 0x225a414ae
mov r10, r11
mov r11, qword [r10]
cmp r11, rsi
jne 0x225a41458
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov eax, dword [r10 + 0x40]
mov r12, qword [r10 + 0x30]
mov r13d, eax
sub r13d, r8d
cmp eax, r8d
je 0x225a4149c
mov ebp, r8d
xor esi, esi
nop word cs:[rax + rax]
lea rdi, [r12 + rsi]
mov r8, rbp
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x225a4149e
add rsi, 1
cmp esi, r13d
jb 0x225a414d0
jmp 0x225a4149c