joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400089e0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x14004c070]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword [0x14004cca8]
movups xmm0, xmmword [rax - 0x10]
movups xmmword [rsp + 0x30], xmm0
cmp qword [0x14004ccc0], 0
je 0x140008a16
mov ecx, 5
int 0x29
xorps xmm0, xmm0
movdqu xmmword [0x14004ccc8], xmm0
lea r9, [0x14004ccc0]
lea r8, [0x14004cca0]
lea rdx, section..text
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_EventRegister]
test eax, eax
jne 0x140008a60
mov r8, qword [0x14004cca8]
movzx r9d, word [r8]
lea edx, [rax + 2]
mov rcx, qword [0x14004ccc0]
call qword [sym.imp.ADVAPI32.dll_EventSetInformation]
cmp dword [0x14004cca0], 0
jbe 0x140008a8b
lea rax, str.TraceLoggerInit__
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea rdx, [0x1400469fc]
call fcn.140001070
lea r8, [0x140044c48]
lea rdx, str.C:ProgramDataASUS_hsDebug.txt
lea rcx, [0x14004f290]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [0x14004f290]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
movzx ecx, byte [0x14004f285]
mov edx, 1
test eax, eax
cmovne ecx, edx
mov byte [0x14004f285], cl
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], ax
xor r8d, r8d
lea rdx, [0x140043aa8]
lea rcx, [rsp + 0x40]
call fcn.140001b70
nop
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140035720]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x140008bb9
mov rdx, qword [rsp + 0x30]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140008b30
lea rcx, [rsp + 0x40]
call fcn.140001b70
mov r8d, 0x30
lea rdx, str.PackagesB9ECED6F.ASUSPCAssistant_qmba6cd70vzyy
lea rcx, [rsp + 0x40]
call fcn.14000b7c0
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140008bb9
mov rdx, qword [rsp + 0x30]
nop dword [rax]
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x140008b80
mov r8, rbx
lea rcx, [0x14004ccd8]
call fcn.140001b70
mov r8d, 0x3f
lea rdx, str.PackagesB9ECED6F.ASUSPCAssistant_qmba6cd70vzyyLocalStatelog
lea rcx, [0x14004ccd8]
call fcn.14000b7c0
mov byte [0x14004f284], 1
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140008bf7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008bf2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008c35
call fcn.14000eefc
xor ecx, ecx
call fcn.14001b08c
mov qword [0x14004f288], rax
cmp byte [0x14004f284], 0
je 0x140008c1b
lea rcx, [0x14004f498]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rax, [0x14004f4c0]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14000eea0
add rsp, 0x70
pop rbx
ret
call fcn.14001657c
int3
Function at 0x1400168fc
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 0x140016767
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140016767
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140016767
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140016767
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140016767
cmp dword [rcx + 0x84], 0xe
jbe 0x140016767
cmp dword [rcx + 0xf8], 0
je 0x140016767
mov ecx, ebx
call fcn.140016818
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.1400165f4
nop
cmp dword [rbp + 0x20], 0
je 0x1400167b5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400167c0
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400166f8

Function at 0x140016a40
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140016a77
call fcn.14001b788
mov dword [rax], 0x16
call fcn.14001655c
xor eax, eax
jmp 0x140016b05
mov rdx, r9
mov rcx, r8
call fcn.1400169dc
mov rbx, rax
test rax, rax
je 0x140016b02
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140016908]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140016aef
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001b6fc
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140016ad6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140016ae5
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400226d8
jmp 0x140016b02
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140016aff
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140026ca4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140026cba
mov al, 1
jmp 0x140026d1a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140026ccb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140026d18
mov ecx, dword [rcx + 0x18]
nop
call fcn.14002bb44
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140026d18
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140026d18
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140026d18
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140026d1a
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140027604
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14000f7a0
sub rsp, rax
mov rax, qword [0x14004c070]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140024500
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140027653
mov rax, rbp
jmp 0x14002775b
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x4eb40]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140027aec
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x4eb40]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140027757
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140027757
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140027aec
test rax, rax
js 0x140027757
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140027757
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140027749
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140027749
cmp byte [rcx], 0xd
jne 0x14002772f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002773e
cmp byte [rcx + 1], 0xa
jne 0x14002773e
inc rcx
jmp 0x14002773e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x4cb80]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140027711
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002775b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000eea0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002ae90
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 0x14002af17
mov rsi, rbx
cmp word [rax], bp
je 0x14002aed6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14002aec0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14002aebc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140023244
mov rdi, rax
test rax, rax
je 0x14002af04
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140011340
mov rbp, rdi
xor ecx, ecx
call fcn.1400226d8
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 0x14002e098
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140022118
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14002e139
cmp ebx, dword [rsp + 0x30]
je 0x14002e132
test esi, esi
je 0x14002e132
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14002e10d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002e11a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002e0f7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14002e11e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002e13b
mov eax, 1
jmp 0x14002e13b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14003004c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14004eb40]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400300a3
cmp word [rdx], r13w
jne 0x1400300a3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400300a8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400301cd
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400301ee
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400300e1
mov rdx, r9
mov word [rbx], cx
jmp 0x140030108
cmp r9, r8
jae 0x140030118
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400300c2
jmp 0x1400301cd
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400301c2
cmp dword [rsp + 0x80], esi
je 0x1400301c2
lea r8, [0x14004eb40]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14003019a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14003016a
mov word [rbx], r13w
jmp 0x1400301ca
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140030177
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400301ca
cmp word [rsp + 0x70], r13w
jne 0x1400301a7
cmp rbx, r14
je 0x140030164
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140027af4
cmp word [rsp + 0x70], r13w
je 0x1400301cd
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14004eb40]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400301c7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400301cd
Function at 0x140033300
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140027af4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140027af4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140033450
cmp rax, 0xffffffffffffffff
je 0x140033450
xor edi, edi
test rbp, rbp
jle 0x1400333fb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140022660
mov rbx, rax
test rax, rax
jne 0x140033388
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400333f1
mov edx, 0x8000
mov ecx, r14d
call fcn.14002017c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140026360
cmp eax, 0xffffffff
je 0x1400333d1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140033398
mov edx, r15d
mov ecx, r14d
call fcn.14002017c
jmp 0x1400333f1
cmp byte [rsi + 0x38], dil
je 0x1400333e8
cmp dword [rsi + 0x34], 5
jne 0x1400333e8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400333f1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400226d8
jmp 0x140033464
jns 0x140033464
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140027af4
cmp rax, 0xffffffffffffffff
jne 0x14003341c
cmp byte [rsi + 0x30], dil
je 0x140033464
mov edi, dword [rsi + 0x2c]
jmp 0x140033464
mov ecx, r14d
call fcn.14002bb44
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140033464
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140033464
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14003345d
mov eax, dword [rsi + 0x2c]
jmp 0x140033462
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140027af4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1406be058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1406be1df
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 0x1406be089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406be06f
add dl, dl
jne 0x1406be096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406be0f6
xor eax, eax
add dl, dl
jne 0x1406be0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406be1ad
add dl, dl
jne 0x1406be0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406be0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406be0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406be0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406be0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406be07e
mov eax, 1
add dl, dl
jne 0x1406be106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406be113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406be0fb
sub eax, ebx
mov ebx, 1
jne 0x1406be14c
mov ecx, 1
add dl, dl
jne 0x1406be12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406be13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406be123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406be07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406be168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406be175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406be15d
cmp eax, 0x7d00
jae 0x1406be19b
cmp eax, 0x500
jb 0x1406be196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406be07e
cmp eax, 0x7f
ja 0x1406be19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406be07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406be1d2
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 0x1406be07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140008dd8
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1400e4940]
test rax, rax
je 0x140008dfa
call rax
mov al, 1
jmp 0x140008f56
xor r9d, r9d
mov dword [rbp - 0x30], 0x9400ea7e
mov cl, 0x7e
mov dword [rbp - 0x2c], 0x9f2dba30
mov dword [rbp - 0x28], 0x7ebe43
movabs rdi, 0x8080808080808081
lea r10d, [r9 + 0xa]
movsx eax, cl
inc eax
movsxd r8, eax
lea rax, [r9 + 0xa]
imul r8, rax
mov rax, rdi
mul r8
shr rdx, 7
imul rax, rdx, 0xff
movsx rdx, cl
sub r8, rax
mov al, r9b
and al, 7
shl al, 3
mov cl, al
mov rax, rdi
sar rdx, cl
mov rcx, r10
xor r8b, dl
mul r10
add r10, 0xa
shr rdx, 7
imul rax, rdx, 0xff
sub rcx, rax
xor r8b, cl
xor byte [rbp + r9 - 0x2f], r8b
inc r9
cmp r10, 0x6e
jae 0x140008e8b
mov cl, byte [rbp - 0x30]
jmp 0x140008e22
lea rcx, [rbp - 0x2f]
mov byte [rbp - 0x25], 0
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r9, rax
test rax, rax
je 0x140008f54
movdqa xmm0, xmmword [0x1400d3570]
xor eax, eax
movdqu xmmword [rbp - 0x20], xmm0
mov dword [rbp - 0x10], 0xbd566e6b
xor r10d, r10d
mov word [rbp - 0xc], 0x8d9d
lea r11d, [rax + 0x15]
mov byte [rbp - 0xa], al
movsx eax, byte [rbp - 0x20]
mov cl, r10b
inc eax
and cl, 7
movsxd r8, eax
lea rax, [r10 + 0x15]
imul r8, rax
shl cl, 3
mov rax, rdi
mul r8
shr rdx, 7
imul rax, rdx, 0xff
movsx rdx, byte [rbp - 0x20]
sub r8, rax
sar rdx, cl
xor r8b, dl
mov rcx, r11
mov rax, rdi
mul r11
add r11, 0x15
shr rdx, 7
imul rax, rdx, 0xff
sub rcx, rax
xor r8b, cl
xor byte [rbp + r10 - 0x1f], r8b
inc r10
cmp r11, 0x1ce
jb 0x140008ecb
lea rdx, [rbp - 0x1f]
mov byte [rbp - 0xa], 0
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400e4940], rax
test rax, rax
jne 0x140008df1
xor al, al
mov rdi, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret

Function at 0x140008f64
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x1400dd700]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov esi, ecx
xor ebx, ebx
xor edx, edx
lea ecx, [rbx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140008fdf
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
jmp 0x140008fcc
cmp dword [rsp + 0x28], esi
je 0x140008fd2
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140008fb8
jmp 0x140008fd6
mov ebx, dword [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140089140
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140009074
Capabilities:
Create process on windows
Enumerate gui resources

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xf0
mov rax, qword [0x1400dd700]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xor edx, edx
mov rbx, rcx
lea rcx, [rsp + 0x74]
lea r8d, [rdx + 0x64]
call fcn.1400b3210
xor eax, eax
mov dword [rsp + 0x70], WSAGetLastError
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x40], rax
mov rcx, rbx
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
and dword [rsp + 0x20], 0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140009150
mov edi, dword [rsp + 0x60]
xor ebx, ebx
mov rdx, rdi
lea rcx, [0x140009008]
call qword [sym.imp.USER32.dll_EnumWindows]
cmp byte [0x1400e4938], 0
jne 0x140009138
mov ecx, 5
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x3a98
jl 0x14000910a
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140089140
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140009178
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400dd700]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
mov qword [rbp - 0x30], rcx
and dword [rbp - 0x60], 0
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
and qword [rcx + 0x10], 0
and qword [rcx + 0x10], 0
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], 0
mov dword [rbp - 0x60], 1
mov rcx, qword gs:[0x60]
mov qword [rbp - 0x58], rcx
movabs rax, 0x8080808080808081
mul rcx
mov rdi, rdx
shr rdi, 7
add dil, cl
xor esi, esi
lea r14, [rbp - 0x58]
mov r15d, dword [rbp - 0x60]
xor dil, byte [r14]
movzx eax, dil
mov dil, al
mov r8d, eax
lea r9, [rbp - 0x13]
dec r9
mov eax, 0xcccccccd
mul r8d
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r9], r8b
mov r8d, edx
test edx, edx
jne 0x140009210
lea r8, [rbp - 0x13]
mov rdx, r9
lea rcx, [rbp - 0x50]
call fcn.14002bac4
or r15d, 6
mov dword [rbp - 0x60], r15d
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0xf
cmova rdx, qword [rbp - 0x50]
mov r8, qword [rbp - 0x40]
mov rcx, rbx
call fcn.14002abfc
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 0xf
jbe 0x1400092a3
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000929e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400092dd
call fcn.140089160
inc esi
inc r14
cmp esi, 8
jb 0x1400091ff
mov rax, rbx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140089140
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.1400918b0
int3