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

Disassembly:
cmp byte [rcx + 0x12], 0
mov r8, rcx
je 0x1400079e1
xor eax, eax
cmp dword [0x14000f018], 5
jl 0x1400079af
movdqa xmm2, xmmword [0x14000b690]
lea rdx, [rcx + 4]
movdqa xmm3, xmmword [0x14000b6d0]
mov r9, 0xfffffffffffffffe
movdqa xmm4, xmmword [0x14000b9c0]
sub r9, rcx
movdqa xmm5, xmmword [0x14000b700]
mov r10d, 2
sub r10, rcx
movzx ecx, word [rdx - 4]
movq xmm0, rax
punpcklqdq xmm0, xmm0
add rax, 8
paddq xmm0, xmm2
andps xmm0, xmm3
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm5
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx - 4], cx
lea rcx, [r9 + rdx]
movq xmm0, rcx
movzx ecx, word [rdx - 2]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm2
andps xmm0, xmm3
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm5
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx - 2], cx
mov rcx, rdx
sub rcx, r8
movq xmm0, rcx
movzx ecx, word [rdx]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm2
andps xmm0, xmm3
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm5
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx], cx
lea rcx, [r10 + rdx]
movq xmm0, rcx
movzx ecx, word [rdx + 2]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm2
andps xmm0, xmm3
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm5
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx + 2], cx
add rdx, 8
cmp rax, 0x10
jb 0x1400078c3
cmp rax, 0x12
jae 0x1400079dc
movabs r9, 0x89f52b3945a9b135
nop dword [rax]
movzx ecx, al
mov rdx, r9
and cl, 7
shl cl, 3
shr rdx, cl
xor byte [r8 + rax], dl
inc rax
cmp rax, 0x12
jb 0x1400079c0
mov byte [r8 + 0x12], 0
ret
Function at 0x1400079f0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x1a], 0
mov r8, rcx
je 0x140007b61
xor eax, eax
cmp dword [0x14000f018], 5
jl 0x140007b2f
movdqa xmm2, xmmword [0x14000b690]
lea rdx, [rcx + 4]
movdqa xmm3, xmmword [0x14000b6d0]
mov r9, 0xfffffffffffffffe
movdqa xmm4, xmmword [0x14000ba20]
sub r9, rcx
movdqa xmm5, xmmword [0x14000b700]
mov r10d, 2
sub r10, rcx
movzx ecx, word [rdx - 4]
movq xmm0, rax
punpcklqdq xmm0, xmm0
add rax, 8
paddq xmm0, xmm2
andps xmm0, xmm3
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm5
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx - 4], cx
lea rcx, [r9 + rdx]
movq xmm0, rcx
movzx ecx, word [rdx - 2]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm2
andps xmm0, xmm3
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm5
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx - 2], cx
mov rcx, rdx
sub rcx, r8
movq xmm0, rcx
movzx ecx, word [rdx]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm2
andps xmm0, xmm3
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm5
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx], cx
lea rcx, [r10 + rdx]
movq xmm0, rcx
movzx ecx, word [rdx + 2]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm2
andps xmm0, xmm3
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, ecx
pshufb xmm1, xmm5
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx + 2], cx
add rdx, 8
cmp rax, 0x18
jb 0x140007a43
cmp rax, 0x1a
jae 0x140007b5c
movabs r9, 0x91219b1ff7f5f1d5
nop dword [rax]
movzx ecx, al
mov rdx, r9
and cl, 7
shl cl, 3
shr rdx, cl
xor byte [r8 + rax], dl
inc rax
cmp rax, 0x1a
jb 0x140007b40
mov byte [r8 + 0x1a], 0
ret

Function at 0x14000867c
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, rcx
lea rsi, [0x0047af30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [0x0047b028]
lea rdx, [rsp + 0x70]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x418551
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x48]
mov r9, rax
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov r8, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov r11, qword [0x0047b028]
jmp 0x41856d
mov r11, qword [rsp + 0x68]
lea rax, [rsp + 0x68]
add rax, 8
mov qword [0x0047b028], r11
mov qword [0x0047afc8], rax
mov rax, qword [0x004792e8]
mov qword [0x0047aea0], r11
mov qword [0x0047afb0], rdi
mov dword [0x0047ae90], 0xc0000409
mov dword [0x0047ae94], 1
mov qword [rsp + 0x50], rax
mov rax, qword [0x004792e0]
xor ecx, ecx
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x0045fbd0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
add rsp, 0x68
ret
cmp rcx, qword [0x004792e8]
jne 0x45d659
rol rcx, 0x10
test cx, 0xffff
jne 0x45d655
ret
ror rcx, 0x10
jmp 0x4184d0

Function at 0x418d30
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub rsp, 0x48
cmp r8d, 1
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rdi
mov rdi, rdx
mov rbx, rcx
jge 0x418d77
lea rax, str.Key_Length_should_be_at_least_1
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x20], rax
call fcn.0044afc0
lea rdx, [0x00476778]
lea rcx, [rsp + 0x28]
call fcn.004492f0
int3
xor eax, eax
inc rcx
nop
mov byte [rcx], al
inc eax
inc rcx
cmp eax, 0x100
jl 0x418d80
mov byte [rbx + 0x201], 0
mov byte [rbx + 0x202], 0
lea r10, [rbx + 1]
mov r11d, 0x100
nop
nop
nop
movzx eax, byte [rbx + 0x201]
mov qword [rbx + 0x208], r10
inc r10
movzx ecx, byte [rax + rdi]
add cl, byte [r10 - 1]
add byte [rbx + 0x202], cl
movzx eax, byte [rbx + 0x202]
lea rax, [rax + rbx + 1]
mov qword [rbx + 0x210], rax
movzx eax, byte [r10 - 1]
mov byte [rbx + 0x218], al
mov rax, qword [rbx + 0x210]
movzx ecx, byte [rax]
mov byte [r10 - 1], cl
movzx eax, byte [rbx + 0x218]
mov rcx, qword [rbx + 0x210]
mov byte [rcx], al
movzx eax, byte [rbx + 0x201]
inc eax
cdq
idiv r8d
dec r11
mov byte [rbx + 0x201], dl
jne 0x418db0
lea rcx, [rbx + 0x101]
lea rdx, [rbx + 1]
mov r8d, 0x100
call fcn.00446c20
mov rdi, qword [rsp + 0x68]
mov byte [rbx + 0x201], 0
mov byte [rbx + 0x202], 0
mov byte [rbx], 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x48
ret
Function at 0x418fe0
Capabilities:
Hash data using sha256

Disassembly:
xor eax, eax
mov dword [rcx], 0x6a09e667
mov dword [rcx + 4], 0xbb67ae85
mov dword [rcx + 8], 0x3c6ef372
mov dword [rcx + 0xc], 0xa54ff53a
mov dword [rcx + 0x10], 0x510e527f
mov dword [rcx + 0x14], 0x9b05688c
mov dword [rcx + 0x18], 0x1f83d9ab
mov dword [rcx + 0x1c], 0x5be0cd19
mov dword [rcx + 0x20], eax
mov dword [rcx + 0x24], eax
mov rax, rcx
ret
Function at 0x41adf0
Capabilities:
Get file size

Disassembly:
mov r11, rsp
sub rsp, 0x188
mov rax, qword [0x004792e8]
mov qword [rsp + 0x170], rax
mov rax, qword [0x0045ff80]
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov rbp, rcx
lea rcx, [rsp + 0x40]
mov qword [r11 + 0x20], rsi
mov qword [rcx], rax
mov rax, qword [str.z5p6i7ea8p9n0]
mov edx, 0x16
mov qword [rcx + 8], rax
mov eax, dword [0x0045ff90]
mov qword [r11 - 8], rdi
mov dword [rcx + 0x10], eax
movzx eax, word [0x0045ff94]
mov word [rcx + 0x14], ax
lea rcx, [rsp + 0x40]
call fcn.0040edc0
lea rdx, [rsp + 0x60]
mov r8d, 0x104
mov esi, dword [rax]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor r9d, r9d
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x60]
lea r8d, [r9 + 3]
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rcx, rax
xor edx, edx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
sub edi, dword [rbp + 0xac]
mov rbx, qword [rsp + 0x198]
sub edi, esi
mov rsi, qword [rsp + 0x1a8]
sub edi, 0x10
mov dword [rbp + 0xa8], edi
mov rdi, qword [rsp + 0x180]
mov rbp, qword [rsp + 0x1a0]
mov rcx, qword [rsp + 0x170]
call fcn.0045d640
add rsp, 0x188
ret
Function at 0x4264e0
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov r11, rsp
sub rsp, 0x208
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov qword [r11 - 8], r12
mov qword [r11 - 0x10], r13
mov rax, qword [0x004792e8]
mov qword [rsp + 0x1e0], rax
lea r12d, [rdx + rcx]
mov r8d, 0x104
lea rdx, [r11 - 0x138]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor r13d, r13d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r13 + 3]
lea rcx, [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor edx, edx
lea r8d, [r13 + 2]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rsi, rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea edx, [r13 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
sub ebx, r12d
sub ebx, 0x10
lea rcx, [rsp + 0x50]
call fcn.0045b800
nop
mov r8d, ebx
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.0045b860
movsxd rbx, ebx
lea rdx, [rbx + rdi + 0x10]
mov r8d, r12d
lea rcx, [rsp + 0x50]
call fcn.0045b860
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x50]
call fcn.0045b930
lea r11, [rsp + 0xc0]
mov rax, qword [rbx + rdi]
mov qword [r11], rax
mov rax, qword [rbx + rdi + 8]
mov qword [r11 + 8], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0xc0]
lea rax, [rsp + 0xb0]
mov rcx, qword [r11]
cmp rcx, qword [rax]
jne 0x42664c
mov rcx, qword [r11 + 8]
cmp rcx, qword [rax + 8]
je 0x426654
sbb eax, eax
sbb eax, 0xffffffff
mov r13d, eax
test r13d, r13d
jne 0x42665f
lea eax, [r13 + 1]
jmp 0x426661
xor eax, eax
mov rcx, qword [rsp + 0x1e0]
call fcn.0045d640
mov rbx, qword [rsp + 0x210]
mov rbp, qword [rsp + 0x218]
mov rsi, qword [rsp + 0x220]
mov rdi, qword [rsp + 0x228]
mov r12, qword [rsp + 0x200]
mov r13, qword [rsp + 0x1f8]
add rsp, 0x208
ret
Function at 0x42b480
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
mov r11, rsp
sub rsp, 0x38
mov rax, qword [rcx + 0x1c8]
mov qword [r11 - 8], r12
mov r12, rcx
test byte [rax + 0x10], 1
je 0x42b5ad
mov qword [r11 - 0x10], r13
xor r13d, r13d
cmp dword [rcx + 0xa4], r13d
jbe 0x42b5a8
mov qword [r11 - 0x18], r14
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
nop
nop
nop
mov rax, qword [r12 + 0xb0]
mov edx, dword [r12 + 0xc0]
lea rcx, [r12 + 0xb0]
call qword [rax + 8]
mov esi, dword [r12 + 0x2f8]
mov edi, dword [r12 + 0x2f0]
mov ebp, r13d
and esi, 0xfffd
add rbp, qword [r12 + 0xb8]
or esi, 2
movzx ebx, byte [rbp]
call fcn.00432df0
xor bl, dil
shr edi, 8
movzx ecx, bl
mov ebx, dword [r12 + 0x2f8]
mov eax, dword [rax + rcx*4]
xor eax, edi
movzx edi, al
mov dword [r12 + 0x2f0], eax
add edi, dword [r12 + 0x2f4]
imul edi, edi, 0x8088405
inc edi
mov dword [r12 + 0x2f4], edi
shr edi, 0x18
call fcn.00432df0
xor dil, bl
shr ebx, 8
inc r13d
movzx ecx, dil
mov eax, dword [rax + rcx*4]
xor eax, ebx
mov dword [r12 + 0x2f8], eax
mov eax, esi
xor eax, 1
imul eax, esi
sar eax, 8
xor byte [rbp], al
cmp r13d, dword [r12 + 0xa4]
jb 0x42b4d0
mov r14, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov r13, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
add rsp, 0x38
ret

Function at 0x42b630
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
sub rsp, 0x38
mov rax, qword [rcx + 0x1c8]
mov qword [rsp + 0x50], rsi
mov rsi, rcx
test byte [rax + 0x10], 1
je 0x42b732
test edx, edx
je 0x42b732
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x40], rbx
xor ebp, ebp
mov r13d, edx
mov qword [rsp + 0x58], rdi
mov rax, qword [rsi + 0xb0]
mov edx, dword [rsi + 0xc0]
lea rcx, [rsi + 0xb0]
call qword [rax + 8]
mov ecx, dword [rsi + 0x2f8]
mov r11, qword [rsi + 0xb8]
and ecx, 0xfffd
or ecx, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
sar eax, 8
xor byte [r11 + rbp], al
movzx ebx, byte [r11 + rbp]
mov edi, dword [rsi + 0x2f0]
call fcn.00432df0
xor bl, dil
shr edi, 8
movzx ecx, bl
mov ebx, dword [rsi + 0x2f8]
mov eax, dword [rax + rcx*4]
xor eax, edi
movzx edi, al
mov dword [rsi + 0x2f0], eax
add edi, dword [rsi + 0x2f4]
imul edi, edi, 0x8088405
inc edi
mov dword [rsi + 0x2f4], edi
shr edi, 0x18
call fcn.00432df0
xor dil, bl
shr ebx, 8
inc rbp
movzx ecx, dil
mov eax, dword [rax + rcx*4]
xor eax, ebx
dec r13
mov dword [rsi + 0x2f8], eax
jne 0x42b673
mov r13, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x38
ret
Function at 0x42b740
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
sub rsp, 0xf8
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov qword [rax - 8], rsi
mov qword [rax - 0x10], rdi
mov rax, qword [0x004792e8]
mov qword [rsp + 0xd0], rax
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov dword [rsp + 0x20], 0
cmp byte [rcx + 0x88], 0
jne 0x42b899
lea rax, [0x004607a0]
mov qword [rsp + 0x30], rax
mov eax, dword [r8 + 8]
mov dword [rsp + 0x38], eax
movzx eax, word [r8 + 0xc]
mov word [rsp + 0x3c], ax
movzx eax, word [r8 + 0xe]
mov word [rsp + 0x3e], ax
movzx eax, word [r8 + 0x10]
mov word [rsp + 0x40], ax
movzx eax, word [r8 + 0x12]
mov word [rsp + 0x42], ax
movzx eax, word [r8 + 0x14]
mov word [rsp + 0x44], ax
movzx eax, word [r8 + 0x16]
mov word [rsp + 0x46], ax
mov eax, dword [r8 + 0x18]
mov dword [rsp + 0x48], eax
mov eax, dword [r8 + 0x1c]
mov dword [rsp + 0x4c], eax
mov eax, dword [r8 + 0x20]
mov dword [rsp + 0x50], eax
movzx eax, word [r8 + 0x24]
mov word [rsp + 0x54], ax
movzx eax, word [r8 + 0x26]
mov word [rsp + 0x56], ax
mov eax, dword [r8 + 0x28]
mov dword [rsp + 0x58], eax
movzx eax, word [r8 + 0x2c]
mov word [rsp + 0x5c], ax
movzx eax, word [r8 + 0x2e]
mov word [rsp + 0x5e], ax
mov eax, dword [r8 + 0x30]
mov dword [rsp + 0x60], eax
lea rdx, [r8 + 0x38]
lea rcx, [rsp + 0x68]
call fcn.00429250
nop
lea rdx, [rdi + 0x58]
lea rcx, [rsp + 0x88]
call fcn.00429250
nop
lea rdx, [rdi + 0x78]
lea rcx, [rsp + 0xa8]
call fcn.00429250
nop
cmp byte [rsi + 0x88], 0
jne 0x42b87c
movzx r8d, byte [rsi + 0x89]
mov dl, 1
lea rcx, [rsp + 0x30]
call fcn.0042f760
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.0042ac50
nop
lea rcx, [rsp + 0x30]
call fcn.00429460
mov rax, rbx
jmp 0x42b8a4
mov rcx, r8
call fcn.0042ac50
mov rax, rbx
mov rcx, qword [rsp + 0xd0]
call fcn.0045d640
mov rbx, qword [rsp + 0x118]
mov rsi, qword [rsp + 0xf0]
mov rdi, qword [rsp + 0xe8]
add rsp, 0xf8
ret

Function at 0x42bba0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x38], rbp
xor ebp, ebp
mov qword [rsp + 0x40], rsi
cmp dword [rcx + 0x2e0], ebp
mov rsi, rcx
mov dword [rcx + 0x2f0], 0x12345678
mov dword [rcx + 0x2f4], 0x23456789
mov dword [rcx + 0x2f8], 0x34567890
jbe 0x42bc89
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x48], rdi
nop
mov rax, qword [rsi + 0x2d0]
mov edx, dword [rsi + 0x2e0]
lea rcx, [rsi + 0x2d0]
call qword [rax + 8]
mov rax, qword [rsi + 0x2d8]
mov edi, dword [rsi + 0x2f0]
movzx ebx, byte [rbp + rax]
call fcn.00432df0
xor bl, dil
shr edi, 8
movzx ecx, bl
mov ebx, dword [rsi + 0x2f8]
mov eax, dword [rax + rcx*4]
xor eax, edi
movzx edi, al
mov dword [rsi + 0x2f0], eax
add edi, dword [rsi + 0x2f4]
imul edi, edi, 0x8088405
inc edi
mov dword [rsi + 0x2f4], edi
shr edi, 0x18
call fcn.00432df0
xor dil, bl
shr ebx, 8
inc ebp
movzx ecx, dil
mov eax, dword [rax + rcx*4]
xor eax, ebx
mov dword [rsi + 0x2f8], eax
cmp ebp, dword [rsi + 0x2e0]
jb 0x42bbf0
mov r12, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
add rsp, 0x28
ret
Function at 0x42bca0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x50], r12
mov rbp, rcx
xor r8d, r8d
lea edx, [r8 + 0xc]
lea rcx, [rsp + 0x28]
call fcn.00429140
nop
mov edx, dword [rsp + 0x38]
lea rcx, [rsp + 0x28]
mov rax, qword [rsp + 0x28]
call qword [rax + 8]
lea rcx, [rbp + 0xd0]
xor r9d, r9d
lea r8d, [r9 + 0xc]
mov rdx, qword [rsp + 0x30]
call fcn.00432ca0
xor r12d, r12d
nop
nop
nop
mov edx, dword [rsp + 0x38]
lea rcx, [rsp + 0x28]
mov rax, qword [rsp + 0x28]
call qword [rax + 8]
mov r11d, dword [rbp + 0x2f8]
and r11d, 0xfffd
or r11d, 2
mov esi, r11d
xor esi, 1
imul esi, r11d
sar esi, 8
mov rax, qword [rsp + 0x30]
xor sil, byte [r12 + rax]
mov ebx, dword [rbp + 0x2f0]
call fcn.00432df0
movzx edx, sil
xor dl, bl
movzx ecx, dl
shr ebx, 8
mov eax, dword [rax + rcx*4]
xor eax, ebx
mov dword [rbp + 0x2f0], eax
movzx edi, al
add edi, dword [rbp + 0x2f4]
imul edi, edi, 0x8088405
inc edi
mov dword [rbp + 0x2f4], edi
shr edi, 0x18
mov ebx, dword [rbp + 0x2f8]
call fcn.00432df0
xor dil, bl
movzx ecx, dil
shr ebx, 8
mov eax, dword [rax + rcx*4]
xor eax, ebx
mov dword [rbp + 0x2f8], eax
inc r12
cmp r12, 0xc
jl 0x42bd10
mov rcx, qword [rbp + 0x1c8]
movzx eax, byte [rcx + 0x10]
shr al, 3
test al, 1
je 0x42bdcd
cmp byte [rcx + 0x15], sil
sete bl
jmp 0x42bdd4
cmp byte [rcx + 0x1b], sil
sete bl
lea rcx, [rsp + 0x28]
call fcn.00428f00
mov al, bl
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
mov r12, qword [rsp + 0x50]
add rsp, 0x58
ret

Function at 0x42f8e0
Capabilities:
Set file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x42fab0
Capabilities:
Get disk size

Disassembly:
push rbx
sub rsp, 0x110
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rdx, rcx
lea rcx, [rsp + 0x60]
call fcn.0042c330
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.0042f9a0
nop
mov edx, dword [rsp + 0x40]
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 8]
lea r11, [rsp + 0x50]
mov qword [rsp + 0x20], r11
lea r9, [rsp + 0x138]
lea r8, [rsp + 0x130]
lea rdx, [rsp + 0x128]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x42fc2f
mov edx, dword [rsp + 0x40]
test edx, edx
jle 0x42fb60
mov r9, qword [rsp + 0x38]
movsxd rax, edx
movzx r8d, byte [rax + r9 - 1]
mov al, 0x5c
lea rcx, [0x004603b0]
cmp al, r8b
je 0x42fb56
inc rcx
movzx eax, byte [rcx]
test al, al
je 0x42fb60
jmp 0x42fb45
dec edx
mov dword [rsp + 0x40], edx
test edx, edx
jg 0x42fb33
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 8]
movsxd rbx, dword [rsp + 0x40]
lea edx, [rbx + 1]
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 8]
cmp ebx, ebx
jge 0x42fb9e
mov rdx, qword [rsp + 0x38]
add rdx, rbx
lea rcx, [rdx + 1]
mov eax, ebx
sub eax, ebx
movsxd r8, eax
call fcn.00446c20
mov rax, rbx
add rax, qword [rsp + 0x38]
mov byte [rax], 0x5c
mov edx, dword [rsp + 0x40]
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 8]
lea r11, [rsp + 0x50]
mov qword [rsp + 0x20], r11
lea r9, [rsp + 0x138]
lea r8, [rsp + 0x130]
lea rdx, [rsp + 0x128]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x42fc2f
lea rax, [0x0045e628]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x38]
xor eax, eax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x48], eax
test rcx, rcx
je 0x42fc15
call fcn.00446bf0
lea rax, [0x0045e600]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x60]
call fcn.00436570
xor eax, eax
jmp 0x42fc88
mov ebx, dword [rsp + 0x128]
imul ebx, dword [rsp + 0x130]
imul ebx, dword [rsp + 0x138]
lea rax, [0x0045e628]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x38]
xor eax, eax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x48], eax
test rcx, rcx
je 0x42fc70
call fcn.00446bf0
lea rax, [0x0045e600]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x60]
call fcn.00436570
mov eax, ebx
add rsp, 0x110
pop rbx
ret

Function at 0x42fce0
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x38], rbp
mov rbp, rcx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x40], rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
mov esi, eax
jne 0x42fd10
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
add rsp, 0x28
ret
mov rcx, rsi
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x48], rdi
call fcn.00448710
mov ecx, esi
mov bl, 1
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x42fd3a
xor bl, bl
jmp 0x42fd45
mov rdx, rdi
mov rcx, rbp
call fcn.0041b430
mov rcx, rdi
call fcn.00446be0
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov al, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
Function at 0x42fd70
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x100
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.0042c330
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.0042f9a0
mov rbx, rax
mov r8, qword [rax]
mov edx, dword [rax + 0x10]
mov rcx, rax
call qword [r8 + 8]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
sete bl
lea rax, [0x0045e628]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x28]
xor eax, eax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x38], eax
test rcx, rcx
je 0x42fde9
call fcn.00446bf0
lea rax, [0x0045e600]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x50]
call fcn.00436570
mov al, bl
add rsp, 0x100
pop rbx
ret

Function at 0x42ffe0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
mov rdi, rcx
movzx ebx, dl
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x43001f
test bl, bl
je 0x43000e
lea ecx, [rax + 0x71]
mov rdx, rdi
call fcn.00428af0
int3
xor al, al
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
ret
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov al, 1
add rsp, 0x28
ret

Function at 0x430030
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
mov rdi, rcx
movzx ebx, r8b
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x430070
test bl, bl
je 0x43005f
lea ecx, [rax + 0x72]
mov rdx, rdi
call fcn.00428af0
int3
xor al, al
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
ret
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov al, 1
add rsp, 0x28
ret