joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402b8a60
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov ebx, ecx
mov dword [rsp + 0x60], 0
xor ecx, ecx
mov dword [rsp + 0x68], 2
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1402b8ac2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1402b8ac2
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
jne 0x1402b8ac2
mov eax, 0x20b
cmp word [rdx + 0x18], ax
jne 0x1402b8ac2
cmp dword [rdx + 0x84], 0xe
jbe 0x1402b8ac2
cmp dword [rdx + 0xf8], 0
je 0x1402b8ac2
mov ecx, ebx
call fcn.1402b8920
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x1403554a0]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.1402b87a0
cmp dword [rsp + 0x60], 0
jne 0x1402b8b05
mov ecx, ebx
call fcn.1402b88d0
int3
add rsp, 0x40
pop rbx
ret

Function at 0x1402b8b50
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
xor eax, eax
mov ebx, ecx
xor ecx, ecx
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x68], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1402b8bac
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1402b8bac
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1402b8bac
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1402b8bac
cmp dword [rcx + 0x84], 0xe
jbe 0x1402b8bac
cmp dword [rcx + 0xf8], 0
je 0x1402b8bac
mov ecx, ebx
call fcn.1402b8920
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x1403554a0]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.1402b87a0
cmp dword [rsp + 0x60], 0
jne 0x1402b8bef
mov ecx, ebx
call fcn.1402b88d0
int3
add rsp, 0x40
pop rbx
ret
Function at 0x1402b9460
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x4f0]
sub rsp, 0x5f0
mov rax, qword [0x140348080]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1402b949c
mov ecx, 5
int 0x29
mov ecx, 2
call fcn.14013460c
xorps xmm0, xmm0
lea rcx, [rbp + 0x10]
xor eax, eax
xor edx, edx
mov r8d, 0x4d0
mov qword [rbp], rax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0x10]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rbp + 0x108]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x1402b9558
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], 0
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov rax, qword [rbp + 0x4f8]
mov qword [rbp + 0x108], rax
lea rax, [rbp + 0x4f8]
add rax, 8
mov dword [rsp + 0x70], 0xc0000417
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x4f8]
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x74], 1
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x1402b95be
test ebx, ebx
jne 0x1402b95be
lea ecx, [rax + 2]
call fcn.14013460c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.1402c6c80
mov rbx, qword [rsp + 0x600]
add rsp, 0x5f0
pop rbp
ret
Function at 0x1402c2d90
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x430
mov rax, qword [0x140348080]
xor rax, rsp
mov qword [rsp + 0x420], rax
mov rbp, rdx
mov rdi, rcx
cmp rcx, rdx
je 0x1402c2ed1
lea r14, [0x140000000]
mov r15d, 0x5c
xor r12d, r12d
nop word [rax + rax]
mov eax, dword [rdi]
lea rsi, [r14 + 0x3554f0]
mov rbx, qword [rsi + rax*8]
lea rsi, [rsi + rax*8]
nop
test rbx, rbx
je 0x1402c2e06
cmp rbx, 0xffffffffffffffff
jne 0x1402c2f13
jmp 0x1402c2ec4
cmp byte [0x1403554e8], r12b
mov rbx, qword [r14 + rax*8 + 0x319ae0]
je 0x1402c2e25
mov r8d, 0x800
mov rcx, rbx
jmp 0x1402c2eaa
test rbx, rbx
je 0x1402c2eba
cmp word [rbx], r12w
je 0x1402c2eba
mov edx, 0x200
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [rax - 1]
cmp ecx, 0x1fe
ja 0x1402c2eba
mov ecx, eax
inc eax
mov word [rsp + rcx*2 + 0x20], r15w
cmp eax, 0x200
jae 0x1402c2eba
movzx edx, word [rbx]
test dx, dx
je 0x1402c2e8b
nop dword [rax]
mov word [rsp + rax*2 + 0x20], dx
inc eax
cmp eax, 0x200
jae 0x1402c2eba
movzx edx, word [rbx + 2]
add rbx, 2
test dx, dx
jne 0x1402c2e70
mov ecx, eax
add rcx, rcx
cmp rcx, 0x400
jae 0x1402c2f18
mov word [rsp + rcx + 0x20], r12w
mov r8d, 8
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
jne 0x1402c2eff
mov rax, 0xffffffffffffffff
xchg qword [rsi], rax
add rdi, 4
cmp rdi, rbp
jne 0x1402c2de0
xor eax, eax
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.1402c6c80
lea r11, [rsp + 0x430]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov rcx, rbx
xchg qword [rsi], rcx
test rcx, rcx
je 0x1402c2f13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, rbx
jmp 0x1402c2ed3
call fcn.1402c6ed0
int3

Function at 0x1402c2f20
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov r9, qword [0x140355520]
mov rdi, rcx
nop
mov ebx, edx
mov rax, qword [0x140348080]
xor r9, rax
mov ecx, eax
and ecx, 0x3f
ror r9, cl
cmp r9, 0xffffffffffffffff
je 0x1402c2feb
test r9, r9
jne 0x1402c2fb2
lea rdx, [0x140319b34]
lea rcx, [0x140319b30]
call fcn.1402c2d90
test rax, rax
je 0x1402c2fc4
lea rdx, str.SystemFunction036
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r9, rax
test rax, rax
je 0x1402c2fc4
mov r8, qword [0x140348080]
mov r10d, 0x40
mov ecx, r8d
mov rdx, rax
and ecx, 0x3f
sub r10d, ecx
movzx ecx, r10b
ror rdx, cl
xor rdx, r8
xchg qword [0x140355520], rdx
mov edx, ebx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp r9
mov rdx, qword [0x140348080]
mov ecx, 0x40
mov eax, edx
and eax, 0x3f
sub ecx, eax
mov rax, 0xffffffffffffffff
ror rax, cl
xor rax, rdx
xchg qword [0x140355520], rax
call sub.msvcrt.dll_abort
int3
Function at 0x1400578c0
Capabilities:
Parse pe header

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

Function at 0x14005c708
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 0x14005c777
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14005c777
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14005c777
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14005c777
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14005c777
cmp dword [rcx + 0x84], 0xe
jbe 0x14005c777
cmp dword [rcx + 0xf8], 0
je 0x14005c777
mov ecx, ebx
call fcn.14005c828
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.14005c604
nop
cmp dword [rbp + 0x20], 0
je 0x14005c7c5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14005c7d0
int3
xor r8d, r8d
xor edx, edx
jmp 0x14005c708

Function at 0x14005c90c
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 0x14005c777
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14005c777
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14005c777
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14005c777
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14005c777
cmp dword [rcx + 0x84], 0xe
jbe 0x14005c777
cmp dword [rcx + 0xf8], 0
je 0x14005c777
mov ecx, ebx
call fcn.14005c828
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.14005c604
nop
cmp dword [rbp + 0x20], 0
je 0x14005c7c5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14005c7d0
int3
xor r8d, r8d
xor edx, edx
jmp 0x14005c708
Function at 0x140064374
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14006438a
mov al, 1
jmp 0x1400643ea
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14006439b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400643e8
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400691cc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400643e8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400643e8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400643e8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400643ea
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140068900
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140068930
xor eax, eax
jmp 0x1400689f3
mov rbp, rbx
cmp word [rax], si
je 0x140068955
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14006893c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140068938
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140067048
movsxd r14, eax
test eax, eax
jne 0x140068993
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140068929
mov rcx, r14
call fcn.1400620dc
mov rdi, rax
test rax, rax
jne 0x1400689ac
xor ecx, ecx
call fcn.14006213c
jmp 0x140068988
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140067048
test eax, eax
jne 0x1400689dd
mov rcx, rdi
call fcn.14006213c
jmp 0x1400689e7
xor ecx, ecx
call fcn.14006213c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14006b720
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140063254
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14006b7c1
cmp ebx, dword [rsp + 0x30]
je 0x14006b7ba
test esi, esi
je 0x14006b7ba
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14006b795
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14006b7a2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14006b77f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14006b7a6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14006b7c3
mov eax, 1
jmp 0x14006b7c3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14006ce54
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, [0x1402ec5f0]
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 0x14006ceab
cmp word [rdx], r13w
jne 0x14006ceab
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14006ceb0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14006cfd5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14006cff6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14006cee9
mov rdx, r9
mov word [rbx], cx
jmp 0x14006cf10
cmp r9, r8
jae 0x14006cf20
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 0x14006ceca
jmp 0x14006cfd5
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 0x14006cfca
cmp dword [rsp + 0x80], esi
je 0x14006cfca
lea r8, [0x1402ec5f0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14006cfa2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14006cf72
mov word [rbx], r13w
jmp 0x14006cfd2
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 0x14006cf7f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14006cfd2
cmp word [rsp + 0x70], r13w
jne 0x14006cfaf
cmp rbx, r14
je 0x14006cf6c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14006cb8c
cmp word [rsp + 0x70], r13w
je 0x14006cfd5
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, [0x1402ec5f0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14006cfcf
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14006cfd5
Function at 0x14006e918
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14006cb8c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14006cb8c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14006ea68
cmp rax, 0xffffffffffffffff
je 0x14006ea68
xor edi, edi
test rbp, rbp
jle 0x14006ea13
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400651bc
mov rbx, rax
test rax, rax
jne 0x14006e9a0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14006ea09
mov edx, 0x8000
mov ecx, r14d
call fcn.1400604cc
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140063f74
cmp eax, 0xffffffff
je 0x14006e9e9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14006e9b0
mov edx, r15d
mov ecx, r14d
call fcn.1400604cc
jmp 0x14006ea09
cmp byte [rsi + 0x38], dil
je 0x14006ea00
cmp dword [rsi + 0x34], 5
jne 0x14006ea00
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14006ea09
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14006213c
jmp 0x14006ea7c
jns 0x14006ea7c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14006cb8c
cmp rax, 0xffffffffffffffff
jne 0x14006ea34
cmp byte [rsi + 0x30], dil
je 0x14006ea7c
mov edi, dword [rsi + 0x2c]
jmp 0x14006ea7c
mov ecx, r14d
call fcn.1400691cc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14006ea7c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14006ea7c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14006ea75
mov eax, dword [rsi + 0x2c]
jmp 0x14006ea7a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14006cb8c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14006f8d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14006f8f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14006f8f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14017b320
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1402d8040]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r9, rcx
lea rdi, [rsp + 0x30]
xor eax, eax
mov ebx, 0x40
cmp edx, ebx
mov ecx, ebx
rep stosb byte [rdi], al
cmovbe ebx, edx
lea rcx, [rsp + 0x30]
movsxd rdi, ebx
mov rdx, r9
mov r8, rdi
call fcn.14021ba00
xor r10d, r10d
test ebx, ebx
jle 0x14017b38c
mov edx, r10d
movzx eax, byte [rsp + rdx + 0x30]
lea ecx, [rax - 0x41]
cmp cl, 0x19
ja 0x14017b384
add al, 0x20
mov byte [rsp + rdx + 0x30], al
inc rdx
cmp rdx, rdi
jl 0x14017b371
lea rdx, [rsp + 0x30]
mov r9d, 0xb801fcda
mov r8d, ebx
cmp ebx, 4
jl 0x14017b3d7
mov edi, ebx
shr rdi, 2
mov eax, edi
neg eax
lea r8d, [rbx + rax*4]
nop dword [rax]
imul eax, dword [rdx], 0x5bd1e995
add rdx, 4
imul r9d, r9d, 0x5bd1e995
mov ecx, eax
shr ecx, 0x18
xor ecx, eax
imul ecx, ecx, 0x5bd1e995
xor r9d, ecx
sub rdi, 1
jne 0x14017b3b0
sub r8d, 1
je 0x14017b3fc
sub r8d, 1
je 0x14017b3f2
cmp r8d, 1
jne 0x14017b402
movzx r10d, byte [rdx + 2]
shl r10d, 0x10
movzx eax, byte [rdx + 1]
shl eax, 8
xor r10d, eax
movzx eax, byte [rdx]
xor r10d, eax
imul ecx, r10d, 0x5bd1e995
imul edi, ebx, 0x5bd1e995
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e995
imul eax, r9d, 0x5bd1e995
xor ecx, eax
mov eax, edi
shr eax, 0x18
xor eax, edi
imul edx, ecx, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor edx, eax
mov eax, edx
shr eax, 0xd
xor eax, edx
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xf
xor eax, ecx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140056ab0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
ret
Function at 0x14021b2a0
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ecx, pe_nt_image_headers64
call fcn.140056d78
xor edx, edx
mov r8d, pe_nt_image_headers64
mov rcx, rax
mov rbx, rax
call fcn.14021b640
movdqa xmm2, xmmword [0x1402cf800]
lea rdx, [rbx + 8]
movdqa xmm3, xmmword [0x1402cf810]
mov ecx, 8
nop word [rax + rax]
lea eax, [rcx - 8]
movd xmm0, eax
lea rdx, [rdx + 0x10]
pshufd xmm0, xmm0, 0
lea eax, [rcx - 4]
paddd xmm0, xmm2
movd xmm1, eax
pshufd xmm1, xmm1, 0
lea eax, [rcx + 4]
paddd xmm1, xmm2
andps xmm0, xmm3
andps xmm1, xmm3
packuswb xmm0, xmm0
packuswb xmm1, xmm1
packuswb xmm0, xmm0
movd dword [rdx - 0x18], xmm0
packuswb xmm1, xmm1
movd dword [rdx - 0x14], xmm1
movd xmm0, ecx
add ecx, 0x10
pshufd xmm0, xmm0, 0
paddd xmm0, xmm2
movd xmm1, eax
pshufd xmm1, xmm1, 0
andps xmm0, xmm3
paddd xmm1, xmm2
packuswb xmm0, xmm0
andps xmm1, xmm3
packuswb xmm0, xmm0
movd dword [rdx - 0x10], xmm0
lea eax, [rcx - 8]
packuswb xmm1, xmm1
packuswb xmm1, xmm1
movd dword [rdx - 0xc], xmm1
cmp eax, 0x100
jl 0x14021b2f0
xor r10d, r10d
mov r11, rbx
mov r9d, r10d
mov edi, r10d
mov ebp, pe_nt_image_headers64
nop dword [rax]
nop word [rax + rax]
mov r8, qword [0x1402ecbb0]
xor edx, edx
mov rcx, qword [0x1402ecbb8]
mov rax, rdi
movzx esi, byte [r11]
sub rcx, r8
div rcx
movzx eax, byte [rdx + r8]
add r9d, eax
add r9d, esi
and r9d, 0x800000ff
jge 0x14021b3de
dec r9d
or r9d, 0xffffff00
inc r9d
movsxd rcx, r9d
inc rdi
movzx eax, byte [rcx + rbx]
mov byte [r11], al
inc r11
mov byte [rcx + rbx], sil
sub rbp, 1
jne 0x14021b3a0
mov eax, r10d
lea rdi, [0x1402d8c90]
mov r11, r10
nop word [rax + rax]
lea ecx, [r10 + 1]
and ecx, 0x800000ff
jge 0x14021b426
dec ecx
or ecx, 0xffffff00
inc ecx
movsxd r10, ecx
movzx r8d, byte [r10 + rbx]
add eax, r8d
and eax, 0x800000ff
jge 0x14021b441
dec eax
or eax, 0xffffff00
inc eax
movsxd rdx, eax
movzx ecx, byte [rdx + rbx]
mov byte [r10 + rbx], cl
mov byte [rdx + rbx], r8b
movzx ecx, byte [r10 + rbx]
add r8, rcx
movzx r8d, r8b
movzx r9d, byte [r8 + rbx]
xor byte [r11 + rdi], r9b
inc r11
cmp r11, 0x1200
jl 0x14021b410
test rbx, rbx
je 0x14021b483
mov edx, pe_nt_image_headers64
mov rcx, rbx
call fcn.140056ff4
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret