joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001140
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor esi, esi
lea r9, [rsp + 0x20]
xor r8d, r8d
mov dword [rsp + 0x20], esi
xor edx, edx
mov ebx, esi
lea ecx, [rsi + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x1400011e4
mov eax, dword [rsp + 0x20]
test rbx, rbx
je 0x1400011a8
lea edi, [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r9d, edi
mov r8, rbx
mov rcx, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
jmp 0x1400011c2
lea ebx, [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, 0xb
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140001180
test eax, eax
jne 0x140001218
cmp dword [rbx], esi
jbe 0x140001218
nop dword [rax]
mov eax, esi
lea rdx, str.ntoskrnl.exe
imul rdi, rax, 0x128
lea rcx, [rdi + 0x30]
add rcx, rbx
call qword [sym.imp.ntdll.dll_strstr]
test rax, rax
jne 0x14000124b
inc esi
cmp esi, dword [rbx]
jb 0x1400011f0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140001550
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rax, qword [rdi + rbx + 0x18]
jmp 0x14000122e
Function at 0x140001e2c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001e76
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001e76
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001e76
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001e76
cmp dword [rcx + 0x84], 0xe
jbe 0x140001e76
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001e78
xor al, al
add rsp, 0x28
ret
Function at 0x1400014fc
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x14000d188]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov esi, r8d
lea r9, [rsp + 0x40]
mov edi, r8d
mov ebx, r8d
and esi, 0x300
mov r15, rdx
mov r8d, esi
mov r14, rcx
or r8d, 9
and edi, 1
call fcn.140007810
test eax, eax
jne 0x1400015fd
test bl, 2
je 0x1400015c4
and qword [rsp + 0x38], 0
lea r9, [rsp + 0x48]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x50]
and qword [rsp + 0x28], 0
xor edx, edx
mov rcx, qword [rsp + 0x40]
and qword [rsp + 0x20], 0
and dword [rsp + 0x48], eax
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
je 0x1400015c4
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x1400015fd
test edi, edi
jne 0x140001598
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov r8d, ebx
call fcn.1400014fc
test eax, eax
jne 0x1400015e0
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x50]
mov r9d, 0x105
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x1400015aa
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r9d, r9d
mov r8d, esi
mov rdx, r15
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.1400098e0
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x270
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400038c8
Capabilities:
Read file on windows

Disassembly:
mov r8d, edx
mov rdx, rcx
mov rcx, qword [0x14000d020]
jmp fcn.140007f10

Function at 0x140003b08
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov edi, r9d
mov rsi, r8
mov rbp, rdx
test ecx, ecx
js 0x140003b4a
mov edx, dword [0x140078db4]
xor r9d, r9d
add edx, ecx
xor r8d, r8d
mov rcx, qword [0x14000d028]
mov dword [0x140021224], edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, 4
mov ecx, ebx
call fcn.1400038f4
test eax, eax
js 0x140003c47
mov rcx, qword [0x14000d028]
lea rdx, [rsp + 0x50]
mov r8d, ebx
call fcn.140007f10
test eax, eax
je 0x140003c42
mov ecx, dword [rsp + 0x50]
add dword [0x140021224], ebx
call fcn.1400038f4
mov ebx, eax
test eax, eax
js 0x140003c47
test rsi, rsi
jne 0x140003c09
mov ecx, dword [rsp + 0x50]
test ecx, ecx
jle 0x140003c3e
mov edi, 0x4000
cmp ecx, edi
lea rdx, [0x140032e30]
mov r8d, edi
cmovl r8d, ecx
mov rcx, qword [0x14000d028]
mov dword [rsp + 0x30], r8d
call fcn.140007f10
test eax, eax
je 0x140003c42
mov r8d, dword [rsp + 0x30]
lea rdx, [0x140032e30]
mov rcx, rbp
call fcn.140007ffc
test eax, eax
je 0x140003c02
mov eax, dword [rsp + 0x30]
add ebx, eax
mov ecx, dword [rsp + 0x50]
add dword [0x140021224], eax
sub ecx, eax
mov dword [rsp + 0x50], ecx
test ecx, ecx
jg 0x140003ba9
jmp 0x140003c3e
mov eax, 0xfffffffe
jmp 0x140003c47
cmp dword [rsp + 0x50], edi
lea r9, [rsp + 0x30]
mov rcx, qword [0x14000d028]
mov rdx, rsi
cmovl edi, dword [rsp + 0x50]
and qword [rsp + 0x20], 0
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140003c42
mov ebx, dword [rsp + 0x30]
add dword [0x140021224], ebx
mov eax, ebx
jmp 0x140003c47
mov eax, 0xfffffffd
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x140003c5c
Capabilities:
Hide graphical window

Disassembly:
sub rsp, 0xc8
mov rax, qword [0x14000d188]
xor rax, rsp
mov qword [rsp + 0xb0], rax
test ecx, ecx
je 0x140003c98
mov rcx, qword [0x140021238]
test rcx, rcx
je 0x140003c8b
call qword [sym.imp.USER32.dll_DestroyWindow]
and qword [0x140021238], 0
jmp 0x140003d4f
cmp qword [0x140021238], 0
je 0x140003cae
xor ecx, ecx
call fcn.1400076ec
jmp 0x140003d4f
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x140078d40]
jbe 0x140003d4f
cmp qword [0x140070d20], 0
je 0x140003d19
test byte [0x140078e54], 1
je 0x140003d4f
mov r8d, dword [0x140021230]
mov edx, 0x64
cmp dword [0x140021234], r8d
mov ecx, r8d
cmovb ecx, dword [0x140021234]
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov r8d, eax
lea rdx, str....__d__
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x30]
xor ecx, ecx
call fcn.1400070d8
jmp 0x140003d4f
mov rcx, qword [0x140070d18]
lea r9, [0x140004130]
and qword [rsp + 0x20], 0
xor r8d, r8d
lea edx, [r8 + 0x6f]
call qword [sym.imp.USER32.dll_CreateDialogParamW]
mov rcx, rax
mov qword [0x140021238], rax
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400098e0
add rsp, 0xc8
ret
Function at 0x1400041fc
Capabilities:
Delete file
Enumerate files on windows
Move file

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x14000d020]
cmp rcx, 0xffffffffffffffff
je 0x14000421b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [0x14000d020], 0xffffffffffffffff
mov rcx, qword [0x14000d028]
cmp rcx, 0xffffffffffffffff
je 0x140004236
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [0x14000d028], 0xffffffffffffffff
call fcn.140004938
mov edx, 7
lea rcx, [0x1400e2000]
add rsp, 0x28
jmp fcn.140007bfc
Function at 0x140004894
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
lea rbx, [0x1400de000]
mov rcx, rbx
call fcn.140008370
mov rcx, rbx
call fcn.140008484
test eax, eax
jne 0x1400048bd
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
call fcn.1400079ac
mov rcx, rbx
call fcn.140007214
mov rdx, rbx
lea rcx, [0x1400da000]
add rsp, 0x20
pop rbx
jmp fcn.140008054

Function at 0x140006c6c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, 0xffff
lea rcx, [0x1400da000]
movzx ebx, di
call fcn.14000824c
mov r10, qword [0x140078d50]
mov r11, rax
xor esi, esi
mov edx, dword [0x140078d98]
test edx, edx
je 0x140006cef
mov r9d, dword [r10 + 0x84]
mov r8d, r9d
imul r8d, edx
sub r8d, r9d
movzx eax, r11w
movsxd rcx, r8d
dec edx
add rcx, qword [0x140078d90]
xor ax, word [rcx]
test bx, ax
je 0x140006cd4
test edx, edx
jne 0x140006cb3
jmp 0x140006cef
mov eax, dword [rcx + 2]
mov dword [0x140070cd8], eax
mov eax, dword [rcx + 6]
mov dword [0x140078e48], eax
lea rax, [rcx + 0xa]
test rax, rax
jne 0x140006d00
cmp bx, di
mov eax, 0x3ff
cmovne ax, si
movzx ebx, ax
jmp 0x140006c9b
mov qword [0x140070cf0], rax
movzx edx, word [rcx]
lea rcx, [0x1400da000]
call fcn.140007ab4
mov edx, 0xfffffffe
lea rcx, [0x140070d40]
call fcn.1400072a4
mov rcx, qword [0x14004ee58]
lea rdx, [0x140070d40]
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rbx, qword [0x140078d6c]
mov edi, dword [0x140078d74]
jmp 0x140006d62
mov edx, dword [rbx]
dec edi
test edx, edx
je 0x140006d5b
lea rcx, [rbx + 0x18]
call fcn.1400072a4
add rbx, 0x4018
test edi, edi
jne 0x140006d4a
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140007214
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor ecx, ecx
test eax, eax
jne 0x14000722e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov eax, ecx
add rsp, 0x28
ret

Function at 0x140007238
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x60
lea rax, [0x14000aa80]
mov dword [rbp - 0x28], 0x40001
mov qword [rbp - 0x20], rax
lea rdx, [rbp - 0x40]
mov qword [rbp - 0x18], rax
xor ebx, ebx
lea rax, [0x14000aa70]
mov qword [rbp - 0x10], rbx
mov qword [rbp - 8], rax
lea rax, [rbp - 0x28]
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x40], 0x18
mov dword [rbp - 0x30], ebx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140007294
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rbp
ret
Function at 0x140007648
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x270
mov rax, qword [0x14000d188]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
cmp eax, 0x104
jbe 0x140007684
xor r8d, r8d
jmp 0x14000769c
mov r8d, edx
test edx, edx
je 0x14000769c
dec eax
lea r10, [0x14000a610]
cmp word [rsp + rax*2 + 0x20], 0x5c
jne 0x1400076a3
lea r10, [0x14000a612]
mov eax, r8d
lea rcx, [rsp + 0x20]
mov r9, rbx
lea rdx, str._s_S.dll
mov r8, r10
lea rcx, [rcx + rax*2]
call qword [sym.imp.USER32.dll_wsprintfW]
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400098e0
add rsp, 0x270
pop rbx
ret

Function at 0x14000772c
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
mov r8d, 5
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
inc dword [0x140078e30]
add rsp, 0x28
ret

Function at 0x1400079ec
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, edx
mov rbx, rcx
call fcn.140008188
mov esi, eax
cmp eax, 0xffffffff
je 0x140007a3f
mov rcx, rbx
test dil, 1
je 0x140007a1d
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140007a23
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x140007a2e
mov eax, 1
jmp 0x140007a41
test dil, 4
jne 0x140007a3f
mov edx, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdx, rcx
lea rdi, [0x140062f10]
mov rcx, rdi
mov r8d, 0x2000
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
mov rcx, rdi
call fcn.1400081c0
xor esi, esi
mov rbx, rax
test rax, rax
je 0x140007b7d
mov rcx, rax
call fcn.140008370
test byte [0x140078d4c], 0x80
je 0x140007b1e
cmp word [rbx], si
je 0x140007b7d
cmp word [rbx], 0x5c
je 0x140007b7d
sub rbx, rdi
mov rcx, rdi
sar rbx, 1
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp rcx, rbx
jle 0x140007b60
mov rcx, rdi
call fcn.140007a54
test rax, rax
je 0x140007b47
test byte [rax], 0x10
je 0x140007b7d
mov rcx, rdi
call fcn.140008334
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rdx, eax
cmp rdx, rbx
jg 0x140007b35
mov rcx, rdi
call fcn.1400079ac
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140007b7d
mov eax, 1
jmp 0x140007b7f
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140007b90
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
sub rsp, 0x78
lea rax, [r11 - 0x28]
mov dword [0x14005eea0], 0x68
mov qword [r11 - 0x30], rax
mov rdx, rcx
lea rax, [0x14005eea0]
xor r9d, r9d
mov qword [r11 - 0x38], rax
xor r8d, r8d
and qword [r11 - 0x40], 0
xor ecx, ecx
and qword [r11 - 0x48], 0
mov dword [rsp + 0x28], 0x4000000
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140007be4
xor eax, eax
jmp 0x140007bf4
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x50]
add rsp, 0x78
ret
Function at 0x140007bfc
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x280
mov rax, qword [0x14000d188]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov ebp, edx
mov esi, edx
and ebp, 4
mov rdi, rcx
call fcn.140007ac8
mov r12d, eax
test sil, 8
je 0x140007c58
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebx, ebx
test eax, eax
sete bl
add dword [0x140078e28], ebx
jmp 0x140007e22
mov r14d, esi
xor ebx, ebx
and r14d, 1
je 0x140007c76
test r12d, r12d
je 0x140007e0d
test sil, 2
je 0x140007dc1
lea r15, [0x14005ef10]
mov r8d, 0x2000
mov rcx, r15
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
test r14d, r14d
je 0x140007ca6
lea rdx, str..
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x140007cae
mov rcx, rdi
call fcn.140008334
cmp word [rdi], bx
jne 0x140007cbd
cmp word [0x14005ef10], 0x5c
jne 0x140007ccd
lea rdx, [0x14000a610]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rdx, eax
mov rcx, r15
lea r13, [rdi + rdx*2]
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x140007db2
cmp word [rsp + 0x4c], 0x2e
jne 0x140007d1a
cmp word [rsp + 0x4e], bx
je 0x140007d93
cmp word [rsp + 0x4e], 0x2e
jne 0x140007d1a
cmp word [rsp + 0x50], bx
je 0x140007d93
mov r8d, 0x2000
lea rdx, [rsp + 0x4c]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
test byte [rsp + 0x20], 0x10
je 0x140007d4a
mov eax, esi
and eax, 3
cmp al, 3
jne 0x140007d93
mov edx, esi
mov rcx, rdi
call fcn.140007bfc
jmp 0x140007d93
mov edx, ebp
mov rcx, rdi
call fcn.1400079ec
test eax, eax
jne 0x140007d86
test ebp, ebp
je 0x140007d7e
mov rdx, rdi
lea ecx, [rax - 0xf]
call fcn.1400070d8
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 5]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
inc dword [0x140078e30]
jmp 0x140007d93
inc dword [0x140078e28]
jmp 0x140007d93
mov rdx, rdi
mov ecx, 0xfffffff2
call fcn.1400070d8
lea rdx, [rsp + 0x20]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140007cf8
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindClose]
test r14d, r14d
je 0x140007e22
mov word [r13 - 2], bx
test r12d, r12d
je 0x140007e0d
mov rcx, rdi
call fcn.140007a54
test rax, rax
je 0x140007e22
mov rcx, rdi
call fcn.1400079ac
mov edx, ebp
mov rcx, rdi
or edx, 1
call fcn.1400079ec
test eax, eax
jne 0x140007e15
test ebp, ebp
je 0x140007e0d
mov rdx, rdi
lea ecx, [rax - 0xf]
call fcn.1400070d8
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 5]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
inc dword [0x140078e30]
jmp 0x140007e22
inc dword [0x140078e28]
jmp 0x140007e22
mov rdx, rdi
mov ecx, 0xffffffe5
call fcn.1400070d8
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400098e0
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x280
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140007ebc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov ebx, r8d
mov edi, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
mov edx, edi
mov qword [rsp + 0x30], rcx
cmp eax, 0xffffffff
cmove eax, ecx
xor r9d, r9d
lea r8d, [rcx + 1]
mov dword [rsp + 0x28], eax
mov rcx, rsi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140007f10
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor ebx, ebx
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], rbx
mov edi, r8d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140007f3e
cmp edi, dword [rsp + 0x58]
jne 0x140007f3e
mov ebx, 1
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140007f4c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x40
neg dword [rsp + 0x70]
mov rbx, r8
mov rdi, r9
mov dword [rax - 0x18], 0x4000
sbb r8d, r8d
lea r9, [rax - 0x10]
and r8d, 0x200
or r8d, 0x20019
call fcn.140007810
xor esi, esi
test eax, eax
jne 0x140007fd5
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov word [rdi + 0x3ffe], si
test ebx, ebx
jne 0x140007fd5
mov eax, dword [rsp + 0x70]
dec eax
cmp eax, 1
jbe 0x140007fd8
mov word [rdi], si
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140007fe8
Capabilities:
Create process on windows

Disassembly:
and qword [rcx + 0x40], 0
mov dword [rcx], 0x70
jmp qword [sym.imp.SHELL32.dll_ShellExecuteExW]

Function at 0x140007ffc
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor ebx, ebx
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], rbx
mov edi, r8d
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000802a
cmp edi, dword [rsp + 0x58]
jne 0x14000802a
mov ebx, 1
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140008054
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x14000d188]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rsi, rdx
mov rbx, rcx
mov edi, 0x64
xor ebp, ebp
movabs rax, 0x610073006e
dec edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9, rbx
xor r8d, r8d
mov ecx, eax
mov eax, 0x4ec4ec4f
mul ecx
shr edx, 3
imul eax, edx, 0x1a
lea rdx, [rsp + 0x20]
sub ecx, eax
add word [rsp + 0x24], cx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x1400080cc
test edi, edi
jne 0x14000807c
mov word [rbx], bp
xor eax, eax
jmp 0x1400080cf
mov rax, rbx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400098e0
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret

Function at 0x140008188
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
je 0x1400081b0
mov edx, eax
mov rcx, rdi
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400084b4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
cmp dword [0x140067164], 0
lea rsi, [0x140067160]
mov rbx, r8
mov r9d, ecx
jne 0x14000851a
xor r10d, r10d
mov r11, rsi
mov r8d, r10d
mov edi, 8
mov eax, r8d
and al, 1
neg al
mov eax, r8d
sbb ecx, ecx
shr eax, 1
and ecx, 0xedb88320
mov r8d, ecx
xor r8d, eax
sub rdi, 1
jne 0x1400084e7
mov dword [r11], r8d
inc r10d
add r11, 4
cmp r10d, 0x100
jl 0x1400084df
not r9d
test rbx, rbx
je 0x14000853f
movzx ecx, byte [rdx]
mov eax, r9d
xor rcx, rax
shr r9d, 8
movzx eax, cl
inc rdx
xor r9d, dword [rsi + rax*4]
sub rbx, 1
jne 0x140008522
mov rbx, qword [rsp + 8]
not r9d
mov rsi, qword [rsp + 0x10]
mov eax, r9d
mov rdi, qword [rsp + 0x18]
ret
Function at 0x140002680
Capabilities:
Parse pe header

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

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x6b0
mov rax, qword [0x1400363c8]
xor rax, rsp
mov qword [rsp + 0x6a0], rax
mov rax, rdx
mov rdi, r8
mov rbx, rcx
mov byte [rcx + 8], r9b
xor esi, esi
lea rdx, [rsp + 0x70]
mov qword [rcx], rsi
mov rcx, rax
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rdx, [rsp + 0x70]
mov r8, rdi
mov rcx, rbx
call fcn.140011600
cmp eax, 2
jne 0x140001276
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
lea r9, [rsp + 0x280]
lea r8d, [rsi + 0xa]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], 0x104
call fcn.140011734
lea r9, [rsp + 0x280]
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0x490]
mov edx, 0x104
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call fcn.1400119e4
lea rcx, [rsp + 0x490]
call fcn.140011b3c
lea rdx, [rsp + 0x70]
mov r8, rdi
mov rcx, rbx
call fcn.140011600
mov rax, rbx
mov rcx, qword [rsp + 0x6a0]
xor rcx, rsp
call fcn.140010f60
add rsp, 0x6b0
pop rdi
pop rsi
pop rbx
ret

Function at 0x140001340
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x440
mov rax, qword [0x1400363c8]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov rsi, rdx
lea rdx, [rsp + 0x30]
xor r13d, r13d
mov rbp, r8
mov r12, rcx
mov word [rsp + 0x30], r13w
call fcn.1400016e0
lea rdi, [rsp + 0x30]
mov r15d, 0x200
movsxd r14, eax
mov ebx, r15d
mov rcx, r12
lea rdi, [rdi + r14*2]
sub ebx, r14d
mov rdx, rdi
mov r8d, ebx
call fcn.1400015e0
mov r9, rsi
mov qword [rsp + 0x20], rbp
sub ebx, eax
add r14d, eax
cdqe
movsxd rdx, ebx
lea rcx, [rdi + rax*2]
mov r8, rdx
call fcn.140012124
test eax, eax
js 0x140001404
add r14d, eax
cmp r14d, 0x1ff
jge 0x140001404
movsxd rax, r14d
lea r15d, [r14 + 1]
mov ecx, 0xa
mov word [rsp + rax*2 + 0x30], cx
movsxd rax, r15d
add rax, rax
cmp rax, 0x400
jae 0x140001482
mov word [rsp + rax + 0x30], r13w
jmp 0x14000140f
mov dword [rsp + 0x42c], 0xa
mov eax, dword [0x140039b00]
test al, 1
jne 0x14000142f
or eax, 1
mov dword [0x140039b00], eax
call fcn.140001a20
mov dword [0x140039b04], eax
jmp 0x140001435
mov eax, dword [0x140039b04]
cmp eax, 1
jne 0x140001447
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x140001454
lea rdx, [rsp + 0x30]
mov rcx, r12
call fcn.140001490
mov eax, r15d
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.140010f60
mov rbx, qword [rsp + 0x498]
add rsp, 0x440
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140012074
int3