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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp edx, 2
je 0x140019180
ja 0x140019098
test edx, edx
je 0x140019118
mov eax, dword [0x1401b1108]
test eax, eax
je 0x140019200
mov dword [0x1401b1108], 1
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp edx, 3
jne 0x140019085
mov eax, dword [0x1401b1108]
test eax, eax
je 0x140019085
lea r12, [0x1401b1120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401b1100]
test rbx, rbx
je 0x140019104
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140019228
test eax, eax
jne 0x140019228
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400190d8
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140019085
mov eax, dword [0x1401b1108]
test eax, eax
jne 0x140019198
mov eax, dword [0x1401b1108]
cmp eax, 1
jne 0x140019085
mov rbx, qword [0x1401b1100]
test rbx, rbx
je 0x140019151
nop dword [rax]
mov rcx, rbx
mov rbx, qword [rbx + 0x10]
call fcn.1400213a8
test rbx, rbx
jne 0x140019140
lea rcx, [0x1401b1120]
mov qword [0x1401b1100], 0
mov dword [0x1401b1108], 0
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x140019085
call fcn.1400187b0
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea r12, [0x1401b1120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401b1100]
test rbx, rbx
je 0x1400191ec
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word [rax + rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140019218
test rsi, rsi
je 0x140019218
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400191c8
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140019122
lea rcx, [0x1401b1120]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x14001907b
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400191c8
jmp 0x1400191ec
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400190d8
jmp 0x140019104

Function at 0x140019360
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r8, qword [0x1401a78b0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140019380
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140019388
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140019380
movzx eax, word [rdx + 0x14]
sub rcx, r8
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400193d5
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400193cc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140019380
add rax, 0x28
cmp rax, r9
jne 0x1400193b8
xor eax, eax
ret
Function at 0x1400193e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1401a78b0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400193ff
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140019408
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400193ff
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400194a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1401a78b0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400194bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400194c8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140019740
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [0x1401b1108]
mov edi, ecx
mov rsi, rdx
test eax, eax
jne 0x140018f70
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
mov rbx, rax
test rax, rax
je 0x140018fba
mov qword [rax + 8], rsi
lea rsi, [0x1401b1120]
mov dword [rax], edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1401b1100]
mov rcx, rsi
mov qword [0x1401b1100], rbx
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140018f66
or eax, 0xffffffff
jmp 0x140018f68
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140019770
mov rdx, rbx
mov ecx, eax
mov dword [rsi], eax
add rsp, 0x28
pop rbx
pop rsi
jmp 0x140021590
add rsp, 0x28
pop rbx
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
test rdx, rdx
jne 0x1400215a0
xor eax, eax
ret
jmp 0x140018f50

Function at 0x1400197b0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x1400197e0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400197f8
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
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.6620e8a0
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.6620ebbc
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.66206f30
test al, al
je 0x6620170f
lea ebx, [r12 + 0x67]
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.6620e990
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.6620e8a0
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.6620e8a0
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.6620e990
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.6620e8a0
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.6620e990
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.6620e8a0
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.6620e8a0
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.66208130
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 0x662030d0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
sub rsp, 0x20
lea rdx, [rcx + 0x120]
xor eax, eax
mov rbx, rcx
mov qword [rdx], rax
mov qword [rdx + 8], rax
mov qword [rdx + 0x10], rax
mov qword [rdx + 0x18], rax
mov qword [rdx + 0x20], rax
mov qword [rdx + 0x28], rax
mov qword [rdx + 0x30], rax
lea r8d, [rax + 0x40]
xor r9d, r9d
xor ecx, ecx
mov qword [rdx + 0x38], rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
xor eax, eax
lea rdx, [rbx + 0x160]
mov qword [rdx], rax
lea ecx, [rax + 1]
lea r8d, [rax + 0xc]
xor r9d, r9d
mov dword [rdx + 8], eax
add rsp, 0x20
pop rbx
jmp qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
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.66208a10
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.66209c30
mov ebx, eax
test eax, eax
js 0x6620544c
lea rcx, [rbp]
call fcn.66209e90
mov esi, dword [rbp + 0x50]
xor r14d, r14d
mov qword [rsp + 0x58], r14
mov eax, esi
mov qword [rsp + 0x68], rax
mov eax, 0x40
mov ecx, 4
cmp byte [rbp + 0x180], r14b
cmovne eax, ecx
mov dword [rbp + 0x150], eax
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 0x6620544c
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 0x662053c0
test r15b, r15b
je 0x662053cd
mov r9, qword [rsp + 0x50]
mov r8d, r12d
mov rdx, rdi
lea rcx, [rbp]
call fcn.662095b0
mov ebx, eax
test eax, eax
jns 0x662053fc
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 0x6620544c
test rdi, rdi
je 0x662053fc
test r12d, r12d
je 0x662053ec
mov r9d, esi
mov r8, qword [rsp + 0x50]
mov edx, r12d
mov rcx, rdi
call fcn.6620cac0
jmp 0x662053fc
mov r8d, esi
mov rdx, rdi
mov rcx, qword [rsp + 0x50]
call fcn.6620ec20
test r13, r13
jne 0x6620540e
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x66205417
mov rax, qword [rsp + 0x58]
mov qword [r13], rax
mov rcx, qword [rbp + 0x170]
test rcx, rcx
jne 0x66205434
mov rdx, qword [rsp + 0x50]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
jmp 0x6620543c
mov rax, qword [rsp + 0x50]
mov qword [rcx], rax
mov rax, qword [rbp + 0x178]
test rax, rax
je 0x6620544f
mov dword [rax], esi
jmp 0x6620544f
mov r14d, ebx
lea rcx, [rbp - 0x80]
call fcn.66208b60
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