joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b9390
Capabilities:
Encrypt data using dpapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r14
sub rsp, 0x50
mov r14, rdx
mov rsi, rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
lea ecx, [rbp + 0x20]
call fcn.14008fcb8
mov rbx, rax
mov qword [rsp + 0x80], rax
test rax, rax
je 0x1400b93f4
mov rdx, qword [rsi]
mov r8, qword [rsi + 8]
sub r8, rdx
mov qword [rax], rbp
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], 7
mov word [rax], bp
shr r8, 1
mov rcx, rax
call fcn.140094650
jmp 0x1400b93f7
mov rbx, rbp
mov qword [r14], rbx
mov dword [rsp + 0x20], 1
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
cmp rcx, rax
je 0x1400b9469
sub rax, rcx
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400b941e
mov rcx, qword [rbx]
xor r8d, r8d
mov edx, eax
call qword [sym.imp.CRYPT32.dll_CryptUnprotectMemory]
test eax, eax
je 0x1400b9488
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400b943a
mov rdx, qword [rbx]
mov rax, qword [rsi + 0x18]
mov rcx, qword [rbx + 0x10]
sub rcx, rax
lea rdi, [rdx + rax*2]
xor eax, eax
rep stosb byte [rdi], al
mov rax, qword [rsi + 0x18]
cmp qword [rbx + 0x10], rax
jb 0x1400b9482
mov qword [rbx + 0x10], rax
cmp qword [rbx + 0x18], 8
jb 0x1400b9465
mov rbx, qword [rbx]
mov word [rbx + rax*2], bp
mov rax, r14
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
call fcn.140004060
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x28]
call fcn.1400b3a40
lea rdx, [0x14010e128]
lea rcx, [rsp + 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1400cbc20
Capabilities:
Read http header

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x40
mov rdi, rdx
mov rbx, rcx
xor esi, esi
mov dword [rax - 0x18], esi
mov qword [rcx], rsi
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], 7
mov word [rcx], si
mov dword [rax - 0x18], 1
mov dword [rax + 0x18], esi
mov qword [rax - 0x20], rsi
lea rax, [rax + 0x18]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 0x14]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov edx, dword [rsp + 0x60]
mov rax, qword [rbx + 0x10]
cmp rdx, rax
ja 0x1400cbc9e
mov qword [rbx + 0x10], rdx
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400cbc98
mov rax, qword [rbx]
mov word [rax + rdx*2], si
jmp 0x1400cbcac
xor r8d, r8d
sub rdx, rax
mov rcx, rbx
call fcn.140095f60
mov r9, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400cbcb9
mov r9, qword [rbx]
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [r8 + 0x14]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov r8, qword [rbx + 0x10]
test r8, r8
je 0x1400cbdef
mov r9, qword [rbx + 0x18]
cmp r9, 8
jb 0x1400cbcf7
mov rax, qword [rbx]
mov rcx, rax
jmp 0x1400cbcfd
mov rax, rbx
mov rcx, rbx
lea rdx, [r8 + r8]
add rax, rdx
cmp word [rcx], 0
jne 0x1400cbd7f
lea rdx, [rcx + 2]
cmp rdx, rax
je 0x1400cbd22
cmp word [rdx], 0
jne 0x1400cbd50
add rdx, 2
cmp rdx, rax
jne 0x1400cbd13
mov qword [rbx + 0x10], rsi
mov rax, rbx
cmp r9, 8
jb 0x1400cbd32
mov rax, qword [rbx]
mov word [rax], si
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
sub rax, 2
cmp word [rax], 0
je 0x1400cbd50
sub rax, rdx
lea r8, [rax + 2]
sar r8, 1
mov rcx, rbx
call fcn.140094650
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
sub rax, 2
cmp word [rax], 0
jne 0x1400cbdef
nop dword [rax]
mov rcx, rax
sub rax, 2
cmp word [rax], 0
je 0x1400cbd90
sub rdx, rcx
mov rax, r8
cmp r9, 8
mov r9, rcx
jb 0x1400cbdb7
sub r9, qword [rbx]
add rdx, qword [rbx]
mov rcx, qword [rbx]
jmp 0x1400cbdc0
sub r9, rbx
add rdx, rbx
mov rcx, rbx
sar r9, 1
sar rdx, 1
sub rax, r9
cmp rax, rdx
cmovb rdx, rax
lea rcx, [rcx + r9*2]
sub r8, rdx
mov qword [rbx + 0x10], r8
sub r8, r9
lea r8, [r8*2 + 2]
lea rdx, [rcx + rdx*2]
call sub.VCRUNTIME140.dll_memmove
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x1400cbe10
Capabilities:
Read http header

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1401da448]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rsi, r8
mov r12, rdx
mov r14, rcx
mov rdi, qword [r8]
mov rbx, qword [rdi + 0x58]
mov r8, qword [rbx + 8]
lea rdx, [rdi + 0x58]
lea rcx, [rdi + 0x58]
call fcn.14005b8d0
mov qword [rbx + 8], rbx
mov qword [rbx], rbx
mov qword [rbx + 0x10], rbx
xor r15d, r15d
mov qword [rdi + 0x60], r15
mov dword [rbp - 0x40], r15d
mov qword [rsp + 0x28], r15
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r15 + 0x13]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], r15w
mov edx, dword [rbp - 0x40]
test rdx, rdx
jne 0x1400cbeb1
mov qword [rbp - 0x20], rdx
mov word [rbp + rdx*2 - 0x30], r15w
jmp 0x1400cbebd
xor r8d, r8d
lea rcx, [rbp - 0x30]
call fcn.140095f60
lea r9, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae r9, qword [rbp - 0x30]
mov qword [rsp + 0x28], r15
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [r8 + 0x13]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rdi, rax
lea rbx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rbx, qword [rbp - 0x30]
mov dword [rax], r15d
mov r8d, 0xa
lea rdx, [rbp - 0x38]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstol]
mov r15d, eax
cmp rbx, qword [rbp - 0x38]
je 0x1400cc01a
cmp dword [rdi], 0x22
je 0x1400cc027
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x1400cbf6f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400cbf6a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400cbf6a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008fcf4
mov rax, qword [rsi]
mov word [rax + 0x88], r15w
mov rdx, r14
lea rcx, [rbp - 0x30]
call fcn.1400cbc20
nop
mov rcx, qword [rsi]
add rcx, 0x90
cmp rcx, rax
je 0x1400cbfad
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x1400cbfa3
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
call fcn.140094650
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x1400cbff0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400cbfeb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400cbfeb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008fcf4
mov rdx, qword [rsi]
add rdx, 0x58
mov rcx, r12
call fcn.1400aa010
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400cf780
add rsp, 0x70
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, str.invalid_stoi_argument
call sub.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_
int3
lea rcx, str.stoi_argument_out_of_range
call sub.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_
int3
Function at 0x1400cf570
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400cf5f4
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400eb480]
cmp byte [rcx + rax], 0
je 0x1400cf5f4
dec r8
sub rdx, 1
jne 0x1400cf5da
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000cbc0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000cbd0]
mov dword [rax], 1
mov rax, qword [0x14000cbe0]
mov dword [rax], 1
mov rax, qword [0x14000cb60]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000cbb0]
mov dword [0x14000f00c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x1400010b0
mov ecx, 1
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x14000ccc0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x14000cca0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x14000cb10]
cmp dword [rax], 1
je 0x1400010f1
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001104
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001610
Capabilities:
Log keystrokes via application hook

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rdi, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rsi, [dbg.KeyboardProc(int, unsigned long long, long long)]
xor ecx, ecx
call rdi
mov rbx, qword [sym.imp.USER32.dll_SetWindowsHookExA]
xor r9d, r9d
mov rdx, rsi
mov r8, rax
mov ecx, 0xd
call rbx
xor ecx, ecx
mov r15, rax
call rdi
xor r9d, r9d
mov rdx, rsi
mov ecx, 0xd
mov r8, rax
call rbx
xor ecx, ecx
mov r14, rax
call rdi
xor r9d, r9d
mov rdx, rsi
mov ecx, 2
mov r8, rax
call rbx
xor ecx, ecx
mov r13, rax
call rdi
xor r9d, r9d
mov rdx, rsi
mov ecx, 2
mov r8, rax
call rbx
mov rbp, qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov r12, rax
nop dword [rax + rax]
mov edx, 0xffffffff
mov rcx, qword [0x14000f528]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, r15
call rbp
mov rcx, r13
call rbp
xor ecx, ecx
call rdi
xor r9d, r9d
mov rdx, rsi
mov ecx, 0xd
mov r8, rax
call rbx
xor ecx, ecx
mov r15, rax
call rdi
xor r9d, r9d
mov rdx, rsi
mov ecx, 2
mov r8, rax
call rbx
mov rcx, r14
mov r13, rax
call rbp
mov rcx, r12
call rbp
xor ecx, ecx
call rdi
xor r9d, r9d
mov rdx, rsi
mov ecx, 0xd
mov r8, rax
call rbx
xor ecx, ecx
mov r14, rax
call rdi
xor r9d, r9d
mov rdx, rsi
mov ecx, 2
mov r8, rax
call rbx
xor ecx, ecx
mov r12, rax
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400016a0
Function at 0x140001840
Capabilities:
Enumerate threads

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x48
xor edx, edx
mov dword [rsp + 0x20], 0x1c
lea rsi, [rsp + 0x20]
mov ebx, ecx
mov ecx, 4
call sym.CreateToolhelp32Snapshot
mov rdx, rsi
mov rcx, rax
mov r12, rax
call sym.Thread32First
test eax, eax
jne 0x1400018a7
xor r13d, r13d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r13d
add rsp, 0x48
pop rbx
pop rsi
pop r12
pop r13
ret
mov rdx, rsi
mov rcx, r12
call sym.Thread32Next
test eax, eax
je 0x140001877
cmp dword [rsp + 0x2c], ebx
jne 0x140001898
mov r13d, dword [rsp + 0x28]
jmp 0x14000187a

Function at 0x1400018c0
Capabilities:
Enumerate process modules

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x268
mov r13, rcx
mov ebp, edx
mov rbx, r8
mov dword [rsp + 0x20], 0x238
lea rsi, [rsp + 0x20]
mov ecx, 8
call sym.CreateToolhelp32Snapshot
mov rdx, rsi
mov rcx, rax
mov r12, rax
call sym.Module32First
test eax, eax
je 0x140001958
lea rdi, [rsp + 0x50]
jmp 0x14000191f
mov rdx, rsi
mov rcx, r12
call sym.Module32Next
test eax, eax
je 0x140001958
mov rdx, rdi
mov rcx, rbx
call sym.strcmp
test eax, eax
jne 0x140001910
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x150]
lea rcx, [r13 + 4]
call sym.strcpy
mov dword [r13], ebp
mov eax, 1
jmp 0x140001963
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [r13 + 0x108], eax
mov rax, r13
add rsp, 0x268
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x140001980
Capabilities:
Enumerate processes

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x278
lea rdi, [rsp + 0x140]
mov r12, rcx
mov rbx, rdx
mov dword [rsp + 0x140], 0x130
xor edx, edx
mov ecx, 2
call sym.CreateToolhelp32Snapshot
mov rdx, rdi
mov rcx, rax
mov r13, rax
call sym.Process32First
test eax, eax
je 0x140001a70
mov r14, qword [sym.imp.KERNEL32.dll_OpenProcess]
lea rsi, [rsp + 0x30]
mov rbp, qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001a18
mov r8d, 0x10c
mov rdx, rsi
mov rcx, r12
mov dword [rsp + 0x138], 0
call sym.memcpy
mov rcx, r15
call rbp
mov rdx, rdi
mov rcx, r13
call sym.Process32Next
test eax, eax
je 0x140001a70
xor edx, edx
mov r8d, dword [rsp + 0x148]
mov ecx, 0x1fffff
call r14
cmp byte [rbx], 0
mov edx, dword [rsp + 0x148]
mov r15, rax
je 0x1400019e8
mov r8, rbx
mov rcx, rsi
call sym.ModuleIsAble_unsigned_long__char_const___clone_part0_
mov eax, dword [rsp + 0x138]
mov rdx, rsi
mov rcx, r12
mov r8d, 0x10c
mov dword [rsp + 0x2c], eax
call sym.memcpy
cmp dword [rsp + 0x2c], 1
jne 0x140001a04
mov rcx, r13
call rbp
jmp 0x140001a7c
mov dword [r12 + 0x108], 0
mov rax, r12
add rsp, 0x278
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140001b10
Capabilities:
Enumerate threads

Disassembly:
test ecx, ecx
jne 0x140001b20
xor eax, eax
ret
jmp sym.GetMainThreadFromId_unsigned_long___clone_part0_
Function at 0x140001bb0
Capabilities:
Encode data using xor
Query or enumerate registry value

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa70
xor edx, edx
mov r8d, 0xa20
mov qword [rsp + 0x40], 0
mov rbp, rcx
lea rcx, [rsp + 0x48]
call sym.memset
lea rax, [rsp + 0x38]
xor r8d, r8d
mov dword [rsp + 0x34], 0xa28
mov qword [rsp + 0x20], rax
mov r9d, 0x201
mov rcx, 0xffffffff80000002
lea rdx, str.SOFTWARETopDomaine_Learning_ClassStudent
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140001c30
xor eax, eax
add rsp, 0xa70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
lea rax, [rsp + 0x34]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x38]
lea r12, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, str.knock1
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x140001c12
mov eax, dword [rsp + 0x34]
test eax, eax
jle 0x140001d20
sub eax, 1
mov rbx, r12
shr eax, 2
lea rdx, [rsp + rax*4 + 0x44]
mov rax, r12
nop word [rax + rax]
xor byte [rax], 0x15
xor byte [rax + 1], 0xf
xor byte [rax + 2], 0xf
xor byte [rax + 3], 0x15
add rax, 4
cmp rax, rdx
jne 0x140001c90
lea r13, [0x14000c05b]
xor esi, esi
lea r14, [0x14000c05f]
jmp 0x140001ccc
mov eax, dword [rsp + 0x34]
add rsi, 1
cmp eax, esi
jle 0x140001cf3
movzx edx, byte [r12 + rsi]
mov rcx, r13
call dbg.printf(char const*, ::)
test sil, 7
jne 0x140001cc0
mov rcx, r14
add rsi, 1
call sym.puts
mov eax, dword [rsp + 0x34]
cmp eax, esi
jg 0x140001ccc
test eax, eax
jle 0x140001d20
sub eax, 1
lea rdx, [r12 + rax + 1]
nop
cmp byte [rbx + 1], 0
jne 0x140001d17
movzx eax, byte [rbx]
movsxd rcx, edi
add edi, 1
test al, al
mov byte [rbp + rcx], al
je 0x140001d20
add rbx, 1
cmp rbx, rdx
jne 0x140001d00
mov eax, 1
jmp 0x140001c14

Function at 0x140001d30
Capabilities:
Set registry value

Disassembly:
push r13
push r12
push rdi
push rbx
sub rsp, 0x118
movabs rax, 0x435c4d4554535953
mov qword [rsp + 0x40], rax
mov r9, rcx
mov ecx, 0x12
mov r12, rdx
movabs rax, 0x6f43746e65727275
mov rdx, r9
mov rbx, r8
mov qword [rsp + 0x48], rax
lea rdi, [rsp + 0x78]
movabs rax, 0x7465536c6f72746e
mov qword [rsp + 0x50], rax
lea r13, [rsp + 0x40]
movabs rax, 0x656369767265535c
mov qword [rsp + 0x58], rax
movabs rax, 0x4c746e6576455c73
mov qword [rsp + 0x60], rax
movabs rax, 0x696c7070415c676f
mov qword [rsp + 0x68], rax
movabs rax, 0x5c6e6f69746163
mov qword [rsp + 0x70], rax
xor eax, eax
rep stosq qword [rdi], rax
lea rcx, [rsp + 0x77]
call sym.strcpy
lea r8, [rsp + 0x38]
mov rdx, r13
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x140001e00
xor eax, eax
add rsp, 0x118
pop rbx
pop rdi
pop r12
pop r13
ret
mov rcx, rbx
call sym.strlen
xor r8d, r8d
mov rcx, qword [rsp + 0x38]
mov rdx, r12
add eax, 1
mov qword [rsp + 0x20], rbx
mov r9d, 2
mov dword [rsp + 0x28], eax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140001de9
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add rsp, 0x118
pop rbx
pop rdi
pop r12
pop r13
ret
Function at 0x140001e50
Capabilities:
Query or enumerate registry value

Disassembly:
push r13
push r12
push rdi
sub rsp, 0x130
movabs rax, 0x435c4d4554535953
mov qword [rsp + 0x60], rax
lea r13, [rsp + 0x60]
mov r8, rcx
mov r12, rdx
lea rdi, [rsp + 0x98]
mov ecx, 0x12
mov rdx, r8
movabs rax, 0x6f43746e65727275
mov qword [rsp + 0x68], rax
movabs rax, 0x7465536c6f72746e
mov qword [rsp + 0x70], rax
movabs rax, 0x656369767265535c
mov qword [rsp + 0x78], rax
movabs rax, 0x4c746e6576455c73
mov qword [rsp + 0x80], rax
movabs rax, 0x696c7070415c676f
mov qword [rsp + 0x88], rax
movabs rax, 0x5c6e6f69746163
mov qword [rsp + 0x90], rax
xor eax, eax
rep stosq qword [rdi], rax
lea rcx, [rsp + 0x97]
call sym.strcpy
lea rax, [rsp + 0x54]
xor r8d, r8d
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov rdx, r13
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x54], 2
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20019
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov r8d, eax
xor eax, eax
test r8d, r8d
jne 0x140001f7e
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x58]
mov rdx, r12
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
sete al
movzx eax, al
add rsp, 0x130
pop rdi
pop r12
pop r13
ret

Function at 0x140001f90
Capabilities:
Inspect load icon resource

Disassembly:
sub rsp, 0x28
movabs rax, 0x1000004cf
mov dword [0x14000f280], 0x210
mov qword [0x14000f290], rax
mov eax, dword [0x14000f6a8]
mov dword [0x14000f298], eax
mov qword [0x14000f288], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, 0x4cf
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadIconA]
xor ecx, ecx
mov dword [0x14000f2b0], 0xccb3b8c0
mov qword [0x14000f2a0], rax
lea rdx, [0x14000f280]
movabs rax, 0xf1cecec8c4b5d2ce
mov qword [0x14000f2a8], rax
mov eax, 0xfffff2d0
mov word [0x14000f2b4], ax
mov byte [0x14000f2b6], 0
call qword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x1400020c0
Capabilities:
Query or enumerate registry value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x340
xor r9d, r9d
xor r8d, r8d
movabs rax, 0x4552415754464f53
mov qword [rsp + 0x60], rax
lea rdi, [rsp + 0xa0]
mov rsi, rcx
mov ebp, edx
movabs rax, 0x32333436574f575c
mov ecx, 0x11
mov dword [rsp + 0x50], 2
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x60]
movabs rax, 0x706f545c65646f4e
mov qword [rsp + 0x70], rax
movabs rax, 0x655c6e69616d6f44
mov qword [rsp + 0x78], rax
movabs rax, 0x6e696e7261654c2d
mov qword [rsp + 0x80], rax
movabs rax, 0x207373616c432067
mov qword [rsp + 0x88], rax
movabs rax, 0x647261646e617453
mov qword [rsp + 0x90], rax
movabs rax, 0x30302e315c
mov qword [rsp + 0x98], rax
xor eax, eax
rep stosq qword [rdi], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], 0
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x28], 0x20019
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1400022e0
lea rax, [rsp + 0x54]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x58]
lea rbx, [rsp + 0x130]
mov dword [rsp + 0x54], 0x209
mov qword [rsp + 0x28], rax
lea rdx, str.TargetDirectory
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x140002218
xor r12d, r12d
test ebp, ebp
jne 0x140002368
mov eax, r12d
add rsp, 0x340
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov ecx, dword [rsp + 0x54]
test ecx, ecx
jle 0x140002263
sub ecx, 1
mov rdx, rbx
lea r9, [rsp + rcx + 0x131]
jmp 0x14000223c
add rdx, 1
mov eax, r8d
cmp r9, rdx
je 0x140002263
movzx ecx, byte [rdx]
movsxd r8, eax
cmp cl, 0x5c
mov byte [rsi + r8], cl
lea r8d, [rax + 1]
jne 0x140002230
add rdx, 1
add eax, 2
movsxd r8, r8d
cmp r9, rdx
mov byte [rsi + r8], 0x5c
jne 0x14000223c
test ebp, ebp
mov r12d, 1
je 0x140002203
movabs rax, 0xb6beb7c2a1c8f1bb
mov dword [0x14000f280], 0x210
mov dword [0x14000f294], 0x10
mov dword [0x14000f430], 0
mov dword [0x14000f474], 1
mov qword [0x14000f330], rax
mov dword [0x14000f338], 0xa6b9c9b3
lea rdx, [0x14000f280]
mov ecx, 1
mov byte [0x14000f33c], 0
mov dword [0x14000f434], 0xbecae1cc
mov byte [0x14000f438], 0
call qword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
jmp 0x140002203
movabs rax, 0xe1b2a2d7aabff2b4
mov ecx, 1
xor r12d, r12d
mov dword [0x14000f280], 0x210
mov qword [0x14000f330], rax
mov eax, 0xffffdcb0
mov dword [0x14000f294], 0x10
lea rdx, [0x14000f280]
mov dword [0x14000f430], 0
mov dword [0x14000f474], 1
mov dword [0x14000f338], 0xa7caedb1
mov word [0x14000f33c], ax
mov byte [0x14000f33e], 0
mov dword [0x14000f434], 0xbecae1cc
mov byte [0x14000f438], 0
call qword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
jmp 0x140002203
movabs rax, 0xb6beb7c2a1c8f1bb
mov dword [0x14000f280], 0x210
mov dword [0x14000f294], 0x10
mov dword [0x14000f430], 0
mov dword [0x14000f474], 1
mov qword [0x14000f330], rax
mov dword [0x14000f338], 0xdcb0a7ca
jmp 0x1400022b0
Function at 0x140002450
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push r14
push r13
push r12
sub rsp, 0x20
mov r12, rcx
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x140002478
add rsp, 0x20
pop r12
pop r13
pop r14
ret
mov rcx, r12
call sym.strlen
mov ecx, 0x42
lea rdx, [rax + 1]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r13, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r14, rax
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rcx, r12
call sym.strlen
mov rdx, r12
mov rcx, r14
lea r8, [rax + 1]
call sym.memcpy
mov rdx, r13
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rcx, r13
add rsp, 0x20
pop r12
pop r13
pop r14
jmp qword [sym.imp.KERNEL32.dll_GlobalFree]

Function at 0x1400024f0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
lea r12, str.ntsd.exe
lea rdx, [0x14000c070]
mov rcx, r12
call sym.fopen
test rax, rax
je 0x140002520
add rsp, 0x20
pop rbx
pop r12
pop r13
ret
lea r8, str.EXETYPE
xor ecx, ecx
mov edx, 0x162e
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
mov r13, rax
je 0x140002514
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, r13
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
lea rdx, [0x14000c083]
mov rcx, r12
mov r13, rax
call sym.fopen
test rax, rax
mov r12, rax
je 0x14000258a
mov r9, rax
mov r8d, ebx
mov edx, 1
mov rcx, r13
call sym.fwrite
mov rcx, r12
add rsp, 0x20
pop rbx
pop r12
pop r13
jmp sym.fclose

Function at 0x140002770
Capabilities:
Get graphical window text

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
mov r13, qword [sym.imp.USER32.dll_GetWindow]
mov r12, qword [sym.imp.USER32.dll_GetWindowTextA]
mov rbp, qword [sym.imp.USER32.dll_SetWindowTextA]
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
lea rsi, [rsp + 0x20]
mov rbx, rcx
nop dword [rax + rax]
mov rcx, rbx
mov edx, 2
call r13
mov r8d, 0x64
mov rdx, rsi
mov rcx, rax
call r12
mov rcx, rbx
mov rdx, rsi
call rbp
mov ecx, 0x1f4
call rdi
jmp 0x1400027a8