joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14019f020
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x14027f5f8]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x14019f058
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x14019f0af
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0xc0000011
jne 0x14019f0bc
xor edx, edx
xor eax, eax
jmp 0x14019f0e6
cmp eax, 0x103
je 0x14019f0f0
test eax, eax
js 0x14019f0cf
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x14019f0e6
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, [0x14027f660]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.1401963a0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.14018c990
mov ecx, 7
int 0x29
ud2

Function at 0x14019f140
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x14027f5f8]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x14019f178
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14019f1d6
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x14019f203
test eax, eax
js 0x14019f1e2
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x14019f1f9
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, [0x14027f660]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.1401963a0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.14018c990
mov ecx, 7
int 0x29
ud2
Function at 0x14019f4a0
Capabilities:
Create udp socket

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov edi, edx
cmp word [rcx], 0
mov eax, 2
mov r14d, 0x17
cmove r14d, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
xor ebx, ebx
mov ecx, r14d
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14019f581
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x14019f508
mov esi, eax
cmp eax, 0x2726
jne 0x14019f574
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, r14d
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x14019f56c
mov rsi, rax
xor ebx, ebx
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x14019f581
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rcx, rsi
call qword [sym.imp.ws2_32.dll_closesocket]
mov ebx, 1
mov rsi, rdi
jmp 0x14019f581
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov ebx, 1
mov rax, rbx
mov rdx, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret

Function at 0x1401a00f0
Capabilities:
Create pipe

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x148
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0xb0], xmm6
mov qword [rbp + 0xa8], 0xfffffffffffffffe
mov qword [rbp + 0x60], rcx
mov byte [rbp + 0xa5], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x5c], ecx
mov r15d, 8
mov sil, 1
xorps xmm6, xmm6
lea r14, [rbp + 0x20]
mov r12, qword [sym.imp.bcryptprimitives.dll_ProcessPrng]
xor edi, edi
xor eax, eax
mov qword [rbp - 8], rax
nop word cs:[rax + rax]
Function at 0x1401a4df0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], r14
jmp 0x1401a4e54
mov rdx, qword [rbp - 0x18]
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rdx
invalid
lea rcx, [rbp - 8]
call fcn.14018c2d0
mov qword [rsi], r14
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov rbx, qword [rbp - 8]
mov r15, qword [rbp]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
invalid
je 0x1401a4e90
mov qword [rsi], rdi
mov qword [rsi], r14
test rdi, rdi
je 0x1401a4e60
add rdi, rdi
mov r8d, 2
add byte [rax - 0x77], cl
invalid
mov rdx, rdi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
jmp fcn.14000a5f0
Function at 0x1401a6780
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x1402e3001]
mov ecx, 0x10
mov edx, 8
call fcn.14000a5e0
test rax, rax
je 0x1401a685f
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1401a6910]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1401a6851
mov rcx, qword [rbx]
mov qword [rbp - 0x18], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x10], rax
call qword [rax]
mov rax, qword [rbp - 0x10]
mov rdx, qword [rax + 8]
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], rdi
mov ecx, 8
mov edx, 0x10
call fcn.1401c8110
ud2

Function at 0x1401a92e0
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x208
lea rbp, [rsp + 0x80]
mov rax, rdx
mov rsi, rcx
mov rdx, qword [rdx]
mov rdi, qword [rax + 8]
movzx eax, word [rax + 0x10]
mov word [rbp + 0x186], ax
mov rax, qword [0x1402e3100]
cmp rax, 3
jne 0x1401a9412
lea rax, [rbp + 0x186]
mov qword [rbp + 0x170], rax
cmp rdi, 0x17f
ja 0x1401a9438
lea rbx, [rbp - 0x60]
mov rcx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbp + rdi - 0x60], 0
inc rdi
lea rcx, [rbp + 0x158]
mov rdx, rbx
mov r8, rdi
call fcn.1401b58c0
cmp qword [rbp + 0x158], 0
je 0x1401a9381
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1401a9403
mov rcx, qword [rbp + 0x160]
xorps xmm0, xmm0
movaps xmmword [rbp + 0x120], xmm0
movaps xmmword [rbp + 0x140], xmm0
movaps xmmword [rbp + 0x130], xmm0
mov dword [rbp + 0x128], 1
mov qword [rbp + 0x178], 0
lea r8, [rbp + 0x120]
lea r9, [rbp + 0x178]
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x1401a93e4
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x1401a93fc
mov rax, qword [rbp + 0x178]
movzx ecx, word [rbp + 0x186]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov rax, rsi
add rsp, 0x208
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov rbx, rdx
call fcn.1401c6f10
mov rdx, rbx
lea rax, [rbp + 0x186]
mov qword [rbp + 0x170], rax
cmp rdi, 0x17f
jbe 0x1401a9337
lea r9, [rbp + 0x170]
mov rcx, rsi
mov r8, rdi
call fcn.1401c7060
jmp 0x1401a9403
Function at 0x1401a9560
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rax, rdx
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm0
movaps xmmword [rbp - 0x60], xmm0
mov dword [rbp + 0x24], 0x80
lea rdx, [rbp - 0x60]
lea r8, [rbp + 0x24]
mov rcx, rax
call qword [sym.imp.ws2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1401a95f4
mov eax, dword [rbp + 0x24]
movzx ecx, word [rbp - 0x60]
cmp ecx, 2
je 0x1401a9604
cmp ecx, 0x17
jne 0x1401a9622
cmp eax, 0x1b
jbe 0x1401a963c
movzx eax, word [rbp - 0x5e]
rol ax, 8
movups xmm0, xmmword [rbp - 0x58]
mov ecx, dword [rbp - 0x5c]
mov edx, dword [rbp - 0x48]
mov word [rsi], 1
movups xmmword [rsi + 4], xmm0
mov dword [rsi + 0x14], ecx
mov dword [rsi + 0x18], edx
mov word [rsi + 0x1c], ax
jmp 0x1401a9632
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
jmp 0x1401a9629
cmp eax, 0xf
jbe 0x1401a9654
movzx eax, word [rbp - 0x5e]
rol ax, 8
mov ecx, dword [rbp - 0x5c]
mov word [rsi], 0
mov word [rsi + 6], ax
mov dword [rsi + 2], ecx
jmp 0x1401a9632
lea rax, str.invalid_argument_
mov qword [rsi + 8], rax
mov word [rsi], 2
add rsp, 0xa8
pop rsi
pop rbp
ret
lea rcx, str.assertion_failed:_len___mem::size_of::_c::sockaddr_in6___
lea r8, str.library_std_src_sys_common_net.rsassertion_failed:_len___mem::size_of::_c::sockaddr_in___
mov edx, 0x3a
call fcn.1401c8470
lea rcx, [0x140280279]
lea r8, str.library_std_src_sys_common_net.rsassertion_failed:_len___mem::size_of::_c::sockaddr_in___
mov edx, 0x39
call fcn.1401c8470
int3
Function at 0x1401bd2b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x1401bd33a
mov rax, rdx
mov rdx, qword [rbp + 0x50]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x1401bd330
cmp r11, r10
ja 0x1401bd3b6
cmp r10, rdx
ja 0x1401bd3c8
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x1401bd332
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1401bd310
jmp 0x1401bd397
ja 0x1401bd33a
mov r11, r10
cmp rax, r8
jne 0x1401bd2d7
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x1401bd39b
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x1401bd370
mov r8, r10
sub ecx, r9d
jns 0x1401bd38e
jmp 0x1401bd39d
cmp r10, rdx
je 0x1401bd3aa
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x1401bd39d
xor al, 1
cmp r8, rdx
jne 0x1401bd350
jmp 0x1401bd39d
xor eax, eax
jmp 0x1401bd39d
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.1401c8360
lea r8, str.XF__
mov rcx, r11
mov rdx, r10
call fcn.1401c8860
lea r8, str.XF__
mov rcx, r10
call fcn.1401c8850
int3

Function at 0x1401bfcd4
Capabilities:
Parse pe header

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

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov r14, r9
mov rsi, rcx
lea rcx, [rbp - 0x28]
call fcn.1401b13a0
mov rdx, qword [rbp - 0x28]
movabs rax, 0x8000000000000000
cmp rdx, rax
jne 0x1401c70e9
mov rdi, qword [rbp - 0x20]
mov rbx, qword [rbp - 0x18]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x60], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x58], 1
mov qword [rbp - 8], 0
lea r8, [rbp - 0x60]
lea r9, [rbp - 8]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x1401c711c
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x1401c7130
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
test rdx, rdx
je 0x1401c7150
mov rcx, qword [rbp - 0x20]
mov r8d, 1
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp fcn.14000a5f0
mov rcx, qword [r14]
mov rax, qword [rbp - 8]
movzx ecx, word [rcx]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov byte [rdi], 0
test rbx, rbx
je 0x1401c7150
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.14000a5f0
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x140002108
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001d294
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001d294
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140029d0c
cmp rax, 0xffffffffffffffff
je 0x140029d0c
xor edi, edi
test rbp, rbp
jle 0x140029cb7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001fbc0
mov rbx, rax
test rax, rax
jne 0x140029c44
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140029cad
mov edx, 0x8000
mov ecx, r14d
call fcn.14001abfc
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001df70
cmp eax, 0xffffffff
je 0x140029c8d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029c54
mov edx, r15d
mov ecx, r14d
call fcn.14001abfc
jmp 0x140029cad
cmp byte [rsi + 0x38], dil
je 0x140029ca4
cmp dword [rsi + 0x34], 5
jne 0x140029ca4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140029cad
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b960
jmp 0x140029d20
jns 0x140029d20
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001d294
cmp rax, 0xffffffffffffffff
jne 0x140029cd8
cmp byte [rsi + 0x30], dil
je 0x140029d20
mov edi, dword [rsi + 0x2c]
jmp 0x140029d20
mov ecx, r14d
call fcn.1400190b8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029d20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140029d20
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029d19
mov eax, dword [rsi + 0x2c]
jmp 0x140029d1e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001d294
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002ae10
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002ae38
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002ae38
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140a72650
Capabilities:
Encode data using xor

Disassembly:
pop rdx
mov qword [rsp + 8], r9
mov qword [rsp], 0x3a056b3c
mov qword [rsp], rax
push rbx
mov r9d, 0x60b3ae0e
push r9
pushfq
pop rax
mov qword [rsp + r9 - 0x60b3ae0e], rax
lea rbx, [rsp + r9 - 0x60b3ae5e]
mov qword [rsp + r9 - 0x60b3ade6], rcx
movsx eax, r9b
lea eax, [r9 - 0x60b3ac0e]
neg r9b
shl rax, 0x17
mov edx, 0x6193801d
Function at 0x140003050
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x14013d0a8]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edi, edi
mov rsi, rcx
test rcx, rcx
je 0x1400030ed
lea eax, [rdx - 1]
test eax, eax
jne 0x1400030ed
cmp edx, 1
jne 0x1400030e8
xor edx, edx
mov qword [rsp + 0x168], rbx
mov r8d, VarUI4FromDisp
lea rcx, [rsp + 0x24]
call fcn.1400b88a0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], VarUI4FromDisp
mov ebx, edi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1400030cc
cmp dword [rsp + 0x24], 6
ja 0x1400030c7
jne 0x1400030cc
cmp dword [rsp + 0x28], ebx
jbe 0x1400030cc
mov ebx, 1
shl ebx, 0xb
xor edx, edx
mov r8d, ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, qword [rsp + 0x168]
mov rdi, rax
mov rax, rdi
jmp 0x1400030fa
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400b5660
mov rsi, qword [rsp + 0x170]
add rsp, 0x150
pop rdi
ret
Function at 0x140005470
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x40
xor edi, edi
lea rax, [rsp + 0x30]
mov r9d, 0x101
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov dword [rsp + 0x60], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400054fd
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rdx, str.EulaAccepted
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rbx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x68], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x50]
jne 0x1400054fd
cmp dword [rsp + 0x60], edi
setne dil
mov eax, edi
add rsp, 0x40
pop rdi
ret
xor eax, eax
add rsp, 0x40
pop rdi
ret

Function at 0x140005510
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x268
mov rax, qword [0x14013d0a8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov qword [rsp + 0x20], rcx
lea r9, str.SoftwareSysinternals
lea rcx, [rsp + 0x40]
mov edx, 0x104
lea r8, str._s_s
call fcn.1400051d0
lea rdx, str.SoftwareSysinternals
mov rcx, 0xffffffff80000002
call fcn.140005470
test eax, eax
jne 0x14000562b
lea rdx, str.SoftwareSysinternals
mov rcx, 0xffffffff80000001
call fcn.140005470
test eax, eax
jne 0x14000562b
xor eax, eax
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov r9d, 0x101
mov dword [rsp + 0x30], eax
xor r8d, r8d
lea rax, [rsp + 0x38]
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140005611
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rdx, str.EulaAccepted
lea rax, [rsp + 0x30]
mov qword [rsp + 0x260], rbx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x34], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x260]
jne 0x140005611
cmp dword [rsp + 0x30], 0
jne 0x14000562b
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400b5660
add rsp, 0x268
ret
mov eax, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400b5660
add rsp, 0x268
ret
Function at 0x140005e90
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r15d, r15d
mov r12, r8
mov rsi, rdx
mov r13, rcx
mov ebp, r15d
lea eax, [r15 + 1]
test rdx, rdx
je 0x140005ec9
test r8, r8
jne 0x140005f07
mov edx, eax
lea rcx, str.Shell32.dll
call fcn.140003050
mov rcx, rax
lea rdx, [0x1400f5d48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x140005f48
lea rsi, [0x140141e88]
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
mov rdx, rsi
call rbx
mov r12, rax
mov ebx, r15d
cmp dword [rsi], ebx
jle 0x140005f48
mov r14, r15
mov rcx, qword [r12 + r14*8]
lea rdi, [r12 + r14*8]
lea rdx, [0x1400f5d78]
call fcn.1400bef10
test eax, eax
je 0x140005f84
mov rcx, qword [rdi]
lea rdx, str._accepteula
call fcn.1400bef10
test eax, eax
je 0x140005f84
inc ebx
inc r14
mov ebp, r15d
cmp ebx, dword [rsi]
jl 0x140005f11
mov r14d, 1
mov edx, ebp
mov rcx, r13
call fcn.140005940
mov rbx, qword [rsp + 0x50]
test eax, eax
mov rsi, qword [rsp + 0x60]
cmovne ebp, r14d
test ebp, ebp
mov rbp, qword [rsp + 0x58]
setne r15b
mov eax, r15d
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov ecx, dword [rsi]
mov r14d, 1
mov ebp, r14d
lea eax, [rcx - 1]
cmp ebx, eax
jge 0x140005fb6
nop word [rax + rax]
mov rax, qword [rdi + 8]
inc ebx
mov qword [rdi], rax
lea rdi, [rdi + 8]
mov ecx, dword [rsi]
lea eax, [rcx - 1]
cmp ebx, eax
jl 0x140005fa0
lea eax, [rcx - 1]
mov dword [rsi], eax
jmp 0x140005f4e

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

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
add rsp, 0x28
ret

Function at 0x140009b50
Capabilities:
Read .ini file

Disassembly:
push rbx
sub rsp, 0x20
mov rax, r8
mov r10, rdx
movzx ebx, r9b
mov rdx, rax
mov r9, qword [rcx]
mov r8d, 0xffffffff
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 0xffffffff
jne 0x140009b83
movzx eax, bl
add rsp, 0x20
pop rbx
ret
test eax, eax
setne al
add rsp, 0x20
pop rbx
ret