joyce8/EMBER2024-capa huggingface dataset:
Function at 0x34b37d220
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x70
mov rbx, rcx
test byte [0x34b383240], 8
jne 0x34b37d3c0
mov eax, dword [rbx]
cmp eax, 0x40
jne 0x34b37d398
movdqu xmm0, xmmword [rbx]
movdqu xmm1, xmmword [rbx + 0x10]
movdqu xmm2, xmmword [rbx + 0x20]
movdqu xmm3, xmmword [rbx + 0x30]
mov r8, qword [rbx + 0x18]
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x40], xmm1
movaps xmmword [rsp + 0x50], xmm2
movaps xmmword [rsp + 0x60], xmm3
test r8, r8
je 0x34b37d2d9
mov r9d, 0xffffffff
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r12, qword [sym.imp.kernel32.dll_MultiByteToWideChar]
call r12
xor edx, edx
movsxd r8, eax
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rsi, r8
add r8, r8
mov rcx, qword [rax + 0x30]
call qword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [rsp + 0x28], esi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, qword [rbx + 0x18]
mov qword [rsp + 0x48], rax
call r12
mov r8, qword [rbx + 0x20]
test r8, r8
je 0x34b37d348
mov r9d, 0xffffffff
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r12, qword [sym.imp.kernel32.dll_MultiByteToWideChar]
call r12
xor edx, edx
movsxd r8, eax
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rsi, r8
add r8, r8
mov rcx, qword [rax + 0x30]
call qword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [rsp + 0x28], esi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, qword [rbx + 0x20]
mov qword [rsp + 0x50], rax
call r12
lea rcx, [rsp + 0x30]
call sym.cryptui.dll_CryptUIDlgSelectStoreW
mov r8, qword [rsp + 0x50]
mov rbx, qword [sym.imp.kernel32.dll_HeapFree]
xor edx, edx
mov r12, rax
mov rsi, qword gs:[0x30]
mov rax, qword [rsi + 0x60]
mov rcx, qword [rax + 0x30]
call rbx
mov rax, qword [rsi + 0x60]
mov r8, qword [rsp + 0x48]
xor edx, edx
mov rcx, qword [rax + 0x30]
call rbx
mov rax, r12
add rsp, 0x70
pop rbx
pop rsi
pop r12
ret
test byte [0x34b383240], 4
jne 0x34b37d3f0
xor r12d, r12d
mov rax, qword gs:[0x30]
mov dword [rax + 0x68], 0x80070057
mov rax, r12
add rsp, 0x70
pop rbx
pop rsi
pop r12
ret
mov qword [rsp + 0x20], rcx
lea r9, str.__p__n
lea r8, str.CryptUIDlgSelectStoreA
mov ecx, 3
lea rdx, [0x34b383240]
call sym.wine_dbg_log.constprop.0
jmp 0x34b37d238
mov dword [rsp + 0x20], eax
lea r9, str.unexpected_size__ld_n
lea r8, str.CryptUIDlgSelectStoreA
mov ecx, 2
lea rdx, [0x34b383240]
call sym.wine_dbg_log.constprop.0
jmp 0x34b37d3a1
Function at 0x34b381560
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov r12, rcx
call qword [sym.imp.ucrtbase.dll_strlen]
mov rbx, rax
xor eax, eax
test rbx, rbx
je 0x34b3815b3
cmp byte [r12 + rbx - 1], 0xa
je 0x34b38158e
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x48]
xchg dword [0x34b393144], eax
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov edx, 1
mov r9, rax
mov r8, rbx
mov rcx, r12
call qword [sym.imp.ucrtbase.dll_fwrite]
add rsp, 0x28
pop rbx
pop r12
ret
Function at 0x34b381fb0
Capabilities:
Query environment variable

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x230
mov rax, qword [0x34b393180]
mov r12, rcx
mov rbx, rdx
test rax, rax
je 0x34b382040
mov rcx, rbx
call rax
mov dword [rbx + 0xc], eax
test eax, eax
js 0x34b38202c
lea rsi, [rsp + 0x20]
mov r8d, 0x104
mov rcx, r12
mov rdx, rsi
call qword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov rcx, qword [rbx]
mov r8, rsi
lea rdx, str.MODULE
mov rax, qword [rcx]
call qword [rax + 0x18]
mov r8d, 0x104
mov rdx, rsi
lea rcx, str.SystemRoot
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov rcx, qword [rbx]
mov r8, rsi
lea rdx, str.SystemRoot
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rax, qword [rbx]
add rsp, 0x230
pop rbx
pop rsi
pop r12
ret
lea rcx, str.atl100.dll
call qword [sym.imp.kernel32.dll_LoadLibraryW]
mov rcx, rax
test rax, rax
je 0x34b382072
lea rdx, str.AtlCreateRegistrar
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov qword [0x34b393180], rax
test rax, rax
jne 0x34b381fcd
mov dword [rbx + 0xc], 0x80004002
xor eax, eax
jmp 0x34b38202f

Function at 0x34b382080
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov r10, rdx
mov r12, rcx
mov rdx, r8
mov rbx, r9
mov r8, r10
call qword [sym.imp.kernel32.dll_FindResourceW]
mov rcx, r12
mov r13, rax
mov rdx, rax
call qword [sym.imp.kernel32.dll_LoadResource]
mov rdx, r13
mov rcx, r12
mov rsi, rax
call qword [sym.imp.kernel32.dll_SizeofResource]
mov r13d, eax
test rsi, rsi
je 0x34b3821c8
cmp qword [rbx], 0
je 0x34b3821b0
mov r9d, r13d
mov r8, rsi
xor edx, edx
mov ecx, 0xfde9
mov dword [rsp + 0x28], 0
mov rbp, qword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov qword [rsp + 0x20], 0
call rbp
xor edx, edx
mov edi, eax
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
lea r8d, [rdi + 1]
mov r14, r8
add r8, r8
mov rcx, qword [rax + 0x30]
call qword [sym.imp.kernel32.dll_HeapAlloc]
mov r12, rax
test rax, rax
je 0x34b3821d9
xor edx, edx
mov ecx, 0xfde9
mov dword [rsp + 0x28], r14d
mov r9d, r13d
mov qword [rsp + 0x20], rax
mov r8, rsi
call rbp
mov edx, dword [rbx + 8]
mov rcx, qword [rbx]
xor eax, eax
mov word [r12 + rdi*2], ax
test edx, edx
mov rax, qword [rcx]
mov rdx, r12
jne 0x34b3821a0
call qword [rax + 0x50]
mov dword [rbx + 0xc], eax
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov r8, r12
xor edx, edx
mov rcx, qword [rax + 0x30]
call qword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [rbx + 0xc]
not eax
shr eax, 0x1f
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
call qword [rax + 0x48]
mov dword [rbx + 0xc], eax
jmp 0x34b382165
mov rdx, rbx
mov rcx, r12
call sym.create_registrar
test rax, rax
jne 0x34b3820d7
nop dword [rax]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov dword [rbx + 0xc], 0x8007000e
xor eax, eax
jmp 0x34b3821ca
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.1400071e8
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 [0x14000d020]
jmp fcn.1400078d0
Function at 0x1400039b4
Capabilities:
Hide graphical window

Disassembly:
sub rsp, 0x38
test ecx, ecx
je 0x1400039db
mov rcx, qword [0x14000f9f8]
test rcx, rcx
je 0x1400039ce
call qword [sym.imp.USER32.dll_DestroyWindow]
and qword [0x14000f9f8], 0
add rsp, 0x38
ret
cmp qword [0x14000f9f8], 0
je 0x1400039f0
xor ecx, ecx
add rsp, 0x38
jmp fcn.1400070e4
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x140036784]
jbe 0x140003a34
mov rcx, qword [0x140035758]
lea r9, [0x140003d40]
and qword [rsp + 0x20], 0
xor r8d, r8d
lea edx, [r8 + 0x6f]
call qword [sym.imp.USER32.dll_CreateDialogParamW]
mov rcx, rax
mov qword [0x14000f9f8], rax
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
add rsp, 0x38
ret
Function at 0x140003dd8
Capabilities:
Delete file
Enumerate files on windows
Move file

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x14000d020]
cmp rcx, 0xffffffffffffffff
je 0x140003df7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [0x14000d020], 0xffffffffffffffff
call fcn.140004428
mov edx, 7
lea rcx, [0x140045000]
add rsp, 0x28
jmp fcn.1400075d0
Function at 0x140004388
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
lea rbx, [0x140044800]
mov rcx, rbx
call fcn.140007d2c
mov rcx, rbx
call fcn.140007e34
test eax, eax
jne 0x1400043b1
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
call fcn.140007380
mov rcx, rbx
call fcn.140006c58
mov rdx, rbx
lea rcx, [0x140044000]
add rsp, 0x20
pop rbx
jmp fcn.140007a14

Function at 0x1400066e4
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, [0x140044000]
movzx ebx, di
call fcn.140007c08
mov r10, qword [0x140036798]
mov r11, rax
xor esi, esi
mov edx, dword [0x1400367d8]
test edx, edx
je 0x140006767
mov r9d, dword [r10 + 0x84]
mov r8d, r9d
imul r8d, edx
sub r8d, r9d
dec edx
movsxd rcx, r8d
add rcx, qword [0x1400367d0]
movzx eax, word [rcx]
xor ax, r11w
test bx, ax
je 0x14000674c
test edx, edx
jne 0x14000672b
jmp 0x140006767
mov eax, dword [rcx + 2]
mov dword [0x140035718], eax
mov eax, dword [rcx + 6]
mov dword [0x140036888], eax
lea rax, [rcx + 0xa]
test rax, rax
jne 0x140006778
cmp bx, di
mov eax, 0x3ff
cmovne ax, si
movzx ebx, ax
jmp 0x140006713
mov qword [0x140035730], rax
movzx edx, word [rcx]
lea rcx, [0x140044000]
call fcn.140007488
mov edx, 0xfffffffe
lea rcx, [0x140035780]
call fcn.140006d0c
mov rcx, qword [0x14002fe18]
lea rdx, [0x140035780]
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rbx, qword [0x1400367ac]
mov edi, dword [0x1400367b4]
jmp 0x1400067da
mov edx, dword [rbx]
dec edi
test edx, edx
je 0x1400067d3
lea rcx, [rbx + 0x18]
call fcn.140006d0c
add rbx, 0x818
test edi, edi
jne 0x1400067c2
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140006c58
Capabilities:
Create directory

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

Function at 0x140006c7c
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x60
and qword [rbp - 0x10], 0
lea rax, [0x14000a9a0]
and dword [rbp - 0x30], 0
lea rdx, [rbp - 0x40]
mov qword [rbp - 0x20], rax
mov rbx, rcx
mov qword [rbp - 0x18], rax
lea rax, [0x14000a990]
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 0x140006cf6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140006d00
lea r8, [rbp - 0x28]
mov edx, 0x80000007
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
je 0x140006cfa
xor eax, eax
jmp 0x140006d00
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rbp
ret
Function at 0x14000706c
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 0x1400070a8
lea ecx, [rax - 1]
cmp word [rsp + rcx*2 + 0x20], 0x5c
lea r8, [0x14000a550]
jne 0x1400070af
lea r8, [0x14000a552]
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 0x140007124
Capabilities:
Move file

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

Function at 0x1400073c0
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.140007b40
mov esi, eax
cmp eax, 0xffffffff
je 0x140007413
mov rcx, rbx
test dil, 1
je 0x1400073f1
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1400073f7
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x140007402
mov eax, 1
jmp 0x140007415
test dil, 4
jne 0x140007413
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 0x14000749c
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, [0x1400326d0]
mov rcx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
mov rcx, rdi
call fcn.140007b78
xor esi, esi
mov rbx, rax
test rax, rax
je 0x140007551
mov rcx, rax
call fcn.140007d2c
test byte [0x140036790], 0x80
je 0x1400074f2
cmp word [rbx], si
je 0x140007551
cmp word [rbx], 0x5c
je 0x140007551
sub rbx, rdi
mov rcx, rdi
sar rbx, 1
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp rcx, rbx
jle 0x140007534
mov rcx, rdi
call fcn.140007428
test rax, rax
je 0x14000751b
test byte [rax], 0x10
je 0x140007551
mov rcx, rdi
call fcn.140007cf0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rdx, eax
cmp rdx, rbx
jg 0x140007509
mov rcx, rdi
call fcn.140007380
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140007551
mov eax, 1
jmp 0x140007553
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140007564
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
sub rsp, 0x78
lea rax, [r11 - 0x28]
mov dword [0x140031e60], 0x68
mov qword [r11 - 0x30], rax
mov rdx, rcx
lea rax, [0x140031e60]
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 0x1400075b8
xor eax, eax
jmp 0x1400075c8
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x50]
add rsp, 0x78
ret
Function at 0x1400075d0
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.14000749c
mov r12d, eax
test sil, 8
je 0x140007622
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebx, ebx
test eax, eax
sete bl
add dword [0x140036868], ebx
jmp 0x1400077ec
mov r14d, esi
xor ebx, ebx
and r14d, 1
je 0x140007640
test r12d, r12d
je 0x1400077d7
test sil, 2
je 0x140007786
lea r15, [0x140031ed0]
mov r8d, 0x400
mov rcx, r15
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
test r14d, r14d
je 0x140007670
lea rdx, str..
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x140007678
mov rcx, rdi
call fcn.140007cf0
cmp word [rdi], bx
jne 0x140007687
cmp word [0x140031ed0], 0x5c
jne 0x140007697
lea rdx, [0x14000a550]
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 0x14000777c
cmp word [rsp + 0x4c], 0x2e
jne 0x1400076e4
cmp word [rsp + 0x4e], bx
je 0x14000775d
cmp word [rsp + 0x4e], 0x2e
jne 0x1400076e4
cmp word [rsp + 0x50], bx
je 0x14000775d
mov r8d, 0x400
lea rdx, [rsp + 0x4c]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
test byte [rsp + 0x20], 0x10
je 0x140007714
mov eax, esi
and eax, 3
cmp al, 3
jne 0x14000775d
mov edx, esi
mov rcx, rdi
call fcn.1400075d0
jmp 0x14000775d
mov edx, ebp
mov rcx, rdi
call fcn.1400073c0
test eax, eax
jne 0x140007750
test ebp, ebp
je 0x140007748
mov rdx, rdi
lea ecx, [rax - 0xf]
call fcn.140006b30
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 5]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
inc dword [0x140036870]
jmp 0x14000775d
inc dword [0x140036868]
jmp 0x14000775d
mov rdx, rdi
mov ecx, 0xfffffff2
call fcn.140006b30
lea rdx, [rsp + 0x20]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400076c2
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindClose]
test r14d, r14d
je 0x1400077ec
mov word [r13 - 2], bx
test r12d, r12d
je 0x1400077d7
mov rcx, rdi
call fcn.140007428
test rax, rax
je 0x1400077ec
mov rcx, rdi
call fcn.140007380
mov edx, ebp
mov rcx, rdi
or edx, 1
call fcn.1400073c0
test eax, eax
jne 0x1400077df
test ebp, ebp
je 0x1400077d7
mov rdx, rdi
lea ecx, [rax - 0xf]
call fcn.140006b30
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 5]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
inc dword [0x140036870]
jmp 0x1400077ec
inc dword [0x140036868]
jmp 0x1400077ec
mov rdx, rdi
mov ecx, 0xffffffe5
call fcn.140006b30
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 0x14000787c
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 0x1400078d0
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 0x1400078fe
cmp edi, dword [rsp + 0x58]
jne 0x1400078fe
mov ebx, 1
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14000790c
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.1400071e8
xor esi, esi
test eax, eax
jne 0x140007995
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 0x140007995
mov eax, dword [rsp + 0x70]
dec eax
cmp eax, 1
jbe 0x140007998
mov word [rdi], si
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1400079a8
Capabilities:
Create process on windows

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

Function at 0x1400079bc
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 0x1400079ea
cmp edi, dword [rsp + 0x58]
jne 0x1400079ea
mov ebx, 1
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140007a14
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 0x140007a89
test edi, edi
jne 0x140007a35
mov word [rbx], bp
xor eax, eax
jmp 0x140007a8c
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 0x140007b40
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 0x140007b68
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 0x140007e64
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 [0x140033124], 0
lea rsi, [0x140033120]
mov rbx, r8
mov rdi, rdx
mov r9d, ecx
jne 0x140007ecd
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 0x140007e9a
mov dword [r11], r8d
inc r10d
add r11, 4
cmp r10d, 0x100
jl 0x140007e92
not r9d
test rbx, rbx
je 0x140007ef4
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 0x140007ed5
mov rbx, qword [rsp + 8]
not r9d
mov rsi, qword [rsp + 0x10]
mov eax, r9d
mov rdi, qword [rsp + 0x18]
ret