joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002eac0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x220]
test eax, eax
jne 0x14002eae0
mov eax, 1
jmp 0x14002eb11
mov rcx, qword [rsp + 0x40]
add rcx, 0x220
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x14002eb0f
mov eax, dword [rsp + 0x20]
and eax, 0x10
test eax, eax
je 0x14002eb0f
mov eax, 1
jmp 0x14002eb11
xor eax, eax
add rsp, 0x38
ret

Function at 0x14002f8e0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xc0
mov rax, qword [0x1400bdbf0]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov dword [rsp + 0x50], 0x57
mov dword [rsp + 0x54], 0
mov dword [rsp + 0xb0], 0
mov dword [rsp + 0xb4], 0
mov byte [rsp + 0x70], 0
lea rdi, [rsp + 0x71]
xor eax, eax
mov ecx, 0x3f
rep stosb byte [rdi], al
mov dword [rsp + 0x58], 0
cmp qword [rsp + 0xd0], 0xffffffffffffffff
je 0x14002f985
cmp qword [rsp + 0xd8], 0
je 0x14002f985
cmp dword [rsp + 0xe0], 0
jle 0x14002f985
cmp qword [rsp + 0xf0], 0
je 0x14002f985
cmp qword [rsp + 0xf8], 0
ja 0x14002f98f
jmp 0x14002fb21
mov eax, dword [rsp + 0xe0]
sub eax, 0x10
cdq
idiv dword [rsp + 0x100]
test edx, edx
jne 0x14002f9a7
jmp 0x14002f9b1
jmp 0x14002fb21
cmp dword [0x1400cc6c0], 0
jne 0x14002f9cc
mov dword [rsp + 0x50], COleControl::XOleInPlaceObject::ContextSensitiveHelp
jmp 0x14002fb21
mov dword [rsp + 0xb0], 0
jmp 0x14002f9f0
mov ecx, dword [rsp + 0x100]
mov eax, dword [rsp + 0xb0]
add eax, ecx
mov dword [rsp + 0xb0], eax
mov eax, dword [rsp + 0xe0]
sub eax, 0x10
cmp dword [rsp + 0xb0], eax
jge 0x14002fb19
mov eax, dword [rsp + 0xb0]
mov r8d, dword [rsp + 0xe0]
sub r8d, eax
movsxd rax, dword [rsp + 0xb0]
mov rcx, qword [rsp + 0xd8]
add rcx, rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0xf8]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x40
mov r9d, 0x40
lea rdx, [rsp + 0x70]
call fcn.140032af0
test eax, eax
jne 0x14002fa87
mov dword [rsp + 0x50], RFX_Single_Bulk
jmp 0x14002fb21
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x14002fab3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
jmp 0x14002fb21
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xb4]
mov r8d, 0x40
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14002fafe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14002fafa
mov dword [rsp + 0x50], 0x1d
jmp 0x14002fb21
cmp dword [rsp + 0xb4], 0x40
je 0x14002fb14
mov dword [rsp + 0x50], 0x1d
jmp 0x14002fb21
jmp 0x14002f9d9
mov dword [rsp + 0x50], 0
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.14004d770
add rsp, 0xc0
pop rdi
ret
Function at 0x1400301d0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov dword [rsp + 0x50], 0
xor eax, eax
mov word [rsp + 0x58], ax
lea rdi, [rsp + 0x5a]
xor eax, eax
mov ecx, 0xe
rep stosb byte [rdi], al
cmp qword [rsp + 0x88], 0
je 0x14003021e
xor ecx, ecx
mov rax, qword [rsp + 0x88]
mov word [rax], cx
cmp qword [rsp + 0x80], 0
je 0x140030234
cmp qword [rsp + 0x88], 0
jne 0x14003023e
jmp 0x1400303d5
cmp dword [rsp + 0x98], 1
jne 0x1400302a9
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140030276
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140030276
jmp 0x140030280
jmp 0x1400303d5
mov edx, dword [rsp + 0x90]
mov r8, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
call entry0
mov dword [rsp + 0x50], 1
jmp 0x1400303d5
cmp dword [rsp + 0x98], 2
jne 0x140030329
mov edx, dword [rsp + 0x90]
mov r9, qword [rsp + 0x80]
lea r8, [0x14008d740]
mov rcx, qword [rsp + 0x88]
call fcn.140001080
test eax, eax
jge 0x1400302e4
jmp 0x1400303d5
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r8d, 1
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x14003031c
jmp 0x1400303d5
mov dword [rsp + 0x50], 1
jmp 0x1400303d5
cmp dword [rsp + 0x98], 3
jne 0x1400303d5
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx r10d, word [rsp + 0x64]
movzx r9d, word [rsp + 0x62]
movzx r8d, word [rsp + 0x60]
movzx edi, word [rsp + 0x5e]
movzx ecx, word [rsp + 0x5a]
movzx eax, word [rsp + 0x58]
mov edx, dword [rsp + 0x90]
mov dword [rsp + 0x48], r10d
mov dword [rsp + 0x40], r9d
mov dword [rsp + 0x38], r8d
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x80]
lea r8, [0x14008d700]
mov rcx, qword [rsp + 0x88]
call fcn.140001080
test eax, eax
jge 0x1400303a9
jmp 0x1400303d5
mov r8d, 1
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1400303cd
jmp 0x1400303d5
mov dword [rsp + 0x50], 1
mov eax, dword [rsp + 0x50]
add rsp, 0x70
pop rdi
ret
Function at 0x1400303e0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov dword [rsp + 0x50], 0
xor eax, eax
mov word [rsp + 0x58], ax
lea rdi, [rsp + 0x5a]
xor eax, eax
mov ecx, 0xe
rep stosb byte [rdi], al
cmp qword [rsp + 0x88], 0
je 0x14003042c
mov rax, qword [rsp + 0x88]
mov byte [rax], 0
cmp qword [rsp + 0x80], 0
je 0x140030442
cmp qword [rsp + 0x88], 0
jne 0x14003044c
jmp 0x1400305e3
cmp dword [rsp + 0x98], 1
jne 0x1400304b7
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140030484
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140030484
jmp 0x14003048e
jmp 0x1400305e3
mov edx, dword [rsp + 0x90]
mov r8, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
call fcn.14002fb40
mov dword [rsp + 0x50], 1
jmp 0x1400305e3
cmp dword [rsp + 0x98], 2
jne 0x140030537
mov edx, dword [rsp + 0x90]
mov r9, qword [rsp + 0x80]
lea r8, str._s.old.log
mov rcx, qword [rsp + 0x88]
call fcn.1400305f0
test eax, eax
jge 0x1400304f2
jmp 0x1400305e3
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov r8d, 1
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x14003052a
jmp 0x1400305e3
mov dword [rsp + 0x50], 1
jmp 0x1400305e3
cmp dword [rsp + 0x98], 3
jne 0x1400305e3
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx r10d, word [rsp + 0x64]
movzx r9d, word [rsp + 0x62]
movzx r8d, word [rsp + 0x60]
movzx edi, word [rsp + 0x5e]
movzx ecx, word [rsp + 0x5a]
movzx eax, word [rsp + 0x58]
mov edx, dword [rsp + 0x90]
mov dword [rsp + 0x48], r10d
mov dword [rsp + 0x40], r9d
mov dword [rsp + 0x38], r8d
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x80]
lea r8, str._s._.4d_.2d_.2d_.2d_.2d_.2d.log
mov rcx, qword [rsp + 0x88]
call fcn.1400305f0
test eax, eax
jge 0x1400305b7
jmp 0x1400305e3
mov r8d, 1
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x1400305db
jmp 0x1400305e3
mov dword [rsp + 0x50], 1
mov eax, dword [rsp + 0x50]
add rsp, 0x70
pop rdi
ret
Function at 0x1400309f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0xffffffffffffffff
mov dword [rsp + 0x50], 0
cmp qword [rsp + 0x70], 0
jne 0x140030a24
jmp 0x140030b51
mov r8d, 0x2c
xor edx, edx
mov rcx, qword [rsp + 0x70]
call sub.MSVCR90.dll_memset
cmp dword [0x1400cc6c0], 0
jne 0x140030a49
jmp 0x140030b51
cmp dword [0x1400ccad8], 1
jne 0x140030a8a
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
lea rcx, [0x1400cc8ce]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
jmp 0x140030ac0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
lea rcx, [0x1400cc7c9]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8d, 0x2c
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140030aec
jmp 0x140030b51
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x48], 0xffffffffffffffff
mov rcx, qword [rsp + 0x70]
call fcn.140030b80
test eax, eax
jne 0x140030b1d
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140030b51
mov rcx, qword [rsp + 0x70]
add rcx, 0x1b
xor r9d, r9d
xor r8d, r8d
mov edx, 0x10
call fcn.140031120
test eax, eax
jne 0x140030b49
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140030b51
mov dword [rsp + 0x40], 1
cmp qword [rsp + 0x48], 0xffffffffffffffff
je 0x140030b6d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x48], 0xffffffffffffffff
mov eax, dword [rsp + 0x40]
add rsp, 0x68
ret
Function at 0x140030b80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x20], 0
mov byte [rsp + 0x28], 0
cmp qword [rsp + 0x40], 0
jne 0x140030bb0
jmp 0x140030cbe
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x19]
test eax, eax
jne 0x140030bc7
jmp 0x140030cbe
mov rcx, qword [rsp + 0x40]
add rcx, 8
mov r8d, 0x10
lea rdx, [0x1400ccaf0]
call sub.MSVCR90.dll_memcmp
test eax, eax
je 0x140030bf0
jmp 0x140030cbe
mov rax, qword [rsp + 0x40]
movsx eax, byte [rax]
cmp eax, 0x73
jne 0x140030c53
mov rax, qword [rsp + 0x40]
movsx eax, byte [rax + 1]
cmp eax, 0x6c
jne 0x140030c53
mov rax, qword [rsp + 0x40]
movsx eax, byte [rax + 2]
cmp eax, 0x70
jne 0x140030c53
mov rax, qword [rsp + 0x40]
movsx eax, byte [rax + 3]
cmp eax, 0x6b
jne 0x140030c53
mov rax, qword [rsp + 0x40]
movsx eax, byte [rax + 4]
cmp eax, 0x20
jne 0x140030c53
mov rax, qword [rsp + 0x40]
movsx eax, byte [rax + 5]
cmp eax, 0x61
jne 0x140030c53
mov rax, qword [rsp + 0x40]
movsx eax, byte [rax + 6]
cmp eax, 0x30
jne 0x140030c53
jmp 0x140030c57
jmp 0x140030cbe
mov dword [rsp + 0x20], 9
jmp 0x140030c6c
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
cmp rax, 0x2b
jae 0x140030c92
movsxd rcx, dword [rsp + 0x20]
mov rax, qword [rsp + 0x40]
movzx ecx, byte [rax + rcx]
movzx eax, byte [rsp + 0x28]
add eax, ecx
mov byte [rsp + 0x28], al
jmp 0x140030c61
movzx eax, byte [rsp + 0x28]
xor eax, 0xf4
mov byte [rsp + 0x28], al
movzx ecx, byte [rsp + 0x28]
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + 0x2b]
cmp ecx, eax
je 0x140030cb6
jmp 0x140030cbe
mov dword [rsp + 0x24], 1
mov eax, dword [rsp + 0x24]
add rsp, 0x38
ret

Function at 0x140030cd0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x34], 0
cmp qword [rsp + 0x50], 0xffffffffffffffff
je 0x140030cfe
cmp qword [rsp + 0x58], 0
jne 0x140030d02
jmp 0x140030d52
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x140030d1e
jmp 0x140030d52
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, 0x80
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140030d4a
jmp 0x140030d52
mov dword [rsp + 0x30], 1
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x140030d60
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x34], 0
cmp qword [rsp + 0x58], 0
je 0x140030d98
mov r8d, 0x80
xor edx, edx
mov rcx, qword [rsp + 0x58]
call sub.MSVCR90.dll_memset
cmp qword [rsp + 0x50], 0xffffffffffffffff
je 0x140030da8
cmp qword [rsp + 0x58], 0
jne 0x140030db2
jmp 0x140030ee3
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x140030dd4
jmp 0x140030ee3
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, 0x80
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140030e06
jmp 0x140030ee3
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 0x1d]
test eax, eax
jg 0x140030e1d
jmp 0x140030ee3
mov rcx, qword [rsp + 0x58]
add rcx, 0xc
mov r8d, 0x10
lea rdx, [0x1400ccaf0]
call sub.MSVCR90.dll_memcmp
test eax, eax
je 0x140030e46
jmp 0x140030ee3
mov rax, qword [rsp + 0x58]
movsx eax, byte [rax]
cmp eax, 0x41
jne 0x140030ed7
mov rax, qword [rsp + 0x58]
movsx eax, byte [rax + 1]
cmp eax, 0x53
jne 0x140030ed7
mov rax, qword [rsp + 0x58]
movsx eax, byte [rax + 2]
cmp eax, 0x4c
jne 0x140030ed7
mov rax, qword [rsp + 0x58]
movsx eax, byte [rax + 3]
cmp eax, 0x46
jne 0x140030ed7
mov rax, qword [rsp + 0x58]
movsx eax, byte [rax + 4]
cmp eax, 0x49
jne 0x140030ed7
mov rax, qword [rsp + 0x58]
movsx eax, byte [rax + 5]
cmp eax, 0x4c
jne 0x140030ed7
mov rax, qword [rsp + 0x58]
movsx eax, byte [rax + 6]
cmp eax, 0x45
jne 0x140030ed7
mov rax, qword [rsp + 0x58]
movsx eax, byte [rax + 7]
cmp eax, 0x31
jne 0x140030ed7
mov rax, qword [rsp + 0x58]
movsx eax, byte [rax + 8]
cmp eax, 0x2e
jne 0x140030ed7
mov rax, qword [rsp + 0x58]
movsx eax, byte [rax + 9]
cmp eax, 0x30
jne 0x140030ed7
jmp 0x140030edb
jmp 0x140030ee3
mov dword [rsp + 0x30], 1
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x140032630
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x48], 0
cmp qword [rsp + 0x78], 0
je 0x140032687
xor ecx, ecx
mov rax, qword [rsp + 0x78]
mov word [rax], cx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x14008d818]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x1400326c3
cmp qword [rsp + 0x38], 0
je 0x1400326c3
jmp 0x1400326cd
jmp 0x1400327f7
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14008d570]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14003270f
jmp 0x1400327f7
cmp dword [rsp + 0x50], 1
je 0x140032720
jmp 0x1400327f7
cmp qword [rsp + 0x70], 0
je 0x1400327ef
cmp qword [rsp + 0x78], 0
je 0x1400327ef
cmp qword [rsp + 0x80], 0
jbe 0x1400327ef
mov eax, dword [rsp + 0x80]
lea rax, [rax + rax - 2]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14008d4f0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400327d8
mov dx, 0x5c
mov rcx, qword [rsp + 0x70]
call fcn.140005820
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1400327a6
jmp 0x1400327f7
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 2]
test eax, eax
jne 0x1400327b7
jmp 0x1400327f7
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
call fcn.1400018e0
test eax, eax
jge 0x1400327d6
jmp 0x1400327f7
jmp 0x1400327ef
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
call entry0
mov dword [rsp + 0x40], 1
cmp qword [rsp + 0x38], 0
je 0x140032813
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], 0
mov eax, dword [rsp + 0x40]
add rsp, 0x68
ret
Function at 0x140032820
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x48], 0
cmp qword [rsp + 0x78], 0
je 0x140032875
mov rax, qword [rsp + 0x78]
mov byte [rax], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareAhnLabACA
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x1400328b1
cmp qword [rsp + 0x38], 0
je 0x1400328b1
jmp 0x1400328bb
jmp 0x1400329e5
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.DebugLog
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1400328fd
jmp 0x1400329e5
cmp dword [rsp + 0x50], 1
je 0x14003290e
jmp 0x1400329e5
cmp qword [rsp + 0x70], 0
je 0x1400329dd
cmp qword [rsp + 0x78], 0
je 0x1400329dd
cmp qword [rsp + 0x80], 0
jbe 0x1400329dd
mov eax, dword [rsp + 0x80]
sub rax, 1
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.DebugLogPath
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400329c6
mov edx, 0x5c
mov rcx, qword [rsp + 0x70]
call fcn.140032a10
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140032994
jmp 0x1400329e5
mov rax, qword [rsp + 0x48]
movsx eax, byte [rax + 1]
test eax, eax
jne 0x1400329a5
jmp 0x1400329e5
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
call fcn.14002fbb0
test eax, eax
jge 0x1400329c4
jmp 0x1400329e5
jmp 0x1400329dd
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
call fcn.14002fb40
mov dword [rsp + 0x40], 1
cmp qword [rsp + 0x38], 0
je 0x140032a01
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], 0
mov eax, dword [rsp + 0x40]
add rsp, 0x68
ret

Function at 0x140032d60
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x260
mov rax, qword [0x1400bdbf0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov qword [rsp + 0x30], 0
xor eax, eax
mov word [rsp + 0x40], ax
lea rdi, [rsp + 0x42]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
cmp qword [rsp + 0x270], 0
jne 0x140032dac
jmp 0x140032dfc
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x140032dc4
jmp 0x140032dfc
mov rax, qword [rsp + 0x270]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
lea r8, str._s_s
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.140001080
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14004d770
add rsp, 0x260
pop rdi
ret
Function at 0x140032e20
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x160
mov rax, qword [0x1400bdbf0]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov qword [rsp + 0x30], 0
mov byte [rsp + 0x40], 0
lea rdi, [rsp + 0x41]
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
cmp qword [rsp + 0x170], 0
jne 0x140032e6a
jmp 0x140032ec2
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x140032e82
jmp 0x140032ec2
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
lea r8, [0x14008d874]
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.1400305f0
test eax, eax
jge 0x140032eb2
jmp 0x140032ec2
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14004d770
add rsp, 0x160
pop rdi
ret

Function at 0x140033ac0
Capabilities:
Create process on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa0
cmp qword [rsp + 0xb0], 0
jne 0x140033af9
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140033bea
mov dword [rsp + 0x20], 0
lea rdi, [rsp + 0x24]
xor eax, eax
mov ecx, 0x6c
rep stosb byte [rdi], al
mov dword [rsp + 0x20], 0x70
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x24], 0x441
lea rax, str.exefile
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0xd0]
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x140033b7d
xor eax, eax
jmp 0x140033bea
cmp dword [rsp + 0xc8], 1
jne 0x140033bcc
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x90], 0
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x140033bcc
mov ecx, dword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp qword [rsp + 0x88], 0
je 0x140033be5
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0xa0
pop rdi
ret