joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007fdb0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rsi, str.NUITKA_ONEFILE_BINARY
mov ebx, ecx
mov rcx, rsi
call fcn.140068b80
test rax, rax
je 0x14007fef0
mov rdx, 0xffffffffffffffff
mov rcx, rax
lea r14, [rsp + 0x40]
mov r15d, 0x4e
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
mov rdi, r14
lea r12, [rsi + 0x28]
lea rbp, [rsp + 0x3e]
mov r13, rax
xor eax, eax
mov word [rsp + 0x40], ax
nop
mov rax, r12
mov rbx, rdi
sub rax, rsi
cmp word [rdi], 0
je 0x14007fe2e
nop
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x14007fe20
test rax, rax
je 0x1400dd6a6
mov rcx, rbx
add rsi, 1
add rdi, 2
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, rbp
mov byte [rsp + 0x3e], r15b
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x3f], 0
call sub.msvcrt.dll_mbstowcs
movzx r15d, byte [rsi]
test r15b, r15b
jne 0x14007fe10
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rdx, qword [0x1401071f8]
mov rsi, qword [rax + 0x1f0]
mov rax, qword [0x1400f0ed0]
mov rbx, qword [rax + 0x1c0]
test rdx, rdx
je 0x14007ff48
mov r8, rbx
mov rcx, rsi
call fcn.14006b620
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.14007cdf0
sub qword [rbx], 1
jne 0x14007fed9
mov rdx, qword [rbx + 8]
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [rdx + 0x30]
mov rax, qword [rsp + 0x28]
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x140106ac8]
lea rsi, [0x140106ac8]
test bl, bl
je 0x14007ff10
mov rax, qword [0x140106ad0]
lea rsi, [0x140106ad0]
test rax, rax
jne 0x14007fed9
cmp byte [0x140106ce2], 0
jne 0x14007ff26
movzx ecx, bl
call fcn.140049690
mov rdx, 0xffffffffffffffff
lea rcx, [0x140106ae0]
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x14007ff75
add qword [rax], 1
jmp 0x14007fed9
mov rdx, qword [0x140107170]
mov rdi, qword [rax + 0x1b0]
test rdx, rdx
je 0x14007ff80
mov r8, rdi
mov rcx, rsi
call fcn.14006b620
mov qword [0x1401071f8], rax
mov rdx, rax
jmp 0x14007fea3
call qword [sym.imp.python310.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x1400e96ee]
call qword [sym.imp.python310.dll_PyImport_ImportModule]
mov qword [0x140107170], rax
mov rdx, rax
test rax, rax
je 0x1400dd6a6
jmp 0x14007ff5b
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call qword [sym.imp.python310.dll_PyErr_NoMemory]
call sub.msvcrt.dll_abort
nop
Function at 0x1400c2120
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x140106ab1], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x1400c21a8
lea rdx, [0x1400ecc92]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400c2210
mov rbx, qword [0x140106968]
jmp 0x1400c2165
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x1400c2160
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, rbp
mov rdx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.1400b1360
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x140106968], rax
mov ebx, dword [rax]
mov qword [0x140106968], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x140106968], rdx
call fcn.1400c1250
cmp eax, ebx
jne 0x1400c2297
mov byte [0x140106ab1], 1
jmp 0x1400c213c
cmp byte [0x140106ab0], 0
jne 0x1400c2153
mov rbx, qword [sym.imp.python310.dll_PyDict_New]
call rbx
mov qword [0x1401073e8], rax
call rbx
mov qword [0x1401073e0], rax
call rbx
mov qword [0x1401073d8], rax
call rbx
mov qword [0x1401073d0], rax
call rbx
mov qword [0x1401073c8], rax
call rbx
mov qword [0x1401073c0], rax
call rbx
mov qword [0x1401073b8], rax
call rbx
mov byte [0x140106ab0], 1
mov qword [0x1401073b0], rax
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rax, qword [rax + 0x10]
add rax, 0xda0
mov qword [0x140106960], rax
jmp 0x1400c2153
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400cb3d0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.1400dcb50
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1400dcb50
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x1400cc0a2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1401078a8]
test eax, eax
je 0x1400cc13a
lea rax, [0x140107880]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1401078b0]
mov qword [rbp - 8], rax
jmp 0x1400cc11e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400cc112
cmp qword [rbp - 0x10], 0
je 0x1400cc112
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400cc0d8
lea rax, [0x140107880]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400cc13b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400cc240
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400cc268
mov eax, 0
jmp 0x1400cc2b6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400cc291
mov eax, 0
jmp 0x1400cc2b6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400cc2b1
mov eax, 0
jmp 0x1400cc2b6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1400cc2bc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1400cc33a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400cc331
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1400cc331
mov rax, qword [rbp - 8]
jmp 0x1400cc34f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400cc304
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000b100
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x198
mov rax, qword [0x14027c940]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x28
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x14000b1a4
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1400078d0
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov r8, qword [rsp + 0x1a8]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x1a0]
call fcn.140004490
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.140008c30
nop
mov rax, qword [rsp + 0x1a0]
jmp 0x14000b1cb
lea rdx, [0x1401ebf9d]
mov rcx, qword [rsp + 0x1a0]
call fcn.1400078d0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x1a0]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1401ae750
add rsp, 0x198
ret

Function at 0x14000b1f0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x258
mov rax, qword [0x14027c940]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x28
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x14000b248
mov rdx, qword [rsp + 0x260]
lea rcx, [rsp + 0x30]
call fcn.1400073d0
lea rax, [rsp + 0x30]
jmp 0x14000b24d
lea rax, [rsp + 0x30]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1401ae750
add rsp, 0x258
ret

Function at 0x14000b4b0
Capabilities:
Log keystrokes via application hook

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14000b570]
mov ecx, SafeArrayGetDim
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x1402832d0], rax
add rsp, 0x28
ret
Function at 0x14000c8e0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x100
mov rax, qword [0x14027c940]
xor rax, rsp
mov qword [rsp + 0xf0], rax
lea rax, [rsp + 0x80]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rsp + 0x80], VarBstrFromDisp
mov dword [rsp + 0xbc], 1
xor eax, eax
mov word [rsp + 0xc0], ax
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x110]
call fcn.140010280
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x14000c9f5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
lea rdx, str.CreateProcess_failed__
lea rcx, [0x140289de0]
call fcn.140004120
mov ecx, dword [rsp + 0x50]
mov edx, ecx
mov rcx, rax
call fcn.1400095c0
lea rdx, [0x1401ec1a8]
mov rcx, rax
call fcn.140004120
nop
mov dword [rsp + 0x54], 1
mov rcx, qword [rsp + 0x110]
call fcn.140008c30
mov eax, dword [rsp + 0x54]
jmp 0x14000ca25
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov dword [rsp + 0x58], 0
mov rcx, qword [rsp + 0x110]
call fcn.140008c30
mov eax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1401ae750
add rsp, 0x100
pop rdi
ret
Function at 0x1400102a0
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x38
mov ecx, 0x14
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 1
cmp eax, 1
jne 0x1400102c2
mov dword [rsp + 0x20], 1
jmp 0x1400102ca
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x140012450
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x38
mov ecx, LoadRegTypeLib
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jl 0x14001247e
mov ecx, reloc.OLEAUT32.dll_LoadRegTypeLib
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jl 0x14001247e
mov dword [rsp + 0x20], 0
jmp 0x140012486
mov dword [rsp + 0x20], 1
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x1400168c0
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x78
test rdx, rdx
je 0x140016928
mov r10, qword [rcx + 0x10]
test r10, r10
je 0x140016912
cmp qword [rcx + 0x18], 0
jne 0x14001690d
mov eax, dword [rcx + 0xc]
cmp eax, dword [rcx + 0x30]
jae 0x14001692e
mov qword [rsp + 0x58], rdx
lea r9, [rsp + 0x20]
mov dword [rsp + 0x20], 0x50
mov edx, eax
mov dword [rsp + 0x24], 0x40
mov r8d, 1
mov rcx, qword [r10 + 8]
call qword [sym.imp.USER32.dll_SetMenuItemInfoW]
add rsp, 0x78
ret
mov rcx, qword [rcx + 0x20]
test rcx, rcx
je 0x140016928
mov rcx, qword [rcx + 0x40]
add rsp, 0x78
jmp fcn.140040c4c
call fcn.140012b98
int3
call fcn.140012b98
int3

Function at 0x140016cf0
Capabilities:
Extract resource via kernel32 functions

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 rbx, qword [rcx + 0x100]
xor r14d, r14d
mov rdi, rcx
mov rsi, qword [rcx + 0xf8]
cmp qword [rcx + 0xf0], r14
je 0x140016d57
call fcn.140031b08
mov rdx, qword [rdi + 0xf0]
lea r8d, [r14 + 5]
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140016d57
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rsi, rsi
je 0x140016d68
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
mov eax, 1
test rbx, rbx
je 0x140016dad
mov edx, 0xffff
lea rcx, [rbx + 0xc]
cmp word [rbx + 2], dx
jne 0x140016d8c
movzx r8d, word [rbx + 0x12]
movzx edx, word [rbx + 0x14]
jmp 0x140016d97
movzx edx, word [rcx]
mov rcx, rbx
movzx r8d, word [rbx + 0xa]
test dword [rcx], 0x1801
jne 0x140016daa
test r8w, r8w
jne 0x140016daa
test dx, dx
je 0x140016dad
mov eax, r14d
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
Function at 0x140016dc8
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
mov qword [rcx + 0xf0], rdx
mov rbp, r8
mov rdi, rdx
mov rbx, rcx
cmp rdx, 0x10000
jae 0x140016e07
cmp dword [rcx + 0xe8], 0
jne 0x140016e07
movzx eax, dx
mov dword [rcx + 0xe8], eax
call fcn.140031b08
mov r8d, 5
mov rdx, rdi
mov rsi, qword [rax + 0x18]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140016e4b
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140016e4b
mov r9, rsi
mov r8, rbp
mov rdx, rax
mov rcx, rbx
call fcn.140017180
jmp 0x140016e4d
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140016e64
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
mov rsi, r8
mov rbx, rdx
mov rbp, rcx
call fcn.140031b08
mov r8d, 5
mov rdx, rbx
mov rdi, qword [rax + 0x18]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140016ece
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140016ece
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r9, rdi
mov r8, rsi
mov rdx, rax
mov rcx, rbp
call fcn.140016ee8
jmp 0x140016ed0
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400172e8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbx, rcx
mov r12, qword [rcx + 0x100]
mov rdi, qword [rcx + 0xf8]
call fcn.140031b08
mov r13, qword [rax + 0x18]
cmp qword [rbx + 0xf0], 0
je 0x140017353
call fcn.140031b08
mov r13, qword [rax + 0x18]
mov r8d, 5
mov rdx, qword [rbx + 0xf0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140017369
mov rdx, rax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rdi, rdi
je 0x140017364
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r12, rax
test r12, r12
jne 0x140017372
or rax, 0xffffffffffffffff
jmp 0x14001752b
mov rcx, rbx
call fcn.140017a50
mov rdi, rax
mov qword [rsp + 0x20], rax
call fcn.140033940
xor r14d, r14d
mov dword [rsp + 0x78], r14d
xor esi, esi
mov qword [rsp + 0x88], rsi
xor r15d, r15d
mov dword [rsp + 0x80], r15d
test rdi, rdi
je 0x140017453
call qword [sym.imp.USER32.dll_GetDesktopWindow]
cmp rdi, rax
je 0x140017453
mov rcx, rdi
call qword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x140017453
xor edx, edx
mov rcx, rdi
call qword [sym.imp.USER32.dll_EnableWindow]
lea r14d, [rsi + 1]
mov dword [rsp + 0x78], r14d
call fcn.140017f98
mov rdx, rax
test rax, rax
je 0x14001744b
mov rcx, qword [rax]
mov rax, qword [rcx + 0xe8]
mov rcx, rdx
call qword [case.0x1400258aa.0]
mov rsi, rax
mov qword [rsp + 0x88], rax
test rax, rax
je 0x140017453
mov rax, qword [rax]
mov rcx, rsi
mov rax, qword [rax + 0x2a0]
call qword [case.0x1400258aa.0]
test eax, eax
je 0x140017453
mov rcx, rsi
call fcn.14003bd5c
test eax, eax
je 0x140017453
xor edx, edx
mov rcx, rsi
call fcn.14003b574
mov r15d, r14d
mov dword [rsp + 0x80], r14d
jmp 0x140017453
mov qword [rsp + 0x88], rsi
mov rcx, rbx
call fcn.140033450
mov rcx, rdi
call fcn.1400352d0
mov r9, r13
mov r8, rax
mov rdx, r12
mov rcx, rbx
call fcn.140017270
test eax, eax
jne 0x1400174a2
cmp dword [rbx + 0x120], eax
jne 0x1400174a2
call fcn.140031b08
mov r13, qword [rax + 0x10]
mov rcx, rdi
call fcn.1400352d0
mov r9, r13
mov r8, rax
mov rdx, r12
mov rcx, rbx
call fcn.140017270
and dword [rbx + 0x120], 0
jmp 0x1400174ca
test r15d, r15d
je 0x1400174dc
mov edx, 1
mov rcx, rsi
call fcn.14003b574
test r14d, r14d
je 0x1400174ef
mov edx, 1
mov rcx, rdi
call qword [sym.imp.USER32.dll_EnableWindow]
test rdi, rdi
je 0x140017509
call qword [sym.imp.USER32.dll_GetActiveWindow]
cmp rax, qword [rbx + 0x40]
jne 0x140017509
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetActiveWindow]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0xc0]
call qword [case.0x1400258aa.0]
mov rcx, rbx
call fcn.1400179f0
movsxd rax, dword [rbx + 0xb8]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x14001a3b4
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 0x14001a48c
xor r8d, r8d
call fcn.14001a81c
mov rsi, rax
test rax, rax
je 0x14001a538
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 0x14001a470
call fcn.140030a90
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 0x14001a470
lea ebx, [rax + 1]
jmp 0x14001a47e
mov rcx, qword [rdi]
call fcn.1400145d4
and qword [rdi], 0
xor ebx, ebx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001a536
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.0x1400258aa.0]
nop
mov rax, qword [rbp + 0x40]
mov ecx, dword [rax - 0x10]
test ecx, ecx
jne 0x14001a4bc
xor ebx, ebx
jmp 0x14001a515
shr ecx, 1
mov dword [r14], ecx
call fcn.140030a90
mov qword [rdi], rax
xor r8d, r8d
lea ebx, [r8 + 1]
cmp dword [r14], r8d
jbe 0x14001a511
lea ecx, [r8 + r8]
lea edx, [rcx + 1]
test edx, edx
js 0x14001a54d
mov rax, qword [rbp + 0x40]
cmp edx, dword [rax - 0x10]
jg 0x14001a54d
test ecx, ecx
js 0x14001a54d
cmp ecx, dword [rax - 0x10]
jg 0x14001a54d
movsxd rcx, ecx
mov dl, byte [rax + rcx*2 + 2]
shl dl, 4
sub dl, 0x51
add dl, byte [rax + rcx*2]
mov rax, qword [rdi]
mov byte [r8 + rax], dl
add r8d, ebx
cmp r8d, dword [r14]
jb 0x14001a4d5
mov rax, qword [rbp + 0x40]
lea rdx, [rax - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14001a536
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x1400258aa.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.140002c50
int3
Function at 0x14001a558
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 0x14001a5d3
xor r8d, r8d
call fcn.14001a81c
mov rsi, rax
test rax, rax
je 0x14001a5cf
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 0x14001a5cf
mov eax, dword [rsp + 0x30]
jmp 0x14001a5e9
mov eax, edi
jmp 0x14001a5e9
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