joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400038d0
Capabilities:
Execute command

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x14000c010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
mov qword [rsp + 0x48], rcx
mov rbp, qword [rcx + 0x10]
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, rbp
cmp rax, 0x10
jb 0x140003ac5
mov r15, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14000392a
mov r15, qword [rbx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
lea r14, [rbp + 0x10]
mov edi, 0xf
lea rsi, [rsp + 0x20]
cmp r14, rdi
jbe 0x1400039c8
mov rdi, r14
or rdi, 0xf
cmp rdi, rcx
jbe 0x14000395f
mov rdi, rcx
jmp 0x14000396b
mov eax, 0x16
cmp rdi, rax
cmovb rdi, rax
mov rcx, rdi
add rcx, 1
mov rax, 0xffffffffffffffff
cmovb rcx, rax
cmp rcx, 0x1000
jb 0x1400039b2
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140003abf
mov rcx, rax
call fcn.1400068f0
test rax, rax
je 0x140003a3b
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x1400039c3
test rcx, rcx
je 0x1400039c1
call fcn.1400068f0
mov rsi, rax
jmp 0x1400039c3
xor esi, esi
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], rdi
movups xmm0, xmmword [str.taskkill__f__im]
movups xmmword [rsi], xmm0
lea rcx, [rsi + 0x10]
mov r8, rbp
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + r14], 0
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0x10
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x140003a48
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003a42
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003a42
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006c54
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140003a7e
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140003a79
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003ab8
mov rcx, r8
call fcn.140006c54
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400068d0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400013c0
nop
call fcn.140001460
int3
Function at 0x140005d84
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140005e08
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400083c0]
cmp byte [rcx + rax], 0
je 0x140005e08
dec r8
sub rdx, 1
jne 0x140005dee
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14000659c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.140005e98
mov ebx, eax
test eax, eax
jne 0x1400065cc
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x14000662f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140006626
test al, 0x10
je 0x140006626
bt eax, 0xa
jae 0x14000661f
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.140006640
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x14000661b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14000661b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
test edi, edi
jne 0x140006626
and dword [rsp + 0x3c], 0
jmp 0x14000662b
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140007454
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000749e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000749e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000749e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000749e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000749e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400074a0
xor al, al
add rsp, 0x28
ret
Function at 0x14000139c
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1400afa38]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x140001440
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001440
xor edx, edx
mov dword [rsp + 0x20], 0x238
mov r8d, 0x234
lea rcx, [rsp + 0x24]
call fcn.140076b90
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x14000142c
mov rdx, rsi
lea rcx, [rsp + 0x20]
mov rax, rdi
call qword [case.0x14002da31.0]
test eax, eax
jne 0x140001430
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001409
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140001442
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140072030
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140001748
Capabilities:
Get common file path
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x560]
sub rsp, 0x660
mov rax, qword [0x1400afa38]
xor rax, rsp
mov qword [rbp + 0x550], rax
mov ebx, ecx
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x418
call fcn.140076b90
mov edx, 0x104
mov dword [rsp + 0x20], ebx
lea rcx, [rbp + 0x340]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp eax, 2
jb 0x140001870
cmp word [rbp + 0x342], 0x3a
jne 0x140001870
lea rcx, str.explorer.exe
mov ebx, eax
call fcn.140052744
lea rcx, [rax + 1]
add rcx, rbx
cmp rcx, 0x105
jae 0x140001870
add rbx, rbx
cmp rbx, 0x20a
jae 0x140001896
xor edi, edi
lea rdx, str.explorer.exe
lea rcx, [rbp + 0x340]
mov word [rbp + rbx + 0x340], di
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rbp + 0x340]
call fcn.140052744
mov r8d, 0x208
mov word [rbp + 0x344], di
lea rdx, [rsp + 0x28]
mov rbx, rax
lea rcx, [rbp + 0x340]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov ecx, eax
test eax, eax
je 0x140001870
lea rax, [rbx - 2]
add rax, rcx
cmp rax, 0x209
jae 0x140001870
lea rdx, [rbp + 0x346]
lea rcx, [rsp + 0x28]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, [rsp + 0x20]
lea rcx, [0x140001610]
call fcn.14000139c
mov eax, dword [rsp + 0x24]
jmp 0x140001872
xor eax, eax
mov rcx, qword [rbp + 0x550]
xor rcx, rsp
call fcn.140072030
lea r11, [rsp + 0x660]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.140072164
int3

Function at 0x140001acc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140001afd
call qword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x140001af6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140001afd
test al, 0x10
jne 0x140001afd
mov eax, 1
jmp 0x140001aff
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140001b08
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x140001b27
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140001b27
test al, 0x10
je 0x140001b27
mov eax, 1
jmp 0x140001b29
xor eax, eax
add rsp, 0x28
ret

Function at 0x140001c34
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400afa38]
xor rax, rsp
mov qword [rbp - 8], rax
xor ebx, ebx
mov word [rbp - 0xc], 0x500
lea rax, [rbp - 0x18]
mov dword [rbp - 0x20], ebx
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x10]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov dword [rbp - 0x10], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140001cbe
mov rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
cmp dword [rbp - 0x20], ebx
lea eax, [rbx + 1]
mov rcx, qword [rbp - 0x18]
cmovne ebx, eax
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140072030
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rbp
ret

Function at 0x140001ce0
Capabilities:
Find taskbar

Disassembly:
push rbx
sub rsp, 0x30
and dword [rsp + 0x40], 0
lea rcx, str.Shell_TrayWnd
and qword [rsp + 0x48], 0
xor edx, edx
and qword [rsp + 0x50], 0
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x140001d95
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x40]
test r8d, r8d
je 0x140001d95
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140001d95
lea r8, [rsp + 0x48]
mov edx, 2
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov r9d, 2
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov edx, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x50]
jmp 0x140001d97
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x140001fac
Capabilities:
Create process on windows

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 r14
sub rsp, 0x30
xor ebx, ebx
mov r14, r9
mov rsi, r8
mov rbp, rdx
test rdx, rdx
jne 0x140001fda
test r8, r8
je 0x14000201a
call fcn.140001c34
test eax, eax
jne 0x14000200d
mov ecx, dword [rsp + 0x60]
lea rdx, str.open
mov dword [rsp + 0x28], ecx
mov r9, rsi
xor ecx, ecx
mov qword [rsp + 0x20], r14
mov r8, rbp
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
setg bl
jmp 0x140002041
call fcn.140001ce0
mov rdi, rax
test rax, rax
jne 0x14000201e
xor eax, eax
jmp 0x140002043
mov r9d, dword [rsp + 0x60]
mov r8, r14
mov rdx, rsi
mov qword [rsp + 0x20], rdi
mov rcx, rbp
call fcn.140001da0
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140002068
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rdi
push r12
push r14
push r15
sub rsp, 0x30
mov rbp, r8
mov r12, rdx
mov r8, qword [rsp + 0x70]
mov rdx, r9
mov rdi, r9
mov ebx, ecx
call fcn.140001b74
test eax, eax
jne 0x1400020a7
mov eax, VariantTimeToDosDateTime
jmp 0x140002152
call fcn.140001994
test eax, eax
jne 0x140002129
call fcn.140002060
test eax, eax
je 0x140002129
cmp ebx, 7
je 0x140002102
lea eax, [rbx - 1]
test eax, 0xfffffff7
jne 0x140002129
mov r15, qword [rsp + 0x78]
mov rdx, rdi
mov r14d, dword [rsp + 0x80]
mov r9, r15
mov r8, qword [rsp + 0x70]
mov rcx, rbp
mov dword [rsp + 0x20], r14d
call fcn.1400024d8
test eax, eax
jne 0x14000211f
cmp ebx, 1
jne 0x14000211f
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r15
jmp 0x14000213e
mov eax, dword [rsp + 0x80]
mov rdx, rdi
mov r9, qword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov dword [rsp + 0x20], eax
call fcn.140001fac
neg eax
sbb rax, rax
and eax, 0x21
jmp 0x140002152
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x70]
mov r8, rdi
mov rdx, rbp
mov rcx, r12
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
Function at 0x140002f2c
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x1400afa38]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, r8
mov rdi, rdx
test rdx, rdx
je 0x140002fce
test rbx, rbx
je 0x140002fce
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x105
call fcn.140076b90
mov r8, rdi
lea rcx, [rsp + 0x20]
mov edi, 0x104
mov edx, edi
call fcn.140052cf4
mov r8, rbx
lea rcx, [rsp + 0x20]
mov edx, edi
call fcn.140052cf4
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x140002fb9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140002fce
lea rcx, [rsp + 0x20]
call fcn.140003b9c
test eax, eax
je 0x140002fce
mov eax, 1
jmp 0x140002fd0
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140072030
mov rbx, qword [rsp + 0x150]
add rsp, 0x140
pop rdi
ret
Function at 0x140003170
Capabilities:
Create directory
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r13
push r14
push r15
sub rsp, 0x390
mov rax, qword [0x1400afa38]
xor rax, rsp
mov qword [rsp + 0x380], rax
and qword [r8], 0
mov r15b, r9b
movsxd rbx, edx
mov rdi, r8
mov r14, rcx
cmp ebx, 6
ja 0x140003397
mov rax, qword [rcx + rbx*8]
mov rbp, rbx
test rax, rax
je 0x1400031c5
mov qword [r8], rax
xor eax, eax
jmp 0x14000339c
mov r13d, 0x400
mov ecx, r13d
call fcn.140072368
mov r8d, r13d
mov qword [rdi], rax
xor edx, edx
mov rcx, rax
call fcn.140076b90
test ebx, ebx
je 0x140003355
sub ebx, 1
je 0x14000334d
sub ebx, 1
je 0x140003345
sub ebx, 1
je 0x14000332e
sub ebx, 1
je 0x140003326
sub ebx, 1
je 0x140003226
cmp ebx, 1
jne 0x140003388
lea r8d, [rbx + 0x29]
jmp 0x14000335b
mov ebx, 0x104
lea rcx, [rsp + 0x50]
mov r8d, ebx
xor edx, edx
call fcn.140076b90
mov r8d, ebx
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x140003388
mov r8d, ebx
lea rcx, [rsp + 0x160]
xor edx, edx
call fcn.140076b90
mov r8d, ebx
lea rcx, [rsp + 0x270]
xor edx, edx
call fcn.140076b90
and qword [rsp + 0x40], 0
lea r9, [rsp + 0x270]
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x160]
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x50]
and qword [rsp + 0x28], 0
mov r8d, ebx
mov qword [rsp + 0x20], rbx
call fcn.1400532e8
mov rcx, qword [rdi]
lea r8, [rsp + 0x160]
mov rdx, r13
call fcn.140052cf4
mov rcx, qword [rdi]
lea r8, [rsp + 0x270]
mov rdx, r13
call fcn.140052cf4
cmp dword [r14 + 0x38], 1
lea rax, [0x140094010]
mov rcx, qword [rdi]
lea r8, str.RoomConnector
cmovne r8, rax
mov rdx, r13
call fcn.140052cf4
test r15b, r15b
je 0x140003308
mov rcx, qword [rdi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rcx, qword [rdi]
lea r8, [0x140093ff8]
mov rdx, r13
call fcn.140052cf4
mov rax, qword [rdi]
mov qword [r14 + rbp*8], rax
jmp 0x1400031be
mov r8d, 0x20
jmp 0x14000335b
mov rdx, qword [rdi]
mov ecx, 0x103
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
xor ebx, ebx
test eax, eax
setne bl
jmp 0x140003380
mov r8d, 0x26
jmp 0x14000335b
mov r8d, 0x1c
jmp 0x14000335b
mov r8d, 0x1a
mov rdx, qword [rdi]
mov r9d, 1
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov rcx, qword [rdi]
lea r8, [0x140093ff8]
mov rdx, r13
mov ebx, eax
call fcn.140052cf4
test ebx, ebx
jne 0x1400032d6
mov rcx, qword [rdi]
call fcn.14002a510
mov eax, 3
jmp 0x14000339c
mov eax, 1
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.140072030
mov rbx, qword [rsp + 0x3d8]
add rsp, 0x390
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
Function at 0x1400033c4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x430
mov rax, qword [0x1400afa38]
xor rax, rsp
mov qword [rsp + 0x420], rax
mov rbx, rdx
mov rdi, rcx
test rcx, rcx
je 0x140003452
test rdx, rdx
je 0x140003452
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x400
call fcn.140076b90
mov r8, rdi
lea rcx, [rsp + 0x20]
mov edi, 0x3ff
mov edx, edi
call fcn.140052c94
lea r8, [0x140093ff8]
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.140052cf4
mov r8, rbx
lea rcx, [rsp + 0x20]
mov edx, edi
call fcn.140052cf4
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140003452
mov eax, 1
jmp 0x140003454
xor eax, eax
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.140072030
mov rbx, qword [rsp + 0x450]
add rsp, 0x430
pop rdi
ret

Function at 0x140003478
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x440]
sub rsp, 0x540
mov rax, qword [0x1400afa38]
xor rax, rsp
mov qword [rbp + 0x430], rax
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov r14, rcx
test rdx, rdx
je 0x1400035c9
test rbx, rbx
je 0x1400035c9
xor edx, edx
lea rcx, [rbp + 0x30]
mov r8d, 0x400
call fcn.140076b90
mov r8, rsi
lea rcx, [rbp + 0x30]
mov esi, 0x3ff
mov edx, esi
call fcn.140052c94
mov r8, rbx
lea rcx, [rbp + 0x30]
mov edx, esi
call fcn.140052cf4
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400035c9
test al, 0x10
je 0x1400035c9
cmp dword [r14 + 0x38], 1
lea rcx, [rbp + 0x30]
jne 0x1400035eb
lea rdx, str.RoomConnector.exe
call fcn.1400033c4
lea rdx, str.gateway_conf_client.dll
mov ebx, eax
lea rcx, [rbp + 0x30]
call fcn.1400033c4
lea rdx, str.gmcm.dll
mov r14d, eax
lea rcx, [rbp + 0x30]
call fcn.1400033c4
lea rdx, str.gviper.dll
lea rcx, [rbp + 0x30]
mov esi, eax
call fcn.1400033c4
test ebx, ebx
je 0x1400035c9
test r14d, r14d
je 0x1400035c9
test esi, esi
je 0x1400035c9
test eax, eax
je 0x1400035c9
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x28]
and dword [rsp + 0x24], 0
mov ebx, 0x104
and dword [rbp + 0x2c], 0
mov r8d, ebx
xor edx, edx
call fcn.140076b90
mov edx, ebx
mov dword [rsp + 0x24], 1
lea rcx, [rbp + 0x30]
call fcn.1400525f4
inc eax
cmp eax, ebx
jge 0x140003666
lea r8, [rbp + 0x30]
mov edx, ebx
lea rcx, [rsp + 0x28]
call fcn.140052c94
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140003e38
mov eax, 1
mov rcx, qword [rbp + 0x430]
xor rcx, rsp
call fcn.140072030
add rsp, 0x540
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
cmp dword [r14 + 0x38], 2
jne 0x140003629
lea rdx, str.Controller.exe
call fcn.1400033c4
lea rdx, [0x140094078]
mov ebx, eax
lea rcx, [rbp + 0x30]
call fcn.1400033c4
lea rdx, str.zrc_sdk.dll
mov esi, eax
lea rcx, [rbp + 0x30]
call fcn.1400033c4
test ebx, ebx
jmp 0x140003563
lea rdx, [0x140094098]
call fcn.1400033c4
lea rdx, str.zChatApp.dll
mov ebx, eax
lea rcx, [rbp + 0x30]
call fcn.1400033c4
lea rdx, str.zVideoApp.dll
mov r14d, eax
lea rcx, [rbp + 0x30]
call fcn.1400033c4
lea rdx, [0x140094078]
jmp 0x140003551
xor eax, eax
jmp 0x1400035ce
Function at 0x140003b9c
Capabilities:
Check if file exists
Delete file
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x1400afa38]
xor rax, rsp
mov qword [rbp + 0x70], rax
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
je 0x140003cba
lea rcx, str._ProductPathHelper::RecursiveRemoveDirA__Path_is:
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [0x1400941a4]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov r14d, 0x105
lea rcx, [rsp + 0x60]
mov r8d, r14d
xor edx, edx
call fcn.140076b90
lea esi, [r14 - 1]
mov r8, rdi
mov edx, esi
lea rcx, [rsp + 0x60]
call fcn.140052c94
mov edx, esi
mov rcx, rdi
call fcn.1400525f4
cmp eax, esi
jge 0x140003cba
cdqe
cmp rax, r14
jae 0x140003ce0
mov byte [rsp + rax + 0x60], bl
inc rax
cmp rax, r14
jae 0x140003ce0
mov byte [rsp + rax + 0x60], bl
lea rcx, [rsp + 0x20]
xor eax, eax
xorps xmm0, xmm0
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x60]
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x30], rax
mov eax, 0x414
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x28], 3
movups xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x40], ax
call qword [sym.imp.SHELL32.dll_SHFileOperationA]
mov esi, eax
cmp dword [rsp + 0x44], ebx
jne 0x140003cba
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x140003cba
test esi, 0xfffffbfd
jne 0x140003cb6
cmp esi, 0x400
je 0x140003cb6
lea ebx, [rax + 1]
mov eax, ebx
jmp 0x140003cbc
xor eax, eax
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140072030
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140072164
int3

Function at 0x140003ce8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x440
mov rax, qword [0x1400afa38]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov rsi, rcx
test rcx, rcx
je 0x140003da4
mov ebp, 0x400
lea rcx, [rsp + 0x30]
mov r8d, ebp
xor edx, edx
call fcn.140076b90
xor ebx, ebx
lea rdi, [0x1400941b8]
mov edx, dword [rdi]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x140003d99
mov rdx, rbp
lea rcx, [rsp + 0x30]
call fcn.1400525f4
test rax, 0xfffffffffffffbff
je 0x140003d99
cmp byte [rsp + rax + 0x2f], 0x5c
jne 0x140003d85
lea rcx, [rax - 1]
mov rax, rcx
cmp rcx, rbp
jae 0x140003dd6
mov byte [rsp + rcx + 0x30], 0
mov r8, rax
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140052b94
test eax, eax
je 0x140003dcf
inc ebx
add rdi, 4
cmp ebx, 2
jb 0x140003d3a
xor eax, eax
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.140072030
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov eax, 1
jmp 0x140003da6
call fcn.140072164
int3