joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140051698
Capabilities:
Enumerate files on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
lea rbp, [rax - 0x1d8]
sub rsp, 0x2c0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rbx, rcx
mov rax, rcx
mov rdx, qword [rcx + 0x18]
cmp rdx, 8
jb 0x1400516d0
mov rax, qword [rcx]
mov rcx, qword [rcx + 0x10]
lea rax, [rax + rcx*2]
mov qword [rsp + 0x60], rax
mov r9d, 0x5c
cmp word [rax - 2], r9w
je 0x140051711
cmp rcx, rdx
jae 0x140051709
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 8
jb 0x140051703
mov rax, qword [rbx]
mov dword [rax + rcx*2], r9d
jmp 0x140051711
mov rcx, rbx
call fcn.14000df60
mov rcx, qword [rbx + 0x10]
cmp rcx, qword [rbx + 0x18]
jae 0x140051739
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x140051730
mov rax, qword [rbx]
mov dword [rax + rcx*2], 0x2a
jmp 0x140051747
mov r9d, 0x2a
mov rcx, rbx
call fcn.14000df60
mov dword [rsp + 0x20], 0x64002e
mov dword [rsp + 0x24], 0x6c006c
xor eax, eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x20]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14000de4c
nop
lea rdi, [rsp + 0x20]
xor eax, eax
lea ecx, [rax + 0xc]
rep stosb byte [rdi], al
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140051788
mov rcx, qword [rbx]
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
mov qword [rsp + 0x30], rax
cmp rax, 0xffffffffffffffff
je 0x140051839
test dword [rsp + 0x70], 0x4c14
jne 0x1400517fd
cmp word [rbp - 0x64], 0x2e
je 0x1400517fd
lea rax, [rbp - 0x64]
mov qword [rbp + 0x1f8], rax
mov rax, qword [0x140097ad0]
cmp qword [0x140097ad8], rax
je 0x1400517e7
lea rdx, [rbp - 0x64]
mov rcx, rax
call fcn.14000d47c
add qword [0x140097ad0], 0x20
jmp 0x1400517fd
lea r8, [rbp + 0x1f8]
mov rdx, rax
lea rcx, [0x140097ac8]
call fcn.1400316a8
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400517a5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
or qword [rsp + 0x30], 0xffffffffffffffff
mov rcx, rbx
call fcn.140002adc
mov rbx, qword [rsp + 0x2e8]
add rsp, 0x2c0
pop rdi
pop rsi
pop rbp
ret
mov eax, dword gs:[0x68]
lea rcx, vtable.std::exception.0
mov qword [rsp + 0x38], rcx
xor ecx, ecx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rcx
lea rcx, method.std::bad_alloc.virtual_0
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x50], 0xd0001d10
mov dword [rsp + 0x54], eax
lea rdx, [0x14008f0d0]
lea rcx, [rsp + 0x38]
call fcn.1400606c0
int3
Function at 0x1400518b4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x100
mov r14, qword [rsp + 0x140]
xor r10d, r10d
mov r15, qword [rsp + 0x148]
mov dil, r10b
add r15, r14
mov eax, r10d
mov rbp, r8
mov rbx, rdx
mov rsi, rcx
mov r9, rcx
mov byte [rsp + rax], al
inc rax
cmp rax, 0x100
jb 0x1400518f7
mov r11b, r10b
mov r8, r10
mov dl, byte [rsp + r8]
mov rax, r8
and eax, 0xf
mov cl, byte [rax + rbp]
add cl, dl
add dil, cl
movzx ecx, dil
mov al, byte [rsp + rcx]
mov byte [rsp + r8], al
inc r8
mov byte [rsp + rcx], dl
cmp r8, 0x100
jb 0x14005190b
test rbx, rbx
je 0x14005197f
inc r10b
movzx edx, r10b
mov r8b, byte [rsp + rdx]
add r11b, r8b
movzx ecx, r11b
mov al, byte [rsp + rcx]
mov byte [rsp + rdx], al
mov byte [rsp + rcx], r8b
cmp r9, r14
jb 0x140051971
cmp r9, r15
jae 0x14005197f
mov al, byte [rsp + rdx]
add al, r8b
movzx eax, al
mov cl, byte [rsp + rax]
xor byte [r9], cl
inc r9
mov rax, r9
sub rax, rsi
cmp rax, rbx
jb 0x14005193c
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x140056574
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov r10, rdx
mov rbx, rcx
movabs r8, 0xcbf29ce484222325
xor r9d, r9d
movzx eax, byte [r9 + rdx]
movabs rcx, 0x100000001b3
xor r8, rax
inc r9
imul r8, rcx
cmp r9, 8
jb 0x140056596
mov r9, qword [rbx + 0x30]
mov rdx, qword [rbx + 8]
and r9, r8
mov r8, qword [rbx + 0x18]
add r9, r9
mov rax, qword [r8 + r9*8]
cmp qword [r8 + r9*8], rdx
jne 0x1400565d6
mov rcx, rdx
jmp 0x1400565de
mov rcx, qword [r8 + r9*8 + 8]
mov rcx, qword [rcx]
cmp rax, rcx
je 0x1400565f1
mov rcx, qword [r10]
cmp qword [rax + 0x10], rcx
je 0x1400565f4
mov rax, qword [rax]
jmp 0x1400565cb
mov rax, rdx
cmp rax, rdx
jne 0x14005665f
mov qword [rsp + 0x50], r10
lea rax, [rsp + 0x50]
mov rdi, qword [rdx]
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov rsi, qword [rdi + 8]
mov r8, rsi
call fcn.140016fdc
mov rdx, rax
movabs rcx, 0x7fffffffffffffe
mov rax, qword [rbx + 0x10]
sub rcx, rax
cmp rcx, 1
jb 0x140056673
inc rax
mov rcx, rbx
mov qword [rbx + 0x10], rax
mov qword [rdi + 8], rdx
mov qword [rsi], rdx
lea rdx, [rsp + 0x30]
mov r9, qword [rbx + 8]
mov r9, qword [r9]
lea r8, [r9 + 0x10]
call fcn.140057c80
mov rax, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x58]
add rax, 0x18
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
lea rcx, str.list_T__too_long
call fcn.14005fe5c
int3
Function at 0x140056ee4
Capabilities:
Hash data using fnv

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x70
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rdi, r9
mov r10, r8
mov r14, rdx
mov rsi, rcx
movabs rcx, 0xcbf29ce484222325
mov qword [rax - 0x68], rcx
xor r9d, r9d
mov qword [rsp + 0x40], r9
cmp r9, 4
jae 0x140056f50
movzx eax, byte [r9 + r8]
xor rcx, rax
mov qword [rsp + 0x20], rcx
movabs rax, 0x100000001b3
imul rcx, rax
mov qword [rsp + 0x20], rcx
inc r9
jmp 0x140056f20
mov r8, qword [rsi + 0x30]
and r8, rcx
mov qword [rsp + 0x58], r8
add r8, r8
mov rcx, qword [rsi + 0x18]
mov rax, qword [rsi + 8]
mov qword [rsp + 0x30], rax
cmp qword [rcx + r8*8], rax
jne 0x140056f78
mov rbx, qword [rsi + 8]
jmp 0x140056f89
mov rax, qword [rsi + 0x18]
mov rbx, qword [rax + r8*8 + 8]
mov rbx, qword [rbx]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x48], rbx
mov rax, qword [rsi + 0x18]
cmp rbx, qword [rax + r8*8]
je 0x140056fe6
mov rbx, qword [rbx + 8]
mov qword [rsp + 0x48], rbx
mov eax, dword [rbx + 0x10]
cmp dword [r10], eax
jne 0x140056fe4
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
mov qword [rax], rcx
mov rcx, qword [rdi + 8]
mov rax, qword [rdi]
mov qword [rax + 8], rcx
dec qword [rsi + 0x10]
mov qword [rsp + 0x60], 0x20
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [r14], rbx
mov byte [r14 + 8], 0
mov rax, r14
jmp 0x14005710c
jmp 0x140056f8e
mov rax, qword [rdi]
cmp rbx, rax
je 0x14005701b
mov rcx, qword [rdi + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rbx
mov rcx, qword [rbx + 8]
mov qword [rcx], rdi
mov rdx, qword [rbx + 8]
mov rcx, qword [rax + 8]
mov qword [rbx + 8], rcx
mov rcx, qword [rdi + 8]
mov qword [rax + 8], rcx
mov qword [rdi + 8], rdx
mov rdx, qword [rsi + 0x18]
mov rax, qword [rdx + r8*8]
cmp rax, qword [rsi + 8]
jne 0x140057038
mov qword [rdx + r8*8], rdi
mov rax, qword [rsi + 0x18]
mov qword [rax + r8*8 + 8], rdi
jmp 0x140057067
cmp rax, rbx
jne 0x140057043
mov qword [rdx + r8*8], rdi
jmp 0x140057067
mov rax, qword [rdx + r8*8 + 8]
mov rcx, qword [rax]
mov qword [rdx + r8*8 + 8], rcx
cmp rcx, rdi
je 0x140057067
mov rdx, qword [rsi + 0x18]
mov rax, qword [rdx + r8*8 + 8]
mov rcx, qword [rax + 8]
mov qword [rdx + r8*8 + 8], rcx
mov rax, qword [rsi + 0x10]
mov rdx, qword [rsi + 0x38]
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
movss xmm1, dword [0x1400727e8]
test rax, rax
jns 0x140057088
addss xmm0, xmm1
xorps xmm2, xmm2
cvtsi2ss xmm2, rdx
test rdx, rdx
jns 0x140057099
addss xmm2, xmm1
divss xmm0, xmm2
comiss xmm0, dword [rsi]
jbe 0x140057101
mov qword [rsp + 0x28], rdx
cmp rdx, 0x200
jae 0x1400570bb
shl rdx, 3
mov qword [rsp + 0x28], rdx
jmp 0x1400570f0
movabs rax, 0x1fffffffffffffff
mov qword [rsp + 0x38], rax
movabs rax, 0x7fffffffffffffff
mov qword [rsp + 0x30], rax
movabs rax, 0xfffffffffffffff
cmp rdx, rax
jae 0x1400570f0
add rdx, rdx
mov qword [rsp + 0x28], rdx
mov rcx, rsi
call fcn.140003a88
mov rcx, rsi
call fcn.140056c58
nop
mov qword [r14], rdi
mov byte [r14 + 8], 1
mov rax, r14
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop r14
pop rdi
pop rsi
ret
Function at 0x140059260
Capabilities:
Parse pe header

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
sub rsp, 0xb0
mov qword [r11 - 0x48], 0xfffffffffffffffe
mov rax, qword [0x140098788]
xor esi, esi
test rax, rax
jne 0x14005947d
lea rcx, [r11 - 0x68]
call fcn.140058bbc
nop
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
mov qword [rsp + 0x88], rdx
lea rcx, [rsp + 0x30]
call fcn.140001bc0
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x38]
cmp word [rcx], ax
je 0x1400592c8
mov eax, esi
jmp 0x1400592e1
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp + 0x90], rax
cmp dword [rax], 0x4550
cmovne rax, rsi
mov qword [rsp + 0xe8], rax
cmp dword [rax + 8], 0x5a6abcfb
jb 0x140059361
mov dword [rsp + 0x40], 0x7865742e
mov dword [rsp + 0x44], 0x74
xor eax, eax
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x40]
lea rdx, [0x140096a10]
cmp qword [0x140096a28], 0x10
cmovae rdx, qword [0x140096a10]
mov qword [rsp + 0x98], rdx
lea r9, [rsp + 0x40]
mov r8, qword [0x140096a20]
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.14000b73c
mov rdx, rax
mov qword [rsp + 0x58], rax
lea rdi, [rsp + 0x40]
xor eax, eax
lea ecx, [rax + 0xc]
rep stosb byte [rdi], al
test rdx, rdx
jne 0x140059401
mov dword [rsp + 0x4c], 0x7865742e
mov dword [rsp + 0x50], 0x74
xor eax, eax
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x4c]
lea rdx, [0x1400969e0]
cmp qword [0x1400969f8], 0x10
cmovae rdx, qword [0x1400969e0]
mov qword [rsp + 0xa0], rdx
lea r9, [rsp + 0x4c]
mov r8, qword [0x1400969f0]
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.14000b73c
mov rdx, rax
mov qword [rsp + 0x58], rax
lea rdi, [rsp + 0x4c]
xor eax, eax
lea ecx, [rax + 0xc]
rep stosb byte [rdi], al
test rdx, rdx
jne 0x140059401
mov eax, dword [str._w3_t_t]
mov dword [rsp + 0xd0], eax
mov dword gs:[0x68], eax
mov rdx, rbx
mov rcx, qword [rsp + 0x30]
call fcn.14005fa20
mov qword [rsp + 0x38], rsi
lea rcx, [rsp + 0x60]
call fcn.140002adc
xor eax, eax
jmp 0x14005947d
sub rdx, rbx
mov qword [0x140098788], rdx
mov rax, qword [rsp + 0xe8]
mov ecx, dword [rax + 0x50]
mov eax, dword [str._w3_t_t]
cmp rdx, rcx
mov rdx, rbx
mov rcx, qword [rsp + 0x30]
jb 0x140059450
mov dword [rsp + 0xd8], eax
mov dword gs:[0x68], eax
call fcn.14005fa20
mov qword [rsp + 0x38], rsi
lea rcx, [rsp + 0x60]
call fcn.140002adc
xor eax, eax
jmp 0x14005947d
mov dword [rsp + 0xe0], eax
mov dword gs:[0x68], eax
call fcn.14005fa20
mov qword [rsp + 0x38], rsi
mov rdi, qword [0x140098788]
lea rcx, [rsp + 0x60]
call fcn.140002adc
mov rax, rdi
add rsp, 0xb0
pop rdi
pop rsi
pop rbx
ret
Function at 0x140059488
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
sub rsp, 0xd0
mov qword [r11 - 0x38], 0xfffffffffffffffe
mov rax, qword [0x140098790]
xor esi, esi
test rax, rax
jne 0x140059709
lea rcx, [r11 - 0x58]
call fcn.140058dec
nop
lea rdx, [rsp + 0x90]
cmp qword [rsp + 0xa8], 8
cmovae rdx, qword [rsp + 0x90]
mov qword [rsp + 0xb8], rdx
lea rcx, [rsp + 0x30]
call fcn.140001bc0
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x38]
cmp word [rcx], ax
je 0x1400594fc
mov qword [rsp + 0x70], rsi
jmp 0x14005951a
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp + 0xc0], rax
cmp dword [rax], 0x4550
cmovne rax, rsi
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x40], 0x7865742e
mov dword [rsp + 0x44], 0x74
xor eax, eax
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x78], 0x56555340
mov dword [rsp + 0x7c], 0x41544157
mov dword [rsp + 0x80], 0x41564155
mov dword [rsp + 0x84], 0xec834857
mov dword [rsp + 0x88], 0x818b28
xor eax, eax
mov dword [rsp + 0x8c], eax
mov eax, dword [rsp + 0x78]
lea r9, [rsp + 0x40]
mov r8d, 0x13
lea rdx, [rsp + 0x78]
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.14000b73c
mov rdx, rax
mov qword [rsp + 0x108], rax
lea rdi, [rsp + 0x78]
xor eax, eax
lea ecx, [rax + 0x18]
rep stosb byte [rdi], al
lea rdi, [rsp + 0x40]
lea ecx, [rax + 0xc]
rep stosb byte [rdi], al
test rdx, rdx
jne 0x14005968a
mov dword [rsp + 0x4c], 0x7865742e
mov dword [rsp + 0x50], 0x74
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x58], 0xcc058d4c
mov dword [rsp + 0x5c], 0x48cccccc
mov dword [rsp + 0x60], 0xcc247c89
mov dword [rsp + 0x64], 0x4c
xor eax, eax
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x58]
lea r9, [rsp + 0x4c]
lea r8d, [rdx + 0xd]
lea rdx, [rsp + 0x58]
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.14000b73c
mov rdx, rax
mov qword [rsp + 0x108], rax
lea rdi, [rsp + 0x58]
xor eax, eax
lea ecx, [rax + 0x14]
rep stosb byte [rdi], al
lea rdi, [rsp + 0x4c]
lea ecx, [rax + 0xc]
rep stosb byte [rdi], al
test rdx, rdx
jne 0x140059677
mov eax, dword [str._w3_t_t]
mov dword [rsp + 0xf0], eax
mov dword gs:[0x68], eax
mov rdx, rbx
mov rcx, qword [rsp + 0x30]
call fcn.14005fa20
mov qword [rsp + 0x38], rsi
lea rcx, [rsp + 0x90]
call fcn.140002adc
xor eax, eax
jmp 0x140059709
movsxd rax, dword [rdx + 3]
add rdx, 7
add rdx, rax
mov qword [rsp + 0x108], rdx
sub rdx, rbx
mov qword [0x140098790], rdx
mov rax, qword [rsp + 0x70]
mov ecx, dword [rax + 0x50]
mov eax, dword [str._w3_t_t]
cmp rdx, rcx
mov rdx, rbx
mov rcx, qword [rsp + 0x30]
jb 0x1400596d9
mov dword [rsp + 0xf8], eax
mov dword gs:[0x68], eax
call fcn.14005fa20
mov qword [rsp + 0x38], rsi
lea rcx, [rsp + 0x90]
call fcn.140002adc
xor eax, eax
jmp 0x140059709
mov dword [rsp + 0x100], eax
mov dword gs:[0x68], eax
call fcn.14005fa20
mov qword [rsp + 0x38], rsi
mov rdi, qword [0x140098790]
lea rcx, [rsp + 0x90]
call fcn.140002adc
mov rax, rdi
add rsp, 0xd0
pop rdi
pop rsi
pop rbx
ret
Function at 0x140060784
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x1400a1790
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x1400a17bd
xor al, al
jmp 0x1400a191f
mov rax, qword [0x1400c1670]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x1400c1678]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x1400c1680]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x1400c1688]
mov qword [rcx + 0x18], rax
mov rax, qword [0x1400c1690]
mov qword [rcx + 0x20], rax
mov rax, qword [0x1400c1698]
mov qword [rcx + 0x28], rax
mov rax, qword [0x1400c16a0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x1400c16a8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x1400c16b0]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x1400a1911
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x1400a1869
mov r11d, 2
jmp 0x1400a188d
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x1400a1883
mov r11d, 1
jmp 0x1400a188d
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x1400a1935
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x1400a18d2
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x1400a18ea
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x1400a18fa
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x1400a1908
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x1400a1850
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x1400a191a
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
push rcx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
push rsi
mov rdx, qword [rdx + 0x20]
mov rsi, qword [rdx + 0x50]
xor r9, r9
movzx rcx, word [rdx + 0x4a]
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
push r9
mov rdx, qword [rdx + 0x20]
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 r8d, dword [rax + 0x20]
mov ecx, dword [rax + 0x18]
push rax
add r8, rdx
jrcxz 0x1400040ca
dec rcx
xor r9, r9
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
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
pop rsi
pop rcx
add rax, rdx
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 0x1400013d0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rax, qword [0x14000d010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rsi, rcx
xor r14d, r14d
cmp qword [rcx + 0x18], 0xe
jb 0x140001423
mov rbx, qword [rcx]
mov qword [rcx + 0x10], 0xe
lea r8d, [r14 + 0x1c]
lea rdx, str.C:ProgramData
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + 0x1c], r14w
jmp 0x140001434
lea r9, str.C:ProgramData
mov edx, 0xe
call fcn.140005360
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rbp, [0x14000dcf8]
mov eax, dword [rdx + rcx]
cmp dword [0x14000dd18], eax
jle 0x1400014af
lea rcx, [0x14000dd18]
call fcn.140006430
cmp dword [0x14000dd18], 0xffffffff
jne 0x1400014af
xorps xmm0, xmm0
movups xmmword [0x14000dcf8], xmm0
mov qword [0x14000dd08], r14
mov qword [0x14000dd10], r14
xor r8d, r8d
lea rdx, [0x140008918]
mov rcx, rbp
call fcn.140005220
lea rcx, [0x1400075d0]
call fcn.1400067b4
nop
lea rcx, [0x14000dd18]
call fcn.1400063d0
mov rdx, qword [0x14000dd08]
test rdx, rdx
jne 0x140001555
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x20]
xor r8d, r8d
lea rcx, [0x1400086d0]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x14000153e
mov r9, qword [rsp + 0x20]
mov rdx, 0xffffffffffffffff
nop dword [rax]
inc rdx
cmp word [r9 + rdx*2], 0
jne 0x1400014f0
mov rax, qword [0x14000dd10]
cmp rdx, rax
ja 0x140001536
mov rdi, rbp
cmp rax, 8
cmovae rdi, qword [0x14000dcf8]
mov qword [0x14000dd08], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi], r14w
jmp 0x14000153e
mov rcx, rbp
call fcn.140005360
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rdx, qword [0x14000dd08]
test rdx, rdx
je 0x1400015a7
cmp rsi, rbp
je 0x1400015a7
cmp qword [0x14000dd10], 8
cmovae rbp, qword [0x14000dcf8]
mov rax, qword [rsi + 0x18]
cmp rdx, rax
ja 0x14000159c
mov rdi, rsi
cmp rax, 8
jb 0x14000157f
mov rdi, qword [rsi]
mov qword [rsi + 0x10], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, rbp
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi], r14w
jmp 0x1400015a7
mov r9, rbp
mov rcx, rsi
call fcn.140005360
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140006280
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140001e10
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14000d010]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor esi, esi
xor bl, bl
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREWOW6432NodeLenovoVantageserviceFileLogger
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001f1c
mov dword [rsp + 0x60], esi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x78]
xor r8d, r8d
lea rdx, str.LenovoBatteryGaugeAddin
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140001f1c
mov ecx, dword [rsp + 0x60]
inc ecx
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400067cc
mov rdi, rax
mov r8d, dword [rsp + 0x60]
inc r8d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x78]
xor r8d, r8d
lea rdx, str.LenovoBatteryGaugeAddin
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140001f14
lea rdx, str.Trace
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
sete bl
mov rcx, rdi
call fcn.1400062a0
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140001f2c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x14000203c
mov byte [0x14000d0e0], 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
mov r8d, 7
lea rdx, str.C:_tmp_
lea rcx, [rsp + 0x30]
call fcn.140005220
nop
lea rdx, str.QSHelper.txt
lea rcx, [rsp + 0x30]
call fcn.140004fe0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
mov rdx, qword [0x14000d0d8]
cmp rdx, 8
jb 0x140001fe2
mov rcx, qword [0x14000d0c0]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140001fd3
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002030
mov rcx, r8
call fcn.1400062a0
movups xmm0, xmmword [rsp + 0x68]
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [0x14000d0c0], xmm0
movups xmmword [0x14000d0d0], xmm1
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14000203c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002037
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002037
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400062a0
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140006280
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret