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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rsi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov rdi, rcx
movabs rbp, 0x9e3779b185ebca87
movabs r15, 0x27d4eb2f165667c5
movabs r14, 0xc2b2ae3d27d4eb4f
movabs r12, 0x7a1435883d4d519d
cmp rsi, 0x20
jb 0x1400021ab
mov rcx, qword [rcx + 8]
mov r8, qword [rdi + 0x18]
mov r9, qword [rdi + 0x20]
mov rax, r8
mov rdx, qword [rdi + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rdx
rol rax, 7
add r10, rax
mov rax, rcx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rcx, r14
imul rdx, r14
imul r8, r14
imul r9, r14
rol rcx, 0x1f
imul rcx, rbp
rol rdx, 0x1f
xor r10, rcx
rol r8, 0x1f
imul r10, rbp
imul rdx, rbp
imul r8, rbp
sub r10, r12
rol r9, 0x1f
xor r10, rdx
imul r10, rbp
imul r9, rbp
sub r10, r12
xor r10, r8
imul r10, rbp
sub r10, r12
xor r10, r9
imul r10, rbp
add rax, r10
add rax, rsi
jmp 0x1400021b3
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x1400021ea
nop dword [rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, r14
add r11, 8
rol rcx, 0x1f
imul rcx, rbp
xor rax, rcx
rol rax, 0x1b
imul rax, rbp
sub rax, r12
cmp rdx, rbx
jbe 0x1400021c0
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x140002215
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rbp
xor rax, rcx
rol rax, 0x17
imul rax, r14
add rax, r8
cmp r11, rbx
jae 0x14000223b
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r15
xor rax, rcx
rol rax, 0xb
imul rax, rbp
cmp r11, rbx
jb 0x140002220
mov rbx, qword [rsp + 0x20]
mov rcx, rax
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
shr rcx, 0x21
xor rcx, rax
imul rcx, r14
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
pop r12
ret

Function at 0x14000a340
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor r14d, r14d
mov rbp, rdx
mov word [rsp + 0x30], r14w
mov rsi, rcx
lea edi, [r14 + 0x28]
test al, al
je 0x14000a3f1
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r14b
lea rcx, [rsp + 0x24]
call fcn.14000fbcc
cmp rax, 1
jne 0x14000a427
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x14000a3cd
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x14000a3c0
cmp rcx, 1
jb 0x14000a427
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r14w
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14000a390
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000b7b0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.14000f890
int3
Function at 0x14000a4b0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a4f5
xor al, al
jmp 0x14000a542
cmp word [rbx], 0
je 0x14000a50d
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a500
cmp word [rsp + 0x30], 0
je 0x14000a53b
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a563
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a520
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000b7b0
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000f890
int3
Function at 0x14000ad00
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.14001f890
sub rsp, rax
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x14002fd74]
lea rsi, [0x140034db0]
mov rdi, rcx
test r11d, r11d
jne 0x14000ad79
mov r8d, 0x1000
lea rdx, str.HOME
lea rcx, [rsp + 0x20]
call fcn.14000a570
test al, al
je 0x14000ae5f
lea rcx, [rsp + 0x20]
call fcn.140013edc
movsxd r11, dword [0x14002fd74]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x14002fd74], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000adb4
mov r10, rsi
mov r8, qword [r10]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000ada4
add rax, 2
test ecx, ecx
jne 0x14000ad90
test edx, edx
je 0x14000add7
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000ad84
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000adc0
cmp rax, 2
jne 0x14000addb
cmp word [rdi + 2], 0x3a
jne 0x14000addb
mov al, 1
jmp 0x14000ae3e
xor edx, edx
mov qword [rsp + 0x2048], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x14000ae08
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000ae08
mov bl, 1
jmp 0x14000ae0c
test bl, bl
je 0x14000ae33
cmp dword [0x14002fd74], 0x400
jge 0x14000ae33
mov rcx, rdi
call fcn.140013edc
movsxd rdx, dword [0x14002fd74]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x14002fd74], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000b7b0
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str.HOME
call fcn.14000aba0
int3
Function at 0x14000af80
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002fd78]
test rcx, rcx
je 0x14000afbb
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000afae
mov rcx, qword [0x14002fd78]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002fd78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140038db2], 0
je 0x14000b0ae
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x140029868]
mov qword [rsp + 0x80], rsi
lea rsi, [0x1400325b0]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b08f
test al, 0x10
je 0x14000b08f
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000b035
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x14000c084
Capabilities:
Parse pe header

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

Function at 0x14000f884
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 0x14000f6e3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f6e3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f6e3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f6e3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f6e3
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f6e3
cmp dword [rcx + 0xf8], 0
je 0x14000f6e3
mov ecx, ebx
call fcn.14000f7a0
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.14000f570
nop
cmp dword [rbp + 0x20], 0
je 0x14000f731
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000f73c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000f674
Function at 0x140018d30
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140018db7
mov rsi, rbx
cmp word [rax], bp
je 0x140018d76
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140018d60
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140018d5c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140016570
mov rdi, rax
test rax, rax
je 0x140018da4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000d650
mov rbp, rdi
xor ecx, ecx
call fcn.1400155b4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001f7a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001f7c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001f7c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000543c
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
sub rsp, 0x58
rdtsc
and qword [0x14000d918], 0
and qword [0x14000d908], 0
shl rdx, 0x20
or rax, rdx
btr eax, 0x1f
mov qword [0x14000d928], rax
call fcn.140005274
mov qword [0x14000d900], rax
mov rdx, rax
test rax, rax
je 0x14000548d
mov eax, 1
mov qword [0x14000d910], rax
mov qword [0x14000d920], rax
jmp 0x14000549d
and qword [0x14000d910], 0
and qword [0x14000d920], 0
mov rax, rdx
neg rax
sbb ecx, ecx
xor eax, eax
not ecx
and ecx, 0x8007000e
test rdx, rdx
cmove eax, ecx
test eax, eax
js 0x1400054fd
and dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x20]
and dword [rsp + 0x40], 0
xor r9d, r9d
mov ecx, 0xb9
mov dword [rsp + 0x34], 0x64
mov qword [rsp + 0x20], 8
mov qword [rsp + 0x28], rax
lea r8d, [r9 + 0x10]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
xor eax, eax
add rsp, 0x58
ret

Function at 0x1400072c0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000730c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140007304
cmp dword [rcx + 0x3c], edx
jl 0x140007304
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140007304
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000730c
mov rax, rdx
add rsp, 0x18
ret
Function at 0x141bf5058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141bf51df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141bf5089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141bf506f
add dl, dl
jne 0x141bf5096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141bf50f6
xor eax, eax
add dl, dl
jne 0x141bf50a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141bf51ad
add dl, dl
jne 0x141bf50b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141bf50c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141bf50d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141bf50dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141bf50ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141bf507e
mov eax, 1
add dl, dl
jne 0x141bf5106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141bf5113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141bf50fb
sub eax, ebx
mov ebx, 1
jne 0x141bf514c
mov ecx, 1
add dl, dl
jne 0x141bf512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141bf513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141bf5123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141bf507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141bf5168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141bf5175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141bf515d
cmp eax, 0x7d00
jae 0x141bf519b
cmp eax, 0x500
jb 0x141bf5196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141bf507e
cmp eax, 0x7f
ja 0x141bf519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141bf507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141bf51d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x141bf507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001150
Capabilities:
Access peb ldr_data

Disassembly:
push rsi
push rdi
sub rsp, 0xd8
mov rax, qword [0x14001d008]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword gs:[0x60]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x20], rax
jmp 0x14000119b
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x18]
add rax, 0x20
cmp qword [rsp + 0x20], rax
je 0x140001318
mov r8d, 1
mov rax, qword [rsp + 0x20]
mov rdx, qword [rax + 0x20]
lea rcx, [rsp + 0xb0]
call fcn.140001610
lea rax, [rsp + 0x40]
lea rcx, [rsp + 0xb0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x40]
call fcn.1400016a0
test eax, eax
jne 0x1400011f9
jmp 0x14000118e
lea rax, [rsp + 0x50]
lea rcx, [rsp + 0xb0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x50]
call fcn.140001900
mov eax, dword [rax + 0xc]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
lea rcx, [rsp + 0xb0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x70]
lea rcx, [rsp + 0x60]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.140001870
mov eax, dword [rax]
or eax, 0x20202020
cmp eax, 0x6c64746e
je 0x140001278
jmp 0x14000118e
lea rax, [rsp + 0x80]
lea rcx, [rsp + 0xb0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x80]
call fcn.140001900
mov eax, dword [rax + 0xc]
add eax, 4
mov eax, eax
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x90]
lea rcx, [rsp + 0xb0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xa0]
lea rcx, [rsp + 0x90]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0xa0]
call fcn.140001870
mov eax, dword [rax]
or eax, 0x20202020
cmp eax, 0x6c642e6c
jne 0x140001313
mov rax, qword [rsp + 0xb0]
jmp 0x14000131a
jmp 0x14000118e
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140001a20
add rsp, 0xd8
pop rdi
pop rsi
ret

Function at 0x1400016a0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rcx, qword [rsp + 0x30]
call fcn.140001640
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400016c1
xor eax, eax
jmp 0x14000170a
mov rcx, qword [rsp + 0x30]
call fcn.140001650
cmp dword [rax], 0x4550
je 0x1400016d7
xor eax, eax
jmp 0x14000170a
mov rcx, qword [rsp + 0x30]
call fcn.140001650
movzx eax, word [rax + 0x18]
cmp eax, 0x10b
je 0x140001705
mov rcx, qword [rsp + 0x30]
call fcn.140001650
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140001705
xor eax, eax
jmp 0x14000170a
mov eax, 1
add rsp, 0x28
ret

Function at 0x1400019f0
Capabilities:
Execute syscall

Disassembly:
add rsp, 8
mov rax, rcx
mov rcx, rdx
mov rdx, r8
mov r8, r9
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
sub rsp, 8
ret

Function at 0x140005da0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140005bcc
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
push rcx
push rsi
mov rdx, qword [rdx + 0x20]
xor r9, r9
movzx rcx, word [rdx + 0x4a]
mov rsi, qword [rdx + 0x50]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
mov rdx, qword [rdx + 0x20]
push r9
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov ecx, dword [rax + 0x18]
push rax
mov r8d, dword [rax + 0x20]
add r8, rdx
jrcxz 0x1400040ca
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
pop r8
add rax, rdx
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x1400017d0
Capabilities:
Create directory

Disassembly:
push rbx
mov eax, 0x20
call fcn.1400100f0
sub rsp, rax
mov rbx, rcx
mov rdx, rcx
xor ecx, ecx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140001850
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x140001850
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x140001810
add rax, 4
cmp rax, 0x104
jae 0x140001850
lea rdx, str.logs
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x140001850
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, 1
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140002d60
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x10070
call fcn.1400100f0
sub rsp, rax
mov rax, qword [0x14001b018]
xor rax, rsp
mov qword [rsp + 0x10060], rax
mov r13, r8
mov rbx, rdx
xor esi, esi
mov dword [r8], esi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov ebp, 1
mov r8d, ebp
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
je 0x140002f82
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, ebp
mov edx, 0x80000000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x50], rax
cmp rax, 0xffffffffffffffff
je 0x140002f6a
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r15d, eax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp r15d, 0xffffffff
je 0x140002f6a
cmp eax, 0xffffffff
je 0x140002f6a
cmp r15d, eax
jne 0x140002f6c
mov r12d, r15d
shr r12d, 0xf
and r15d, 0x7fff
mov r14d, esi
test r12d, r12d
je 0x140002ef7
nop dword [rax]
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x40]
mov r8d, 0x8000
lea rdx, [rsp + 0x8060]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140002f6a
cmp dword [rsp + 0x40], 0x8000
jne 0x140002f6a
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x40]
mov r8d, 0x8000
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140002f6a
cmp dword [rsp + 0x40], 0x8000
jne 0x140002f6a
mov r8d, 0x8000
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x8060]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140002f6c
inc r14d
cmp r14d, r12d
jb 0x140002e60
test r15d, r15d
je 0x140002f64
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x40]
mov r8d, r15d
lea rdx, [rsp + 0x8060]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140002f6a
cmp dword [rsp + 0x40], r15d
jne 0x140002f6a
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x40]
mov r8d, r15d
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140002f6a
cmp dword [rsp + 0x40], r15d
jne 0x140002f6a
mov r8d, r15d
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x8060]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140002f6c
mov dword [r13], ebp
jmp 0x140002f6c
mov ebp, esi
mov esi, ebp
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140002f82
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rdi - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140002f96
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, esi
mov rcx, qword [rsp + 0x10060]
xor rcx, rsp
call fcn.14000e7a0
mov rbx, qword [rsp + 0x100c8]
add rsp, 0x10070
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400061d0
Capabilities:
Check if file exists
Delete file

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x240
call fcn.1400100f0
sub rsp, rax
mov rax, qword [0x14001b018]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor esi, esi
mov rdi, rcx
cmp word [rcx], si
je 0x140006315
mov qword [rsp + 0x258], rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
test eax, eax
jne 0x140006244
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x140006244
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140006244
call fcn.1400010f0
mov r8, rdi
lea rdx, str.Could_not_delete_service_updater_path:__ls.
mov rcx, rax
call fcn.140007b80
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20a
call sub.VCRUNTIME140.dll_memset
mov rbx, 0xffffffffffffffff
mov rax, rbx
inc rax
cmp word [rdi + rax*2], 0
jne 0x140006260
cmp rax, 0x104
ja 0x14000630d
mov r8d, 0x105
lea rcx, [rsp + 0x20]
mov rdx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x14000630d
lea rax, [rsp + 0x20]
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1400062a0
add rbx, 0xb
cmp rbx, 0x104
jae 0x14000630d
lea rdx, str.updater.ini
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x14000630d
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
test eax, eax
jne 0x14000630d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x14000630d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14000630d
call fcn.1400010f0
lea r8, [rsp + 0x20]
mov rcx, rax
lea rdx, str.Could_not_delete_service_updater_INI_path:__ls.
call fcn.140007b80
mov rbx, qword [rsp + 0x258]
mov eax, esi
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14000e7a0
mov rsi, qword [rsp + 0x260]
add rsp, 0x240
pop rdi
ret