joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4afc90
Capabilities:
Read file via mapping

Disassembly:
push rbp
sub rsp, 0xd0
mov rbp, rsp
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x58], rbp
nop
mov byte [rbp + 0xc7], 0
call fcn.004afb80
mov qword [rbp + 0xc8], rax
nop
cmp qword [0x00af22a0], 0
jne 0x4afeba
lea rcx, [rbp + 0xa0]
lea rdx, [rbp + 0x78]
call fcn.004aad20
call sub.kernel32.dll_GetCurrentProcessId
lea rcx, [rbp + 0x48]
mov edx, eax
mov r8d, 1
mov r9b, 0x30
call fcn.00425bd0
lea rcx, [rbp + 0x50]
lea rdx, [0x004aff74]
mov r8, qword [rbp + 0x48]
call fcn.004111e0
mov rcx, qword [rbp + 0x50]
call fcn.004115a0
mov ecx, 6
xor rdx, rdx
mov r8, rax
call sub.kernel32.dll_OpenFileMappingA
mov qword [rbp + 0xb8], rax
cmp qword [rbp + 0xb8], 0
sete al
mov byte [rbp + 0x77], al
cmp byte [rbp + 0x77], 0
je 0x4afdba
call sub.kernel32.dll_GetCurrentProcessId
lea rcx, [rbp + 0x38]
mov edx, eax
mov r8d, 1
mov r9b, 0x30
call fcn.00425bd0
lea rcx, [rbp + 0x40]
lea rdx, [0x004aff74]
mov r8, qword [rbp + 0x38]
call fcn.004111e0
mov rcx, qword [rbp + 0x40]
call fcn.004115a0
or rcx, 0xffffffffffffffff
lea rdx, [rbp + 0xa0]
mov r8d, 4
xor r9, r9
mov dword [rsp + 0x20], 8
mov qword [rsp + 0x28], rax
call sub.kernel32.dll_CreateFileMappingA
mov qword [rbp + 0xb8], rax
cmp qword [rbp + 0xb8], 0
jne 0x4afdea
mov qword [rbp + 0x68], 0
xor rcx, rcx
lea rdx, [0x004aff8a]
lea r8, [0x004affb3]
xor r9, r9
call sub.user32.dll_MessageBoxA
jmp 0x4afe9f
cmp byte [rbp + 0x77], 0
je 0x4afe6e
mov rcx, qword [rbp + 0xb8]
mov edx, 0xf001f
xor r8, r8
xor r9, r9
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_MapViewOfFile
mov qword [rbp + 0x68], rax
xor rcx, rcx
mov edx, 0x44
mov r8d, 0x1000
mov r9d, 4
call sub.kernel32.dll_VirtualAlloc
mov rcx, qword [rbp + 0x68]
mov qword [rcx], rax
mov rax, qword [rbp + 0x68]
mov rcx, qword [rax]
mov edx, 0x44
call fcn.00421c00
mov rax, qword [rbp + 0x68]
mov rax, qword [rax]
mov rcx, qword [rbp + 0xb8]
mov qword [rax + 4], rcx
mov rax, qword [rbp + 0x68]
mov rax, qword [rax]
lea rcx, [rax + 0xc]
call sub.kernel32.dll_InitializeCriticalSection
jmp 0x4afe9f
mov rcx, qword [rbp + 0xb8]
mov edx, 0xf001f
xor r8, r8
xor r9, r9
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_MapViewOfFile
mov qword [rbp + 0x68], rax
mov rcx, qword [rbp + 0xb8]
call sub.kernel32.dll_CloseHandle
cmp qword [rbp + 0x68], 0
je 0x4afeba
mov rcx, qword [rbp + 0x68]
call fcn.00503200
mov rax, qword [rbp + 0x68]
mov qword [0x00af22a0], rax
cmp qword [0x00af22a0], 0
je 0x4afed8
mov rax, qword [0x00af22a0]
mov rax, qword [rax]
add dword [rax], 1
mov byte [rbp + 0xc7], 1
nop
mov rcx, qword [rbp + 0xc8]
call fcn.004afc70
nop
lea rcx, [rbp + 0x38]
mov edx, 4
call fcn.00410470
movzx rax, byte [rbp + 0xc7]
lea rsp, [rbp + 0xd0]
pop rbp
ret
Function at 0x4f54d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x60], rcx
mov qword [rbp + 0x68], rdx
mov dword [rbp + 0x70], r8d
mov qword [rbp + 0x78], r9
nop
mov byte [rbp + 0x4f], 0
lea rcx, [rbp + 0x40]
call fcn.004103b0
lea rcx, [0x00b7b7d0]
call sub.kernel32.dll_EnterCriticalSection
nop
lea rcx, [rbp + 0x40]
mov rdx, qword [rbp + 0x60]
mov r8d, dword [rbp + 0x70]
xor r9, r9
call fcn.004106d0
lea rcx, [rbp + 0x38]
mov rdx, qword [rbp + 0x68]
mov r8d, dword [rbp + 0x70]
xor r9, r9
call fcn.004106d0
mov rcx, qword [rbp + 0x40]
call fcn.00410b90
cmp eax, dword [rbp + 0x70]
jne 0x4f5671
mov rcx, qword [rbp + 0x38]
call fcn.00410b90
cmp eax, dword [rbp + 0x70]
jne 0x4f5671
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x38]
call fcn.00411550
test eax, eax
je 0x4f5671
mov rcx, qword [rbp + 0x60]
movsxd rdx, dword [rbp + 0x70]
mov r8d, 0x40
lea r9, [rbp + 0x34]
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4f5671
mov rcx, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
movsxd r8, dword [rbp + 0x70]
call fcn.00408e20
mov rcx, qword [rbp + 0x60]
movsxd rdx, dword [rbp + 0x70]
mov r8d, dword [rbp + 0x34]
lea r9, [rbp + 0x34]
call sub.kernel32.dll_VirtualProtect
mov rcx, qword [0x00b7b7f8]
call fcn.00413b70
mov dword [rbp + 0x30], eax
lea rcx, [0x00b7b7f8]
mov rdx, qword [0x004f5490]
mov r8d, 1
mov r9d, dword [rbp + 0x30]
add r9d, 1
movsxd r9, r9d
call fcn.00413f10
mov rax, qword [0x00b7b7f8]
movsxd rcx, dword [rbp + 0x30]
add rcx, rcx
add rcx, rcx
mov rdx, qword [rbp + 0x60]
mov qword [rax + rcx*8], rdx
mov rax, qword [0x00b7b7f8]
movsxd rcx, dword [rbp + 0x30]
add rcx, rcx
add rcx, rcx
lea rcx, [rax + rcx*8 + 8]
mov rdx, qword [rbp + 0x40]
call fcn.00410ac0
mov rax, qword [0x00b7b7f8]
movsxd rcx, dword [rbp + 0x30]
add rcx, rcx
add rcx, rcx
lea rcx, [rax + rcx*8 + 0x10]
mov rdx, qword [rbp + 0x38]
call fcn.00410ac0
mov rax, qword [0x00b7b7f8]
movsxd rcx, dword [rbp + 0x30]
add rcx, rcx
add rcx, rcx
mov rdx, qword [rbp + 0x78]
mov qword [rax + rcx*8 + 0x18], rdx
mov byte [rbp + 0x4f], 1
jmp 0x4f5671
lea rcx, [0x00b7b7d0]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 2
call fcn.00410470
movzx rax, byte [rbp + 0x4f]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x501230
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rbx
sub rsp, 0x68
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x30], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov qword [rbp + 0x48], 0
nop
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x50137f
mov rcx, qword [rbp + 0x40]
call fcn.004115a0
mov rcx, rax
call sub.kernel32.dll_GetModuleHandleA
mov rcx, rax
mov rdx, qword [rbp + 0x30]
xor r8, r8
call fcn.0042ef00
mov rcx, qword [rbp + 0x28]
mov qword [rcx], rax
mov rax, qword [rbp + 0x20]
test rax, rax
je 0x5012aa
mov rax, qword [rbp + 0x20]
cmp word [rax], 0x25ff
jne 0x5012aa
mov rcx, qword [rbp + 0x20]
movsxd rax, dword [rcx + 2]
mov rbx, qword [rcx + rax + 6]
jmp 0x5012ad
xor rbx, rbx
cmp byte [rbp + 0xa8], 0
jne 0x5012d0
xor rcx, rcx
call sub.kernel32.dll_GetModuleHandleW
cmp qword [0x00af0d18], rax
je 0x5012d0
cmp byte [0x00af0d30], 0
je 0x5012f2
lea rcx, [rbp + 0x48]
call fcn.004ab0a0
mov rcx, qword [rbp + 0x48]
mov rax, qword [rbp + 0x28]
mov rdx, qword [rax]
mov r8, qword [rbp + 0xa0]
call fcn.004ab620
jmp 0x50130c
mov rcx, qword [0x00af0d18]
mov rax, qword [rbp + 0x28]
mov rdx, qword [rax]
mov r8, qword [rbp + 0xa0]
call fcn.004ab530
test rbx, rbx
je 0x501320
mov rcx, qword [rbp + 0x20]
movsxd rax, dword [rcx + 2]
cmp rbx, qword [rcx + rax + 6]
je 0x501325
xor rax, rax
jmp 0x501327
mov al, 1
mov byte [rbp + 0x3f], al
movzx rax, byte [rbp + 0x3f]
test al, al
je 0x501385
mov rcx, qword [rbp + 0x20]
movsxd rax, dword [rcx + 2]
lea rbx, [rcx + rax + 6]
mov rcx, rbx
mov edx, 8
mov r8d, 0x40
lea r9, [rbp + 0x5c]
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x501385
mov rax, qword [rbp + 0xa0]
mov qword [rbx], rax
mov rcx, rbx
mov edx, 8
mov r8d, dword [rbp + 0x5c]
lea r9, [rbp + 0x5c]
call sub.kernel32.dll_VirtualProtect
jmp 0x501385
xor rax, rax
mov byte [rbp + 0x3f], al
nop
lea rcx, [rbp + 0x48]
mov rdx, qword [0x004ab058]
call fcn.004140f0
movzx rax, byte [rbp + 0x3f]
lea rsp, [rbp + 0x68]
pop rbx
pop rbp
ret
Function at 0x5013e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rbx
sub rsp, 0x68
mov rbp, rsp
mov qword [rbp + 0x30], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x38], r8
mov byte [rbp + 0x47], r9b
mov qword [rbp + 0x48], 0
nop
mov rax, qword [rbp + 0x28]
test rax, rax
je 0x5014e3
mov rax, qword [rbp + 0x30]
test rax, rax
je 0x501432
mov rax, qword [rbp + 0x30]
cmp word [rax], 0x25ff
jne 0x501432
mov rcx, qword [rbp + 0x30]
movsxd rax, dword [rcx + 2]
mov rbx, qword [rcx + rax + 6]
jmp 0x501435
xor rbx, rbx
movzx rax, byte [rbp + 0x47]
test al, al
jne 0x501458
xor rcx, rcx
call sub.kernel32.dll_GetModuleHandleW
cmp qword [0x00af0d18], rax
je 0x501458
cmp byte [0x00af0d30], 0
je 0x501474
lea rcx, [rbp + 0x48]
call fcn.004ab0a0
mov rcx, qword [rbp + 0x48]
mov rdx, qword [rbp + 0x38]
mov r8, qword [rbp + 0x28]
call fcn.004ab620
jmp 0x501488
mov rcx, qword [0x00af0d18]
mov rdx, qword [rbp + 0x38]
mov r8, qword [rbp + 0x28]
call fcn.004ab530
test rbx, rbx
je 0x5014e3
mov rcx, qword [rbp + 0x30]
movsxd rax, dword [rcx + 2]
cmp rbx, qword [rcx + rax + 6]
jne 0x5014e3
mov rcx, qword [rbp + 0x30]
movsxd rax, dword [rcx + 2]
lea rbx, [rcx + rax + 6]
mov rcx, rbx
mov edx, 8
mov r8d, 0x40
lea r9, [rbp + 0x5c]
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x5014e3
mov rax, qword [rbp + 0x28]
mov qword [rbx], rax
mov rcx, rbx
mov edx, 8
mov r8d, dword [rbp + 0x5c]
lea r9, [rbp + 0x5c]
call sub.kernel32.dll_VirtualProtect
nop
lea rcx, [rbp + 0x48]
mov rdx, qword [0x004ab058]
call fcn.004140f0
lea rsp, [rbp + 0x68]
pop rbx
pop rbp
ret
Function at 0x502040
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rbx
sub rsp, 0xd8
mov rbp, rsp
mov qword [rbp + 0x48], rcx
mov qword [rbp + 0x40], rdx
mov qword [rbp + 0x38], r8
mov qword [rbp + 0x28], r9
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00430c10]
call fcn.00412df0
nop
xor rax, rax
mov byte [rbp + 0x37], al
mov rax, qword [rbp + 0x110]
mov qword [rax], 0
mov rax, qword [rbp + 0x120]
mov qword [rax], 0
mov rax, qword [rbp + 0x118]
mov dword [rax], 0
mov rax, qword [rbp + 0x128]
mov qword [rax], 0
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x48]
call fcn.00439680
cmp byte [rbp + 0x58], 0
je 0x50225d
mov rcx, qword [rbp + 0x98]
call fcn.00413b80
xor rcx, rcx
mov edx, eax
mov eax, ecx
cmp eax, edx
jg 0x50225c
add edx, 1
mov rcx, qword [rbp + 0x98]
movsxd r8, eax
add r8, r8
add r8, r8
add r8, r8
lea rbx, [rcx + r8*8]
mov rcx, qword [rbp + 0x40]
cmp qword [rbx + 0x18], rcx
jne 0x502251
mov rcx, qword [rbp + 0x98]
movsxd rdx, eax
add rdx, rdx
add rdx, rdx
add rdx, rdx
mov rcx, qword [rcx + rdx*8 + 8]
cmp byte [rcx], 0xe8
jne 0x5021ab
mov rcx, qword [rbx + 0x28]
mov edx, 4
mov r8d, 0x40
lea r9, [rbp + 0x54]
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x50225c
mov rax, qword [rbp + 0x110]
mov rcx, qword [rbx + 0x28]
mov qword [rax], rcx
mov rax, qword [rbp + 0x118]
mov rcx, qword [rbp + 0x110]
mov rcx, qword [rcx]
mov ecx, dword [rcx]
mov dword [rax], ecx
mov rax, qword [rbx + 0x28]
mov rcx, qword [rbx + 0x10]
neg rcx
mov rdx, qword [rbp + 0x38]
lea rcx, [rdx + rcx]
mov dword [rax], ecx
mov rcx, qword [rbx + 0x28]
mov edx, 4
mov r8d, dword [rbp + 0x54]
lea r9, [rbp + 0x54]
call sub.kernel32.dll_VirtualProtect
mov rax, qword [rbx + 0x18]
mov rcx, qword [rbp + 0x28]
mov qword [rcx], rax
mov al, 1
mov byte [rbp + 0x37], al
jmp 0x50225c
mov rcx, qword [rbp + 0x98]
movsxd rax, eax
add rax, rax
add rax, rax
add rax, rax
mov rax, qword [rcx + rax*8 + 8]
cmp word [rax], 0x15ff
jne 0x50225c
mov rax, qword [rbx + 0x30]
mov rcx, qword [rax]
mov edx, 8
mov r8d, 0x40
lea r9, [rbp + 0x54]
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x50225c
mov rax, qword [rbp + 0x120]
mov rcx, qword [rbx + 0x30]
mov rcx, qword [rcx]
mov qword [rax], rcx
mov rax, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
mov rcx, qword [rcx]
mov rcx, qword [rcx]
mov qword [rax], rcx
mov rax, qword [rbx + 0x30]
mov rax, qword [rax]
mov rcx, qword [rbp + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x30]
mov rcx, qword [rax]
mov edx, 8
mov r8d, dword [rbp + 0x54]
lea r9, [rbp + 0x54]
call sub.kernel32.dll_VirtualProtect
mov rax, qword [rbx + 0x18]
mov rcx, qword [rbp + 0x28]
mov qword [rcx], rax
mov al, 1
mov byte [rbp + 0x37], al
jmp 0x50225c
add eax, 1
cmp eax, edx
jne 0x5020df
nop
nop
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00430c10]
call fcn.00412f90
movzx rax, byte [rbp + 0x37]
lea rsp, [rbp + 0xd8]
pop rbx
pop rbp
ret
Function at 0x5ed090
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbp, rsp
mov rsi, rcx
lea rdi, [rbp + 0x20]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
cmp qword [0x00b7b960], 0
jne 0x5ed145
xor rcx, rcx
mov edx, 0x1000
mov r8d, 0x1000
mov r9d, 0x40
call sub.kernel32.dll_VirtualAlloc
mov rbx, rax
mov rax, qword [0x00b7b958]
mov qword [rbx], rax
lea rcx, [0x00b0aee0]
lea rdx, [rbx + 8]
mov r8d, 8
call fcn.00408e20
lea rax, [0x005ed050]
mov qword [rbx + 0x10], rax
lea rsi, [rbx + 0x18]
mov byte [rsi], 0xe8
mov rcx, rsi
lea rdx, [rbx + 8]
call fcn.005ed080
mov dword [rsi + 1], eax
mov rax, qword [0x00b7b960]
mov qword [rsi + 5], rax
mov qword [0x00b7b960], rsi
add rsi, 0x15
mov rax, rbx
neg rax
lea rax, [rsi + rax]
cmp rax, 0xfed
jl 0x5ed103
mov qword [0x00b7b958], rbx
mov rax, qword [0x00b7b960]
mov rsi, qword [0x00b7b960]
mov rcx, qword [rsi + 5]
mov qword [0x00b7b960], rcx
lea rdi, [rsi + 5]
lea rsi, [rbp + 0x20]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
lea rsp, [rbp + 0x38]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x65ce00
Capabilities:
Encode data using xor

Disassembly:
mov r8, rcx
xor rax, rax
xor rcx, rcx
sub edx, 1
cmp ecx, edx
jg 0x65ce42
add edx, 1
mov r9d, eax
and r9w, 0xf800
movzx r9d, r9w
shr r9d, 0xb
shl eax, 5
or r9w, ax
mov eax, r9d
movzx r9w, byte [r8]
xor ax, r9w
add r8, 1
add ecx, 1
cmp ecx, edx
jne 0x65ce13
nop
ret
Function at 0x6a8060
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x168
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
call sub.user32.dll_GetMessagePos
mov ecx, eax
call fcn.0041b900
mov dword [rbp + 0x3c], eax
movsx rax, word [rbp + 0x3c]
mov dword [rbp + 0x34], eax
movsx rax, word [rbp + 0x3e]
mov dword [rbp + 0x38], eax
mov rcx, rbx
mov rdx, qword [rbp + 0x34]
call fcn.0069e5b0
mov qword [rbp + 0x158], rax
test rdi, rdi
jne 0x6a80cb
mov rcx, rbx
mov rdx, qword [rbp + 0x158]
xor r8, r8
xor r9, r9
mov byte [rsp + 0x20], 0
call fcn.006a7e80
mov rdi, rax
test rdi, rdi
je 0x6a81ba
cmp rdi, rbx
je 0x6a80f9
mov eax, dword [rbp + 0x158]
sub eax, dword [rdi + 0x80]
mov dword [rbp + 0x40], eax
mov eax, dword [rbp + 0x15c]
sub eax, dword [rdi + 0x84]
mov dword [rbp + 0x44], eax
jmp 0x6a8104
mov rax, qword [rbp + 0x158]
mov qword [rbp + 0x40], rax
movzx eax, word [rsi + 0x10]
mov dword [rbp + 0x48], eax
mov rax, qword [rsi + 8]
mov qword [rbp + 0x50], rax
movzx rax, word [rsi + 0x12]
cmp rax, 0x201
jge 0x6a8144
sub rax, 0xa1
cmp rax, 2
jb 0x6a8167
sub rax, 3
cmp rax, 2
jb 0x6a8173
sub rax, 3
cmp rax, 2
jae 0x6a8179
jmp 0x6a816d
sub rax, 0x201
cmp rax, 2
jb 0x6a8167
sub rax, 3
cmp rax, 2
jb 0x6a8173
sub rax, 3
cmp rax, 2
jae 0x6a8179
jmp 0x6a816d
mov byte [rbp + 0x4c], 0
jmp 0x6a817d
mov byte [rbp + 0x4c], 2
jmp 0x6a817d
mov byte [rbp + 0x4c], 1
jmp 0x6a817d
mov byte [rbp + 0x4c], 0
lea rcx, [rbp + 0x58]
call sub.user32.dll_GetKeyboardState
lea rcx, [rbp + 0x58]
call fcn.0077f1b0
mov ebx, eax
call fcn.00699400
or bx, ax
mov word [rbp + 0x4d], bx
mov rcx, rdi
mov edx, 0xb04b
xor r8, r8
lea r9, [rbp + 0x40]
call fcn.006a0ea0
mov qword [rsi + 0x18], rax
mov al, 1
jmp 0x6a81bd
xor rax, rax
lea rsp, [rbp + 0x168]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x77f0e0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
movzx rbx, word [0x0077f148]
mov eax, ecx
test ax, 4
je 0x77f0fa
or bx, 1
mov eax, ecx
test ax, 8
je 0x77f107
or bx, 4
mov eax, ecx
test ax, 1
je 0x77f114
or bx, 8
mov eax, ecx
test ax, 2
je 0x77f121
or bx, 0x10
test cx, 0x10
je 0x77f12c
or bx, 0x20
mov ecx, 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x77f140
or bx, 2
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x78d880
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push rbp
sub rsp, 0x510
mov rbp, rsp
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x58], rbp
mov qword [rbp + 0x520], rcx
nop
mov rax, qword [rbp + 0x520]
cmp qword [rax + 0x70], 0
jne 0x78da99
mov rcx, qword [0x0059bc58]
mov dl, 1
call fcn.005cd360
mov rcx, qword [rbp + 0x520]
mov qword [rcx + 0x70], rax
mov rax, qword [rbp + 0x520]
lea rcx, [rax + 0x78]
call fcn.00410360
mov ecx, 0x40
lea rdx, [rbp + 0x2f0]
call sub.user32.dll_GetKeyboardLayoutList
mov dword [rbp + 0x4fc], eax
xor rax, rax
mov ecx, dword [rbp + 0x4fc]
sub ecx, 1
mov dword [rbp + 0x3c], ecx
mov dword [rbp + 0x4f8], eax
mov eax, dword [rbp + 0x3c]
cmp dword [rbp + 0x4f8], eax
jg 0x78da77
mov eax, dword [rbp + 0x3c]
add eax, 1
mov dword [rbp + 0x3c], eax
movsxd rax, dword [rbp + 0x4f8]
mov rcx, qword [rbp + rax*8 + 0x2f0]
call fcn.006b7190
test al, al
je 0x78da61
movsxd rax, dword [rbp + 0x4f8]
lea rax, [rbp + rax*8 + 0x2f0]
mov qword [rbp + 0x48], rax
mov byte [rbp + 0x50], 0x10
lea rcx, [rbp + 0x70]
lea rdx, [0x0078db24]
lea r8, [rbp + 0x48]
xor r9, r9
call fcn.00480150
mov rcx, 0xffffffff80000002
mov rdx, rax
xor r8, r8
mov r9d, 0x20019
lea rax, [rbp + 0x508]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x78da61
nop
mov dword [rbp + 0x4f4], 0x200
mov rcx, qword [rbp + 0x508]
lea rdx, [0x0078db92]
xor r8, r8
xor r9, r9
lea rax, [rbp + 0xf0]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x4f4]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x78da54
lea rcx, [rbp + 0x40]
lea rdx, [rbp + 0xf0]
mov r8d, pe_nt_image_headers64
call fcn.00412190
mov rax, qword [rbp + 0x520]
mov rax, qword [rax + 0x70]
mov rcx, rax
mov rdx, qword [rbp + 0x40]
movsxd r8, dword [rbp + 0x4f8]
mov r8, qword [rbp + r8*8 + 0x2f0]
mov rax, qword [rax]
call qword [rax + 0x80]
movsxd rax, dword [rbp + 0x4f8]
mov rcx, qword [rbp + 0x520]
mov rax, qword [rbp + rax*8 + 0x2f0]
cmp rax, qword [rcx + 0x80]
jne 0x78da54
mov rax, qword [rbp + 0x520]
lea rcx, [rax + 0x78]
lea rdx, [rbp + 0xf0]
mov r8d, pe_nt_image_headers64
call fcn.00412190
nop
mov rcx, qword [rbp + 0x508]
call sub.advapi32.dll_RegCloseKey
add dword [rbp + 0x4f8], 1
mov eax, dword [rbp + 0x3c]
cmp dword [rbp + 0x4f8], eax
jne 0x78d91f
nop
mov rax, qword [rbp + 0x520]
mov rax, qword [rax + 0x70]
mov byte [rax + 0x61], 0
mov rax, qword [rbp + 0x520]
mov rcx, qword [rax + 0x70]
mov dl, 1
call fcn.005cd210
mov rax, qword [rbp + 0x520]
mov rax, qword [rax + 0x70]
mov qword [rbp + 0x500], rax
nop
lea rcx, [rbp + 0x40]
call fcn.00410360
mov rax, qword [rbp + 0x500]
lea rsp, [rbp + 0x510]
pop rbp
ret
Function at 0x78ee10
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
mov rax, qword [0x00b7bf20]
cmp byte [rax + 0x131], 0
jne 0x78eeb3
cmp qword [0x00b7bf58], 0
jne 0x78ee56
call sub.kernel32.dll_GetCurrentThreadId
mov ecx, 3
mov rdx, qword [0x00b2ecd8]
xor r8, r8
mov r9d, eax
call sub.user32.dll_SetWindowsHookExW
mov qword [0x00b7bf58], rax
cmp qword [0x00b7bf50], 0
jne 0x78ee78
xor rcx, rcx
xor rdx, rdx
xor r8, r8
xor r9, r9
call sub.kernel32.dll_CreateEventW
mov qword [0x00b7bf50], rax
cmp qword [0x00b7bf60], 0
jne 0x78eeb3
xor rcx, rcx
mov edx, 0x3e8
mov r8, qword [0x00b2ecd0]
xor r9, r9
mov dword [rsp + 0x20], 0
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
call sub.kernel32.dll_CreateThread
mov qword [0x00b7bf60], rax
add rsp, 0x48
ret

Function at 0x78ff80
Capabilities:
Enumerate gui resources

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x50
mov rbp, rsp
mov rbx, rcx
cmp qword [rbx + 0x2a8], 0
je 0x79006b
cmp dword [rbx + 0x100], 0
jne 0x790061
mov rax, qword [rbx + 0x2a8]
mov qword [rbp + 0x40], rax
mov byte [rbp + 0x48], dl
lea rcx, [0x0078fe60]
lea rdx, [rbp + 0x40]
call sub.user32.dll_EnumWindows
mov rax, qword [rbx + 0xf8]
cmp dword [rax + 0x10], 0
je 0x790061
mov rcx, qword [rbp + 0x40]
mov edx, 3
call sub.user32.dll_GetWindow
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x40]
mov ecx, 0xffffffec
mov edx, ecx
mov rcx, rax
call sub.user32.dll_GetWindowLongPtrW
test rax, 8
je 0x79000f
mov qword [rbp + 0x40], 0xfffffffffffffffe
mov rax, qword [rbx + 0xf8]
mov esi, dword [rax + 0x10]
sub esi, 1
test esi, esi
jl 0x790060
mov rcx, qword [rbx + 0xf8]
mov edx, esi
call fcn.005c60b0
mov rcx, rax
mov rdx, qword [rbp + 0x40]
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x30], 0x213
call sub.user32.dll_SetWindowPos
sub esi, 1
cmp esi, 0xffffffff
jne 0x790020
nop
lea rax, [rbx + 0x100]
add dword [rax], 1
lea rsp, [rbp + 0x50]
pop rbx
pop rsi
pop rbp
ret
Function at 0x790380
Capabilities:
Enumerate gui resources

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov esi, edx
mov rax, qword [0x00b7bf20]
cmp qword [rax + 0x2a8], 0
je 0x790546
test sil, sil
jne 0x790468
cmp dword [rbx + 0x110], 0
jne 0x790459
mov rcx, rbx
call fcn.00794990
lea rcx, [0x00790250]
mov rdx, rax
call sub.user32.dll_EnumWindows
cmp qword [rbx + 0x88], 0
je 0x79041b
mov rax, qword [0x00b7bf20]
cmp byte [rax + 0x16b], 0
je 0x79041b
mov rcx, qword [rbx + 0x178]
call fcn.00413b80
mov rdi, rax
test edi, edi
jl 0x79041a
mov rax, qword [rbx + 0x178]
movsxd rcx, edi
mov rcx, qword [rax + rcx*8]
xor rdx, rdx
call sub.user32.dll_ShowWindow
sub edi, 1
cmp edi, 0xffffffff
jne 0x7903fc
nop
mov rax, qword [rbx + 0x108]
mov edi, dword [rax + 0x10]
sub edi, 1
test edi, edi
jl 0x790458
mov rcx, qword [rbx + 0x108]
mov edx, edi
call fcn.005c60b0
mov rcx, rax
test sil, sil
setne al
movzx rax, al
neg eax
mov edx, eax
call sub.user32.dll_ShowOwnedPopups
sub edi, 1
cmp edi, 0xffffffff
jne 0x79042c
nop
lea rax, [rbx + 0x110]
add dword [rax], 1
jmp 0x790546
cmp dword [rbx + 0x110], 0
jle 0x790546
lea rax, [rbx + 0x110]
sub dword [rax], 1
cmp dword [rbx + 0x110], 0
jne 0x790546
cmp qword [rbx + 0x88], 0
je 0x7904db
mov rax, qword [0x00b7bf20]
cmp byte [rax + 0x16b], 0
je 0x7904db
mov rcx, qword [rbx + 0x178]
call fcn.00413b80
mov rdi, rax
test edi, edi
jl 0x7904da
mov rax, qword [rbx + 0x178]
movsxd rcx, edi
mov rcx, qword [rax + rcx*8]
mov edx, 5
call sub.user32.dll_ShowWindow
sub edi, 1
cmp edi, 0xffffffff
jne 0x7904b9
nop
mov rax, qword [rbx + 0x108]
mov edi, dword [rax + 0x10]
sub edi, 1
test edi, edi
jl 0x790518
mov rcx, qword [rbx + 0x108]
mov edx, edi
call fcn.005c60b0
mov rcx, rax
test sil, sil
setne al
movzx rax, al
neg eax
mov edx, eax
call sub.user32.dll_ShowOwnedPopups
sub edi, 1
cmp edi, 0xffffffff
jne 0x7904ec
nop
mov rax, qword [rbx + 0x108]
mov rcx, rax
mov rsi, qword [rax]
call qword [rsi + 0x10]
lea rcx, [rbx + 0x178]
mov rdx, qword [0x0077a388]
mov r8d, 1
xor r9, r9
call fcn.00413f10
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret