joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005730
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push r14
push rbx
sub rsp, 0x68
xor eax, eax
mov r9d, eax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x60], 0x79b9589d
mov qword [rsp + 0x48], 0x1ff37919
mov r10, qword [rsp + 0x58]
mov r11, r10
sub r11, r11
mov qword [rsp + 0x58], r11
mov qword [rsp + 0x40], rdx
mov dword [rsp + 0x3c], r8d
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], r10
mov dword [rsp + 0x24], eax
mov qword [rsp + 0x18], r9
jmp 0x1400057d0
mov rax, qword [rsp + 0x48]
mov cx, word [rsp + 0x52]
xor cx, 0xffff
mov word [rsp + 0x52], cx
xor rax, 0x1ff37939
mov dl, byte [rsp + 0x67]
add dl, 0xa7
mov r8, qword [rsp + 0x48]
xor r8, 0x1ff37918
mov r9, qword [rsp + 0x10]
add r9, r8
mov byte [rsp + 0x67], dl
cmp r9, rax
mov qword [rsp + 0x18], r9
je 0x140005808
jmp 0x1400057d0
mov eax, dword [rsp + 0xc]
mov dword [rsp + 8], eax
jmp 0x14000581b
mov rax, qword [rsp + 0x18]
lea rcx, [0x1400cc4d0]
mov dx, word [rsp + 0x52]
or dx, 0xd501
mov word [rsp + 0x52], dx
mov r8d, dword [rcx + rax*4]
mov r9d, dword [rsp + 0x3c]
cmp r8d, r9d
mov qword [rsp + 0x10], rax
mov dword [rsp + 0xc], r8d
jb 0x1400057c6
jmp 0x140005782
mov qword [rsp + 0x58], 0x635d3eef
add rsp, 0x68
pop rbx
pop r14
pop rdi
pop rsi
ret
mov eax, dword [rsp + 8]
lea rcx, [0x1400cc6d5]
mov dx, word [rsp + 0x52]
mov r8w, word [rsp + 0x52]
mov r9d, dword [rsp + 0x60]
sub dx, r8w
mov word [rsp + 0x52], dx
xor r9d, 0x79b95882
mov dx, word [rsp + 0x52]
sub dx, word [rsp + 0x52]
mov word [rsp + 0x52], dx
mov r10d, eax
and r10d, r9d
mov r9d, r10d
mov r11d, r9d
mov qword [rsp + 0x58], 0x50a930eb
mov bl, byte [rsp + 0x67]
mov sil, 0x50
mov dword [rsp + 4], eax
mov al, bl
mul sil
mov byte [rsp + 0x67], al
mov r9d, dword [rsp + 0x60]
mov qword [rsp + 0x58], 0x30be1f8a
mov al, byte [rsp + 0x67]
and al, 0x61
xor r9d, 0x79b958bd
mov bl, byte [rcx + r11]
mov r10d, dword [rsp + 4]
mov edi, r10d
mov ecx, edi
mov byte [rsp + 0x67], al
mov r11, qword [rsp + 0x28]
xor r11, 0x5bf0e0c9
mov r14, qword [rsp + 0x40]
mov al, byte [r14 + rcx]
sub al, bl
mov qword [rsp + 0x58], r11
mov r11, qword [rsp + 0x30]
mov byte [r11 + rcx], al
add r10d, r9d
mov r9d, dword [rsp + 0x3c]
cmp r10d, r9d
mov dword [rsp + 8], r10d
jb 0x14000581b
jmp 0x140005782
Function at 0x4ad013d4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
mov rdi, rbp
cmp rax, rbp
je 0x4ad01464
mov rcx, rax
cmp word [rax], bp
je 0x4ad01421
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, word [rcx]
add rcx, 2
cmp ax, bp
jne 0x4ad01410
cmp word [rcx], bp
jne 0x4ad01410
sub rcx, rbx
add rcx, 2
sar rcx, 1
lea esi, [rcx + rcx]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
mov rcx, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
cmp rax, rbp
je 0x4ad0145b
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rax, rdi
add rsp, 0x20
pop rdi
ret

Function at 0x4ad01554
Capabilities:
Set console window title

Disassembly:
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x250
mov rax, qword [0x4ad2e1c8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov r14d, r8d
mov r15d, edx
mov r12, rcx
mov ecx, 0x208
call fcn.4ad016dc
mov r13, rax
test rax, rax
je 0x4ad1851e
mov rcx, r12
call fcn.4ad02be0
mov rsi, rax
test rax, rax
je 0x4ad18527
mov r8d, 0x104
mov rdx, r13
mov rcx, r12
call fcn.4ad04b40
mov edi, 1
cmp eax, edi
jne 0x4ad08172
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
mov rcx, rsi
call fcn.4ad02c84
nop
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r13
mov r9, rsi
mov r8d, r14d
mov edx, r15d
mov rcx, r12
call fcn.4ad03be4
mov edi, eax
cmp qword [0x4ad2e1e8], 0
je 0x4ad0797f
mov eax, edi
jmp 0x4ad0161b
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.4ad01000
lea r11, [rsp + 0x250]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret
cmp byte [0x4ad2e0cc], 0
je 0x4ad01617
jmp 0x4ad1852f
cmp eax, 2
jne 0x4ad0b967
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
mov rcx, rsi
call fcn.4ad02c84
nop
xor r9d, r9d
mov r8d, 0x104
mov rdx, r13
mov rcx, r12
call fcn.4ad05bc0
mov edi, eax
cmp qword [0x4ad2e1e8], 0
jne 0x4ad081c1
cmp byte [0x4ad2e0cc], 0
jne 0x4ad18546
mov eax, edi
jmp 0x4ad0161b
cmp eax, 5
je 0x4ad1855d
mov ecx, dword [0x4ad2e13c]
mov dword [0x4ad2e188], ecx
cmp eax, 3
je 0x4ad1856c
mov eax, 0x2331
cmp ecx, eax
je 0x4ad0b99c
xor edx, edx
call fcn.4ad0b8b0
mov eax, edi
jmp 0x4ad0161b
mov r8, qword [r12 + 0x70]
mov edx, edi
mov ecx, eax
call fcn.4ad0b8b0
jmp 0x4ad0b995
lea eax, [r13 + 1]
jmp 0x4ad0161b
lea eax, [rsi + 1]
jmp 0x4ad0161b
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
and dword [0x4ad2e15c], 0
jmp 0x4ad01617
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
and dword [0x4ad2e15c], 0
jmp 0x4ad081c1
xor edx, edx
mov rcx, r13
call fcn.4ad07dc0
jmp 0x4ad0161b
mov eax, edi
jmp 0x4ad0161b
Function at 0x4ad05188
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x4ad2e1c8]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, 0x3a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x22], ax
mov eax, 0x5c
xor ebx, ebx
mov word [rsp + 0x24], ax
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
seta bl
mov eax, ebx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.4ad01000
add rsp, 0x30
pop rbx
ret

Function at 0x4ad05410
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov rax, qword [0x4ad2e1c8]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor ebp, ebp
movzx esi, r8w
movsxd rdi, edx
mov rbx, rcx
cmp r8w, bp
jne 0x4ad0c32e
mov rdx, rcx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
jmp 0x4ad0544d
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.4ad01000
add rsp, 0x30
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov eax, 0x3d
movzx ecx, si
mov word [rsp + 0x20], ax
call qword [sym.imp.msvcrt.dll_towupper]
lea rcx, [rsp + 0x20]
mov r12d, 0x3a
mov word [rsp + 0x26], bp
mov word [rsp + 0x22], ax
mov word [rsp + 0x24], r12w
call fcn.4ad01a60
cmp rax, rbp
je 0x4ad1db37
mov rdx, rdi
mov r8, rax
mov rcx, rbx
call fcn.4ad01744
nop
jmp 0x4ad0544d
movzx ecx, si
call qword [sym.imp.msvcrt.dll_towupper]
mov word [rbx], ax
lea eax, [r12 + 0x22]
mov word [rbx + 2], r12w
mov word [rbx + 4], ax
mov word [rbx + 6], bp
lea eax, [r12 - 0x39]
jmp 0x4ad0544f

Function at 0x4ad058cc
Capabilities:
Get disk information

Disassembly:
push rdi
sub rsp, 0x280
mov rax, qword [0x4ad2e1c8]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov eax, 0x3a
mov word [rsp + 0x48], cx
lea rcx, [rsp + 0x48]
mov word [rsp + 0x4a], ax
mov eax, 0x5c
xor edi, edi
mov word [rsp + 0x4c], ax
mov word [rsp + 0x4e], di
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4ad1d8ba
cmp eax, 2
je 0x4ad0595b
cmp eax, 5
je 0x4ad0595b
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x48]
mov r8d, 0x104
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
cmp eax, edi
je 0x4ad1d8c4
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.4ad01000
add rsp, 0x280
pop rdi
ret
mov eax, 1
jmp 0x4ad0595d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4ad0595b
jmp 0x4ad1d8ba
Function at 0x4ad07bb0
Capabilities:
Check if file exists
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x6b0
mov rax, qword [0x4ad2e1c8]
xor rax, rsp
mov qword [rsp + 0x6a0], rax
xor edi, edi
mov rsi, rcx
cmp rcx, rdi
je 0x4ad1dbc1
call fcn.4ad02e40
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x290]
mov rcx, rax
mov edx, 0x208
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov ebx, eax
cmp eax, edi
je 0x4ad07c82
lea rdx, str.._
lea rcx, [rsp + 0x290]
mov r8d, 4
call qword [sym.imp.msvcrt.dll_wcsncmp]
cmp eax, edi
je 0x4ad1dbc8
mov rax, qword [rsp + 0x30]
cmp rax, rdi
je 0x4ad1dc2e
cmp word [rax], di
je 0x4ad1dc2e
lea rax, [rsp + 0x38]
xor r9d, r9d
lea rdx, [rsp + 0x290]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea r8d, [r9 + 0x37]
lea rcx, [0x4ad04960]
mov qword [rsp + 0x20], rax
call fcn.4ad04688
mov rcx, qword [rsp + 0x38]
movzx ebx, al
call fcn.4ad0478c
cmp ebx, edi
je 0x4ad07cb9
mov eax, ebx
mov rcx, qword [rsp + 0x6a0]
xor rcx, rsp
call fcn.4ad01000
lea r11, [rsp + 0x6b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
cmp word [rsp + 0x292], 0x5c
je 0x4ad07ce4
cmp word [rsp + 0x292], 0x3a
jne 0x4ad07c82
cmp word [rsp + 0x294], 0x5c
jne 0x4ad07c82
cmp word [rsp + 0x296], di
jne 0x4ad07c82
lea rcx, [rsp + 0x290]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4ad07c82
jmp 0x4ad1dc24
xor eax, eax
jmp 0x4ad07c84
lea rax, [rsp + 0x298]
lea rdx, [rsp + 0x298]
mov rcx, rsi
mov qword [rsp + 0x30], rax
call qword [sym.imp.msvcrt.dll_wcsstr]
mov qword [rsp + 0x30], rax
cmp rax, rdi
je 0x4ad1dc19
cmp rax, rsi
jbe 0x4ad1dc19
movzx ebx, word [rax]
mov rcx, rsi
mov word [rax], di
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rcx, qword [rsp + 0x30]
mov word [rcx], bx
cmp eax, 0xffffffff
cmovne edi, eax
mov eax, edi
jmp 0x4ad07c84
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x4ad1dc0c
mov ebx, 1
jmp 0x4ad07c82
lea rcx, [rsp + 0x290]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, edi
cmp eax, 0xffffffff
setne bl
jmp 0x4ad07c82
Function at 0x4ad0b6a4
Capabilities:
Check if file exists
Get 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, 0x240
mov rax, qword [0x4ad2e1c8]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
mov ecx, 0x48
call fcn.4ad017b8
mov rcx, rax
mov rsi, rax
mov qword [rax], rbx
call fcn.4ad0b410
mov r12, qword [rsi + 0x30]
mov rbp, qword [rsi]
mov rbx, qword [rsi + 0x18]
mov ecx, 0x208
call fcn.4ad017b8
mov edi, 0x104
xor r8d, r8d
mov rcx, rax
mov edx, edi
mov qword [0x4ad2e230], rax
call fcn.4ad05410
lea rcx, [rsp + 0x20]
mov r8, rbp
mov edx, edi
call fcn.4ad045b0
xor r13d, r13d
cmp eax, r13d
jne 0x4ad1d37a
mov r14d, 0x5c
lea rcx, [rsp + 0x20]
mov edx, r14d
call qword [sym.imp.msvcrt.dll_wcsrchr]
lea rcx, [0x4ad3c0a0]
lea rdx, [rsp + 0x20]
mov word [rax + 2], r13w
sub rdx, rcx
lea rax, [rdi + 0x7ffffefa]
cmp rax, r13
je 0x4ad0b77e
movzx eax, word [rdx + rcx]
cmp ax, r13w
je 0x4ad0b77e
mov word [rcx], ax
add rcx, 2
sub rdi, 1
jne 0x4ad0b75b
cmp rdi, r13
je 0x4ad1d386
mov word [rcx], r13w
cmp rbx, r13
je 0x4ad0b804
cmp word [rbx], 0x3a
je 0x4ad0b804
cmp word [rbx], r14w
jne 0x4ad0b7d4
cmp rbx, rbp
je 0x4ad1d397
mov rax, rbp
cmp word [rax], r13w
je 0x4ad1d38f
mov rcx, rax
add rax, 2
cmp rax, rbx
jne 0x4ad0b7a8
jmp 0x4ad0b7c0
cmp word [rcx], 0x3a
je 0x4ad1d397
cmp word [rcx], r14w
je 0x4ad1d397
movzx edi, word [rbx]
mov rcx, rbp
mov word [rbx], r13w
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4ad1d3a0
mov eax, r13d
jmp 0x4ad0b7f2
mov dword [0x4ad2e13c], eax
mov word [rbx], di
cmp eax, r13d
jne 0x4ad1d37a
mov rcx, rsi
call fcn.4ad0b410
mov qword [rsi + 0x30], r12
mov rax, rsi
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.4ad01000
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
mov rax, 1
jmp 0x4ad0b813
sub rcx, 2
jmp 0x4ad0b787
mov rcx, r13
jmp 0x4ad0b7c0
add rbx, 2
jmp 0x4ad0b7d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
jmp 0x4ad0b7f2
Function at 0x4ad0c064
Capabilities:
Set console window title

Disassembly:
cmp r12, rdi
je 0x4ad18ec1
mov rcx, qword [r12 + 0x78]
xor edx, edx
call fcn.4ad02f30
mov rsi, rax
cmp rax, rdi
je 0x4ad0bffc
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
lea ebx, [rax + 1]
mov r13d, 0x104
not rcx
sub rcx, rbx
cmp rcx, r13
jae 0x4ad18ed7
xor edi, edi
cmp rsi, rdi
je 0x4ad0bffc
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov byte [0x4ad2e0cc], dil
mov ebx, edi
cmp r15d, edi
je 0x4ad0c014
jmp 0x4ad0c005
cmp rsi, rdi
je 0x4ad0c014
mov rcx, rsi
call fcn.4ad01040
jmp 0x4ad0c014
cmp rbp, rdi
je 0x4ad0c022
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp ebx, edi
jne 0x4ad18ed7
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.4ad01000
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x250
mov rax, qword [0x4ad2e1c8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov r12, rcx
xor edi, edi
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r15d, edi
mov rbp, rdi
call fcn.4ad0c1a0
cmp eax, edi
jl 0x4ad18e78
mov eax, dword [rsp + 0x20]
cmp eax, 3
lea ecx, [rax - 0x10]
cmovb ecx, eax
mov eax, edi
cmp ecx, edi
sete al
cmp eax, edi
je 0x4ad0bfa4
mov ecx, 0x40002748
mov ebx, 1
call fcn.4ad0c2d8
mov rbp, rax
cmp rax, rdi
je 0x4ad18ed7
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
repne scasw ax, word [rdi]
mov r13d, 0x104
not rcx
sub rcx, rbx
mov r14, rcx
cmp rcx, r13
jae 0x4ad18ed0
mov ecx, 0x208
call fcn.4ad016dc
xor edi, edi
mov rsi, rax
cmp rax, rdi
je 0x4ad0c014
mov rdi, rbp
mov r15d, ebx
mov rdx, r13
sub rdi, rax
xor r8d, r8d
lea rcx, [rdx + 0x7ffffefa]
cmp rcx, r8
je 0x4ad0c158
movzx ecx, word [rdi + rax]
cmp cx, r8w
je 0x4ad0c158
mov word [rax], cx
add rax, 2
sub rdx, rbx
jne 0x4ad0c136
xor edi, edi
cmp rdx, rdi
je 0x4ad18e8e
mov word [rax], di
cmp r12, rdi
je 0x4ad12c8a
mov r8, qword [r12 + 0x78]
cmp r8, rdi
je 0x4ad18eb5
mov rdx, r13
mov rcx, rsi
call fcn.4ad01ac0
cmp eax, edi
je 0x4ad0bfe7
jmp 0x4ad18ebc
lea rcx, [rsp + 0x30]
mov edx, r13d
lea rdi, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
test eax, eax
je 0x4ad18ec9
lea rcx, [rsp + 0x30]
mov rdx, rbp
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
jne 0x4ad18e97
mov r8, rdi
mov rdx, r13
mov rcx, rsi
call fcn.4ad01ac0
xor edi, edi
cmp eax, edi
jne 0x4ad0c005
jmp 0x4ad0bfe7
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
jmp 0x4ad0bfa4
sub rax, 2
jmp 0x4ad0c163
lea r12, [r14 + r14]
add rdi, r12
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
je 0x4ad12cbc
jmp 0x4ad18e9b
mov ebx, edi
jmp 0x4ad0c005
jmp 0x4ad0c005
mov rsi, rdi
jmp 0x4ad0bfe7
xor edi, edi
jmp 0x4ad0c005
xor edi, edi
jmp 0x4ad0c014
xor edx, edx
lea ecx, [rdx + 8]
call fcn.4ad0b8b0
nop
jmp 0x4ad0c02a
Function at 0x4ad10500
Capabilities:
Set current directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x4ad2e1c8]
xor rax, rsp
mov qword [rsp + 0x240], rax
add cx, 0x40
mov eax, 0x3d
xor esi, esi
mov word [rsp + 0x22], cx
mov word [rsp + 0x20], ax
mov eax, 0x3a
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], si
mov word [rsp + 0x24], ax
call fcn.4ad01a60
mov rdi, rax
cmp rax, rsi
je 0x4ad1d3d5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp al, sil
je 0x4ad1d3c8
lea rcx, [0x4ad3c0a0]
xor r8d, r8d
mov edx, 0x104
call fcn.4ad05410
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.4ad01000
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
lea ecx, [rsi + 1]
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ebx, eax
jmp 0x4ad1d3d9
mov ebx, dword [rsp + 0x20]
movzx eax, word [rsp + 0x22]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x24]
mov word [rsp + 0x36], si
mov word [rsp + 0x32], ax
mov eax, 0x5c
mov word [rsp + 0x34], ax
call fcn.4ad0134c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp eax, esi
jne 0x4ad1d429
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
mov ecx, eax
call fcn.4ad0b8b0
cmp rdi, rsi
je 0x4ad10570
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
nop
jmp 0x4ad10570
Function at 0x4ad10e14
Capabilities:
Move file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x20
cmp dword [r8], 0
mov ebx, 2
mov rbp, r8
lea eax, [rbx + 1]
mov rdi, r9
mov rsi, rdx
cmove ebx, eax
and dword [r9], 0
mov r12, rcx
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x4ad18be3
mov dword [rdi], 1
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4ad18c2b
mov edx, 0x400023d3
mov rcx, rsi
lea r8d, [rdx + 1]
call fcn.4ad24de0
test eax, eax
je 0x4ad10e63
cmp eax, 2
jne 0x4ad18c12
and dword [rbp], 0
or ebx, 1
mov rdx, rsi
mov rcx, r12
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [rdi], eax
jmp 0x4ad10e68
xor eax, eax
jmp 0x4ad10e68
Function at 0x4ad11600
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov eax, 0x1a
mov rsi, r9
mov ebx, r8d
mov word [rsp + 0x40], ax
mov rax, qword [rdx + 0x40]
mov rdi, rcx
test rax, rax
cmovne rdx, rax
bt dword [rdx + 0x38], 0xe
jb 0x4ad1165c
test byte [rdx + 0x38], 2
jne 0x4ad1ce33
test byte [rdx + 0x38], 4
je 0x4ad1165c
mov eax, dword [0x4ad2e16c]
cmp eax, 3
je 0x4ad1ce33
cmp eax, 4
je 0x4ad1ce33
test rdi, rdi
je 0x4ad116a0
test byte [rdi + 0x38], 0x80
jne 0x4ad116a0
mov ecx, ebx
call fcn.4ad03380
test eax, eax
jne 0x4ad116a0
mov eax, dword [0x4ad2e16c]
cmp eax, 3
je 0x4ad116a0
test rsi, rsi
je 0x4ad116a0
cmp eax, 2
je 0x4ad116a0
mov ecx, ebx
call qword [sym.imp.msvcrt.dll__get_osfhandle]
mov r9, rsi
xor r8d, r8d
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov ecx, ebx
call fcn.4ad0319c
inc dword [0x4ad2e168]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov ecx, ebx
call fcn.4ad03380
test eax, eax
jne 0x4ad1165c
mov ecx, ebx
call qword [sym.imp.msvcrt.dll__get_osfhandle]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
lea rdx, [rsp + 0x40]
mov rcx, rax
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
jmp 0x4ad1165c

Function at 0x4ad116c4
Capabilities:
Delete file
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rax - 0x18], 0
and dword [0x4ad2e138], 0
mov rsi, r9
mov ebx, r8d
mov rbp, rdx
mov edi, ecx
call qword [sym.imp.msvcrt.dll__get_osfhandle]
and qword [rsp + 0x20], 0
mov r9, rsi
mov r8d, ebx
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ad1cf8a
mov ecx, dword [rsi]
test ecx, ecx
je 0x4ad1cf33
mov rdx, qword [rsp + 0x70]
mov eax, dword [rdx + 0x38]
test eax, 0xc000
jne 0x4ad11748
cmp ecx, 2
jb 0x4ad11741
mov ecx, 0xfeff
cmp word [rbp], cx
je 0x4ad1cf57
bts eax, 0xf
mov dword [rdx + 0x38], eax
mov eax, dword [rdx + 0x38]
mov ecx, 0x8002
mov edi, 1
and eax, ecx
cmp eax, ecx
je 0x4ad1cf60
mov eax, edi
jmp 0x4ad11763
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e3
je 0x4ad1cf8a
mov ecx, dword [rsi]
test ecx, ecx
jne 0x4ad1171e
and dword [0x4ad2e13c], ecx
xor eax, eax
jmp 0x4ad11763
bts eax, 0xe
jmp 0x4ad11745
mov ebx, dword [rsi]
lea r9, [rsp + 0x30]
mov r8, rsi
mov rdx, rbp
mov ecx, edi
call fcn.4ad23120
mov edx, dword [0x4ad2e138]
cmp ebx, dword [rsi]
cmovne edx, edi
mov dword [0x4ad2e138], edx
jmp 0x4ad1175f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, edi
mov dword [0x4ad2e13c], eax
call fcn.4ad0319c
mov ebx, dword [rsp + 0x78]
mov ecx, ebx
call fcn.4ad03380
mov ecx, ebx
test eax, eax
jne 0x4ad1cfc3
call fcn.4ad0319c
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4ad1cfc8
call fcn.4ad0319c
mov ecx, dword [0x4ad2e13c]
mov edx, 1
call fcn.4ad2477c
int3
Function at 0x4ad13ab8
Capabilities:
Get disk information

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x890
mov rax, qword [0x4ad2e1c8]
xor rax, rsp
mov qword [rsp + 0x880], rax
mov rdi, rdx
lea rax, [r11 - 0x638]
mov rbx, rcx
sub rdi, rax
mov edx, 0x104
lea rcx, [r11 - 0x638]
xor esi, esi
lea rax, [rdx + 0x7ffffefa]
cmp rax, rsi
je 0x4ad13b1d
movzx eax, word [rdi + rcx]
cmp ax, si
je 0x4ad13b1d
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x4ad13afb
cmp rdx, rsi
je 0x4ad1f090
mov word [rcx], si
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x260]
lea r8, [rsp + 0x50]
repne scasw ax, word [rdi]
mov edi, 0x106
not rcx
mov r9d, edi
mov edx, ecx
lea rcx, [rsp + 0x260]
call fcn.4ad0d260
cmp al, sil
je 0x4ad1f099
lea r8, [0x4ad29784]
lea rcx, [rsp + 0x50]
mov rdx, rdi
call fcn.4ad01ac0
mov dword [rsp + 0x38], esi
mov qword [rsp + 0x30], rsi
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x470]
lea rcx, [rsp + 0x50]
mov r8d, 0x104
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
cmp eax, esi
je 0x4ad1f0a0
cmp word [rsp + 0x50], 0x5c
je 0x4ad1f0c6
mov word [rsp + 0x52], si
lea r9, [rsp + 0x50]
mov rcx, rbx
cmp word [rsp + 0x470], si
jne 0x4ad1f0df
mov edx, 0x235e
mov r8d, 1
call fcn.4ad13c6c
mov edx, eax
cmp eax, esi
jne 0x4ad13c3c
mov rax, qword [rsp + 0x40]
cmp eax, esi
je 0x4ad1f101
movzx edx, ax
shr eax, 0x10
lea r8, str._04X__04X
mov dword [rsp + 0x20], edx
lea rcx, [rsp + 0x680]
mov r9d, eax
mov edx, 0x100
call fcn.4ad01484
lea r9, [rsp + 0x680]
mov edx, 0x235b
mov r8d, 1
mov rcx, rbx
call fcn.4ad13c6c
mov edx, eax
mov eax, edx
mov rcx, qword [rsp + 0x880]
xor rcx, rsp
call fcn.4ad01000
lea r11, [rsp + 0x890]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
sub rcx, 2
jmp 0x4ad13b26
xor eax, eax
jmp 0x4ad13c3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x90
je 0x4ad1f099
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
mov ecx, eax
call fcn.4ad0b8b0
mov eax, 1
jmp 0x4ad13c3e
lea rax, [rsp + 0x50]
mov rcx, rax
add rax, 2
cmp word [rax], si
jne 0x4ad1f0cb
mov word [rcx], si
jmp 0x4ad13bc0
lea rax, [rsp + 0x470]
mov edx, 0x235f
mov r8d, 2
mov qword [rsp + 0x20], rax
call fcn.4ad13c6c
jmp 0x4ad13be6
cmp dword [rsp + 0x44], esi
jne 0x4ad13bf9
jmp 0x4ad13c3c