joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000fd10
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x170
xor ebp, ebp
mov rdi, r8
cmp qword [0x140035070], rbp
mov rbx, rdx
mov rsi, rcx
jne 0x14000fd78
lea r9d, [rbp + 0x64]
mov ecx, 0x400
lea r8, [rax - 0xd8]
lea edx, [rbp + 0xf]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
movzx eax, word [rsp + 0xa0]
mov word [0x140065620], ax
lea rax, [0x140065620]
mov qword [0x140035070], rax
mov word [0x140065622], bp
mov r8d, 0x32
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14000688c
lea r9, [0x140035058]
mov dword [rsp + 0x28], edi
lea r8, [rsp + 0x30]
mov word [rbx], bp
xor edx, edx
mov qword [rsp + 0x20], rbx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetNumberFormatW]
lea r11, [rsp + 0x170]
mov word [rbx + rdi*2 - 2], bp
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140010050
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1f40]
mov eax, 0x2040
call fcn.1400146c0
sub rsp, rax
xor esi, esi
mov rdi, rdx
cmp byte [0x140050ba8], sil
mov rbx, rcx
je 0x140010137
mov r8d, 0x800
lea rdx, [rbp + 0xf40]
call fcn.140011914
lea rax, [rsp + 0x30]
xor r8d, r8d
lea r9d, [rsi + 1]
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareWinRAR_SFX
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140010137
mov rcx, qword [rsp + 0x30]
lea rax, [rbp + 0x1f70]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x1f78]
lea rax, [rsp + 0x40]
mov dword [rbp + 0x1f70], 0x1000
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0xf40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001012c
mov edx, dword [rbp + 0x1f70]
mov ecx, 0x7ff
shr edx, 1
mov r8, rdi
cmp edx, ecx
mov eax, edx
mov dword [rbp + 0x1f70], edx
lea rdx, [rsp + 0x40]
cmovb ecx, eax
mov word [rsp + rcx*2 + 0x40], si
mov rcx, rbx
call fcn.1400069a4
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x2060]
add rsp, 0x2040
pop rdi
pop rsi
pop rbp
ret
Function at 0x140010224
Capabilities:
Query environment variable

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 r14
mov eax, 0x2020
call fcn.1400146c0
sub rsp, rax
xor r14d, r14d
mov rsi, r8
mov rbx, rcx
test r9, r9
je 0x140010257
mov byte [r9], r14b
mov rcx, qword [rsp + 0x2050]
test rcx, rcx
je 0x140010267
mov byte [rcx], r14b
test rbx, rbx
je 0x14001031c
movzx eax, word [rbx]
test ax, ax
je 0x14001031c
movsxd rbp, dword [rsp + 0x2058]
mov rdi, r14
mov r8d, r14d
add rbx, 2
cmp ax, 0x3d
jne 0x1400102ac
test rsi, rsi
je 0x1400102b8
test rdi, rdi
jne 0x1400102b8
test r9, r9
je 0x1400102a7
mov byte [r9], 1
mov rdi, rdx
jmp 0x1400102c7
cmp ax, 0xd
je 0x1400102d9
cmp ax, 0xa
je 0x1400102dd
mov word [rdx], ax
add rdx, 2
lea eax, [rbp - 2]
cmp r8d, eax
jge 0x1400102d4
movzx eax, word [rbx]
inc r8d
test ax, ax
jne 0x14001028a
jmp 0x1400102dd
mov byte [rcx], 1
jmp 0x1400102dd
add rbx, 2
mov word [rdx], r14w
test rsi, rsi
je 0x140010317
mov word [rsi], r14w
test rdi, rdi
je 0x140010317
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r8, rbp
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.1400069a4
mov word [rdi], r14w
mov rax, rbx
jmp 0x14001031e
xor eax, eax
lea r11, [rsp + 0x2020]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x14001033c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov ebx, edx
lea rcx, [rsp + 0x58]
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderLocation]
xor ecx, ecx
test eax, eax
sete bl
test bl, bl
je 0x1400103a1
mov rcx, qword [rsp + 0x50]
mov rdx, rdi
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rcx, qword [rsp + 0x58]
cmp eax, 1
mov rdx, qword [rsp + 0x50]
sete bl
mov rax, qword [rcx]
call qword [rax + 0x28]
jmp 0x1400103a4
mov word [rdi], cx
mov al, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140012e54
Capabilities:
Hide graphical window

Disassembly:
push rbx
sub rsp, 0x20
and dword [0x14004eb80], 0
mov edx, 1
mov rbx, rcx
mov byte [0x14004eb70], 1
mov byte [0x14004eb71], 1
call qword [sym.imp.USER32.dll_ShowWindow]
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 2]
call fcn.1400011d0
cmp qword [0x14004eb48], 0
jne 0x140012e9f
cmp byte [0x14004eb76], 0
je 0x140012ea8
cmp dword [0x14004eb64], 0
jne 0x140012ebd
xor r9d, r9d
mov edx, 0x111
mov rcx, rbx
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_SendMessageW]
add rsp, 0x20
pop rbx
ret

Function at 0x140012f68
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1050
call fcn.1400146c0
sub rsp, rax
xor edi, edi
mov rbx, rcx
cmp byte [0x140050ba8], dil
je 0x14001303a
cmp word [0x140050baa], di
je 0x14001303a
mov r8d, 0x800
lea rdx, [rsp + 0x50]
lea rcx, [0x140050baa]
call fcn.140011914
lea rax, [rsp + 0x1068]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, str.SoftwareWinRAR_SFX
lea rax, [rsp + 0x1070]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14001303a
mov rcx, rbx
call fcn.140018368
lea r9d, [rdi + 1]
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea ecx, [rax*2 + 2]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x1070]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x1070]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x1060]
add rsp, 0x1050
pop rdi
ret

Function at 0x14001304c
Capabilities:
Set environment variable

Disassembly:
push rbx
mov eax, 0x2020
call fcn.1400146c0
sub rsp, rax
mov rbx, rcx
mov rdx, rcx
lea rcx, str.sfxcmd
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140006704
mov rbx, rax
test rax, rax
je 0x1400130ae
movzx ecx, word [rax]
jmp 0x140013095
add rbx, 2
movzx ecx, word [rbx]
call fcn.140006820
test al, al
jne 0x14001308e
mov rdx, rbx
lea rcx, str.sfxpar
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x2020
pop rbx
ret
Function at 0x14001b208
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x14001afdc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001afdc
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001afdc
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001afdc
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001afdc
cmp dword [rcx + 0x84], 0xe
jbe 0x14001afdc
cmp dword [rcx + 0xf8], esi
je 0x14001afdc
mov ecx, r14d
call fcn.14001b124
mov ecx, 2
call fcn.14001e63c
nop
cmp byte [0x1400678c0], 0
jne 0x14001b0a6
mov r15d, 1
mov eax, r15d
xchg dword [0x1400678b0], eax
test ebx, ebx
jne 0x14001b04f
mov rdi, qword [0x140035108]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x1400678b8]
cmp rcx, rax
je 0x14001b046
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140014c9c]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1400679f8]
jmp 0x14001b05b
cmp ebx, r15d
jne 0x14001b061
lea rcx, [0x140067a10]
call fcn.14001bb98
nop
test ebx, ebx
jne 0x14001b078
lea rdx, [0x140027520]
lea rcx, [0x140027500]
call fcn.14001bf50
lea rdx, [0x140027530]
lea rcx, [0x140027528]
call fcn.14001bf50
movzx eax, byte [0x1400678c0]
test esi, esi
cmove eax, r15d
mov byte [0x1400678c0], al
jmp 0x14001b0a6
mov ecx, 2
call fcn.14001e690
test esi, esi
jne 0x14001b0bd
mov ecx, r14d
call fcn.14001b0d8
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14001af6c
Function at 0x140027de0
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.14001b784
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b784
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027f30
cmp rax, 0xffffffffffffffff
je 0x140027f30
xor edi, edi
test rbp, rbp
jle 0x140027edb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001dd70
mov rbx, rax
test rax, rax
jne 0x140027e68
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027ed1
mov edx, 0x8000
mov ecx, r14d
call fcn.140015928
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.14001c460
cmp eax, 0xffffffff
je 0x140027eb1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027e78
mov edx, r15d
mov ecx, r14d
call fcn.140015928
jmp 0x140027ed1
cmp byte [rsi + 0x38], dil
je 0x140027ec8
cmp dword [rsi + 0x34], 5
jne 0x140027ec8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027ed1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140019e48
jmp 0x140027f44
jns 0x140027f44
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b784
cmp rax, 0xffffffffffffffff
jne 0x140027efc
cmp byte [rsi + 0x30], dil
je 0x140027f44
mov edi, dword [rsi + 0x2c]
jmp 0x140027f44
mov ecx, r14d
call fcn.140016f28
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027f44
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 0x140027f44
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027f3d
mov eax, dword [rsi + 0x2c]
jmp 0x140027f42
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b784
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 0x140001988
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xa0
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x10015150], rbx
je 0x10007566
cmp rax, rbx
jne 0x10007559
mov edi, 1
jmp 0x10007566
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10007540
mov eax, dword [0x10015148]
cmp eax, 1
jne 0x1000757b
lea ecx, [rax + 0x1e]
call sub.MSVCR80.dll__amsg_exit
jmp 0x100075ba
mov eax, dword [0x10015148]
test eax, eax
jne 0x100075b0
mov dword [0x10015148], 1
lea rdx, [0x100014d0]
lea rcx, [0x100014b8]
call sub.MSVCR80.dll__initterm_e
test eax, eax
je 0x100075ba
mov eax, 0xff
jmp 0x10007714
mov dword [0x10014314], 1
mov eax, dword [0x10015148]
cmp eax, 1
jne 0x100075e2
lea rdx, [0x100014b0]
lea rcx, [0x10001470]
call sub.MSVCR80.dll__initterm
mov dword [0x10015148], 2
test edi, edi
jne 0x100075ef
xor eax, eax
xchg qword [0x10015150], rax
cmp qword [0x10015168], 0
je 0x10007618
lea rcx, [0x10015168]
call fcn.10007b90
test eax, eax
je 0x10007618
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x10015168]
mov rax, qword [sym.imp.MSVCR80.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
nop
nop
movzx ecx, byte [rbx]
cmp cl, 0x20
ja 0x100076aa
test cl, cl
je 0x10007640
test edi, edi
jne 0x100076aa
movzx eax, byte [rbx]
test al, al
je 0x10007656
cmp al, 0x20
ja 0x10007656
add rbx, 1
mov qword [rsp + 0x28], rbx
jmp 0x10007640
test byte [rsp + 0x6c], 1
je 0x10007665
movzx r9d, word [rsp + 0x70]
jmp 0x1000766b
mov r9d, 0xa
mov r8, rbx
xor edx, edx
lea rcx, [0x10000000]
call fcn.10005300
mov dword [0x10014310], eax
cmp dword [0x100142f4], 0
jne 0x10007693
mov ecx, eax
call qword [sym.imp.MSVCR80.dll_exit]
cmp dword [0x10014314], 0
jne 0x100076a8
call qword [sym.imp.MSVCR80.dll__cexit]
mov eax, dword [0x10014310]
jmp 0x1000770d
cmp cl, 0x22
jne 0x100076bc
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
movzx ecx, cl
call qword [sym.imp.MSVCR80.dll__ismbblead]
test eax, eax
je 0x100076d2
add rbx, 1
mov qword [rsp + 0x28], rbx
add rbx, 1
mov qword [rsp + 0x28], rbx
jmp 0x10007630
jmp 0x10007714
mov rbx, qword [rsp + 0xb0]
add rsp, 0xa0
pop rdi
ret
sub rsp, 0x28
call fcn.10155000
add rsp, 0x28
jmp 0x10007510
Function at 0x140006b40
Capabilities:
Create thread

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp ecx, 0x80
jne 0x140006ba7
mov rax, qword [0x14007d110]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140006c08
mov dword [rsp + 0x3c], ecx
lea rax, [rsp + 0x30]
lea r8d, [rcx - 0x78]
mov qword [rsp + 0x20], rax
mov ecx, 0x53564544
mov dword [rsp + 0x38], 0x120057
lea r9, [rsp + 0x40]
mov dword [rsp + 0x30], 4
lea rdx, [rsp + 0x38]
call fcn.140006780
jmp 0x140006c08
mov dword [0x140079918], edx
lea r9, [0x14007b2c4]
mov edx, 0x120057
mov r8d, ecx
call fcn.1400069f0
mov rcx, qword [0x14007b2c8]
mov dword [0x14007b28c], eax
test rcx, rcx
je 0x140006bdb
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
jmp 0x140006c08
xor eax, eax
lea r8, [0x1400077b0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
test rax, rax
je 0x140006c08
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400406e0
add rsp, 0x58
ret

Function at 0x140007090
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbp
push rsi
push r12
sub rsp, 0x60
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, edx
test ecx, 0xfffffffd
je 0x1400071b9
cmp ecx, 1
jne 0x1400071a3
mov qword [r11 + 8], rbx
lea rcx, [r11 - 0x48]
mov qword [r11 + 0x18], rdi
xor edx, edx
xor edi, edi
mov qword [r11 - 0x20], r14
mov ebx, edi
mov qword [r11 - 0x48], rdi
call fcn.140031c50
lea r12, str.PromptACInCount
lea rsi, str.PromptDCOutCount
test eax, eax
je 0x140007164
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x50], r15
test ebp, ebp
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov dword [rsp + 0x38], 4
cmovne rdx, r12
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14000713e
mov r14d, dword [rsp + 0x3c]
lea r15d, [rdi + 1]
jmp 0x140007146
mov r14d, dword [rsp + 0x40]
mov r15d, edi
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test r15d, r15d
mov r15, qword [rsp + 0x50]
je 0x140007164
mov ebx, r14d
cmp r14d, 3
jae 0x14000718e
inc ebx
mov eax, ebp
neg eax
sbb edx, edx
add edx, 2
cmp ebx, 3
setne dil
lea ecx, [rdi + 1]
call fcn.140007310
test ebp, ebp
mov edx, ebx
cmovne rsi, r12
mov rcx, rsi
call fcn.1400320f0
mov rdi, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x80]
mov r14, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400406e0
add rsp, 0x60
pop r12
pop rsi
pop rbp
ret
mov eax, ebp
neg eax
sbb edx, edx
add edx, 2
call fcn.140007310
test ebp, ebp
lea r12, str.PromptACInCount
lea rcx, str.PromptDCOutCount
cmovne rcx, r12
xor edx, edx
call fcn.1400320f0
jmp 0x1400071a3
Function at 0x1400071f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edi, edi
lea rcx, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x30], rdi
mov ebx, 0x64
call fcn.140031c50
test eax, eax
je 0x1400072b2
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x60], rsi
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.ChargingRate
mov dword [rsp + 0x38], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140007271
mov esi, dword [rsp + 0x3c]
lea edi, [rbx - 0x63]
jmp 0x140007275
mov esi, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test edi, edi
je 0x140007293
mov ecx, 0x28
cmp esi, ecx
cmova ecx, esi
cmp ecx, ebx
cmovb ebx, ecx
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400406e0
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov eax, ebx
jmp 0x14000729a

Function at 0x140007ce0
Capabilities:
Read .ini file

Disassembly:
sub rsp, 0x28
lea r9, [0x14007d128]
mov r8d, 0xffffffff
lea rdx, str.force
lea rcx, str.Main
call qword [sym.imp.api_ms_win_core_privateprofile_l1_1_0.dll_GetPrivateProfileIntW]
xor ecx, ecx
cmp eax, 1
sete cl
mov eax, ecx
add rsp, 0x28
ret
Function at 0x14000a9a0
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push r15
sub rsp, 0x40
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor esi, esi
mov r15d, edx
mov rbx, rcx
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x30]
lea edx, [rsi + 1]
call fcn.140031c50
test eax, eax
je 0x14000aafc
mov qword [rsp + 0x60], rbp
mov ecx, esi
test rbx, rbx
je 0x14000aa0a
mov rax, qword [rbx]
cmp rax, rbx
je 0x14000aa0a
mov rdx, qword [rbx + 8]
lea ecx, [rsi + 1]
cmp rax, rdx
je 0x14000aa0a
nop word [rax + rax]
mov rax, qword [rax]
inc ecx
cmp rax, rdx
jne 0x14000aa00
lea ebp, [rcx*4]
cmp ebp, 4
jb 0x14000aaec
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], r14
mov ecx, ebp
mov r14d, ebp
call fcn.140040704
mov rdi, rax
test rax, rax
je 0x14000aae2
mov r8d, r14d
xor edx, edx
mov rcx, rax
call fcn.1400423d0
test rbx, rbx
je 0x14000aaa2
mov rax, qword [rbx]
cmp rax, rbx
je 0x14000aaa2
mov r9, qword [rbx + 8]
lea r10d, [rbp - 4]
mov r8d, 2
lea ecx, [r8 - 2]
cmp ecx, r10d
ja 0x14000aa98
mov edx, ecx
movzx ecx, byte [rax + 0x10]
mov byte [rdx + rdi], cl
lea edx, [r8 - 1]
movzx ecx, byte [rax + 0x11]
mov byte [rdx + rdi], cl
movzx ecx, byte [rax + 0x12]
mov edx, r8d
mov byte [rdx + rdi], cl
lea edx, [r8 + 1]
movzx ecx, byte [rax + 0x13]
add r8d, 4
mov byte [rdx + rdi], cl
cmp rax, r9
je 0x14000aaa2
mov rax, qword [rax]
jmp 0x14000aa62
mov rcx, qword [rsp + 0x30]
lea rax, str.KeyCountSendEx
test r15d, r15d
mov dword [rsp + 0x28], ebp
lea rdx, str.KeyCountReservedEx
mov qword [rsp + 0x20], rdi
cmove rdx, rax
mov r9d, 3
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
mov rcx, rdi
sete sil
call fcn.14004d69c
mov rdi, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rbp, qword [rsp + 0x60]
mov eax, esi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400406e0
add rsp, 0x40
pop r15
pop rsi
pop rbx
ret
Function at 0x14000b4f0
Capabilities:
Create thread
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push r14
sub rsp, 0x50
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r14d, r14d
mov ebx, r14d
test ecx, ecx
je 0x14000b6eb
mov rax, qword [0x14007d110]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14000b734
lea rax, [rsp + 0x3c]
mov dword [rsp + 0x40], 0x50002
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r8d, [r14 + 4]
mov dword [rsp + 0x3c], 4
lea rdx, [rsp + 0x40]
mov ecx, 0x53545344
call fcn.140006780
test eax, eax
je 0x14000b734
cmp dword [rsp + 0x3c], 4
mov qword [rsp + 0x70], rdi
mov edi, r14d
cmovae edi, dword [rsp + 0x38]
bt edi, 0x10
jae 0x14000b6cb
mov ebx, 1
mov qword [rsp + 0x30], r14
xor edx, edx
mov dword [0x140079af0], ebx
lea rcx, [rsp + 0x30]
call fcn.140031c50
test eax, eax
je 0x14000b67d
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x3c]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rbp
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.AutoKeybdLight
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x38], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14000b5f2
mov esi, dword [rsp + 0x40]
mov ebp, ebx
jmp 0x14000b5f9
mov esi, dword [rsp + 0x38]
mov ebp, r14d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test ebp, ebp
mov rbp, qword [rsp + 0x60]
je 0x14000b678
mov eax, esi
and eax, ebx
mov dword [0x140079b1c], eax
mov eax, esi
shr eax, 1
and eax, ebx
mov dword [0x140079b20], eax
bt esi, 0x15
jae 0x14000b678
mov eax, edi
shr edi, 0x12
and edi, ebx
and eax, 0x20000
je 0x14000b63b
test edi, edi
je 0x14000b653
test eax, eax
jne 0x14000b653
test edi, edi
je 0x14000b653
mov eax, ebx
mov dword [0x140079b20], ebx
mov dword [0x140079b1c], ebx
jmp 0x14000b663
mov eax, r14d
mov dword [0x140079b1c], r14d
mov dword [0x140079b20], eax
lea eax, [rax + 0x100]
lea edx, [rax + rax*2]
lea rcx, str.AutoKeybdLight
call fcn.1400320f0
mov rsi, qword [rsp + 0x68]
cmp qword [0x140079b00], r14
jne 0x14000b69d
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [0x140079b00], rax
cmp qword [0x140079af8], r14
jne 0x14000b6cb
mov qword [rsp + 0x28], r14
lea r8, [0x14000b740]
xor r9d, r9d
mov dword [rsp + 0x20], r14d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [0x140079af8], rax
mov rdi, qword [rsp + 0x70]
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400406e0
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
mov rcx, qword [0x140079af8]
test rcx, rcx
je 0x14000b71b
mov edx, 0x5dc
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov rcx, qword [0x140079af8]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [0x140079af8], r14
mov ebx, 1
mov rcx, qword [0x140079b00]
test rcx, rcx
je 0x14000b734
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [0x140079b00], r14
mov eax, ebx
jmp 0x14000b6d2