joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18013f29c
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.180116a70
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x18013f326
cmp byte [rbp - 0x21], r15b
je 0x18013f321
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x18013f35c
call fcn.18012d0f8
test eax, eax
jne 0x18013f348
cmp byte [rbp - 0x21], r15b
je 0x18013f340
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x18013f35c
cmp byte [rbp - 0x21], r15b
je 0x18013f359
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.180116e44
test eax, eax
jne 0x18013f3fc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.180116a70
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x18013f39b
cmp byte [rbp - 0x21], r15b
je 0x18013f3d0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x18013f3d0
call fcn.18012d0f8
test eax, eax
jne 0x18013f3bc
cmp byte [rbp - 0x21], r15b
je 0x18013f3b5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x18013f3d0
cmp byte [rbp - 0x21], r15b
je 0x18013f3cd
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.180116e44
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x18013f3fc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x18013f3ff
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x18013f40d
mov rcx, rdi
call fcn.18012ca58
cmp byte [rbp + 0x3f], r15b
je 0x18013f41c
mov rcx, qword [rbp + 0x27]
call fcn.18012ca58
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 0x1801402e8
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.180132858
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180132858
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180140438
cmp rax, 0xffffffffffffffff
je 0x180140438
xor edi, edi
test rbp, rbp
jle 0x1801403e3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18012da7c
mov rbx, rax
test rax, rax
jne 0x180140370
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1801403d9
mov edx, 0x8000
mov ecx, r14d
call fcn.18014016c
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.18013004c
cmp eax, 0xffffffff
je 0x1801403b9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180140380
mov edx, r15d
mov ecx, r14d
call fcn.18014016c
jmp 0x1801403d9
cmp byte [rsi + 0x38], dil
je 0x1801403d0
cmp dword [rsi + 0x34], 5
jne 0x1801403d0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1801403d9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18012ca58
jmp 0x18014044c
jns 0x18014044c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180132858
cmp rax, 0xffffffffffffffff
jne 0x180140404
cmp byte [rsi + 0x30], dil
je 0x18014044c
mov edi, dword [rsi + 0x2c]
jmp 0x18014044c
mov ecx, r14d
call fcn.180131338
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18014044c
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 0x18014044c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180140445
mov eax, dword [rsi + 0x2c]
jmp 0x18014044a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180132858
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 0x1801409d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1801409f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1801409f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140003200
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rdi
cmp dword [0x14015f574], 0
lea rdi, [0x14015f570]
mov r11d, r8d
mov r9d, edx
mov r10, rcx
jne 0x1400032d8
mov qword [rsp + 0x10], rbx
xor edx, edx
mov rbx, rdi
nop dword [rax]
mov r8d, edx
lea rbx, [rbx + 4]
and r8d, 1
mov eax, edx
shr eax, 1
neg r8d
and r8d, 0xedb88320
inc edx
xor r8d, eax
mov eax, r8d
shr r8d, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, r8d
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [rbx - 4], eax
cmp edx, 0x100
jb 0x140003230
mov rbx, qword [rsp + 0x10]
not r11d
mov eax, r11d
test r9d, r9d
jle 0x14000330e
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r10]
lea r10, [r10 + 1]
movzx edx, al
xor rdx, rcx
shr eax, 8
xor eax, dword [rdi + rdx*4]
sub r9d, 1
jne 0x1400032f0
not eax
pop rdi
ret
movzx r9d, byte [r10]
lea r8, [r10 + 1]
test r9b, r9b
je 0x14000334f
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x140003333
cmp byte [r8], r9b
jne 0x140003333
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rdi + rdx*4]
test r9b, r9b
jne 0x140003320
not eax
pop rdi
ret
Function at 0x140013580
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push r15
sub rsp, 0x20
mov rdi, qword [0x14015ef10]
xor esi, esi
mov r15, rcx
mov dword [rdi + 0x2d9c], esi
test rcx, rcx
je 0x1400136aa
mov qword [rsp + 0x40], rbx
lea rbx, [rdi + 0x2da0]
mov dword [rdi + 0x2d9c], esi
mov r8d, dword [rbx + 4]
mov qword [rsp + 0x48], rbp
test r8d, r8d
jns 0x1400135de
mov eax, r8d
mov rcx, rbx
cdq
sub eax, edx
mov edx, esi
sar eax, 1
add eax, r8d
test eax, eax
cmovg edx, eax
call fcn.140014690
mov eax, esi
mov dword [rbx], esi
cmp dword [rbx + 4], eax
jne 0x1400135f6
mov edx, 8
mov rcx, rbx
call fcn.140014690
mov eax, dword [rbx]
movsxd rcx, eax
mov ebp, esi
mov rax, qword [rbx + 8]
mov byte [rcx + rax], sil
inc dword [rbx]
cmp dword [rdi + 0x2db0], esi
jle 0x14001364a
mov qword [rsp + 0x50], r14
mov r14, rsi
nop word [rax + rax]
mov r9, qword [rdi + 0x2db8]
mov r8, rbx
add r9, r14
mov rcx, rdi
mov rdx, r9
call qword [r9 + reloc.WLDAP32.dll_Ordinal_32]
inc ebp
add r14, 0x30
cmp ebp, dword [rdi + 0x2db0]
jl 0x140013620
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
cmp qword [rbx + 8], rsi
je 0x140013659
mov esi, dword [rbx]
dec esi
mov rax, qword [rdi + 0x2da8]
lea rdx, [0x1400bc8f4]
test rax, rax
movsxd rsi, esi
lea rdi, [0x14015ef08]
mov rcx, r15
cmovne rdi, rax
call fcn.140003360
mov rbx, rax
test rax, rax
je 0x1400136a5
mov r9, rax
mov r8, rsi
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret
Function at 0x14001f0c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test r9d, 0xff000000
je 0x14001f277
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
movss xmm3, dword [rsp + 0x70]
xorps xmm0, xmm0
comiss xmm3, xmm0
mov esi, r9d
mov rdi, r8
mov rbp, rdx
mov rbx, rcx
jbe 0x14001f156
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
call fcn.14001eaa0
mov r8d, dword [rbx + 0x80]
mov r9d, esi
mov rdx, qword [rbx + 0x88]
mov rcx, rbx
call fcn.14001e0d0
mov ecx, dword [rbx + 0x84]
test ecx, ecx
jns 0x14001f147
mov eax, ecx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, ecx
lea rcx, [rbx + 0x80]
test eax, eax
cmovg edx, eax
call fcn.1400142f0
mov dword [rbx + 0x80], 0
jmp 0x14001f263
mov edx, 6
movaps xmmword [rsp + 0x30], xmm6
lea r8d, [rdx - 2]
call fcn.14001d000
movzx edx, word [rbx + 0x48]
mov rax, qword [rbx + 0x38]
movss xmm1, dword [rdi]
movss xmm2, dword [rbp + 4]
movss xmm3, dword [rbp]
lea ecx, [rdx + 1]
movss xmm6, dword [rax + 4]
movss xmm5, dword [rax]
movss xmm4, dword [rdi + 4]
mov rax, qword [rbx + 0x58]
mov word [rax], dx
mov rax, qword [rbx + 0x58]
mov word [rax + 2], cx
lea ecx, [rdx + 2]
mov rax, qword [rbx + 0x58]
mov word [rax + 4], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 6], dx
add dx, 3
mov rax, qword [rbx + 0x58]
mov word [rax + 8], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 0xa], dx
movsd xmm0, qword [rbp]
mov rax, qword [rbx + 0x50]
movsd qword [rax], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 8], xmm5
movss dword [rax + 0xc], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x10], esi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x14], xmm1
movss dword [rax + 0x18], xmm2
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x1c], xmm5
movss dword [rax + 0x20], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x24], esi
movsd xmm0, qword [rdi]
mov rax, qword [rbx + 0x50]
movsd qword [rax + 0x28], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x30], xmm5
movss dword [rax + 0x34], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x38], esi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x3c], xmm3
movss dword [rax + 0x40], xmm4
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x44], xmm5
movss dword [rax + 0x48], xmm6
mov rax, qword [rbx + 0x50]
movaps xmm6, xmmword [rsp + 0x30]
mov dword [rax + 0x4c], esi
add qword [rbx + 0x50], 0x50
add dword [rbx + 0x48], 4
add qword [rbx + 0x58], 0xc
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140038d70
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x260
mov rbx, rdx
mov rdi, rcx
mov edx, 0x100
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor esi, esi
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], si
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], si
jne 0x140038dc3
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.140045f10
nop
mov r8d, Ordinal_33
lea rdx, str.SoftwareDistributionDownload_
lea rcx, [rsp + 0x20]
call fcn.140045590
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rsi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140038e68
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140038e63
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140038e63
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400aa4d4
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], si
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140038e88
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rsp + 0x40]
call fcn.140045590
mov qword [rdi], rsi
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140038f04
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140038efe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140038efe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400aa4d4
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140038f3f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140038f3a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140038f66
mov rcx, r8
call fcn.1400aa4d4
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
mov rax, rdi
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140038f70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
mov rdi, rcx
cmp qword [rcx + 0x18], 8
mov dword [rsp + 0x50], ebp
jb 0x140038f92
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 2
xor r8d, r8d
mov edx, 0x10000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x140039026
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140039005
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140039000
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400390d2
mov rcx, r8
call fcn.1400aa4d4
mov al, 1
mov rsi, qword [rsp + 0x68]
mov word [rdi], bp
mov qword [rdi + 0x10], rbp
mov rbp, qword [rsp + 0x60]
mov qword [rdi + 0x18], 7
add rsp, 0x40
pop rdi
ret
cmp rsi, 0xffffffffffffffff
jne 0x140039040
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x1400390b4
lea rdx, [rdx*2 + 2]
jmp 0x14003908b
lea r9, [rsp + 0x50]
mov qword [rsp + 0x58], rbx
mov r8d, 0x1e00
mov qword [rsp + 0x20], rbp
lea rdx, [0x14015bfe0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rdi + 0x18]
test bl, bl
mov rbx, qword [rsp + 0x58]
jne 0x1400390bb
cmp rax, 8
jb 0x1400390b4
lea rdx, [rax*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400390af
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400390d2
mov rcx, r8
call fcn.1400aa4d4
xor al, al
jmp 0x140039007
cmp rax, 8
jb 0x140039005
lea rdx, [rax*2 + 2]
jmp 0x140038fd8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x1400390e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
mov rdi, rcx
cmp qword [rcx + 0x18], 8
mov dword [rsp + 0x50], ebp
jb 0x140039102
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 2
xor r8d, r8d
mov edx, 0x10000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x140039196
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140039175
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140039170
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140039242
mov rcx, r8
call fcn.1400aa4d4
mov al, 1
mov rsi, qword [rsp + 0x68]
mov word [rdi], bp
mov qword [rdi + 0x10], rbp
mov rbp, qword [rsp + 0x60]
mov qword [rdi + 0x18], 7
add rsp, 0x40
pop rdi
ret
cmp rsi, 0xffffffffffffffff
jne 0x1400391b0
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140039224
lea rdx, [rdx*2 + 2]
jmp 0x1400391fb
lea r9, [rsp + 0x50]
mov qword [rsp + 0x58], rbx
mov r8d, 0x21a00
mov qword [rsp + 0x20], rbp
lea rdx, [0x14013a0e0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rdi + 0x18]
test bl, bl
mov rbx, qword [rsp + 0x58]
jne 0x14003922b
cmp rax, 8
jb 0x140039224
lea rdx, [rax*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14003921f
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140039242
mov rcx, r8
call fcn.1400aa4d4
xor al, al
jmp 0x140039177
cmp rax, 8
jb 0x140039175
lea rdx, [rax*2 + 2]
jmp 0x140039148
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x1400398c0
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
xor r8d, r8d
mov dword [rbp - 0x30], 0x50575056
mov word [rbp - 8], r8w
mov eax, r8d
mov dword [rbp - 0x2c], 0x50515022
mov edx, 0x500a
mov dword [rbp - 0x28], 0x50665063
mov dword [rbp - 0x24], 0x50635071
mov dword [rbp - 0x20], 0x506a5077
mov dword [rbp - 0x1c], 0x50225025
mov dword [rbp - 0x18], 0x50725045
mov dword [rbp - 0x14], 0x506f506a
mov dword [rbp - 0x10], 0x50785073
mov dword [rbp - 0xc], 0x506e5079
mov byte [rbp - 6], 1
nop dword [rax]
nop word [rax + rax]
lea ecx, [rdx + rax]
xor word [rbp + rax*2 - 0x30], cx
inc rax
cmp rax, 0x14
jb 0x140039930
mov qword [rsp + 0x30], r8
lea rcx, [rbp - 0x30]
mov dword [rsp + 0x28], r8d
xor r9d, r9d
mov byte [rbp - 6], r8b
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x14015ef40], rax
dec rax
cmp rax, 0xfffffffffffffffd
setbe al
add rsp, 0x70
pop rbp
ret

Function at 0x140039990
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
xor edx, edx
mov rdi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400399f4
nop dword [rax + rax]
mov rdx, rdi
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov rcx, rbx
test eax, eax
je 0x140039a14
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400399d0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x14015ef38]
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
mov rbx, qword [rsp + 0x270]
mov dword [0x14015ef38], eax
add rsp, 0x260
pop rdi
ret

Function at 0x140039aa0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x270
mov rbx, rcx
cmp byte [0x14015ef0a], 0
je 0x140039af4
lea rcx, [rsp + 0x50]
call fcn.140044860
nop
lea rcx, [rsp + 0x50]
call fcn.140044710
lea rdx, str.windows
lea rcx, [rsp + 0x50]
call fcn.140046a50
lea rcx, [rsp + 0x50]
call fcn.1400446d0
nop
lea rcx, [rsp + 0x50]
call fcn.140038d00
lea rcx, [rsp + 0x160]
call fcn.140044760
nop
mov r8, rbx
lea rdx, str.Detected:
lea rcx, [rsp + 0x30]
call fcn.140046700
nop
mov rdx, rax
lea rcx, [rsp + 0x160]
call fcn.140046c20
lea rdx, [0x140046a10]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
lea rcx, [rsp + 0x30]
call fcn.140045770
lea rcx, [rsp + 0x160]
call fcn.1400446d0
mov ecx, 0x539
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x14003a6f0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0xfc0]
mov eax, 0x10c0
call fcn.1400aaa00
sub rsp, rax
mov eax, dword [0x14015ef38]
lea r8, [rsp + 0x40]
xor esi, esi
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], rsi
lea rax, [rbp + 0xfe0]
mov ebx, edx
mov rdi, rcx
mov rcx, qword [0x14015ef40]
mov edx, 0x3ff6cd38
mov qword [rsp + 0x30], rsi
lea r9d, [rsi + 0x10]
mov dword [rsp + 0x28], esi
mov qword [rbp + 0xfe0], rsi
mov dword [rsp + 0x44], esi
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov qword [rsp + 0x38], rsi
lea r9d, [rsi + 0x28]
mov eax, ebx
mov qword [rsp + 0x30], rsi
sar eax, 0x10
lea r8, [rsp + 0x50]
mov dword [rsp + 0x28], esi
mov edx, 0x3ff791ec
mov qword [rbp + 0xff0], rsi
mov dword [rsp + 0x54], esi
lea ecx, [rax*8 + 0x10]
mov dword [rsp + 0x71], esi
mov rax, qword [rbp + 0xfe0]
add rax, 0xa2e4d40
mov word [rsp + 0x75], si
add rcx, rax
mov byte [rsp + 0x77], sil
lea rax, [rbp + 0xff0]
mov qword [rsp + 0x58], rcx
mov rcx, qword [0x14015ef40]
mov qword [rsp + 0x60], rax
mov eax, dword [0x14015ef38]
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x68], 8
mov byte [rsp + 0x70], sil
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor edx, edx
lea rcx, [rbp + 0x7b0]
mov r8d, 0x808
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rbp + 0xff0]
lea r9d, [rsi + 0x28]
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], rsi
mov edx, 0x3ff791ec
movzx ecx, bx
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x7c], esi
mov dword [rbp - 0x67], esi
lea rcx, [rax + rcx*4]
mov word [rbp - 0x63], si
lea rax, [rbp + 0x7b0]
mov qword [rbp - 0x80], rcx
mov rcx, qword [0x14015ef40]
mov qword [rbp - 0x78], rax
mov eax, dword [0x14015ef38]
mov dword [rsp + 0x78], eax
mov byte [rbp - 0x61], sil
mov qword [rbp - 0x70], 0x808
mov byte [rbp - 0x68], sil
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea rcx, [rbp - 0x60]
mov r8d, 0x808
lea rdx, [rbp + 0x7b0]
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [0x14015f020]
call fcn.140046c40
mov qword [rbp + 0xfe0], rax
movzx r9d, si
movzx eax, word [rbp + 0x7b4]
shr ax, 1
cmp si, ax
jae 0x14003a8f3
nop dword [rax]
nop dword [rax + rax]
movzx ecx, r9w
lea r8, [rbp - 0x5a]
add r8, rcx
movzx ecx, r9b
and ecx, 3
inc r9w
movzx edx, byte [rbp + rcx + 0xfe0]
xor dl, byte [r8]
xor dl, al
mov byte [r8], dl
movzx eax, word [rbp - 0x5c]
shr ax, 1
cmp r9w, ax
jb 0x14003a8c0
mov qword [rdi], rsi
lea rax, [rbp - 0x5a]
mov qword [rdi + 0x10], rsi
mov r8, 0xffffffffffffffff
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], sil
inc r8
cmp byte [rax + r8], sil
jne 0x14003a910
lea rdx, [rbp - 0x5a]
mov rcx, rdi
call fcn.140046220
mov rbx, qword [rsp + 0x10e8]
mov rax, rdi
add rsp, 0x10c0
pop rdi
pop rsi
pop rbp
ret