joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140017960
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140052040]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [rcx + 0x18], 0xf
jbe 0x14001797f
mov rcx, qword [rcx]
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400179ce
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, rbx
test eax, eax
jne 0x1400179e8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14003eed0
add rsp, 0x50
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14003eed0
add rsp, 0x50
pop rbx
ret

Function at 0x140019180
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x1400191dd
lea rbx, [0x140042d30]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1400191c4
cmp r10, 2
jb 0x1400191c4
cmp byte [r9], r8b
jne 0x1400191c4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x1400191a0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14001921f
lea rbx, [0x140042d30]
cmp r8b, 0x23
jne 0x140019203
cmp byte [r9], r8b
jne 0x140019203
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x1400191f0
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x140019360
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x14001937a
mov qword [r8], 0
lea rdx, [0x140047e18]
call fcn.140019230
mov rbx, rax
test rax, rax
jne 0x14001939a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x140019471
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140019471
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140019471
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140019471
cmp rdi, 0xffffffffffffffff
je 0x140019471
mov rax, qword [0x1400c0df0]
test rax, rax
je 0x14001940e
inc dword [rax + 0x3bc]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140019471
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x14001945e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1400c0df0]
test rax, rax
je 0x140019453
dec dword [rax + 0x3bc]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14001947a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14001946c
mov qword [r14], rdi
mov rax, rsi
jmp 0x14001947c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14001cf10
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
xor eax, eax
lea r8, [0x140047d6d]
mov dword [rsp + 0x2c], eax
lea r11, [0x140042d30]
mov qword [rsp + 0x38], rax
mov r10d, 0xffffffff
mov qword [rsp + 0x60], rax
mov rbx, rcx
lea rax, str.Window
mov edx, r10d
mov qword [rsp + 0x20], rax
mov r9b, 0x57
cmp r9b, 0x23
jne 0x14001cf66
cmp byte [r8], r9b
jne 0x14001cf66
cmp byte [r8 + 1], r9b
cmove edx, r10d
movzx ecx, dl
movzx eax, r9b
movzx r9d, byte [r8]
xor rcx, rax
shr edx, 8
inc r8
xor edx, dword [r11 + rcx*4]
test r9b, r9b
jne 0x14001cf53
mov ecx, dword [rbx + 0x304c]
lea rax, [0x140029030]
mov edi, dword [rbx + 0x3048]
not edx
mov qword [rsp + 0x30], rax
lea rax, [0x1400290c0]
mov qword [rsp + 0x40], rax
lea rax, [0x1400291b0]
mov qword [rsp + 0x48], rax
lea rax, [0x140029290]
mov qword [rsp + 0x50], rax
lea rax, [0x1400293e0]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x28], edx
cmp edi, ecx
jne 0x14001d086
inc edi
test ecx, ecx
je 0x14001cfea
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x14001cfef
mov eax, 8
cmp eax, edi
cmovg edi, eax
cmp edi, ecx
jle 0x14001d086
mov rax, qword [0x1400c0df0]
mov qword [rsp + 0x80], rsi
test rax, rax
je 0x14001d016
inc dword [rax + 0x3bc]
movsxd rax, edi
lea rcx, [rax + rax*8]
shl rcx, 3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdx, qword [rbx + 0x3050]
mov rsi, rax
test rdx, rdx
je 0x14001d071
movsxd rcx, dword [rbx + 0x3048]
lea r8, [rcx + rcx*8]
mov rcx, rax
shl r8, 3
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rbx + 0x3050]
test rcx, rcx
je 0x14001d06b
mov rax, qword [0x1400c0df0]
test rax, rax
je 0x14001d06b
dec dword [rax + 0x3bc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3050], rsi
mov rsi, qword [rsp + 0x80]
mov dword [rbx + 0x304c], edi
movsxd rax, dword [rbx + 0x3048]
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
lea rcx, [rax + rax*8]
mov rax, qword [rbx + 0x3050]
movups xmmword [rax + rcx*8], xmm0
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rax + rcx*8 + 0x10], xmm1
movaps xmm1, xmmword [rsp + 0x50]
movups xmmword [rax + rcx*8 + 0x20], xmm0
movsd xmm0, qword [rsp + 0x60]
movups xmmword [rax + rcx*8 + 0x30], xmm1
movsd qword [rax + rcx*8 + 0x40], xmm0
inc dword [rbx + 0x3048]
mov byte [rbx], 1
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x140023920
Capabilities:
Hash data with crc32

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x20
mov rax, qword [0x1400c0df0]
lea rdx, [0x140042d30]
mov r8, rcx
mov rbx, qword [rax + 0x1a90]
add rbx, 0xc8
movsxd r9, dword [rbx]
mov rax, qword [rbx + 8]
mov edi, dword [rax + r9*4 - 4]
not edi
movzx eax, r8b
mov r8d, dword [rbx + 4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [r11 + 9]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [r11 + 0xa]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [r11 + 0xb]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [r11 + 0xc]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [r11 + 0xd]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [r11 + 0xe]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [r11 + 0xf]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
shr edi, 8
xor rcx, rax
xor edi, dword [rdx + rcx*4]
not edi
cmp r9d, r8d
jne 0x140023a21
lea ecx, [r9 + 1]
test r8d, r8d
je 0x140023a0d
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x140023a12
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
mov rcx, rbx
call fcn.14002a360
movsxd rcx, dword [rbx]
mov rax, qword [rbx + 8]
mov dword [rax + rcx*4], edi
inc dword [rbx]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400244c0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140052040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x1400c0df0]
mov edi, edx
cmp byte [rbx + 0x1fb5], 0
jne 0x140024520
cmp byte [rbx + 0x1fb6], 0
jne 0x140024520
mov r9d, dword [rbx + 0x2ff8]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140019100
test dil, 1
je 0x140024641
jmp 0x1400245a8
movss xmm1, dword [rbx + 0x1614]
lea r8, str.Tooltip__02d
mov r9d, dword [rbx + 0x2ff8]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x140048028]
mulss xmm1, dword [0x140048018]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0x130]
addss xmm1, dword [rbx + 0x134]
mov qword [rbx + 0x1b50], rax
mov dword [rbx + 0x1b3c], 1
movss dword [rbx + 0x1b48], xmm0
movss dword [rbx + 0x1b4c], xmm1
movss xmm0, dword [rbx + 0x1670]
mulss xmm0, dword [0x140047fac]
or dword [rbx + 0x1b38], 0x41
movss dword [rbx + 0x1b98], xmm0
call fcn.140019100
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x1400245f8
lea r11, [0x140042d30]
cmp r9b, 0x23
jne 0x1400245db
cmp byte [r8], r9b
jne 0x1400245db
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x1400245c8
not ecx
call fcn.14001e6b0
test rax, rax
je 0x140024641
cmp byte [rax + 0x86], 0
je 0x140024641
mov byte [rax + 0x8d], 1
lea r8, str.Tooltip__02d
mov dword [rax + 0xa4], 1
lea rcx, [rsp + 0x20]
inc dword [rbx + 0x2ff8]
mov edx, 0x10
mov r9d, dword [rbx + 0x2ff8]
call fcn.140019100
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.140020cc0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14003eed0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140028850
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
sub rsp, 0x40
mov rbx, qword [0x1400c0df0]
cmp byte [rbx + 0x3068], 0
je 0x14002893c
cmp qword [rbx + 0x3070], 0
mov qword [rax - 0x18], rsi
lea rsi, [rax + 0x10]
mov qword [rax - 0x20], rdi
lea rdi, [rbx + 0x3078]
je 0x140028924
mov r9d, dword [rdi + 4]
mov qword [rax - 0x10], rbp
xor ebp, ebp
test r9d, r9d
jns 0x1400288cb
mov eax, r9d
mov rcx, rdi
cdq
sub eax, edx
mov edx, ebp
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.14002a240
mov rcx, qword [rsp + 0x50]
mov rdx, rcx
mov dword [rdi], ebp
mov rcx, rdi
mov r8, rsi
call fcn.140019860
mov eax, dword [rdi]
mov edx, 1
mov r9, qword [rbx + 0x3070]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rbx + 0x3080]
cmove ecx, ebp
test rax, rax
movsxd r8, ecx
lea rcx, [0x1400c0de8]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
ret
mov rdx, rcx
mov r8, rsi
mov rcx, rdi
call fcn.140019860
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
ret
Function at 0x1400349f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test r9d, 0xff000000
je 0x140034b81
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
movss xmm3, dword [rsp + 0x70]
xorps xmm0, xmm0
comiss xmm3, xmm0
mov edi, r9d
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
jbe 0x140034a60
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
call fcn.1400343b0
mov r8d, dword [rbx + 0x80]
mov r9d, edi
mov rdx, qword [rbx + 0x88]
mov rcx, rbx
call fcn.140033a00
mov dword [rbx + 0x80], 0
jmp 0x140034b6d
mov edx, 6
movaps xmmword [rsp + 0x30], xmm6
lea r8d, [rdx - 2]
call fcn.1400326e0
movzx edx, word [rbx + 0x48]
mov rax, qword [rbx + 0x38]
movss xmm1, dword [rsi]
movss xmm2, dword [rbp + 4]
movss xmm3, dword [rbp]
lea ecx, [rdx + 1]
movss xmm6, dword [rax + 4]
movss xmm5, dword [rax]
movss xmm4, dword [rsi + 4]
mov rax, qword [rbx + 0x58]
mov word [rax], dx
mov rax, qword [rbx + 0x58]
mov word [rax + 2], cx
lea ecx, [rdx + 2]
mov rax, qword [rbx + 0x58]
mov word [rax + 4], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 6], dx
add dx, 3
mov rax, qword [rbx + 0x58]
mov word [rax + 8], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 0xa], dx
movsd xmm0, qword [rbp]
mov rax, qword [rbx + 0x50]
movsd qword [rax], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 8], xmm5
movss dword [rax + 0xc], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x10], edi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x14], xmm1
movss dword [rax + 0x18], xmm2
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x1c], xmm5
movss dword [rax + 0x20], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x24], edi
movsd xmm0, qword [rsi]
mov rax, qword [rbx + 0x50]
movsd qword [rax + 0x28], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x30], xmm5
movss dword [rax + 0x34], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x38], edi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x3c], xmm3
movss dword [rax + 0x40], xmm4
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x44], xmm5
movss dword [rax + 0x48], xmm6
mov rax, qword [rbx + 0x50]
movaps xmm6, xmmword [rsp + 0x30]
mov dword [rax + 0x4c], edi
add qword [rbx + 0x50], 0x50
add dword [rbx + 0x48], 4
add qword [rbx + 0x58], 0xc
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14003e4a8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14003e4e2
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14003e4e7
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14003e530
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140042930]
cmp byte [rcx + rax], 0
je 0x14003e530
dec r8
sub rdx, 1
jne 0x14003e516
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14003fae0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003fb2a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003fb2a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003fb2a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003fb2a
cmp dword [rcx + 0x84], 0xe
jbe 0x14003fb2a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14003fb2c
xor al, al
add rsp, 0x28
ret
Function at 0x1400013c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
xor edi, edi
mov qword [rsp + 0x30], rbp
mov rbp, rcx
mov qword [rsp + 0x68], rdi
lea rax, [rsp + 0x68]
mov dword [rsp + 0x58], edi
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x60], edi
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWARELenovoFnApps
mov esi, edi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400014d3
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.ForceInstall
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400014d3
cmp dword [rsp + 0x60], 7
jne 0x1400014d3
mov edx, dword [rsp + 0x58]
lea ecx, [rdi + 0x40]
add edx, 2
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x1400014d3
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
lea rdx, [0x140057050]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400014d3
mov qword [rsp + 0x50], rbx
mov rbx, rsi
cmp word [rsi], di
je 0x1400014c7
nop dword [rax]
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x1400014c7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cdqe
cmp word [rbx + rax*2], di
lea rbx, [rbx + rax*2]
jne 0x1400014a0
cmp di, word [rbx]
mov rbx, qword [rsp + 0x50]
setne dil
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x30]
test rcx, rcx
je 0x1400014e8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rsi, rsi
je 0x1400014f6
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x140001510
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x140057cb0]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor ebx, ebx
lea rcx, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x38], rbx
mov r8d, 0x208
call fcn.140003580
lea rax, [rsp + 0x38]
mov dword [rsp + 0x30], 0x208
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.HARDWAREDESCRIPTIONSystemBIOS
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000157e
xor eax, eax
jmp 0x140001620
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x1400570b8]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x270], rdi
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
mov edi, ebx
test eax, eax
sete dil
test rcx, rcx
je 0x1400015ca
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
mov rdi, qword [rsp + 0x270]
je 0x14000161e
cmp word [rsp + 0x40], 0x52
jne 0x14000161e
movzx eax, word [rsp + 0x42]
cmp ax, 0x30
jne 0x140001604
movzx eax, word [rsp + 0x44]
sub ax, 0x39
cmp ax, 0x1f
ja 0x14000161e
mov ecx, 0xc0100001
bt ecx, eax
jb 0x140001619
jmp 0x14000161e
cmp ax, 0x31
jne 0x14000161e
movzx eax, word [rsp + 0x44]
sub ax, 0x33
cmp ax, 1
ja 0x14000161e
mov ebx, 1
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140002400
add rsp, 0x260
pop rbx
ret

Function at 0x140001640
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x140057cb0]
xor rax, rsp
mov qword [rsp + 0x260], rax
lea rax, [rsp + 0x48]
xor esi, esi
mov r9d, 0xf003f
mov qword [rsp + 0x48], rsi
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdi, rdx
mov rbx, rcx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001735
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.140003580
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x50]
mov qword [rsp + 0x30], rsi
xor edx, edx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x40], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14000171e
nop dword [rax + rax]
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x50]
call fcn.140001640
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x50]
mov qword [rsp + 0x30], rsi
xor edx, edx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1400016e0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, 1
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140002400
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140001c50
Capabilities:
Check if file exists
Identify system language via api

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x260
mov rax, qword [0x140057cb0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, r8
mov ebp, edx
mov rdi, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x30]
call fcn.140003580
test ebp, ebp
je 0x140001da3
test rbx, rbx
je 0x140001da3
mov qword [rsp + 0x258], rsi
mov qword [rsp + 0x250], r14
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov r8d, 0x104
lea rdx, [rsp + 0x30]
movzx esi, ax
movzx r14d, ax
mov eax, 0x3ff
xor ecx, ecx
and si, ax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140001d8f
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x140001d8f
movzx eax, r14w
lea r9, [rsp + 0x30]
mov dword [rsp + 0x28], eax
lea r8, [0x140057a18]
mov edx, ebp
mov qword [rsp + 0x20], rdi
mov rcx, rbx
call fcn.140002100
test eax, eax
js 0x140001d1f
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140001d88
movzx eax, si
lea r9, [rsp + 0x30]
mov dword [rsp + 0x28], eax
lea r8, [0x140057a40]
mov rdx, rbp
mov qword [rsp + 0x20], rdi
mov rcx, rbx
call fcn.140002100
test eax, eax
js 0x140001d53
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140001d88
mov dword [rsp + 0x28], 9
lea r9, [rsp + 0x30]
lea r8, str._s_res_s_04x.dll
mov qword [rsp + 0x20], rdi
mov rdx, rbx
mov rcx, rbx
call fcn.140002100
test eax, eax
js 0x140001d8f
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140001d8f
mov eax, 1
jmp 0x140001d91
xor eax, eax
mov r14, qword [rsp + 0x250]
mov rsi, qword [rsp + 0x258]
jmp 0x140001da5
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140002400
add rsp, 0x260
pop rdi
pop rbp
pop rbx
ret
Function at 0x140001dd0
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Get common file path

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x9e0]
sub rsp, 0xae0
mov rax, qword [0x140057cb0]
xor rax, rsp
mov qword [rbp + 0x9d0], rax
mov qword [rsp + 0xb08], rsi
xor edx, edx
mov rsi, rcx
mov r8d, 0x250
lea rcx, [rsp + 0x40]
call fcn.140003580
xor edx, edx
lea rcx, [rbp + 0x7c0]
mov r8d, 0x208
call fcn.140003580
xor edx, edx
lea rcx, [rbp + 0x190]
mov r8d, 0x208
call fcn.140003580
xor edx, edx
lea rcx, [rbp + 0x5b0]
mov r8d, 0x208
call fcn.140003580
xor edx, edx
lea rcx, [rbp + 0x3a0]
mov r8d, 0x208
call fcn.140003580
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x104
lea rcx, [rbp + 0x190]
or rdi, 0xffffffffffffffff
call qword [sym.imp.USERENV.dll_GetProfilesDirectoryW]
test eax, eax
je 0x140001fe5
lea rax, [0x140057a90]
mov edx, 0x104
lea r9, [rbp + 0x190]
mov qword [rsp + 0x20], rax
lea r8, [0x140057a98]
lea rcx, [rbp + 0x7c0]
call fcn.140002100
test eax, eax
js 0x140001fe5
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x7c0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140001fe5
mov qword [rsp + 0xb10], r14
mov ebx, 1
lea r14, str.AppDataLocalLenovoHOTKEY
nop dword [rax]
lea rdx, [0x1400572bc]
lea rcx, [rsp + 0x6c]
call qword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x140001fc5
lea rdx, [0x140057aa4]
lea rcx, [rsp + 0x6c]
call qword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x140001fc5
test byte [rsp + 0x40], 0x10
je 0x140001fc5
test ebx, ebx
je 0x140001fc3
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x28], r14
lea r9, [rbp + 0x190]
mov qword [rsp + 0x20], rax
lea r8, str._s_s_s
mov edx, 0x104
lea rcx, [rbp + 0x5b0]
call fcn.140002100
test eax, eax
js 0x140001fc3
lea r9, [rbp + 0x5b0]
mov qword [rsp + 0x20], rsi
lea r8, str._s_s
mov edx, 0x104
lea rcx, [rbp + 0x3a0]
call fcn.140002100
test eax, eax
js 0x140001fc3
lea rcx, [rbp + 0x3a0]
mov ebx, 1
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140001fc5
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbp + 0x5b0]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140001fc5
xor ebx, ebx
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140001ef0
mov r14, qword [rsp + 0xb10]
jmp 0x140001fe7
xor ebx, ebx
mov rsi, qword [rsp + 0xb08]
test rdi, rdi
je 0x140001ffd
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
mov rcx, qword [rbp + 0x9d0]
xor rcx, rsp
call fcn.140002400
add rsp, 0xae0
pop rdi
pop rbx
pop rbp
ret