joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800c8230
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x5f0
mov qword [rsp + 0x5b8], 0xfffffffffffffffe
mov rax, qword [0x180284030]
xor rax, rsp
mov qword [rsp + 0x5e0], rax
mov dword [rsp + 0x5b0], 0
xor eax, eax
mov word [rsp + 0x40], ax
lea rax, [rsp + 0x42]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
mov word [rsp + 0x360], ax
lea rax, [rsp + 0x362]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov r8d, 0x104
lea rdx, [rsp + 0x360]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov dword [rsp + 0x28], 0
lea rax, [rsp + 0x2c]
mov rdi, rax
xor eax, eax
mov ecx, SafeArrayGetDim
rep stosb byte [rdi], al
lea rcx, [rsp + 0x28]
call fcn.18003b5c0
mov byte [rsp + 0x250], 0
lea rax, [rsp + 0x251]
mov rdi, rax
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
lea rdx, [rsp + 0x250]
lea rcx, [rsp + 0x28]
call fcn.18003c760
lea rdx, [rsp + 0x250]
lea rcx, [rsp + 0x570]
call fcn.1800333e0
mov qword [rsp + 0x5c0], rax
mov rax, qword [rsp + 0x5c0]
mov qword [rsp + 0x5c8], rax
lea rdx, [rsp + 0x360]
lea rcx, [rsp + 0x590]
call fcn.1800334a0
mov qword [rsp + 0x5d0], rax
mov rax, qword [rsp + 0x5d0]
mov qword [rsp + 0x5d8], rax
mov r8, qword [rsp + 0x5c8]
mov rdx, qword [rsp + 0x5d8]
mov rcx, qword [rsp + 0x608]
call fcn.180033cc0
mov eax, dword [rsp + 0x5b0]
or eax, 1
mov dword [rsp + 0x5b0], eax
lea rcx, [rsp + 0x590]
call fcn.18000165e
nop
lea rcx, [rsp + 0x570]
call fcn.18000165e
mov rax, qword [rsp + 0x608]
mov rcx, qword [rsp + 0x5e0]
xor rcx, rsp
call fcn.1800d65d0
add rsp, 0x5f0
pop rdi
ret
Function at 0x1800cb4d0
Capabilities:
Copy file
Create directory
Get session user name
Set file attributes

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x7b0
mov qword [rsp + 0x760], 0xfffffffffffffffe
mov rax, qword [0x180284030]
xor rax, rsp
mov qword [rsp + 0x7a0], rax
mov dword [rsp + 0x60], 0
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x7c0]
call fcn.1800cb850
nop
lea rdx, str._sources
lea rcx, [rsp + 0x6b8]
call fcn.1800334a0
nop
lea rdx, [rsp + 0x6d8]
mov rcx, qword [rsp + 0x7c0]
call fcn.1800cb8a0
mov qword [rsp + 0x768], rax
mov rax, qword [rsp + 0x768]
mov qword [rsp + 0x770], rax
lea r8, [rsp + 0x6b8]
mov rdx, qword [rsp + 0x770]
lea rcx, [rsp + 0x20]
call fcn.180033cc0
nop
lea rcx, [rsp + 0x6d8]
call fcn.18000165e
nop
lea rcx, [rsp + 0x6b8]
call fcn.18000165e
lea rcx, [rsp + 0x20]
call fcn.18000122b
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1800cb5c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1800cb5c1
mov dword [rsp + 0x60], 0xffffefdd
jmp 0x1800cb78d
lea rdx, str._sources_boot.wim
lea rcx, [rsp + 0x6f8]
call fcn.1800334a0
nop
lea rdx, [rsp + 0x718]
mov rcx, qword [rsp + 0x7c0]
call fcn.1800cb8a0
mov qword [rsp + 0x778], rax
mov rax, qword [rsp + 0x778]
mov qword [rsp + 0x780], rax
lea r8, [rsp + 0x6f8]
mov rdx, qword [rsp + 0x780]
lea rcx, [rsp + 0x738]
call fcn.180033cc0
mov qword [rsp + 0x788], rax
mov rax, qword [rsp + 0x788]
mov qword [rsp + 0x790], rax
mov rdx, qword [rsp + 0x790]
lea rcx, [rsp + 0x20]
call fcn.180001d6b
nop
lea rcx, [rsp + 0x738]
call fcn.18000165e
nop
lea rcx, [rsp + 0x718]
call fcn.18000165e
nop
lea rcx, [rsp + 0x6f8]
call fcn.18000165e
mov dword [rsp + 0x6b0], 0
lea rcx, [rsp + 0x70]
call fcn.180040570
nop
xor eax, eax
mov word [rsp + 0x4a0], ax
lea rax, [rsp + 0x4a2]
mov rdi, rax
xor eax, eax
mov ecx, 0x200
rep stosb byte [rdi], al
mov dword [rsp + 0x6b0], 0x101
lea rdx, [rsp + 0x6b0]
lea rcx, [rsp + 0x4a0]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x1800cb6e6
lea r8, str.Everyone
mov edx, 0x101
lea rcx, [rsp + 0x4a0]
call fcn.1800d9840
lea rcx, [rsp + 0x40]
call fcn.18000122b
lea r9, [rsp + 0x4a0]
mov r8d, 1
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.180040620
lea rcx, [rsp + 0x70]
call fcn.180040c30
lea rcx, [rsp + 0x20]
call fcn.18000122b
mov qword [rsp + 0x798], rax
lea rcx, [rsp + 0x40]
call fcn.18000122b
xor r8d, r8d
mov rcx, qword [rsp + 0x798]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1800cb760
mov dword [rsp + 0x60], 0xffffefdc
lea rcx, [rsp + 0x70]
call fcn.1800405f0
jmp 0x1800cb78d
lea rcx, [rsp + 0x20]
call fcn.18000122b
mov edx, 0x80
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop
lea rcx, [rsp + 0x70]
call fcn.1800405f0
xor eax, eax
test eax, eax
jne 0x1800cb58e
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x758], eax
lea rcx, [rsp + 0x20]
call fcn.18000165e
nop
lea rcx, [rsp + 0x40]
call fcn.18000165e
mov eax, dword [rsp + 0x758]
mov rcx, qword [rsp + 0x7a0]
xor rcx, rsp
call fcn.1800d65d0
add rsp, 0x7b0
pop rdi
ret
Function at 0x1800ebbe7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x180284030]
jne 0x1800d65ea
rol rcx, 0x10
test cx, 0xffff
jne 0x1800d65e6
repz ret
ror rcx, 0x10
jmp 0x1800ebb40
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180286e30]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x180286f28]
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 0x1800ebbc5
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, [0x180286e30]
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 0x1800ebbe7
mov rax, qword [rsp + 0x88]
mov qword [0x180286f28], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180286ec8], rax
mov rax, qword [0x180286f28]
mov qword [0x180286da0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180286eb0], rax
mov dword [0x180286d90], 0xc0000409
mov dword [0x180286d94], 1
mov rax, qword [0x180284030]
mov qword [rsp + 0x68], rax
mov rax, qword [0x180284038]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180286e28], eax
mov ecx, 1
call fcn.180108fd0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x18022fcd0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180286e28], 0
jne 0x1800ebc6e
mov ecx, 1
call fcn.180108fd0
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 0x18012c170
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
mov eax, 0x4078
call fcn.1800d92c0
sub rsp, rax
mov rax, qword [0x180284030]
xor rax, rsp
mov qword [rsp + 0x4060], rax
lea rax, [rsp + 0x4090]
mov qword [rsp + 0x2050], rax
mov rax, qword [rsp + 0x4080]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
xor eax, eax
cmp eax, 1
je 0x18012c1f3
mov dx, 0x5c
mov rcx, qword [rsp + 0x40]
call fcn.1800d0f60
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x18012c1f3
mov rax, qword [rsp + 0x40]
add rax, 2
mov qword [rsp + 0x40], rax
xor eax, eax
cmp eax, 1
je 0x18012c259
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, qword [rsp + 0x4088]
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x4080]
mov eax, dword [rax + 8]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, str._s__d__:___X___s
mov r8d, 0xfff
mov edx, 0x1000
lea rcx, [rsp + 0x2060]
call fcn.1800d6eb0
test eax, eax
jge 0x18012c257
xor eax, eax
mov word [rsp + 0x405e], ax
jmp 0x18012c2ac
mov rax, qword [rsp + 0x4088]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x4080]
mov eax, dword [rax + 8]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, str._s__d__:__s
mov r8d, 0xfff
mov edx, 0x1000
lea rcx, [rsp + 0x2060]
call fcn.1800d6eb0
test eax, eax
jge 0x18012c2ac
xor eax, eax
mov word [rsp + 0x405e], ax
mov rax, qword [rsp + 0x2050]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x2060]
mov r8d, 0xfff
mov edx, 0x1000
lea rcx, [rsp + 0x50]
call fcn.1800db310
test eax, eax
jge 0x18012c2e4
xor eax, eax
mov word [rsp + 0x204e], ax
mov qword [rsp + 0x2050], 0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x4060]
xor rcx, rsp
call fcn.1800d65d0
add rsp, 0x4078
ret
Function at 0x18012c500
Capabilities:
Create process memory minidump

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov rcx, qword [rsp + 0xa8]
call fcn.18012cc00
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x18012c64f
cmp qword [rsp + 0x48], 0xffffffffffffffff
je 0x18012c64f
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x54], rax
mov dword [rsp + 0x5c], 0
cmp qword [rsp + 0xa0], 0
je 0x18012c5a7
lea rax, [rsp + 0x50]
mov qword [rsp + 0x78], rax
jmp 0x18012c5b0
mov qword [rsp + 0x78], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x80], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x80]
mov edx, ecx
mov rcx, rax
call sub.dbghelp.dll_MiniDumpWriteDump
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jne 0x18012c629
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x64], 0
mov rcx, qword [rsp + 0xa8]
call fcn.18012cbc0
mov eax, dword [rsp + 0x64]
jmp 0x18012c668
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x68], 1
mov rcx, qword [rsp + 0xa8]
call fcn.18012cbc0
mov eax, dword [rsp + 0x68]
jmp 0x18012c668
mov dword [rsp + 0x6c], 0
mov rcx, qword [rsp + 0xa8]
call fcn.18012cbc0
mov eax, dword [rsp + 0x6c]
add rsp, 0x98
ret
Function at 0x1400543b0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1400543bd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400543cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400543b5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x1400543e5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400543d2
sub eax, 3
jb 0x1400543ff
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140054436
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140054426
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140054424
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140054413
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140054372
jmp 0x1400543bd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1600
mov dl, 1
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140054482
cmp rsi, rcx
jae 0x14005448a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140054469
cmp al, 0x8f
ja 0x140054469
cmp byte [rsi - 2], 0xf
je 0x14005446f
sub al, 0xe8
cmp al, 1
ja 0x140054453
cmp rsi, rcx
jae 0x14005448a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140054459
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14005448a
lodsb al, byte [rsi]
jmp 0x140054469
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x52000]
mov eax, dword [rdi]
or eax, eax
je 0x1400544e7
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x59a88]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140054497
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1400544e1
mov qword [rbx], rax
add rbx, 8
jmp 0x1400544b7
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140054521
cmp al, 0xef
ja 0x140054513
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400544f3
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140054502
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x22f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140054575
sub rsp, 0xffffffffffffff80
jmp 0x140001860
Function at 0x14009e8d0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14009e8dd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14009e8ed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14009e8d5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14009e905
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14009e8f2
sub eax, 3
jb 0x14009e91f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14009e956
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14009e946
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14009e944
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14009e933
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14009e892
jmp 0x14009e8dd
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x46800
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14009e9a6
cmp rsi, rcx
jae 0x14009e9ae
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14009e98d
cmp al, 0x8f
ja 0x14009e98d
cmp byte [rsi - 2], 0xf
je 0x14009e993
sub al, 0xe8
cmp al, 1
ja 0x14009e977
cmp rsi, rcx
jae 0x14009e9ae
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14009e97d
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14009e9ae
lodsb al, byte [rsi]
jmp 0x14009e98d
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x9b000]
mov eax, dword [rdi]
or eax, eax
je 0x14009ea17
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xab4f0]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14009e9bb
jns 0x14009e9f0
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14009e9fa
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14009ea11
mov qword [rbx], rax
add rbx, 8
jmp 0x14009e9db
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14009ea51
cmp al, 0xef
ja 0x14009ea43
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14009ea23
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14009ea32
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x247]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14009eaa5
sub rsp, 0xffffffffffffff80
jmp 0x140032ee0
Function at 0x140004140
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
xor eax, eax
lea rdx, str.SOFTWAREMicrosoftInput
mov dword [rsp + 0x50], eax
mov r9d, 0xf003f
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rax, [rsp + 0x58]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rsp + 0x58]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400041e9
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x38], rax
lea rdx, str.IsThatFreddyFadBear
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x2b6
mov qword [rsp + 0x60], rax
mov r9d, 0xb
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x50], 0x1337
sete al
add rsp, 0x48
ret
lea rdx, str.Registry_error_n
lea rcx, [0x1400588c0]
call fcn.14000f530
cmp dword [rsp + 0x50], 0x1337
sete al
add rsp, 0x48
ret
Function at 0x140004210
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x10], rdx
push rbp
lea rbp, [rsp - 0x180]
sub rsp, 0x280
lea rbx, [0x140057d10]
mov rdi, qword [0x140057d20]
cmp qword [0x140057d28], 0x10
jb 0x140004253
mov rbx, qword [0x140057d10]
add rdi, rbx
xor esi, esi
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], 7
mov rdx, rdi
sub rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.14000b8a0
lea rax, [rsp + 0x20]
mov qword [rbp + 0x198], rax
cmp rbx, rdi
je 0x1400042d9
nop dword [rax]
movsx r9d, byte [rbx]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
cmp rcx, rdx
jae 0x1400042c7
lea rax, [rcx + 1]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x20]
cmp rdx, 8
cmovae rax, qword [rsp + 0x20]
mov word [rax + rcx*2], r9w
mov word [rax + rcx*2 + 2], si
jmp 0x1400042d1
lea rcx, [rsp + 0x20]
call fcn.140010710
inc rbx
cmp rbx, rdi
jne 0x140004290
mov dword [rsp + 0x40], 0x238
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000444a
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
lea rcx, [rsp + 0x6c]
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x140004313
lea r10, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae r10, qword [rsp + 0x20]
mov r11, qword [rsp + 0x30]
mov r9, r11
cmp rax, r11
cmovb r9, rax
lea rcx, [rsp + 0x6c]
test r9, r9
je 0x140004423
movzx edx, word [r10]
movzx r8d, word [rsp + 0x6c]
cmp dx, r8w
jb 0x140004389
lea rdi, [rsp + 0x6c]
sub r10, rdi
cmp dx, r8w
ja 0x140004389
cmp r9, 1
je 0x140004423
dec r9
add rcx, 2
movzx edx, word [rcx + r10]
movzx r8d, word [rcx]
cmp dx, r8w
jae 0x140004367
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x140004441
lea rcx, [rsp + 0x6c]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400043b0
lea r10, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae r10, qword [rsp + 0x20]
mov r11, qword [rsp + 0x30]
mov r9, r11
cmp rax, r11
cmovb r9, rax
lea rcx, [rsp + 0x6c]
test r9, r9
je 0x140004423
movzx edx, word [r10]
movzx r8d, word [rsp + 0x6c]
cmp dx, r8w
jb 0x140004389
lea rdi, [rsp + 0x6c]
sub r10, rdi
cmp dx, r8w
ja 0x140004389
cmp r9, 1
je 0x140004423
dec r9
add rcx, 2
movzx edx, word [rcx + r10]
movzx r8d, word [rcx]
cmp dx, r8w
jae 0x140004400
jmp 0x140004389
cmp r11, rax
jb 0x140004389
ja 0x140004389
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [rsp + 0x48]
jmp 0x14000444a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140004488
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004483
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400044a4
call fcn.140017dc8
mov rax, rsi
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.140023650
int3
Function at 0x140004810
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rsi, r8
mov rbx, rdx
xor ebp, ebp
mov dword [rsp + 0x30], ebp
mov qword [rdx], rbp
mov qword [rdx + 0x10], rbp
mov qword [rdx + 0x18], 0xf
mov byte [rdx], bpl
mov dword [rsp + 0x30], 1
mov edi, ebp
mov edx, 0xcc
mov rcx, rbx
call fcn.140010a70
mov qword [rbx + 0x10], rbp
nop
mov byte [rsp + 0x90], 0
mov eax, dword [0x14005a700]
mov dword [rsp + 0x50], eax
movsxd rax, edi
add rax, rsi
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x68], 1
mov qword [rsp + 0xa8], rbp
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftInput
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rsp + 0xa8]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000492b
mov dword [rsp + 0x40], 0x45
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x28], 8
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0xb
xor r8d, r8d
lea rdx, str.IsThatFreddyFadBear
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000493e
lea rdx, str.Registry_error_n
lea rcx, [0x1400588c0]
call fcn.14000f530
movzx r9d, byte [rsp + 0x90]
test r9b, r9b
je 0x14000498e
inc edi
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x14000497a
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x14000496f
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140004982
mov rcx, rbx
call fcn.140010bc0
cmp edi, 0xc8
jl 0x140004860
mov rax, rbx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret

Function at 0x140004b50
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rbx, 0xffffffffffffffff
mov rsi, rdx
mov rax, rbx
mov rdi, rcx
inc rax
cmp byte [rcx + rax], 0
jne 0x140004b74
mov rcx, rbx
inc rcx
cmp byte [rdx + rcx], 0
jne 0x140004b80
add rax, 0x35
add rcx, rax
call fcn.1400236c8
mov rbp, rax
nop dword [rax + rax]
cmp byte [rdi + rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x140004ba0
lea rcx, [rbx + 0xe]
call fcn.1400236c8
movdqa xmm0, xmmword [0x14004f9a0]
lea rdx, [rsp + 0x32]
movdqa xmm1, xmmword [0x14004f8b0]
mov r9, rsi
mov r8, rdi
mov dword [rsp + 0x51], 0x6e72656b
mov rcx, rbp
mov dword [rsp + 0x55], 0x4e3e6c65
movdqu xmmword [rsp + 0x31], xmm0
mov rbx, rax
mov word [rsp + 0x59], 0x4c55
movdqu xmmword [rsp + 0x41], xmm1
mov byte [rsp + 0x5b], 0
call fcn.1400014c0
movdqa xmm0, xmmword [0x14004f8d0]
lea rdx, [rsp + 0x21]
mov r8, rdi
mov byte [rsp + 0x30], 0
mov rcx, rbx
movdqu xmmword [rsp + 0x20], xmm0
call fcn.1400014c0
mov rcx, rbp
call fcn.140021734
mov rcx, rbx
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
jmp fcn.140021734