joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1e0652c40
Capabilities:
Encode data using xor

Disassembly:
mov r11, rdx
mov rax, rcx
mov r10, rdx
and r11, 0xfffffffffffffff8
add r11, rcx
movabs rcx, 0xc6a4a7935bd1e995
imul r10, rcx
xor r10, r8
cmp rax, r11
je 0x1e0652c98
nop word cs:[rax + rax]
mov r9, qword [rax]
add rax, 8
imul r9, rcx
mov r8, r9
shr r8, 0x2f
xor r8, r9
imul r8, rcx
xor r8, r10
mov r10, r8
imul r10, rcx
cmp r11, rax
jne 0x1e0652c70
and edx, 7
je 0x1e0652ccd
sub edx, 1
movsxd rax, edx
xor edx, edx
nop dword [rax]
movzx ecx, byte [r11 + rax]
shl rdx, 8
sub rax, 1
add rdx, rcx
test eax, eax
jns 0x1e0652ca8
xor rdx, r10
movabs r10, 0xc6a4a7935bd1e995
imul r10, rdx
movabs rax, 0xc6a4a7935bd1e995
mov rdx, r10
shr rdx, 0x2f
xor rdx, r10
imul rdx, rax
mov rax, rdx
shr rax, 0x2f
xor rax, rdx
ret

Function at 0x1e0681de0
Capabilities:
Write file on windows

Disassembly:
call fcn.1e067d770
call fcn.1e067d9d0
mov rbx, qword [rax]
test byte [rbx + 0x50], 1
je 0x1e0681cd7
mov rbx, qword [rbx]
lea r12, [rsp + 0x20]
mov rdx, rbp
xor ecx, ecx
mov r8, r12
call fcn.1e0592890
mov rdx, qword [rbx - 0x90]
mov r9, rsi
mov r8, rbx
mov rcx, r12
call fcn.1e0592980
test al, al
jne 0x1e0681cf5
lea rbx, [0x1e06958c0]
mov r9, rsi
xor r8d, r8d
mov rcx, r12
mov rdx, rbx
call fcn.1e0592980
test al, al
je 0x1e0681cfa
mov ecx, 8
call fcn.1e067d700
lea r8, [0x1e0623d90]
mov rdx, rbx
mov rcx, rax
mov rax, qword [0x1e0690b50]
add rax, 0x10
mov qword [rcx], rax
call fcn.1e067dc90
add rbx, 0x90
jmp 0x1e0681c66
call fcn.1e067dc40
mov rcx, rdi
call fcn.1e05952e0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
call sub.msvcrt.dll_abort
mov rcx, rax
call fcn.1e067d770
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
call fcn.1e05be170
mov ecx, 8
call fcn.1e067d700
lea r8, [0x1e05bde20]
lea rdx, [0x1e0694000]
mov rcx, rax
lea rax, [0x1e06a8700]
mov qword [rcx], rax
call fcn.1e067dc90
call fcn.1e05be1a0
mov rcx, qword [0x1e0686820]
mov rbx, rax
call fcn.1e0588d72
test eax, eax
je 0x1e0681d7c
call fcn.1e05be1a0
mov rcx, rbx
call fcn.1e057a710
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
call fcn.1e05be170
call fcn.1e05be1a0
call fcn.1e05be1d0
nop
call fcn.1e05be170
call fcn.1e05be1a0
call fcn.1e05be1d0
nop
mov ecx, 8
call fcn.1e067d700
lea r8, [fcn.1e0651650]
lea rdx, [0x1e0696450]
mov rcx, rax
mov rax, qword [0x1e0690de0]
add rax, 0x10
mov qword [rcx], rax
call fcn.1e067dc90
nop
nop
nop
mov rcx, rax
mov rax, rdx
sub rax, 1
jne 0x1e0681e5c
call fcn.1e067d770
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sub.msvcrt.dll_fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sub.msvcrt.dll_fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sub.msvcrt.dll_fputc
call fcn.1e067d8a0
call sub.msvcrt.dll_abort
mov rcx, rdi
call fcn.1e0586c80
call fcn.1e067dc40
call fcn.1e067d770
call fcn.1e067d8a0
jmp 0x1e0681e4a
Function at 0x401000
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
lea rax, [0x00d16e04]
mov r11, rax
mov rax, qword [rbp + 0x10]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_fopen
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
cmp rax, 0
je 0x401042
jmp 0x401052
mov eax, 1
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_exit
mov eax, dword [0x00d16e00]
movsxd rax, eax
mov rcx, qword [rbp - 8]
mov r9, rcx
mov r8, rax
movabs rax, 1
mov r11, rax
lea rax, section..data
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_fwrite
mov rax, qword [rbp - 8]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_fclose
leave
ret

Function at 0x40100b
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
lea rax, [0x00d16e04]
mov r11, rax
mov rax, qword [rbp + 0x10]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_fopen
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
cmp rax, 0
je 0x401042
jmp 0x401052
mov eax, 1
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_exit
mov eax, dword [0x00d16e00]
movsxd rax, eax
mov rcx, qword [rbp - 8]
mov r9, rcx
mov r8, rax
movabs rax, 1
mov r11, rax
lea rax, section..data
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_fwrite
mov rax, qword [rbp - 8]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_fclose
leave
ret
Function at 0x40148f
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
lea rax, [0x00d16e87]
mov r11, rax
mov rax, qword [rbp + 0x10]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_fopen
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
cmp rax, 0
je 0x4014d5
jmp 0x4014e5
mov eax, 1
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_exit
mov rax, qword [rbp + 0x18]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_strlen
mov rcx, qword [rbp - 8]
mov r9, rcx
mov r8, rax
movabs rax, 1
mov r11, rax
mov rax, qword [rbp + 0x18]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_fwrite
mov rax, qword [rbp - 8]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_fclose
leave
ret

Function at 0x40149a
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
lea rax, [0x00d16e87]
mov r11, rax
mov rax, qword [rbp + 0x10]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_fopen
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
cmp rax, 0
je 0x4014d5
jmp 0x4014e5
mov eax, 1
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_exit
mov rax, qword [rbp + 0x18]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_strlen
mov rcx, qword [rbp - 8]
mov r9, rcx
mov r8, rax
movabs rax, 1
mov r11, rax
mov rax, qword [rbp + 0x18]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_fwrite
mov rax, qword [rbp - 8]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_fclose
leave
ret
Function at 0x6ac01550
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]

Function at 0x6ac015c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x6ac07064]
mov r12, rcx
test ebx, ebx
jle 0x6ac016f0
mov rax, qword [0x6ac07068]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x6ac0160c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x6ac01693
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x6ac015f0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x6ac01712
mov rax, qword [0x6ac07068]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6ac07068]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6ac016f7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x6ac0168c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x6ac016a0
add dword [0x6ac07064], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x6ac07068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6ac0168c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor ebx, ebx
jmp 0x6ac01617
mov rax, qword [0x6ac07068]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x6ac019c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6ac070a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6ac07080]
test rbx, rbx
je 0x6ac01a14
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x6ac01a0b
test r12, r12
je 0x6ac01a0b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6ac019f0
lea rcx, [0x6ac070a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6ac01c30
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x6ac01c48
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x6ac01c50
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x6ac01c60
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r8, rdx
lea rdx, [rax + rcx]
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x6ac01cac
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov ecx, dword [rax + 0xc]
mov rdx, rcx
cmp rcx, r8
ja 0x6ac01ca3
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x6ac01cae
add rax, 0x28
cmp rax, r9
jne 0x6ac01c90
xor eax, eax
ret

Function at 0x6ac01cb0
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x6ac01d40
mov rdx, qword [0x6ac041c0]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x6ac01d2e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x6ac01d2e
cmp word [rax + 0x18], 0x20b
jne 0x6ac01d2e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6ac01d40
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x6ac01d19
add r12, 0x28
cmp r12, rsi
je 0x6ac01d40
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x6ac01d10
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

Function at 0x6ac01d50
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x6ac041c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x6ac01d70
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x6ac01d78
ret
cmp word [r8 + 0x18], 0x20b
jne 0x6ac01d70
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x6ac01dc5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x6ac01dbc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6ac01d70
add rax, 0x28
cmp rax, r9
jne 0x6ac01da8
xor eax, eax
ret

Function at 0x6ac01dd0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x6ac041c0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x6ac01df0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x6ac01df8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x6ac01df0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x6ac01e10
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x6ac041c0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x6ac01e30
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x6ac01e38
ret
cmp word [rdx + 0x18], 0x20b
jne 0x6ac01e30
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x6ac01e78
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x6ac01e6f
test rcx, rcx
je 0x6ac01e30
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x6ac01e60
xor eax, eax
ret
Function at 0x6ac01e80
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x6ac041c0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x6ac01ea0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x6ac01ea8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x6ac01ec0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x6ac041c0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x6ac01ee0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x6ac01ee8
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x6ac01ee0
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x6ac01ee0
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x6ac01f24
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6ac01f38
add rax, 0x28
cmp r9, rax
jne 0x6ac01f10
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

Function at 0x6ac01f50
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x6ac041c0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x6ac01f72
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x6ac01f80
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x6ac01f72
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x6ac01f72
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x6ac01f72
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x6ac01fcd
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x6ac01fe0
add rdx, 0x28
cmp r10, rdx
jne 0x6ac01fb8
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x6ac01fef
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x6ac01fff
mov edx, dword [rax + 0xc]
test edx, edx
je 0x6ac01fd6
test ecx, ecx
jg 0x6ac01fe8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001000
Capabilities:
Access the windows event log
Clear windows event logs

Disassembly:
push rbx
sub rsp, 0x20
lea rdx, str.System
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenEventLogW]
mov rbx, rax
test rax, rax
jne 0x140001039
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [0x1400032d0]
call fcn.140001100
lea eax, [rbx + 1]
add rsp, 0x20
pop rbx
ret
lea rdx, str.Application
mov qword [rsp + 0x30], rdi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenEventLogW]
mov rdi, rax
test rax, rax
jne 0x140001076
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [0x1400032d0]
call fcn.140001100
lea eax, [rdi + 1]
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ClearEventLogW]
test eax, eax
jne 0x14000108e
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
jmp 0x1400010a4
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ClearEventLogW]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
test eax, eax
jne 0x1400010c9
lea rdx, [0x1400032f8]
call fcn.140001100
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov rdi, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rbx
ret
lea rdx, [0x140003308]
call fcn.140001100
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140001c18
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
lea rcx, [0x100412270]
call 0x100411cb0
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call 0x100411cd0
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call 0x100411ce0
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.100411cf0
xor r8d, r8d
xor edx, edx
xor ecx, ecx
add rsp, 0x28
jmp 0x100411d00
mov byte [rdi - 0x6a5d895e], dl
sbb dword [rdi - 0x75797c58], 0x648d868a
lahf
movabs byte [0x7a989f86a689648e], al
mov ah, byte [rbp + rbp*2 + 0x67]
lea esp, [rax - 0x747d9776]
test al, 0x8c
xchg byte [rax + 0x7b877882], ah
insb byte [rdi], dx
scasb al, byte [rdi]
mov byte [rsi + 0x648a8176], bl
jge 0x100411c5c
xchg ebp, eax
movabs al, byte [0x88826586658aae82]
cwde
test byte [rdx - 0x71987d5f], cl
jp 0x100411d3e
scasb al, byte [rdi]
xchg esi, eax
jbe 0x100411d30
mov byte [rax - 0x60757a7a], ah
xchg dword gs:[rbp - 0x76757561], ecx
movabs byte [0xa297ad8eae858d82], al
pushfq
ja 0x100411c79
invalid
js 0x100411c8c
xchg byte gs:[rdx - 0x7175747b], al
mov ah, byte [rdi - 0x7e]
test byte [rdx - 0x75748575], cl
mov word [rdx + 0x79899678], es
lodsd eax, dword [rsi]
mov ah, byte [rbp - 0x64]
mov cs, word [rax - 0x77758184]
invalid
cmpsb byte [rsi], byte [rdi]
mov byte [rdx + rdi*2 - 0x79], bh
or dword [rcx + 0x77866698], 0x65987da8
invalid
invalid
Function at 0x180001000
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x28
sub edx, 1
je 0x18000102e
sub edx, 1
je 0x180001025
cmp edx, 1
je 0x18000101c
lea rcx, str.APPCERT_UNKNOWN
jmp 0x180001051
lea rcx, str.APPCERT_CREATION_DENIED
jmp 0x180001051
lea rcx, str.APPCERT_CREATION_ALLOWED
jmp 0x180001051
cmp dword [0x18000d3d0], 0
jne 0x18000104a
lea rcx, [0x18000a260]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
inc dword [0x18000d3d0]
lea rcx, str.APPCERT_IMAGE_OK_TO_RUN
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
add rsp, 0x28
ret

Function at 0x180001424
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x140
mov rbx, rcx
xor edi, edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rcx, str.ConHostV1.dll
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rbx], rax
test rax, rax
je 0x180001484
lea rcx, [0x180014978]
mov qword [rsp + 0x20], rcx
lea r9, [0x180001354]
mov rcx, rax
lea r8, str.RtlAllocateHeap
lea rdx, [0x18000a3d8]
jmp 0x18000152a
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rcx, [rsp + 0x30]
dec rcx
inc rcx
cmp byte [rcx], dil
jne 0x18000149c
mov eax, dword [0x18000a470]
movsd xmm0, qword [str.ConhostV1.dll]
movsd qword [rcx], xmm0
mov dword [rcx + 8], eax
movzx eax, word [0x18000a474]
mov word [rcx + 0xc], ax
mov al, byte [0x18000a476]
mov byte [rcx + 0xe], al
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
sete dil
test edi, edi
je 0x180001506
lea rcx, [0x180014978]
mov qword [rsp + 0x20], rcx
lea r9, [0x180001354]
lea r8, str.RtlAllocateHeap
lea rdx, [0x18000a3d8]
jmp 0x180001527
lea rax, [0x180014970]
mov qword [rsp + 0x20], rax
lea r9, [0x180001368]
lea r8, [0x18000a478]
lea rdx, str.api_ms_win_core_libraryloader_l1_2_0.dll
mov rcx, rsi
call fcn.180002d80
lea r11, [rsp + 0x140]
mov eax, edi
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1800017ec
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x90
mov rbx, qword [rcx]
lea r8, [rax - 0x38]
and dword [rax + 8], 0
mov bpl, dl
and qword [rax - 0x78], 0
mov rsi, rcx
mov edi, 0x30
mov rcx, rbx
mov r9d, edi
xor edx, edx
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
jns 0x1800018f0
cmp eax, 0xc0000024
jne 0x1800018d8
mov rcx, qword [rsi + 8]
lea r8, [rsp + 0x30]
and qword [rsp + 0x20], 0
mov r9d, edi
xor edx, edx
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
test eax, eax
js 0x1800018b6
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov ecx, 0x43a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x1800018f0
cmp qword [0x180014958], rax
je 0x1800018af
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, dword [rsp + 0x40]
lea rdx, str.Cannot_open_NTVDM_process_with_PID__d:__d_n
mov r9d, eax
lea rcx, [0x18000e680]
call qword [0x180014958]
lea rcx, [0x18000e680]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x180001985
mov rax, qword [0x180014958]
test rax, rax
je 0x1800018af
mov r8, qword [rsi + 8]
lea rdx, str.Cannot_get_ThreadBasicInformation_for_hThread__X_n
lea rcx, [0x18000e680]
call rax
jmp 0x1800018a2
mov rax, qword [0x180014958]
test rax, rax
je 0x1800018af
mov r8, rbx
lea rdx, str.Cannot_get_ProcessBasicInformation_for_hProcess__X_n
jmp 0x1800018cd
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
mov rax, qword [0x180014958]
test rax, rax
je 0x180001932
mov r8d, dword [rsp + 0xa0]
lea rdx, str.Injecting_into_WOW64_Process___d_n
lea rcx, [0x18000e680]
call rax
lea rcx, [0x18000e680]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [rsp + 0xa0], 0
je 0x180001957
movzx r9d, bpl
mov rcx, rbx
call fcn.180003a80
mov edi, eax
test eax, eax
jne 0x180001957
lea rcx, str.Inject_LdrLoadDLLWow64_failed.
jmp 0x18000196f
mov r9b, bpl
mov rcx, rbx
call fcn.180003058
mov edi, eax
test eax, eax
jne 0x180001975
lea rcx, str.Inject_LdrLoadDLL_failed.
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp rbx, qword [rsi]
je 0x180001983
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret