joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ad22550
Capabilities:
Parse pe header
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xb0
mov rax, qword [0x4ad2e1c8]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xor edi, edi
xor r9d, r9d
mov edx, 0x80000000
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 1]
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x4ad22719
lea r9, [rsp + 0x44]
lea r8d, [rdi + 0x40]
lea rdx, [rsp + 0x60]
mov rcx, rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
je 0x4ad225e7
cmp dword [rsp + 0x44], 0x40
jne 0x4ad225e7
mov ecx, 0x5a4d
mov eax, edi
cmp cx, word [rsp + 0x60]
sete al
jmp 0x4ad225e9
mov eax, edi
cmp eax, edi
je 0x4ad22710
mov edx, dword [rsp + 0x9c]
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, edi
cmp eax, 0xffffffff
setne cl
cmp ecx, edi
je 0x4ad22710
lea r9, [rsp + 0x44]
lea rdx, [rsp + 0x40]
mov r8d, 4
mov rcx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
je 0x4ad2264f
cmp dword [rsp + 0x44], 4
jne 0x4ad2264f
cmp dword [rsp + 0x40], 0x4550
mov eax, edi
sete al
jmp 0x4ad22651
mov eax, edi
cmp eax, edi
je 0x4ad22710
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov r8d, 0x14
mov rcx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
je 0x4ad22710
cmp dword [rsp + 0x40], 0x14
jne 0x4ad22710
cmp word [rsp + 0x58], di
jbe 0x4ad22710
movzx ebx, word [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
cmp rax, rdi
je 0x4ad22710
movzx ebp, word [rsp + 0x58]
lea r9, [rsp + 0x40]
mov rdx, rax
mov rcx, rsi
mov r8d, ebp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
je 0x4ad226fc
cmp ebp, dword [rsp + 0x40]
jne 0x4ad226fc
movzx eax, word [rsp + 0x48]
cmp eax, 0x14c
je 0x4ad226f0
cmp eax, 0x8664
jne 0x4ad226fc
lea rax, [rbx + 0x44]
cmp rax, rdi
je 0x4ad226fc
mov di, word [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, di
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call entry0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140004804
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x330]
sub rsp, 0x430
mov rax, qword [0x14003a060]
xor rax, rsp
mov qword [rbp + 0x320], rax
mov rbx, rdx
mov edi, ecx
call fcn.140004abc
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140004a94
movzx ecx, byte [rbx + 0xf]
shl rcx, 8
cmp byte [0x14003ad40], 0
je 0x140004a35
movzx eax, byte [rbx + 0xa]
movzx edx, byte [rbx + 0xb]
shl rdx, 8
or rdx, rax
movzx eax, byte [rbx + 9]
shl rdx, 8
or rdx, rax
movzx eax, byte [rbx + 8]
shl rdx, 8
or rdx, rax
movzx eax, byte [rbx + 0xe]
or rcx, rax
movzx eax, byte [rbx + 0xd]
shl rcx, 8
or rcx, rax
movzx eax, byte [rbx + 0xc]
shl rcx, 8
or rcx, rax
shl rcx, 0x20
or rdx, rcx
jl 0x140004a94
xor r8d, r8d
mov ecx, edi
call fcn.140016754
test rax, rax
js 0x140004a94
mov r8d, 0x400
lea rdx, [rsp + 0x20]
mov ecx, edi
call fcn.140019e24
test eax, eax
js 0x140004a94
movzx eax, byte [rsp + 0x22]
movzx ecx, byte [rsp + 0x23]
shl ecx, 8
or ecx, eax
movzx eax, byte [rsp + 0x21]
shl ecx, 8
or ecx, eax
movzx eax, byte [rsp + 0x20]
shl ecx, 8
or ecx, eax
cmp ecx, 0x6064b50
jne 0x140004a94
movzx eax, byte [rsp + 0x56]
movzx edx, byte [rsp + 0x57]
movzx r8d, byte [rsp + 0x53]
shl edx, 8
or edx, eax
shl r8d, 8
movzx eax, byte [rsp + 0x55]
shl edx, 8
or edx, eax
movzx eax, byte [rsp + 0x54]
shl edx, 8
or rdx, rax
movzx eax, byte [rsp + 0x52]
or r8d, eax
shl rdx, 0x20
movzx eax, byte [rsp + 0x51]
shl r8d, 8
or r8d, eax
movzx eax, byte [rsp + 0x50]
shl r8d, 8
or r8, rax
or rdx, r8
jl 0x140004a94
xor r8d, r8d
mov ecx, edi
call fcn.140016754
test rax, rax
js 0x140004a94
movzx eax, byte [rsp + 0x4e]
mov r8, 0xffffffffffffffc8
movzx edx, byte [rsp + 0x4f]
movzx ecx, byte [rsp + 0x4b]
shl rdx, 8
or rdx, rax
shl rcx, 8
movzx eax, byte [rsp + 0x4d]
shl rdx, 8
or rdx, rax
movzx eax, byte [rsp + 0x4c]
shl rdx, 8
or rdx, rax
movzx eax, byte [rsp + 0x4a]
or rcx, rax
shl rdx, 0x20
movzx eax, byte [rsp + 0x49]
shl rcx, 8
or rcx, rax
movzx eax, byte [rsp + 0x48]
shl rcx, 8
or rcx, rax
movzx eax, byte [rsp + 0x56]
or rdx, rcx
movzx ecx, byte [rsp + 0x53]
sub r8, rdx
shl rcx, 8
movzx edx, byte [rsp + 0x57]
shl rdx, 8
or rdx, rax
movzx eax, byte [rsp + 0x55]
shl rdx, 8
or rdx, rax
movzx eax, byte [rsp + 0x54]
shl rdx, 8
or rdx, rax
movzx eax, byte [rsp + 0x52]
or rcx, rax
shl rdx, 0x20
movzx eax, byte [rsp + 0x51]
shl rcx, 8
or rcx, rax
movzx eax, byte [rsp + 0x50]
shl rcx, 8
or rcx, rax
or rdx, rcx
sub r8, rdx
add rsi, r8
jmp 0x140004a8f
movzx eax, byte [rbx + 0x12]
xor r8d, r8d
movzx edx, byte [rbx + 0x13]
shl rdx, 8
or rdx, rax
movzx eax, byte [rbx + 0x11]
shl rdx, 8
or rdx, rax
movzx eax, byte [rbx + 0x10]
shl rdx, 8
or rdx, rax
movzx eax, byte [rbx + 0xe]
or rcx, rax
movzx eax, byte [rbx + 0xd]
shl rcx, 8
or rcx, rax
movzx eax, byte [rbx + 0xc]
shl rcx, 8
or rcx, rax
add rcx, rdx
sub rsi, rcx
mov ecx, edi
add rdx, rsi
call fcn.140016754
test rax, rax
js 0x140004a94
mov rax, rsi
jmp 0x140004a98
or rax, 0xffffffffffffffff
mov rcx, qword [rbp + 0x320]
xor rcx, rsp
call fcn.14000ac60
mov rbx, qword [rsp + 0x460]
add rsp, 0x430
pop rdi
pop rsi
pop rbp
ret
Function at 0x140004abc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rsi, rdx
mov edi, 2
mov r8d, edi
mov rdx, 0xffffffffffffffea
mov ebp, ecx
call fcn.140016754
mov rbx, rax
test rax, rax
js 0x140004c4c
lea r8d, [rdi + 0x14]
mov rdx, rsi
mov ecx, ebp
call fcn.140019e24
test eax, eax
js 0x140004c4c
movzx eax, byte [rsi + 2]
movzx ecx, byte [rsi + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [rsi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [rsi]
shl ecx, 8
or ecx, eax
cmp ecx, 0x6054b50
jne 0x140004b59
mov rcx, rsi
call fcn.140005040
test eax, eax
je 0x140004b51
mov r8, rbx
mov rdx, rsi
mov ecx, ebp
call fcn.140004c6c
mov rbx, rax
mov rax, rbx
jmp 0x140004c50
mov r8d, edi
xor edx, edx
mov ecx, ebp
call fcn.140016754
mov r15, rax
test rax, rax
js 0x140004c4c
mov r14d, 0x10015
mov r8d, edi
cmp rax, r14
mov ebx, r14d
mov ecx, ebp
cmovl rbx, rax
mov rdx, rbx
neg rdx
call fcn.140016754
test rax, rax
js 0x140004c4c
mov ecx, r14d
call fcn.14000f884
mov rdi, rax
test rax, rax
je 0x140004c4c
mov r8d, ebx
mov rdx, rax
mov ecx, ebp
call fcn.140019e24
test eax, eax
js 0x140004c44
movsxd r14, eax
add eax, 0xffffffea
movsxd rbx, eax
add r14, rdi
add rbx, rdi
cmp rbx, rdi
jb 0x140004c44
cmp byte [rbx], 0x50
jne 0x140004c1b
movzx eax, byte [rbx + 2]
movzx ecx, byte [rbx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 1]
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, 0x50
cmp ecx, 0x6054b50
jne 0x140004c1b
movzx eax, byte [rbx + 0x14]
movzx ecx, byte [rbx + 0x15]
shl rcx, 8
or rcx, rax
lea rax, [rbx + 0x16]
add rax, rcx
cmp rax, r14
je 0x140004c20
dec rbx
jmp 0x140004bd2
mov r8d, 0x16
mov rdx, rbx
mov rcx, rsi
call fcn.14000b4a0
mov rcx, rdi
call fcn.14000f870
sub rbx, r14
add rbx, r15
jmp 0x140004b35
mov rcx, rdi
call fcn.14000f870
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x140004c6c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
mov edi, ecx
lea rdx, [r8 - 0x14]
xor r8d, r8d
call fcn.140016754
mov rsi, rax
test rax, rax
js 0x140004cd6
mov r8d, 0x14
mov rdx, rbx
mov ecx, edi
call fcn.140019e24
test eax, eax
js 0x140004cd6
movzx eax, byte [rbx + 2]
movzx ecx, byte [rbx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx]
shl ecx, 8
or ecx, eax
or rax, 0xffffffffffffffff
cmp ecx, 0x7064b50
cmove rax, rsi
jmp 0x140004cda
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400050bc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x80
cmp qword [rdx + 8], 0xffffffffffffffff
mov r14, r8
mov rbx, rdx
mov esi, ecx
je 0x14000520c
cmp qword [rdx], 0xffffffffffffffff
je 0x14000520c
mov rdx, qword [rdx + 0x10]
xor r8d, r8d
call fcn.140016754
test rax, rax
js 0x14000520c
mov rcx, qword [rbx + 8]
inc rcx
call fcn.14000f884
mov rdi, rax
test rax, rax
je 0x14000520c
mov r8d, dword [rbx + 8]
mov rdx, rax
mov ecx, esi
call fcn.140019e24
movsxd rcx, eax
mov rax, qword [rbx + 8]
cmp rcx, rax
jne 0x140005204
cmp dword [rbx + 0x18], 0
jne 0x140005159
mov byte [rax + rdi], 0
test r14, r14
je 0x140005151
mov eax, dword [rbx + 8]
mov dword [r14], eax
mov rax, rdi
jmp 0x14000520e
cmp dword [rbx + 0x18], 8
jne 0x140005204
and qword [rsp + 0x50], 0
lea r8, [0x14002a588]
and qword [rsp + 0x58], 0
lea rcx, [rsp + 0x20]
and qword [rsp + 0x60], 0
mov r9d, 0x58
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], eax
lea edx, [r9 - 0x67]
call fcn.14000946c
test eax, eax
js 0x140005204
mov rcx, qword [rbx]
inc rcx
call fcn.14000f884
mov rsi, rax
test rax, rax
je 0x140005204
mov ecx, dword [rbx]
mov edx, 1
mov dword [rsp + 0x38], ecx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x30], rax
call fcn.140007e00
mov rcx, rdi
test eax, eax
jns 0x1400051db
call fcn.14000f870
mov rcx, rsi
jmp 0x140005207
mov rax, qword [rbx]
mov byte [rsi + rax], 0
call fcn.14000f870
lea rcx, [rsp + 0x20]
call fcn.140009414
test eax, eax
js 0x1400051d6
test r14, r14
je 0x1400051ff
mov eax, dword [rbx]
mov dword [r14], eax
mov rax, rsi
jmp 0x14000520e
mov rcx, rdi
call fcn.14000f870
xor eax, eax
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r14
ret
Function at 0x1400054b4
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rax + 0x20], 0
lea rax, [rax - 0x18]
mov rsi, r8
mov qword [rsp + 0x28], rax
mov r9, r8
mov dword [rsp + 0x20], 0x10000
mov rbp, rcx
mov r8, rcx
xor ecx, ecx
mov rdi, rdx
call fcn.140016cbc
mov rbx, rax
test rax, rax
jne 0x14000551b
lea rax, [rsp + 0x30]
mov r9, rsi
mov qword [rsp + 0x28], rax
mov r8, rbp
and dword [rsp + 0x20], ebx
mov edx, edi
xor ecx, ecx
call fcn.140016cbc
mov rbx, rax
cmp dword [0x14003a040], 0
je 0x1400055d2
lea rcx, [0x14002ad20]
call fcn.14000f60c
test rax, rax
je 0x140005552
lea rdx, [0x140029b1c]
mov rcx, rax
call fcn.1400189e4
neg eax
sbb ecx, ecx
and dword [0x14003a040], ecx
lea rcx, [0x14002ad28]
call fcn.14000f60c
mov rdi, rax
test rax, rax
je 0x140005587
lea rdx, [0x140029b1c]
mov rcx, rax
call fcn.1400189e4
neg eax
sbb ecx, ecx
and ecx, dword [0x14003a040]
mov dword [0x14003a040], ecx
jmp 0x14000558d
mov ecx, dword [0x14003a040]
test ecx, ecx
jns 0x1400055c4
and dword [0x14003a040], 0
test rdi, rdi
je 0x1400055d2
lea rdx, [0x140029b14]
mov rcx, rdi
call fcn.1400189e4
mov ecx, dword [0x14003a040]
test eax, eax
mov edx, 1
cmove ecx, edx
mov dword [0x14003a040], ecx
test ecx, ecx
je 0x1400055d2
lea rcx, [0x14002ad38]
call fcn.14000533c
test rbx, rbx
je 0x1400055fc
or edx, 0xffffffff
mov rcx, rbx
call qword [0x140029078]
lea rdx, [rsp + 0x68]
mov rcx, rbx
call qword [0x140029088]
mov rcx, rbx
call qword [0x140029058]
jmp 0x140005605
mov rcx, rsi
call rbp
mov dword [rsp + 0x68], eax
cmp dword [0x14003ad48], 0
je 0x14000561c
mov rax, qword [0x14003ad70]
test rax, rax
je 0x14000561c
call rax
mov eax, dword [rsp + 0x68]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14000b174
Capabilities:
Parse pe header

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

Function at 0x14000fb70
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14000fa03
xor ecx, ecx
call qword [0x140029158]
test rax, rax
je 0x14000fa03
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000fa03
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000fa03
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000fa03
cmp dword [rcx + 0x84], 0xe
jbe 0x14000fa03
cmp dword [rcx + 0xf8], 0
je 0x14000fa03
mov ecx, ebx
call fcn.14000faa4
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14000f894
cmp dword [rbp + 0x20], 0
je 0x14000fa50
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000fa58
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000f99c
Function at 0x1400209c8
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x1400209a5
call fcn.14001681c
mov dword [rax], 0x16
call fcn.14001b480
or eax, 0xffffffff
jmp 0x1400209c2
sub dword [rcx + 0x10], 1
jns 0x1400209b4
add rsp, 0x28
jmp 0x140025904
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x140020984
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rdi, rcx
test rcx, rcx
jne 0x140025936
call fcn.14001681c
mov dword [rax], 0x16
call fcn.14001b480
jmp 0x140025a53
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140025a53
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140025a53
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140025965
lock or dword [rcx + 0x14], 0x10
jmp 0x140025a53
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140025979
call fcn.140025a78
mov rbx, qword [rdi + 8]
mov rcx, rdi
mov qword [rdi], rbx
call fcn.14001db40
mov r8d, dword [rdi + 0x20]
mov ecx, eax
mov rdx, rbx
call fcn.140019e24
mov dword [rdi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140025a41
mov eax, dword [rdi + 0x14]
or esi, 0xffffffff
test al, 6
jne 0x140025a0c
mov rcx, rdi
call fcn.14001db40
cmp eax, esi
je 0x1400259f7
mov rcx, rdi
call fcn.14001db40
cmp eax, 0xfffffffe
je 0x1400259f7
mov rcx, rdi
call fcn.14001db40
movsxd rbx, eax
lea r14, [0x14003b9d0]
mov rcx, rdi
sar rbx, 6
call fcn.14001db40
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1400259fe
lea rdx, [0x14003a2e0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140025a0c
lock or dword [rdi + 0x14], 0x20
cmp dword [rdi + 0x20], 0x200
jne 0x140025a30
mov eax, dword [rdi + 0x14]
shr eax, 6
test al, 1
je 0x140025a30
mov eax, dword [rdi + 0x14]
shr eax, 8
test al, 1
jne 0x140025a30
mov dword [rdi + 0x20], 0x1000
mov rax, qword [rdi]
add dword [rdi + 0x10], esi
movzx esi, byte [rax]
inc rax
mov qword [rdi], rax
jmp 0x140025a56
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rdi + 0x14], eax
and dword [rdi + 0x10], 0
or esi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14000c43c
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140014c60], rbx
je 0x14000c4a3
cmp rax, rbx
jne 0x14000c496
mov ebx, 1
mov esi, ebx
jmp 0x14000c4a8
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000c47b
mov ebx, 1
mov eax, dword [0x140014c68]
cmp eax, ebx
jne 0x14000c4c0
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14000c52c
mov eax, dword [0x140014c68]
test eax, eax
jne 0x14000c521
mov dword [0x140014c68], ebx
lea r15, [0x14000eba0]
lea rdi, [0x14000eb88]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14000c513
test eax, eax
jne 0x14000c517
cmp qword [rdi], r14
je 0x14000c508
mov rax, qword [rdi]
mov rcx, qword [0x14000eb40]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000c4ea
test eax, eax
je 0x14000c527
mov eax, 0xff
jmp 0x14000c682
mov dword [0x1400143e4], ebx
mov edi, 0x1f
mov eax, dword [0x140014c68]
cmp eax, ebx
jne 0x14000c553
lea rdx, [0x14000eb80]
lea rcx, [0x14000eb48]
call sub.msvcrt.dll__initterm
mov dword [0x140014c68], 2
test esi, esi
jne 0x14000c561
mov rax, r14
xchg qword [0x140014c60], rax
cmp qword [0x140014c80], r14
je 0x14000c594
lea rcx, [0x140014c80]
call fcn.14000ca70
test eax, eax
je 0x14000c594
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140014c80]
mov r9, qword [0x14000eb40]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000c5ad
mov eax, 0xff
jmp 0x14000c682
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14000c633
test ax, ax
je 0x14000c5c8
test edx, edx
jne 0x14000c633
sub ax, bx
cmp ax, di
ja 0x14000c5de
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14000c5c8
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140001878
mov dword [0x1400143e0], eax
cmp dword [0x140014400], r14d
jne 0x14000c61c
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400143e4], r14d
jne 0x14000c631
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400143e0]
jmp 0x14000c682
cmp ax, 0x22
jne 0x14000c647
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000c5b6
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140179000
add rsp, 0x28
jmp 0x14000c43c
Function at 0x140005540
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rdx
mov rdi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x20
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
cmp eax, 0xc0000000
jb 0x140005597
mov ebx, eax
lea rcx, [rsp + 0x20]
mov edx, 0x20
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x140005648
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x50], xmm1
movaps xmmword [rsp + 0x40], xmm0
mov rax, qword [0x141d069d0]
test rax, rax
je 0x14000567c
and eax, 0x4000
xor ecx, ecx
lea rbx, [rsp + 0x70]
or rax, rcx
je 0x1400055e2
lea r8, [0x141cf8cf0]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140026af0
jmp 0x140005604
movaps xmm0, xmmword [rsp + 0x40]
movaps xmm1, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x80], xmm1
xorps xmm0, xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmm0, xmmword [rbx]
movaps xmm1, xmmword [rbx + 0x10]
movaps xmm2, xmmword [rbx + 0x20]
movaps xmmword [rdi + 0x20], xmm2
movaps xmmword [rdi + 0x10], xmm1
movaps xmmword [rdi], xmm0
mov qword [rdi + 0x40], 0
mov rax, 0xffffffffffffff00
add rax, qword [rdi + 0x30]
mov qword [rdi + 0x38], rax
mov rcx, rdi
mov rdx, rsi
call fcn.140026b10
nop
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
movzx eax, byte [0x141d069e0]
mov edx, 4
xor ecx, ecx
call fcn.14003cef0
test rax, rax
je 0x140005686
and ebx, 0x7fffffff
mov dword [rax], ebx
mov rcx, qword [0x141d069c8]
xor edx, edx
mov r8, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14000561a
call fcn.1400560c0
jmp 0x1400055bb
ud2

Function at 0x140007d00
Capabilities:
Set registry value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov r15, r9
mov rbx, r8
mov r14, rdx
mov rdi, rcx
movzx eax, byte [0x141d069e0]
mov edx, 4
xor ecx, ecx
call fcn.14003cef0
test rax, rax
je 0x140007ddd
mov rsi, rax
mov eax, dword [r15]
mov dword [rsi], eax
add rbx, r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x48], 0
mov dword [rsp + 0x50], 1
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x38]
call fcn.1400084f0
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x28], 4
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
mov r9d, 4
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
cmp qword [rsp + 0x58], 0
je 0x140007da9
mov rcx, qword [0x141d069c8]
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x141d069c8]
xor ebx, ebx
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, rdi
shl rax, 0x20
or rax, 2
test edi, edi
cmovne rbx, rax
mov rax, rbx
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
ud2
Function at 0x140007de0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x140007e22
mov r10d, 8
sub r10, r11
cmp r10, r8
mov rdi, r8
cmovb rdi, r10
cmp rdi, 4
jb 0x140007e2a
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x140007e3b
jmp 0x140007e52
xor r10d, r10d
jmp 0x140007edd
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x140007e52
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x140007e69
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x140007e89
add r11, r8
jmp 0x140007fb9
mov rcx, qword [rax + 0x18]
xor rcx, rsi
mov rdi, qword [rax + 0x10]
mov r9, qword [rax]
add r9, rdi
mov r11, qword [rax + 8]
add r11, rcx
rol rdi, 0xd
xor rdi, r9
rol rcx, 0x10
rol r9, 0x20
xor rcx, r11
add r11, rdi
rol rdi, 0x11
add r9, rcx
xor rdi, r11
rol rcx, 0x15
mov qword [rax + 0x10], rdi
xor rcx, r9
rol r11, 0x20
mov qword [rax + 0x18], rcx
mov qword [rax + 8], r11
xor r9, rsi
mov qword [rax], r9
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x140007f52
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
mov rbx, qword [rdx + r10]
xor rdi, rbx
add rcx, rsi
rol rsi, 0xd
add r9, rdi
xor rsi, rcx
rol rdi, 0x10
xor rdi, r9
rol rcx, 0x20
add r9, rsi
add rcx, rdi
rol rsi, 0x11
xor rsi, r9
rol rdi, 0x15
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x140007f00
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x140007f6f
mov r9d, dword [rdx + r10]
mov r8d, 4
mov ecx, r8d
or ecx, 1
cmp ecx, r11d
jb 0x140007f80
jmp 0x140007f9b
xor r9d, r9d
xor r8d, r8d
mov ecx, r8d
or ecx, 1
cmp ecx, r11d
jae 0x140007f9b
lea rcx, [rdx + r8]
movzx esi, word [r10 + rcx]
lea ecx, [r8*8]
invalid
add byte [rax], al
add byte [rax], al
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8d, r11d
jae 0x140007fb5
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret