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

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 r14
sub rsp, 0x20
mov rbp, rcx
mov ecx, 0x104
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, 0x87e42a4d
mov ecx, 0xd5167566
mov r8d, 0x8709e310
mov ebx, eax
call fcn.1400018d0
lea rcx, [rdi + rbx*2]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
xor r14d, r14d
movsxd rcx, eax
mov esi, r14d
lea rdi, [rdi + rcx*2]
movzx ebx, byte [rsi + rbp + 0x25c]
mov edx, 0x5ae0692f
mov ecx, 0x8123630
mov r8d, 0x5a0da07e
call fcn.1400018d0
mov r8d, ebx
mov rcx, rdi
mov rdx, rax
call qword [sym.imp.USER32.dll_wsprintfW]
inc rsi
add rdi, 4
cmp rsi, 8
jl 0x1400291a3
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov dword [rdi], 0x74002e
mov dword [rdi + 4], 0x740078
mov word [rdi + 8], r14w
mov rdi, qword [rsp + 0x48]
mov al, 1
add rsp, 0x20
pop r14
ret

Function at 0x14002cf1c
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rax, qword [0x140162470]
xor rax, rsp
mov qword [rbp + 0x150], rax
xor ebx, ebx
test byte [rdx], 0xc0
mov r13, rcx
mov rcx, qword [rbp + 0x1c0]
mov esi, r9d
mov r15, r8
mov rdi, rdx
je 0x14002d07e
movabs rax, 0xb31fa6feddf8a00b
lea rdx, [rsp + 0x30]
mov qword [rbp + 0x140], rax
movabs rax, 0x780f056a569fdfd8
mov qword [rbp + 0x148], rax
call fcn.14008f80c
lea r8, [rsp + 0x30]
lea rdx, [rbp + 0x130]
mov rcx, rdi
call fcn.140002700
lea rax, [rbp + 0x130]
mov r8, rdi
sub r8, rax
mov edx, ebx
lea rcx, [rbp + 0x130]
add rcx, rdx
inc rdx
mov al, byte [r8 + rcx]
xor byte [rcx], al
cmp rdx, 0x10
jl 0x14002cfb4
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x130]
call fcn.14008efb8
lea rax, [rbp + 0x30]
lea r8d, [rsi - 0x10]
lea rdx, [r15 + 0x10]
lea rcx, [rdi + 0x10]
lea r9, [rbp + 0x140]
mov qword [rsp + 0x20], rax
call fcn.14008fc2c
cmp dword [r13 + 0x270], ebx
jbe 0x14002d044
mov edi, ebx
test esi, esi
jle 0x14002d044
mov r14, r15
mov rdx, qword [r13 + 0x268]
mov r8d, edi
mov r9d, 0x800
sar r8d, 0xb
mov rcx, r14
add r8d, dword [rbp + 0x1c8]
call fcn.140032420
add edi, 0x800
add r14, 0x800
cmp edi, esi
jl 0x14002d010
mov eax, 0x2aaaaaab
mov ecx, 1
imul esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsxd r8, edx
cmp rcx, r8
jge 0x14002d07e
lea rax, [r15 + 0xc4]
cmp byte [rax], 0x47
jne 0x14002d07e
inc rcx
inc ebx
add rax, 0xc0
cmp rcx, r8
jl 0x14002d069
mov eax, ebx
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.1400e7da0
add rsp, 0x260
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x14002d938
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, r8
mov rdi, rdx
call fcn.14002d870
sub rdi, rbx
mov ecx, 4
mov eax, dword [rdi + rbx]
xor dword [rbx], eax
lea rbx, [rbx + 4]
dec rcx
jne 0x14002d955
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140030cbc
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx + 0x228]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov ebx, r8d
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140030ceb
cmp dword [rsp + 0x40], ebx
jne 0x140030ceb
mov al, 1
jmp 0x140030ced
xor al, al
add rsp, 0x30
pop rbx
ret

Function at 0x1400320c8
Capabilities:
Create directory
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor r9d, r9d
mov rbx, rcx
mov qword [rsp + 0x20], rcx
lea edx, [r9 + 0x23]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor edi, edi
test eax, eax
jns 0x14003210f
lea edx, [rdi + 0x1a]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x14003210f
mov word [rbx], di
lea rcx, [0x140142762]
mov edx, 0x243d03c8
mov r8d, 0x14
call fcn.140001a20
lea rcx, [rbx - 2]
mov r8, rax
lea rcx, [rcx + 2]
cmp word [rcx], di
jne 0x14003212d
xor edx, edx
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
inc rdx
test ax, ax
jne 0x140032138
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], di
jne 0x140032158
lea rax, [rbx + rax*2]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140036864
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov rsi, rdx
mov rdi, rcx
cmp r8d, 0x80
jne 0x14003690c
mov ebx, dword [rdx + 0xc]
mov r11d, dword [rdx + 8]
mov r9d, dword [rdx + 4]
mov r10d, dword [rdx]
mov edx, dword [rdx]
mov r8d, dword [rcx]
shr edx, 8
mov eax, ebx
and r10d, 0xffffff00
or eax, 1
xor edx, r8d
shr r8d, 0x18
sub edx, r9d
xor edx, r11d
imul edx, eax
movzx eax, byte [rsi]
xor r8d, eax
shl edx, 8
or edx, r8d
mov dword [rcx], edx
mov edx, r9d
or edx, 1
mov eax, edx
imul eax, dword [rcx + 4]
sub eax, ebx
add eax, r11d
or r11d, 1
xor eax, r10d
mov dword [rcx + 4], eax
mov eax, r11d
imul eax, dword [rcx + 8]
mov ecx, ebx
xor ebx, dword [rdi + 0xc]
sub ecx, eax
sub ebx, r10d
mov eax, r10d
not eax
imul ebx, r11d
imul ecx, eax
add ecx, r9d
imul ebx, edx
mov dword [rdi + 8], ecx
mov dword [rdi + 0xc], ebx
jmp 0x140036922
sub rsi, rcx
mov ecx, 4
mov eax, dword [rsi + rdi]
xor dword [rdi], eax
lea rdi, [rdi + 4]
dec rcx
jne 0x140036914
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
Function at 0x1400385c8
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
movaps xmmword [rax - 0x28], xmm6
mov eax, dword [rsp + 0x70]
mov rbx, r9
mov rsi, r8
mov rbp, rdx
mov r15, rcx
test eax, eax
jle 0x140038641
lea r14d, [rax - 1]
mov rdi, rdx
shr r14d, 4
sub rdi, rbx
inc r14d
movups xmm6, xmmword [rsi]
mov r8, rbx
mov rdx, rsi
mov rcx, r15
call fcn.1400386fc
mov ecx, InitCommonControls
mov al, byte [rdi + rbx]
xor byte [rbx], al
inc rbx
dec rcx
jne 0x14003861f
movups xmm0, xmm6
add rsi, 0x10
sub rdi, 0x10
movdqu xmmword [rbp], xmm0
dec r14
jne 0x140038609
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x14003c5dc
Capabilities:
Encode data using xor

Disassembly:
lea rax, [0x140142ef0]
mov r8d, ecx
add r8, rax
mov al, byte [r8]
inc r8
xor al, 0x85
mov byte [rdx], al
inc rdx
test al, al
je 0x14003c60f
movzx ecx, al
mov al, byte [r8]
inc r8
xor al, 0x85
mov byte [rdx], al
inc rdx
dec rcx
jne 0x14003c5fd
ret

Function at 0x14003d499
Capabilities:
Encode data using xor

Disassembly:
test r8d, r8d
jle 0x14003d6fb
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x30
mov rax, qword [0x140162470]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r15d, [r8 - 1]
mov r14, rcx
mov rdi, rdx
shr r15d, 3
mov r9, rdx
mov ebp, 0xa
movabs rbx, 0xff000000000000
movabs rcx, 0xff0000000000
movabs r8, 0xff00000000
inc r15d
mov r11d, 0xff000000
lea r13, [0x140000000]
mov rdx, qword [r14]
xor esi, esi
mov r10, rdx
mov rax, rdx
shr rax, 0x10
and r10, rbx
or r10, rax
mov rax, rdx
and rax, rcx
shr r10, 0x10
mov rcx, rdx
or r10, rax
and ecx, 0xff00
mov rax, rdx
and rax, r8
shr r10, 0x10
mov r8d, r9d
or r10, rax
mov rax, rdx
shl rax, 0x10
shr r10, 8
or rcx, rax
mov rax, rdx
and rdx, r11
shl rcx, 0x10
and eax, 0xff0000
or rcx, rax
shl rcx, 0x10
or rcx, rdx
mov rdx, r9
shl rcx, 8
shr rdx, 0x20
or r10, rcx
and edx, 0xffffff
mov r11, r10
shr r11, 0x20
test ebp, ebp
jle 0x14003d5d1
lea rbx, [rsp]
and edx, 0xffffff
mov eax, esi
inc esi
movzx ecx, dl
xor rcx, rax
movzx eax, byte [rcx + r13 + 0x152eb0]
mov ecx, edx
shl edx, 0x11
shl eax, 4
shr ecx, 7
add eax, r8d
mov dword [rbx], eax
mov eax, r8d
shl r8d, 0x11
shr eax, 0xf
or r8d, ecx
lea rbx, [rbx + 4]
or edx, eax
cmp esi, ebp
jl 0x14003d587
movabs rbx, 0xff000000000000
mov r8d, 9
mov eax, r8d
cdq
idiv ebp
movsxd rax, edx
mov edx, dword [rsp + rax*4]
add edx, r10d
movzx ecx, dl
xor edx, dword [r13 + rcx*4 + 0x16fba0]
mov ecx, edx
mov eax, edx
ror ecx, 0xa
rol eax, 9
xor ecx, eax
xor ecx, edx
sub r11d, ecx
mov ecx, r11d
mov r11d, r10d
mov r10d, ecx
cmp r8d, 5
jne 0x14003d625
mov r9d, ecx
and r9d, 0xffffff
shl r9, 0x20
or r9, r11
xor r9, rdi
dec r8d
jns 0x14003d5d7
mov r8, rcx
movabs rcx, 0xff0000000000
mov ebp, 2
shl r8, 0x20
or r8, r11
mov r11d, 0xff000000
mov rdx, r8
mov rax, r8
shr rax, 0x10
and rdx, rbx
or rdx, rax
mov rax, r8
and rax, rcx
shr rdx, 0x10
movabs rcx, 0xff00000000
or rdx, rax
mov rax, r8
and rax, rcx
shr rdx, 0x10
mov rcx, r8
and ecx, 0xff00
or rdx, rax
mov rax, r8
shl rax, 0x10
shr rdx, 8
or rcx, rax
mov rax, r8
and r8, r11
shl rcx, 0x10
and eax, 0xff0000
or rcx, rax
shl rcx, 0x10
or rcx, r8
movabs r8, 0xff00000000
shl rcx, 8
or rdx, rcx
movabs rcx, 0xff0000000000
mov qword [r14], rdx
add r14, 8
dec r15
jne 0x14003d502
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400e7da0
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
Function at 0x14003d6fc
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rsi
sub rsp, 0x30
mov rax, qword [0x140162470]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov r9, rdx
mov r8, rcx
mov r10, rcx
shr r9, 0x20
shr r8, 0x20
lea rbx, [rsp]
and r9d, 0xffffff
xor r11d, r11d
lea rsi, [0x140000000]
and r9d, 0xffffff
mov eax, r11d
inc r11d
movzx ecx, r9b
xor rcx, rax
movzx eax, byte [rcx + rsi + 0x152eb0]
mov ecx, r9d
shl r9d, 0x11
shl eax, 4
shr ecx, 7
add eax, edx
mov dword [rbx], eax
mov eax, edx
shl edx, 0x11
shr eax, 0xf
or edx, ecx
lea rbx, [rbx + 4]
or r9d, eax
cmp r11d, 0xa
jl 0x14003d73b
mov r9d, 9
mov edx, dword [rsp + r9*4]
add edx, r10d
movzx ecx, dl
xor edx, dword [rsi + rcx*4 + 0x16fba0]
mov eax, edx
mov ecx, edx
ror ecx, 0xa
rol eax, 9
xor ecx, eax
xor ecx, edx
sub r8d, ecx
dec r9
mov eax, r8d
mov r8d, r10d
mov r10d, eax
jns 0x14003d785
shl rax, 0x20
or rax, r8
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400e7da0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rsi
ret

Function at 0x14003d7d4
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov rax, qword [0x140162470]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov r8, rdx
mov r9, rcx
mov r11, rcx
shr r8, 0x20
shr r9, 0x20
mov ebx, ecx
and r8d, 0xffffff
xor r10d, r10d
lea rsi, [rsp]
mov edi, r10d
lea r14, [0x140000000]
and r8d, 0xffffff
mov eax, edi
inc edi
movzx ecx, r8b
xor rcx, rax
movzx eax, byte [rcx + r14 + 0x152eb0]
mov ecx, r8d
shl r8d, 0x11
shl eax, 4
shr ecx, 7
add eax, edx
mov dword [rsi], eax
mov eax, edx
shl edx, 0x11
shr eax, 0xf
or edx, ecx
lea rsi, [rsi + 4]
or r8d, eax
cmp edi, 0xa
jl 0x14003d823
mov edx, dword [rsp + r10*4]
inc r10
add edx, ebx
movzx ecx, dl
xor edx, dword [r14 + rcx*4 + 0x16fba0]
mov ecx, edx
mov eax, edx
ror ecx, 0xa
rol eax, 9
xor ecx, eax
xor ecx, edx
add ecx, r9d
mov r9d, ebx
mov ebx, ecx
cmp r10, 0xa
jl 0x14003d865
mov eax, ecx
shl rax, 0x20
or rax, r9
xor rax, r11
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400e7da0
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret

Function at 0x14003ecc0
Capabilities:
Encode data using xor

Disassembly:
mov r9, qword [rcx]
test r8d, r8d
je 0x14003ecf2
mov r10d, r8d
movzx eax, byte [rdx]
movzx r8d, r9b
lea r11, [0x14010ac20]
xor r8, rax
mov rax, r9
inc rdx
mov r9, qword [r11 + r8*8]
shr rax, 8
xor r9, rax
dec r10
jne 0x14003eccb
mov qword [rcx], r9
ret
Function at 0x140043a58
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x300
mov rax, qword [0x140162470]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
movzx esi, dx
mov r15, rcx
lea rdx, [rsp + 0x60]
mov ecx, 0x104
mov rbp, r8
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rcx, [rsp + 0x60]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x140043aa1
lea rbx, [rsp + 0x60]
mov edx, 0xaf261aa2
mov ecx, 0xf84979cc
mov r8d, 0xcdc3f716
movzx r14d, si
lea rbx, [rbx + rax*2]
call fcn.140001ec8
mov r8d, r14d
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.USER32.dll_wsprintfW]
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0x48]
lea rcx, [rsp + 0x60]
mov edx, 0xc0000000
mov r8d, 3
mov dword [rsp + 0x28], 0x4000080
mov dword [rsp + 0x48], 0x18
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140043b30
xor al, al
jmp 0x140043bd1
mov edx, 0x4677820b
mov ecx, 0x1118e11b
mov r8d, 0x24926fa8
call fcn.140001ec8
mov edx, 0xf7e0f441
mov ecx, 0xa08f9721
mov r8d, 0x950519e4
mov rbx, rax
call fcn.140001ec8
lea rcx, [rsp + 0x60]
mov r9, rbx
mov r8, r15
mov rdx, rax
mov dword [rsp + 0x20], r14d
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x60]
or r9d, 0xffffffff
mov r8, rsi
mov rdx, r15
call fcn.140043ec0
test eax, eax
je 0x140043bc5
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140044260
mov rbx, rax
test rax, rax
je 0x140043bc5
mov rdx, rbp
mov rcx, rax
call fcn.140043fb0
mov dil, al
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, dil
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.1400e7da0
mov rbx, qword [rsp + 0x348]
add rsp, 0x300
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140043bf8
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x280]
sub rsp, 0x380
mov rax, qword [0x140162470]
xor rax, rsp
mov qword [rbp + 0x270], rax
mov esi, edx
mov rdi, rcx
mov r8d, 0x9317fabe
mov edx, 0xf1f2171d
mov ecx, 0xa69d7767
call fcn.140001ec8
mov edx, 0x5eccd488
mov ecx, 0x9a3b714
mov r8d, 0x3c29390a
mov rbx, rax
call fcn.140001ec8
lea rcx, [rbp - 0x20]
mov r9, rbx
mov rdx, rax
mov r8, rdi
call qword [sym.imp.USER32.dll_wsprintfW]
and qword [rsp + 0x50], 0
xor eax, eax
lea r8d, [rax + 0x60]
lea rcx, [rsp + 0x78]
xor edx, edx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
call fcn.1400ea570
and dword [rbp - 0x54], 0
mov eax, 1
lea rdx, [rbp - 0x20]
mov word [rbp - 0x50], ax
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
and qword [rsp + 0x30], 0
xor ecx, ecx
mov dword [rsp + 0x28], 0x8000000
and dword [rsp + 0x20], 0
mov dword [rsp + 0x70], 0x68
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test eax, eax
je 0x140043d07
test esi, esi
je 0x140043cf1
mov rcx, qword [rsp + 0x50]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rbp + 0x270]
xor rcx, rsp
call fcn.1400e7da0
mov rbx, qword [rsp + 0x3b0]
add rsp, 0x380
pop rdi
pop rsi
pop rbp
ret

Function at 0x140043ec0
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
and qword [rbp - 0x39], 0
xor eax, eax
mov rbx, r8
mov rsi, rcx
mov rdi, rdx
lea r8d, [rax + 0x60]
lea rcx, [rbp - 0x11]
xor edx, edx
mov r14d, r9d
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x29], rax
call fcn.1400ea570
and qword [rbp + 0x37], 0
lea rax, [rbp - 0x39]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x19]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
and qword [rsp + 0x30], 0
mov rdx, rsi
xor ecx, ecx
mov dword [rsp + 0x28], 0x8000000
mov dword [rbp - 0x19], 0x68
mov dword [rbp + 0x23], 0x100
mov qword [rbp + 0x3f], rbx
mov dword [rsp + 0x20], 1
mov qword [rbp + 0x47], rbx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test eax, eax
je 0x140043f8e
test r14d, r14d
je 0x140043f7a
mov rcx, qword [rbp - 0x39]
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0xe0]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140044260
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor edi, edi
mov r14, rdx
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov rsi, rcx
mov qword [rax + 0x18], rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp eax, 0xffffffff
jne 0x1400442b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400442b9
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140044323
cmp dword [rsp + 0x60], edi
jne 0x1400442ac
lea ebx, [rbp + 1]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
mov rcx, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, rsi
mov rbx, rax
test rax, rax
je 0x1400442af
lea r9, [rsp + 0x68]
mov r8d, ebp
mov rdx, rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004430c
cmp dword [rsp + 0x68], ebp
jne 0x14004430c
mov rdi, rbx
mov dword [r14], ebp
jmp 0x140044320
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140044734
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x10
mov rax, qword [0x140162470]
xor rax, rsp
mov qword [rsp + 8], rax
movzx r10d, byte [rdx + 2]
movzx r11d, byte [rdx + 4]
movzx eax, byte [rdx + 3]
movzx edi, byte [rdx]
movzx esi, byte [rdx + 1]
shl r11d, 8
or r11d, eax
mov r14, r9
lea r15, [0x140000000]
shl r11d, 8
movzx ebx, cl
bts edi, 8
or r11d, r10d
and r10d, 7
mov rbp, r8
add r11d, r11d
sub r11d, r10d
add r11d, 8
mov eax, r11d
mov edx, r11d
shr rax, 8
shr rdx, 0x18
movzx ecx, al
movzx eax, r11b
movzx eax, byte [rax + r15 + 0x10e800]
movzx r9d, byte [rcx + r15 + 0x10e800]
shl eax, 8
or r9d, eax
mov eax, r11d
shr rax, 0x10
shl r9d, 8
movzx ecx, al
movzx eax, byte [rcx + r15 + 0x10e800]
or r9d, eax
movzx eax, byte [rdx + r15 + 0x10e800]
shl r9d, 8
or r9d, eax
xor r10d, r10d
mov r11d, r10d
mov r8b, byte [rsi + r15 + 0x10e500]
mov esi, edi
mov ecx, r9d
xor r8b, byte [rdi + r15 + 0x10e600]
shr ecx, 0x13
and edi, 1
movzx eax, r8b
shl edi, 8
inc r11
xor edi, eax
mov eax, r9d
shr esi, 1
shr eax, 0xb
xor cl, al
mov eax, r9d
shr eax, 0xa
xor cl, al
mov eax, r9d
shr eax, 7
xor cl, al
mov eax, r9d
shr eax, 8
movzx edx, cl
mov ecx, edx
shl ecx, 0x18
mov r9d, ecx
or r9d, eax
movzx eax, r8b
movzx ecx, byte [rax + r15 + 0x10e800]
mov eax, ebx
xor eax, edx
add r10d, eax
add r10d, ecx
mov byte [rsp + r11 - 1], r10b
shr r10d, 8
cmp r11, 5
jl 0x1400447fd
movzx eax, byte [rbp + 4]
mov dl, byte [rax + r15 + 0x10e400]
xor dl, byte [rbp + 3]
xor dl, byte [rsp + 4]
mov byte [r14 + 4], dl
movzx eax, byte [rbp + 3]
movzx edx, dl
mov cl, byte [rax + r15 + 0x10e400]
xor cl, byte [rbp + 2]
xor cl, byte [rsp + 3]
mov byte [r14 + 3], cl
movzx eax, byte [rbp + 2]
movzx ecx, cl
mov r10b, byte [rax + r15 + 0x10e400]
xor r10b, byte [rsp + 2]
xor r10b, byte [rbp + 1]
mov byte [r14 + 2], r10b
movzx eax, byte [rbp + 1]
mov r8b, byte [rax + r15 + 0x10e400]
xor r8b, byte [rbp]
xor r8b, byte [rsp + 1]
mov byte [r14 + 1], r8b
movzx eax, byte [rbp]
movzx r8d, r8b
mov r9b, byte [rax + r15 + 0x10e400]
xor r9b, dl
xor r9b, byte [rsp]
mov byte [r14], r9b
mov al, byte [rdx + r15 + 0x10e400]
movzx edx, r10b
xor al, cl
xor al, byte [rsp + 4]
mov byte [r14 + 4], al
mov al, byte [rcx + r15 + 0x10e400]
movzx ecx, r9b
xor al, dl
xor al, byte [rsp + 3]
mov byte [r14 + 3], al
mov al, byte [rdx + r15 + 0x10e400]
xor al, r8b
xor al, byte [rsp + 2]
mov byte [r14 + 2], al
mov al, byte [r8 + r15 + 0x10e400]
xor al, cl
xor al, byte [rsp + 1]
mov byte [r14 + 1], al
mov al, byte [rcx + r15 + 0x10e400]
xor al, byte [rsp]
mov byte [r14], al
mov rcx, qword [rsp + 8]
xor rcx, rsp
call fcn.1400e7da0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x10
pop r15
pop r14
pop rdi
ret
Function at 0x14004fde4
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
cmp dword [0x140170020], 0
mov r11, rcx
lea rsi, [0x140170030]
jne 0x14004fe50
mov dword [0x140170020], 1
xor r9d, r9d
mov r10, rsi
mov ebx, 0x100
mov rax, r9
mov ecx, 8
test al, 1
je 0x14004fe39
shr rax, 1
movabs rdi, 0x95ac9329ac4bc9b5
xor rax, rdi
jmp 0x14004fe3c
shr rax, 1
dec rcx
jne 0x14004fe23
mov qword [r10], rax
inc r9
add r10, 8
dec rbx
jne 0x14004fe1b
test edx, edx
je 0x14004fe76
mov rcx, qword [r8]
movzx eax, byte [r11]
inc r11
xor rax, rcx
shr rcx, 8
movzx eax, al
mov rax, qword [rsi + rax*8]
xor rax, rcx
mov qword [r8], rax
dec edx
jne 0x14004fe54
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
Function at 0x140054be0
Capabilities:
Get disk information via ioctl

Disassembly:
mov r11, rsp
sub rsp, 0x68
mov rax, qword [0x140162470]
xor rax, rsp
mov qword [rsp + 0x58], rax
and qword [r11 - 0x30], 0
mov rcx, qword [rcx + 8]
and dword [rsp + 0x40], 0
lea rax, [r11 - 0x28]
xor r9d, r9d
xor r8d, r8d
mov qword [r11 - 0x38], rax
lea rax, [r11 - 0x20]
mov edx, 0x2d1080
mov dword [rsp + 0x28], InitCommonControls
mov qword [r11 - 0x48], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov eax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400e7da0
add rsp, 0x68
ret

Function at 0x140054c44
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x140162470]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov ebx, ecx
lea rcx, [0x1401545fa]
mov edx, 0xe0d67a75
mov r8d, InitCommonControls
call fcn.140001f80
lea rcx, [rsp + 0x30]
mov r8d, ebx
mov rdx, rax
call fcn.1400e9240
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor ebx, ebx
mov edi, eax
bt edi, ebx
jae 0x140054cdc
xor eax, eax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
mov byte [rsp + 0x23], al
lea eax, [rbx + 0x41]
mov r8d, 0x40
mov byte [rsp + 0x20], al
mov word [rsp + 0x21], 0x3a
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x140054cdc
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.1400eca74
test eax, eax
je 0x140054d06
inc ebx
cmp ebx, 0x20
jl 0x140054c96
mov al, 0x41
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400e7da0
mov rbx, qword [rsp + 0xd8]
add rsp, 0xc0
pop rdi
ret
lea eax, [rbx + 0x41]
jmp 0x140054ce5