joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003f8d0
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x68]
mov r10, r9
mov r9, qword [rsp + 0x60]
mov r11, r8
mov rbx, rdx
mov qword [rsp + 0x20], rax
mov r8, r10
mov rdx, r11
mov rsi, rcx
call fcn.14004e940
mov rdi, rax
test rax, rax
je 0x14003f9d2
mov rdx, rbx
mov rcx, rax
call fcn.14008e4f0
mov rbp, rax
test rax, rax
je 0x14003f9d2
xor edx, edx
mov rcx, rdi
xor sil, sil
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
test eax, eax
je 0x14003f96f
cmp eax, dword [0x140104468]
je 0x14003f96f
mov rcx, rdi
call fcn.14008eb10
test al, al
jne 0x14003f96f
mov ecx, dword [0x140104468]
mov r8d, 1
mov edx, ebx
call qword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne sil
mov rcx, rbp
call qword [sym.imp.USER32.dll_SetFocus]
test rax, rax
je 0x14003f9b5
mov rcx, qword [0x140101f48]
lea rdx, [0x1400ccfe4]
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
call fcn.14008c5a0
mov rax, qword [0x1400fda58]
mov ecx, dword [rax + 0x78]
cmp ecx, 0xffffffff
jle 0x14003f9b5
mov edx, 1
call fcn.140001710
test sil, sil
je 0x14003f9cb
mov ecx, dword [0x140104468]
xor r8d, r8d
mov edx, ebx
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, 1
jmp 0x14003fa15
mov rax, qword [0x1400fda58]
lea rdx, [0x1400e04fc]
test byte [rax + 0x140], 1
jne 0x14003fa03
mov rcx, qword [0x140101f48]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
call fcn.14008c5a0
jmp 0x14003fa15
lea r9, [0x1400ccf5c]
xor r8d, r8d
mov rcx, rsi
call fcn.140036900
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400404e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x68]
mov r10, r9
mov r9, qword [rsp + 0x60]
mov r11, r8
mov rbx, rdx
mov qword [rsp + 0x20], rax
mov r8, r10
mov rdx, r11
call fcn.14004e940
test rax, rax
je 0x140040526
lea rdx, [0x1400e6f48]
mov rcx, rax
call fcn.14008e4f0
mov rdi, rax
jmp 0x140040528
xor edi, edi
mov rcx, rbx
call fcn.14000f930
mov rcx, rbx
test al, al
je 0x140040544
xor edx, edx
lea r8d, [rdx + 0x10]
call fcn.1400acfc4
jmp 0x140040549
call fcn.1400acac8
mov rcx, qword [0x140104270]
lea r9, [0x1400ccf5c]
mov dword [rsp + 0x68], gethostbyname
mov r8d, eax
mov rdx, rdi
mov dword [rsp + 0x60], 0xffffffff
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.14008e180
Function at 0x140045390
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
mov eax, 0x2260
call fcn.1400be180
sub rsp, rax
mov r9, qword [0x140105088]
lea r8, [0x1400e7090]
movzx ebp, dl
mov qword [rsp + 0x20], rcx
mov rdi, rcx
lea r14, [rsp + 0x260]
mov edx, 0x800
lea rcx, [rsp + 0x260]
lea r15, [0x1400ccf5c]
call fcn.1400890d0
movsxd rbx, eax
lea esi, [rbx + 1]
cmp esi, 0x800
jg 0x140045415
lea rcx, [rsp + 0x262]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140045415
mov r9, qword [0x140105088]
jmp 0x140045478
lea rcx, [rsp + 0x50]
call fcn.140045ac0
test eax, eax
je 0x14004553a
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rdi
lea r8, [0x1400e7090]
mov edx, 0x800
lea rcx, [rsp + 0x260]
call fcn.1400890d0
movsxd rbx, eax
lea esi, [rbx + 1]
cmp esi, 0x800
jg 0x14004553a
lea rcx, [rsp + 0x262]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004553a
lea r9, [rsp + 0x50]
mov edi, SafeArrayAllocDescriptor
movsxd rax, esi
mov word [rsp + rbx*2 + 0x260], di
xor ebx, ebx
mov word [rsp + rax*2 + 0x260], bx
test bpl, bpl
je 0x140045500
lea rax, [0x1400e70a0]
mov edx, 0x800
lea r8, [0x1400e7090]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x1260]
call fcn.1400890d0
movsxd rsi, eax
lea ebp, [rsi + 1]
cmp ebp, 0x800
jg 0x140045500
lea rcx, [rsp + 0x1262]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140045500
movsxd rax, ebp
lea r14, [rsp + 0x1260]
mov word [rsp + rsi*2 + 0x1260], di
lea r15, [rsp + 0x260]
mov word [rsp + rax*2 + 0x1260], bx
mov qword [rsp + 0x48], rbx
lea rcx, [0x1401044f0]
mov byte [rsp + 0x40], 0
xor r9d, r9d
mov byte [rsp + 0x38], 0
mov r8, r15
mov qword [rsp + 0x30], rbx
mov rdx, r14
mov qword [rsp + 0x28], rbx
mov byte [rsp + 0x20], 0
call fcn.140038300
test eax, eax
setne al
jmp 0x14004553c
xor al, al
lea r11, [rsp + 0x2260]
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 0x140045ac0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rsi
sub rsp, 0x250
mov qword [rax - 0x10], rbp
mov rsi, rcx
mov qword [rax - 0x18], rdi
xor ebp, ebp
mov edi, ebp
mov qword [rax + 0x18], rbx
nop
mov r9d, edi
lea rax, [rsp + 0x268]
or r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x1400e73d0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140045c09
mov rcx, qword [rsp + 0x268]
lea rax, [rsp + 0x260]
mov qword [rsp + 0x28], rax
lea rdx, [0x1400e73b8]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x260], 0x208
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x268]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140045c09
mov edx, dword [rsp + 0x260]
test edx, edx
je 0x140045c09
shr edx, 1
dec edx
mov dword [rsp + 0x260], edx
cmp word [rsp + rdx*2 + 0x30], bp
jne 0x140045ba9
test edx, edx
je 0x140045bbf
nop dword [rax]
lea eax, [rdx - 1]
cmp word [rsp + rax*2 + 0x30], bp
jne 0x140045bbf
mov dword [rsp + 0x260], eax
mov edx, eax
test eax, eax
jne 0x140045b90
jmp 0x140045bbf
inc edx
mov dword [rsp + 0x260], edx
cmp edx, 0x104
jae 0x140045c09
mov word [rsp + rdx*2 + 0x30], bp
mov eax, edx
test edx, edx
je 0x140045c10
mov rdi, qword [rsp + 0x240]
mov rbp, qword [rsp + 0x248]
mov rbx, qword [rsp + 0x270]
test rsi, rsi
je 0x140045c00
lea rcx, [rsp + 0x30]
sub rsi, rcx
lea rdx, [rsp + 0x30]
nop
movzx ecx, word [rdx]
mov word [rsi + rdx], cx
lea rdx, [rdx + 2]
test cx, cx
jne 0x140045bf0
add rsp, 0x250
pop rsi
ret
mov word [rsp + 0x30], bp
mov eax, ebp
test edi, edi
jne 0x140045bc5
mov edi, 0x200
jmp 0x140045ae0
Function at 0x140049d00
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x260
movzx edi, r8b
mov byte [rsp + 0x20], 1
mov rbx, rdx
mov rsi, rcx
mov rcx, qword [0x140104270]
or r8, 0xffffffffffffffff
xor edx, edx
xor r9d, r9d
call fcn.14008c5a0
test rbx, rbx
je 0x140049eb8
cmp word [rbx], 0
je 0x140049eb8
mov r8d, 0x104
lea rcx, [rsp + 0x50]
mov rdx, rbx
call fcn.1400b1fb4
xor edx, edx
lea rcx, [rsp + 0x50]
mov word [rsp + 0x258], dx
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [rcx + rax*2], dx
jne 0x140049d70
lea rcx, [rax + rax]
cmp word [rsp + rcx + 0x4e], 0x5c
je 0x140049d9c
inc rax
cmp rax, 0x105
jae 0x140049eb8
mov dword [rsp + rcx + 0x50], 0x5c
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140106d98], eax
jle 0x140049dfd
lea rcx, [0x140106d98]
call fcn.1400a507c
cmp dword [0x140106d98], 0xffffffff
jne 0x140049dfd
lea rcx, [0x1400e75d0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x1400e75b8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x140106d98]
mov qword [0x140106da0], rax
call fcn.1400a501c
mov rax, qword [0x140106da0]
lea rcx, [rsp + 0x50]
test rax, rax
je 0x140049e37
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
call rax
test eax, eax
je 0x140049eb8
mov rbx, qword [rsp + 0x38]
test dil, dil
cmovne rbx, qword [rsp + 0x40]
jmp 0x140049e7c
lea rax, [rsp + 0x278]
lea r9, [rsp + 0x288]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x140049eb8
mov ebx, dword [rsp + 0x278]
test dil, dil
cmovne ebx, dword [rsp + 0x288]
imul ebx, dword [rsp + 0x30]
imul ebx, dword [rsp + 0x34]
mov rcx, qword [0x140101f48]
lea rdx, [0x1400ccfe4]
xor r9d, r9d
shr rbx, 0x14
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
call fcn.14008c5a0
mov rcx, qword [0x140104270]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rdx, rbx
call fcn.1400012a0
mov eax, 1
jmp 0x140049efb
mov rax, qword [0x1400fda58]
lea rdx, [0x1400e04fc]
test byte [rax + 0x140], 1
jne 0x140049ee9
mov rcx, qword [0x140101f48]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
call fcn.14008c5a0
jmp 0x140049efb
lea r9, [0x1400ccf5c]
xor r8d, r8d
mov rcx, rsi
call fcn.140036900
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140061780
Capabilities:
Get file version info

Disassembly:
push rbx
push rdi
sub rsp, 0x148
mov rbx, rdx
mov byte [rsp + 0x20], 1
mov rdi, rcx
xor edx, edx
mov rcx, qword [0x140104270]
xor r9d, r9d
or r8, 0xffffffffffffffff
call fcn.14008c5a0
test rbx, rbx
je 0x140061914
cmp word [rbx], 0
je 0x140061914
lea rdx, [rsp + 0x168]
mov qword [rsp + 0x140], rsi
mov rcx, rbx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test eax, eax
jne 0x140061808
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1400fda58]
mov dl, 1
mov dword [rcx + 0x40], eax
mov rcx, rdi
call fcn.1400369d0
mov rsi, qword [rsp + 0x140]
add rsp, 0x148
pop rdi
pop rbx
ret
mov rcx, rsi
mov qword [rsp + 0x160], rbp
call fcn.1400a9068
mov r9, rax
mov r8d, esi
xor edx, edx
mov rcx, rbx
mov rbp, rax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x1400618f2
lea r9, [rsp + 0x170]
mov rcx, rbp
lea r8, [rsp + 0x178]
lea rdx, [0x1400e1220]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1400618f2
mov rax, qword [rsp + 0x178]
lea r8, [0x1400e92d8]
mov edx, dword [rax + 0xc]
mov r9d, dword [rax + 8]
movzx ecx, dx
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x40]
shr edx, 0x10
mov dword [rsp + 0x28], edx
mov edx, 0x80
movzx eax, r9w
shr r9d, 0x10
mov dword [rsp + 0x20], eax
call fcn.1400890d0
mov rcx, rbp
call fcn.1400ab68c
mov rax, qword [0x1400fda58]
xor edx, edx
mov rcx, rdi
mov dword [rax + 0x40], 0
call fcn.1400369d0
mov rcx, qword [0x140104270]
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
call fcn.14008c5a0
mov rbp, qword [rsp + 0x160]
mov rsi, qword [rsp + 0x140]
add rsp, 0x148
pop rdi
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1400fda58]
mov dword [rcx + 0x40], eax
mov rcx, rbp
call fcn.1400ab68c
mov rcx, rdi
call fcn.14003a030
jmp 0x1400618d8
mov rax, qword [0x1400fda58]
mov dl, 1
mov rcx, rdi
mov dword [rax + 0x40], 0x57
call fcn.1400369d0
add rsp, 0x148
pop rdi
pop rbx
ret
Function at 0x140061940
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x380]
sub rsp, 0x480
movzx r14d, r8b
lea r9, [rbp + 0x3b8]
mov rsi, rdx
lea r8, [rsp + 0x60]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
or rbx, 0xffffffffffffffff
lea rcx, [rsp + 0x60]
mov rax, rbx
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140061990
xor edi, edi
test rax, rax
je 0x1400619ae
cmp word [rsp + rax*2 + 0x5e], 0x5c
jne 0x1400619ae
mov word [rsp + rax*2 + 0x5e], di
lea r9, [rbp + 0x3b8]
mov edx, 0x104
lea r8, [rbp + 0x170]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea rcx, [rbp + 0x170]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], di
jne 0x1400619d4
test rax, rax
je 0x1400619f5
cmp word [rbp + rax*2 + 0x16e], 0x5c
jne 0x1400619f5
mov word [rbp + rax*2 + 0x16e], di
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140061a24
test al, 0x10
je 0x140061a24
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140061a3e
test al, 0x10
je 0x140061a3e
test r14b, r14b
jne 0x140061a4e
xor al, al
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
lea rcx, [rbp + 0x170]
call fcn.140062620
test al, al
je 0x140061a24
lea rcx, [rsp + 0x60]
sub rcx, 2
nop word [rax + rax]
cmp word [rcx + 2], di
lea rcx, [rcx + 2]
jne 0x140061a60
movzx eax, word [0x1400e92f8]
movsd xmm0, qword [0x1400e92f0]
movsd qword [rcx], xmm0
mov word [rcx + 8], ax
lea rcx, [rsp + 0x60]
mov rax, rbx
nop dword [rax]
cmp word [rcx + rax*2 + 2], di
lea rax, [rax + 1]
jne 0x140061a90
mov word [rsp + rax*2 + 0x62], di
lea rax, [rbp + 0x170]
nop word [rax + rax]
cmp word [rax + rbx*2 + 2], di
lea rbx, [rbx + 1]
jne 0x140061ab0
xor eax, eax
mov word [rbp + rbx*2 + 0x172], di
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x170]
mov qword [rsp + 0x38], rax
mov eax, 0x614
mov word [rsp + 0x40], ax
mov dword [rsp + 0x28], 2
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
jmp 0x140061a26
Function at 0x140062620
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x10], rbx
mov rbx, rcx
mov qword [rbp + 0x18], rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140062700
call qword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
je 0x1400626e3
sub eax, 1
jne 0x140062713
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], 0
jne 0x140062661
cmp rax, 0x104
ja 0x140062713
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140062692
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400be180
sub rsp, rcx
mov rcx, rbx
lea rdi, [rsp + 0x20]
mov rdx, rdi
sub rdx, rbx
nop
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x1400626b0
mov edx, 0x5c
mov rcx, rdi
call fcn.1400a76fc
test rax, rax
je 0x140062713
xor ecx, ecx
mov word [rax], cx
mov rcx, rdi
call fcn.140062620
test al, al
je 0x140062713
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
mov rbx, qword [rbp + 0x10]
mov rdi, qword [rbp + 0x18]
mov rsp, rbp
pop rbp
ret
test al, 0x10
je 0x140062713
mov al, 1
mov rbx, qword [rbp + 0x10]
mov rdi, qword [rbp + 0x18]
mov rsp, rbp
pop rbp
ret
mov rbx, qword [rbp + 0x10]
xor al, al
mov rdi, qword [rbp + 0x18]
mov rsp, rbp
pop rbp
ret

Function at 0x140062730
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x270
mov edx, 0x2a
mov rbx, rcx
call fcn.1400a7468
test rax, rax
jne 0x140062773
lea edx, [rax + 0x3f]
mov rcx, rbx
call fcn.1400a7468
test rax, rax
jne 0x140062773
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
add rsp, 0x270
pop rbx
ret
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x140062792
xor al, al
add rsp, 0x270
pop rbx
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
add rsp, 0x270
pop rbx
ret

Function at 0x1400628f0
Capabilities:
Shutdown system

Disassembly:
push rbx
sub rsp, 0x40
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x58]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14006291d
xor al, al
add rsp, 0x40
pop rbx
ret
lea r8, [rsp + 0x34]
xor ecx, ecx
lea rdx, [0x1400e9310]
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x30]
xor eax, eax
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x3c], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140062915
xor edx, edx
mov ecx, ebx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
setne al
add rsp, 0x40
pop rbx
ret
Function at 0x14007cb00
Capabilities:
Get keyboard layout

Disassembly:
push rbx
push r14
sub rsp, 0x38
mov r14, rdx
mov rbx, rcx
nop
movzx eax, word [rbx]
cmp ax, 0x20
je 0x14007cb1f
cmp ax, 9
jne 0x14007cb25
add rbx, 2
jmp 0x14007cb10
movzx eax, word [rbx]
test ax, ax
jne 0x14007cb35
add rsp, 0x38
pop r14
pop rbx
ret
cmp word [rbx + 2], 0
lea rcx, [rbx + 2]
jne 0x14007cb51
mov word [rdx + 2], ax
mov al, 1
mov byte [rdx], 0
add rsp, 0x38
pop r14
pop rbx
ret
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
xor sil, sil
mov byte [rdx], 1
mov edx, 0x2b
mov byte [rsp + 0x50], sil
mov qword [rsp + 0x30], rdi
call fcn.1400a7468
mov rbp, rax
test rax, rax
je 0x14007cc45
lea rdi, [rbp - 2]
cmp rdi, rbx
jbe 0x14007cba8
nop word [rax + rax]
movzx eax, word [rdi]
cmp ax, 0x20
je 0x14007cb9f
cmp ax, 9
jne 0x14007cba8
sub rdi, 2
cmp rdi, rbx
ja 0x14007cb90
sub rdi, rbx
lea rdx, [0x1400cee68]
sar rdi, 1
mov rcx, rbx
inc rdi
mov r8, rdi
call fcn.1400ab4d8
test eax, eax
jne 0x14007cbcd
or sil, 1
jmp 0x14007cc03
mov r8, rdi
lea rdx, [0x1400cee78]
mov rcx, rbx
call fcn.1400ab4d8
test eax, eax
jne 0x14007cbe9
or sil, 4
jmp 0x14007cc03
mov r8, rdi
lea rdx, [0x1400cee80]
mov rcx, rbx
call fcn.1400ab4d8
test eax, eax
jne 0x14007cc79
or sil, 0x10
mov byte [rsp + 0x50], sil
lea rbx, [rbp + 2]
nop dword [rax]
movzx eax, word [rbx]
cmp ax, 0x20
je 0x14007cc1f
cmp ax, 9
jne 0x14007cc25
add rbx, 2
jmp 0x14007cc10
cmp word [rbx], 0
je 0x14007cc79
mov edx, 0x2b
lea rcx, [rbx + 2]
call fcn.1400a7468
mov rbp, rax
test rax, rax
jne 0x14007cb81
xor ecx, ecx
cmp word [rbx + 2], cx
jne 0x14007cc7d
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx ecx, word [rbx]
mov rdi, rax
call qword [sym.imp.USER32.dll_CharLowerW]
mov r9b, 1
lea rdx, [rsp + 0x50]
mov rcx, rax
mov r8, rdi
call fcn.140015620
movzx esi, byte [rsp + 0x50]
jmp 0x14007cc95
xor al, al
jmp 0x14007ccc4
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.1400154c0
movzx eax, al
mov word [r14 + 2], ax
test sil, 1
je 0x14007cca7
or byte [r14], 8
test sil, 4
je 0x14007ccb1
or byte [r14], 0x10
test sil, 0x10
je 0x14007ccbb
or byte [r14], 4
cmp word [r14 + 2], 0
setne al
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
pop r14
pop rbx
ret
Function at 0x140085260
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x20240
call fcn.1400be180
sub rsp, rax
mov rbx, qword [rsp + 0x20270]
mov rsi, r9
mov rdi, r8
mov rax, rdx
test rbx, rbx
je 0x140085299
cmp word [rbx], 0
jne 0x1400852a0
lea rbx, [0x1400e5330]
xor ecx, ecx
lea r9, [rsp + 0x20270]
mov word [rsp + 0x240], cx
lea r8, [rsp + 0x30]
mov word [rsp + 0x20250], cx
mov edx, 0x104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp word [rsi], 0
je 0x14008533e
cmp word [rdi], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x20250]
cmovne rcx, rdi
mov dword [rsp + 0x20], 0xffff
lea r9, [rsp + 0x240]
mov r8, rbx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov rcx, qword [0x140104270]
lea rdx, [rsp + 0x240]
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
call fcn.14008c5a0
lea r11, [rsp + 0x20240]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
cmp word [rdi], 0
je 0x140085362
lea r9, [rsp + 0x30]
mov r8d, 0xffff
lea rdx, [rsp + 0x240]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
jmp 0x14008537a
lea r8, [rsp + 0x30]
mov edx, 0xffff
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
test eax, eax
je 0x140085309
lea rax, [rsp + 0x240]
mov ecx, 0xa
nop dword [rax + rax]
cmp word [rax], 0
jne 0x1400853a4
cmp word [rax + 2], 0
je 0x140085309
mov word [rax], cx
add rax, 2
jmp 0x140085390

Function at 0x1400853b0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rdi, rdx
mov rsi, rcx
xor edx, edx
mov ebx, 1
call fcn.14008a030
test al, al
jne 0x1400854ca
mov qword [rsp + 0x78], r15
xor r9d, r9d
xor r15d, r15d
xor r8d, r8d
mov qword [rsp + 0x30], r15
mov edx, 0x40000000
mov dword [rsp + 0x28], r15d
mov rcx, rsi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400854bb
mov qword [rsp + 0x60], rbp
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x68], r14
nop word [rax + rax]
inc rcx
cmp word [rdi + rcx*2], r15w
jne 0x140085420
mov eax, ecx
lea ebp, [rcx*2 + 2]
lea r14, [rdi + rax*2]
mov qword [rsp + 0x20], r15
mov eax, 0x5d
lea r9, [rsp + 0x70]
lea rdx, [0x1400eade8]
mov word [r14], ax
mov rcx, rsi
lea r8d, [rax - 0x59]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14008548c
cmp dword [rsp + 0x70], 4
jne 0x14008548c
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], r15
mov r8d, ebp
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14008548c
cmp dword [rsp + 0x70], ebp
je 0x14008548f
mov ebx, r15d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x60]
test eax, eax
mov word [r14], r15w
mov r14, qword [rsp + 0x68]
cmove ebx, r15d
mov r15, qword [rsp + 0x78]
mov eax, ebx
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
mov eax, ebx
mov r15, qword [rsp + 0x78]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
mov eax, ebx
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x140085fb0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rsi, r9
mov rdi, r8
mov rbp, rdx
mov r14, rcx
test rdx, rdx
je 0x140086110
test r8, r8
je 0x140085fe3
cmp word [r8], 0
jne 0x140085fec
test rsi, rsi
je 0x140086110
mov rax, qword [0x1400fda58]
xor r8d, r8d
mov rdx, rdi
mov rcx, rbp
mov r9d, dword [rax + 0x110]
lea rax, [rsp + 0x58]
or r9d, 0x2001f
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140086101
mov rcx, qword [rsp + 0x58]
test rsi, rsi
jne 0x1400860eb
call fcn.140085e80
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140086101
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140106f30], eax
jle 0x1400860ad
lea rcx, [0x140106f30]
call fcn.1400a507c
cmp dword [0x140106f30], 0xffffffff
jne 0x1400860ad
lea rcx, [0x1400e90d8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x1400eae18]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x140106f30]
mov qword [0x140106f38], rax
call fcn.1400a501c
mov rax, qword [0x1400fda58]
mov r8d, dword [rax + 0x110]
test r8d, r8d
je 0x1400860db
mov rax, qword [0x140106f38]
test rax, rax
je 0x1400860db
xor r9d, r9d
mov rdx, rdi
mov rcx, rbp
call rax
mov ebx, eax
jmp 0x140086101
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
jmp 0x140086101
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, 0xffffffff
jne 0x140086115
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
jmp 0x140086117
mov ebx, 0x57
mov ecx, ebx
mov rax, qword [0x1400fda58]
test ebx, ebx
setne dl
mov dword [rax + 0x40], ecx
mov rcx, r14
call fcn.1400369d0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret