joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5bd110
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0x60
mov rbp, rsp
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x70], rcx
mov byte [rbp + 0x78], dl
nop
mov rcx, qword [0x004ca028]
mov dl, 1
mov r8, qword [rbp + 0x70]
mov r9w, 2
call fcn.004fff70
mov qword [rbp + 0x58], rax
nop
mov rcx, qword [rbp + 0x58]
mov rax, qword [rbp + 0x58]
mov rax, qword [rax]
call qword [rax]
lea rcx, [rbp + 0x50]
mov rdx, qword [0x005bd0c8]
mov r8d, 1
mov r9, rax
call fcn.00413fe0
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x40], rax
cmp qword [rbp + 0x40], 0
je 0x5bd189
mov rax, qword [rbp + 0x40]
mov rax, qword [rax - 8]
mov qword [rbp + 0x40], rax
mov rcx, qword [rbp + 0x58]
mov rdx, qword [rbp + 0x50]
mov r8d, dword [rbp + 0x40]
mov rax, qword [rbp + 0x58]
mov rax, qword [rax]
call qword [rax + 0x18]
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x38], rax
cmp qword [rbp + 0x38], 0
je 0x5bd1ba
mov rax, qword [rbp + 0x38]
mov rax, qword [rax - 8]
mov qword [rbp + 0x38], rax
xor eax, eax
mov ecx, dword [rbp + 0x38]
sub ecx, 1
mov dword [rbp + 0x4c], eax
cmp dword [rbp + 0x4c], ecx
jg 0x5bd1ed
sub ecx, eax
add ecx, 1
mov rax, qword [rbp + 0x50]
movsxd rdx, dword [rbp + 0x4c]
lea rax, [rax + rdx]
movzx rdx, byte [rbp + 0x78]
xor byte [rax], dl
add dword [rbp + 0x4c], 1
sub ecx, 1
test ecx, ecx
jne 0x5bd1cf
nop
mov rcx, qword [rbp + 0x58]
xor edx, edx
call fcn.004fd330
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x30], rax
cmp qword [rbp + 0x30], 0
je 0x5bd214
mov rax, qword [rbp + 0x30]
mov rax, qword [rax - 8]
mov qword [rbp + 0x30], rax
mov rcx, qword [rbp + 0x58]
mov rdx, qword [rbp + 0x50]
mov r8d, dword [rbp + 0x30]
mov rax, qword [rbp + 0x58]
mov rax, qword [rax]
call qword [rax + 0x20]
nop
mov rcx, qword [rbp + 0x58]
call fcn.0040c890
nop
lea rcx, [rbp + 0x50]
mov rdx, qword [0x005bd0c8]
call fcn.004141b0
lea rsp, [rbp + 0x60]
pop rbp
ret

Function at 0x5bd8f0
Capabilities:
Set file attributes

Disassembly:
push rbp
sub rsp, 0x190
mov rbp, rsp
mov qword [rbp + 0x38], rcx
mov dword [rbp + 0x44], edx
mov qword [rbp + 0x48], r8
mov qword [rbp + 0x50], 0
nop
lea rcx, [rbp + 0x58]
call fcn.0040f5b0
cmp eax, 1
setle cl
movzx rcx, cl
mov dword [rbp + 0x18c], ecx
test eax, eax
jne 0x5bd986
lea rcx, [rbp + 0x58]
lea rdx, [0x005bd9d0]
mov r8, qword [rbp + 0x38]
mov r9d, dword [rbp + 0x44]
mov rax, qword [rbp + 0x48]
mov qword [rsp + 0x20], rax
call fcn.0041a2a0
nop
lea rcx, [rbp + 0x50]
call fcn.005bd290
mov rcx, qword [rbp + 0x50]
call fcn.00410f00
mov rcx, rax
mov edx, 6
call sub.kernel32.dll_SetFileAttributesW
nop
lea rcx, [rbp + 0x50]
call fcn.0040fba0
jmp 0x5bd981
call fcn.0040f700
mov eax, dword [rbp + 0x18c]
lea rsp, [rbp + 0x190]
pop rbp
ret
Function at 0x140003000
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx]
mov r9d, 0x270
mov rbx, rcx
cmp eax, r9d
jne 0x14000305b
lea r8, [rcx + 8]
nop word [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x140003020
jmp 0x140003067
cmp eax, 0x4e0
jb 0x140003067
call fcn.140003530
mov eax, dword [rbx]
mov edx, dword [rbx + rax*4 + 4]
inc eax
mov dword [rbx], eax
mov ecx, edx
mov eax, dword [rbx + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 0x20
pop rbx
ret

Function at 0x1400030b0
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x8c0
mov rax, qword [0x1400431a0]
xor rax, rsp
mov qword [rsp + 0x8b0], rax
xor edx, edx
mov rbx, rcx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.1400139c0
xor eax, eax
mov dword [rsp + 0x70], 0x68
mov r8, rbx
mov qword [rsp + 0x50], rax
lea rdx, [0x14002d698]
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0xe0]
mov qword [rsp + 0x60], rax
call fcn.140003800
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0xe0]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140003188
mov rcx, qword [rsp + 0x50]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x8b0]
xor rcx, rsp
call fcn.1400126d0
add rsp, 0x8c0
pop rbx
ret
Function at 0x1400031b0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rdi
mov eax, 0x13f0
call fcn.140012660
sub rsp, rax
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x1400], rbx
mov qword [rsp + 0x1408], rsi
mov rax, qword [0x1400431a0]
xor rax, rsp
mov qword [rsp + 0x13e0], rax
mov edi, edx
mov ebx, ecx
mov qword [rsp + 0x40], 0xf
mov qword [rsp + 0x38], 0
mov byte [rsp + 0x28], 0
xor r8d, r8d
lea rdx, [0x14002da88]
lea rcx, [rsp + 0x28]
call fcn.140002940
nop
call fcn.140011f48
nop
mov rax, qword [rsp + 0x40]
cmp rax, 0x10
jb 0x140003278
inc rax
mov rcx, qword [rsp + 0x28]
cmp rax, 0x1000
jb 0x140003273
test cl, 0x1f
je 0x140003246
call fcn.140018898
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140003255
call fcn.140018898
int3
sub rcx, rax
cmp rcx, 8
jae 0x140003264
call fcn.140018898
int3
cmp rcx, 0x27
jbe 0x140003270
call fcn.140018898
int3
mov rcx, rax
call fcn.140012730
call fcn.140011f48
mov dword [rsp + 0x13d4], 0xffffffff
mov dword [rsp + 0x54], eax
mov r8d, 1
mov edx, r8d
nop word [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, r8d
mov dword [rsp + rdx*4 + 0x54], eax
inc r8d
inc rdx
cmp rdx, 0x270
jl 0x1400032a0
mov dword [rsp + 0x50], 0x270
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 0x20
mov dword [rsp + 0x38], 0xffffffff
mov esi, 0x80000000
add ebx, esi
sub edi, ebx
lea edx, [rdi + rsi]
lea rcx, [rsp + 0x28]
cmp edx, 0xffffffff
jne 0x140003303
call fcn.140003460
jmp 0x14000330a
inc edx
call fcn.140002f50
lea rax, [rax + rsi]
add eax, ebx
mov rcx, qword [rsp + 0x13e0]
xor rcx, rsp
call fcn.1400126d0
lea r11, [rsp + 0x13f0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140003340
Capabilities:
Check if file exists
Move file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140003368
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 5]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_MoveFileExW]
add rsp, 0x20
pop rbx
ret
Function at 0x140003460
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
nop dword [rax]
mov rbx, qword [rdi]
mov eax, dword [rbx]
cmp eax, 0x270
jne 0x1400034ce
lea rax, [rbx + 8]
mov r9d, 0x270
nop word [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
lea rax, [rax + 4]
btr r8d, 0x1f
xor r8d, dword [rax - 8]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
shr r8d, 1
and edx, 0x9908b0df
xor edx, dword [rax + 0x62c]
xor edx, r8d
mov dword [rax + 0x9b8], edx
sub r9, 1
jne 0x140003490
jmp 0x1400034dd
cmp eax, 0x4e0
jb 0x1400034dd
mov rcx, rbx
call fcn.140003530
mov eax, dword [rbx]
mov edx, dword [rbx + rax*4 + 4]
inc eax
mov dword [rbx], eax
mov ecx, edx
mov eax, dword [rbx + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
cmp eax, dword [rdi + 0x10]
ja 0x140003470
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140003530
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov r10, rcx
lea r9, [rcx + 0x9c4]
mov r11d, 0xe3
mov edx, dword [r9]
xor edx, dword [r9 + 4]
lea r9, [r9 + 4]
btr edx, 0x1f
xor edx, dword [r9 - 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x630]
xor ecx, edx
mov dword [r9 - 0x9c4], ecx
sub r11, 1
jne 0x140003540
lea r9, [r10 + 0xd50]
mov r11d, 0x18c
nop word [rax + rax]
mov edx, dword [r9]
xor edx, dword [r9 + 4]
lea r9, [r9 + 4]
btr edx, 0x1f
xor edx, dword [r9 - 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 - 0xd50]
xor ecx, edx
mov dword [r9 - 0x9c4], ecx
sub r11, 1
jne 0x140003590
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
mov dword [r10], r11d
ret
Function at 0x1400058f0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbx], rax
test rax, rax
jne 0x140005916
xor eax, eax
add rsp, 0x20
pop rbx
ret
lea rdx, str.GetNativeSystemInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.IsWow64Process
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.Wow64DisableWow64FsRedirection
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.Wow64RevertWow64FsRedirection
mov qword [rbx + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, [0x14002df90]
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.advapi32.dll
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbx + 8], rax
test rax, rax
je 0x14000590e
lea rdx, str.Wow64RevertWow64FsRedirection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.Wow64RevertWow64FsRedirection
mov qword [rbx + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x38], rax
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x140007090
Capabilities:
Read .ini file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x888
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x1400431a0]
xor rax, rsp
mov qword [rsp + 0x870], rax
mov r15, r9
mov r14, r8
mov rbx, rdx
mov rbp, rcx
mov qword [rsp + 0x40], rdx
mov rsi, qword [rsp + 0x8e0]
xor edi, edi
mov dword [rsp + 0x30], edi
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x70]
call fcn.1400139c0
lea rax, [rbp + 0xc0]
cmp qword [rax + 0x18], 8
jb 0x1400070fd
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x400
lea r9, [rsp + 0x70]
mov r8, rsi
mov rdx, r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rdi
cmp qword [rbx + 0x18], 8
jb 0x140007136
mov rax, qword [rbx]
jmp 0x140007139
mov rax, rbx
mov word [rax], di
cmp word [rsp + 0x70], di
je 0x14000715a
lea rax, [rsp + 0x70]
or rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140007150
mov r8, rdi
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.140002bb0
mov dword [rsp + 0x30], 1
cmp qword [rbx + 0x18], 8
jb 0x14000717e
mov rax, qword [rbx]
jmp 0x140007181
mov rax, rbx
mov r11, rsi
sub r11, rax
nop word [rax + rax]
movzx r10d, word [rax]
movzx edx, word [rax + r11]
sub r10d, edx
jne 0x1400071a6
add rax, 2
test edx, edx
jne 0x140007190
test r10d, r10d
jne 0x1400071f8
mov qword [rsp + 0x20], rsi
mov r9, r15
mov r8, r14
lea rdx, [rsp + 0x48]
mov rcx, rbp
cmp byte [rbp + 9], r10b
je 0x1400071cb
call fcn.140006f50
jmp 0x1400071d0
call fcn.140007050
mov rdx, rax
mov rcx, rbx
call fcn.140002080
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x1400071f8
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.140002d00
mov rax, rbx
mov rcx, qword [rsp + 0x870]
xor rcx, rsp
call fcn.1400126d0
add rsp, 0x888
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400082e0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x9a0]
sub rsp, 0xaa0
mov rax, qword [0x1400431a0]
xor rax, rsp
mov qword [rbp + 0x990], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.1400139c0
cmp qword [rdi + 0x58], 8
lea r8, [rdi + 0x40]
jb 0x14000832e
mov r8, qword [r8]
lea r9, str.Config
lea rdx, [0x14002d888]
lea rcx, [rsp + 0x40]
call fcn.140001d50
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14000835f
lea rcx, [rsp + 0x40]
call fcn.1400098a0
xor edx, edx
lea rcx, [rbp + 0x150]
mov r8d, 0x208
call fcn.1400139c0
lea r9, str.UseVestige.ini
lea r8, [rsp + 0x40]
lea rdx, str._s_s
lea rcx, [rbp + 0x150]
call fcn.140001d50
xor ebx, ebx
cmp word [rbp + 0x150], bx
jne 0x1400083a2
mov r8d, ebx
jmp 0x1400083ba
lea rax, [rbp + 0x150]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x1400083b0
lea rcx, [rdi + 0xc0]
lea rdx, [rbp + 0x150]
call fcn.140002bb0
xor edx, edx
lea rcx, [rbp + 0x360]
mov r8d, 0x208
call fcn.1400139c0
lea r9, str.Cache.ini
lea r8, [rsp + 0x40]
lea rdx, str._s_s
lea rcx, [rbp + 0x360]
call fcn.140001d50
cmp word [rbp + 0x360], bx
jne 0x14000840e
mov r8, rbx
jmp 0x14000842a
lea rax, [rbp + 0x360]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x140008420
lea rcx, [rdi + 0xe0]
lea rdx, [rbp + 0x360]
call fcn.140002bb0
xor edx, edx
lea rcx, [rbp + 0x570]
mov r8d, 0x208
call fcn.1400139c0
lea rdx, str.ShxlPath
lea rcx, [rsp + 0x20]
call fcn.140009dc0
cmp qword [rax + 0x18], 8
jb 0x14000846c
mov rax, qword [rax]
mov r8, rax
lea rdx, [0x14002d698]
lea rcx, [rbp + 0x570]
call fcn.140001d50
mov r8, qword [rsp + 0x38]
cmp r8, 8
jb 0x14000849f
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x20]
inc r8
call fcn.140002d00
lea rcx, [rbp + 0x570]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400084bc
lea rcx, [rbp + 0x570]
call fcn.1400098a0
xor edx, edx
lea rcx, [rbp + 0x780]
mov r8d, 0x208
call fcn.1400139c0
lea r9, str.Cache.ini
lea r8, [rbp + 0x570]
lea rdx, str._s_s
lea rcx, [rbp + 0x780]
call fcn.140001d50
cmp word [rbp + 0x780], bx
je 0x14000850f
lea rax, [rbp + 0x780]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140008505
lea rcx, [rdi + 0x100]
mov r8, rbx
lea rdx, [rbp + 0x780]
call fcn.140002bb0
mov rcx, qword [rbp + 0x990]
xor rcx, rsp
call fcn.1400126d0
lea r11, [rsp + 0xaa0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1400098a0
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
or r8, 0xffffffffffffffff
mov rbx, rcx
mov rdi, r8
nop dword [rax]
inc rdi
cmp word [rcx + rdi*2], 0
jne 0x1400098c0
lea eax, [rdi + 1]
movsxd rcx, eax
mov eax, 2
mul rcx
cmovo rax, r8
mov rcx, rax
call fcn.140012740
mov rsi, rax
sub rax, rbx
nop word [rax + rax]
movzx ecx, word [rbx]
mov word [rax + rbx], cx
lea rbx, [rbx + 2]
test cx, cx
jne 0x1400098f0
xor r14d, r14d
movsxd rdi, edi
mov ebx, r14d
lea ebp, [r14 + 1]
test rdi, rdi
js 0x14000995f
mov qword [rsp + 0x40], r15
mov r15d, 0x5c
nop dword [rax]
cmp word [rsi + rbx*2], r15w
jne 0x14000994d
mov rcx, rsi
mov word [rsi + rbx*2], r14w
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140009948
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140009957
mov word [rsi + rbx*2], r15w
inc rbx
cmp rbx, rdi
jle 0x140009920
jmp 0x14000995a
mov ebp, r14d
mov r15, qword [rsp + 0x40]
mov rcx, rsi
call fcn.140012738
mov rbx, qword [rsp + 0x48]
mov eax, ebp
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x140009980
Capabilities:
Check if file exists
Get common file path

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x1400431a0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov qword [rsp + 0x290], rbx
mov rsi, rdx
xor bl, bl
mov rbp, rcx
call fcn.140009cf0
xor edi, edi
test al, al
je 0x140009a1c
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rdi
call fcn.140009c00
test al, al
je 0x140009a1c
mov r8, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x298], r14
lea edx, [rdi + 0x1a]
mov r14d, 1
mov qword [rsp + 0x20], rax
mov r9d, r14d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
movzx ebx, bl
cmove ebx, r14d
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x298]
test bl, bl
jne 0x140009a30
xor r9d, r9d
lea rdx, [rsp + 0x40]
xor ecx, ecx
lea r8d, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov rbx, qword [rsp + 0x290]
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x140009a41
test eax, eax
je 0x140009aff
lea rcx, [rsp + 0x40]
sub rcx, 2
nop dword [rax + rax]
cmp word [rcx + 2], di
lea rcx, [rcx + 2]
jne 0x140009a60
mov eax, dword [0x14002d894]
lea rdx, [rsp + 0x40]
sub rdx, 2
mov dword [rcx], eax
nop dword [rax + rax]
cmp word [rdx + 2], di
lea rdx, [rdx + 2]
jne 0x140009a80
xor r8d, r8d
nop dword [rax]
movzx ecx, word [rsi + r8*2]
mov word [rdx + r8*2], cx
lea r8, [r8 + 1]
test cx, cx
jne 0x140009a90
lea rcx, [rsp + 0x40]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], di
lea rcx, [rcx + 2]
jne 0x140009ab0
mov dword [rcx], eax
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140009ad5
lea rcx, [rsp + 0x40]
call fcn.1400098a0
cmp word [rsp + 0x40], di
je 0x140009aef
lea rax, [rsp + 0x40]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140009ae5
mov r8, rdi
lea rdx, [rsp + 0x40]
mov rcx, rbp
call fcn.140002bb0
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400126d0
add rsp, 0x260
pop rdi
pop rsi
pop rbp
ret

Function at 0x140009cf0
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x248
mov rax, qword [0x1400431a0]
xor rax, rsp
mov qword [rsp + 0x230], rax
movzx eax, byte [0x1400452a0]
test al, al
jne 0x140009da2
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.1400139c0
mov r9d, 1
lea rdx, [rsp + 0x20]
xor ecx, ecx
lea r8d, [r9 + 0x19]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x140009d9b
lea rcx, [rsp + 0x20]
call fcn.140018fa4
lea rdx, str.config_systemprofile
lea rcx, [rsp + 0x20]
call fcn.140015c28
test rax, rax
jne 0x140009d7b
lea rdx, str.documents_and_settingslocalservice
lea rcx, [rsp + 0x20]
call fcn.140015c28
test rax, rax
je 0x140009d9b
mov al, 1
mov byte [0x1400452a0], al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400126d0
add rsp, 0x248
ret
movzx eax, byte [0x1400452a0]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400126d0
add rsp, 0x248
ret
Function at 0x14000a190
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov ebp, r9d
mov edi, r8d
mov rsi, rdx
mov r14, rcx
xor bl, bl
call fcn.140009cf0
mov r15d, 1
test al, al
je 0x14000a216
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], 0
call fcn.140009c00
test al, al
je 0x14000a216
mov r8, qword [rsp + 0x30]
mov r9d, r15d
mov edx, edi
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
movzx ebx, bl
cmove ebx, r15d
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x14000a216
movzx eax, bl
jmp 0x14000a234
mov r9d, ebp
mov r8d, edi
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
movzx ecx, bl
cmovne ecx, r15d
movzx eax, cl
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x14000a510
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x1d8]
sub rsp, 0x2c0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400431a0]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
test rcx, rcx
jne 0x14000a553
xor eax, eax
jmp 0x14000a6e2
mov qword [rsp + 0x60], 7
xor ebx, ebx
mov qword [rsp + 0x58], rbx
mov word [rsp + 0x48], bx
cmp word [rcx], bx
jne 0x14000a572
mov r8d, ebx
jmp 0x14000a580
or r8, 0xffffffffffffffff
inc r8
cmp word [rcx + r8*2], bx
jne 0x14000a576
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.140002bb0
nop
lea rcx, [rsp + 0x48]
call fcn.14000b6f0
xor edx, edx
mov r8d, 0x238
lea rcx, [rsp + 0x70]
call fcn.1400139c0
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14000a6c3
mov dword [rsp + 0x70], 0x238
lea rdx, [rsp + 0x70]
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x14000a6b9
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], rbx
mov word [rsp + 0x28], bx
cmp word [rbp - 0x64], 0
jne 0x14000a5fd
mov r8, rbx
jmp 0x14000a610
lea rax, [rbp - 0x64]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x14000a605
lea rdx, [rbp - 0x64]
lea rcx, [rsp + 0x28]
call fcn.140002bb0
nop
lea rcx, [rsp + 0x28]
call fcn.14000b6f0
lea r8, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae r8, qword [rsp + 0x48]
lea rcx, [rsp + 0x28]
mov r14, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x40]
cmp rdi, 8
cmovae rcx, r14
mov r9, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x38]
call fcn.140003610
test eax, eax
je 0x14000a68d
cmp rdi, 8
jb 0x14000a67b
lea r8, [rdi + 1]
mov rdx, r14
lea rcx, [rsp + 0x28]
call fcn.140002d00
lea rdx, [rsp + 0x70]
mov rcx, rsi
call sub.KERNEL32.dll_Process32NextW
jmp 0x14000a5d6
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [rsp + 0x78]
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x14000a6c3
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.140002d00
jmp 0x14000a6c3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x14000a6e0
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.140002d00
mov eax, ebx
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1400126d0
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret