joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015570
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rdx, rcx
lea rcx, [0x1400599f0]
xor esi, esi
mov r8b, 1
mov dword [rsp + 0x48], esi
call fcn.14000cff0
mov rdi, rax
test rax, rax
je 0x1400155d4
lea rax, [rsp + 0x48]
lea r9d, [rsi + 4]
lea rdx, str.dailyPages
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.dailyPages
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call fcn.140014a80
lea rcx, [0x1400599f0]
mov r8b, 1
mov rdx, rbx
mov dword [rsp + 0x48], esi
call fcn.14000cff0
mov rdi, rax
test rax, rax
je 0x14001563b
lea rax, [rsp + 0x48]
lea rdx, str.weeklyPages
mov r9d, 4
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.weeklyPages
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call fcn.140014a80
lea rcx, [0x1400599f0]
mov r8b, 1
mov rdx, rbx
mov dword [rsp + 0x48], esi
call fcn.14000cff0
mov rdi, rax
test rax, rax
je 0x1400156a2
lea rax, [rsp + 0x48]
lea rdx, str.monthlyPages
mov r9d, 4
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.monthlyPages
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call fcn.140014a80
lea rcx, [0x1400599f0]
mov r8b, 1
mov rdx, rbx
mov dword [rsp + 0x48], esi
call fcn.14000cff0
mov rdi, rax
test rax, rax
je 0x140015709
lea rax, [rsp + 0x48]
lea rdx, str.yearlyPages
mov r9d, 4
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.yearlyPages
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call fcn.140014a80
lea rcx, [0x1400599f0]
mov r8b, 1
mov rdx, rbx
call fcn.14000cff0
lea rsi, [0x14004516c]
mov rdi, rax
test rax, rax
je 0x140015777
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdx, str.prevMonthPages
mov r9d, 1
lea eax, [rax + rax + 2]
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.prevMonthPages
xor r9d, r9d
mov r8, rsi
mov rcx, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp fcn.140014990
Function at 0x1400182c0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rsi, rdx
mov rdi, rcx
mov rdx, rcx
mov rbx, r8
lea rcx, [0x1400599f0]
mov r8b, 1
call fcn.14000cff0
mov rbp, rax
test rax, rax
je 0x14001832b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r9d, 1
xor r8d, r8d
lea eax, [rax + rax + 2]
mov rdx, rsi
mov rcx, rbp
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r9d, r9d
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp fcn.140014990
Function at 0x140020800
Capabilities:
Create process on windows
Create thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x80], 0
mov ebx, edx
mov rdi, rcx
jne 0x140020826
xor eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
add rcx, 0x50
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, str.Winamp_v1.x
xor edx, edx
or esi, 0xffffffff
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x14002085a
mov qword [rdi + 0x48], rax
jmp 0x1400208f6
mov rcx, rdi
call fcn.140021490
test eax, eax
je 0x1400208f6
xor esi, esi
test ebx, ebx
je 0x1400208f6
mov r8, qword [rdi + 0x98]
lea rax, [0x1400458b8]
lea rdx, str.open
xor r9d, r9d
xor ecx, ecx
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
lea rcx, str.Winamp_v1.x
xor edx, edx
call qword [sym.imp.USER32.dll_FindWindowW]
mov qword [rdi + 0x48], rax
test rax, rax
jne 0x1400208f6
lea rax, [rsp + 0x40]
lea r8, [0x140020770]
mov r9, rdi
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], esi
mov dword [rdi + 0x78], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
or edx, 0xffffffff
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 0x48]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140020931
mov rcx, qword [rdi + 0x48]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x400
mov esi, 1
call qword [sym.imp.USER32.dll_SendMessageW]
cmp eax, dword [rdi + 0xa0]
jae 0x140020931
mov qword [rdi + 0x48], 0
or esi, 0xffffffff
lea rcx, [rdi + 0x50]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x58]
mov eax, esi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140021490
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x140053100]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea rbx, [rcx + 0x98]
mov rax, qword [rbx]
cmp dword [rax - 0x10], 0
jne 0x140021584
xor eax, eax
lea r8, [rsp + 0x38]
lea rdx, str.SoftwareWinamp
mov rcx, 0xffffffff80000001
mov word [rsp + 0x40], ax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x140021522
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea rdx, [0x140044804]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x30], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x140021584
lea rdx, str.winamp.exe
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rsp + 0x40]
call qword [0x140040530]
test eax, eax
je 0x140021584
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x278], rdi
xor eax, eax
lea rdi, [rsp + 0x40]
lea rdx, [rsp + 0x40]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rcx, rbx
call fcn.14000a480
mov rdi, qword [rsp + 0x278]
mov rcx, qword [rbx]
call qword [0x140040530]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140025aa0
add rsp, 0x260
pop rbx
ret
Function at 0x140022720
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], r9
push rdi
push r12
push r14
sub rsp, 0x30
xor eax, eax
mov r12, rcx
mov rdi, rdx
or rcx, 0xffffffffffffffff
mov r10, rdx
xor r14d, r14d
repne scasb al, byte [rdi]
mov r11, r8
not rcx
lea rax, [rcx - 1]
cdq
and edx, 7
add eax, edx
sar eax, 3
lea eax, [rax*8 + 9]
cmp dword [r9], eax
jge 0x14002276e
or eax, 0xffffffff
add rsp, 0x30
pop r14
pop r12
pop rdi
ret
movzx eax, byte [r10]
test al, al
je 0x140022935
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r15
inc r10
mov byte [rsp + 0xb], al
movzx eax, byte [r10]
test al, al
je 0x1400227ab
mov byte [rsp + 0xa], al
inc r10
jmp 0x1400227b0
mov byte [rsp + 0xa], 0
movzx eax, byte [r10]
test al, al
je 0x1400227c1
mov byte [rsp + 9], al
inc r10
jmp 0x1400227c6
mov byte [rsp + 9], 0
movzx eax, byte [r10]
test al, al
je 0x1400227d7
mov byte [rsp + 8], al
inc r10
jmp 0x1400227dc
mov byte [rsp + 8], 0
movzx eax, byte [r10]
test al, al
je 0x1400227ed
mov byte [rsp + 0x13], al
inc r10
jmp 0x1400227f2
mov byte [rsp + 0x13], 0
movzx eax, byte [r10]
test al, al
je 0x140022803
mov byte [rsp + 0x12], al
inc r10
jmp 0x140022808
mov byte [rsp + 0x12], 0
movzx eax, byte [r10]
test al, al
je 0x140022819
mov byte [rsp + 0x11], al
inc r10
jmp 0x14002281e
mov byte [rsp + 0x11], 0
movzx eax, byte [r10]
test al, al
je 0x14002282f
mov byte [rsp + 0x10], al
inc r10
jmp 0x140022834
mov byte [rsp + 0x10], 0
mov r9d, dword [rsp + 8]
mov r13d, dword [rsp + 0x10]
mov rbx, r12
mov esi, 0x10
mov r15d, 0xff
nop dword [rax]
xor r9d, dword [rbx]
add rbx, 4
mov ecx, r9d
movzx r8d, r9w
mov ebp, r9d
shr ecx, 8
and r8w, r15w
movzx edi, cx
shr ecx, 8
mov eax, ecx
and di, r15w
shr eax, 8
movzx edx, al
movzx eax, cx
mov r9d, dword [r12 + rdx*4 + 0x48]
movzx ecx, al
movzx eax, di
add r9d, dword [r12 + rcx*4 + 0x448]
xor r9d, dword [r12 + rax*4 + 0x848]
movzx eax, r8w
add r9d, dword [r12 + rax*4 + 0xc48]
xor r9d, r13d
dec rsi
mov r13d, ebp
jne 0x140022850
mov ecx, dword [r12 + 0x44]
mov edx, dword [r12 + 0x40]
add r11, 8
xor ecx, ebp
xor edx, r9d
add r14d, 8
mov dword [rsp], ecx
movzx eax, byte [rsp + 3]
mov dword [rsp + 4], edx
mov byte [r11 - 8], al
movzx eax, byte [rsp + 2]
mov byte [r11 - 7], al
movzx eax, byte [rsp + 1]
mov byte [r11 - 6], al
movzx eax, byte [rsp + 7]
mov byte [r11 - 5], cl
mov byte [r11 - 4], al
movzx eax, byte [rsp + 6]
mov byte [r11 - 3], al
movzx eax, byte [rsp + 5]
mov byte [r11 - 2], al
mov byte [r11 - 1], dl
movzx eax, byte [r10]
test al, al
jne 0x140022793
mov r9, qword [rsp + 0x68]
mov r15, qword [rsp + 0x20]
mov r13, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov byte [r11], 0
mov dword [r9], r14d
xor eax, eax
add rsp, 0x30
pop r14
pop r12
pop rdi
ret
Function at 0x140022950
Capabilities:
Encode data using base64

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
movsxd rdi, edx
mov rsi, rcx
lea eax, [rdi + rdi]
movsxd rcx, eax
call fcn.140026094
mov rbx, rax
test rax, rax
je 0x140022ae4
xor r9d, r9d
mov byte [rax], r9b
test edi, edi
jle 0x140022ae4
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r13
mov r10d, r9d
lea r13, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov qword [rsp + 0x40], rbp
mov r11d, 1
movzx edx, byte [r10 + rsi]
cmp r11d, edi
jl 0x1400229b1
xor r8b, r8b
jmp 0x1400229b7
movzx r8d, byte [r10 + rsi + 1]
lea eax, [r11 + 1]
cmp eax, edi
jl 0x1400229c4
xor bpl, bpl
jmp 0x1400229ca
movzx ebp, byte [r10 + rsi + 2]
movsxd rcx, r9d
inc r9d
cmp eax, edi
movzx eax, dl
movzx edx, dl
jge 0x140022a3d
shr rax, 2
and edx, 3
movzx r8d, r8b
movzx eax, byte [rax + r13]
shl rdx, 4
mov byte [rcx + rbx], al
mov ecx, r8d
and r8d, 0xf
shr ecx, 4
add rdx, rcx
movsxd rcx, r9d
inc r9d
movzx eax, byte [rdx + r13]
mov byte [rcx + rbx], al
movsxd rcx, r9d
inc r9d
movzx eax, bpl
shr rax, 6
lea rdx, [rax + r8*4]
movzx eax, byte [rdx + r13]
mov byte [rcx + rbx], al
movzx eax, bpl
movsxd rcx, r9d
and eax, 0x3f
movzx eax, byte [rax + r13]
mov byte [rcx + rbx], al
jmp 0x140022ab7
shr rax, 2
and edx, 3
movzx eax, byte [rax + r13]
shl rdx, 4
mov byte [rcx + rbx], al
cmp r11d, edi
jge 0x140022a8d
movzx r8d, r8b
mov ecx, r8d
and r8d, 0xf
shr ecx, 4
add rdx, rcx
movsxd rcx, r9d
inc r9d
movzx eax, byte [rdx + r13]
mov byte [rcx + rbx], al
movzx eax, bpl
movsxd rcx, r9d
shr rax, 6
lea rdx, [rax + r8*4]
movzx eax, byte [rdx + r13]
mov byte [rcx + rbx], al
jmp 0x140022aad
movsxd rcx, r9d
movzx eax, r8b
shr rax, 4
add rdx, rax
inc r9d
movzx eax, byte [rdx + r13]
mov byte [rcx + rbx], al
movsxd rax, r9d
mov byte [rax + rbx], 0x3d
inc r9d
movsxd rax, r9d
mov byte [rax + rbx], 0x3d
add r10, 3
inc r9d
add r11d, 3
cmp r10, rdi
jl 0x1400229a2
mov r13, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
movsxd rax, r9d
mov byte [rax + rbx], 0
mov rax, rbx
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
Function at 0x14002512c
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x1400573e0]
test rcx, rcx
jne 0x140025083
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 0x60]
mov rcx, qword [rbx + 0x40]
test rcx, rcx
jne 0x14002507c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
lea r8d, [rdx + 0x10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x1400250ae
and qword [rax], 0
and qword [rax + 8], 0
xor eax, eax
lock cmpxchg qword [rbx + 0x40], rdi
je 0x140025078
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbx + 0x40]
mov qword [0x1400573e0], rcx
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
test rax, rax
jne 0x140025121
mov edx, 0x1000
lea r9d, [rax + 0x40]
xor ecx, ecx
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x1400250d1
xor edx, edx
lea r9, [rsp + 0x30]
mov ecx, 0xc0000017
lea r8d, [rdx + 1]
mov qword [rsp + 0x30], 0x20
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [rax]
mov rcx, qword [0x1400573e0]
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov rdi, rax
test rax, rax
je 0x1400250fe
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rdi
jmp 0x140025121
lea rdi, [rbx + 0xfe0]
mov rcx, qword [0x1400573e0]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add rbx, 0x20
cmp rbx, rdi
jb 0x140025105
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
jmp 0x140025008
Function at 0x140029eab
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140053100]
jne 0x140025aba
rol rcx, 0x10
test cx, 0xffff
jne 0x140025ab6
repz ret
ror rcx, 0x10
jmp 0x140029e04
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400575e0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1400576d8]
mov qword [rsp + 0x58], rax
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 0x140029e89
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, [0x1400575e0]
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 0x140029eab
mov rax, qword [rsp + 0x88]
mov qword [0x1400576d8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140057678], rax
mov rax, qword [0x1400576d8]
mov qword [0x140057550], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140057660], rax
mov dword [0x140057540], 0xc0000409
mov dword [0x140057544], 1
mov rax, qword [0x140053100]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140053108]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400575d8], eax
mov ecx, 1
call fcn.140033b4c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140040b00]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400575d8], 0
jne 0x140029f32
mov ecx, 1
call fcn.140033b4c
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 0x14002c640
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14002c4b0
Function at 0x140035de4
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x140053100]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14002bb70
xor ebx, ebx
cmp qword [0x1400586f0], rbx
mov rdi, rax
jne 0x140035ef7
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140035fce
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140035fce
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1400586f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1400586f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x140058700], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140058710], rax
test rax, rax
je 0x140035eee
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140058708], rax
jmp 0x140035efe
mov rax, qword [0x140058708]
jmp 0x140035f05
mov rax, qword [0x140058708]
mov r11, qword [0x140058710]
cmp rax, rdi
je 0x140035f6c
cmp r11, rdi
je 0x140035f6c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140058710]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140035f6c
test rax, rax
je 0x140035f6c
call rsi
test rax, rax
je 0x140035f66
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140035f66
test byte [rsp + 0x40], 1
jne 0x140035f6c
bts ebp, 0x15
jmp 0x140035fac
mov rcx, qword [0x1400586f8]
cmp rcx, rdi
je 0x140035fac
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140035fac
call rax
mov rbx, rax
test rax, rax
je 0x140035fac
mov rcx, qword [0x140058700]
cmp rcx, rdi
je 0x140035fac
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140035fac
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400586f0]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140035fce
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140035fd0
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140025aa0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400038a0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, 0xffff
movzx edi, dx
mov rbx, rcx
cmp si, dx
jne 0x1400038d1
xor eax, eax
jmp 0x140003a1b
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x14000390e
mov r9, qword [rcx + 0x58]
movsxd r10, dword [r9]
lea rdx, [r8 + r10*2]
cmp r8, rdx
jae 0x14000390e
lea ecx, [r10 - 1]
movzx eax, di
mov dword [r9], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 2]
mov qword [rdx], rcx
mov word [r8], di
jmp 0x140003a1b
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xb0], rbp
je 0x140003a10
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140003955
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140003963
movzx ecx, di
jmp 0x1400039b7
lea rax, [rsp + 0x40]
mov word [rsp + 0x50], di
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x52]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400039d0
sub eax, 1
je 0x1400039d0
cmp eax, 2
jne 0x140003a10
movzx ecx, word [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
cmp ax, si
cmove di, si
movzx eax, di
jmp 0x140003a13
mov rbp, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rbp, rax
je 0x1400039fe
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbp
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbp, rax
jne 0x140003a10
lea rax, [rsp + 0x50]
mov byte [rbx + 0x72], 1
cmp qword [rsp + 0x48], rax
cmovne si, di
movzx eax, si
mov rbp, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140004ca0
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret
Function at 0x140003e60
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140003f35
cmp byte [rcx + 0x72], 0
je 0x140003f35
mov rax, qword [rcx]
mov qword [rsp + 0x78], rdi
mov edi, 0xffff
mov edx, edi
call qword [rax + 0x18]
cmp di, ax
je 0x140003f31
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140003ef6
sub eax, 1
je 0x140003efa
cmp eax, 2
jne 0x140003f31
mov byte [rbx + 0x72], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004ca0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x72], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140003f28
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140003f31
cmp byte [rbx + 0x72], 0
sete al
jmp 0x140003ede
xor al, al
jmp 0x140003ede
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004ca0
add rsp, 0x60
pop rbx
ret

Function at 0x14000581c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140005866
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140005866
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005866
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140005866
cmp dword [rcx + 0x84], 0xe
jbe 0x140005866
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140005868
xor al, al
add rsp, 0x28
ret
Function at 0x1800015e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180001613
xor eax, eax
jmp 0x1800016dc
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x180001640
xor eax, eax
jmp 0x1800016dc
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x20], 0
jmp 0x18000166c
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x20], eax
jge 0x1800016da
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rdx, rax
mov rcx, qword [rsp + 0x60]
call fcn.18000e3e0
test eax, eax
jne 0x1800016d8
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x30]
mov eax, dword [rdx + rax + 8]
mov dword [rcx], eax
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0xc]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
jmp 0x1800016dc
jmp 0x180001662
xor eax, eax
add rsp, 0x48
ret