joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004c6c0
Capabilities:
Query environment variable

Disassembly:
jmp 0x14004c6c0
sub rsp, 0x148
mov rax, qword [0x1400c0078]
xor rax, rsp
mov qword [rsp + 0x130], rax
call fcn.14006c48c
mov byte [rsp + 0x20], 0
test rax, rax
je 0x14004c726
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x14004c726
lea rcx, [rsp + 0x20]
call qword [str.xQ_a_]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140059ac0
add rsp, 0x148
ret
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140059ac0
add rsp, 0x148
ret

Function at 0x140053130
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbp, r8
mov rsi, rdx
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rdx + rbx], 0
jne 0x140053150
test rbx, rbx
je 0x14005316a
lea rcx, [rbx + rbx]
call qword [section..data]
jmp 0x140053177
lea rcx, [0x1400c1634]
call qword [str.xQ_a_]
mov rdi, rax
test rax, rax
jne 0x140053187
lea eax, [rdi + 0x1b]
jmp 0x140053243
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.140053450
mov r9d, 1
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x140053230
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8002
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x140053223
mov rcx, qword [rsp + 0x30]
lea r8d, [rbx + rbx]
xor r9d, r9d
mov dword [rsp + 0x68], reloc.WS2_32.dll_recv
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x68]
mov r8, rbp
mov dword [rsp + 0x20], 0
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, rdi
mov dword [rbp + 0x10], eax
mov byte [rbp + 0x14], al
call qword [fcn.140062f64]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140053300
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1400c0078]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rsi, r8
mov dword [rsp + 0x40], 8
mov rbx, rdx
mov dword [rsp + 0x20], 0xf0000000
mov rdi, rcx
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1400533d1
xor eax, eax
lea rdx, [rsp + 0x64]
mov qword [rsp + 0x58], rax
mov rcx, rsi
mov qword [rsp + 0x60], rax
mov word [rsp + 0x58], 0x208
mov dword [rsp + 0x5c], 0x6601
mov dword [rsp + 0x60], 8
mov dword [rsp + 0x68], eax
call fcn.140053260
lea rcx, [rsp + 0x64]
mov edx, 8
call fcn.1400568f0
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x20], 0
lea r8d, [r9 + 0x14]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x1400533d5
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
jmp 0x14005341f
mov rax, qword [rdi]
xor r9d, r9d
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov qword [rbx], rax
xor edx, edx
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140059ac0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140058040
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [section..data]
mov rdi, rax
test rax, rax
jne 0x140058082
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400580c5
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov ebp, dword [rbx + 0x20]
mov rcx, qword [rdi + 8]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x140058122
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400580e0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140058163
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14008c7f0]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14008c7f1]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140058130
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140064a3c
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140064810
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140064810
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140064810
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140064810
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140064810
cmp dword [rcx + 0x84], 0xe
jbe 0x140064810
cmp dword [rcx + 0xf8], esi
je 0x140064810
mov ecx, r14d
call fcn.140064958
mov ecx, 2
call fcn.14006e3a8
nop
cmp byte [0x1400c2498], 0
jne 0x1400648da
mov r15d, 1
mov eax, r15d
xchg dword [0x1400c248c], eax
test ebx, ebx
jne 0x140064883
mov rdi, qword [0x1400c0078]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x1400c2490]
cmp rcx, rax
je 0x14006487a
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.1400040cc]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1400c27e8]
jmp 0x14006488f
cmp ebx, r15d
jne 0x140064895
lea rcx, [0x1400c2800]
call fcn.1400738f8
nop
test ebx, ebx
jne 0x1400648ac
lea rdx, [0x14008a900]
lea rcx, [0x14008a8e0]
call fcn.140073bc0
lea rdx, [0x14008a910]
lea rcx, [0x14008a908]
call fcn.140073bc0
movzx eax, byte [0x1400c2498]
test esi, esi
cmove eax, r15d
mov byte [0x1400c2498], al
jmp 0x1400648da
mov ecx, 2
call fcn.14006e3fc
test esi, esi
jne 0x1400648f1
mov ecx, r14d
call fcn.14006490c
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400647a0
Function at 0x140076f24
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x140076dc4
call fcn.1400629a0
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call fcn.14005e1d4
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140076dac
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x140076dac
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x140076df6
lock or dword [rax + 0x14], 0x10
jmp 0x140076dac
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x140076e13
mov rcx, qword [rbp + 0x10]
call fcn.140077574
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140076d54
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.140075720
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x140076e6a
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x140076dac
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x140076ed6
mov rcx, qword [rbp + 0x10]
call fcn.140076d54
cmp eax, 0xffffffff
je 0x140076ebd
mov rcx, qword [rbp + 0x10]
call fcn.140076d54
cmp eax, 0xfffffffe
je 0x140076ebd
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140076d54
movsxd rdi, eax
lea rsi, [0x1400c2870]
mov rcx, rbx
sar rdi, 6
call fcn.140076d54
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x140076ec4
lea rax, [0x1400c03d0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140076ed6
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x140076f0c
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x140076f08
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x140076f08
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x140076daf
jmp 0x140076d7c
Function at 0x1400872e4
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x48
mov qword [rax - 0x38], 0xfffffffffffffffe
mov rbx, r9
mov rdi, r8
mov rsi, rdx
mov ecx, 1
mov dword [rax + 0x20], ecx
mov edx, 0x800
mov dword [rax + 8], edx
mov rax, qword [r9]
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, edx
or eax, ecx
jge 0x140087333
mov rcx, rbx
call fcn.14000c7d4
mov rax, qword [rbx]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x88]
mov r8, qword [rdi]
mov rdx, qword [rsi]
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov ebp, eax
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14008736e
xor eax, eax
jmp 0x14008737b
movsxd rdx, dword [rcx - 0xc]
call fcn.140067c28
test eax, eax
js 0x1400873d8
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x1400873d8
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov byte [rcx + rax], 0
test ebp, ebp
sete bl
mov rdx, qword [rsi]
sub rdx, 0x18
or esi, 0xffffffff
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x1400873b6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rdi]
sub rdx, 0x18
mov ecx, esi
lock xadd dword [rdx + 0x10], ecx
add ecx, esi
test ecx, ecx
jg 0x1400873d4
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
mov al, bl
jmp 0x1400873e3
mov ecx, 0x80070057
call fcn.14000c8e8
nop
add rsp, 0x48
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400873ec
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov qword [r11 + 8], rcx
push r14
sub rsp, 0x30
and qword [r11 + 8], 0
lea rax, [r11 + 8]
mov rsi, r9
mov qword [r11 - 0x18], rax
mov rdi, r8
mov r14, rdx
mov rdx, qword [rdx]
mov r9d, 0x20206
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov ebx, 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140087471
mov rcx, qword [rsi]
lea rdx, [0x14009c757]
mov r8, qword [rdi]
mov r9d, ebx
mov eax, dword [rcx - 0x10]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov rcx, qword [rsp + 0x40]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [r14]
test ebx, ebx
sete bl
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140087493
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdx, qword [rdi]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400874b0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdx, qword [rsi]
sub rdx, 0x18
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x1400874ce
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
mov rsi, qword [rsp + 0x50]
mov al, bl
mov rbx, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x1400874e8
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x50
mov qword [r11 - 0x28], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov rbx, r9
mov rsi, r8
mov r14, rdx
mov edi, 1
and qword [r11 - 0x30], 0
lea rax, [r11 - 0x30]
mov qword [r11 - 0x48], rax
mov r9d, 0x20219
xor r8d, r8d
mov rdx, qword [rdx]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400875df
mov dword [rsp + 0x30], edi
mov edx, 0x800
mov dword [rsp + 0x70], edx
mov rax, qword [rbx]
sub edi, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, edx
or eax, edi
jge 0x14008756b
mov rcx, rbx
call fcn.14000c7d4
mov rax, qword [rbx]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov r8, qword [rsi]
lea rdx, [0x14009c75e]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov edi, eax
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1400875a5
xor eax, eax
jmp 0x1400875b2
movsxd rdx, dword [rcx - 0xc]
call fcn.140067c28
test eax, eax
js 0x1400875d4
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x1400875d4
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov byte [rcx + rax], 0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400875df
mov ecx, 0x80070057
call fcn.14000c8e8
int3
test edi, edi
sete bl
mov rdx, qword [r14]
sub rdx, 0x18
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x140087605
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
mov ecx, edi
lock xadd dword [rdx + 0x10], ecx
add ecx, edi
test ecx, ecx
jg 0x140087623
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
mov al, bl
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret

Function at 0x140087638
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rax - 0x10], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rdi, rdx
mov rbx, rcx
and dword [rax - 0x18], 0
call fcn.14000cb58
mov rcx, rax
test rax, rax
jne 0x140087672
mov ecx, 0x80004005
call fcn.14000c8e8
int3
mov rax, qword [rax]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rbx], rax
mov dword [rsp + 0x20], 1
and qword [rsp + 0x50], 0
lea r9, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x1400876c1
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x1400876c1
mov rcx, rbx
call fcn.14000bb80
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1400876d0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x1400c0078]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edi, edi
mov rsi, rcx
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x104
mov ebx, eax
call fcn.14005c790
lea rdx, [rsp + 0x30]
mov ecx, ebx
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x14008776d
mov r8, qword [rsp + 0x30]
test r8, r8
je 0x14008776d
lea rax, [rsp + 0x40]
xor r9d, r9d
lea edx, [rdi + 0x1c]
mov qword [rsp + 0x20], rax
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea r8, [rsp + 0x40]
mov rcx, rsi
lea rdx, [0x14009e0cc]
call fcn.14000be60
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dil, 1
mov al, dil
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140059ac0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140089000
Capabilities:
Move file

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x178]
sub rsp, 0x270
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x1400c0078]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov byte [0x1400c2fe5], 1
mov ebx, 0x104
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.14005c790
mov r8d, ebx
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor edx, edx
lea r8d, [rdx + 4]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x50]
call fcn.14005c790
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov r8, rax
mov edx, ebx
lea rcx, [rbp + 0x50]
call fcn.1400633b8
lea rcx, [rbp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathRemoveExtensionA]
lea rdx, str.sc_delete
lea rcx, [rsp + 0x28]
call fcn.14000c518
nop
lea r8, [rbp + 0x50]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14000b204
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1400890e3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rsp + 0x20]
call fcn.140064124
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14008910c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140059ac0
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rbp
ret
Function at 0x14008972c
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x180
mov rax, qword [0x1400c0078]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor ebx, ebx
mov dword [rsp + 0x30], 4
mov r14, rdx
mov dword [rsp + 0x34], ebx
mov ebp, ecx
mov dword [rsp + 0x40], pe_nt_image_headers64
xor edx, edx
lea ecx, [rbx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14008984e
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
cmp eax, 1
jne 0x140089845
lea rdx, [rsp + 0x6c]
lea rcx, str.explorer.exe
call fcn.140085b60
test eax, eax
jne 0x140089827
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x140089827
mov r8, r14
mov edx, 0xa
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14008980d
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0x30]
mov rcx, qword [r14]
lea r8, [rsp + 0x34]
mov edx, listen
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14008980d
cmp ebp, dword [rsp + 0x34]
je 0x14008983a
cmp qword [r14], rbx
je 0x14008981e
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r14], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32Next]
jmp 0x140089794
mov rcx, rdi
mov bl, 1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140059ac0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x18000a7b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov eax, edx
mov edi, 0x40
shl rax, 4
mov rbx, rcx
cmp rax, 0x400
cmovbe edi, edx
cmp edi, dword [rcx]
je 0x18000a926
mov rax, qword [0x1801323b8]
test rax, rax
je 0x18000a7e7
call rax
mov ecx, edi
shl rcx, 4
call fcn.180006110
mov rcx, qword [0x1801323c0]
mov rdi, rax
test rcx, rcx
je 0x18000a803
call rcx
test rdi, rdi
je 0x18000a926
mov rcx, qword [rbx + 0x10]
mov qword [rsp + 0x30], rsi
call fcn.1800065a0
mov rcx, rdi
mov qword [rbx + 0x10], rdi
call qword [0x18012ae60]
movsxd rsi, eax
xor edx, edx
shr rsi, 4
mov rcx, rdi
mov r8d, esi
shl r8, 4
mov dword [rbx], esi
call fcn.1800d33c0
mov rcx, qword [rbx + 8]
xor r10d, r10d
mov qword [rbx + 8], r10
test rcx, rcx
je 0x18000a911
lea r11, [0x180115400]
nop dword [rax]
mov r9, qword [rcx + 0x18]
mov eax, r10d
movzx edx, byte [r9]
test dl, dl
je 0x18000a891
nop
movzx edx, dl
lea r9, [r9 + 1]
movzx r8d, byte [rdx + r11]
lea edx, [rax*8]
xor r8d, edx
movzx edx, byte [r9]
xor eax, r8d
test dl, dl
jne 0x18000a870
mov r9, qword [rcx]
xor edx, edx
div esi
mov r8d, edx
shl r8, 4
add r8, rdi
je 0x18000a8e9
mov eax, dword [r8]
test eax, eax
je 0x18000a8b1
mov rdx, qword [r8 + 8]
jmp 0x18000a8b4
mov rdx, r10
inc eax
mov qword [r8 + 8], rcx
mov dword [r8], eax
test rdx, rdx
je 0x18000a8e9
mov qword [rcx], rdx
mov rax, qword [rdx + 8]
mov qword [rcx + 8], rax
mov rax, qword [rdx + 8]
test rax, rax
je 0x18000a8df
mov qword [rax], rcx
mov qword [rdx + 8], rcx
jmp 0x18000a905
mov qword [rbx + 8], rcx
mov qword [rdx + 8], rcx
jmp 0x18000a905
mov rax, qword [rbx + 8]
mov qword [rcx], rax
mov rax, qword [rbx + 8]
test rax, rax
je 0x18000a8fd
mov qword [rax + 8], rcx
mov qword [rcx + 8], r10
mov qword [rbx + 8], rcx
mov rcx, r9
test r9, r9
jne 0x18000a860
mov rsi, qword [rsp + 0x30]
mov eax, 1
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret