joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a9ad0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x006c7ec0]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x4a9b38
mov rcx, rsi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
fbld tbyte [rsi + 0x458b0001]
invalid
cmp eax, 0xc0000011

Function at 0x4ab470
Capabilities:
Create directory

Disassembly:
push rbp
mov rbp, rsp
test cl, cl
je 0x4ab484
mov rcx, rdx
mov rdx, r8
pop rbp
jmp fcn.004ab550
mov rcx, rdx
mov rdx, r8
pop rbp
jmp fcn.004ab490

Function at 0x4ad670
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, dword [0x004c60e0]
test ecx, ecx
je 0x4ad741
dec ecx
call fcn.004c41ec
cmp rax, 1
jbe 0x4ad6a1
add rax, 8
jmp 0x4ad738
je 0x4ad736
movzx eax, byte [0x006e0338]
mov edx, 0x10
xor ecx, ecx
call fcn.004b9480
test rax, rax
je 0x4ad774
mov rbx, rax
mov rsi, rax
lea rax, [0x004c60c8]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x004c60e0]
test ecx, ecx
je 0x4ad754
dec ecx
call fcn.004c41ec
mov rdi, rax
mov ecx, dword [0x004c60e0]
test ecx, ecx
je 0x4ad764
dec ecx
add rbx, 8
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x4ad731
mov rax, qword [rdi + 8]
test rax, rax
je 0x4ad724
lock dec qword [rax]
jne 0x4ad724
mov rcx, qword [rdi + 8]
call fcn.004ad790
mov edx, 8
mov rcx, rdi
call fcn.0042cc00
mov rax, rbx
jmp 0x4ad738
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x004c60c8]
call fcn.004864a0
mov ecx, eax
jmp 0x4ad68d
lea rcx, [0x004c60c8]
call fcn.004864a0
mov ecx, eax
jmp 0x4ad6e7
lea rcx, [0x004c60c8]
call fcn.004864a0
mov ecx, eax
jmp 0x4ad6fb
mov ecx, 8
mov edx, 0x10
call fcn.0042d010
int3
Function at 0x4b3f30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rsi, rcx
movabs rbx, 0x8000000000000000
lea rcx, [rbp - 0x28]
call fcn.004a5ea0
mov rcx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x20]
cmp rcx, rbx
jne 0x4b3f6e
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], rbx
jmp 0x4b3f94
mov rdx, qword [rbp - 0x18]
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rdx
lea rcx, [rbp - 0x10]
lea rdx, [rbp - 0x40]
call fcn.004b3e50
mov r14, qword [rbp - 0x10]
cmp r14, rbx
jne 0x4b3fad
lea rcx, [rbp - 8]
call fcn.00486730
mov qword [rsi], rbx
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov rdi, qword [rbp - 8]
mov r15, qword [rbp]
mov rcx, rdi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4b3fcf
mov qword [rsi], r14
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r15
jmp 0x4b3fa0
mov qword [rsi], rbx
test r14, r14
je 0x4b3fa0
mov edx, 2
mov rcx, rdi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
jmp fcn.0042cc00
Function at 0x4b8ca0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov rdi, rdx
cmp qword [rdx], 0
jne 0x4b8e06
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx]
test rax, rax
jne 0x4b8cdd
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x4b8df0
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x4b8dd3
sub rax, rdx
add rdx, qword [rbx + 8]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rbp + 4], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rbp + 4]
mov r8d, eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x4b8d3b
mov eax, dword [rbp + 4]
mov ecx, 2
test rax, rax
je 0x4b8d7d
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
jmp 0x4b8d81
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x40], rax
movabs rcx, 0xffffffff00000000
and rcx, rax
movabs rdx, 0x6d00000000
cmp rcx, rdx
je 0x4b8d85
movabs rdx, 0x3e500000000
cmp rcx, rdx
jne 0x4b8daf
lea rax, [rbp - 8]
jmp 0x4b8d91
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x4b8db5
mov qword [rbp - 8], 1
lea rax, [rbp - 0x10]
mov qword [rax], 0
lea rcx, [rbp - 0x40]
call fcn.00486730
mov rcx, qword [rbp - 8]
mov rax, qword [rbp - 0x10]
cmp rcx, 2
jne 0x4b8dc0
mov qword [rsi + 8], rax
mov al, 1
mov byte [rsi], al
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop rbp
ret
test rcx, rcx
jne 0x4b8d24
mov ecx, 1
jmp 0x4b8d2e
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.0048bda0
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x4b8cea
mov r8d, 0x10
mov rcx, rbx
call fcn.0048bda0
mov rax, qword [rbx]
jmp 0x4b8cdd
mov qword [rbp - 0x40], 0
lea rdx, [rbp - 0x40]
mov rcx, rdi
call fcn.004b8e20
int3
Function at 0x4bdea0
Capabilities:
Delete file

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov r8, rdx
mov rdx, rcx
movabs rdi, 0x8000000000000000
lea rcx, [rbp - 0x10]
call fcn.004a5ea0
mov rax, qword [rbp - 0x10]
mov rsi, qword [rbp - 8]
cmp rax, rdi
je 0x4bdf00
mov rcx, qword [rbp]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x28]
mov r8b, 1
call fcn.004a6040
mov rbx, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
cmp rbx, rdi
jne 0x4bdf0c
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
call sub.kernel32.dll_DeleteFileW
test eax, eax
je 0x4bdf2e
test rbx, rbx
je 0x4bdf52
mov edx, 2
mov rcx, rsi
call fcn.0042cc00
xor eax, eax
jmp 0x4bdf03
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
test rbx, rbx
je 0x4bdf03
mov edx, 2
mov rcx, rsi
mov rsi, rax
call fcn.0042cc00
jmp 0x4bdf00
xor eax, eax
jmp 0x4bdf03

Function at 0x4bdf60
Capabilities:
Move file

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rdi, r9
mov rbx, r8
mov r8, rdx
mov rdx, rcx
movabs r15, 0x8000000000000000
lea rcx, [rbp - 0x10]
call fcn.004a5ea0
mov rax, qword [rbp - 0x10]
mov rsi, qword [rbp - 8]
cmp rax, r15
je 0x4be02f
mov rcx, qword [rbp]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x28]
mov r8b, 1
call fcn.004a6040
mov r14, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
cmp r14, r15
je 0x4be02f
lea rcx, [rbp - 0x10]
mov rdx, rbx
mov r8, rdi
call fcn.004a5ea0
mov rax, qword [rbp - 0x10]
mov rdi, qword [rbp - 8]
cmp rax, r15
je 0x4be017
mov rcx, qword [rbp]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x28]
mov r8b, 1
call fcn.004a6040
mov rbx, qword [rbp - 0x40]
mov rdi, qword [rbp - 0x38]
cmp rbx, r15
jne 0x4be03f
mov rax, rdi
test r14, r14
je 0x4be032
mov edx, 2
mov rcx, rsi
mov rsi, rax
call fcn.0042cc00
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov rcx, rsi
mov rdx, rdi
mov r8d, 1
call sub.kernel32.dll_MoveFileExW
test eax, eax
je 0x4be07c
test rbx, rbx
je 0x4be066
mov edx, 2
mov rcx, rdi
call fcn.0042cc00
test r14, r14
je 0x4be078
mov edx, 2
mov rcx, rsi
call fcn.0042cc00
xor eax, eax
jmp 0x4be032
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
test rbx, rbx
je 0x4be01a
mov edx, 2
mov rcx, rdi
mov rdi, rax
call fcn.0042cc00
jmp 0x4be017
Function at 0x4beed0
Capabilities:
Copy file

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov rdi, r9
mov rbx, r8
mov r8, rdx
mov rdx, rcx
movabs r15, 0x8000000000000000
lea rcx, [rbp - 0x28]
call fcn.004a5ea0
mov rax, qword [rbp - 0x28]
mov rsi, qword [rbp - 0x20]
cmp rax, r15
je 0x4bef3a
mov rcx, qword [rbp - 0x18]
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rsi
mov qword [rbp], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x10]
mov r8b, 1
call fcn.004a6040
mov r14, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
cmp r14, r15
jne 0x4bef4f
mov eax, 1
mov rdx, rsi
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp - 0x28]
mov rdx, rbx
mov r8, rdi
call fcn.004a5ea0
mov rax, qword [rbp - 0x28]
mov rdi, qword [rbp - 0x20]
cmp rax, r15
je 0x4bef98
mov rcx, qword [rbp - 0x18]
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rdi
mov qword [rbp], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x10]
mov r8b, 1
call fcn.004a6040
mov rbx, qword [rbp - 0x40]
mov rdi, qword [rbp - 0x38]
cmp rbx, r15
jne 0x4befbf
mov rdx, rdi
mov eax, 1
test r14, r14
je 0x4bef42
mov rdi, rdx
mov edx, 2
mov rcx, rsi
call fcn.0042cc00
mov eax, 1
mov rdx, rdi
jmp 0x4bef42
mov qword [rbp - 0x10], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [0x004bf080]
lea r9, [rbp - 0x10]
mov rcx, rsi
mov rdx, rdi
call sub.kernel32.dll_CopyFileExW
test eax, eax
je 0x4bf02d
mov rdx, qword [rbp - 0x10]
test rbx, rbx
je 0x4bf00e
mov rbx, rdx
mov edx, 2
mov rcx, rdi
call fcn.0042cc00
mov rdx, rbx
test r14, r14
je 0x4bf026
mov rdi, rdx
mov edx, 2
mov rcx, rsi
call fcn.0042cc00
mov rdx, rdi
xor eax, eax
jmp 0x4bef42
call sub.kernel32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
test rbx, rbx
je 0x4bef9b
mov rbx, rdx
mov edx, 2
mov rcx, rdi
call fcn.0042cc00
mov rdx, rbx
jmp 0x4bef9b

Function at 0x4bfe5b
Capabilities:
Encode data using xor

Disassembly:
sub rdx, rcx
cmp rdx, 0x20
jb fcn.004610e0
jmp fcn.0045d530
Function at 0x4c4e60
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.004c5f20
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.004c5f20
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 0x4c4ed0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x006e0934]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x4c5078
mov rax, qword [0x006e0938]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x4c4f1c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x4c4fa7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x4c4f00
mov rcx, r12
call fcn.004c5c30
mov rbp, rax
test rax, rax
je 0x4c50b2
mov rax, qword [0x006e0938]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.004c5d60
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x006e0938]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4c50c1
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x4c4fa0
sub eax, 4
and eax, 0xfffffffb
jne 0x4c5030
add dword [0x006e0934], 1
cmp ebx, 8
jae 0x4c4fd8
test bl, 4
jne 0x4c5080
test ebx, ebx
je 0x4c4fc9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x4c50a0
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 0x4c4fc9
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 0x4c500a
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 [0x006e0938]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4c4fa0
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.004c4e60
nop dword [rax]
xor edi, edi
jmp 0x4c4f27
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x4c4fc9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x4c4fc9
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.004c4e60
mov rax, qword [0x006e0938]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.004c4e60
nop
nop dword [rax]
Function at 0x4c58a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x006e0c20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x006e0c00]
test rbx, rbx
je 0x4c58f4
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 0x4c58eb
test r12, r12
je 0x4c58eb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4c58d0
lea rcx, [0x006e0c20]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x4c5c30
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x006ca3d0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x4c5ca9
mov rcx, r10
call fcn.004c5b00
test eax, eax
je 0x4c5ca9
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 0x4c5ca6
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 0x4c5c9d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x4c5ca9
add r8, 0x28
cmp r8, r9
jne 0x4c5c88
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x140001d90
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001dda
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001dda
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001dda
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001dda
cmp dword [rcx + 0x84], 0xe
jbe 0x140001dda
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001ddc
xor al, al
add rsp, 0x28
ret
Function at 0x1400111fe
Capabilities:
Terminate process

Disassembly:
jmp 0x140014fe0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14001127b
Capabilities:
Parse pe header

Disassembly:
jmp 0x140012df0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140012e10
xor al, al
jmp 0x140012e91
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140012e23
xor al, al
jmp 0x140012e91
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140012e4d
xor al, al
jmp 0x140012e91
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140012e61
xor al, al
jmp 0x140012e91
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140012e73
xor al, al
jmp 0x140012e91
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140012e8f
xor al, al
jmp 0x140012e91
mov al, 1
add rsp, 0x38
ret
Function at 0x100019988
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
jne 0x1000199be
lea r8, [0x100002a88]
lea rcx, [0x100002a50]
mov edx, 0x1676
call fcn.100099ad8
xor eax, eax
test rbx, rbx
setne al
test eax, eax
jne 0x1000199ed
lea r8, [0x100002a30]
lea rcx, [0x100002a50]
mov edx, 0x1677
call fcn.100099ad8
mov ecx, 0x80004005
call fcn.100019658
int3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rdi]
mov r9d, 1
lea eax, [rax + rax + 2]
xor r8d, r8d
mov rdx, rsi
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x100019a30
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0x270], rax
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x58], 0
mov rsi, rdx
mov r8, rdx
mov rdx, qword [rcx]
mov rdi, rcx
lea rcx, [rsp + 0x48]
mov r9d, 0x2001f
call fcn.1000198cc
jmp 0x100019a93
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.100019a30
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x100019b00
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor edx, edx
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x100019a84
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x100019aee
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x48], 0
mov rdx, rsi
mov rcx, rdi
call fcn.100019740
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test rcx, rcx
je 0x100019b0b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.10014e480
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x10001a274
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rsi, r9
mov rdi, r8
mov rax, rdx
xor ebx, ebx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x70], rbx
xor edx, edx
lea r8d, [rbx + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov r12, rax
mov qword [rsp + 0x38], rax
cmp rax, rbx
jne 0x10001a2e5
call fcn.1000196cc
mov ebx, eax
jmp 0x10001a446
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
cmp rax, rbx
jne 0x10001a308
call fcn.1000196cc
mov ebx, eax
jmp 0x10001a43c
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r13, rax
mov qword [rsp + 0x40], rax
cmp rax, rbx
jne 0x10001a32d
call fcn.1000196cc
mov ebx, eax
jmp 0x10001a43c
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, edi
jae 0x10001a366
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x10001a35c
lea rcx, [rsp + 0x70]
call fcn.10001c444
nop
mov eax, 0x8007000e
jmp 0x10001a46c
mov esi, eax
cmp rsi, rbx
jne 0x10001a372
mov rsi, rbx
jmp 0x10001a388
xor edx, edx
or rax, 0xffffffffffffffff
div rsi
cmp rax, 2
jb 0x10001a461
add rsi, rsi
cmp qword [rsp + 0x70], rbx
je 0x10001a3a7
lea r8, [0x1000041a0]
mov edx, 0x207
lea rcx, [0x100002960]
call fcn.100099ad8
cmp rsi, 0x400
jbe 0x10001a3c4
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.10001c6d0
mov r11, qword [rsp + 0x70]
jmp 0x10001a3ce
lea r11, [rsp + 0x78]
mov qword [rsp + 0x70], r11
jmp 0x10001a3e5
cmp r11, rbx
jne 0x10001a3f1
mov ebx, 0x8007000e
jmp 0x10001a43c
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r11
mov r9d, edi
mov r8, r13
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x10001a418
call fcn.1000196cc
mov ebx, eax
jmp 0x10001a43c
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], bx
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.10001b0b4
mov ebx, eax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x10001a45d
lea rcx, [rsp + 0x70]
call fcn.10001c444
nop
mov eax, ebx
jmp 0x10001a46c
mov ecx, 0x80070057
call fcn.100019658
nop
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.10014e480
add rsp, 0x490
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x100029804
Capabilities:
Move file

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbp, rcx
xor edi, edi
mov byte [rax + 8], dil
mov byte [rax + 0x10], dil
mov qword [rax + 0x20], rdi
mov r12, rdi
mov qword [rax + 0x18], rdi
mov qword [rax - 0x70], rdi
mov qword [rax - 0x68], rdi
mov qword [rax - 0x60], rdi
mov dword [rax - 0x58], edi
lea rdx, [rcx + 0x188]
lea r8, [rax + 0x20]
mov rcx, qword [rcx + 0x238]
call fcn.100123824
mov esi, eax
lea r15, [0x1001653b8]
cmp eax, edi
jl 0x1000299ee
lea rdx, [rsp + 0xb8]
mov rcx, rbp
call fcn.10003e674
mov esi, eax
cmp eax, edi
jl 0x1000299ee
mov rbx, qword [rsp + 0xc8]
test byte [rbp + 0x150], 4
je 0x100029995
lea rdx, [rsp + 0xb0]
mov rcx, rbx
call fcn.10010d368
mov esi, eax
cmp eax, edi
jl 0x1000299f6
cmp byte [rsp + 0xb0], dil
jne 0x100029995
cmp byte [rsp + 0xb8], dil
jne 0x100029995
lea r8, [rsp + 0xc0]
xor edx, edx
mov rcx, qword [rbp + 0x238]
call fcn.100123824
mov esi, eax
cmp eax, edi
jl 0x10002998b
lea rdx, [rbp + 0x1e0]
mov r12, qword [rsp + 0xc0]
mov rcx, r12
call fcn.10010bdf0
mov esi, eax
cmp eax, edi
jl 0x1000299de
cmp qword [rbp + 0x1e0], rdi
je 0x100029995
mov rdx, rbx
mov rcx, qword [rbp + 0x1e0]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
cmp eax, edi
jne 0x100029995
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13d, eax
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x100029978
test byte [rcx + 0x1c], 1
je 0x100029978
cmp byte [rcx + 0x19], 2
jb 0x100029978
mov edx, 0x134
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9, qword [rbp + 0x1e0]
lea r8, [0x100003d08]
mov rcx, qword [rcx + 0x10]
call fcn.10001e360
movzx esi, r13w
or esi, 0x80070000
cmp r13d, edi
cmovle esi, r13d
jmp 0x1000299de
mov r12, qword [rsp + 0xc0]
jmp 0x1000299de
cmp dword [rbp + 0x14c], 4
setne dl
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call fcn.10010d1bc
mov esi, eax
cmp eax, edi
jl 0x1000299de
cmp qword [rbp + 0x1d8], rdi
je 0x1000299d4
lea r8, [0x100004b08]
mov edx, 0x17e5
lea rcx, [0x1000046e0]
call fcn.100099ad8
mov qword [rbp + 0x1d8], rbx
mov rbx, rdi
cmp r12, rdi
je 0x1000299f6
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x1000299f6
mov rbx, qword [rsp + 0xc8]
cmp rbx, rdi
je 0x100029a04
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
cmp esi, edi
jge 0x100029a68
lea rcx, [rbp + 0x58]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r11d, 0x8078014b
mov dword [rbp + 0x20], r11d
cmp esi, r11d
cmovne edi, esi
mov dword [rbp + 0x24], edi
lea rcx, [rbp + 0x58]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x100029a68
test byte [rcx + 0x1c], 1
je 0x100029a68
cmp byte [rcx + 0x19], 2
jb 0x100029a68
mov edx, 0x135
mov eax, dword [rbp + 0x24]
mov dword [rsp + 0x20], eax
mov r9d, dword [rbp + 0x20]
lea r8, [0x100003d08]
mov rcx, qword [rcx + 0x10]
call fcn.10001e8b4
nop
mov eax, esi
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret