joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401e2a24
Capabilities:
Get graphical window text

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
sub rsp, 0x20
mov rdi, r8
mov rbx, rcx
call fcn.1401e2b64
xor r14d, r14d
mov esi, 1
mov rbp, rax
mov dword [rbx + 0x14], esi
mov rcx, rax
cmp dword [rbx], r14d
je 0x1401e2ad9
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd rbx, eax
test eax, eax
js 0x1401e2afc
mov rcx, qword [rdi]
mov edx, dword [rcx - 0xc]
sub esi, dword [rcx - 8]
sub edx, ebx
or esi, edx
jge 0x1401e2a88
mov edx, ebx
mov rcx, rdi
call fcn.14000e2ac
mov rdx, qword [rdi]
cmp ebx, dword [rdx - 0xc]
jg 0x1401e2afc
mov dword [rdx - 0x10], ebx
lea r8d, [rbx + 1]
mov rax, qword [rdi]
mov rcx, rbp
mov word [rax + rbx*2], r14w
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rdi]
test rcx, rcx
jne 0x1401e2ab5
mov eax, r14d
jmp 0x1401e2ac2
movsxd rdx, dword [rcx - 0xc]
call fcn.140286a2c
test eax, eax
js 0x1401e2afc
mov rcx, qword [rdi]
cmp eax, dword [rcx - 0xc]
jg 0x1401e2afc
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rdi]
mov word [rax + rcx*2], r14w
jmp 0x1401e2ae1
mov rdx, qword [rdi]
call fcn.140208334
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov ecx, 0x80070057
call fcn.14000e344
int3

Function at 0x1401e2bb8
Capabilities:
Get graphical window text

Disassembly:
mov r11, rsp
mov dword [r11 + 0x20], r9d
push rbx
push rbp
push rsi
push rdi
push r15
sub rsp, 0xd0
mov rax, qword [0x140412700]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbp, r8
lea r15, [r11 + 0x28]
mov rdi, rcx
call fcn.1401e2b64
cmp dword [rdi], 0
mov rsi, rax
mov dword [rdi + 0x14], 1
je 0x1401e2c4d
mov rbx, qword [r15]
lea rdx, [rsp + 0x40]
mov r8d, 0x40
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov r9, rbx
lea rcx, [rsp + 0x40]
mov r8, rbp
mov edx, 0x40
call fcn.1401e2d08
cmp eax, 1
je 0x1401e2cc6
mov ecx, dword [rsp + 0x118]
or r8d, 0xffffffff
xor edx, edx
call fcn.1401c1924
mov rcx, rdi
call fcn.1401e2b08
jmp 0x1401e2cc6
call fcn.14028727c
mov ebx, dword [rax]
call fcn.14028727c
and dword [rax], 0
call fcn.14000d948
mov r9d, 0x3f
mov qword [rsp + 0x30], r15
and qword [rsp + 0x28], 0
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], rbp
mov rcx, qword [rax]
lea r8d, [r9 + 1]
call fcn.14028cb60
call fcn.14028727c
cmp dword [rax], 0
je 0x1401e2cb2
call fcn.14028727c
cmp dword [rax], 0
je 0x1401e2cb9
cmp dword [rax], 0xc
je 0x1401e2cfa
cmp dword [rax], 0x16
je 0x1401e2cef
cmp dword [rax], 0x22
je 0x1401e2cef
cmp dword [rax], 0x50
jne 0x1401e2ce4
jmp 0x1401e2cb9
call fcn.14028727c
mov dword [rax], ebx
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140208334
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1402194b0
add rsp, 0xd0
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, 0x80004005
call fcn.14000e344
int3
mov ecx, 0x80070057
call fcn.14000e344
int3
mov ecx, 0x8007000e
call fcn.14000e344
int3
Function at 0x1401eaf4c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r14, rdx
mov rbp, rcx
call fcn.1401bf5e4
mov r8d, 0xf1
mov rdx, r14
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor r15d, r15d
test rax, rax
je 0x1401eb05d
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1401eb05d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1401eb05d
movzx ecx, word [rax + 6]
lea eax, [r15 + 4]
mul rcx
lea rcx, [r15 - 1]
cmovo rax, rcx
mov rcx, rax
call fcn.14000e3e0
mov rsi, rax
mov r9d, r15d
movzx eax, word [rbx + 6]
cmp r15w, ax
jae 0x1401eafff
mov rdx, rsi
lea r8, [rbx + 8]
movzx ecx, word [r8]
inc r9d
mov dword [rdx], ecx
lea r8, [r8 + 2]
movzx eax, word [rbx + 6]
lea rdx, [rdx + 4]
cmp r9d, eax
jl 0x1401eafe5
movzx r8d, ax
mov rdx, rsi
mov rcx, rbp
call fcn.1401eb95c
mov rcx, rsi
mov edi, eax
call fcn.14000e3f0
test edi, edi
je 0x1401eb059
movzx ecx, word [rbx + 4]
movzx eax, word [rbx + 2]
mov dword [rsp + 0x60], eax
add eax, 7
mov dword [rsp + 0x68], eax
lea eax, [rcx + 7]
mov dword [rsp + 0x64], ecx
mov r8, qword [rsp + 0x60]
mov rcx, rbp
mov dword [rsp + 0x6c], eax
mov rdx, qword [rsp + 0x68]
call fcn.1401ebb6c
mov rdx, r14
mov rcx, rbp
call fcn.1401eaed0
mov edi, eax
mov eax, edi
jmp 0x1401eb05f
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x1401ee524
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
test byte [rdx + 4], 1
mov esi, r8d
mov rbx, qword [rdx + 0x10]
mov rdi, rdx
mov rbp, rcx
jne 0x1401ee59b
mov rcx, qword [rdi + 8]
mov r8d, 5
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x1401ee56b
call fcn.1401d6338
mov rcx, qword [rdi + 8]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
jne 0x1401ee585
call fcn.1401d6338
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
jne 0x1401ee59b
call fcn.1401d6338
call fcn.1401bf5e4
cmp qword [rax + 0x68], 0
je 0x1401ee5b5
mov rdx, rbx
mov rcx, rbp
call fcn.1401ed988
mov rbx, rax
mov edx, esi
mov rcx, rbx
call fcn.1401ee764
mov rcx, qword [rbp + 0xf8]
mov rsi, rax
test rcx, rcx
je 0x1401ee5dc
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp + 0xf8], 0
test rsi, rsi
je 0x1401ee5eb
mov rbx, rsi
mov qword [rbp + 0xf8], rsi
or dword [rdi + 4], 1
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov qword [rdi + 0x10], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1401f1d80
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
mov r12, rdx
mov ecx, 1
call qword [sym.imp.USER32.dll_GetKeyState]
xor r15d, r15d
test ax, ax
js 0x1401f1f4a
call fcn.1401bf62c
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x60], r15
mov r13, rax
call qword [sym.imp.USER32.dll_GetCursorPos]
mov rcx, qword [rdi + 0x40]
lea rdx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_ScreenToClient]
mov rcx, qword [rdi]
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rax, qword [rcx + 0xe8]
mov rcx, rdi
call qword [case.0x14001d845.0]
mov rbx, rax
test rax, rax
js 0x1401f1ee0
mov rcx, rdi
call fcn.1401c6864
mov rcx, rdi
mov r14, rax
call fcn.1401c6f94
test eax, eax
jne 0x1401f1e27
or rsi, 0xffffffffffffffff
mov rbx, rsi
jmp 0x1401f1e42
test r14, r14
je 0x1401f1f67
mov rcx, r14
call fcn.1401bfc6c
or rsi, 0xffffffffffffffff
test eax, eax
cmove rbx, rsi
mov rax, qword [r13 + 0x78]
mov rbp, r15
test rax, rax
je 0x1401f1e52
mov rbp, qword [rax + 0x40]
call qword [sym.imp.USER32.dll_GetCapture]
mov rcx, rax
call fcn.1401c5d98
cmp rax, rdi
je 0x1401f1e85
mov rcx, r15
test rax, rax
je 0x1401f1e71
mov rcx, qword [rax + 0x40]
cmp rcx, rbp
je 0x1401f1e85
mov rcx, rax
call fcn.1401c6864
cmp rax, r14
cmove rbx, rsi
lea r15, [r13 + 0x98]
test rbx, rbx
js 0x1401f1ef1
mov rcx, qword [rdi + 0x40]
lea rdx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_ClientToScreen]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.USER32.dll_WindowFromPoint]
mov r14, rax
test rax, rax
je 0x1401f1ed8
mov rcx, qword [rdi + 0x40]
cmp rax, rcx
je 0x1401f1f1b
mov rdx, rax
call qword [sym.imp.USER32.dll_IsChild]
test eax, eax
jne 0x1401f1f1b
mov rax, qword [r13 + 0x78]
test rax, rax
je 0x1401f1ed8
cmp qword [rax + 0x40], r14
je 0x1401f1f1b
mov rbx, rsi
mov qword [r15], rsi
jmp 0x1401f1ef1
lea rax, [r13 + 0x98]
or rsi, 0xffffffffffffffff
mov qword [rax], rsi
mov r15, rax
cmp qword [r15], rsi
jne 0x1401f1f05
mov rcx, qword [rdi + 0x40]
mov edx, 0xec0a
call qword [sym.imp.USER32.dll_KillTimer]
mov rax, qword [rdi]
mov rdx, rsi
mov rcx, rdi
mov rax, qword [rax + 0x348]
call qword [case.0x14001d845.0]
mov edx, 0xec09
cmp r12, rdx
jne 0x1401f1f4a
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_KillTimer]
test rbx, rbx
js 0x1401f1f4a
mov rax, qword [rdi]
mov rdx, rbx
mov rcx, rdi
mov rax, qword [rax + 0x348]
call qword [case.0x14001d845.0]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.1401beac8
int3
Function at 0x1401f9ce4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [rdx]
xor r15d, r15d
mov qword [rbp - 8], r15
mov rbx, rdx
mov edx, 0x104
mov rsi, rcx
mov edi, r15d
mov r8d, dword [rax - 0xc]
lea r9d, [r15 + 1]
sub r9d, dword [rax - 8]
sub r8d, edx
or r9d, r8d
jge 0x1401f9d2b
mov rcx, rbx
call fcn.14000e2ac
mov r14, qword [rbx]
lea rax, [rbp - 8]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x38], 0x208
lea rdx, str.CLSID
mov dword [rbp + 0x40], r15d
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401f9e03
mov rcx, qword [rbp - 8]
lea rax, [rbp - 0x10]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rbp - 0x10], r15
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401f9df9
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x48]
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rbp + 0x48], r15
lea rdx, str.InProcServer32
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401f9def
mov rcx, qword [rbp + 0x48]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], r14
lea rdx, [0x14036ac58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp + 0x48]
test eax, eax
sete dil
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1401f9e10
mov eax, r15d
jmp 0x1401f9e1d
movsxd rdx, dword [rcx - 0xc]
call fcn.140286a2c
test eax, eax
js 0x1401f9e45
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x1401f9e45
mov dword [rcx - 0x10], eax
mov rcx, qword [rbx]
mov rbx, qword [rsp + 0x70]
mov edx, eax
mov eax, edi
mov word [rcx + rdx*2], r15w
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80070057
call fcn.14000e344
int3

Function at 0x1401fa54c
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rdx
mov rbx, rcx
je 0x1401fa597
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401fa5a8
lea rdx, str.DeleteFileTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1401fa5a8
mov rdx, qword [rbx]
mov rcx, rdi
call qword [case.0x14001d845.0]
jmp 0x1401fa5aa
cmp dword [rcx + 8], 0
je 0x1401fa5a8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1401fa5aa
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1401fa800
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rdx, [rsp + 0x34]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x30], eax
cmp eax, 0xffffffff
jne 0x1401fa82b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1401fa836
mov rax, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
lea rcx, [rbx + 0x18]
call fcn.14000e15c
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rbx
call fcn.14020ba2c
int3

Function at 0x1401fa930
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x1401fa999
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401fa9ad
lea rdx, str.MoveFileTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1401fa9ad
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x20], 2
mov rdx, rdi
call qword [case.0x14001d845.0]
jmp 0x1401fa9af
cmp dword [rcx + 8], 0
je 0x1401fa9ad
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x1401fa9af
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1401fac10
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
test r8d, r8d
jne 0x1401fac22
xor eax, eax
jmp 0x1401fac3f
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x50]
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401fac45
mov eax, dword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret
lea rcx, [rbx + 0x18]
call fcn.14000e15c
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rbx
call fcn.14020ba2c
int3

Function at 0x1401fac64
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rax, rdx
mov rbx, rcx
test rdx, rdx
je 0x1401fac82
mov rdx, rcx
mov rcx, rax
call fcn.1401fa54c
jmp 0x1401fac88
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1401fac92
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rbx
call fcn.14020ba2c
int3

Function at 0x1401faca4
Capabilities:
Move file

Disassembly:
push rbx
sub rsp, 0x20
mov rax, r8
mov rbx, rcx
test r8, r8
je 0x1401facc5
mov r8, rdx
mov rdx, rcx
mov rcx, rax
call fcn.1401fa930
jmp 0x1401faccb
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x1401facd5
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rbx
call fcn.14020ba2c
int3
Function at 0x1401fadf0
Capabilities:
Write file on windows

Disassembly:
test r8d, r8d
je 0x1401fae2e
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov rdi, rcx
mov ebx, r8d
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1401fae2f
cmp dword [rsp + 0x50], ebx
jne 0x1401fae4c
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
lea rcx, [rdi + 0x18]
call fcn.14000e15c
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rbx
call fcn.14020ba2c
int3
lea rcx, [rdi + 0x18]
call fcn.14000e15c
or edx, 0xffffffff
mov r8, rax
lea ecx, [rdx + 0xe]
call fcn.14020b57c
int3

Function at 0x1401fba78
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rax - 0x18], 0
mov rbp, r9
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.1402a4f54
test eax, eax
jne 0x1401fbadc
mov eax, dword [rsp + 0x30]
lea r8, str._s_s_X.tmp
mov dword [rsp + 0x28], eax
mov r9, rsi
mov rdx, rbp
mov qword [rsp + 0x20], rdi
mov rcx, rbx
call fcn.14009e234
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1401fba9c
jmp 0x1401fbaee
mov r9, rbx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x1401fbd20
Capabilities:
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r8d, 1
mov rcx, rbx
bt eax, 0
mov rax, qword [rbx]
mov rax, qword [rax + 0x1c0]
jae 0x1401fbd63
xor edx, edx
call qword [case.0x14001d845.0]
test eax, eax
je 0x1401fbd5f
mov eax, 1
jmp 0x1401fbd76
xor eax, eax
jmp 0x1401fbd76
mov rdx, qword [rbx + 0x48]
call qword [case.0x14001d845.0]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x20
pop rbx
ret
Function at 0x140203760
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
mov rdi, r9
mov rbx, r8
and qword [r9], 0
mov r14, qword [rbp + 0x40]
and dword [r14], 0
cmp qword [rcx + 0xb0], 0
je 0x140203838
xor r8d, r8d
call fcn.140203bec
mov rsi, rax
test rax, rax
je 0x1402038e7
mov qword [rbp - 0x20], rsi
and dword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
and dword [rbp + 0x20], 0
and dword [rbp + 0x40], 0
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x20]
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rbp + 0x40]
mov dword [r14], ecx
test eax, eax
jne 0x14020381c
call fcn.14000e3e0
mov qword [rdi], rax
lea rcx, [rbp + 0x40]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x20]
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14020381c
lea ebx, [rax + 1]
jmp 0x14020382a
mov rcx, qword [rdi]
call fcn.14000e3f0
and qword [rdi], 0
xor ebx, ebx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1402038e5
mov rax, qword [rcx]
and qword [rsp + 0x20], 0
mov r9, rbx
mov r8, rdx
lea rdx, [rbp + 0x40]
mov rax, qword [rax + 0x108]
call qword [case.0x14001d845.0]
nop
mov rax, qword [rbp + 0x40]
mov ecx, dword [rax - 0x10]
test ecx, ecx
jne 0x140203868
xor ebx, ebx
jmp 0x1402038c4
shr ecx, 1
mov dword [r14], ecx
call fcn.14000e3e0
mov qword [rdi], rax
xor r8d, r8d
lea ebx, [r8 + 1]
cmp dword [r14], r8d
jbe 0x1402038c0
lea ecx, [r8 + r8]
lea edx, [rcx + 1]
test edx, edx
js 0x1402038fc
mov rax, qword [rbp + 0x40]
cmp edx, dword [rax - 0x10]
jg 0x1402038fc
movsxd r9, ecx
movzx edx, word [rax + r9*2 + 2]
test ecx, ecx
js 0x1402038fc
cmp ecx, dword [rax - 0x10]
jg 0x1402038fc
shl dl, 4
sub dl, 0x51
add dl, byte [rax + r9*2]
mov rax, qword [rdi]
mov byte [r8 + rax], dl
add r8d, ebx
cmp r8d, dword [r14]
jb 0x140203881
mov rax, qword [rbp + 0x40]
lea rdx, [rax - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x1402038e5
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x14001d845.0]
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov ecx, 0x80070057
call fcn.14000e344
int3
Function at 0x140203910
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx + 0xb0], 0
mov edi, r9d
mov rbx, r8
mov rax, rdx
je 0x14020398b
xor r8d, r8d
call fcn.140203bec
mov rsi, rax
test rax, rax
je 0x140203987
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140203987
mov eax, dword [rsp + 0x30]
jmp 0x1402039a1
mov eax, edi
jmp 0x1402039a1
mov r9, qword [rcx + 0xd8]
mov r8d, edi
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1402039c0
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f68]
mov eax, 0x2068
call fcn.14021a050
sub rsp, rax
mov rax, qword [0x140412700]
xor rax, rsp
mov qword [rbp + 0x1f50], rax
mov r12, r9
mov r10, r8
mov rdi, rdx
mov r14, qword [rbp + 0x1fd0]
mov qword [rsp + 0x38], rdx
xor r13d, r13d
cmp qword [rcx + 0xb0], r13
je 0x140203b6d
xor r8d, r8d
mov rdx, r10
call fcn.140203bec
mov rsi, rax
test rax, rax
jne 0x140203a33
mov rdx, r14
jmp 0x140203ba5
call fcn.1401bdd78
mov rcx, rax
test rax, rax
je 0x140203bde
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14001d845.0]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x34], r13d
mov dword [rsp + 0x30], r13d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r15d, eax
test eax, eax
jne 0x140203b09
mov edx, dword [rsp + 0x30]
shr edx, 1
lea ecx, [rax + 1]
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edx
or eax, ecx
jge 0x140203ab2
lea rcx, [rsp + 0x38]
call fcn.14000e2ac
mov rbx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r15d, eax
test rbx, rbx
jne 0x140203ae2
mov eax, r13d
jmp 0x140203af6
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.140286a2c
test eax, eax
js 0x140203bd3
cmp eax, dword [rbx - 0xc]
jg 0x140203bd3
mov dword [rbx - 0x10], eax
mov eax, eax
mov word [rbx + rax*2], r13w
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test r15d, r15d
jne 0x140203b3e
lea rcx, [rbx - 0x18]
call fcn.14000d73c
add rax, 0x18
mov qword [rdi], rax
or eax, 0xffffffff
lock xadd dword [rbx - 8], eax
sub eax, 1
jg 0x140203bad
mov rcx, qword [rbx - 0x18]
lea rdx, [rbx - 0x18]
jmp 0x140203b5e
mov rdx, r14
mov rcx, rdi
call fcn.14000e0c4
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140203bad
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14001d845.0]
jmp 0x140203bad
lea r8, [0x14036ac58]
test r14, r14
cmovne r8, r14
mov rax, qword [rcx + 0xd8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1000
lea r9, [rsp + 0x50]
mov rdx, r12
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.14000e0c4
mov rax, rdi
mov rcx, qword [rbp + 0x1f50]
xor rcx, rsp
call fcn.1402194b0
add rsp, 0x2068
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80070057
call fcn.14000e344
nop
mov ecx, 0x80004005
call fcn.14000e344
int3