joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b6520
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x1400b652b
xor eax, eax
ret
lea r11, [0x1400d9120]
not ecx
cmp r8d, 8
jb 0x1400b6601
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x1400b6550
test r8d, r8d
je 0x1400b662d
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x1400b6610
not ecx
mov eax, ecx
ret
Function at 0x1400bb080
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x14006575c], 2
mov rbx, rcx
mov rdi, rdx
lea rcx, [0x140063120]
jne 0x140002549
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x140065800]
mov r8d, 0x200
mov rdx, rdi
call fcn.140016120
cmp byte [0x140065a00], 0
jne case.default.0x140002542
xor r9d, r9d
mov r8d, 0xc8
mov rcx, rbx
lea edx, [r9 + 2]
mov byte [0x140065a00], 1
call qword [sym.imp.USER32.dll_SetTimer]
lea rcx, [0x140063120]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [0x140065a00], 0
je 0x14000256d
mov edx, 2
mov rcx, rbx
mov byte [0x140065a00], 0
call qword [sym.imp.USER32.dll_KillTimer]
lea rcx, [0x140063120]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r8, rdi
mov edx, 0x69
mov rcx, rbx
call fcn.140023970
lea rcx, str._s_r_n
mov rdx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140026850
test dword [rdx + 0x46], ebp
adc eax, 0x3e035aeb
sub ax, 0xc058
sti
push rax
xacquire xchg byte [rcx + rbp], al
adc dword [rsi], esp
invalid
Function at 0x140007060
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0xd0
mov rax, qword [0x140063848]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, rcx
call fcn.14000b9d0
cmp byte [rax], 0
je 0x1400071ea
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400071ea
xor eax, eax
mov rcx, rbx
mov qword [rsp + 0xe8], rdi
lea edx, [rax - 6]
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], rax
call qword [sym.imp.USER32.dll_GetWindowLongPtrA]
lea rdi, str.BackgroundMediaClass
mov qword [rsp + 0x78], rax
lea rax, [0x140006de0]
mov edx, 0x7f00
xor ecx, ecx
mov qword [rsp + 0xa0], rdi
mov qword [rsp + 0x68], rax
call qword [sym.imp.USER32.dll_LoadCursorA]
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x74], 8
mov qword [rsp + 0x88], rax
call qword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x1400071c7
lea rdx, [rsp + 0xb0]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetClientRect]
call fcn.140007000
mov r8d, dword [rsp + 0xb0]
mov r10d, dword [rsp + 0xb4]
mov r9d, dword [rsp + 0xbc]
mov ecx, dword [rsp + 0xb8]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x78]
sub ecx, r8d
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], 0x6b
mov qword [rsp + 0x40], rbx
sub r9d, r10d
mov rdx, rdi
mov dword [rsp + 0x38], r9d
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], r8d
lea r8, [0x14004eb38]
mov r9d, 0x54000000
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov rdi, qword [rsp + 0xe8]
mov al, 1
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14003e7f0
add rsp, 0xd0
pop rbx
ret
mov al, 1
jmp 0x1400071d1
Function at 0x1400096f0
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x158
mov rax, qword [0x140063848]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rdi, qword [rsp + 0x1c8]
mov r14d, dword [rsp + 0x1c0]
mov rbx, qword [rsp + 0x1d0]
mov ebp, edx
mov rsi, rcx
mov rcx, rdi
mov edx, 0x23
mov r13d, r9d
mov r12d, r8d
xor r15b, r15b
call fcn.14003ec64
test rax, rax
je 0x14000975e
lea rcx, [rax + 1]
mov r8b, 0xa
xor edx, edx
call fcn.140016730
jmp 0x140009763
call fcn.14000add0
mov dword [rsp + 0x28], eax
mov r9d, r14d
mov r8d, r13d
mov edx, r12d
mov ecx, ebp
mov qword [rsp + 0x20], rsi
call fcn.140009500
mov rsi, rax
test rax, rax
je 0x1400098c2
mov rdx, rdi
mov rcx, rax
call fcn.140024520
test eax, eax
js 0x1400098c2
lea rdx, str.http:
mov r8d, 5
mov rcx, rbx
call fcn.14003ec90
test eax, eax
je 0x1400098a5
lea rdx, str.https:
mov r8d, 6
mov rcx, rbx
call fcn.14003ec90
test eax, eax
je 0x1400098a5
lea rdx, str.res:
mov r8d, 4
mov rcx, rbx
call fcn.14003ec90
test eax, eax
je 0x1400098a5
lea rdx, [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ebp, eax
test eax, eax
je 0x1400098c2
lea rcx, [rsp + 0x30]
mov r8b, 0x2f
mov dl, 0x5c
call fcn.140015ce0
or rcx, 0xffffffffffffffff
xor eax, eax
lea edx, [rbp - 1]
mov rdi, rbx
repne scasb al, byte [rdi]
mov r12d, edx
not rcx
dec rcx
cmp byte [rsp + rdx + 0x30], 0x2f
setne al
add rcx, rax
lea rcx, [rcx + rbp + 9]
call fcn.14002e3a0
mov rbp, rax
test rax, rax
je 0x1400098c2
cmp byte [rsp + r12 + 0x30], 0x2f
lea rax, [0x14004eb38]
lea r9, [0x14004fb98]
lea r8, [rsp + 0x30]
lea rdx, str.file:____s_s_s
mov rcx, rbp
cmove r9, rax
mov qword [rsp + 0x20], rbx
call fcn.14003e970
mov rdx, rbp
mov rcx, rsi
call fcn.1400245c0
mov rcx, rbp
mov edi, eax
call fcn.14002e3f0
movzx eax, r15b
mov ecx, 1
test edi, edi
cmovns eax, ecx
jmp 0x1400098c6
mov rdx, rbx
mov rcx, rsi
call fcn.1400245c0
mov ecx, 1
mov edi, eax
movzx eax, r15b
test edi, edi
cmovns eax, ecx
jmp 0x1400098c6
movzx eax, r15b
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14003e7f0
add rsp, 0x158
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000d770
Capabilities:
Delete file
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r12
sub rsp, 0x280
mov rax, qword [0x140063848]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor r12d, r12d
movzx esi, r8b
lea rax, [rsp + 0x48]
mov r8, rdx
mov rbp, rcx
lea r9, [rsp + 0x40]
lea edx, [r12 + 0xa]
xor ecx, ecx
xor bl, bl
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x20], rax
call fcn.14001f680
test eax, eax
je 0x14000d8c4
lea rcx, [rsp + 0x160]
mov edx, 0x104
call fcn.14001ffe0
test eax, eax
je 0x14000d8c4
lea r9, [rsp + 0x50]
lea rdx, str.rcd
lea rcx, [rsp + 0x160]
xor r8d, r8d
mov qword [rsp + 0x20], 0x104
call fcn.140020630
test eax, eax
je 0x14000d8c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000d8c4
mov qword [rsp + 0x30], r12
lea rcx, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x2b0], rdi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000d8b1
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
lea r9, [rsp + 0x44]
mov rcx, rax
mov dword [rsp + 0x44], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
test eax, eax
je 0x14000d8ab
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [rsp + 0x50]
lea rdx, [0x1400523f0]
movzx r9d, sil
mov rcx, rbp
call fcn.14000d4a0
test al, al
je 0x14000d8b1
mov bl, 1
jmp 0x14000d8b1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rdi, qword [rsp + 0x2b0]
movzx eax, bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14003e7f0
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x280
pop r12
pop rsi
pop rbp
ret
Function at 0x14000e7a0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push r12
push r13
sub rsp, 0x40
xor r12b, r12b
mov r13d, r9d
mov rbx, rdx
mov rbp, rcx
mov qword [rsp + 0x30], 0
test r9d, 0xfffffffe
je 0x14000e7dd
xor al, al
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r13
pop r12
pop rbp
ret
lea rdx, [0x1400504cc]
mov r8d, 3
mov rcx, rbx
mov qword [rsp + 0x68], rdi
call fcn.14003ec90
test eax, eax
je 0x14000e96c
lea rdx, str._.._
mov rcx, rbx
call fcn.14003ea10
test rax, rax
jne 0x14000e96c
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp rcx, 3
jb 0x14000e85b
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x60], rsi
mov rdi, rbx
repne scasb al, byte [rdi]
lea rdi, [0x1400504c0]
not rcx
lea rsi, [rcx + rbx - 4]
mov ecx, 4
repe cmpsb byte [rsi], byte [rdi]
mov rsi, qword [rsp + 0x60]
je 0x14000e96c
mov rax, qword [rbp]
mov rdx, rbx
mov rcx, rbp
test r13b, 1
je 0x14000e889
call qword [rax + 0xc0]
test al, al
je 0x14000e97f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, 1
jmp 0x14000e981
call qword [rax + 0x60]
test al, al
je 0x14000e97f
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, 0x80
mov rcx, rbx
call fcn.1400177c0
test al, al
je 0x14000e950
mov rax, qword [rbp]
mov rdx, rbx
mov rcx, rbp
mov qword [rsp + 0x38], 0
call qword [rax + 0xa0]
test al, al
je 0x14000e940
mov rdi, qword [rsp + 0x80]
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.140026c50
test al, al
je 0x14000e940
mov rdx, qword [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x20], 0
call fcn.140015920
test al, al
je 0x14000e927
lea rcx, [rsp + 0x30]
mov r12b, 1
call fcn.140026bf0
movzx eax, r12b
jmp 0x14000e981
mov rdi, qword [rbp]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
mov r8d, eax
mov rcx, rbp
call qword [rdi + 0xa8]
lea rcx, [rsp + 0x30]
call fcn.140026bf0
movzx eax, r12b
jmp 0x14000e981
mov rdi, qword [rbp]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
mov r8d, eax
mov rcx, rbp
call qword [rdi + 0x68]
movzx eax, r12b
jmp 0x14000e981
mov rax, qword [rbp]
xor r8d, r8d
mov rdx, rbx
mov rcx, rbp
call qword [rax + 0x88]
xor al, al
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r13
pop r12
pop rbp
ret
Function at 0x14000f870
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x30
mov rbx, rcx
mov rcx, rdx
mov rbp, rdx
xor sil, sil
call fcn.140018d50
test al, al
je 0x14000f9ab
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x40], rdi
xor eax, eax
mov rdi, rbp
lea r8, [rsp + 0x20]
mov qword [rsp + 0x20], 0
repne scasb al, byte [rdi]
not rcx
mov rdx, rcx
mov rcx, rbp
call fcn.14002e460
test al, al
je 0x14000f994
mov rcx, rbp
call fcn.1400286c0
movzx ebp, al
test al, al
je 0x14000f8f2
mov rdx, qword [rsp + 0x20]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
mov byte [rcx + rdx - 2], al
mov rcx, qword [rsp + 0x20]
mov edx, 0x2f
call fcn.14003ed48
mov rcx, qword [rsp + 0x20]
mov r8b, 0x5c
mov dl, 0x2f
mov rdi, rax
call fcn.140015ce0
test rdi, rdi
je 0x14000f91d
inc rdi
jmp 0x14000f922
mov rdi, qword [rsp + 0x20]
mov rax, qword [rbx]
mov rdx, rdi
mov rcx, rbx
call qword [rax + 0xc0]
test al, al
je 0x14000f968
mov rcx, qword [rsp + 0x20]
test bpl, bpl
je 0x14000f947
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x14000f95d
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rax, qword [rsp + 0x68]
mov sil, 1
or dword [rax], 1
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x20], 0
call fcn.14002e3f0
mov rdi, qword [rsp + 0x40]
movzx eax, sil
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
mov rax, qword [rbx]
mov r8d, 0x4d
mov rdx, rbp
mov rcx, rbx
call qword [rax + 0x88]
jmp 0x14000f97b
mov rax, qword [rbx]
mov r8d, 0x53
mov rdx, rbp
mov rcx, rbx
call qword [rax + 0x88]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
movzx eax, sil
add rsp, 0x30
pop rsi
ret
Function at 0x14000fa20
Capabilities:
Create directory
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
lea r12, [rcx + 0x20]
mov rbx, rcx
xor bpl, bpl
mov rcx, qword [r12]
xor r14d, r14d
mov r13d, r9d
mov rsi, rdx
test rcx, rcx
je 0x14000fa5b
mov qword [r12], r14
call fcn.14002e3f0
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasb al, byte [rdi]
mov r8, r12
not rcx
mov rdx, rcx
mov rcx, rsi
call fcn.14002e460
mov rcx, rsi
call fcn.140018d50
test al, al
je 0x14000fc20
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasb al, byte [rdi]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x60], r14
not rcx
mov rdx, rcx
mov rcx, rsi
call fcn.14002e460
test al, al
je 0x14000fc18
mov rcx, rsi
call fcn.1400286c0
movzx r12d, al
test al, al
je 0x14000fad9
mov rdx, qword [rsp + 0x60]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
mov byte [rcx + rdx - 2], al
mov rcx, qword [rsp + 0x60]
mov edx, 0x2f
call fcn.14003ed48
mov rcx, qword [rsp + 0x60]
mov r8b, 0x5c
mov dl, 0x2f
mov rsi, rax
call fcn.140015ce0
test rsi, rsi
je 0x14000fb16
mov byte [rsi], r14b
mov rcx, qword [rsp + 0x60]
xor edx, edx
call fcn.14001f4f0
mov byte [rsi], 0x5c
inc rsi
jmp 0x14000fb1b
mov rsi, qword [rsp + 0x60]
mov rax, qword [rbx]
mov rdx, rsi
mov rcx, rbx
call qword [rax + 0x60]
test al, al
je 0x14000fc07
mov rcx, qword [rsp + 0x60]
test r12b, r12b
je 0x14000fb86
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x14000fb56
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000fbf2
mov rcx, qword [rsp + 0x60]
mov edx, r13d
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x60]
mov qword [rdx], r14
mov bpl, 1
mov qword [rsp + 0x60], r14
call fcn.14002e3f0
jmp 0x14000fc35
mov edx, 0x80
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rcx, qword [rsp + 0x60]
lea r9, [rsp + 0x20]
xor r8d, r8d
mov edx, r13d
call fcn.1400177c0
test al, al
je 0x14000fbf2
mov rax, qword [rbx]
mov rdx, rsi
mov rcx, rbx
call qword [rax + 0xa0]
test al, al
je 0x14000fbd7
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x20]
call fcn.140026bd0
mov bpl, 1
lea rcx, [rsp + 0x20]
call fcn.140026bf0
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x60], r14
call fcn.14002e3f0
jmp 0x14000fc35
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rsi
mov r8d, eax
mov rcx, rbx
call qword [rdi + 0x68]
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x60], r14
call fcn.14002e3f0
jmp 0x14000fc35
mov r8d, 0x4d
jmp 0x14000fc26
mov r8d, 0x53
mov rax, qword [rbx]
mov rdx, rsi
mov rcx, rbx
call qword [rax + 0x88]
mov rbx, qword [rsp + 0x68]
movzx eax, bpl
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14000feb0
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
sub rsp, 0x30
mov rbx, rcx
mov rcx, rdx
mov r12d, r9d
mov rbp, rdx
xor sil, sil
call fcn.140018fe0
test al, al
je 0x14000ffdf
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x40], rdi
xor eax, eax
mov rdi, rbp
lea r8, [rsp + 0x20]
mov qword [rsp + 0x20], 0
repne scasb al, byte [rdi]
not rcx
mov rdx, rcx
mov rcx, rbp
call fcn.14002e460
test al, al
je 0x14000ffc8
mov ecx, r12d
call fcn.140018bb0
mov rcx, qword [rsp + 0x20]
mov edx, 0x2f
movzx ebp, al
call fcn.14003ed48
mov rcx, qword [rsp + 0x20]
mov r8b, 0x5c
mov dl, 0x2f
mov rdi, rax
call fcn.140015ce0
test rdi, rdi
je 0x14000ff4b
inc rdi
jmp 0x14000ff50
mov rdi, qword [rsp + 0x20]
mov rax, qword [rbx]
mov rdx, rdi
mov rcx, rbx
call qword [rax + 0xc0]
test al, al
je 0x14000ff96
mov rcx, qword [rsp + 0x20]
test bpl, bpl
je 0x14000ff75
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x14000ff8b
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rax, qword [rsp + 0x68]
mov sil, 1
or dword [rax], 1
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x20], 0
call fcn.14002e3f0
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
movzx eax, sil
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
mov rax, qword [rbx]
mov r8d, 0x4d
mov rdx, rbp
mov rcx, rbx
call qword [rax + 0x88]
jmp 0x14000ffa9
mov rax, qword [rbx]
mov r8d, 0x53
mov rdx, rbp
mov rcx, rbx
call qword [rax + 0x88]
jmp 0x14000ffae
Function at 0x140010040
Capabilities:
Create directory
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx + 0x20]
xor bpl, bpl
xor r14d, r14d
mov r13d, r9d
mov rsi, rdx
test rcx, rcx
je 0x140010077
mov qword [rbx + 0x20], r14
call fcn.14002e3f0
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasb al, byte [rdi]
lea r8, [rbx + 0x20]
not rcx
mov rdx, rcx
mov rcx, rsi
call fcn.14002e460
mov rcx, rsi
call fcn.140018fe0
test al, al
je 0x140010221
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasb al, byte [rdi]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x60], r14
not rcx
mov rdx, rcx
mov rcx, rsi
call fcn.14002e460
test al, al
je 0x140010219
mov ecx, r13d
call fcn.140018bb0
mov rcx, qword [rsp + 0x60]
mov edx, 0x2f
movzx edi, al
call fcn.14003ed48
mov rcx, qword [rsp + 0x60]
mov r8b, 0x5c
mov dl, 0x2f
mov rsi, rax
call fcn.140015ce0
test rsi, rsi
je 0x140010117
mov byte [rsi], r14b
mov rcx, qword [rsp + 0x60]
xor edx, edx
call fcn.14001f4f0
mov byte [rsi], 0x5c
inc rsi
jmp 0x14001011c
mov rsi, qword [rsp + 0x60]
mov rax, qword [rbx]
mov rdx, rsi
mov rcx, rbx
call qword [rax + 0x60]
test al, al
je 0x140010208
mov rcx, qword [rsp + 0x60]
test dil, dil
je 0x140010187
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x140010157
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400101f3
mov rcx, qword [rsp + 0x60]
mov edx, r13d
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x60]
mov qword [rdx], r14
mov bpl, 1
mov qword [rsp + 0x60], r14
call fcn.14002e3f0
jmp 0x140010236
mov edx, 0x80
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rcx, qword [rsp + 0x60]
lea r9, [rsp + 0x20]
xor r8d, r8d
mov edx, r13d
call fcn.1400177c0
test al, al
je 0x1400101f3
mov rax, qword [rbx]
mov rdx, rsi
mov rcx, rbx
call qword [rax + 0xa0]
test al, al
je 0x1400101d8
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x20]
call fcn.140026bd0
mov bpl, 1
lea rcx, [rsp + 0x20]
call fcn.140026bf0
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x60], r14
call fcn.14002e3f0
jmp 0x140010236
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rsi
mov r8d, eax
mov rcx, rbx
call qword [rdi + 0x68]
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x60], r14
call fcn.14002e3f0
jmp 0x140010236
mov r8d, 0x4d
jmp 0x140010227
mov r8d, 0x53
mov rax, qword [rbx]
mov rdx, rsi
mov rcx, rbx
call qword [rax + 0x88]
mov rbx, qword [rsp + 0x68]
movzx eax, bpl
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140011d20
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
xor sil, sil
cmp byte [rcx], 0x2e
mov ebx, r8d
mov rdi, rdx
jne 0x140011dc3
lea rax, [rsp + 0x68]
mov rdx, rcx
mov qword [rsp + 0x58], rbp
mov ebp, 1
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov r9d, ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140011db2
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x50], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x68]
test eax, eax
movzx ebx, sil
cmove ebx, ebp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x58]
movzx eax, bl
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
movzx eax, sil
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
movzx eax, sil
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x140017b50
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov eax, r8d
mov rdi, r9
mov rbx, rcx
cmp r8, rax
jne 0x140017bb2
mov rcx, qword [rcx]
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], r8d
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140017b9c
mov eax, dword [rsp + 0x50]
mov qword [rdi], rax
mov al, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 8], eax
xor al, al
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
mov dword [rcx + 8], 0x7a
xor al, al
add rsp, 0x30
pop rdi
ret

Function at 0x140017be0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov eax, r8d
mov rdi, r9
mov rbx, rcx
cmp r8, rax
jne 0x140017c42
mov rcx, qword [rcx]
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], r8d
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140017c2c
mov eax, dword [rsp + 0x50]
mov qword [rdi], rax
mov al, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 8], eax
xor al, al
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
mov dword [rcx + 8], 0x7a
xor al, al
add rsp, 0x30
pop rdi
ret
Function at 0x14001c430
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push r12
push r13
sub rsp, 0x40
mov rsi, rcx
mov ecx, 0x28
mov r12, r9
mov r13, r8
mov rbp, rdx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rbx, rax
test rax, rax
je 0x14001c50f
mov qword [rax + 8], rsi
mov qword [rax + 0x18], r13
mov qword [rax + 0x20], r12
mov qword [rsp + 0x60], rdi
xor esi, esi
mov edi, 1
mov dword [rax], edi
mov qword [rax + 0x10], rsi
mov rdx, qword [rbp]
mov rcx, rbp
call qword [rdx + VariantCopy]
lea rax, [rsp + 0x30]
lea r8, [0x14001c420]
mov qword [rsp + 0x28], rax
mov r9, rbx
xor edx, edx
xor ecx, ecx
mov qword [rbx + 0x10], rbp
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
je 0x14001c4e6
cmp dword [rbx], esi
jne 0x14001c4c9
int3
lock xadd dword [rbx], edi
inc edi
jne 0x14001c4d2
int3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001c4fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x14001c4f4
mov esi, eax
jmp 0x14001c4fd
movzx esi, ax
or esi, 0x80070000
cmp dword [rbx], 0
mov rdi, qword [rsp + 0x60]
jne 0x14001c508
int3
lock dec dword [rbx]
mov eax, esi
jmp 0x14001c514
mov eax, 0x8007000e
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r13
pop r12
pop rsi
ret