joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140072650
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov rax, qword [0x140107080]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x78], 0
lea r9, [rsp + 0x78]
mov r8d, dword [rsp + 0x78]
mov rdx, qword [rsp + 0x28]
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xc0000004
jne 0x1400726f9
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [rsp + 0x78]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x78]
mov r8d, dword [rsp + 0x78]
mov rdx, qword [rsp + 0x28]
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x30], eax
jmp 0x14007269d
cmp dword [rsp + 0x30], 0
jge 0x14007271a
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x140072882
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x24], 0
jmp 0x140072738
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
cmp dword [rsp + 0x24], eax
jae 0x14007286d
mov eax, dword [rsp + 0x24]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 8]
mov ecx, dword [rsp + 0x24]
imul rcx, rcx, 0x128
mov rdx, qword [rsp + 0x38]
movzx ecx, word [rdx + rcx + 0x2e]
lea rax, [rax + rcx + 0x28]
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.14007fda0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x18], 0xf
jbe 0x1400727b5
mov dword [rsp + 0x34], 1
jmp 0x1400727bd
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x1400727e6
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x60]
call fcn.1400c485c
test eax, eax
jne 0x14007285b
mov eax, dword [rsp + 0x24]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx + rax + 0x18]
mov qword [rsp + 0x68], rax
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x80]
call fcn.140082350
mov rax, qword [rsp + 0x70]
jmp 0x140072882
lea rcx, [rsp + 0x80]
call fcn.140082350
jmp 0x14007272e
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400b8f90
add rsp, 0xb8
ret
Function at 0x140076bc0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2a0
mov rax, qword [0x140107080]
xor rax, rsp
mov qword [rsp + 0x290], rax
lea rax, [rsp + 0x38]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rax, [rsp + 0x2a8]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0
movabs rax, 0xff00ff00ff00ff00
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x48]
mov qword [rax], 0
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x238
rep stosb byte [rdi], al
mov dword [rsp + 0x50], 0x238
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
lea rdx, [rsp + 0x7c]
mov rcx, qword [rsp + 0x2b0]
call fcn.14007edc0
test eax, eax
jne 0x140076cdb
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x2b0]
call fcn.140081e00
mov eax, dword [rsp + 0x20]
jmp 0x140076d2a
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140076c88
mov dword [rsp + 0x24], 0
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x2b0]
call fcn.140081e00
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1400b8f90
add rsp, 0x2a0
pop rdi
ret
Function at 0x140076d50
Capabilities:
Enumerate threads

Disassembly:
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x80
mov rax, qword [0x140107080]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x38]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rax, [rsp + 0x88]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0
movabs rax, 0xff00ff00ff00ff00
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x48]
mov qword [rax], 0
xor edx, edx
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x1c
rep stosb byte [rdi], al
mov dword [rsp + 0x50], 0x1c
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Thread32First]
mov eax, dword [rsp + 0x90]
cmp dword [rsp + 0x5c], eax
jne 0x140076e51
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
mov qword [rax], rcx
mov eax, dword [rsp + 0x20]
jmp 0x140076e93
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x140076e14
mov dword [rsp + 0x24], 0
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
mov qword [rax], rcx
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400b8f90
add rsp, 0x80
pop rdi
ret

Function at 0x140077660
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov qword [rsp], rax
jmp 0x1400776a2
mov rax, qword [rsp]
add rax, 0x28
mov qword [rsp], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 6]
imul rax, rax, 0x28
mov rcx, qword [rsp + 8]
add rcx, rax
mov rax, rcx
cmp qword [rsp], rax
jae 0x140077710
mov rax, qword [rsp]
mov eax, dword [rax + 0xc]
cmp qword [rsp + 0x20], rax
jb 0x14007770e
mov rax, qword [rsp]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp]
add eax, dword [rcx + 8]
mov eax, eax
cmp qword [rsp + 0x20], rax
jae 0x14007770e
mov rax, qword [rsp]
mov eax, dword [rax + 0x14]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x20]
sub rdx, rcx
mov rcx, rdx
add rax, rcx
jmp 0x140077712
jmp 0x140077696
xor eax, eax
add rsp, 0x18
ret
Function at 0x140077790
Capabilities:
Enumerate pe sections

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x20]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 8], rax
mov dword [rsp], 0
jmp 0x1400777d4
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov rax, qword [rsp + 8]
add rax, 0x28
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 6]
cmp dword [rsp], eax
jge 0x14007780f
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x28], eax
jb 0x14007780d
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 8]
add eax, dword [rcx + 8]
cmp dword [rsp + 0x28], eax
jae 0x14007780d
mov rax, qword [rsp + 8]
jmp 0x140077811
jmp 0x1400777be
xor eax, eax
add rsp, 0x18
ret

Function at 0x140077be0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x70]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x20], 0
jmp 0x140077c2d
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
add rax, 0x28
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x20], eax
jge 0x140077cc8
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 8]
cmp dword [rax + 0x10], ecx
jae 0x140077c60
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x24], eax
jmp 0x140077c6c
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 8]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jne 0x140077c7d
jmp 0x140077c15
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x14]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x28]
mov r8d, eax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call fcn.1400770b0
jmp 0x140077c15
mov al, 1
add rsp, 0x58
ret
Function at 0x140078f80
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xf0
mov rax, qword [0x140107080]
xor rax, rsp
mov qword [rsp + 0xe8], rax
lea rax, [0x1400f5754]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x28], 0xffffffffffffffff
inc qword [rsp + 0x28]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
cmp byte [rax + rcx], 0
jne 0x140078fb4
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
mov r9, qword [rsp + 0x50]
lea r8, [0x1400f5754]
xor edx, edx
mov rcx, qword [rsp + 0x100]
call fcn.140082cf0
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x70
rep stosb byte [rdi], al
mov dword [rsp + 0x70], 0x70
mov dword [rsp + 0x74], 0x40
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
lea rax, str.cmd.exe
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x18], 0xf
jbe 0x14007906a
mov dword [rsp + 0x24], 1
jmp 0x140079072
mov dword [rsp + 0x24], 0
movzx eax, byte [rsp + 0x24]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x14007909b
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], 0
mov dword [rsp + 0xa0], 0
mov qword [rsp + 0xa8], 0
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x140079101
mov edx, 0xffffffff
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0xe0]
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0x100]
call fcn.140082350
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.1400b8f90
add rsp, 0xf0
pop rdi
ret
Function at 0x140090e00
Capabilities:
Enumerate pe sections

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov r14, rcx
add rcx, 0x18
call fcn.14007bd80
mov rax, qword [r14 + 0x38]
lea rcx, [r14 + 0x18]
mov ebx, dword [rax + 0x50]
call fcn.140081340
mov rdi, qword [r14 + 0x20]
mov rsi, rax
mov rdx, qword [r14 + 0x18]
mov rcx, rdi
sub rcx, rdx
cmp rbx, rcx
jae 0x140090e65
add rbx, rdx
lea rcx, [r14 + 0x18]
mov rdx, rbx
mov r8, rdi
call fcn.140088e60
mov rdx, qword [r14 + 0x20]
mov r8, rsi
mov rcx, rbx
call fcn.140088e60
mov qword [r14 + 0x20], rbx
jmp 0x140090ea2
jbe 0x140090ea2
mov rax, qword [r14 + 0x28]
sub rax, rdx
cmp rbx, rax
jbe 0x140090e81
mov rdx, rbx
lea rcx, [r14 + 0x18]
call fcn.140091320
jmp 0x140090ea2
sub rbx, rcx
mov rcx, rdi
mov rdx, rbx
call fcn.1400913f0
mov r8, rdi
mov qword [r14 + 0x20], rax
mov rdx, rdi
lea rcx, [r14 + 0x18]
call fcn.140088e60
mov rax, qword [r14 + 0x18]
lea rdx, [r14 + 0x18]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
call fcn.14006f8a0
mov rax, qword [r14 + 0x38]
lea rcx, [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
mov rdx, r14
mov esi, dword [rax + 0x54]
mov rax, qword [r14]
mov qword [rsp + 0x28], rax
call fcn.14006f8a0
test esi, esi
je 0x140090f02
mov rcx, qword [rsp + 0x28]
call fcn.14007c1f0
mov rcx, rbx
mov rdi, rax
call fcn.14007c1f0
lea rdx, [rdi + rsi]
mov r8, rax
mov rcx, rdi
call fcn.1400905d0
mov rax, qword [r14 + 0x38]
xor esi, esi
cmp si, word [rax + 6]
jae 0x140090fb7
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], r12
mov r12d, esi
nop
mov rdi, qword [r14 + 0x40]
lea rcx, [r14 + 0x18]
call fcn.14007bd50
mov rax, qword [r14 + 0x18]
lea rdx, [r14 + 0x18]
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x28], rax
call fcn.14006f8a0
mov rax, qword [r14]
lea rcx, [rsp + 0x20]
mov ebx, dword [rdi + r12 + 0xc]
mov rdx, r14
add rbx, qword [rsp + 0x28]
mov ebp, dword [rdi + r12 + 0x10]
mov qword [rsp + 0x20], rax
call fcn.14006f8a0
mov ecx, dword [rdi + r12 + 0x14]
add rcx, qword [rsp + 0x20]
test ebp, ebp
je 0x140090f95
call fcn.14007c1f0
mov rcx, rbx
mov rdi, rax
call fcn.14007c1f0
lea rdx, [rdi + rbp]
mov r8, rax
mov rcx, rdi
call fcn.1400905d0
mov rax, qword [r14 + 0x38]
inc rsi
add r12, 0x28
movzx ecx, word [rax + 6]
cmp rsi, rcx
jb 0x140090f20
mov r12, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret

Function at 0x140091470
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, 7
syscall
ret
Function at 0x140091618
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140091652
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140091657
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400916a0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400e8660]
cmp byte [rcx + rax], 0
je 0x1400916a0
dec r8
sub rdx, 1
jne 0x140091686
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140091a10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.140091730
mov ebx, eax
test eax, eax
jne 0x140091a40
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x140091a9c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140091a93
test al, 0x10
je 0x140091a93
bt eax, 0xa
jae 0x140091a8c
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.140091ab4
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x140091a88
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140091aac
test edi, edi
jne 0x140091a93
and dword [rsp + 0x3c], 0
jmp 0x140091a98
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.1400c6134
int3

Function at 0x1400ae410
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x14009ab5a
movzx eax, byte [rcx + rdx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x14009ab3d
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x14009ab28

Function at 0x1400b9d44
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400c077b
call fcn.1400c59ec
mov dword [rax], 0x16
call fcn.1400c5540
xor eax, eax
jmp 0x1400c0809
mov rdx, r9
mov rcx, r8
call fcn.1400c06e0
mov rbx, rax
test rax, rax
je 0x1400c0806
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400c060c]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400c07f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400c5960
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400c07da
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400c07e9
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400d1348
jmp 0x1400c0806
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400c0803
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1400cd9f0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400cd7ec

Function at 0x1400d083c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400d0852
mov al, 1
jmp 0x1400d08b2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400d0863
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400d08b0
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400dc2bc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400d08b0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400d08b0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400d08b0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400d08b2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400d5980
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.1400b98c0
sub rsp, rax
mov rax, qword [0x140107080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400d071c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400d59cf
mov rax, rbp
jmp 0x1400d5ad7
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 + 0x10a770]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400d68cc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x10a770]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400d5ad3
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 0x1400d5ad3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400d68cc
test rax, rax
js 0x1400d5ad3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400d5ad3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400d5ac5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400d5ac5
cmp byte [rcx], 0xd
jne 0x1400d5aab
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400d5aba
cmp byte [rcx + 1], 0xa
jne 0x1400d5aba
inc rcx
jmp 0x1400d5aba
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1074c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400d5a8d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400d5ad7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400b8f90
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 0x1400d5c6c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14010a770]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400d5cc3
cmp word [rdx], r13w
jne 0x1400d5cc3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400d5cc8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400d5ded
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400d5e0e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400d5d01
mov rdx, r9
mov word [rbx], cx
jmp 0x1400d5d28
cmp r9, r8
jae 0x1400d5d38
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400d5ce2
jmp 0x1400d5ded
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400d5de2
cmp dword [rsp + 0x80], esi
je 0x1400d5de2
lea r8, [0x14010a770]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400d5dba
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400d5d8a
mov word [rbx], r13w
jmp 0x1400d5dea
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400d5d97
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400d5dea
cmp word [rsp + 0x70], r13w
jne 0x1400d5dc7
cmp rbx, r14
je 0x1400d5d84
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400d68d4
cmp word [rsp + 0x70], r13w
je 0x1400d5ded
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14010a770]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400d5de7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400d5ded