joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005c860
Capabilities:
Create new key via cryptacquirecontext
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov dword [rsp + 0x20], 0xf0000040
xor edi, edi
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14005c8c8
lea rax, [rsi + 8]
mov rcx, qword [rsi]
mov qword [rsp + 0x20], rax
mov edx, 0x8002
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov edi, 1
test eax, eax
jne 0x14005c8c8
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov qword [rsi], 0
xor edi, edi
mov eax, edi
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x14005d720
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
mov r11d, r8d
lea r9, [rcx + 0x10]
shr r11d, 2
mov edi, 1
mov eax, r11d
mov r10d, r11d
shr eax, 1
add eax, 3
mov dword [rcx], eax
test r11d, r11d
je 0x14005d771
mov rcx, r9
mov r8d, r10d
nop
mov eax, dword [rdx]
lea rdx, [rdx + 4]
mov dword [rcx], eax
lea rcx, [rcx + 4]
sub r8, rdi
jne 0x14005d760
xor r10d, r10d
lea rsi, [r11 + 0xe]
lea rbx, [r11*4]
mov eax, dword [rbx + r9 - 4]
lea rsi, [r11 + rsi*2]
lea rsi, [r9 + rsi*4]
lea r14d, [r10 + 0x1b]
lea rbp, [0x1408b1b40]
test r10d, r10d
jne 0x14005d7ec
mov r8d, eax
mov r10d, r11d
movzx eax, al
mov ecx, r8d
shr rcx, 0x18
movzx eax, byte [rax + rbp]
movzx ecx, byte [rcx + rbp]
shl eax, 8
or eax, ecx
mov ecx, r8d
shr rcx, 0x10
shl eax, 8
movzx edx, cl
shr r8, 8
movzx ecx, byte [rdx + rbp]
or eax, ecx
movzx ecx, r8b
shl eax, 8
movzx edx, byte [rcx + rbp]
xor edx, edi
add edi, edi
or eax, edx
bt edi, 8
cmovb edi, r14d
jmp 0x14005d836
cmp r10d, 4
jne 0x14005d836
cmp r11d, 6
jbe 0x14005d836
mov r8d, eax
shr rax, 0x10
movzx ecx, al
movzx eax, byte [rcx + rbp]
mov ecx, r8d
shr rcx, 0x18
movzx ecx, byte [rcx + rbp]
shl ecx, 8
or eax, ecx
mov ecx, r8d
shr rcx, 8
movzx edx, cl
shl eax, 8
movzx ecx, byte [rdx + rbp]
or eax, ecx
movzx ecx, r8b
shl eax, 8
movzx edx, byte [rcx + rbp]
or eax, edx
xor eax, dword [r9]
dec r10d
mov dword [rbx + r9], eax
add r9, 4
cmp r9, rsi
jne 0x14005d798
mov rbx, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
pop r14
ret
Function at 0x14005ebe0
Capabilities:
Check os version
Get common file path

Disassembly:
sub rsp, 0x318
mov rax, qword [0x140a480a8]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x14005ec36
lea rcx, [0x1408b1cf8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.SetDefaultDllDirectories
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14005ec36
mov ecx, 0xc00
call rax
test eax, eax
jne 0x14005ed4e
mov edx, 0x106
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [rax - 1]
cmp ecx, 0x103
ja 0x14005ed4e
lea ecx, [rax - 1]
mov qword [rsp + 0x320], rbx
cmp word [rsp + rcx*2 + 0x20], 0x5c
je 0x14005ec76
mov ecx, eax
mov edx, 0x5c
inc eax
mov word [rsp + rcx*2 + 0x20], dx
movzx edx, byte [str.userenv]
lea rbx, str.userenv
test dl, dl
je 0x14005ed46
mov qword [rsp + 0x328], rbp
mov qword [rsp + 0x330], rsi
mov qword [rsp + 0x310], rdi
lea rdi, [rsp + 0x20]
mov eax, eax
mov qword [rsp + 0x308], r14
mov qword [rsp + 0x300], r15
xor r15d, r15d
lea rdi, [rdi + rax*2]
nop dword [rax]
nop word [rax + rax]
mov rcx, rdi
inc rbx
nop word [rax + rax]
movzx eax, dl
movzx edx, byte [rbx]
inc rbx
mov word [rcx], ax
lea rcx, [rcx + 2]
test dl, dl
jne 0x14005ece0
xor edx, edx
mov dword [rcx], 0x64002e
mov dword [rcx + 4], 0x6c006c
mov word [rcx + 8], r15w
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
movzx edx, byte [rbx]
test dl, dl
jne 0x14005ecd0
mov r15, qword [rsp + 0x300]
mov r14, qword [rsp + 0x308]
mov rdi, qword [rsp + 0x310]
mov rsi, qword [rsp + 0x330]
mov rbp, qword [rsp + 0x328]
mov rbx, qword [rsp + 0x320]
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.14087bc90
add rsp, 0x318
ret
Function at 0x140066860
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov eax, dword [rcx + 8]
mov rdi, rdx
and eax, 0x3f
mov rbx, rcx
mov byte [rax + rcx + 0x40], 0x80
inc eax
cmp eax, 0x38
jbe 0x1400668b7
cmp eax, 0x40
je 0x14006689d
mov byte [rax + rcx + 0x40], 0
inc eax
cmp eax, 0x40
jne 0x140066891
lea rbp, [rcx + 0x40]
mov r8d, 1
lea rsi, [rcx + 0x20]
mov rdx, rbp
mov rcx, rsi
call qword [rbx]
xor eax, eax
jmp 0x1400668bf
lea rbp, [rcx + 0x40]
lea rsi, [rcx + 0x20]
mov ecx, eax
mov r8d, gethostname
add rcx, 0x40
sub r8d, eax
add rcx, rbx
xor edx, edx
call fcn.14087f2b0
mov rcx, qword [rbx + 8]
mov r8d, 1
shl rcx, 3
mov rdx, rbp
mov rax, rcx
bswap ecx
shr rax, 0x20
bswap eax
mov dword [rbx + 0x7c], ecx
mov rcx, rsi
mov dword [rbx + 0x78], eax
call qword [rbx]
mov rdx, rsi
mov r8d, 4
nop dword [rax + rax]
mov ecx, dword [rdx + 4]
lea rdi, [rdi + 8]
mov eax, dword [rdx]
lea rdx, [rdx + 8]
bswap eax
mov dword [rdi - 8], eax
bswap ecx
mov dword [rdi - 4], ecx
sub r8, 1
jne 0x140066910
mov rbp, qword [rsp + 0x38]
mov qword [rbx + 8], r8
mov dword [rsi], 0x6a09e667
mov rsi, qword [rsp + 0x40]
mov dword [rbx + 0x24], 0xbb67ae85
mov dword [rbx + 0x28], 0x3c6ef372
mov dword [rbx + 0x2c], 0xa54ff53a
mov dword [rbx + 0x30], 0x510e527f
mov dword [rbx + 0x34], 0x9b05688c
mov dword [rbx + 0x38], 0x1f83d9ab
mov dword [rbx + 0x3c], 0x5be0cd19
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400671c0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x40]
mov r9, r8
mov r8, rdx
mov qword [rsp + 0x28], rax
mov rbx, rcx
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call fcn.1408849b4
mov qword [rbx], rax
test rax, rax
je 0x1400671fa
xor eax, eax
add rsp, 0x30
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov eax, ecx
add rsp, 0x30
pop rbx
ret
Function at 0x14006a600
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, rdx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x14006a619
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbx
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x14006a63e
xor bl, bl
call qword [sym.imp.USER32.dll_CloseClipboard]
movzx eax, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ebx, dword [rdi + 8]
lea rcx, [rsp + 0x40]
inc ebx
mov qword [rsp + 0x38], rsi
mov rsi, qword [rdi]
add rbx, rbx
mov r8, rbx
mov qword [rsp + 0x40], 0
mov edx, 0x2002
call fcn.14006da20
test al, al
jne 0x14006a671
xor bl, bl
jmp 0x14006a6bb
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x14006a66d
mov r8, rbx
mov rdx, rsi
mov rcx, rax
call fcn.14087ec10
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, qword [rsp + 0x40]
mov ecx, reloc.WS2_32.dll_listen
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x14006a66d
mov qword [rsp + 0x40], 0
mov bl, 1
lea rcx, [rsp + 0x40]
call fcn.14006da50
mov rsi, qword [rsp + 0x38]
call qword [sym.imp.USER32.dll_CloseClipboard]
movzx eax, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14006b2e0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rbx, rcx
call fcn.14006c270
cmp eax, 0xffffffff
je 0x14006b317
test al, 0x10
je 0x14006b317
mov al, 1
jmp 0x14006b4a7
mov rcx, rbx
call fcn.14006d6c0
test al, al
je 0x14006b32a
xor al, al
jmp 0x14006b4a7
mov rcx, rbx
call fcn.14006d2d0
mov esi, eax
mov rdx, rbx
lea rcx, [rbp - 0x60]
call fcn.140067f20
nop
lea rcx, [rbp - 0x60]
call fcn.140068fe0
xor r14d, r14d
test eax, eax
js 0x14006b377
mov edx, dword [rbp - 0x58]
lea ecx, [rdx - 1]
cmp eax, ecx
jne 0x14006b377
cmp edx, 1
jne 0x14006b368
movzx ebx, dl
jmp 0x14006b49b
mov dword [rbp - 0x58], ecx
add rcx, rcx
mov rax, qword [rbp - 0x60]
mov word [rcx + rax], r14w
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x50]
call fcn.140067cc0
nop
mov ebx, dword [rbp - 0x58]
mov rdi, qword [rbp - 0x60]
nop dword [rax]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14006b449
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14006b3f6
lea rcx, [rbp - 0x40]
call fcn.14006b940
lea rcx, [rbp - 0x18]
call fcn.140067fa0
nop
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x40]
call fcn.14006bbd0
test al, al
jne 0x14006b3e1
mov rcx, qword [rbp - 0x18]
call fcn.14087be8c
jmp 0x14006b3f6
mov edi, dword [rbp - 0x20]
shr edi, 4
mov rcx, qword [rbp - 0x18]
call fcn.14087be8c
test dil, 1
jne 0x14006b449
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14006b48b
lea rcx, [rbp - 0x60]
call fcn.140068fe0
mov ebx, eax
cmp eax, 1
jl 0x14006b48b
mov rdi, qword [rbp - 0x60]
jne 0x14006b42c
movzx eax, word [rdi]
cmp ax, 0x5c
je 0x14006b48b
cmp ax, 0x2f
je 0x14006b48b
lea eax, [rbx + 1]
cmp esi, eax
jae 0x14006b48b
cmp ebx, dword [rbp - 0x58]
jae 0x14006b390
mov dword [rbp - 0x58], ebx
mov word [rdi + rbx*2], r14w
jmp 0x14006b388
cmp ebx, dword [rbp - 0x48]
jge 0x14006b48f
lea ecx, [rbx + 1]
mov rax, qword [rbp - 0x50]
lea rcx, [rax + rcx*2]
call fcn.14006cf50
test eax, eax
jns 0x14006b467
mov ebx, dword [rbp - 0x48]
jmp 0x14006b46b
inc ebx
add ebx, eax
mov r8d, ebx
mov rdx, qword [rbp - 0x50]
lea rcx, [rbp - 0x60]
call fcn.140069020
xor edx, edx
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14006b449
xor bl, bl
jmp 0x14006b491
mov bl, 1
mov rcx, qword [rbp - 0x50]
call fcn.14087be8c
nop
mov rcx, qword [rbp - 0x60]
call fcn.14087be8c
movzx eax, bl
lea r11, [rsp + 0x80]
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 0x14006b4d0
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x14006b4f0
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.14006c270
cmp eax, 0xffffffff
je 0x14006b523
test al, 0x10
jne 0x14006b523
test al, 1
je 0x14006b523
and eax, 0xfffffffe
mov rcx, rbx
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x14006b523
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
add rsp, 0x20
pop rbx
ret

Function at 0x14006b540
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x140a480a8]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rsi, rcx
xor ebx, ebx
mov dword [rcx + 8], ebx
mov rax, qword [rcx]
mov word [rax], bx
mov word [rsp + 0x30], bx
lea rdx, [rsp + 0x30]
mov ecx, 0x114
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
je 0x14006b632
cmp edi, 0x114
jae 0x14006b5b5
mov word [rsp + 0x258], bx
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140068210
mov al, 1
jmp 0x14006b634
lea rcx, [rsp + 0x20]
call fcn.140067fa0
nop
cmp edi, dword [rsp + 0x2c]
jbe 0x14006b5d2
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.140068c50
mov rdx, qword [rsp + 0x20]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, eax
test eax, eax
je 0x14006b628
mov rcx, qword [rsp + 0x20]
mov word [rcx + rdi*2], bx
cmp word [rcx], 0
je 0x14006b5fd
inc ebx
cmp word [rcx + rbx*2], 0
jne 0x14006b5f4
mov dword [rsp + 0x28], ebx
cmp ebx, edx
jne 0x14006b628
lea eax, [rdi - 1]
cmp eax, edx
jne 0x14006b628
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140067fe0
nop
mov rcx, qword [rsp + 0x20]
call fcn.14087be8c
mov al, 1
jmp 0x14006b634
mov rcx, qword [rsp + 0x20]
call fcn.14087be8c
xor al, al
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14087bc90
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14006b7a0
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x14006b7c0
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x14006b870
Capabilities:
Set file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x14006b890
Capabilities:
Set file attributes

Disassembly:
sub rsp, 0x28
mov r8d, edx
and edx, 0x3fff
test r8d, 0xf0000000
cmove edx, r8d
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x14006c270
Capabilities:
Get file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
add rsp, 0x28
ret

Function at 0x14006c2d0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov rdi, rcx
mov ebx, dword [rcx + 8]
test ebx, ebx
je 0x14006c32b
mov r14d, ebx
shl r14, 3
nop word [rax + rax]
dec ebx
lea r14, [r14 - 8]
mov rax, qword [rdi]
mov rsi, qword [r14 + rax]
test rsi, rsi
je 0x14006c327
mov rcx, qword [rsi]
call fcn.14087be8c
mov edx, reloc.WS2_32.dll_recv
mov rcx, rsi
call fcn.14087be8c
test ebx, ebx
jne 0x14006c300
mov dword [rdi + 8], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov esi, eax
test eax, eax
je 0x14006c4ad
mov qword [rsp + 0x68], 0
mov eax, 2
mul rsi
mov r14, 0xffffffffffffffff
cmovo rax, r14
mov rcx, rax
call fcn.1400e1910
mov rbx, rax
mov qword [rsp + 0x68], rax
mov rdx, rax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov r15d, eax
test eax, eax
je 0x14006c49e
cmp eax, esi
ja 0x14006c49e
lea rcx, [rsp + 0x20]
call fcn.140067fa0
nop
xor r12d, r12d
xor esi, esi
test r15d, r15d
je 0x14006c48b
nop dword [rax]
lea ebp, [rsi + 1]
mov eax, esi
cmp word [rbx + rax*2], 0
jne 0x14006c480
mov eax, r12d
lea rdx, [rbx + rax*2]
lea rcx, [rsp + 0x20]
call fcn.140068210
mov esi, ebp
mov r12d, ebp
mov ecx, dword [rdi + 0xc]
cmp dword [rdi + 8], ecx
jne 0x14006c446
cmp ecx, 0x7fffffff
jae 0x14006c4c4
mov ebp, 0x7fffffff
sub ebp, ecx
mov eax, ecx
shr eax, 2
inc eax
cmp eax, ebp
cmovbe ebp, eax
add ebp, ecx
mov ecx, ebp
mov eax, 8
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.1400e1910
mov r14, rax
mov eax, dword [rdi + 8]
test eax, eax
je 0x14006c431
mov r8d, eax
shl r8, 3
mov rdx, qword [rdi]
mov rcx, r14
call fcn.14087ec10
mov rcx, qword [rdi]
call fcn.14087be8c
mov qword [rdi], r14
mov dword [rdi + 0xc], ebp
mov r14, 0xffffffffffffffff
mov ecx, reloc.WS2_32.dll_recv
call fcn.14087be50
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14006c46c
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.140067cc0
mov rdx, rax
jmp 0x14006c46e
xor edx, edx
mov ecx, dword [rdi + 8]
lea eax, [rcx + 1]
mov dword [rdi + 8], eax
mov rax, qword [rdi]
mov qword [rax + rcx*8], rdx
jmp 0x14006c482
mov esi, ebp
cmp esi, r15d
jb 0x14006c3b0
cmp r12d, r15d
sete dil
mov rcx, qword [rsp + 0x20]
call fcn.14087be8c
jmp 0x14006c4a1
xor dil, dil
mov rcx, rbx
call fcn.14087be8c
movzx eax, dil
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov dword [rsp + 0x60], 0x7e5
lea rdx, [0x140a455e0]
lea rcx, [rsp + 0x60]
call fcn.14087f994
int3
Function at 0x14006c770
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [rcx]
mov rdi, rdx
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14006c7b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14006c7b1
xor al, al
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov ecx, dword [rsp + 0x30]
mov al, 1
shl rcx, 0x20
add rcx, rbx
mov rbx, qword [rsp + 0x38]
mov qword [rdi], rcx
add rsp, 0x20
pop rdi
ret

Function at 0x14006ca60
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
mov eax, r8d
mov rbx, r9
mov r8d, 0x400000
xor r9d, r9d
cmp eax, r8d
mov dword [rsp + 0x50], r9d
mov qword [rsp + 0x20], r9
lea r9, [rsp + 0x50]
cmovbe r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x50]
test eax, eax
mov dword [rbx], ecx
setne al
add rsp, 0x30
pop rbx
ret

Function at 0x14006ce50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor ebp, ebp
mov rsi, r9
mov dword [r9], ebp
mov ebx, r8d
mov rdi, rdx
mov r14, rcx
mov r15d, 0x400000
nop
mov rcx, qword [r14]
lea r9, [rsp + 0x60]
mov r8d, ebx
mov dword [rsp + 0x60], ebp
cmp ebx, r15d
mov qword [rsp + 0x20], rbp
mov rdx, rdi
cmova r8d, r15d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [rsp + 0x60]
add dword [rsi], ecx
test eax, eax
je 0x14006cebd
test ecx, ecx
je 0x14006ceb9
add rdi, rcx
sub ebx, ecx
jne 0x14006ce80
mov al, 1
jmp 0x14006cebf
xor al, al
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x14006e6c0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x78
mov rax, qword [0x140a480a8]
xor rax, rsp
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
test eax, eax
je 0x14006e789
mov r9, qword [rsp + 0x50]
test r9, r9
je 0x14006e789
xor eax, eax
mov qword [rsp + 0x70], rbx
mov r10d, eax
mov r11d, eax
mov ebx, eax
mov r8d, 2
nop word [rax + rax]
lea ecx, [r8 - 2]
mov rdx, r9
shr rdx, cl
lea ecx, [r8 - 1]
and edx, 1
add eax, edx
mov rdx, r9
shr rdx, cl
mov ecx, r8d
and edx, 1
add ebx, edx
mov rdx, r9
shr rdx, cl
lea ecx, [r8 + 1]
and edx, 1
add r8d, 4
add r11d, edx
mov rdx, r9
shr rdx, cl
and edx, 1
add r10d, edx
lea ecx, [r8 - 2]
cmp ecx, 0x40
jb 0x14006e720
lea ecx, [r10 + r11]
add ecx, ebx
mov rbx, qword [rsp + 0x70]
add eax, ecx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14087bc90
add rsp, 0x78
ret
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14087bc90
add rsp, 0x78
ret
Function at 0x14006e7b0
Capabilities:
Get memory capacity

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x140a480a8]
xor rax, rsp
mov qword [rsp + 0x60], rax
movabs rax, 0x100000000
mov dword [rsp + 0x20], 0x40
mov qword [rcx], rax
mov rbx, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
jne 0x14006e7ff
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14087bc90
add rsp, 0x70
pop rbx
ret
mov rcx, qword [rsp + 0x28]
mov al, 1
cmp qword [rsp + 0x48], rcx
cmovb rcx, qword [rsp + 0x48]
mov qword [rbx], rcx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14087bc90
add rsp, 0x70
pop rbx
ret

Function at 0x14006e840
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rax, qword [rdx]
xor ebx, ebx
mov dword [rdx + 8], ebx
mov r14, rcx
mov rsi, rdx
mov word [rax], bx
mov rcx, qword [rcx]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
test eax, eax
jne 0x14006e882
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
jmp 0x14006e8c4
cmp edi, dword [rsi + 0xc]
jbe 0x14006e891
mov edx, edi
mov rcx, rsi
call fcn.140068c50
mov rdx, qword [rsi]
lea r8d, [rdi + 1]
mov rcx, qword [r14]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rsi]
cmp edi, eax
cmova edi, eax
mov word [rcx + rdi*2], bx
cmp word [rcx], bx
je 0x14006e8bb
inc ebx
cmp word [rcx + rbx*2], 0
jne 0x14006e8b2
mov dword [rsi + 8], ebx
test edi, edi
je 0x14006e875
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140072cb0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov rdi, rcx
mov ebp, edx
mov rcx, r8
mov rsi, r8
call fcn.14006dd60
mov rbx, qword [rdi + 0x158]
test rbx, rbx
je 0x140072e7b
cmp qword [rdi + 0x148], 0
je 0x140072e7b
mov r14, qword [rbx + rbp*8]
lea eax, [rbp + 1]
mov rbx, qword [rbx + rax*8]
sub rbx, r14
cmp rbx, 0x4000
jae 0x140072e7b
lea edx, [rbx - 1]
mov rcx, rsi
call fcn.14006dd20
test eax, eax
jne 0x140072e7d
mov rax, qword [rdi + 0x148]
xor r8d, r8d
mov rdx, qword [rsi + 8]
lea rcx, [rax + r14*2]
test rbx, rbx
je 0x140072e39
cmp rbx, 0x10
jb 0x140072e3e
lea rax, [rcx - 2]
lea rax, [rax + rbx*2]
lea r9, [rdx - 2]
lea r9, [r9 + rbx*2]
cmp rdx, rax
ja 0x140072d69
cmp r9, rcx
jae 0x140072e3e
mov rax, rbx
movaps xmmword [rsp + 0x30], xmm6
and rax, 0xfffffffffffffff0
movaps xmmword [rsp + 0x20], xmm7
movdqa xmm5, xmmword [str._________]
movdqa xmm6, xmmword [0x1408b21b0]
movdqa xmm4, xmmword [0x1408b2190]
movdqa xmm7, xmmword [0x1408b21a0]
nop word [rax + rax]
movdqu xmm0, xmmword [rcx]
add r8, 0x10
movdqa xmm3, xmm5
pcmpeqw xmm3, xmm0
movdqa xmm2, xmm3
andnps xmm2, xmm0
movdqa xmm0, xmm3
andps xmm0, xmm4
xorps xmm3, xmm6
orps xmm2, xmm0
movdqa xmm1, xmm2
pcmpeqw xmm1, xmm4
andps xmm1, xmm3
movdqa xmm3, xmm5
movdqa xmm0, xmm1
andps xmm1, xmm7
andnps xmm0, xmm2
orps xmm0, xmm1
movdqu xmmword [rdx], xmm0
movdqu xmm0, xmmword [rcx + 0x10]
add rcx, 0x20
pcmpeqw xmm3, xmm0
movdqa xmm2, xmm3
andnps xmm2, xmm0
movdqa xmm0, xmm3
andps xmm0, xmm4
xorps xmm3, xmm6
orps xmm2, xmm0
movdqa xmm1, xmm2
pcmpeqw xmm1, xmm4
andps xmm1, xmm3
movdqa xmm0, xmm1
andps xmm1, xmm7
andnps xmm0, xmm2
orps xmm0, xmm1
movdqu xmmword [rdx + 0x10], xmm0
add rdx, 0x20
cmp r8, rax
jb 0x140072da0
movaps xmm7, xmmword [rsp + 0x20]
movaps xmm6, xmmword [rsp + 0x30]
cmp r8, rbx
jae 0x140072e7b
sub rbx, r8
mov r8d, 0xf05c
nop word [rax + rax]
movzx eax, word [rcx]
lea rcx, [rcx + 2]
cmp ax, 0x2f
jne 0x140072e64
mov eax, 0x5c
jmp 0x140072e6e
cmp ax, 0x5c
jne 0x140072e6e
movzx eax, r8w
mov word [rdx], ax
add rdx, 2
sub rbx, 1
jne 0x140072e50
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret