joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140044370
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x140044410
jmp 0x1400443ff
jae 0x1400444cf
cmp r8, 0x201
jae 0x140044410
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x140044467
sub r8, rbx
sub rdi, rbx
cmp r8, rdi
jbe 0x14004443f
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call case.0x14004bf95.365
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x140044490
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14004453b
mov r8d, r13d
cmp r12, r8
jne 0x1400443f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14004456f
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x1400443ff
jmp 0x140044410
cmp r14, r8
jb 0x140044589
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.140047380
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x140044524
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.1400088e0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x14004450f
jmp 0x140044524
lea rcx, str.internal_error:_entered_unreachable_code_rustc_eeb90cda1969383f56a2637cbd3037bdf598841clibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.14005c7a0
jmp 0x14004459e
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.14005cb50
ud2
Function at 0x14004c090
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x140063630]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x14004c0c8
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 0x14004c11f
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0xc0000011
jne 0x14004c12c
xor edx, edx
xor eax, eax
jmp 0x14004c156
cmp eax, 0x103
je 0x14004c160
test eax, eax
js 0x14004c13f
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x14004c156
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, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
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.1400471c0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140042ab0
mov ecx, 7
int 0x29
ud2

Function at 0x14004c1b0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x140063630]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x14004c1e8
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 0x14004c246
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x14004c273
test eax, eax
js 0x14004c252
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x14004c269
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, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
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.1400471c0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140042ab0
mov ecx, 7
int 0x29
ud2
Function at 0x140059380
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 0x14005940a
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 0x140059400
cmp r10, r11
jb 0x140059486
cmp r10, rdx
ja 0x140059498
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x140059402
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1400593e0
jmp 0x140059467
ja 0x14005940a
mov r11, r10
cmp rax, r8
jne 0x1400593a7
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x14005946b
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 0x140059440
mov r8, r10
sub ecx, r9d
jns 0x14005945e
jmp 0x14005946d
cmp r10, rdx
je 0x14005947a
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14005946d
xor al, 1
cmp r8, rdx
jne 0x140059420
jmp 0x14005946d
xor eax, eax
jmp 0x14005946d
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.14005c680
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14005cbc0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14005cb50
int3

Function at 0x14005ad68
Capabilities:
Parse pe header

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

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.140012b50
mov r15, qword [0x140020514]
cmp r15, 1
jne 0x140004953
push qword [0x140020604]
pop rcx
call fcn.14000dd04
mov r15, rax
and r15, r15
jle 0x1400048e9
mov rcx, qword [0x140020604]
call fcn.14000dd0c
mov rcx, qword [0x140020604]
call fcn.14000dd20
or rax, rax
je 0x1400048e9
mov rbp, qword [0x14002060c]
push qword [rbp + 0x10]
pop rcx
call fcn.14000e1bc
jmp 0x1400048c6
push qword [0x1400205f4]
pop rcx
call fcn.14000dd04
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x140004953
push 5
push 0
push 1
push qword [0x1400205f4]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009060
mov rcx, qword [0x1400205f4]
call fcn.14000dd0c
mov rcx, qword [0x1400205f4]
call fcn.14000dd20
or rax, rax
je 0x140004953
mov rbp, qword [0x1400205fc]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x140004930
mov rax, 1
jmp 0x14000495f
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006b38
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f190]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021210]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020640]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020640]
call fcn.1400123b8
lea rcx, [0x140021210]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmpsb byte [rsi], byte [rdi]
jmp rsp
test al, 0xff
movsb byte [rdi], byte [rsi]
jae 0x14003f70a
jmp qword [rdi - 0x800f985]
invalid
in al, 0xa6
cmpsb byte [rsi], byte [rdi]
jmp rsp
cmpsb byte [rsi], byte [rdi]
jmp rsp
test edi, edi
invalid
add bh, bh
out dx, eax
mov word [rcx], es
invalid
in al, 0xa6
cmpsb byte [rsi], byte [rdi]
jmp rsp
in al, 0xa6
cmpsb byte [rsi], byte [rdi]
jmp rsp
Function at 0xa04a90
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0xa04a9d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0xa04aad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0xa04a95
lea eax, [rcx + 1]
jmp 0xa04abb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0xa04ace
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0xa04ab4
sub eax, 3
jb 0xa04aee
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0xa04b3d
sar eax, 1
movsxd rbp, eax
jb 0xa04b24
jmp 0xa04afc
add ebx, ebx
jne 0xa04afa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xa04b24
inc ecx
add ebx, ebx
jne 0xa04b0a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xa04b24
call r11
adc ecx, ecx
add ebx, ebx
jne 0xa04b1d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0xa04b0c
add ecx, 2
jmp 0xa04b29
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00a04a52
jmp 0xa04a9d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x254c00
mov dl, 0x25
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0xa04b89
cmp rsi, rcx
jae 0xa04b91
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0xa04b70
cmp al, 0x8f
ja 0xa04b70
cmp byte [rsi - 2], 0xf
je 0xa04b76
sub al, 0xe8
cmp al, 1
ja 0xa04b5a
cmp rsi, rcx
jae 0xa04b91
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0xa04b60
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0xa04b91
lodsb al, byte [rsi]
jmp 0xa04b70
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x5fc000]
mov eax, dword [rdi]
or eax, eax
je 0xa04bee
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x6042b0]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0xa04b9e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0xa04be8
mov qword [rbx], rax
add rbx, 8
jmp 0xa04bbe
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0xa04c32
cmp al, 0xef
ja 0xa04c1a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0xa04bfa
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0xa04c09
mov eax, dword [rdi]
add rdi, 4
jmp 0xa04c09
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0xa04c86
sub rsp, 0xffffffffffffff80
jmp 0x477640
Function at 0x69901409
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
dec edx
mov r9, rcx
jne 0x69901445
lea rax, [rsp + 0x3c]
xor ecx, ecx
lea r8, [0x699013d0]
xor edx, edx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
test rax, rax
je 0x69901445
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x48
ret

Function at 0x699014b5
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rbx
xor r9d, r9d
lea r11, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov rax, rcx
lea ebx, [r8 - 2]
mov esi, r9d
cmp ebx, r9d
jle 0x69901555
mov r10b, byte [rdx + r9]
add rax, 4
shr r10b, 2
and r10d, 0x3f
mov r10b, byte [r11 + r10]
mov byte [rax - 4], r10b
movsx r10d, byte [rdx + r9]
movsx esi, byte [rdx + r9 + 1]
shl r10d, 4
sar esi, 4
and r10d, 0x30
and esi, 0xf
or r10d, esi
movsxd r10, r10d
mov r10b, byte [r11 + r10]
mov byte [rax - 3], r10b
movsx r10d, byte [rdx + r9 + 1]
movsx esi, byte [rdx + r9 + 2]
shl r10d, 2
sar esi, 6
and r10d, 0x3c
and esi, 3
or r10d, esi
movsxd r10, r10d
mov r10b, byte [r11 + r10]
mov byte [rax - 2], r10b
mov r10b, byte [rdx + r9 + 2]
add r9, 3
and r10d, 0x3f
mov r10b, byte [r11 + r10]
mov byte [rax - 1], r10b
jmp 0x699014c8
cmp r9d, r8d
jge 0x699015d8
movsxd r11, r9d
lea r9, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
dec r8d
lea rbx, [rdx + r11]
mov r10b, byte [rbx]
shr r10b, 2
and r10d, 0x3f
cmp r8d, esi
mov r10b, byte [r9 + r10]
mov byte [rax], r10b
movsx r8d, byte [rbx]
jne 0x6990159b
shl r8d, 4
mov byte [rax + 2], 0x3d
and r8d, 0x30
mov dl, byte [r9 + r8]
mov byte [rax + 1], dl
jmp 0x699015d0
lea r10, [rdx + r11 + 1]
shl r8d, 4
movsx edx, byte [r10]
and r8d, 0x30
sar edx, 4
and edx, 0xf
or r8d, edx
movsxd r8, r8d
mov dl, byte [r9 + r8]
mov byte [rax + 1], dl
movsx edx, byte [r10]
shl edx, 2
and edx, 0x3c
mov dl, byte [r9 + rdx]
mov byte [rax + 2], dl
mov byte [rax + 3], 0x3d
add rax, 4
mov byte [rax], 0
inc rax
sub rax, rcx
pop rbx
pop rsi
ret
Function at 0x69901710
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x260
lea rcx, [0x6990a0c0]
call fcn.69905ab0
mov rsi, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor r8d, r8d
mov r9d, 0x108
mov r13, rax
lea rax, [rsp + 0x48]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov rdx, r13
call rsi
mov r12d, eax
test eax, eax
jne 0x69901835
lea rcx, [0x6990a12f]
xor ebx, ebx
call fcn.69905ab0
mov rdi, qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov r14, rax
lea r15, [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x44]
mov edx, ebx
mov dword [rsp + 0x44], 0x104
mov r8, r15
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call rdi
test eax, eax
jne 0x69901820
lea rax, [rsp + 0x50]
xor r8d, r8d
mov rcx, qword [rsp + 0x48]
mov rdx, r15
mov qword [rsp + 0x20], rax
mov r9d, 0x101
call rsi
test eax, eax
jne 0x69901819
mov rcx, qword [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x50]
cmp eax, 1
adc r12d, 0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebx
jmp 0x6990177a
mov rcx, r14
call fcn.69905b32
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x69901838
xor r12d, r12d
mov rcx, r13
call fcn.69905b32
mov eax, r12d
add rsp, 0x260
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x699018ce
Capabilities:
Get system information on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x50
lea rcx, [0x6990a192]
call fcn.69905ab0
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, r12
mov r13, rax
call fcn.69905b32
lea rcx, [0x6990a1b3]
call fcn.69905a30
mov rcx, r13
mov r12, rax
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, r12
mov rbx, rax
call fcn.69905b32
test rbx, rbx
lea rcx, [rsp + 0x20]
je 0x6990192e
call rbx
jmp 0x69901934
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop r12
pop r13
ret

Function at 0x69901bd6
Capabilities:
Get common file path

Disassembly:
push r12
sub rsp, 0x240
xor r8d, r8d
xor r9d, r9d
mov edx, 0x1a
xor ecx, ecx
lea r12, [rsp + 0x38]
mov qword [rsp + 0x20], r12
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov r8d, eax
xor eax, eax
test r8d, r8d
js 0x69901c0e
mov rcx, r12
call fcn.69901965
add rsp, 0x240
pop r12
ret
Function at 0x69901c18
Capabilities:
Check mutex on windows

Disassembly:
push r12
sub rsp, 0x20
mov r12, rcx
call fcn.69901b35
cmp eax, 0xe
jle 0x69901c37
call fcn.699018ce
cmp eax, 3
ja 0x69901c4d
jmp 0x69901c67
call fcn.69901bd6
cmp eax, 4
jg 0x69901c2b
call fcn.69901710
cmp eax, 4
jg 0x69901c2b
jmp 0x69901c7d
call fcn.69901856
cmp eax, 0xeff
jle 0x69901c67
mov rcx, r12
add rsp, 0x20
pop r12
jmp 0x69904d4c
call fcn.699018ce
cmp eax, 7
ja 0x69901c59
call fcn.69901856
cmp eax, 0x16ff
jg 0x69901c59
add rsp, 0x20
pop r12
ret
push r15
push r14
push r13
push r12
sub rsp, 0x28
mov qword [0x6990e0b0], rcx
mov r13, rcx
lea rcx, [0x69909080]
call fcn.69905ab0
xor ecx, ecx
mov r12, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r8, r12
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov r14, rax
test rax, rax
je 0x69904ddf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x69904dcb
lea rcx, [0x6990a892]
call fcn.69905ab0
mov rcx, rax
mov r15, rax
call fcn.69906a16
test eax, eax
je 0x69904dc1
mov rdx, r12
mov rcx, r13
call fcn.69904d0d
mov rcx, r15
call fcn.69905b32
jmp 0x69904dd6
mov rdx, r12
mov rcx, r13
call fcn.69904d0d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
add rsp, 0x28
pop r12
pop r13
pop r14
pop r15
jmp fcn.69905b32
Function at 0x6990315e
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x58
xor r12d, r12d
mov rsi, rdx
mov ebx, r8d
call fcn.699023dc
mov r14, rax
test rax, rax
je 0x69903229
mov rcx, rax
call fcn.699022a5
mov r15, rax
test rax, rax
je 0x69903221
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x69903219
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x4c]
mov r8d, ebx
mov rdx, rsi
mov qword [rsp + 0x20], 0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r12d, eax
test eax, eax
je 0x69903210
xor r12d, r12d
cmp dword [rsp + 0x4c], ebx
sete r12b
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call fcn.69904e58
mov rcx, r14
call fcn.69904e58
mov eax, r12d
add rsp, 0x58
pop rbx
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x6990337c
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rsi, rdx
call fcn.699023dc
mov r13, rax
test rax, rax
je 0x69903489
mov rcx, rax
call fcn.699022a5
mov r14, rax
test rax, rax
je 0x6990347e
xor r9d, r9d
mov r8d, 7
mov rcx, rax
xor r12d, r12d
mov qword [rsp + 0x30], 0
mov edx, 0x80000000
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x69903473
mov rdi, qword [sym.imp.KERNEL32.dll_SetFilePointer]
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov r9d, 2
call rdi
mov ebx, eax
cmp eax, 0x40000000
ja 0x69903467
mov ecx, eax
call fcn.69904e00
mov r12, rax
test rax, rax
je 0x69903467
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r15
call rdi
lea r9, [rsp + 0x4c]
mov r8d, ebx
mov rdx, r12
mov qword [rsp + 0x20], 0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x6990345f
cmp dword [rsp + 0x4c], ebx
jne 0x6990345f
test rsi, rsi
je 0x6990346a
mov dword [rsi], ebx
jmp 0x6990346a
mov rcx, r12
call fcn.69904e58
xor r12d, r12d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
mov r14, r12
call fcn.69904e58
mov rcx, r13
mov r13, r14
call fcn.69904e58
mov rax, r13
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x6990361e
Capabilities:
Set current directory

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x230
xor r12d, r12d
call fcn.699023b5
mov rcx, rax
mov rbx, rax
call sub.msvcrt.dll_wcslen
cmp rax, 1
jbe 0x69903711
lea rcx, [0x6990a5b3]
call fcn.69905ab0
mov r8d, 2
mov rcx, rbx
mov r13, rax
mov rdx, rax
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
je 0x69903674
xor r12d, r12d
jmp 0x69903709
lea rcx, [rbx + 4]
call fcn.699023b5
mov rcx, rax
mov rbx, rax
call sub.msvcrt.dll_wcslen
test rax, rax
je 0x6990366c
mov word [rsp + 0x28], 0
xor eax, eax
cmp word [rbx], 0x22
lea r12, [rsp + 0x28]
movabs r8, 0x100002601
jne 0x699036d6
mov cx, word [rbx + rax*2 + 2]
movsxd rdx, eax
test cx, cx
je 0x699036e5
cmp cx, 0x22
je 0x699036e5
mov word [r12 + rax*2], cx
inc rax
jmp 0x699036ab
bt r8, rcx
jb 0x699036e5
mov word [r12 + rax*2], cx
inc rax
mov cx, word [rbx + rax*2]
movsxd rdx, eax
cmp cx, 0x20
ja 0x699036ce
jmp 0x699036c8
mov rcx, r12
mov word [rsp + rdx*2 + 0x28], 0
call sub.msvcrt.dll_wcslen
test rax, rax
je 0x6990366c
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov r12d, eax
mov rcx, r13
call fcn.69905b32
mov eax, r12d
add rsp, 0x230
pop rbx
pop r12
pop r13
ret
Function at 0x69904091
Capabilities:
Delete file

Disassembly:
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x438
lea rcx, [0x6990a618]
call fcn.69905ab0
lea r14, [rsp + 0x20]
mov r13, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, r13
mov r12, rax
call fcn.69905b32
lea rcx, [0x6990a74d]
call fcn.69905a30
mov rsi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, r12
mov r13, rax
mov rdx, rax
call rsi
mov rcx, r13
mov rbx, rax
call fcn.69905b32
lea rcx, [0x6990a75f]
call fcn.69905a30
mov rcx, r12
mov r13, rax
mov rdx, rax
call rsi
mov rcx, r13
mov rdi, rax
call fcn.69905b32
lea rcx, [0x6990a774]
call fcn.69905a30
mov rcx, r12
lea r12, [rsp + 0x228]
mov r13, rax
mov rdx, rax
call rsi
mov rcx, r13
mov rsi, rax
call fcn.69905b32
call fcn.69903fe8
mov r8d, 0x104
mov rdx, r14
mov rcx, qword [0x6990e0b0]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rdx, r12
mov ecx, 0x104
call rdi
lea rcx, [0x6990a78d]
call fcn.69905ab0
mov r9, r12
xor r8d, r8d
mov rcx, r12
mov r13, rax
mov rdx, rax
call rsi
mov rcx, r13
call fcn.69905b32
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, r12
mov rcx, r14
call rbx
xor eax, eax
add rsp, 0x438
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
ret