joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005290
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
mov eax, 0x2050
call fcn.14001c080
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2040], rax
lea rax, [rsp + 0x30]
xor ebx, ebx
mov r9d, 0xf003f
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetControlSystemInformation
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor edx, edx
test eax, eax
je 0x140005347
mov r8d, 0x208
mov dword [rsp + 0x38], 0x208
lea rcx, [0x14002dcf0]
call fcn.14001c3d0
lea rax, [rsp + 0x38]
mov r9d, 0x208
lea r8, [0x14002dcf0]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, 0xffffffff80000002
call qword [0x14002df10]
lea r8, str.SYSTEMCurrentControlSetControlSystemInformation
lea rdx, [0x14002dcf6]
lea rcx, str.Failed_to_open_key:__ws_ws_n_n
call fcn.140001010
jmp 0x14000552b
mov qword [rsp + 0x2060], rsi
lea rcx, [rsp + 0x40]
mov rsi, qword [rsp + 0x30]
mov r8d, 0x1ffe
call fcn.14001c3d0
lea rax, [rsp + 0x38]
mov dword [rsp + 0x38], 0x1ffe
mov qword [rsp + 0x28], rax
lea rdx, str.ComputerHardwareIds
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400054bf
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x140005425
mov qword [rsp + 0x2068], rdi
mov qword [rsp + 0x2070], r14
lea r14, [0x14002cab0]
mov eax, ebx
lea rdi, [rsp + 0x40]
movzx ecx, word [rdi + rax*2]
lea rdi, [rdi + rax*2]
mov edx, 0x80
call fcn.14000cc14
test eax, eax
je 0x14000540b
call fcn.1400099b0
cdqe
mov rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp word [r14 + rcx*2], 0
jne 0x1400053f0
dec rcx
xor edx, edx
div rcx
movzx eax, word [r14 + rdx*2]
mov word [rdi], ax
mov eax, dword [rsp + 0x38]
inc ebx
cmp ebx, eax
jb 0x1400053c1
mov r14, qword [rsp + 0x2070]
mov rdi, qword [rsp + 0x2068]
mov dword [rsp + 0x28], eax
lea rdx, str.ComputerHardwareIds
lea rax, [rsp + 0x40]
mov r9d, 7
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor edx, edx
mov dword [rsp + 0x3c], 0x208
mov r8d, 0x208
lea rcx, [0x14002dcf0]
call fcn.14001c3d0
lea rax, [rsp + 0x3c]
mov r9d, 0x208
lea r8, [0x14002dcf0]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rsi
call qword [0x14002df10]
mov eax, dword [rsp + 0x38]
lea r8, str.ComputerHardwareIds
mov dword [rsp + 0x28], eax
lea rdx, [0x14002dcf6]
mov r9d, 0xc0
mov dword [rsp + 0x20], 0xc4
lea rcx, str._ws_ws_n_c_c_multi_string_of_length__d_n_n
call fcn.140001010
jmp 0x14000551a
xor edx, edx
mov dword [rsp + 0x3c], 0x208
mov r8d, 0x208
lea rcx, [0x14002dcf0]
call fcn.14001c3d0
lea rax, [rsp + 0x3c]
mov r9d, 0x208
lea r8, [0x14002dcf0]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rsi
call qword [0x14002df10]
lea r8, str.ComputerHardwareIds
lea rdx, [0x14002dcf6]
lea rcx, str.Failed_to_read:__ws_ws_n_n
call fcn.140001010
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x2060]
mov rcx, qword [rsp + 0x2040]
xor rcx, rsp
call fcn.140006210
add rsp, 0x2050
pop rbx
ret
Function at 0x140005550
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, r8
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
xor r8d, r8d
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
mov rsi, rdx
mov rbx, rcx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400055f2
xor edx, edx
mov dword [rsp + 0x38], 0x208
mov r8d, 0x208
lea rcx, [0x14002dcf0]
call fcn.14001c3d0
lea rax, [rsp + 0x38]
mov r9d, 0x208
lea r8, [0x14002dcf0]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rbx
call qword [0x14002df10]
mov r8, rsi
lea rdx, [0x14002dcf6]
lea rcx, str.Failed_to_open_key:__ws_ws_n_n
call fcn.140001010
jmp 0x1400056e4
mov rbx, qword [rsp + 0x30]
call fcn.1400099b0
mov dword [rsp + 0x40], eax
call fcn.1400099b0
mov dword [rsp + 0x44], eax
mov r9d, 0xb
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 8
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor edx, edx
mov dword [rsp + 0x38], 0x208
lea rcx, [0x14002dcf0]
mov r8d, 0x208
test eax, eax
jne 0x14000569b
call fcn.14001c3d0
lea rax, [rsp + 0x38]
mov r9d, 0x208
lea r8, [0x14002dcf0]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rbx
call qword [0x14002df10]
mov r9d, 0xc0
mov dword [rsp + 0x20], 0xc4
mov r8, rdi
lea rdx, [0x14002dcf6]
lea rcx, str._ws_ws_n_c_c_qword_n_n
call fcn.140001010
jmp 0x1400056db
call fcn.14001c3d0
lea rax, [rsp + 0x38]
mov r9d, 0x208
lea r8, [0x14002dcf0]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rbx
call qword [0x14002df10]
mov r8, rdi
lea rdx, [0x14002dcf6]
lea rcx, str.Failed_to_write:__ws_ws_n_n
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140006210
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x140005700
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbp, r8
lea rax, [rsp + 0x30]
xor ebx, ebx
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x30], rbx
mov r9d, 0xf003f
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400057a4
xor edx, edx
mov dword [rsp + 0x38], 0x208
mov r8d, 0x208
lea rcx, [0x14002dcf0]
call fcn.14001c3d0
lea rax, [rsp + 0x38]
mov r9d, 0x208
lea r8, [0x14002dcf0]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rdi
call qword [0x14002df10]
mov r8, rsi
lea rdx, [0x14002dcf6]
lea rcx, str.Failed_to_open_key:__ws_ws_n_n
call fcn.140001010
jmp 0x140005918
mov rsi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov rcx, rsi
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
mov dword [rsp + 0x38], ebx
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14000582e
xor edx, edx
mov dword [rsp + 0x3c], 0x208
mov r8d, 0x208
lea rcx, [0x14002dcf0]
call fcn.14001c3d0
lea rax, [rsp + 0x3c]
mov r9d, 0x208
lea r8, [0x14002dcf0]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rsi
call qword [0x14002df10]
mov r8, rbp
lea rdx, [0x14002dcf6]
lea rcx, str.Failed_to_query_size_of:__ws_ws_n_n
call fcn.140001010
jmp 0x14000590f
mov ecx, dword [rsp + 0x38]
call fcn.14000cc94
mov rdi, rax
test rax, rax
jne 0x140005850
lea rcx, str.Failed_to_allocate_buffer_for_SpoofBinary_n_n
call fcn.140001010
jmp 0x14000590f
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x14000587c
call fcn.1400099b0
and eax, 0x800000ff
jge 0x14000586d
dec eax
or eax, 0xffffff00
inc eax
mov ecx, ebx
inc ebx
mov byte [rcx + rdi], al
mov eax, dword [rsp + 0x38]
cmp ebx, eax
jb 0x140005858
mov dword [rsp + 0x28], eax
mov r9d, 3
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rdi
call fcn.14000cc80
xor edx, edx
mov dword [rsp + 0x3c], 0x208
mov r8d, 0x208
lea rcx, [0x14002dcf0]
call fcn.14001c3d0
lea rax, [rsp + 0x3c]
mov r9d, 0x208
lea r8, [0x14002dcf0]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rsi
call qword [0x14002df10]
mov eax, dword [rsp + 0x38]
lea rdx, [0x14002dcf6]
mov dword [rsp + 0x28], eax
lea rcx, str._ws_ws_n_c_c_binary_of_length__d_n_n
mov r9d, 0xc0
mov dword [rsp + 0x20], 0xc4
mov r8, rbp
call fcn.140001010
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140006210
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x140005940
Capabilities:
Delete registry key

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, r8
mov qword [rsp + 0x50], 0
mov rdi, rdx
lea r8, [rsp + 0x50]
mov rdx, rsi
mov rbx, rcx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
cmp eax, 0x3fd
jne 0x1400059bc
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], 0
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov rdx, rsi
mov rcx, rbx
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x140005a1c
xor edx, edx
mov dword [rsp + 0x58], 0x208
mov r8d, 0x208
lea rcx, [0x14002dcf0]
call fcn.14001c3d0
lea rax, [rsp + 0x58]
mov r9d, 0x208
lea r8, [0x14002dcf0]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rbx
call qword [0x14002df10]
mov r8, rsi
lea rdx, [0x14002dcf6]
lea rcx, str.Failed_to_create_key:__ws_ws_n_n
call fcn.140001010
jmp 0x140005b49
mov r8, qword [rsp + 0x50]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCopyTreeW]
test eax, eax
jne 0x140005ae7
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
xor edx, edx
mov dword [rsp + 0x58], 0x208
lea rcx, [0x14002dcf0]
mov r8d, 0x208
test eax, eax
jne 0x140005ab4
call fcn.14001c3d0
lea rax, [rsp + 0x58]
mov r9d, 0x208
lea r8, [0x14002dcf0]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rbx
call qword [0x14002df10]
mov r9d, 0xc0
mov qword [rsp + 0x28], rsi
mov r8, rdi
mov dword [rsp + 0x20], 0xc4
lea rdx, [0x14002dcf6]
lea rcx, str._ws_ws_n_c_c_renamed_to__ws_n_n
call fcn.140001010
jmp 0x140005b3e
call fcn.14001c3d0
lea rax, [rsp + 0x58]
mov r9d, 0x208
lea r8, [0x14002dcf0]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rbx
call qword [0x14002df10]
lea rcx, str.Failed_to_delete_key:__ws_ws_n_n
jmp 0x140005b2f
xor edx, edx
mov dword [rsp + 0x58], 0x208
mov r8d, 0x208
lea rcx, [0x14002dcf0]
call fcn.14001c3d0
lea rax, [rsp + 0x58]
mov r9d, 0x208
lea r8, [0x14002dcf0]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rbx
call qword [0x14002df10]
lea rcx, str.Failed_to_copy_key:__ws_ws_n_n
mov r8, rdi
lea rdx, [0x14002dcf6]
call fcn.140001010
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140006210
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
Function at 0x140005b60
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rdx
mov rbx, rcx
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
cmp eax, 2
je 0x140005c39
xor edx, edx
mov dword [rsp + 0x30], 0x208
lea rcx, [0x14002dcf0]
mov r8d, 0x208
test eax, eax
jne 0x140005bf9
call fcn.14001c3d0
lea rax, [rsp + 0x30]
mov r9d, 0x208
lea r8, [0x14002dcf0]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rbx
call qword [0x14002df10]
mov r9d, 0xc0
mov dword [rsp + 0x20], 0xc4
mov r8, rdi
lea rdx, [0x14002dcf6]
lea rcx, str._ws_ws_n_c_c_deleted_n_n
call fcn.140001010
jmp 0x140005c39
call fcn.14001c3d0
lea rax, [rsp + 0x30]
mov r9d, 0x208
lea r8, [0x14002dcf0]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rbx
call qword [0x14002df10]
mov r8, rdi
lea rdx, [0x14002dcf6]
lea rcx, str.Failed_to_delete_value:__ws_ws_n_n
call fcn.140001010
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140006210
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140005c60
Capabilities:
Delete registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
call qword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
cmp eax, 2
je 0x140005d42
xor edx, edx
mov dword [rsp + 0x30], 0x208
lea rcx, [0x14002dcf0]
mov r8d, 0x208
test eax, eax
jne 0x140005cff
call fcn.14001c3d0
lea rax, [rsp + 0x30]
mov r9d, 0x208
lea r8, [0x14002dcf0]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rbx
call qword [0x14002df10]
mov r9, rsi
mov dword [rsp + 0x28], 0xc4
mov r8, rdi
mov dword [rsp + 0x20], 0xc0
lea rdx, [0x14002dcf6]
lea rcx, str._ws_ws_ws_n_c_c_deleted_n_n
call fcn.140001010
jmp 0x140005d42
call fcn.14001c3d0
lea rax, [rsp + 0x30]
mov r9d, 0x208
lea r8, [0x14002dcf0]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rbx
call qword [0x14002df10]
mov r9, rsi
lea rdx, [0x14002dcf6]
mov r8, rdi
lea rcx, str.Failed_to_delete_value:__ws_ws_ws_n_n
call fcn.140001010
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140006210
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400060a0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x6a0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x690], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x480]
mov r8d, 0x208
call fcn.14001c3d0
mov r8, rdi
lea rdx, str._ws
lea rcx, [rsp + 0x480]
call qword [sym.imp.USER32.dll_wsprintfW]
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x250
call fcn.14001c3d0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x480]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
nop word [rax + rax]
xor edx, edx
lea rcx, [rsp + 0x270]
mov r8d, 0x208
call fcn.14001c3d0
lea r9, [rsp + 0x4c]
mov r8, rdi
lea rdx, str._ws_ws
lea rcx, [rsp + 0x270]
call qword [sym.imp.USER32.dll_wsprintfW]
movzx ecx, word [rsp + 0x4c]
movzx eax, word [rsp + 0x4e]
cmp cx, 0x2e
jne 0x140006179
test ax, ax
je 0x1400061b3
cmp cx, cx
jne 0x140006179
cmp ax, cx
jne 0x140006179
cmp word [rsp + 0x50], 0
je 0x1400061b3
test byte [rsp + 0x20], 0x10
lea rdx, str.desktop.ini
je 0x140006196
lea rcx, [rsp + 0x270]
call fcn.1400060a0
jmp 0x1400061b3
lea rcx, [rsp + 0x4c]
call qword [sym.imp.SHLWAPI.dll_StrStrW]
test rax, rax
je 0x1400061b3
lea rcx, [rsp + 0x270]
call fcn.140005d60
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140006120
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x690]
xor rcx, rsp
call fcn.140006210
mov rbx, qword [rsp + 0x6b8]
add rsp, 0x6a0
pop rdi
ret

Function at 0x140006bf4
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000d823
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000d823
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000d823
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000d823
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000d823
cmp dword [rcx + 0x84], 0xe
jbe 0x14000d823
cmp dword [rcx + 0xf8], 0
je 0x14000d823
mov ecx, ebx
call fcn.14000d8d4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000d6b0
nop
cmp dword [rbp + 0x20], 0
je 0x14000d871
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000d87c
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14000d7b4

Function at 0x14000d9b8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000d7b4
Function at 0x140013b20
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140013b50
xor eax, eax
jmp 0x140013c13
mov rbp, rbx
cmp word [rax], si
je 0x140013b75
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140013b5c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140013b58
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140013a40
movsxd r14, eax
test eax, eax
jne 0x140013bb3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140013b49
mov rcx, r14
call fcn.14000fd30
mov rdi, rax
test rax, rax
jne 0x140013bcc
xor ecx, ecx
call fcn.14000eeec
jmp 0x140013ba8
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140013a40
test eax, eax
jne 0x140013bfd
mov rcx, rdi
call fcn.14000eeec
jmp 0x140013c07
xor ecx, ecx
call fcn.14000eeec
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140017fbc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140017fd2
mov al, 1
jmp 0x140018032
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140017fe3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140018030
mov ecx, dword [rcx + 0x18]
nop
call fcn.140014440
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140018030
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140018030
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140018030
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140018032
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400198a8
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140009b9c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140019932
cmp byte [rbp - 0x21], r15b
je 0x14001992d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140019968
call fcn.14000f13c
test eax, eax
jne 0x140019954
cmp byte [rbp - 0x21], r15b
je 0x14001994c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140019968
cmp byte [rbp - 0x21], r15b
je 0x140019965
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140012080
test eax, eax
jne 0x140019a08
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140009b9c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400199a7
cmp byte [rbp - 0x21], r15b
je 0x1400199dc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400199dc
call fcn.14000f13c
test eax, eax
jne 0x1400199c8
cmp byte [rbp - 0x21], r15b
je 0x1400199c1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400199dc
cmp byte [rbp - 0x21], r15b
je 0x1400199d9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140012080
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140019a08
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140019a0b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140019a19
mov rcx, rdi
call fcn.14000eeec
cmp byte [rbp + 0x3f], r15b
je 0x140019a28
mov rcx, qword [rbp + 0x27]
call fcn.14000eeec
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x14001bf90
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001bfb8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001bfb8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400012f0
Capabilities:
Check mutex on windows

Disassembly:
sub rsp, 0x38
call fcn.140007180
test al, al
je 0x140001335
lea rcx, str.EMP.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
jne 0x14000132b
mov r9d, 0x10
lea r8, str.Application.exe___System_Error
lea rdx, str.The_code_execution_cannot_proceed_because_EMP.dll_was_not_found._Reinstalling_the_program_may_fix_this_problem.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 0xffffffff
add rsp, 0x38
ret
lea r8, str.LocalAD8C6F3C_8D19_4C2D_90BB_CD2FC2740A00
mov qword [rsp + 0x30], rbx
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rbx, rax
test rax, rax
jne 0x140001365
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x38
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140001387
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x38
ret
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0xa
lea rcx, [rsp + 0x28]
call fcn.140002d00
mov rcx, rax
call fcn.140002d10
call fcn.1400013b0
int3

Function at 0x140002650
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
xor eax, eax
movq xmm2, r8
punpcklqdq xmm2, xmm2
mov r9, rdx
mov r10, rcx
test rdx, rdx
je 0x1400027db
cmp rdx, 8
jb 0x1400027c0
cmp dword [0x14001e098], 5
jl 0x1400027c0
movdqa xmm3, xmmword [0x140017590]
mov r11, rdx
movdqa xmm4, xmmword [0x1400175b0]
lea rdx, [rcx + 4]
movdqa xmm5, xmmword [0x1400175d0]
and r11, 0xfffffffffffffff8
mov qword [rsp + 0x10], rbx
mov rbx, 0xfffffffffffffffe
mov qword [rsp], rdi
sub rbx, rcx
mov edi, 2
sub rdi, rcx
movzx ecx, word [rdx - 4]
movq xmm0, rax
punpcklqdq xmm0, xmm0
add rax, 8
paddq xmm0, xmm3
andps xmm0, xmm4
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
movd xmm0, ecx
pshufb xmm1, xmm5
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx - 4], cx
lea rcx, [rbx + rdx]
movq xmm0, rcx
movzx ecx, word [rdx - 2]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm3
andps xmm0, xmm4
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
movd xmm0, ecx
pshufb xmm1, xmm5
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx - 2], cx
mov rcx, rdx
sub rcx, r10
movq xmm0, rcx
movzx ecx, word [rdx]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm3
andps xmm0, xmm4
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
movd xmm0, ecx
pshufb xmm1, xmm5
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx], cx
lea rcx, [rdi + rdx]
movq xmm0, rcx
movzx ecx, word [rdx + 2]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm3
andps xmm0, xmm4
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
movd xmm0, ecx
pshufb xmm1, xmm5
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx + 2], cx
add rdx, 8
cmp rax, r11
jb 0x1400026c3
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
cmp rax, r9
jae 0x1400027db
nop word [rax + rax]
movzx ecx, al
mov rdx, r8
and cl, 7
shl cl, 3
shr rdx, cl
xor byte [r10 + rax], dl
inc rax
cmp rax, r9
jb 0x1400027c0
add rsp, 8
ret