joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b52b0
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 [str.ff_v_]
mov rdi, rax
test rax, rax
jne 0x1400b52f2
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 0x1400b5339
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 0x1400b5392
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 0x1400b5350
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400b53d3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400c8132]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400c8133]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400b53a0
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 0x1400b6254
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x140136efd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140136f0d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140136ef5
lea eax, [rcx + 1]
jmp 0x140136f1b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140136f2e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140136f14
sub eax, 3
jb 0x140136f4e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140136f9d
sar eax, 1
movsxd rbp, eax
jb 0x140136f84
jmp 0x140136f5c
add ebx, ebx
jne 0x140136f5a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140136f84
inc ecx
add ebx, ebx
jne 0x140136f6a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140136f84
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140136f7d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140136f6c
add ecx, 2
jmp 0x140136f89
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140136eb2
jmp 0x140136efd
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xb4e00
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140136fed
cmp rsi, rcx
jae 0x140136ff5
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140136fd4
cmp al, 0x8f
ja 0x140136fd4
cmp byte [rsi - 2], 0xf
je 0x140136fda
sub al, 0xe8
cmp al, 1
ja 0x140136fbe
cmp rsi, rcx
jae 0x140136ff5
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140136fc4
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140136ff5
lodsb al, byte [rsi]
jmp 0x140136fd4
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x133000]
mov eax, dword [rdi]
or eax, eax
je 0x140137052
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1374ec]
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 0x140137002
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 0x14013704c
mov qword [rbx], rax
add rbx, 8
jmp 0x140137022
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14013708c
cmp al, 0xef
ja 0x14013707e
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14013705e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14013706d
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.14013710b], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.14013710b
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1401370fb
sub rsp, 0xffffffffffffff80
jmp 0x1400013f0
Function at 0x1429a51b8
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1429a533f
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1429a51e9
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1429a51cf
add dl, dl
jne 0x1429a51f6
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1429a5256
xor eax, eax
add dl, dl
jne 0x1429a5205
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1429a530d
add dl, dl
jne 0x1429a5216
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1429a5223
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1429a5230
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1429a523d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1429a524a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1429a51de
mov eax, 1
add dl, dl
jne 0x1429a5266
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1429a5273
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1429a525b
sub eax, ebx
mov ebx, 1
jne 0x1429a52ac
mov ecx, 1
add dl, dl
jne 0x1429a528e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1429a529b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1429a5283
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1429a51de
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1429a52c8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1429a52d5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1429a52bd
cmp eax, 0x7d00
jae 0x1429a52fb
cmp eax, 0x500
jb 0x1429a52f6
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1429a51de
cmp eax, 0x7f
ja 0x1429a52fe
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1429a51de
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1429a5332
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1429a51de
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180001410
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x20], r9d
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x50
xor edi, edi
mov rbx, r8
and qword [rbp + 0x30], rdi
mov rsi, rdx
test r8, r8
je 0x180001438
and dword [r8], edi
and qword [rbp + 0x28], rdi
and dword [rbp + 0x38], edi
test rsi, rsi
je 0x1800014b5
and qword [rbp - 8], rdi
lea r9, [rbp - 0x20]
mov qword [rbp - 0x10], rcx
lea rdx, [rbp - 0x18]
mov rcx, rsi
mov qword [rbp - 0x18], 0xa
mov r8d, 3
call qword [sym.imp.ntdll.dll_LdrFindResource_U]
test eax, eax
js 0x18000148a
mov rdx, qword [rbp - 0x20]
lea r9, [rbp + 0x38]
lea r8, [rbp + 0x28]
mov rcx, rsi
call qword [sym.imp.ntdll.dll_LdrAccessResource]
test eax, eax
cmovns edi, dword [rbp + 0x38]
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x1800014b5
test edi, edi
je 0x1800014b5
mov al, byte [rbp + 0x40]
lea r8, [rbp + 0x30]
mov edx, edi
mov byte [rsp + 0x20], al
call fcn.1800014c4
test rbx, rbx
je 0x1800014b7
mov ecx, dword [rbp + 0x30]
mov dword [rbx], ecx
jmp 0x1800014b7
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800014c4
Capabilities:
Access pe header
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x57]
sub rsp, 0xa0
mov r15, rcx
lea rdi, [rbp - 0x29]
xor eax, eax
mov rbx, rdx
xor r13d, r13d
mov r12, r8
mov qword [r8], r13
mov esi, r13d
mov r8, rbx
lea edx, [rax + 0x18]
mov ecx, edx
rep stosb byte [rdi], al
mov ecx, edx
lea rdi, [rbp - 0x41]
rep stosb byte [rdi], al
lea ecx, [rax + 0x10]
lea rdi, [rbp - 0x51]
rep stosb byte [rdi], al
mov rax, qword gs:[0x30]
lea edx, [r13 + 8]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r14, rax
test rax, rax
je 0x180001694
mov r8, rbx
mov rdx, r15
mov rcx, rax
call fcn.180008fc0
test ebx, ebx
je 0x180001569
mov eax, 0x20757775
mov edx, ebx
mov rcx, r14
xor byte [rcx], al
inc rcx
rol eax, 1
add edx, 0xffffffff
jne 0x18000155d
mov qword [rbp - 0x41], r14
lea r9, [rbp - 0x51]
mov qword [rbp - 0x39], rbx
lea r8, [rbp - 0x11]
movups xmm0, xmmword [rbp - 0x41]
mov dword [rbp - 0x31], r13d
lea rdx, [rbp + 0xf]
movsd xmm1, qword [rbp - 0x31]
mov ecx, 1
movaps xmmword [rbp - 0x11], xmm0
movups xmm0, xmmword [rbp - 0x29]
movsd qword [rbp - 1], xmm1
movsd xmm1, qword [rbp - 0x19]
movaps xmmword [rbp + 0xf], xmm0
movsd qword [rbp + 0x1f], xmm1
call qword [sym.imp.msdelta.dll_ApplyDeltaB]
test eax, eax
je 0x180001678
mov rbx, qword [rbp - 0x49]
mov edx, r13d
mov r15, qword [rbp - 0x51]
lea edi, [rbx + 1]
shr edi, 1
je 0x1800015e6
mov r8, r15
movzx eax, word [r8]
lea r8, [r8 + 2]
add edx, eax
mov ecx, edx
movzx edx, dx
shr ecx, 0x10
add edx, ecx
add edi, 0xffffffff
jne 0x1800015cd
mov edi, edx
mov rcx, r15
shr edi, 0x10
add di, dx
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov rcx, rax
test rax, rax
je 0x180001620
movzx eax, word [rax + 0x58]
mov edx, dword [rcx + 0x58]
cmp di, ax
adc ax, r13w
sub di, ax
movzx eax, word [rcx + 0x5a]
cmp di, ax
adc ax, r13w
sub di, ax
jmp 0x180001626
mov edx, ebx
movzx edi, r13w
movzx eax, di
add eax, ebx
cmp byte [rbp + 0x7f], r13b
je 0x180001635
cmp eax, edx
jne 0x18000166e
mov rax, qword gs:[0x30]
mov r8, rbx
mov edx, 8
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
test rax, rax
je 0x18000166e
mov r8, rbx
mov rdx, r15
mov rcx, rax
call fcn.180008fc0
mov qword [r12], rbx
mov rcx, qword [rbp - 0x51]
call qword [sym.imp.msdelta.dll_DeltaFree]
mov rax, qword gs:[0x30]
mov r8, r14
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea r11, [rsp + 0xa0]
mov rax, rsi
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x180004f00
Capabilities:
Access pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov dword [rax + 0x20], r9d
push rdi
sub rsp, 0x50
mov ebp, ecx
mov edi, edx
mov rcx, qword [rsp + 0x80]
xor ebx, ebx
call qword [sym.imp.ntdll.dll_RtlDoesFileExists_U]
test al, al
je 0x180004ffa
cmp qword [rsp + 0x88], rbx
je 0x180004ffa
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x38]
mov dword [rsp + 0x78], 2
mov qword [rsp + 0x30], rbx
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea r9, [rsp + 0x30]
xor ecx, ecx
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x78]
call qword [sym.imp.ntdll.dll_LdrLoadDll]
test eax, eax
js 0x180004ffa
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x180004ffa
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
test rax, rax
je 0x180004ffa
mov rsi, qword [rsp + 0x30]
test rsi, rsi
je 0x180004ffa
mov r8d, edi
mov edx, ebp
call fcn.180005304
mov rdi, rax
test rax, rax
je 0x180004fed
mov rdx, qword [rsp + 0x88]
lea rcx, [rax + 0x40]
call fcn.1800067a0
mov rdx, qword [rsp + 0x90]
test rdx, rdx
je 0x180004fd8
lea rcx, [rdi + 0x24c]
call fcn.1800067a0
mov rdx, rsi
mov rcx, rdi
call fcn.180001d58
mov rcx, rdi
mov ebx, eax
call fcn.18000569c
mov rcx, rsi
call qword [sym.imp.ntdll.dll_LdrUnloadDll]
mov eax, ebx
jmp 0x180004ffc
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x180005014
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rbx, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x44]
mov r8d, pe_nt_image_headers64
call fcn.180008b60
mov edx, 0x114
lea rdi, [rsp + 0x40]
mov ecx, edx
xor eax, eax
rep stosb byte [rdi], al
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], edx
call qword [sym.imp.ntdll.dll_RtlGetVersion]
cmp dword [rsp + 0x44], 6
jb 0x1800050ed
jne 0x180005073
cmp dword [rsp + 0x48], 0
je 0x1800050ed
cmp dword [rsp + 0x4c], 0x1db0
je 0x1800050ed
mov r8d, 8
lea r9, [rbp + 0x90]
lea rdx, [rbp + 0x98]
mov dword [rbp + 0x98], r8d
lea ecx, [r8 + 0x5f]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x1800050c1
mov ecx, 1
test byte [rbp + 0x9c], cl
je 0x1800050d1
test dword [rbp + 0x9c], 0x400
jne 0x1800050d3
jmp 0x1800050d1
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
xor ecx, ecx
mov edx, dword [rsp + 0x4c]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rsi
call fcn.180004f00
jmp 0x1800050ef
xor al, al
mov rbx, qword [rsp + 0x180]
add rsp, 0x160
pop rdi
pop rsi
pop rbp
ret
Function at 0x180005104
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rax, qword [rcx + 0x38]
lea r8, [rsp + 0x50]
mov rsi, qword [rcx + 0x28]
mov r9, rcx
xor edi, edi
mov dword [rsp + 0x50], edi
mov edx, dword [rax + 0x10]
mov ecx, dword [rax + 8]
mov r14, qword [rax + 0x20]
shr edx, 2
not dl
and dl, 1
mov byte [rsp + 0x20], dl
mov rdx, qword [r9 + 0x10]
call fcn.180001410
mov rbp, rax
test rax, rax
je 0x1800051b8
mov r8d, dword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov rdx, rbp
mov qword [rsp + 0x28], rax
mov rcx, rsi
call fcn.180007094
mov rbx, rax
mov r8, rbp
mov rax, qword gs:[0x30]
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [rsp + 0x50], ebx
jne 0x1800051b8
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call fcn.180006bfc
test eax, eax
js 0x1800051ab
mov edi, 1
jmp 0x1800051b4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
jmp 0x1800051ba
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x18000569c
Capabilities:
Delete file

Disassembly:
test rcx, rcx
je 0x18000574c
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx + 0x38]
mov rbx, rcx
mov r8, qword [rax + 0x40]
lea rax, [0x1800052e8]
cmp r8, rax
je 0x1800056d5
mov rdx, rcx
mov rcx, qword [rcx + 0x20]
call r8
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1800056e4
call qword [sym.imp.ntdll.dll_NtClose]
mov rax, qword [rbx + 0x38]
mov rsi, qword [rbx + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.180006cf4
test eax, eax
js 0x18000571b
mov edi, 3
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x18000571b
add edi, 0xffffffff
jne 0x1800056fe
mov r8, qword [rbx + 0x28]
test r8, r8
je 0x18000573d
mov rax, qword gs:[0x30]
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180006674
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12, r9
mov r13, r8
mov r14, qword [rsp + 0x80]
and dword [r14], 0
sub ecx, 1
je 0x1800066c3
sub ecx, 1
je 0x1800066ba
cmp ecx, 1
jne 0x1800066c3
lea rdi, [0x18000584c]
jmp 0x1800066ca
lea rdi, [0x180005d30]
jmp 0x1800066ca
lea rdi, [0x180005ff0]
mov rcx, rdi
call fcn.1800062c8
mov esi, eax
cmp eax, 0x78c
ja 0x180006785
mov edx, 0x800
xor ecx, ecx
lea r9d, [rcx + 0x40]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x180006785
mov ecx, dword [rsp + 0x78]
mov dword [rax + 0x79c], ecx
mov rax, qword [rsp + 0x58]
mov qword [rbx + 0x7b0], rax
mov qword [rbx + 0x7a0], r13
movdqa xmm0, xmmword [0x180021640]
movups xmmword [rbx], xmm0
mov dword [rbx], 0xe8
mov dword [rbx + 4], 0x49584100
mov dword [rbx + 8], 0xeb05e883
mov byte [rbx + 0xc], 3
mov r9, r12
mov r8, qword [rsp + 0x70]
mov rdx, rbx
call fcn.180006320
test eax, eax
jne 0x180006769
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x180006785
mov r8, rsi
mov rdx, rdi
lea rcx, [rbx + 0x10]
call fcn.180008fc0
nop
mov dword [r14], esi
mov rax, rbx
jmp 0x180006787
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180006878
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov r14, 0xffffffff80000002
mov rdi, rdx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor esi, esi
test eax, eax
je 0x1800068df
lea rax, [rbp + 0x190]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1800068fb
cmp eax, 2
jne 0x1800069bb
mov eax, 1
mov rbx, qword [rsp + 0x288]
add rsp, 0x250
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rbx, rdi
test rdi, rdi
jne 0x180006908
mov rbx, rsi
jmp 0x180006916
cmp word [rdi], si
je 0x180006916
add rbx, 2
cmp word [rbx], si
jne 0x18000690d
mov eax, 0x5c
cmp word [rbx - 2], ax
je 0x18000692b
mov word [rbx], ax
add rbx, 2
mov word [rbx], si
mov r15d, 0x104
jmp 0x180006955
mov r9, r15
lea r8, [rsp + 0x40]
mov rdx, r15
mov rcx, rbx
call fcn.18000103c
mov rdx, rdi
mov rcx, r14
call fcn.180006878
test eax, eax
je 0x180006996
mov rcx, qword [rbp + 0x190]
lea rax, [rbp + 0x198]
mov qword [rsp + 0x38], rax
lea r9, [rbp + 0x180]
mov qword [rsp + 0x30], rsi
lea r8, [rsp + 0x40]
mov qword [rsp + 0x28], rsi
xor edx, edx
mov qword [rsp + 0x20], rsi
mov dword [rbp + 0x180], r15d
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x180006933
mov rcx, qword [rbp + 0x190]
mov word [rbx - 2], si
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x1800068df
xor eax, eax
jmp 0x1800068e4
Function at 0x180006a58
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
xor esi, esi
mov rbx, rdx
mov qword [rbp + 0x30], rsi
mov rdi, rcx
mov qword [rbp - 8], rsi
mov dword [rbp - 0x10], esi
test rcx, rcx
je 0x180006aa3
xor r9d, r9d
lea rdx, [rbp - 0x10]
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
jne 0x180006aa3
mov eax, 0xc00000f0
jmp 0x180006be5
mov qword [rsp + 0x40], rsi
lea rax, [rbp + 0x30]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rsi
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov rdx, rbx
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x180006ae6
mov ebx, 0xc0000022
jmp 0x180006bce
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x20]
mov r14d, 4
mov dword [rbp + 0x20], 1
mov dword [rsp + 0x28], r14d
lea rdx, str.ErrorControl
mov r9d, r14d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jne 0x180006bb9
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x20]
mov dword [rsp + 0x28], r14d
lea rdx, str.Type
mov r9d, r14d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jne 0x180006bb9
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x20]
mov dword [rsp + 0x28], r14d
lea rdx, str.Start
mov r9d, r14d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x20], 3
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jne 0x180006bb9
test rdi, rdi
je 0x180006bb9
movzx eax, word [rbp - 0x10]
lea r9d, [r14 - 2]
mov rcx, qword [rbp + 0x30]
lea rdx, str.ImagePath
add eax, r9d
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rax, qword [rbp - 8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg ebx
mov ebx, 0xc0000022
sbb ecx, ecx
and ebx, ecx
test rdi, rdi
je 0x180006be3
cmp qword [rbp - 8], rsi
je 0x180006be3
lea rcx, [rbp - 0x10]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov eax, ebx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret