joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001890
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x1400055e0], rbx
je 0x1400018dc
cmp rax, rbx
jne 0x1400018cf
mov ebx, 1
mov esi, ebx
jmp 0x1400018e1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400018b4
mov ebx, 1
mov eax, dword [0x1400055e8]
cmp eax, ebx
jne 0x1400018f7
mov ecx, 0x1f
call fcn.140095000
jmp 0x14000195c
mov eax, dword [0x1400055e8]
test eax, eax
jne 0x140001956
mov dword [0x1400055e8], ebx
lea r15, [0x1400032b8]
lea rdi, [0x1400032a0]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140001948
test eax, eax
jne 0x14000194c
cmp qword [rdi], 0
je 0x14000193d
mov rax, qword [rdi]
mov rcx, qword [0x140003280]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000191e
test eax, eax
je 0x14000195c
mov eax, 0xff
jmp 0x140001a38
mov dword [0x140005024], ebx
mov eax, dword [0x1400055e8]
cmp eax, ebx
jne 0x140001983
lea rdx, [0x140003298]
lea rcx, [0x140003288]
call sub.msvcrt.dll__initterm
mov dword [0x1400055e8], 2
test esi, esi
jne 0x140001990
xor eax, eax
xchg qword [0x1400055e0], rax
cmp qword [0x1400055f0], 0
je 0x1400019c4
lea rcx, [0x1400055f0]
call fcn.140001c40
test eax, eax
je 0x1400019c4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1400055f0]
mov r9, qword [0x140003280]
call r9
mov r8, qword [0x140005038]
mov rdx, qword [0x140005030]
mov ecx, dword [0x140005028]
call fcn.140001008
mov dword [0x140005020], eax
cmp dword [0x140005040], 0
jne 0x1400019f4
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140005024], 0
jne 0x140001a09
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140005020]
jmp 0x140001a38
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140001cd4
add rsp, 0x28
jmp 0x140001890

Function at 0x140001b2c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140001b78
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140001b70
cmp dword [rcx + 0x3c], edx
jl 0x140001b70
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140001b70
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140001b78
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1400014f8
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov esi, r8d
lea r9, [rbp + 0x198]
mov edi, r8d
mov ebx, r8d
and esi, 0x300
mov r14, rdx
mov r8d, esi
mov r15, rcx
or r8d, 9
and edi, 1
call fcn.1400071bc
test eax, eax
jne 0x1400015f8
test bl, 2
je 0x1400015bb
and qword [rsp + 0x38], 0
lea r9, [rbp + 0x190]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x40]
and qword [rsp + 0x28], 0
xor edx, edx
mov rcx, qword [rbp + 0x198]
and qword [rsp + 0x20], 0
and dword [rbp + 0x190], eax
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
je 0x1400015bb
mov rcx, qword [rbp + 0x198]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x1400015f8
test edi, edi
jne 0x14000158b
mov rcx, qword [rbp + 0x198]
lea rdx, [rsp + 0x40]
mov r8d, ebx
call fcn.1400014f8
test eax, eax
jne 0x1400015d9
mov rcx, qword [rbp + 0x198]
lea r8, [rsp + 0x40]
mov r9d, 0x105
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x14000159f
mov rcx, qword [rbp + 0x198]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r9d, r9d
mov r8d, esi
mov rdx, r14
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140003708
Capabilities:
Read file on windows

Disassembly:
mov r8d, edx
mov rdx, rcx
mov rcx, qword [0x14000c020]
jmp fcn.1400078a4
Function at 0x140003734
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xb8
test r8, r8
lea r12, [0x14001aa70]
mov esi, 0x8000
mov edi, r9d
cmovne esi, r9d
mov r15, r8
xor ebx, ebx
mov r13, rdx
test r8, r8
cmovne r12, r8
test ecx, ecx
js 0x140003795
mov edx, dword [0x14002aad4]
xor r9d, r9d
add edx, ecx
xor r8d, r8d
mov rcx, qword [0x14000c020]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [0x14000c020]
lea rdx, [rbp + 0x67]
mov r8d, 4
call fcn.1400078a4
test eax, eax
je 0x14000396e
mov eax, dword [rbp + 0x67]
test eax, eax
jns 0x140003902
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [0x14000e9c0]
mov dword [rbp + 0x7f], eax
call fcn.140008d00
mov r13d, dword [rbp + 0x67]
and r13d, 0x7fffffff
mov edx, r13d
mov dword [rbp + 0x67], edx
jbe 0x1400038f7
lea r14, [0x140016a70]
mov rcx, qword [0x14000c020]
mov edi, 0x4000
cmp edx, edi
cmovl edi, edx
mov rdx, r14
mov r8d, edi
call fcn.1400078a4
test eax, eax
je 0x14000396e
sub dword [rbp + 0x67], edi
mov qword [0x14000e9d8], r14
mov dword [0x14000e9e0], edi
lea rcx, [0x14000e9c0]
mov qword [0x14000e9e8], r12
mov dword [0x14000e9f0], esi
call fcn.140007ee0
mov dword [rbp - 0x79], eax
test eax, eax
js 0x1400038fb
mov edi, dword [0x14000e9e8]
sub edi, r12d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x14002ab74], 1
mov edx, dword [rbp + 0x67]
mov dword [rbp + 0x77], eax
je 0x1400038b3
mov ecx, eax
sub ecx, dword [rbp + 0x7f]
cmp ecx, 0xc8
ja 0x140003878
test edx, edx
jne 0x1400038b3
mov ecx, r13d
mov r8d, r13d
sub ecx, edx
mov edx, 0x64
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov r8d, eax
lea rdx, str....__d__
lea rcx, [rbp - 0x69]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rbp - 0x69]
xor ecx, ecx
call fcn.140006b04
mov eax, dword [rbp + 0x77]
mov edx, dword [rbp + 0x67]
mov dword [rbp + 0x7f], eax
test edi, edi
je 0x1400038ef
test r15, r15
jne 0x1400038d9
mov rcx, qword [rbp + 0x6f]
mov r8d, edi
mov rdx, r12
call fcn.140007990
test eax, eax
jne 0x1400038e2
mov eax, 0xfffffffe
jmp 0x140003973
mov r12, qword [0x14000e9e8]
sub esi, edi
add ebx, edi
cmp dword [rbp - 0x79], 1
je 0x1400038f7
jmp 0x140003825
test edx, edx
jg 0x1400037f1
mov eax, ebx
jmp 0x140003973
mov eax, 0xfffffffc
jmp 0x140003973
test r15, r15
jne 0x140003951
test eax, eax
jle 0x1400038f7
lea r14, [0x140016a70]
mov rcx, qword [0x14000c020]
cmp eax, esi
mov edi, esi
mov rdx, r14
cmovl edi, eax
mov r8d, edi
call fcn.1400078a4
test eax, eax
je 0x14000396e
mov r8d, edi
mov rdx, r14
mov rcx, r13
call fcn.140007990
test eax, eax
je 0x1400038cf
mov eax, dword [rbp + 0x67]
add ebx, edi
sub eax, edi
mov dword [rbp + 0x67], eax
test eax, eax
jg 0x140003912
jmp 0x1400038f7
mov rcx, qword [0x14000c020]
cmp eax, edi
mov ebx, edi
mov rdx, r15
cmovl ebx, eax
mov r8d, ebx
call fcn.1400078a4
test eax, eax
jne 0x1400038f7
mov eax, 0xfffffffd
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140003988
Capabilities:
Hide graphical window

Disassembly:
sub rsp, 0x38
test ecx, ecx
je 0x1400039af
mov rcx, qword [0x14000e9b8]
test rcx, rcx
je 0x1400039a2
call qword [sym.imp.USER32.dll_DestroyWindow]
and qword [0x14000e9b8], 0
add rsp, 0x38
ret
cmp qword [0x14000e9b8], 0
je 0x1400039c4
xor ecx, ecx
add rsp, 0x38
jmp fcn.1400070b8
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x14002aa64]
jbe 0x140003a08
mov rcx, qword [0x140029a38]
lea r9, [0x140003d14]
and qword [rsp + 0x20], 0
xor r8d, r8d
lea edx, [r8 + 0x6f]
call qword [sym.imp.USER32.dll_CreateDialogParamW]
mov rcx, rax
mov qword [0x14000e9b8], rax
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
add rsp, 0x38
ret
Function at 0x140003dac
Capabilities:
Delete file
Enumerate files on windows
Move file

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x14000c020]
cmp rcx, 0xffffffffffffffff
je 0x140003dcb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [0x14000c020], 0xffffffffffffffff
call fcn.1400043fc
mov edx, 7
lea rcx, [0x140039000]
add rsp, 0x28
jmp fcn.1400075a4
Function at 0x14000435c
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
lea rbx, [0x140038800]
mov rcx, rbx
call fcn.140007d00
mov rcx, rbx
call fcn.140007e08
test eax, eax
jne 0x140004385
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
call fcn.140007354
mov rcx, rbx
call fcn.140006c2c
mov rdx, rbx
lea rcx, [0x140038000]
add rsp, 0x20
pop rbx
jmp fcn.1400079e8

Function at 0x1400066b8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, pe_overlay
lea rcx, [0x140038000]
movzx ebx, di
call fcn.140007bdc
mov r10, qword [0x14002aa78]
mov r11, rax
xor esi, esi
mov edx, dword [0x14002aab8]
test edx, edx
je 0x14000673b
mov r9d, dword [r10 + 0x84]
mov r8d, r9d
imul r8d, edx
sub r8d, r9d
dec edx
movsxd rcx, r8d
add rcx, qword [0x14002aab0]
movzx eax, word [rcx]
xor ax, r11w
test bx, ax
je 0x140006720
test edx, edx
jne 0x1400066ff
jmp 0x14000673b
mov eax, dword [rcx + 2]
mov dword [0x1400299f8], eax
mov eax, dword [rcx + 6]
mov dword [0x14002ab68], eax
lea rax, [rcx + 0xa]
test rax, rax
jne 0x14000674c
cmp bx, di
mov eax, 0x3ff
cmovne ax, si
movzx ebx, ax
jmp 0x1400066e7
mov qword [0x140029a10], rax
movzx edx, word [rcx]
lea rcx, [0x140038000]
call fcn.14000745c
mov edx, 0xfffffffe
lea rcx, [0x140029a60]
call fcn.140006ce0
mov rcx, qword [0x140025298]
lea rdx, [0x140029a60]
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rbx, qword [0x14002aa8c]
mov edi, dword [0x14002aa94]
jmp 0x1400067ae
mov edx, dword [rbx]
dec edi
test edx, edx
je 0x1400067a7
lea rcx, [rbx + 0x18]
call fcn.140006ce0
add rbx, 0x818
test edi, edi
jne 0x140006796
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140006c2c
Capabilities:
Create directory

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

Function at 0x140006c50
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x60
and qword [rbp - 0x10], 0
lea rax, [0x1400099a0]
and dword [rbp - 0x30], 0
lea rdx, [rbp - 0x40]
mov qword [rbp - 0x20], rax
mov rbx, rcx
mov qword [rbp - 0x18], rax
lea rax, [0x140009990]
mov qword [rbp - 8], rax
lea rax, [rbp - 0x28]
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x28], 0x40001
mov dword [rbp - 0x40], 0x18
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140006cca
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140006cd4
lea r8, [rbp - 0x28]
mov edx, 0x80000007
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
je 0x140006cce
xor eax, eax
jmp 0x140006cd4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rbp
ret
Function at 0x140007040
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x260
mov rbx, rcx
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor ecx, ecx
cmp eax, 0x104
cmova eax, ecx
test eax, eax
je 0x14000707c
lea ecx, [rax - 1]
cmp word [rsp + rcx*2 + 0x20], 0x5c
lea r8, [0x140009550]
jne 0x140007083
lea r8, [0x140009552]
lea rcx, [rsp + 0x20]
mov r9, rbx
lea rcx, [rcx + rax*2]
lea rdx, str._s_S.dll
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]
add rsp, 0x260
pop rbx
ret

Function at 0x1400070f8
Capabilities:
Move file

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

Function at 0x140007394
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.140007b14
mov esi, eax
cmp eax, 0xffffffff
je 0x1400073e7
mov rcx, rbx
test dil, 1
je 0x1400073c5
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1400073cb
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1400073d6
mov eax, 1
jmp 0x1400073e9
test dil, 4
jne 0x1400073e7
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 0x140007470
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, [0x140027b50]
mov rcx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
mov rcx, rdi
call fcn.140007b4c
xor esi, esi
mov rbx, rax
test rax, rax
je 0x140007525
mov rcx, rax
call fcn.140007d00
test byte [0x14002aa70], 0x80
je 0x1400074c6
cmp word [rbx], si
je 0x140007525
cmp word [rbx], 0x5c
je 0x140007525
sub rbx, rdi
mov rcx, rdi
sar rbx, 1
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp rcx, rbx
jle 0x140007508
mov rcx, rdi
call fcn.1400073fc
test rax, rax
je 0x1400074ef
test byte [rax], 0x10
je 0x140007525
mov rcx, rdi
call fcn.140007cc4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rdx, eax
cmp rdx, rbx
jg 0x1400074dd
mov rcx, rdi
call fcn.140007354
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140007525
mov eax, 1
jmp 0x140007527
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140007538
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
sub rsp, 0x78
lea rax, [r11 - 0x28]
mov dword [0x1400272e0], 0x68
mov qword [r11 - 0x30], rax
mov rdx, rcx
lea rax, [0x1400272e0]
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 0x14000758c
xor eax, eax
jmp 0x14000759c
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x50]
add rsp, 0x78
ret
Function at 0x1400075a4
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively
Move file

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, 0x270
mov ebp, edx
mov esi, edx
and ebp, 4
mov rdi, rcx
call fcn.140007470
mov r12d, eax
test sil, 8
je 0x1400075f6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebx, ebx
test eax, eax
sete bl
add dword [0x14002ab48], ebx
jmp 0x1400077c0
mov r14d, esi
xor ebx, ebx
and r14d, 1
je 0x140007614
test r12d, r12d
je 0x1400077ab
test sil, 2
je 0x14000775a
lea r15, [0x140027350]
mov r8d, 0x400
mov rcx, r15
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
test r14d, r14d
je 0x140007644
lea rdx, str..
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x14000764c
mov rcx, rdi
call fcn.140007cc4
cmp word [rdi], bx
jne 0x14000765b
cmp word [0x140027350], 0x5c
jne 0x14000766b
lea rdx, [0x140009550]
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 0x140007750
cmp word [rsp + 0x4c], 0x2e
jne 0x1400076b8
cmp word [rsp + 0x4e], bx
je 0x140007731
cmp word [rsp + 0x4e], 0x2e
jne 0x1400076b8
cmp word [rsp + 0x50], bx
je 0x140007731
mov r8d, 0x400
lea rdx, [rsp + 0x4c]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
test byte [rsp + 0x20], 0x10
je 0x1400076e8
mov eax, esi
and eax, 3
cmp al, 3
jne 0x140007731
mov edx, esi
mov rcx, rdi
call fcn.1400075a4
jmp 0x140007731
mov edx, ebp
mov rcx, rdi
call fcn.140007394
test eax, eax
jne 0x140007724
test ebp, ebp
je 0x14000771c
mov rdx, rdi
lea ecx, [rax - 0xf]
call fcn.140006b04
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 5]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
inc dword [0x14002ab50]
jmp 0x140007731
inc dword [0x14002ab48]
jmp 0x140007731
mov rdx, rdi
mov ecx, 0xfffffff2
call fcn.140006b04
lea rdx, [rsp + 0x20]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140007696
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindClose]
test r14d, r14d
je 0x1400077c0
mov word [r13 - 2], bx
test r12d, r12d
je 0x1400077ab
mov rcx, rdi
call fcn.1400073fc
test rax, rax
je 0x1400077c0
mov rcx, rdi
call fcn.140007354
mov edx, ebp
mov rcx, rdi
or edx, 1
call fcn.140007394
test eax, eax
jne 0x1400077b3
test ebp, ebp
je 0x1400077ab
mov rdx, rdi
lea ecx, [rax - 0xf]
call fcn.140006b04
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 5]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
inc dword [0x14002ab50]
jmp 0x1400077c0
inc dword [0x14002ab48]
jmp 0x1400077c0
mov rdx, rdi
mov ecx, 0xffffffe5
call fcn.140006b04
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140007850
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 0x1400078a4
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 0x1400078d2
cmp edi, dword [rsp + 0x58]
jne 0x1400078d2
mov ebx, 1
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1400078e0
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], 0x800
sbb r8d, r8d
lea r9, [rax - 0x10]
and r8d, 0x200
or r8d, 0x20019
call fcn.1400071bc
xor esi, esi
test eax, eax
jne 0x140007969
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 + 0x7fe], si
test ebx, ebx
jne 0x140007969
mov eax, dword [rsp + 0x70]
dec eax
cmp eax, 1
jbe 0x14000796c
mov word [rdi], si
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x14000797c
Capabilities:
Create process on windows

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

Function at 0x140007990
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 0x1400079be
cmp edi, dword [rsp + 0x58]
jne 0x1400079be
mov ebx, 1
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400079e8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
mov edi, 0x64
xor ebp, ebp
movabs rax, 0x610073006e
dec edi
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov r9, rbx
mov eax, 0x4ec4ec4f
mul r8d
shr edx, 3
imul ecx, edx, 0x1a
lea rdx, [rsp + 0x40]
sub r8d, ecx
mov rcx, rsi
add word [rsp + 0x44], r8w
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x140007a5d
test edi, edi
jne 0x140007a09
mov word [rbx], bp
xor eax, eax
jmp 0x140007a60
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140007b14
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 0x140007b3c
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 0x140007e38
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 [0x1400285a4], 0
lea rsi, [0x1400285a0]
mov rbx, r8
mov rdi, rdx
mov r9d, ecx
jne 0x140007ea1
xor r10d, r10d
mov r11, rsi
mov r8d, r10d
mov edx, 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 rdx, 1
jne 0x140007e6e
mov dword [r11], r8d
inc r10d
add r11, 4
cmp r10d, 0x100
jl 0x140007e66
not r9d
test rbx, rbx
je 0x140007ec8
movzx ecx, byte [rdi]
mov eax, r9d
xor rcx, rax
inc rdi
shr eax, 8
movzx edx, cl
mov r9d, dword [rsi + rdx*4]
xor r9d, eax
sub rbx, 1
jne 0x140007ea9
mov rbx, qword [rsp + 8]
not r9d
mov rsi, qword [rsp + 0x10]
mov eax, r9d
mov rdi, qword [rsp + 0x18]
ret