joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005eb0
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 0x140005f52
xor edx, edx
mov dword [rsp + 0x38], 0x208
mov r8d, 0x208
lea rcx, [0x14002dcf0]
call fcn.14001cdb0
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 0x140006044
mov rbx, qword [rsp + 0x30]
call fcn.14000a310
mov dword [rsp + 0x40], eax
call fcn.14000a310
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 0x140005ffb
call fcn.14001cdb0
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 0x14000603b
call fcn.14001cdb0
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.140006b70
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x140006060
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 0x140006104
xor edx, edx
mov dword [rsp + 0x38], 0x208
mov r8d, 0x208
lea rcx, [0x14002dcf0]
call fcn.14001cdb0
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 0x140006278
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 0x14000618e
xor edx, edx
mov dword [rsp + 0x3c], 0x208
mov r8d, 0x208
lea rcx, [0x14002dcf0]
call fcn.14001cdb0
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 0x14000626f
mov ecx, dword [rsp + 0x38]
call fcn.14000d5f4
mov rdi, rax
test rax, rax
jne 0x1400061b0
lea rcx, str.Failed_to_allocate_buffer_for_SpoofBinary_n_n
call fcn.140001010
jmp 0x14000626f
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x1400061dc
call fcn.14000a310
and eax, 0x800000ff
jge 0x1400061cd
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 0x1400061b8
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.14000d5e0
xor edx, edx
mov dword [rsp + 0x3c], 0x208
mov r8d, 0x208
lea rcx, [0x14002dcf0]
call fcn.14001cdb0
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.140006b70
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400062a0
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 0x14000631c
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 0x14000637c
xor edx, edx
mov dword [rsp + 0x58], 0x208
mov r8d, 0x208
lea rcx, [0x14002dcf0]
call fcn.14001cdb0
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 0x1400064a9
mov r8, qword [rsp + 0x50]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCopyTreeW]
test eax, eax
jne 0x140006447
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 0x140006414
call fcn.14001cdb0
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 0x14000649e
call fcn.14001cdb0
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 0x14000648f
xor edx, edx
mov dword [rsp + 0x58], 0x208
mov r8d, 0x208
lea rcx, [0x14002dcf0]
call fcn.14001cdb0
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.140006b70
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400064c0
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 0x140006599
xor edx, edx
mov dword [rsp + 0x30], 0x208
lea rcx, [0x14002dcf0]
mov r8d, 0x208
test eax, eax
jne 0x140006559
call fcn.14001cdb0
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 0x140006599
call fcn.14001cdb0
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.140006b70
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x1400065c0
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 0x1400066a2
xor edx, edx
mov dword [rsp + 0x30], 0x208
lea rcx, [0x14002dcf0]
mov r8d, 0x208
test eax, eax
jne 0x14000665f
call fcn.14001cdb0
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 0x1400066a2
call fcn.14001cdb0
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.140006b70
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x140006a00
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.14001cdb0
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.14001cdb0
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.14001cdb0
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 0x140006ad9
test ax, ax
je 0x140006b13
cmp cx, cx
jne 0x140006ad9
cmp ax, cx
jne 0x140006ad9
cmp word [rsp + 0x50], 0
je 0x140006b13
test byte [rsp + 0x20], 0x10
lea rdx, str.desktop.ini
je 0x140006af6
lea rcx, [rsp + 0x270]
call fcn.140006a00
jmp 0x140006b13
lea rcx, [rsp + 0x4c]
call qword [sym.imp.SHLWAPI.dll_StrStrW]
test rax, rax
je 0x140006b13
lea rcx, [rsp + 0x270]
call fcn.1400066c0
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140006a80
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x690]
xor rcx, rsp
call fcn.140006b70
mov rbx, qword [rsp + 0x6b8]
add rsp, 0x6a0
pop rdi
ret

Function at 0x140007554
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000759e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000759e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000759e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000759e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000759e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400075a0
xor al, al
add rsp, 0x28
ret
Function at 0x14000e18c
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 0x14000e1fb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000e1fb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000e1fb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000e1fb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000e1fb
cmp dword [rcx + 0x84], 0xe
jbe 0x14000e1fb
cmp dword [rcx + 0xf8], 0
je 0x14000e1fb
mov ecx, ebx
call fcn.14000e2ac
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.14000e088
nop
cmp dword [rbp + 0x20], 0
je 0x14000e249
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000e254
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14000e18c

Function at 0x14000e390
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000e18c
Function at 0x140014500
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 0x140014530
xor eax, eax
jmp 0x1400145f3
mov rbp, rbx
cmp word [rax], si
je 0x140014555
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001453c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140014538
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.140014420
movsxd r14, eax
test eax, eax
jne 0x140014593
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140014529
mov rcx, r14
call fcn.140010710
mov rdi, rax
test rax, rax
jne 0x1400145ac
xor ecx, ecx
call fcn.14000f8cc
jmp 0x140014588
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.140014420
test eax, eax
jne 0x1400145dd
mov rcx, rdi
call fcn.14000f8cc
jmp 0x1400145e7
xor ecx, ecx
call fcn.14000f8cc
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 0x14001899c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400189b2
mov al, 1
jmp 0x140018a12
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400189c3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140018a10
mov ecx, dword [rcx + 0x18]
nop
call fcn.140014e20
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140018a10
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140018a10
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140018a10
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140018a12
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001a288
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.14000a4fc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001a312
cmp byte [rbp - 0x21], r15b
je 0x14001a30d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001a348
call fcn.14000fb1c
test eax, eax
jne 0x14001a334
cmp byte [rbp - 0x21], r15b
je 0x14001a32c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001a348
cmp byte [rbp - 0x21], r15b
je 0x14001a345
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.140012a60
test eax, eax
jne 0x14001a3e8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000a4fc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001a387
cmp byte [rbp - 0x21], r15b
je 0x14001a3bc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001a3bc
call fcn.14000fb1c
test eax, eax
jne 0x14001a3a8
cmp byte [rbp - 0x21], r15b
je 0x14001a3a1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001a3bc
cmp byte [rbp - 0x21], r15b
je 0x14001a3b9
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.140012a60
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001a3e8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001a3eb
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001a3f9
mov rcx, rdi
call fcn.14000f8cc
cmp byte [rbp + 0x3f], r15b
je 0x14001a408
mov rcx, qword [rbp + 0x27]
call fcn.14000f8cc
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 0x14001c970
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001c998
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001c998
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1617fe9d580
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r14
sub rsp, 0x38
mov rax, qword [0x1617fefd018]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov ecx, edx
mov edi, edx
mov rsi, r9
mov rbp, r8
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x20], eax
lea r14, [0x1617ff023b0]
mov rcx, 0xffffffffffffffff
nop dword [rax + rax]
inc rcx
cmp byte [r14 + rcx], 0
jne 0x1617fe9d5c0
test ecx, ecx
je 0x1617fe9d672
movzx eax, byte [0x1617ff023b0]
xor byte [rsp + 0x20], al
xor eax, eax
cmp ecx, 1
setne al
mov edx, eax
movzx eax, byte [rdx + r14]
xor byte [rsp + 0x21], al
xor eax, eax
inc edx
cmp edx, ecx
cmovne eax, edx
mov edx, eax
movzx eax, byte [rax + r14]
xor byte [rsp + 0x22], al
xor eax, eax
inc edx
cmp edx, ecx
cmovne eax, edx
movzx eax, byte [rax + r14]
xor byte [rsp + 0x23], al
mov eax, dword [rsp + 0x20]
test ecx, ecx
je 0x1617fe9d672
xor r10d, r10d
test edi, edi
jle 0x1617fe9d672
mov qword [rsp + 0x30], rbx
xor edx, edx
movsxd rbx, ecx
mov r9, rbp
mov r11, rdi
nop word [rax + rax]
movzx ecx, byte [rdx + r14]
lea r8, [rdx + 1]
xor byte [r9], cl
lea r9, [r9 + 1]
lea ecx, [r10 + 1]
xor r10d, r10d
cmp r8, rbx
cmovne r10d, ecx
xor edx, edx
cmp r8, rbx
cmovne rdx, r8
sub r11, 1
jne 0x1617fe9d640
mov rbx, qword [rsp + 0x30]
mov r8, rdi
mov dword [rsi], eax
lea rcx, [rsi + 4]
mov rdx, rbp
call fcn.1617fec8190
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1617feaa320
add rsp, 0x38
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1617fe9e0e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x4d8], rbx
mov rax, qword [0x1617fefd018]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov r14d, r8d
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x50], rdx
xor r15d, r15d
mov dword [rsp + 0x5c], r15d
lea r8d, [r15 + 1]
lea rdx, [0x1617fef1d9c]
mov rcx, rdi
call fcn.1617fea5980
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x1617fe9e14f
mov rdx, qword [rdi]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x5c]
mov r8d, dword [rdi + 0x10]
mov rcx, qword [rsi + 0x800b0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov r8d, 0x401
lea rcx, [rsp + 0x70]
call fcn.1617fec85a0
mov dword [rsp + 0x58], r15d
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x58]
mov r8d, 0x400
lea rdx, [rsp + 0x70]
mov rcx, qword [rsi + 0x800b8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1617fe9e2a6
movsxd rax, dword [rsp + 0x58]
test eax, eax
je 0x1617fe9e2a6
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x68], eax
mov rbx, rax
mov rcx, rax
call fcn.1617feaa3b4
mov qword [rsp + 0x60], rax
mov r8, rbx
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.1617fec8190
mov r8d, r14d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.1617fea78d0
mov rdx, rax
lea rcx, [rsi + 0x80018]
call fcn.1617fea73a0
xor edx, edx
mov r8d, 0x401
lea rcx, [rsp + 0x70]
call fcn.1617fec85a0
cmp dword [rsp + 0x58], 0x400
jb 0x1617fe9e273
mov dword [rsp + 0x58], r15d
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x58]
mov r8d, 0x400
lea rdx, [rsp + 0x70]
mov rcx, qword [rsi + 0x800b8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1617fe9e1c1
jmp 0x1617fe9e2a6
mov qword [rsp + 0x68], r15
xor ecx, ecx
call fcn.1617feaa3b4
mov qword [rsp + 0x60], rax
mov r8d, r14d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.1617fea78d0
mov rdx, rax
lea rcx, [rsi + 0x80018]
call fcn.1617fea73a0
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1617fe9e2dc
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1617fe9e2d7
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1617fe9e313
mov rcx, r8
call fcn.1617feaa344
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov al, 1
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.1617feaa320
mov rbx, qword [rsp + 0x4d8]
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1617fecaf50
int3