joyce8/EMBER2024-capa huggingface dataset:
Function at 0x12894830
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
mov r12d, r9d
mov rsi, r8
mov rbp, rcx
xor ebx, ebx
mov dword [rsp + 0x2c], 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rsp + 0x28], eax
cmp qword [0x129abb48], rbx
je 0x128948b0
test rbp, rbp
je 0x128948b0
test rsi, rsi
je 0x128948b0
cmp r12d, 0x1000
jne 0x128948b0
cmp dword [rsp + 0x70], 4
jne 0x128948b0
mov dword [rsp + 0x20], ebx
lea r9, [rsp + 0x20]
lea r8d, [rbx + 0x40]
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x128948c6
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
jmp 0x128948c8
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret

Function at 0x128a7fe0
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
cmp dword [0x129ae5b4], 0
je 0x128a80d1
xor edi, edi
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x3c], edi
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x44], edi
cmp dword [0x129ae5b0], edi
je 0x128a8033
lea r9d, [rdi + 1]
xor r8d, r8d
lea rdx, [rsp + 0x38]
lea rcx, [0x129ad7f0]
call fcn.12954cc0
xor edx, edx
mov r8d, 0x2000000
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x129ae5ac], 0
je 0x128a8061
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, rdi
mov qword [0x129ae568], rbx
cmp dword [0x129ae5a8], 0
je 0x128a80b2
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea r8, [0x128a80e0]
xor edx, edx
xor ecx, ecx
call fcn.12958fc0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rbx, rbx
je 0x128a80b2
mov edx, 0xea60
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
cmp dword [rsp + 0x38], 0
je 0x128a80d1
mov edx, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x3c]
call fcn.128868a0
mov dword [rsp + 0x38], edi
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x128ab3c0
Capabilities:
Query environment variable

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0xc8], rbx
mov rax, qword [0x12a52ee0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x20], r9d
mov edi, r8d
mov qword [rsp + 0x28], rdi
mov r13, rdx
mov rbx, rcx
call fcn.12803f90
test r13, r13
je 0x128ab5d3
mov qword [rsp + 0x60], 7
xor eax, eax
mov qword [rsp + 0x58], rax
mov word [rsp + 0x48], ax
mov r15, r13
mov qword [rsp + 0x30], r13
cmp edi, 0xffffffff
jne 0x128ab44a
or rcx, 0xffffffffffffffff
mov rdi, r13
repne scasw ax, word [rdi]
not rcx
dec rcx
mov qword [rsp + 0x28], rcx
jmp 0x128ab470
mov r8, rdi
mov rdx, r13
lea rcx, [rsp + 0x40]
call fcn.12803dc0
lea r15, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae r15, qword [rsp + 0x48]
mov qword [rsp + 0x30], r15
mov rax, qword [rbx + 0x18]
lea r14d, [rax + 0x104]
mov ebp, r14d
cmp rbp, rax
ja 0x128ab494
or r8, 0xffffffffffffffff
mov rdx, rbp
mov rcx, rbx
call fcn.128033a0
jmp 0x128ab4a5
xor r8d, r8d
mov rdx, rbp
sub rdx, rax
mov rcx, rbx
call fcn.12803b90
mov esi, 8
cmp qword [rbx + 0x20], rsi
jb 0x128ab4ba
lea r12, [rbx + 8]
mov rdi, qword [r12]
jmp 0x128ab4c1
lea r12, [rbx + 8]
mov rdi, r12
test rdi, rdi
je 0x128ab581
cmp qword [rbx + 0x18], rbp
jne 0x128ab581
mov r8d, r14d
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp ebp, r14d
jbe 0x128ab55f
lea r14d, [rbp + 1]
mov r15d, r14d
mov rax, qword [rbx + 0x18]
cmp r15, rax
ja 0x128ab513
or r8, 0xffffffffffffffff
mov rdx, r15
mov rcx, rbx
call fcn.128033a0
jmp 0x128ab524
xor r8d, r8d
mov rdx, r15
sub rdx, rax
mov rcx, rbx
call fcn.12803b90
cmp qword [rbx + 0x20], 8
jb 0x128ab531
mov rdi, qword [r12]
jmp 0x128ab534
mov rdi, r12
mov esi, 8
test rdi, rdi
je 0x128ab55f
cmp qword [rbx + 0x18], r15
jne 0x128ab55f
mov r8d, r14d
mov rdx, rdi
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test ebp, ebp
je 0x128ab57d
cmp r14d, ebp
jbe 0x128ab57d
test rdi, rdi
je 0x128ab57d
mov edx, ebp
mov rcx, rbx
call fcn.1280d350
xor edi, edi
mov esi, edi
jmp 0x128ab5aa
test esi, esi
je 0x128ab5a8
cmp dword [rsp + 0x20], 0
je 0x128ab594
mov rcx, rbx
call fcn.12803f90
xor edi, edi
jmp 0x128ab5aa
mov r8d, dword [rsp + 0x28]
mov rdx, r13
mov rcx, rbx
call fcn.12803dc0
xor edi, edi
jmp 0x128ab5aa
xor edi, edi
cmp qword [rsp + 0x60], 8
jb 0x128ab5bc
mov rcx, qword [rsp + 0x48]
call fcn.12958250
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rdi
mov word [rsp + 0x48], di
mov eax, esi
jmp 0x128ab5d8
mov eax, 0x57
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.12959850
mov rbx, qword [rsp + 0xc8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x128abb40
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x80
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x12a52ee0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r13, r8
mov rbp, rdx
mov rbx, rcx
mov qword [rsp + 0x68], 7
xor r14d, r14d
mov qword [rsp + 0x60], r14
mov word [rsp + 0x50], r14w
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, str.SYSTEMCurrentControlSetServices
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, str.SYSTEMCurrentControlSetServices
lea rcx, [rsp + 0x48]
call fcn.12803dc0
nop
test rbx, rbx
je 0x128abc57
cmp word [rbx], r14w
je 0x128abc57
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
lea r12, [rbx + rcx*2]
cmp rbx, r12
je 0x128abc57
lea edi, [rax + 0x5c]
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x128abc13
lea rsi, [rax - 1]
cmp rax, rsi
ja 0x128abbfc
call fcn.129581ac
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rax, qword [rsp + 0x50]
cmp word [rax + rsi*2], di
je 0x128abc25
mov r8d, edi
mov edx, 1
lea rcx, [rsp + 0x48]
call fcn.12803b90
lea rax, [0x129bcb5c]
movzx ecx, word [rbx]
nop
cmp cx, di
je 0x128abc43
add rax, 2
mov di, word [rax]
test di, di
jne 0x128abc30
jmp 0x128abc47
add rbx, 2
mov r8, r12
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.1281aed0
mov qword [rsp + 0x38], r14
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
lea r8, [rsp + 0x38]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov edi, eax
test eax, eax
jne 0x128abcf4
test rbp, rbp
je 0x128abcc3
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Type
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
je 0x128abcc3
mov dword [rbp], r14d
test r13, r13
je 0x128abcf4
mov dword [rsp + 0x30], r14d
mov r9, r13
lea r8, [rsp + 0x30]
lea rdx, str.ImagePath
mov rcx, qword [rsp + 0x38]
call fcn.1281a720
mov edi, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp qword [rsp + 0x68], 8
jb 0x128abd06
mov rcx, qword [rsp + 0x50]
call fcn.12958250
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r14
mov word [rsp + 0x50], r14w
mov eax, edi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.12959850
add rsp, 0x80
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x128ae8d0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x30
mov rbx, rdx
mov rsi, rcx
lea r8, [rsp + 0x50]
lea rdx, str.Control_PanelInternational
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x128ae948
or rcx, 0xffffffffffffffff
xor eax, eax
mov qword [rsp + 0x40], rdi
mov rdi, rbx
lea r9d, [rax + 1]
xor r8d, r8d
repne scasw ax, word [rdi]
mov rdx, rsi
not rcx
dec rcx
add ecx, ecx
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rsi
ret

Function at 0x128ae960
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
lea eax, [r8 + r8]
mov r8d, dword [0x12a239f0]
mov esi, ecx
and esi, 0xf0000000
and ecx, 0xfffffff
mov dword [rsp + 0x50], eax
mov rdi, rdx
lea rax, [0x12a239f0]
test r8d, r8d
je 0x128ae9a6
cmp r8d, ecx
je 0x128ae9bb
mov r8d, dword [rax + 0x10]
add rax, 0x10
test r8d, r8d
jne 0x128ae994
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
mov rbx, qword [rax + 8]
lea r8, [rsp + 0x68]
lea rdx, str.Control_PanelInternational
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x128ae9a6
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x68]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x128ae9a6
bt esi, 0x1d
jae 0x128aea3a
test rdi, rdi
je 0x128aea2d
lea r8d, [rbx + 0xa]
xor edx, edx
mov rcx, rdi
call fcn.1295ab94
mov dword [rdi], eax
mov eax, 4
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
mov eax, dword [rsp + 0x50]
shr eax, 1
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x12951320
Capabilities:
Delete registry key

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x440
mov rax, qword [0x12a52ee0]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov rbx, rcx
xor ecx, ecx
mov esi, r8d
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x129513cb
cmp qword [rbx + 0x68], 0
je 0x129513cb
xor eax, eax
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0x3fe
mov word [rsp + 0x30], ax
call fcn.12959590
lea rdx, str._.8u_s
lea rcx, [rsp + 0x30]
mov r9, rdi
mov r8d, esi
call qword [sym.imp.USER32.dll_wsprintfW]
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x129513c4
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbx + 0x68]
lea rdx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov eax, 1
jmp 0x129513d8
mov ecx, 0x490
jmp 0x129513d0
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.12959850
add rsp, 0x440
pop rdi
pop rsi
pop rbx
ret
Function at 0x1295ed4c
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.129610bc
nop
cmp dword [0x129ae940], 1
je 0x1295ecf8
mov dword [0x129ae93c], 1
mov byte [0x129ae938], r12b
test ebx, ebx
jne 0x1295ece4
mov rcx, qword [0x129b0ab0]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1295ecd1
mov rcx, qword [0x129b0aa8]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x1295ec70
call fcn.1295cbc8
cmp qword [rdi], rax
jne 0x1295ec70
jmp 0x1295ec56
cmp rdi, rsi
jb 0x1295ecd1
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.1295cbc8
mov qword [rdi], rax
call rbx
mov rcx, qword [0x129b0ab0]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x129b0aa8]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x1295ecaf
cmp r13, rax
je 0x1295eccf
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x1295ec56
lea rdx, [0x129b1ce0]
lea rcx, [0x129b1cc8]
call fcn.1295eaa0
lea rdx, [0x129b1cf0]
lea rcx, [0x129b1ce8]
call fcn.1295eaa0
nop
test r12d, r12d
je 0x1295ed07
mov ecx, 8
call fcn.12960fbc
test r12d, r12d
jne 0x1295ed32
mov dword [0x129ae940], 1
lea ecx, [r12 + 8]
call fcn.12960fbc
mov ecx, r15d
call fcn.1295ea34
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x1295ebc0
Function at 0x1296011b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x12a52ee0]
jne 0x1295986a
rol rcx, 0x10
test cx, 0xffff
jne 0x12959866
repz ret
ror rcx, 0x10
jmp 0x12960074
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x129aed20]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x129aee18]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x129600f9
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x129aed20]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1296011b
mov rax, qword [rsp + 0x88]
mov qword [0x129aee18], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x129aedb8], rax
mov rax, qword [0x129aee18]
mov qword [0x129aec90], rax
mov rax, qword [rsp + 0x90]
mov qword [0x129aeda0], rax
mov dword [0x129aec80], 0xc0000409
mov dword [0x129aec84], 1
mov rax, qword [0x12a52ee0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x12a52ee8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x129aed18], eax
mov ecx, 1
call fcn.1295cbb8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x129e04b0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x129aed18], 0
jne 0x129601a2
mov ecx, 1
call fcn.1295cbb8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x12961ff0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.1295cbc8
xor ebx, ebx
mov rdi, rax
cmp qword [0x129af480], rbx
jne 0x129620f6
lea rcx, [0x129e0598]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x129621cb
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x129621cb
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x129af480], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x129af488], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x129dca88]
mov rcx, rsi
mov qword [0x129af490], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x129af4a0], rax
test rax, rax
je 0x129620ed
lea rdx, [0x129e0548]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x129af498], rax
jmp 0x129620fd
mov rax, qword [0x129af498]
jmp 0x12962104
mov rax, qword [0x129af498]
mov r11, qword [0x129af4a0]
cmp rax, rdi
je 0x1296216c
cmp r11, rdi
je 0x1296216c
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x129af4a0]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x1296216c
test rax, rax
je 0x1296216c
call rsi
test rax, rax
je 0x12962166
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x12962166
test byte [rsp + 0x38], 1
jne 0x1296216c
bts ebp, 0x15
jmp 0x129621aa
mov rcx, qword [0x129af488]
cmp rcx, rdi
je 0x129621aa
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x129621aa
call rax
mov rbx, rax
test rax, rax
je 0x129621aa
mov rcx, qword [0x129af490]
cmp rcx, rdi
je 0x129621aa
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x129621aa
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x129af480]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x129621cb
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x129621cd
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x12965f80
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.1295cbc8
xor ebx, ebx
mov rdi, rax
cmp qword [0x129af658], rbx
jne 0x12966086
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x1296615b
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1296615b
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x129af658], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x129af660], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x129af668], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x129af678], rax
test rax, rax
je 0x1296607d
lea rdx, [0x129e0548]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x129af670], rax
jmp 0x1296608d
mov rax, qword [0x129af670]
jmp 0x12966094
mov rax, qword [0x129af670]
mov r11, qword [0x129af678]
cmp rax, rdi
je 0x129660fc
cmp r11, rdi
je 0x129660fc
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x129af678]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x129660fc
test rax, rax
je 0x129660fc
call rsi
test rax, rax
je 0x129660f6
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x129660f6
test byte [rsp + 0x38], 1
jne 0x129660fc
bts ebp, 0x15
jmp 0x1296613a
mov rcx, qword [0x129af660]
cmp rcx, rdi
je 0x1296613a
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1296613a
call rax
mov rbx, rax
test rax, rax
je 0x1296613a
mov rcx, qword [0x129af668]
cmp rcx, rdi
je 0x1296613a
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1296613a
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x129af658]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1296615b
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x1296615d
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14004a7b0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x14004a7d1
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14004a7fe
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14004a800
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14004a859
test ecx, ecx
jle 0x14004a839
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14004a859
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14004a859
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
invalid
Function at 0x14004a880
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14004a8b1
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je case.default.0x14004a8c8
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14004a8eb
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14004a8ed
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14004a929
mov qword [rsp + 0x38], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14004a9be
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14004a964
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14004a99e
nop dword [rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14004a9be
cmp rbx, rax
ja 0x14004a970
test rbx, rbx
je 0x14004a9be
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
wait
invalid