joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140027e80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x60
mov ecx, dword [0x14037f2b0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [0x1401c0e20]
mov rbx, rax
call qword [rcx + 0x120]
mov ecx, dword [0x14037f2b0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test rbx, rbx
je 0x140027fa2
cmp byte [rbx + 0x74], 0
je 0x140027fa2
mov rcx, rbx
mov qword [rsp + 0x70], rdi
call fcn.140027c40
mov rdx, qword [0x14037f228]
test rdx, rdx
je 0x140027f29
mov rax, qword [0x1401c0e20]
lea r9, str.D:winx64_packages_build_srcmysysmy_thr_init.c
xor r8d, r8d
mov dword [rsp + 0x20], 0x17a
lea rcx, [rsp + 0x30]
call qword [rax + 0x178]
lea rcx, [0x14037f200]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test rdi, rdi
je 0x140027f36
mov rax, qword [0x1401c0e20]
xor edx, edx
mov rcx, rdi
call qword [rax + 0x180]
jmp 0x140027f36
lea rcx, [0x14037f200]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add dword [0x14037daac], 0xffffffff
mov rdi, qword [rsp + 0x70]
jne 0x140027f69
mov rcx, qword [0x14037f1b8]
test rcx, rcx
je 0x140027f5d
mov rax, qword [0x1401c0e20]
call qword [rax + 0x158]
lea rcx, [0x14037f1b0]
call fcn.14002ab10
mov rcx, qword [0x14037f228]
test rcx, rcx
je 0x140027f82
mov rax, qword [0x1401c0e20]
call qword [rax + 0x148]
lea rcx, [0x14037f200]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, rbx
mov byte [rbx + 0x74], 2
add rsp, 0x60
pop rbx
jmp qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add rsp, 0x60
pop rbx
ret

Function at 0x1400281c0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
cmp byte [0x14037dab0], 0
je 0x1400281d4
xor al, al
add rsp, 0x28
ret
cmp byte [0x14037daa8], 0
mov qword [rsp + 0x20], rbx
mov byte [0x14037dab0], 1
jne 0x140028228
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
xor ebx, ebx
mov dword [0x14037f2b0], eax
cmp eax, 0xffffffff
sete bl
jne 0x140028228
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, ebx
lea rdx, str.Cant_initialize_threads:_error__d_n
mov rcx, rax
call fcn.140001540
mov rbx, qword [rsp + 0x20]
mov al, 1
add rsp, 0x28
ret
mov byte [0x14037daa8], 1
call fcn.140028510
call fcn.140028260
test al, al
jne 0x14002821c
call fcn.140006400
mov dword [0x14037dad0], eax
call fcn.1400283d0
mov rbx, qword [rsp + 0x20]
xor al, al
add rsp, 0x28
ret
Function at 0x140028260
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x60
xor bl, bl
cmp byte [0x14037dab0], bl
jne 0x140028278
mov al, 1
add rsp, 0x60
pop rbx
ret
mov ecx, dword [0x14037f2b0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x1400283c4
call fcn.140027c10
mov edx, 0xa8
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov qword [rsp + 0x70], rax
test rax, rax
jne 0x1400282b7
mov bl, 1
movzx eax, bl
add rsp, 0x60
pop rbx
ret
mov ecx, dword [0x14037f2b0]
mov rdx, rax
mov qword [rsp + 0x78], rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, qword [rsp + 0x70]
mov dword [rcx + 0x58], eax
mov rcx, qword [rsp + 0x70]
call fcn.1400285a0
mov eax, dword [0x1401c0a20]
lea rcx, [rsp + 0x70]
neg eax
cdqe
add rcx, rax
mov rax, qword [rsp + 0x70]
mov qword [rax + 0x98], rcx
mov rdx, qword [0x14037f228]
test rdx, rdx
je 0x14002835a
mov rax, qword [0x1401c0e20]
lea r9, str.D:winx64_packages_build_srcmysysmy_thr_init.c
xor r8d, r8d
mov dword [rsp + 0x20], 0x133
lea rcx, [rsp + 0x30]
call qword [rax + 0x178]
lea rcx, [0x14037f200]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test rdi, rdi
je 0x140028367
mov rax, qword [0x1401c0e20]
xor edx, edx
mov rcx, rdi
call qword [rax + 0x180]
jmp 0x140028367
lea rcx, [0x14037f200]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rsp + 0x70]
mov rdx, qword [0x14037dab8]
mov rdi, qword [rsp + 0x78]
inc rdx
mov qword [0x14037dab8], rdx
mov qword [rax + 0x68], rdx
mov rax, qword [rsp + 0x70]
mov qword [rax + 0x60], rdx
inc dword [0x14037daac]
mov rcx, qword [0x14037f228]
test rcx, rcx
je 0x1400283ae
mov rdx, qword [0x1401c0e20]
call qword [rdx + 0x148]
lea rcx, [0x14037f200]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x70]
mov byte [rcx + 0x74], 1
movzx eax, bl
add rsp, 0x60
pop rbx
ret

Function at 0x140029eb0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, r8
mov rdi, rdx
test r8, r8
je 0x140029f2e
call fcn.140029b00
mov ecx, 0xffffffff
mov qword [rsp + 0x20], 0
cmp rbx, rcx
lea r9, [rsp + 0x50]
mov rdx, rdi
cmovbe ecx, ebx
mov r8d, ecx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140029f1f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x140029f2e
cmp eax, 0x6d
je 0x140029f2e
mov ecx, eax
call fcn.14002ae90
mov rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov eax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x14002ac40
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsx ebx, cl
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, ebx
mov edi, eax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
lea ecx, [rax - 0x41]
cmp cl, 0x19
ja 0x14002ac80
movsx ecx, al
sub ecx, 0x41
movzx edx, cl
bt edi, edx
jae 0x14002ac80
mov al, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor al, al
add rsp, 0x20
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14002ad44
test al, 1
je 0x14002ad3c
test bl, 2
jne 0x14002ad44
xor eax, eax
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], select
call fcn.140027c00
mov dword [rax], select
mov eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
Function at 0x140002334
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000237e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000237e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000237e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000237e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000237e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002380
xor al, al
add rsp, 0x28
ret
Function at 0x66201524
Capabilities:
Accept command line arguments
Create process on windows
Query environment variable
Set environment variable
Terminate process

Disassembly:
push rbp
push r12
push r14
lea rbp, [rsp - 0x390]
mov eax, 0x490
call fcn.6620e380
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x4b0], rbx
mov qword [rsp + 0x4b8], rsi
mov qword [rsp + 0x4c0], rdi
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
or r8, 0xffffffffffffffff
mov rdx, rcx
lea rcx, [rbp - 0x20]
call fcn.66203540
nop
xor r14d, r14d
cmp qword [rbx + 8], r14
je 0x66201599
mov r8d, 0x104
lea rdx, [rbp + 0x180]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rdx, rsi
mov rcx, rdi
call fcn.6620e69c
movzx edi, r14b
mov r12d, 1
test eax, eax
cmovne edi, r12d
mov rax, qword [rbx + 8]
neg rax
sbb rdx, rdx
lea rax, [rbp + 0x180]
and rdx, rax
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
lea rcx, [rbp - 0x20]
call fcn.66206f10
test al, al
je 0x6620170f
lea ebx, [r12 + 0x67]
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.6620e470
mov dword [rsp + 0x70], ebx
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rbx, rax
or r8, 0xffffffffffffffff
mov rdx, rax
lea rcx, [rbp + 0xb0]
call fcn.66203540
nop
test dil, dil
jne 0x6620167d
movzx eax, word [rbx]
lea ecx, [r12 + 0x21]
cmp ax, cx
jne 0x6620165e
jmp 0x6620163d
cmp cx, ax
je 0x6620164b
add rbx, 2
movzx eax, word [rbx]
test ax, ax
jne 0x66201638
jmp 0x66201663
add rbx, 2
jmp 0x66201663
cmp ax, 0x20
je 0x66201663
add rbx, 2
movzx eax, word [rbx]
test ax, ax
jne 0x66201651
mov r9, rbx
mov r8, qword [rbp - 0x20]
lea rdx, str.__ls__ls
lea rcx, [rbp + 0xb0]
call fcn.66204d20
xor edx, edx
lea rcx, str.TS_SOURCE
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
xor edx, edx
lea rcx, str.TS_ORIGIN
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test dil, dil
je 0x662016b6
mov rdx, qword [rbp - 0x20]
lea rcx, str.TS_UPDATED_DATFILE
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rsi
jmp 0x662016ba
mov rcx, qword [rbp - 0x20]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp + 0xb0]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x66201702
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rcx, [rbp + 0xb0]
call fcn.66203630
nop
lea rcx, [rbp - 0x20]
call fcn.66203630
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r12
pop rbp
ret
Function at 0x66201738
Capabilities:
Set environment variable

Disassembly:
push rdi
mov eax, 0x100
call fcn.6620e380
sub rsp, rax
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x110], rbx
mov rdi, rcx
lea rcx, [rsp + 0x30]
call fcn.662035e0
nop
xor edx, edx
mov rcx, rdi
call fcn.662041f0
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea rcx, str.TS_UPDATED_DATFILE
call fcn.66204270
xor ebx, ebx
test eax, eax
js 0x662017a8
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.66204670
xor edx, edx
lea rcx, str.TS_UPDATED_DATFILE
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov bl, 1
lea rcx, [rsp + 0x30]
call fcn.66203630
mov al, bl
mov rbx, qword [rsp + 0x110]
add rsp, 0x100
pop rdi
ret
Function at 0x66201ef0
Capabilities:
Create process on windows
Delete file
Set environment variable

Disassembly:
push rbp
lea rbp, [rsp - 0x320]
mov eax, 0x420
call fcn.6620e380
sub rsp, rax
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x430], rbx
mov qword [rsp + 0x438], rdi
mov qword [rsp + 0x440], r14
mov rbx, rcx
lea rcx, [rbp + 0x180]
call fcn.662035e0
nop
lea rcx, [rbp + 0xb0]
call fcn.662035e0
nop
lea rdx, str.TS_UPDATE_THINREG
lea rcx, [rbp + 0xb0]
call fcn.66204d20
xor r8d, r8d
lea rdx, [rbp + 0x180]
mov rcx, qword [rbp + 0xb0]
call fcn.66204270
xor edi, edi
test eax, eax
jne 0x662020e8
lea rdx, [rbp + 0x180]
lea rcx, [rsp + 0x70]
call fcn.66203360
nop
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
or r14, 0xffffffffffffffff
mov r9, r14
lea r8, [0x6621e96c]
mov dl, 1
lea rcx, [rsp + 0x70]
call fcn.66203710
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
mov r9, qword [rbx + 8]
mov r8, qword [rbx]
mov dl, 1
lea rcx, [rsp + 0x70]
call fcn.66203710
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
mov r9, r14
lea r8, str..exe
mov dl, 1
lea rcx, [rsp + 0x70]
call fcn.66203710
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
mov r9, r14
lea r8, [0x6621e988]
mov dl, 1
lea rcx, [rsp + 0x70]
call fcn.66203710
lea ebx, [rdi + 0x68]
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x40]
call fcn.6620e470
mov dword [rbp + 0x40], ebx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x6620207b
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or edx, 0xffffffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x22
mov rax, qword [rsp + 0x70]
cmp word [rax], dx
jne 0x662020cd
lea r8d, [rdx - 0x21]
lea rcx, [rsp + 0x70]
call fcn.66204870
cmp rax, r14
je 0x662020cd
lea r9, [rax - 1]
mov r8d, 1
lea rdx, [rbp + 0x250]
lea rcx, [rsp + 0x70]
call fcn.66202718
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbp + 0x250]
call fcn.66203630
xor edx, edx
lea rcx, str.TS_UPDATE_THINREG
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
lea rcx, [rsp + 0x70]
call fcn.66203630
nop
lea rcx, [rbp + 0xb0]
call fcn.66203630
nop
lea rcx, [rbp + 0x180]
call fcn.66203630
lea r11, [rsp + 0x420]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x6620233c
Capabilities:
Create process on windows
Create process suspended
Set environment variable
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x370]
mov eax, 0x470
call fcn.6620e380
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x4a0], rbx
mov rsi, rcx
lea rcx, [rbp + 0x100]
call fcn.662035e0
nop
lea rdx, str.TS_UPDATE_CMDLINE
lea rcx, [rbp + 0x100]
call fcn.66204d20
lea rcx, [rbp + 0x30]
call fcn.662035e0
nop
xor r8d, r8d
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 0x100]
call fcn.66204270
test eax, eax
js 0x6620241b
or r8, 0xffffffffffffffff
lea rdx, [0x6621e844]
lea rcx, [rbp + 0x2a0]
call fcn.66203540
nop
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.66203ab0
test eax, eax
sete bl
lea rcx, [rbp + 0x2a0]
call fcn.66203630
test bl, bl
je 0x6620240c
xor r9d, r9d
lea r8, [0x6621e848]
lea rdx, str.Your_application_was_updated._____________Please_relaunch_to_use_the_new_version
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
xor edx, edx
lea rcx, str.TS_UPDATE_CMDLINE
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, 0x68
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.6620e470
mov dword [rsp + 0x70], ebx
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x1d0]
call fcn.66203360
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 1
and dword [rsp + 0x20], 0
lea r9, [rbp + 0x398]
mov r8, rdi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov r8, qword [rbp + 0x398]
lea rdx, [0x6621e904]
lea rcx, [rbp - 0x20]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rbp - 0x20]
lea rcx, str.TS_PARENT_HANDLE
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp + 0x1d0]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x6620250a
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rcx, [rbp + 0x1d0]
call fcn.66203630
nop
lea rcx, [rbp + 0x30]
call fcn.66203630
nop
lea rcx, [rbp + 0x100]
call fcn.66203630
nop
mov rcx, rsi
call fcn.66203630
mov rbx, qword [rsp + 0x4a0]
add rsp, 0x470
pop rdi
pop rsi
pop rbp
ret
Function at 0x6620254c
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
push r14
lea rbp, [rsp - 0x280]
mov eax, 0x380
call fcn.6620e380
sub rsp, rax
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x3b0], rbx
mov rdi, rcx
call fcn.66203c70
mov rdx, rax
or r14, 0xffffffffffffffff
mov r9, r14
xor r8d, r8d
mov rcx, rdi
call fcn.662047c0
mov rdx, rax
mov rcx, rdi
call fcn.662041f0
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.66203360
nop
lea rax, [rbp + 0xe0]
mov qword [rbp + 0x2a8], rax
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9, r14
lea r8, [0x6621e9c4]
mov dl, 1
lea rcx, [rsp + 0x40]
call fcn.66203710
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9, r14
lea r8, str..ase
mov dl, 1
lea rcx, [rsp + 0x40]
call fcn.66203710
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0xe0]
call fcn.66203360
mov rbx, rax
mov rdx, rdi
lea rcx, [rbp + 0x1b0]
call fcn.66203360
nop
mov rdx, rbx
mov rcx, rax
call fcn.6620211c
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.66204670
lea rax, [rbp + 0xe0]
mov qword [rbp + 0x2a8], rax
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9, r14
lea r8, [0x6621e9c4]
mov dl, 1
lea rcx, [rsp + 0x40]
call fcn.66203710
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9, r14
lea r8, str..asd
mov dl, 1
lea rcx, [rsp + 0x40]
call fcn.66203710
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0xe0]
call fcn.66203360
mov rbx, rax
mov rdx, rdi
lea rcx, [rbp + 0x1b0]
call fcn.66203360
nop
mov rdx, rbx
mov rcx, rax
call fcn.6620211c
lea rcx, [rbp + 0x10]
call fcn.662035e0
nop
lea rdx, str.TS_UPDATE_COMPLETE
lea rcx, [rbp + 0x10]
call fcn.66204d20
mov rdx, qword [rdi]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
lea rcx, [rbp + 0x10]
call fcn.66203630
nop
lea rcx, [rsp + 0x40]
call fcn.66203630
nop
mov rcx, rdi
call fcn.66203630
mov rbx, qword [rsp + 0x3b0]
add rsp, 0x380
pop r14
pop rdi
pop rbp
ret

Function at 0x662027b4
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Move file

Disassembly:
mov qword [rsp + 8], rbp
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
mov eax, 0x20
call fcn.6620e380
sub rsp, rax
cmp qword [rcx + 8], 0
mov rsi, rcx
mov rcx, qword [rdx]
mov r14, r8
mov rdi, rdx
jne 0x662027f2
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 1
jmp 0x6620285f
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x66202811
mov rdx, qword [rdi]
mov rcx, qword [rsi]
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x662027eb
xor ebp, ebp
jmp 0x6620282a
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebp
cmp ebp, 0x96
je 0x6620283a
mov rdx, qword [r14]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x66202815
mov rdx, qword [rdi]
mov rcx, qword [rsi]
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x6620285d
mov rdx, rdi
mov rcx, rsi
call fcn.66204670
jmp 0x662027eb
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x66202ea0
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0xb8]
sub rsp, 0x1b0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, rcx
lea rcx, [rbp - 0x20]
call fcn.662035e0
nop
xor ebx, ebx
mov rax, qword gs:[0x30]
mov rdx, qword [rax + 0x60]
mov r8d, dword [rdx + 0x2c0]
test r8d, r8d
je 0x66202f46
xor ecx, ecx
lea rdx, str.Sessions_
nop dword [rax + rax]
movzx eax, word [rcx + rdx]
mov word [rsp + rcx + 0x60], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x66202f00
lea rax, [rsp + 0x60]
or rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x66202f20
mov rdx, r8
lea rcx, [rsp + 0x60]
lea rcx, [rcx + rbx*2]
mov r8d, 0xa
call fcn.66208030
mov eax, eax
add rbx, rax
lea rax, str.BaseNamedObjects
lea rcx, [rbx + rbx]
sub rcx, rax
lea rdx, [rsp + 0x60]
add rdx, rcx
nop dword [rax]
movzx ecx, word [rax]
mov word [rdx + rax], cx
lea rax, [rax + 2]
test cx, cx
jne 0x66202f60
or r8, 0xffffffffffffffff
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x20]
call fcn.662046d0
lea rcx, [rbp - 0x20]
call fcn.662048a0
mov dword [rsp + 0x20], 0x30
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x38], 0x40
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
lea r8, [rsp + 0x20]
mov edx, 0xf
lea rcx, [rbp + 0xc8]
call qword [sym.imp.ntdll.dll_NtOpenDirectoryObject]
mov esi, eax
test eax, eax
js 0x66202fe2
mov rcx, qword [rbp + 0xc8]
mov qword [rdi + 0x178], rcx
jmp 0x66203096
lea r8, [rsp + 0x20]
mov edx, 3
lea rcx, [rbp + 0xc8]
call qword [sym.imp.ntdll.dll_NtOpenDirectoryObject]
test eax, eax
js 0x6620300b
mov rax, qword [rbp + 0xc8]
mov qword [rdi + 0x178], rax
lea r8, [rsp + 0x20]
mov edx, 2
lea rcx, [rbp + 0xc8]
call qword [sym.imp.ntdll.dll_NtOpenDirectoryObject]
test eax, eax
js 0x662030a1
mov rbx, qword [rbp + 0xc8]
or r8, 0xffffffffffffffff
lea rdx, str.Restricted
lea rcx, [rbp - 0x20]
call fcn.662046d0
lea rcx, [rbp - 0x20]
call fcn.662048a0
mov dword [rsp + 0x20], 0x30
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x38], 0x40
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
lea r8, [rsp + 0x20]
mov edx, 0xf
lea rcx, [rbp + 0xc8]
call qword [sym.imp.ntdll.dll_NtOpenDirectoryObject]
mov esi, eax
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rbp + 0xc8]
test esi, esi
js 0x662030a1
mov qword [rdi + 0x170], rcx
lea rcx, [rbp - 0x20]
call fcn.66203630
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x66205250
Capabilities:
Map section object

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x148]
sub rsp, 0x220
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r13, r9
mov esi, r8d
mov r12d, edx
mov rdi, rcx
test rcx, rcx
je 0x6620529b
cmp r8d, 0xffffffff
jne 0x6620529b
mov r15b, 1
jmp 0x6620529e
xor r15b, r15b
mov r8b, 1
or rdx, 0xffffffffffffffff
lea rcx, [rbp - 0x80]
call fcn.66208920
nop
test r15b, r15b
je 0x662052e2
mov qword [rsp + 0x20], r12
lea r9, [rbp]
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x80]
call fcn.66209900
mov ebx, eax
test eax, eax
js 0x66205447
lea rcx, [rbp]
call fcn.66209b60
mov esi, dword [rbp + 0x50]
mov eax, esi
mov qword [rsp + 0x68], rax
mov eax, 0x40
mov ecx, 4
cmp byte [rbp + 0x180], 0
cmovne eax, ecx
mov dword [rbp + 0x150], eax
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x68]
xor r8d, r8d
lea edx, [rcx + 0xb]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtCreateSection]
mov ebx, eax
test eax, eax
js 0x66205447
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], r14
mov eax, dword [rbp + 0x150]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], 0x100000
mov dword [rsp + 0x38], 2
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9d, [r14 + 1]
lea r8, [rsp + 0x50]
or rdx, 0xffffffffffffffff
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov ebx, eax
test eax, eax
js 0x662053bb
test r15b, r15b
je 0x662053c8
mov r9, qword [rsp + 0x50]
mov r8d, r12d
mov rdx, rdi
lea rcx, [rbp]
call fcn.66209400
mov ebx, eax
test eax, eax
jns 0x662053f7
mov rdx, qword [rsp + 0x50]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x66205447
test rdi, rdi
je 0x662053f7
test r12d, r12d
je 0x662053e7
mov r9d, esi
mov r8, qword [rsp + 0x50]
mov edx, r12d
mov rcx, rdi
call fcn.6620c5d0
jmp 0x662053f7
mov r8d, esi
mov rdx, rdi
mov rcx, qword [rsp + 0x50]
call fcn.6620e700
test r13, r13
jne 0x66205409
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x66205412
mov rax, qword [rsp + 0x58]
mov qword [r13], rax
mov rcx, qword [rbp + 0x170]
test rcx, rcx
jne 0x6620542f
mov rdx, qword [rsp + 0x50]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
jmp 0x66205437
mov rax, qword [rsp + 0x50]
mov qword [rcx], rax
mov rax, qword [rbp + 0x178]
test rax, rax
je 0x6620544a
mov dword [rax], esi
jmp 0x6620544a
mov r14d, ebx
lea rcx, [rbp - 0x80]
call fcn.66208a70
mov eax, r14d
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret