joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b73b0
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140155040]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov edi, dword [rcx + 0x30]
mov eax, 0x38
mov r8d, edi
mov rsi, rdx
and r8d, 0x3f
mov rbp, rcx
sub eax, r8d
lea rcx, [rsp + 0x21]
mov ebx, 0x78
sub ebx, r8d
cmp r8d, 0x38
cmovb ebx, eax
xor edx, edx
lea eax, [rbx - 1]
movsxd r8, eax
call fcn.1400e6910
movsxd rax, ebx
lea rdx, [rsp + 0x20]
add rdx, rax
mov byte [rsp + 0x20], 0x80
mov eax, dword [rbp + 0x2c]
lea r8d, [rbx + 8]
shl eax, 3
mov ecx, edi
shr ecx, 0x1d
or ecx, eax
lea eax, [rdi*8]
bswap ecx
mov dword [rdx], ecx
mov rcx, rbp
bswap eax
mov dword [rdx + 4], eax
lea rdx, [rsp + 0x20]
call fcn.1400b72e0
mov ecx, dword [rbp + 0x18]
mov edx, ecx
and edx, 0xff0000
mov eax, ecx
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [rsi], edx
mov ecx, dword [rbp + 0x1c]
mov edx, ecx
and edx, 0xff0000
mov eax, ecx
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [rsi + 4], edx
mov ecx, dword [rbp + 0x20]
mov edx, ecx
and edx, 0xff0000
mov eax, ecx
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [rsi + 8], edx
mov ecx, dword [rbp + 0x24]
mov edx, ecx
and edx, 0xff0000
mov eax, ecx
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [rsi + 0xc], edx
mov ecx, dword [rbp + 0x28]
mov eax, ecx
and eax, 0xff00
mov edx, ecx
shl edx, 0x10
or edx, eax
mov eax, ecx
and eax, 0xff0000
shr ecx, 0x10
or eax, ecx
shl edx, 8
shr eax, 8
or edx, eax
mov dword [rsi + 0x10], edx
xor eax, eax
mov qword [rbp + 0x2c], rax
mov dword [rbp + 0x18], 0x67452301
mov dword [rbp + 0x1c], 0xefcdab89
mov dword [rbp + 0x20], 0x98badcfe
mov dword [rbp + 0x24], 0x10325476
mov dword [rbp + 0x28], 0xc3d2e1f0
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400c6a20
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400c15c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rbx, rcx
test rcx, rcx
je 0x1400c1634
xor eax, eax
lea rdi, [rcx + 0x18]
mov rcx, qword [rcx]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov qword [rsp + 0x38], rax
xor edx, edx
mov dword [rsp + 0x30], 0x2000
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtReadFile]
test eax, eax
js 0x1400c1634
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x1400c1634
add rax, 0x18
mov qword [rbx + 8], rdi
add rax, rbx
mov qword [rbx + 0x10], rax
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
mov rbx, qword [rsp + 0x70]
mov eax, 0xffffffff
add rsp, 0x60
pop rdi
ret

Function at 0x1400c6404
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x1400c647d
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x1400c647d
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
cmp r9w, r11w
jae 0x1400c647d
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1400c6471
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x1400c648f
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x1400c645f
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x1400c647f

Function at 0x1400c7784
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400d9b37
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400d9b37
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400d9b37
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400d9b37
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400d9b37
cmp dword [rcx + 0x84], 0xe
jbe 0x1400d9b37
cmp dword [rcx + 0xf8], 0
je 0x1400d9b37
mov ecx, ebx
call fcn.1400d9bdc
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400d99d0
nop
cmp dword [rbp + 0x20], 0
jne 0x1400d9b98
call fcn.1400e289c
cmp eax, 1
jne 0x1400d9b88
xor dl, dl
jmp 0x1400d9b92
call fcn.1400e2868
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x1400d9ba3
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400d9bac
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1400d9ac8

Function at 0x1400d9cb0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400d9ac8

Function at 0x1400e07d8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov dword [rsp + 0x30], esi
mov rbx, rcx
test rcx, rcx
je 0x1400e084b
cmp word [rcx], si
je 0x1400e084b
lea rdx, [0x14010a7c8]
call fcn.1400e43e4
test eax, eax
je 0x1400e084b
lea rdx, [0x14010a7e0]
mov rcx, rbx
call fcn.1400e43e4
test eax, eax
jne 0x1400e0841
mov ecx, dword [rdi + 8]
lea r9d, [rsi + 2]
lea r8, [rsp + 0x30]
mov edx, 0x2000000b
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400e0868
mov eax, dword [rsp + 0x30]
jmp 0x1400e087a
mov rcx, rbx
call fcn.1400da488
jmp 0x1400e087a
mov ecx, dword [rdi + 8]
lea r8, [rsp + 0x30]
mov r9d, 2
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1400e086c
xor eax, eax
jmp 0x1400e087a
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x1400e087a
call qword [sym.imp.KERNEL32.dll_GetACP]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400e088c
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ebp, edx
mov dword [rax + 8], ebx
mov edi, ecx
call fcn.1400daa98
mov ecx, edi
lea r9d, [rbx + 2]
and ecx, 0x3ff
lea r8, [rsp + 0x30]
bts ecx, 0xa
mov edx, 0x20000001
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400e092f
cmp edi, dword [rsp + 0x30]
je 0x1400e0928
test ebp, ebp
je 0x1400e0928
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x1400e0904
sub dx, 0x61
cmp dx, 0x19
ja 0x1400e0910
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x1400e08f1
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x1400e0914
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x1400e0931
mov eax, 1
jmp 0x1400e0931
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400e10a8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x140164050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x1400e110d
test rax, rax
jne 0x1400e10fb
lea r9, str.GetLocaleInfoEx
lea r8, [0x14010ae38]
lea rdx, str.GetLocaleInfoEx
lea ecx, [rax + 0xa]
call fcn.1400e0dc8
test rax, rax
je 0x1400e110d
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.1400e68d0
jmp 0x1400e1127
xor edx, edx
mov rcx, rbp
call fcn.1400e1398
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400e6380
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400e63a8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400e63a8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400e7016
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rax, qword gs:[0x60]
xor r14d, r14d
mov qword [r11 + 0x10], r14
mov rcx, qword [rax + 0x18]
add rcx, 0x10
mov rdx, qword [rcx]
cmp rdx, rcx
je 0x1400e7057
mov rax, qword [rdx + 0x60]
mov rbp, qword [rdx + 0x30]
mov qword [r11 + 0x10], rax
jmp 0x1400e705a
mov rbp, r14
mov r9d, dword [0x140157294]
mov rax, qword gs:[0x60]
mov rdx, qword [rax + 0x18]
add rdx, 0x10
mov rbx, qword [rdx]
jmp 0x1400e70c1
test r9d, r9d
je 0x1400e726d
mov rdi, qword [rbx + 0x60]
mov r10d, r14d
mov r11, r14
movzx r8d, word [rdi]
jmp 0x1400e70af
lea eax, [r8 - 0x41]
cmp ax, 0x19
lea ecx, [r8 + 0x20]
cmova cx, r8w
movzx eax, cx
add r10d, eax
inc r11
ret
movzx r8d, word [rdi + r11*2]
test r8w, r8w
jne 0x1400e7090
cmp r9d, r10d
je 0x1400e726d
invalid
mov rbx, qword [rbx]
cmp rbx, rdx
jne 0x1400e7077
mov rbx, qword [rbx + 0x30]
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.6620e8b0
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.6620ebcc
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.6620e9a0
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.6620e8b0
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.6620e8b0
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.6620e9a0
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.6620e8b0
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.6620e9a0
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 r8d, dword [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.6620e8b0
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.6620e8b0
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