joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140162db4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x1401beaa0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x30], 0
call fcn.140157ba4
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x140162fae
mov eax, 1
imul rax, rax, 0xf
mov byte [rsp + rax + 0x50], 0x69
mov eax, 1
imul rax, rax, 0x12
mov byte [rsp + rax + 0x50], 0x67
mov eax, 1
imul rax, rax, 2
mov byte [rsp + rax + 0x50], 0x6a
mov eax, 1
imul rax, rax, 0xd
mov byte [rsp + rax + 0x50], 0x69
mov eax, 1
imul rax, rax, 0x13
mov byte [rsp + rax + 0x50], 0x65
mov eax, 1
imul rax, rax, 0xc
mov byte [rsp + rax + 0x50], WSACleanup
mov eax, 1
imul rax, rax, 0x15
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0x16
jae 0x140162e64
jmp 0x140162e69
call fcn.1400b299c
mov rax, qword [rsp + 0x40]
mov byte [rsp + rax + 0x50], 0
mov eax, 1
imul rax, rax, 0x10
mov byte [rsp + rax + 0x50], WSASetLastError
mov eax, 1
imul rax, rax, 7
mov byte [rsp + rax + 0x50], reloc.WS2_32.dll_WSAGetLastError
mov eax, 1
imul rax, rax, 0x14
mov byte [rsp + rax + 0x50], reloc.WS2_32.dll_WSAStartup
mov eax, 1
imul rax, rax, 1
mov byte [rsp + rax + 0x50], 0x64
mov eax, 1
imul rax, rax, 9
mov byte [rsp + rax + 0x50], 0x65
mov eax, 1
imul rax, rax, 3
mov byte [rsp + rax + 0x50], 0x75
mov eax, 1
imul rax, rax, 0xb
mov byte [rsp + rax + VarR8FromCy], 0x50
mov eax, 1
imul rax, rax, 0xe
mov byte [rsp + rax + 0x50], 0x76
mov eax, 1
imul rax, rax, 0x11
mov byte [rsp + rax + 0x50], 0x65
mov eax, 1
imul rax, rax, 6
mov byte [rsp + rax + 0x50], 0x54
mov eax, 1
imul rax, rax, 5
mov byte [rsp + rax + 0x50], reloc.WS2_32.dll_WSACleanup
mov eax, 1
imul rax, rax, 4
mov byte [rsp + rax + 0x50], reloc.WS2_32.dll_WSAStartup
mov eax, 1
imul rax, rax, 8
mov byte [rsp + rax + 0x50], WSAGetLastError
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x50], 0x41
mov eax, 1
imul rax, rax, 0xa
mov byte [rsp + rax + 0x50], WSASetLastError
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140162fa3
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x98]
mov r8, qword [rsp + 0x90]
mov edx, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call qword [rsp + 0x48]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400b2870
add rsp, 0x78
ret
Function at 0x140165dd8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x1401beaa0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x30], 1
call fcn.14015693c
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x140165f46
mov eax, 1
imul rax, rax, 0xb
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xc
jae 0x140165e35
jmp 0x140165e3a
call fcn.1400b299c
mov rax, qword [rsp + 0x40]
mov byte [rsp + rax + 0x50], 0
mov eax, 1
imul rax, rax, 9
mov byte [rsp + rax + 0x50], 0x65
mov eax, 1
imul rax, rax, 7
mov byte [rsp + rax + 0x50], WSASetLastError
mov eax, 1
imul rax, rax, 1
mov byte [rsp + rax + 0x50], 0x48
mov eax, 1
imul rax, rax, 5
mov byte [rsp + rax + 0x50], VarDateFromR4
mov eax, 1
imul rax, rax, 0xa
mov byte [rsp + rax + 0x50], 0x41
mov eax, 1
imul rax, rax, 8
mov byte [rsp + rax + 0x50], 0x75
mov eax, 1
imul rax, rax, 6
mov byte [rsp + rax + 0x50], 0x61
mov eax, 1
imul rax, rax, 2
mov byte [rsp + rax + 0x50], 0x53
mov eax, 1
imul rax, rax, 4
mov byte [rsp + rax + 0x50], reloc.WS2_32.dll_WSACleanup
mov eax, 1
imul rax, rax, 3
mov byte [rsp + rax + 0x50], 0x65
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x50], 0x53
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140165f3b
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x98]
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call qword [rsp + 0x48]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400b2870
add rsp, 0x78
ret
Function at 0x140165f5c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x1401beaa0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x20], 0
call fcn.140157ba4
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1401660e3
mov eax, 1
imul rax, rax, 0xc
mov byte [rsp + rax + 0x40], reloc.WS2_32.dll_WSAGetLastError
mov eax, 1
imul rax, rax, 5
mov byte [rsp + rax + 0x40], WSACleanup
mov eax, 1
imul rax, rax, 0xe
mov byte [rsp + rax + 0x40], 0x65
mov eax, 1
imul rax, rax, 0xd
mov byte [rsp + rax + 0x40], WSAGetLastError
mov eax, 1
imul rax, rax, 8
mov byte [rsp + rax + 0x40], 0x65
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x40], reloc.WLDAP32.dll_Ordinal_79
mov eax, 1
imul rax, rax, 0xb
mov byte [rsp + rax + 0x40], 0x54
mov eax, 1
imul rax, rax, 4
mov byte [rsp + rax + 0x40], VarR8FromCy
mov eax, 1
imul rax, rax, 7
mov byte [rsp + rax + 0x40], 0x63
mov eax, 1
imul rax, rax, 6
mov byte [rsp + rax + 0x40], reloc.WS2_32.dll_WSAGetLastError
mov eax, 1
imul rax, rax, 0xf
mov byte [rsp + rax + 0x40], WSASetLastError
mov eax, 1
imul rax, rax, 0xa
mov byte [rsp + rax + 0x40], reloc.WS2_32.dll_WSAStartup
mov eax, 1
imul rax, rax, 1
mov byte [rsp + rax + 0x40], reloc.WS2_32.dll_WSASetLastError
mov eax, 1
imul rax, rax, 0x10
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0x11
jae 0x140166069
jmp 0x14016606e
call fcn.1400b299c
mov rax, qword [rsp + 0x30]
mov byte [rsp + rax + 0x40], 0
mov eax, 1
imul rax, rax, 3
mov byte [rsp + rax + 0x40], WSASetLastError
mov eax, 1
imul rax, rax, 9
mov byte [rsp + rax + 0x40], reloc.WS2_32.dll_WSAStartup
mov eax, 1
imul rax, rax, 2
mov byte [rsp + rax + 0x40], 0x65
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x1401660d8
mov r8, qword [rsp + 0x80]
mov edx, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [rsp + gethostname]
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400b2870
add rsp, 0x68
ret
Function at 0x140002720
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
movabs rax, 0xc2b2ae3d27d4eb4f
movabs rdx, 0x9e3779b185ebca87
movabs r9, 0x85ebca77c2b2ae63
movabs r8, 0x27d4eb2f165667c5
mov esi, dword [rcx + 0x48]
mov rdi, qword [rcx]
cmp rdi, 0x20
jb 0x1400027f1
mov r14, qword [rcx + 8]
mov rbx, qword [rcx + 0x10]
mov r11, qword [rcx + 0x18]
mov r10, qword [rcx + 0x20]
mov r15, r14
rol r15, 1
mov r12, rbx
rol r12, 7
add r12, r15
mov r15, r11
rol r15, 0xc
mov r13, r10
rol r13, 0x12
add r13, r15
add r13, r12
imul r14, rax
rol r14, 0x1f
imul r14, rdx
xor r14, r13
imul r14, rdx
add r14, r9
imul rbx, rax
rol rbx, 0x1f
imul rbx, rdx
xor rbx, r14
imul rbx, rdx
imul r11, rax
rol r11, 0x1f
add rbx, r9
imul r11, rdx
xor r11, rbx
imul r11, rdx
add r11, r9
imul r10, rax
rol r10, 0x1f
imul r10, rdx
xor r10, r11
imul r10, rdx
add r10, r9
jmp 0x1400027f8
mov r10, qword [rcx + 0x18]
add r10, r8
lea r11, [rcx + rsi]
add r11, 0x28
add rcx, 0x28
add r10, rdi
cmp esi, 8
jae 0x140002820
mov rsi, r10
mov rdi, rcx
jmp 0x140002850
mov rsi, qword [rcx]
imul rsi, rax
rol rsi, 0x1f
imul rsi, rdx
xor rsi, r10
rol rsi, 0x1b
imul rsi, rdx
add rsi, r9
lea rdi, [rcx + 8]
add rcx, 0x10
mov r10, rsi
cmp rcx, r11
mov rcx, rdi
jbe 0x140002820
movabs rcx, 0x165667b19e3779f9
lea r9, [rdi + 4]
cmp r9, r11
jbe 0x14000286d
mov r9, rdi
cmp r9, r11
jb 0x140002890
jmp 0x1400028b0
mov r10d, dword [rdi]
imul r10, rdx
xor r10, rsi
rol r10, 0x17
imul r10, rax
add r10, rcx
mov rsi, r10
cmp r9, r11
jae 0x1400028b0
nop word [rax + rax]
movzx r10d, byte [r9]
imul r10, r8
xor r10, rsi
rol r10, 0xb
imul r10, rdx
inc r9
mov rsi, r10
cmp r9, r11
jb 0x140002890
jmp 0x1400028b3
mov r10, rsi
mov rdx, r10
shr rdx, 0x21
xor rdx, r10
imul rdx, rax
mov r8, rdx
shr r8, 0x1d
xor r8, rdx
imul r8, rcx
mov rax, r8
shr rax, 0x20
xor rax, r8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140011fe0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rsi, rdx
mov rax, qword [0x140038008]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov word [rsp + 0x30], 0
movzx eax, byte [rcx]
test al, al
je 0x1400120a6
mov rdi, rcx
mov r15d, 0x28
lea r12, [rsp + 0x30]
lea rbx, [rsp + 0x2a]
lea r14, [rsp + 0x2e]
nop
mov byte [rsp + 0x2e], al
mov byte [rsp + 0x2f], 0
mov r8d, 2
mov rcx, rbx
mov rdx, r14
call fcn.14001b3e8
cmp rax, 1
jne 0x1400120d6
cmp word [r12], 0
mov rcx, r15
mov rax, r12
je 0x140012081
mov rdx, r12
mov rcx, r15
nop dword [rax + rax]
lea rax, [rdx + 2]
dec rcx
cmp word [rdx + 2], 0
mov rdx, rax
jne 0x140012070
test rcx, rcx
je 0x1400120d6
movzx ecx, word [rsp + 0x2a]
mov word [rax], cx
mov word [rax + 2], 0
add r12, 2
dec r15
movzx eax, byte [rdi + 1]
inc rdi
test al, al
jne 0x140012030
lea rcx, [rsp + 0x30]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400145f0
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.14001b36c
int3
Function at 0x140012ac0
Capabilities:
Check if file exists
Get file attributes
Terminate process

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x90
movaps xmmword [rsp + 0x80], xmm8
movaps xmmword [rsp + 0x70], xmm7
movaps xmmword [rsp + 0x60], xmm6
mov rax, qword [0x140038008]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rcx, qword [0x14003eac8]
test rcx, rcx
je 0x140012b2a
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140012b1d
mov rcx, qword [0x14003eac8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14003eac8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140041310], 1
jne 0x140012bd7
mov rbx, qword [0x14002d060]
mov qword [rsp + 0x50], rbx
movups xmm6, xmmword [0x14002d050]
movaps xmmword [rsp + 0x40], xmm6
movups xmm7, xmmword [0x14002d040]
movaps xmmword [rsp + 0x30], xmm7
movups xmm8, xmmword [0x14002d030]
movaps xmmword [rsp + 0x20], xmm8
lea rsi, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebp, 0x14
lea rdi, [0x14003eae0]
mov r14, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r15, qword [sym.imp.KERNEL32.dll_Sleep]
mov r12, qword [sym.imp.SHELL32.dll_SHFileOperationW]
nop dword [rax + rax]
mov rcx, rdi
call r14
cmp eax, 0xffffffff
je 0x140012bd7
and eax, 0x10
je 0x140012bd7
mov ecx, 0x64
call r15
mov qword [rsp + 0x50], rbx
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm7
movaps xmmword [rsp + 0x20], xmm8
mov rcx, rsi
call r12
dec ebp
jne 0x140012ba0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400145f0
movaps xmm6, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x70]
movaps xmm8, xmmword [rsp + 0x80]
add rsp, 0x90
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140014430
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x2030
call fcn.140014590
sub rsp, rax
mov rsi, rcx
mov rax, qword [0x140038008]
xor rax, rsp
mov qword [rsp + 0x2028], rax
mov eax, dword [0x14003ead0]
test eax, eax
je 0x140014465
test eax, eax
jg 0x1400144ad
jmp 0x1400144e2
lea rdx, [0x140033236]
lea rcx, [rsp + 0x20]
mov r8d, 0x1000
call fcn.140012290
test al, al
je 0x14001456a
lea rcx, [rsp + 0x20]
call fcn.14001b09c
movsxd rcx, dword [0x14003ead0]
lea rdx, [0x140043b50]
mov qword [rdx + rcx*8], rax
lea eax, [rcx + 1]
mov dword [0x14003ead0], eax
test eax, eax
jle 0x1400144e2
lea rdi, [0x140043b50]
xor ebx, ebx
nop word cs:[rax + rax]
mov rdx, qword [rdi]
mov rcx, rsi
call fcn.14001bce0
test eax, eax
je 0x14001454b
inc rbx
movsxd rax, dword [0x14003ead0]
add rdi, 8
cmp rbx, rax
jl 0x1400144c0
mov rcx, rsi
call fcn.14001bd18
cmp rax, 2
jne 0x1400144f9
mov bl, 1
cmp word [rsi + 2], 0x3a
je 0x14001454d
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x140014518
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete bl
test bl, bl
je 0x14001454d
cmp dword [0x14003ead0], 0x3ff
jg 0x14001454d
mov rcx, rsi
call fcn.14001b09c
movsxd rcx, dword [0x14003ead0]
lea rdx, [0x140043b50]
mov qword [rdx + rcx*8], rax
lea eax, [rcx + 1]
mov dword [0x14003ead0], eax
mov bl, 1
mov rcx, qword [rsp + 0x2028]
xor rcx, rsp
call fcn.1400145f0
mov eax, ebx
add rsp, 0x2030
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140033236]
call fcn.1400137b0
int3

Function at 0x140014da4
Capabilities:
Parse pe header

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

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001a0a4
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 0x14001a113
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001a113
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001a113
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001a113
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001a113
cmp dword [rcx + 0x84], 0xe
jbe 0x14001a113
cmp dword [rcx + 0xf8], 0
je 0x14001a113
mov ecx, ebx
call fcn.140019fd0
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.14001a238
nop
cmp dword [rbp + 0x20], 0
je 0x14001a161
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001a070
int3

Function at 0x14001c1a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001c1c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001c1c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400219b8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140021a3f
mov rsi, rbx
cmp word [rax], bp
je 0x1400219fe
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400219e8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400219e4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001ee5c
mov rdi, rax
test rax, rax
je 0x140021a2c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400155f0
mov rbp, rdi
xor ecx, ecx
call fcn.14001df1c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800014d0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x180014008]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r8, rdx
lea eax, [rcx - 1]
lea rdx, [0x180001440]
mov rcx, qword [r8 + rax*8]
call qword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerW]
mov qword [0x180015ac0], rax
test rax, rax
je 0x1800016ac
xor ecx, ecx
mov qword [rsp + 0xa0], rbx
mov qword [rbp - 0x4c], rcx
lea rdx, [rbp - 0x50]
mov qword [rbp - 0x44], rcx
mov qword [rbp - 0x3c], rcx
mov rcx, rax
mov qword [rsp + 0xa8], rdi
xor edi, edi
mov qword [rbp - 0x40], rdi
mov dword [0x180015abc], 4
mov dword [rbp - 0x38], 0xbb8
mov dword [rbp - 0x4c], 4
mov qword [rbp - 0x48], 7
mov dword [rbp - 0x50], 0x30
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov ebx, 0xc
mov dword [rbp - 0x30], 0xf09eec89
mov edx, ebx
mov dword [rbp - 0x2c], 0xf8caf995
mov dword [rbp - 0x28], 0xb2deb2d6
lea rcx, [rbp - 0x25]
mov byte [rbp - 0x24], 0xb2
nop dword [rax]
movzx eax, byte [rcx]
xor byte [rcx + 1], al
movzx eax, byte [rcx - 1]
xor byte [rcx], al
movzx eax, byte [rcx - 2]
xor byte [rcx - 1], al
movzx eax, byte [rcx - 3]
xor byte [rcx - 2], al
movzx eax, byte [rcx - 4]
xor byte [rcx - 3], al
movzx eax, byte [rcx - 5]
xor byte [rcx - 4], al
lea rcx, [rcx - 6]
add edx, 0xfffffffa
jne 0x180001590
xor byte [rbp - 0x30], 0xe2
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [rbp - 0x20], 0xd7b6d3a1
lea rcx, [rbp - 0x15]
mov r8, rax
mov dword [rbp - 0x1c], 0xfa92c6a3
mov dword [rbp - 0x18], 0xe88ced88
mov byte [rbp - 0x14], 0xe8
nop
movzx eax, byte [rcx]
xor byte [rcx + 1], al
movzx eax, byte [rcx - 1]
xor byte [rcx], al
movzx eax, byte [rcx - 2]
xor byte [rcx - 1], al
movzx eax, byte [rcx - 3]
xor byte [rcx - 2], al
movzx eax, byte [rcx - 4]
xor byte [rcx - 3], al
movzx eax, byte [rcx - 5]
xor byte [rcx - 4], al
lea rcx, [rcx - 6]
add ebx, 0xfffffffa
jne 0x1800015f0
xor byte [rbp - 0x20], 0xe2
lea rdx, [rbp - 0x20]
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18000169c
mov qword [rsp + 0x28], rdi
lea r8, [0x180001210]
xor r9d, r9d
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call rax
mov rbx, rax
test rax, rax
je 0x18000169c
mov ecx, dword [0x180015abc]
cmp ecx, 3
je 0x180001690
cmp ecx, 1
je 0x180001690
nop dword [rax + rax]
mov edx, 0x493e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x180001670
mov ecx, dword [0x180015abc]
cmp ecx, 3
jne 0x180001663
xor r8d, r8d
lea ecx, [r8 + 1]
call fcn.1800013d0
mov rbx, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0xa8]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1800017e0
add rsp, 0x80
pop rbp
ret
Function at 0x180001a78
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x180000000], ax
jne 0x180001b09
movsxd rax, dword [0x18000003c]
lea rdx, [0x180000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x180001b09
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180001b09
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x180001aed
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x180001ae7
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x180001aef
add rdx, 0x28
jmp 0x180001acc
xor edx, edx
test rdx, rdx
jne 0x180001af8
xor al, al
jmp 0x180001b0f
test dword [rdx + 0x24], 0x80000000
je 0x180001b05
xor al, al
jmp 0x180001b0f
mov al, 1
jmp 0x180001b0f
xor al, al
jmp 0x180001b0f
add rsp, 0x18
ret
Function at 0x140001070
Capabilities:
Check for outputdebugstring error
Check for peb beingdebugged flag
Patch process command line
Print debug messages

Disassembly:
sub rsp, 0x88
mov rax, qword [0x1400e5018]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rax, qword gs:[0x60]
cmp byte [rax + 2], 0
jne 0x14000119d
test byte [rax + 0xbc], 0x70
jne 0x14000119d
mov ecx, 0x457
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [0x1400e3074]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x457
jne 0x14000119d
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x80], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rcx, [0x1400e3040]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x1400010fd
xor edi, edi
jmp 0x140001110
lea rdx, str.NtQueryInformationProcess
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
mov r8d, ebx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r9d, 0x30
lea r8, [rsp + 0x30]
mov rbx, rax
xor edx, edx
lea rax, [rsp + 0x68]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call rdi
mov rdx, qword [rsp + 0x38]
lea rax, [rsp + 0x70]
add rdx, 0x50
mov qword [rsp + 0x60], 0xffffffffffffffff
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test byte [rsp + 0x60], 4
mov rdi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x90]
jne 0x14000119d
xor al, al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400cd790
add rsp, 0x88
ret
mov al, 1
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400cd790
add rsp, 0x88
ret
Function at 0x1400cf53c
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 0x1400cf3cf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400cf3cf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400cf3cf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400cf3cf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400cf3cf
cmp dword [rcx + 0x84], 0xe
jbe 0x1400cf3cf
cmp dword [rcx + 0xf8], 0
je 0x1400cf3cf
mov ecx, ebx
call fcn.1400cf470
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.1400cf260
cmp dword [rbp + 0x20], 0
je 0x1400cf41c
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400cf424
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400cf368