joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002fae
Capabilities:
Clear file content

Disassembly:
jmp 0x14015d940
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x98
mov r8, qword [rsp + 0xa8]
mov edx, dword [rsp + 0xa0]
lea rcx, [rsp + 0x68]
call fcn.140001258
cmp qword [rsp + 0x68], 0xffffffffffffffff
je 0x14015d979
cmp qword [rsp + 0x70], 0xffffffffffffffff
jne 0x14015d997
call fcn.140002d6f
mov eax, dword [rax]
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x68]
call fcn.140002734
mov eax, dword [rsp + 0x40]
jmp 0x14015dbb3
cmp qword [rsp + 0x78], 0
jle 0x14015daf8
mov dword [rsp + 0x20], 0x4a
lea r9, str.minkernelcrtsucrt_src_appcrtlowiochsize.cpp
mov r8d, 2
mov edx, 1
mov ecx, 0x1000
call fcn.140006857
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.14000362f
lea rcx, [rsp + 0x38]
call fcn.14000307b
movzx eax, al
test eax, eax
jne 0x14015da18
call fcn.140002d6f
mov dword [rax], 0xc
call fcn.140002d6f
mov eax, dword [rax]
mov dword [rsp + 0x44], eax
lea rcx, [rsp + 0x38]
call fcn.140001cd5
lea rcx, [rsp + 0x68]
call fcn.140002734
mov eax, dword [rsp + 0x44]
jmp 0x14015dbb3
mov edx, 0x8000
mov ecx, dword [rsp + 0xa0]
call fcn.1400049d5
mov dword [rsp + 0x50], eax
cmp qword [rsp + 0x78], 0x1000
jl 0x14015da42
mov dword [rsp + 0x30], 0x1000
jmp 0x14015da4a
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x38]
call fcn.1400040ac
mov r8d, dword [rsp + 0x48]
mov rdx, rax
mov ecx, dword [rsp + 0xa0]
call fcn.140005439
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0xffffffff
jne 0x14015dab8
call fcn.140004408
cmp dword [rax], 5
jne 0x14015da90
call fcn.140002d6f
mov dword [rax], 0xd
call fcn.140002d6f
mov eax, dword [rax]
mov dword [rsp + 0x4c], eax
lea rcx, [rsp + 0x38]
call fcn.140001cd5
lea rcx, [rsp + 0x68]
call fcn.140002734
mov eax, dword [rsp + 0x4c]
jmp 0x14015dbb3
movsxd rax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jg 0x14015da2d
mov edx, dword [rsp + 0x50]
mov ecx, dword [rsp + 0xa0]
call fcn.1400049d5
lea rcx, [rsp + 0x38]
call fcn.140001cd5
jmp 0x14015db9d
cmp qword [rsp + 0x78], 0
jge 0x14015db9d
xor r8d, r8d
mov rdx, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0xa0]
call fcn.140001d89
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0xffffffffffffffff
jne 0x14015db49
call fcn.140002d6f
mov eax, dword [rax]
mov dword [rsp + 0x54], eax
lea rcx, [rsp + 0x68]
call fcn.140002734
mov eax, dword [rsp + 0x54]
jmp 0x14015dbb3
mov ecx, dword [rsp + 0xa0]
call fcn.14000645b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14015db9d
call fcn.140002d6f
mov dword [rax], 0xd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], eax
call fcn.140004408
mov ecx, dword [rsp + 0x58]
mov dword [rax], ecx
call fcn.140002d6f
mov eax, dword [rax]
mov dword [rsp + 0x5c], eax
lea rcx, [rsp + 0x68]
call fcn.140002734
mov eax, dword [rsp + 0x5c]
jmp 0x14015dbb3
mov dword [rsp + 0x60], 0
lea rcx, [rsp + 0x68]
call fcn.140002734
mov eax, dword [rsp + 0x60]
add rsp, 0x98
ret
Function at 0x14000321a
Capabilities:
Get common file path

Disassembly:
jmp 0x140013860
push rdi
sub rsp, 0x50
lea rdi, [rsp + 0x20]
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1401c40e0]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea r9, [rsp + 0x28]
xor r8d, r8d
mov edx, 0x8000
lea rcx, [0x140178f70]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
je 0x1400138c5
lea rdx, str.problem_getting_appdata_folder
lea rcx, [0x1401c7c90]
call fcn.1400018ed
lea rdx, [0x14000132a]
mov rcx, rax
call fcn.140003959
mov rcx, qword [rsp + 0x28]
call fcn.140005d80
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1401725b8]
call fcn.1400052db
mov rax, rdi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140003747
add rsp, 0x50
pop rdi
ret

Function at 0x1400034a4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1400e4250
mov rax, rcx
neg rcx
test rax, 7
je 0x1400e426d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1400e42c8
test al, 7
jne 0x1400e4260
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1400e4281
mov rdx, qword [rax - 8]
test dl, dl
je 0x1400e42f2
test dh, dh
je 0x1400e42ec
shr rdx, 0x10
test dl, dl
je 0x1400e42e6
test dh, dh
je 0x1400e42e0
shr rdx, 0x10
test dl, dl
je 0x1400e42da
test dh, dh
je 0x1400e42d4
shr edx, 0x10
test dl, dl
je 0x1400e42ce
test dh, dh
jne 0x1400e4281
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1400034e5
Capabilities:
Query environment variable

Disassembly:
jmp 0x14013f80c
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 esi, esi
mov rbx, rax
test rax, rax
je 0x14013f8a9
mov rbp, rax
cmp word [rax], si
je 0x14013f855
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14013f83c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14013f838
sub rbp, rbx
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
add rbp, 2
mov r9d, 0x40
sar rbp, 1
add rbp, rbp
mov rcx, rbp
lea edx, [r9 - 0x3e]
call fcn.14000380a
mov rdi, rax
test rax, rax
je 0x14013f894
mov r8, rbp
mov rdx, rbx
mov rcx, rax
call fcn.140003760
mov rsi, rdi
mov edx, 2
xor ecx, ecx
call fcn.140001ea6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140003990
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x14009de00
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14009d780
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14009de3f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401df020]
jmp 0x14009de49
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x140003bed
Capabilities:
Query environment variable

Disassembly:
jmp 0x14013f6b0
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor r14d, r14d
mov rbx, rax
test rax, rax
je 0x14013f798
mov rsi, rax
cmp word [rax], r14w
je 0x14013f703
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r14w
jne 0x14013f6eb
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], r14w
jne 0x14013f6e7
mov qword [rsp + 0x38], r14
sub rsi, rbx
mov qword [rsp + 0x30], r14
add rsi, 2
sar rsi, 1
mov r8, rbx
mov r9d, esi
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], r14
xor ecx, ecx
call fcn.140004d09
movsxd rbp, eax
test eax, eax
je 0x14013f798
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov rcx, rbp
lea edx, [r9 - 0x64]
call fcn.14000380a
mov rdi, rax
test rax, rax
je 0x14013f786
mov qword [rsp + 0x38], r14
mov r9d, esi
mov qword [rsp + 0x30], r14
mov r8, rbx
mov dword [rsp + 0x28], ebp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.140004d09
test eax, eax
je 0x14013f786
mov rsi, rdi
mov rdi, r14
jmp 0x14013f789
mov rsi, r14
mov edx, 2
mov rcx, rdi
call fcn.140001ea6
jmp 0x14013f79b
mov rsi, r14
test rbx, rbx
je 0x14013f7a9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140003c06
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x14009dd30
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.14009d700
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14009dd71
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401df020]
jmp 0x14009dd77
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x140003cbf
Capabilities:
Get geographical location

Disassembly:
jmp 0x140119f20
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.140118ea0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140119f73
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x38]
call qword [0x1401df020]
jmp 0x140119f95
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.140002fea
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x48
ret

Function at 0x140003cc9
Capabilities:
Terminate process

Disassembly:
jmp 0x14007a7c0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140004048
Capabilities:
Print debug messages

Disassembly:
jmp 0x140150330
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x1401c40e0]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x140150356
jmp 0x1401503d3
mov rcx, qword [rbp + 0x30]
call fcn.1400034a4
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14015036f
jmp 0x1401503d3
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14015038c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140001ef1
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.1400024eb
test eax, eax
jne 0x1401503d3
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.140003747
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x1400045a7
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
jmp 0x140013b30
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
lea rdi, [rsp + 0x30]
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x70]
mov rax, qword [0x1401c40e0]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [0x1401718f8]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0x491
je 0x140013ba0
cmp dword [rsp + 0x44], 2
jne 0x140013be3
call fcn.140002289
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0x491
je 0x140013be1
cmp dword [rsp + 0x44], 2
jne 0x140013be3
jmp 0x140013c2b
mov dword [rsp + 0x48], 2
mov rcx, qword [rsp + 0x70]
call fcn.1400034a4
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x44], eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rsp
lea rdx, [0x140172760]
call fcn.1400052db
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003747
add rsp, 0x60
pop rdi
ret

Function at 0x140004773
Capabilities:
Parse pe header

Disassembly:
jmp 0x14007b530
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14007b550
xor al, al
jmp 0x14007b5d1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14007b563
xor al, al
jmp 0x14007b5d1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14007b58d
xor al, al
jmp 0x14007b5d1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14007b5a1
xor al, al
jmp 0x14007b5d1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14007b5b3
xor al, al
jmp 0x14007b5d1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14007b5cf
xor al, al
jmp 0x14007b5d1
mov al, 1
add rsp, 0x38
ret
Function at 0x140004f98
Capabilities:
Terminate process

Disassembly:
jmp 0x14009e700
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14009e72e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.140005b28
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400050a6
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140119d10
mov dword [rsp + 8], ecx
sub rsp, 0x38
call fcn.140118d20
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140119d45
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov ecx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x1401df020]
jmp 0x140119d4f
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x38
ret
Function at 0x140005759
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140119d70
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x38
call fcn.140118d60
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140119daf
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x1401df020]
jmp 0x140119dbe
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x38
ret
Function at 0x140005bb9
Capabilities:
Print debug messages

Disassembly:
jmp 0x14012dad0
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x140005d08
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x14009de70
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14009d7c0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14009deb9
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401df020]
jmp 0x14009dec8
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret
Function at 0x140005e98
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x140160650
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
sub rsp, 0x48
movzx eax, word [rsp + 0x58]
movd xmm0, eax
movdqa xmmword [rsp + 0x20], xmm0
pshuflw xmm0, xmmword [rsp + 0x20], 0
movdqa xmmword [rsp + 0x20], xmm0
movdqa xmm0, xmmword [rsp + 0x20]
pshufd xmm0, xmm0, 0
movdqa xmmword [rsp + 0x20], xmm0
mov rax, qword [rsp + 0x50]
and rax, 0xfff
cmp rax, 0xff0
ja 0x140160761
mov rax, qword [rsp + 0x50]
movdqu xmm0, xmmword [rax]
movdqa xmmword [rsp + 0x30], xmm0
movdqa xmm0, xmmword [rsp + 0x10]
pxor xmm0, xmmword [rsp + 0x10]
movdqa xmmword [rsp + 0x10], xmm0
movdqa xmm0, xmmword [rsp + 0x10]
pcmpeqw xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x10], xmm0
movdqa xmm0, xmmword [rsp + 0x30]
pcmpeqw xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x30], xmm0
movdqa xmm0, xmmword [rsp + 0x10]
por xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x10], xmm0
movdqa xmm0, xmmword [rsp + 0x10]
pmovmskb eax, xmm0
mov dword [rsp], eax
cmp dword [rsp], 0
je 0x140160751
mov eax, dword [rsp]
bsf eax, eax
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
add rax, qword [rsp + 0x50]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
movzx ecx, word [rsp + 0x58]
cmp eax, ecx
jne 0x140160741
mov rax, qword [rsp + 0x50]
mov qword [rsp + 8], rax
jmp 0x14016074a
mov qword [rsp + 8], 0
mov rax, qword [rsp + 8]
jmp 0x14016079c
mov rax, qword [rsp + 0x50]
add rax, 0x10
mov qword [rsp + 0x50], rax
jmp 0x140160797
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
movzx ecx, word [rsp + 0x58]
cmp eax, ecx
jne 0x140160779
mov rax, qword [rsp + 0x50]
jmp 0x14016079c
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
test eax, eax
jne 0x140160789
xor eax, eax
jmp 0x14016079c
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
jmp 0x14016068b
add rsp, 0x48
ret

Function at 0x140006104
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x140140a5c
jmp fcn.140005e98
Function at 0x140010890
Capabilities:
Create thread

Disassembly:
jmp 0x140010890
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x100
lea rdi, [rsp + 0x30]
mov ecx, 0x34
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x110]
mov rax, qword [0x1401c40e0]
xor rax, rsp
mov qword [rsp + 0xf0], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140004011]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x98], rax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140003a44]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0xb8], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x14000285b]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0xd8], rax
mov r9d, 0xffffffff
mov r8d, 1
lea rdx, [rsp + 0xd8]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov r9d, 0xffffffff
mov r8d, 1
lea rdx, [rsp + 0x98]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov r9d, 0xffffffff
mov r8d, 1
lea rdx, [rsp + 0xb8]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor eax, eax
mov edi, eax
mov rcx, rsp
lea rdx, [0x1401720d0]
call fcn.1400052db
mov eax, edi
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.140003747
add rsp, 0x100
pop rdi
ret
Function at 0x140013860
Capabilities:
Get common file path

Disassembly:
jmp 0x140013860
push rdi
sub rsp, 0x50
lea rdi, [rsp + 0x20]
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1401c40e0]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea r9, [rsp + 0x28]
xor r8d, r8d
mov edx, 0x8000
lea rcx, [0x140178f70]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
je 0x1400138c5
lea rdx, str.problem_getting_appdata_folder
lea rcx, [0x1401c7c90]
call fcn.1400018ed
lea rdx, [0x14000132a]
mov rcx, rax
call fcn.140003959
mov rcx, qword [rsp + 0x28]
call fcn.140005d80
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1401725b8]
call fcn.1400052db
mov rax, rdi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140003747
add rsp, 0x50
pop rdi
ret

Function at 0x140013a70
Capabilities:
Persist via run registry key

Disassembly:
jmp 0x140013a70
push rdi
sub rsp, 0x80
lea rdi, [rsp + 0x50]
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1401c40e0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1401718c8]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
je 0x140013aec
jmp 0x140013af7
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rsp
lea rdx, [0x1401726c8]
call fcn.1400052db
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140003747
add rsp, 0x80
pop rdi
ret

Function at 0x140013b30
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
jmp 0x140013b30
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
lea rdi, [rsp + 0x30]
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x70]
mov rax, qword [0x1401c40e0]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [0x1401718f8]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0x491
je 0x140013ba0
cmp dword [rsp + 0x44], 2
jne 0x140013be3
call fcn.140002289
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0x491
je 0x140013be1
cmp dword [rsp + 0x44], 2
jne 0x140013be3
jmp 0x140013c2b
mov dword [rsp + 0x48], 2
mov rcx, qword [rsp + 0x70]
call fcn.1400034a4
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x44], eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rsp
lea rdx, [0x140172760]
call fcn.1400052db
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003747
add rsp, 0x60
pop rdi
ret
Function at 0x140006680
Capabilities:
Get token membership

Disassembly:
sub rsp, 0x88
mov rax, qword [0x1400d57c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor ecx, ecx
mov word [rsp + 0x6c], 0x500
lea rax, [rsp + 0x60]
mov dword [rsp + 0x70], ecx
mov qword [rsp + 0x50], rax
mov r9d, 0x220
mov dword [rsp + 0x48], ecx
mov dl, 2
mov dword [rsp + 0x40], ecx
lea r8d, [rcx + 0x20]
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x68], ecx
lea rcx, [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x1400066f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140006718
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x14000670d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rsp + 0x70], 0
setne al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140071e90
add rsp, 0x88
ret