joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003e20
Capabilities:
Check os version
Get common file path

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x300
mov rax, qword [0x140516758]
xor rax, rsp
mov qword [rsp + 0x2f8], rax
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x140003e7d
lea rcx, [0x1404f9b20]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.SetDefaultDllDirectories
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140003e7d
mov ecx, 0xc00
call rax
test eax, eax
jne 0x140003f22
lea rcx, [rsp + 0x20]
mov edx, 0x106
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [rax - 0x105]
cmp ecx, 0xfffffefc
jb 0x140003f22
lea ecx, [rax - 1]
cmp word [rsp + rcx*2 + 0x20], 0x5c
je 0x140003eb5
mov ecx, eax
inc eax
mov word [rsp + rcx*2 + 0x20], 0x5c
mov eax, eax
lea rdi, [rsp + rax*2]
add rdi, 0x20
lea rbx, str.userenv
mov al, reloc.WLDAP32.dll_Ordinal_117
movabs r14, 0x6c006c0064002e
lea rsi, [rsp + 0x20]
mov r15, qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
nop
inc rbx
mov rcx, rdi
nop word cs:[rax + rax]
movzx eax, al
mov word [rcx], ax
add rcx, 2
movzx eax, byte [rbx]
inc rbx
test al, al
jne 0x140003ef0
mov qword [rcx], r14
mov word [rcx + 8], 0
mov rcx, rsi
xor edx, edx
mov r8d, 8
call r15
movzx eax, byte [rbx]
test al, al
jne 0x140003ee0
mov rcx, qword [rsp + 0x2f8]
xor rcx, rsp
call fcn.14049f400
nop
add rsp, 0x300
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14000a7c0
Capabilities:
Encrypt data using rc4 ksa
Resolve function by parsing pe exports

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov rax, qword [0x140516758]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rdx, qword [rcx]
mov rcx, qword [rcx + 0x10]
movzx eax, byte [rcx + 1]
add word [rdx + 2], 4
lea edx, [rax + 4]
mov byte [rcx + 1], dl
movzx r8d, byte [rcx - 5]
cmp edx, r8d
jbe 0x14000a843
lea rdx, [rcx - 6]
movzx r8d, word [rcx + 4]
mov word [rsp + 0x24], r8w
mov r8d, dword [rcx]
mov dword [rsp + 0x20], r8d
mov r8d, dword [rcx - 6]
mov dword [rcx], r8d
movzx r8d, word [rcx - 2]
mov word [rcx + 4], r8w
mov r8d, dword [rsp + 0x20]
mov dword [rcx - 6], r8d
movzx r8d, word [rsp + 0x24]
mov word [rcx - 2], r8w
mov qword [rsi + 0x10], rdx
cmp al, 0x79
jb 0x14000a843
mov rcx, rsi
call fcn.14000a890
cmp dword [rsi + 0x18], 0
jne 0x14000a875
mov rax, qword [rsi + 0x10]
mov eax, dword [rax + 2]
add rax, qword [rsi + 0x40]
cmp rax, qword [rsi + 0x58]
jbe 0x14000a875
mov qword [rsi], rax
mov qword [rsi + 8], rax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14049f400
nop
add rsp, 0x30
pop rsi
ret
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14049f400
mov rcx, rsi
add rsp, 0x30
pop rsi
jmp fcn.140009fd0

Function at 0x14000abf0
Capabilities:
Encrypt data using rc4 ksa
Resolve function by parsing pe exports

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov rax, qword [rcx]
mov rcx, qword [rcx + 0x10]
movzx edx, byte [rcx + 1]
movzx r8d, word [rax + 2]
lea r9d, [rdx + rdx]
xor r10d, r10d
cmp r9d, r8d
seta r10b
add dword [rsi + 0x2c], r10d
add r8d, 4
lea r9d, [rdx + 4]
mov dword [rsi + 0x20], r10d
mov word [rax + 2], r8w
mov byte [rcx + 1], r9b
cmp edx, 0x79
jb 0x14000ac3c
mov rcx, rsi
call fcn.14000a890
cmp dword [rsi + 0x18], 0
jne 0x14000ac60
mov rax, qword [rsi + 0x10]
mov eax, dword [rax + 2]
add rax, qword [rsi + 0x40]
cmp rax, qword [rsi + 0x58]
jbe 0x14000ac60
mov qword [rsi], rax
mov qword [rsi + 8], rax
add rsp, 0x20
pop rsi
ret
mov rcx, rsi
add rsp, 0x20
pop rsi
jmp fcn.140009fd0

Function at 0x14000ac70
Capabilities:
Encrypt data using rc4 ksa
Resolve function by parsing pe exports

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov rax, qword [rcx]
mov rcx, qword [rcx + 0x10]
movzx edx, byte [rcx + 1]
mov r8d, dword [rsi + 0x30]
mov dword [rsi + 0x2c], r8d
add word [rax + 2], 4
lea eax, [rdx + 4]
mov byte [rcx + 1], al
cmp dl, 0x79
jb 0x14000aca3
mov rcx, rsi
call fcn.14000a890
mov rcx, rsi
add rsp, 0x20
pop rsi
jmp fcn.140009fd0
Function at 0x14000bd80
Capabilities:
Hash data using sha256

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov rdx, qword [rcx + 8]
and edx, 0x3f
lea rbx, [rcx + 0x40]
mov byte [rcx + rdx + 0x40], 0x80
lea rax, [rdx + 1]
cmp edx, 0x38
jb 0x14000beb8
cmp eax, 0x40
je 0x14000bea7
mov ecx, edx
xor ecx, 0x3f
cmp ecx, 8
jb 0x14000be32
cmp edx, 0x3f
je 0x14000be32
xor r8d, r8d
cmp ecx, 0x20
jb 0x14000bdec
mov r8d, ecx
and r8d, 0xffffffe0
xorps xmm0, xmm0
movups xmmword [rsi + rax + 0x40], xmm0
movups xmmword [rsi + rax + 0x50], xmm0
cmp ecx, r8d
je 0x14000bea7
test cl, 0x18
je 0x14000be2c
mov r9d, ecx
and r9d, 0xfffffff8
add eax, r9d
mov r10d, r8d
sub r10d, r9d
add edx, r8d
inc edx
nop word cs:[rax + rax]
mov r8d, edx
mov qword [rsi + r8 + 0x40], 0
add edx, 8
add r10d, 8
jne 0x14000be10
cmp ecx, r9d
jne 0x14000be32
jmp 0x14000bea7
add r8d, eax
mov eax, r8d
mov edx, eax
neg edx
mov ecx, eax
and edx, 7
je 0x14000be4c
mov ecx, eax
nop
mov byte [rsi + rcx + 0x40], 0
inc rcx
dec edx
jne 0x14000be40
add eax, 0xffffffc7
cmp eax, 7
jb 0x14000bea7
add ecx, 7
nop word [rax + rax]
lea eax, [rcx - 7]
lea edx, [rcx - 6]
mov byte [rsi + rax + 0x40], 0
lea eax, [rcx - 5]
mov byte [rsi + rdx + 0x40], 0
lea edx, [rcx - 4]
mov byte [rsi + rax + 0x40], 0
lea eax, [rcx - 3]
mov byte [rsi + rdx + 0x40], 0
lea edx, [rcx - 2]
mov byte [rsi + rax + 0x40], 0
lea eax, [rcx - 1]
mov byte [rsi + rdx + 0x40], 0
mov byte [rsi + rax + 0x40], 0
mov eax, ecx
mov byte [rsi + rax + 0x40], 0
add ecx, 8
cmp ecx, 0x47
jne 0x14000be60
lea rcx, [rsi + 0x20]
mov r8d, 1
mov rdx, rbx
call qword [rsi]
xor eax, eax
mov ecx, eax
add rcx, rsi
add rcx, 0x40
mov r8d, gethostname
sub r8d, eax
xor edx, edx
call fcn.1404a3cc0
mov rax, qword [rsi + 8]
mov rcx, rax
shr rcx, 0x1d
bswap ecx
mov dword [rsi + 0x78], ecx
shl eax, 3
bswap eax
mov dword [rsi + 0x7c], eax
lea rcx, [rsi + 0x20]
mov r8d, 1
mov rdx, rbx
call qword [rsi]
mov eax, dword [rsi + 0x20]
mov ecx, dword [rsi + 0x24]
bswap eax
mov dword [rdi], eax
bswap ecx
mov dword [rdi + 4], ecx
mov eax, dword [rsi + 0x28]
mov ecx, dword [rsi + 0x2c]
bswap eax
mov dword [rdi + 8], eax
bswap ecx
mov dword [rdi + 0xc], ecx
mov eax, dword [rsi + 0x30]
mov ecx, dword [rsi + 0x34]
bswap eax
mov dword [rdi + 0x10], eax
bswap ecx
mov dword [rdi + 0x14], ecx
mov eax, dword [rsi + 0x38]
mov ecx, dword [rsi + 0x3c]
bswap eax
mov dword [rdi + 0x18], eax
bswap ecx
mov dword [rdi + 0x1c], ecx
mov qword [rsi + 8], 0
movaps xmm0, xmmword [0x1404d2440]
movups xmmword [rsi + 0x20], xmm0
movaps xmm0, xmmword [0x1404d2450]
movups xmmword [rsi + 0x30], xmm0
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x14000c4c0
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov r9, r8
mov r8, rdx
mov rdi, rcx
mov rax, qword [0x140516758]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor esi, esi
xor ecx, ecx
xor edx, edx
call fcn.1404affe0
mov qword [rdi], rax
test rax, rax
jne 0x14000c513
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov esi, 1
cmovne esi, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14049f400
mov eax, esi
add rsp, 0x48
pop rdi
pop rsi
ret

Function at 0x1400102f0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rdi, rdx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x14001038d
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x14001039f
mov esi, dword [rdi + 8]
inc esi
add rsi, rsi
mov rdi, qword [rdi]
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x28]
mov edx, 0x2002
mov r8, rsi
call fcn.140013bd0
test al, al
je 0x140010391
mov rbx, qword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x140010391
mov rcx, rax
mov rdx, rdi
mov r8, rsi
call fcn.1404a3620
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, qword [rsp + 0x28]
mov ecx, reloc.WS2_32.dll_listen
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x140010391
mov qword [rsp + 0x28], 0
mov sil, 1
jmp 0x140010393
xor esi, esi
jmp 0x1400103a7
xor esi, esi
lea rcx, [rsp + 0x28]
call fcn.140013c00
jmp 0x1400103a1
xor esi, esi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret

Function at 0x140011170
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 0x140011190
Capabilities:
Set file attributes

Disassembly:
sub rsp, 0x28
mov eax, edx
and eax, 0x3fff
cmp edx, 0x10000000
cmovae edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x1400111c0
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 0x1400111e0
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 0x140011200
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 0x140011220
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp], 0xfffffffffffffffe
mov rdi, rcx
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x14001125b
mov bl, 1
and eax, 0x10
jne 0x14001142c
mov rcx, rdi
call fcn.140013410
test al, al
je 0x14001126e
xor ebx, ebx
jmp 0x14001142c
mov rcx, rdi
call fcn.140013530
mov esi, eax
lea rbx, [rbp - 0x10]
mov rcx, rbx
mov rdx, rdi
call fcn.14000df00
mov rcx, rbx
call fcn.14000e8b0
test eax, eax
js 0x1400112b7
mov ecx, dword [rbp - 8]
lea edx, [rcx - 1]
cmp eax, edx
jne 0x1400112b7
mov bl, 1
cmp ecx, 1
je 0x14001141e
mov rcx, qword [rbp - 0x10]
mov dword [rbp - 8], eax
mov eax, eax
mov word [rcx + rax*2], 0
lea rcx, [rbp - 0x20]
lea rdx, [rbp - 0x10]
call fcn.14000e040
mov edi, dword [rbp - 8]
mov r13, qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov r14, qword [sym.imp.KERNEL32.dll_GetLastError]
lea r15, [rbp - 0x58]
lea r12, [rbp - 0x10]
nop dword [rax]
mov rbx, qword [rbp - 0x10]
mov rcx, rbx
xor edx, edx
call r13
test eax, eax
jne 0x140011404
call r14
cmp eax, 0xb7
jne 0x140011340
mov rcx, r15
call fcn.140011800
lea rcx, [rbp - 0x30]
call fcn.14000de70
mov rcx, r15
mov rdx, rbx
xor r8d, r8d
call fcn.140011a00
mov ebx, eax
movzx eax, byte [rbp - 0x38]
and al, 0x10
shr al, 4
and bl, al
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140011338
call fcn.14049f26c
test bl, bl
jne 0x140011404
call r14
cmp eax, 0xb7
je 0x14001140e
mov rcx, r12
call fcn.14000e8b0
test eax, eax
jle 0x14001140e
mov edi, eax
cmp eax, 1
jne 0x140011390
cmp esi, 1
ja 0x14001140e
mov rax, qword [rbp - 0x10]
movzx eax, word [rax]
xor ebx, ebx
cmp eax, 0x2f
je 0x140011410
cmp eax, 0x5c
jne 0x140011394
jmp 0x140011410
cmp esi, edi
ja 0x14001140e
cmp dword [rbp - 8], edi
jbe 0x1400112e0
mov dword [rbp - 8], edi
mov rax, qword [rbp - 0x10]
mov ecx, edi
mov word [rax + rcx*2], 0
jmp 0x1400112e0
lea ecx, [rdi + 1]
add rcx, rcx
add rcx, qword [rbp - 0x20]
call fcn.140013050
test eax, eax
jns 0x1400113e0
mov edi, dword [rbp - 0x18]
jmp 0x1400113e4
add edi, eax
inc edi
mov rdx, qword [rbp - 0x20]
lea rcx, [rbp - 0x10]
mov r8d, edi
call fcn.14000e1f0
mov rcx, qword [rbp - 0x10]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140011410
cmp edi, dword [rbp - 0x18]
setge bl
jl 0x1400113c0
jmp 0x140011410
xor ebx, ebx
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x14001141e
call fcn.14049f26c
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14001142c
call fcn.14049f26c
mov eax, ebx
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x140011510
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call sub.KERNEL32.dll_GetFileAttributesW
mov ecx, eax
and ecx, 0x11
cmp ecx, 1
jne 0x140011539
and eax, 0xfffffffe
mov rcx, rsi
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x140011549
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
jmp 0x14001154b
xor eax, eax
add rsp, 0x20
pop rsi
ret

Function at 0x1400115a0
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x258
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1d0], 0xfffffffffffffffe
mov rsi, rcx
mov dword [rcx + 8], 0
mov rax, qword [rcx]
mov word [rax], 0
mov word [rbp - 0x60], 0
lea rdx, [rbp - 0x60]
mov ecx, 0x114
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
setne bl
je 0x140011688
mov edi, eax
cmp eax, 0x113
ja 0x140011610
mov word [rbp + 0x1c8], 0
lea rdx, [rbp - 0x60]
mov rcx, rsi
call fcn.14000e0f0
jmp 0x140011688
lea rcx, [rbp - 0x60]
call fcn.14000de70
cmp dword [rbp - 0x54], edi
jae 0x140011629
lea rcx, [rbp - 0x60]
mov edx, edi
call fcn.14000dbc0
mov rdx, qword [rbp - 0x60]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x140011678
mov rcx, qword [rbp - 0x60]
mov edx, edi
mov word [rcx + rdx*2], 0
mov edx, 0xffffffff
nop word [rax + rax]
inc edx
cmp word [rcx + rdx*2], 0
jne 0x140011650
mov dword [rbp - 0x58], edx
xor ebx, ebx
cmp eax, edx
jne 0x14001167a
dec edi
cmp edi, eax
jne 0x14001167a
mov bl, 1
lea rdx, [rbp - 0x60]
mov rcx, rsi
call fcn.14000e180
jmp 0x14001167a
xor ebx, ebx
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x140011688
call fcn.14049f26c
mov eax, ebx
add rsp, 0x258
pop rbx
pop rdi
pop rsi
pop rbp
ret
Function at 0x140012630
Capabilities:
Enumerate files on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140516758]
xor rax, rsp
mov qword [rsp + 0x278], rax
mov rcx, qword [rcx]
cmp rcx, 0xffffffffffffffff
je 0x1400126cc
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
setne bl
je 0x1400126af
mov eax, dword [rsp + 0x28]
mov dword [rsi + 0x20], eax
movups xmm0, xmmword [rsp + 0x2c]
movups xmmword [rsi + 8], xmm0
mov rax, qword [rsp + 0x3c]
mov qword [rsi + 0x18], rax
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x48]
shl rax, 0x20
or rcx, rax
mov qword [rsi], rcx
mov word [rsi + 0x24], 0
lea rdx, [rsp + 0x54]
add rsi, 0x28
mov rcx, rsi
call fcn.14000e0f0
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.14049f400
mov eax, ebx
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
setne bl
jne 0x14001266d
jmp 0x1400126af

Function at 0x1400127c0
Capabilities:
Get disk information

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov qword [rbp], 0xfffffffffffffffe
mov rsi, rcx
mov ebx, dword [rcx + 8]
test rbx, rbx
je 0x14001281e
dec rbx
jmp 0x140012800
mov rcx, rdi
call fcn.14049f264
dec rbx
test r14, r14
je 0x14001281e
mov rax, qword [rsi]
mov r14d, ebx
mov rdi, qword [rax + r14*8]
test rdi, rdi
je 0x1400127f8
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400127f0
call fcn.14049f26c
jmp 0x1400127f0
mov dword [rsi + 8], 0
xor edi, edi
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x1400128d9
mov ebx, eax
mov ecx, eax
add rcx, rcx
call fcn.14049f2a0
mov r14, rax
mov ecx, ebx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
lea eax, [rdi - 1]
cmp eax, ebx
jae 0x1400128b5
mov qword [rbp - 8], r14
lea rcx, [rbp - 0x18]
call fcn.14000de70
mov r14d, edi
xor r15d, r15d
lea rbx, [rbp - 0x18]
xor eax, eax
jmp 0x140012888
inc r15
cmp r15, r14
je 0x1400128b9
mov rcx, qword [rbp - 8]
cmp word [rcx + r15*2], 0
jne 0x140012880
mov eax, eax
lea rdx, [rcx + rax*2]
mov rcx, rbx
call fcn.14000e0f0
inc r15
mov rcx, rsi
mov rdx, rbx
call fcn.14000ca20
mov eax, r15d
jmp 0x140012883
xor edi, edi
jmp 0x1400128d1
cmp eax, edi
sete dil
mov rcx, qword [rbp - 0x18]
test rcx, rcx
mov r14, qword [rbp - 8]
je 0x1400128d1
call fcn.14049f26c
mov rcx, r14
call fcn.14049f26c
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
Function at 0x140012aa0
Capabilities:
Get file size

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rdx
mov rax, qword [0x140516758]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0
mov rcx, qword [rcx]
lea rdx, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
je 0x140012aea
mov eax, dword [rsp + 0x2c]
shl rax, 0x20
mov ecx, edi
or rcx, rax
mov qword [rsi], rcx
mov sil, 1
jmp 0x140012af6
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140012ad5
xor esi, esi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14049f400
mov eax, esi
add rsp, 0x38
pop rdi
pop rsi
ret

Function at 0x140012dc0
Capabilities:
Read file on windows

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

Function at 0x140012ea0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, r9
mov edi, r8d
mov rbx, rdx
mov r14, rcx
mov dword [r9], 0
lea r15, [rsp + 0x34]
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax]
cmp edi, 0x400000
mov r8d, 0x400000
cmovb r8d, edi
mov dword [rsp + 0x34], 0
mov rcx, qword [r14]
mov qword [rsp + 0x20], 0
mov rdx, rbx
mov r9, r15
call r12
mov ecx, dword [rsp + 0x34]
add dword [rsi], ecx
test eax, eax
je 0x140012f12
test ecx, ecx
je 0x140012f12
add rbx, rcx
sub edi, ecx
jne 0x140012ed0
test eax, eax
setne al
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x140012f30
Capabilities:
Clear file content

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
xor esi, esi
lea r9, [rsp + 0x28]
xor r8d, r8d
call fcn.140012b10
test al, al
je 0x140012f66
cmp qword [rsp + 0x28], rbx
jne 0x140012f66
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne sil
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x140014a60
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0xb0
movaps xmmword [rsp + 0xa0], xmm9
movaps xmmword [rsp + 0x90], xmm8
movapd xmmword [rsp + 0x80], xmm7
movapd xmmword [rsp + 0x70], xmm6
mov rax, qword [0x140516758]
xor rax, rsp
mov qword [rsp + 0x68], rax
lea rsi, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x58]
mov rcx, rax
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
test eax, eax
je 0x140014b6c
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x140014b6c
movq xmm0, rax
pshufd xmm1, xmm0, 0x44
movdqa xmm2, xmmword [reloc.OLEAUT32.dll_SysReAllocString]
movdqa xmm3, xmmword [0x1404d2510]
pxor xmm0, xmm0
mov eax, 0x40
movaps xmm4, xmmword [0x1404d22f0]
movdqa xmm5, xmmword [reloc.OLEAUT32.dll_SysReAllocStringLen]
nop dword [rax]
movdqa xmm6, xmm1
psrlq xmm6, xmm3
pshufd xmm7, xmm3, 0xee
movdqa xmm8, xmm1
psrlq xmm8, xmm7
pshufd xmm7, xmm2, 0xee
movdqa xmm9, xmm1
psrlq xmm9, xmm7
movdqa xmm7, xmm1
psrlq xmm7, xmm2
movsd xmm8, xmm6
movsd xmm9, xmm7
shufps xmm8, xmm9, 0x88
andps xmm8, xmm4
paddd xmm0, xmm8
paddq xmm3, xmm5
paddq xmm2, xmm5
add rax, 0xfffffffffffffffc
jne 0x140014b00
pshufd xmm1, xmm0, 0xee
paddd xmm1, xmm0
pshufd xmm0, xmm1, 0x55
paddd xmm0, xmm1
movd esi, xmm0
jmp 0x140014b7b
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14049f400
mov eax, esi
movaps xmm6, xmmword [rsp + 0x70]
movaps xmm7, xmmword [rsp + 0x80]
movaps xmm8, xmmword [rsp + 0x90]
movaps xmm9, xmmword [rsp + 0xa0]
add rsp, 0xb0
pop rsi
ret

Function at 0x140014bc0
Capabilities:
Get memory capacity

Disassembly:
push rsi
push rbx
sub rsp, 0x68
mov rsi, rcx
mov rax, qword [0x140516758]
xor rax, rsp
mov qword [rsp + 0x60], rax
movabs rax, 0x100000000
mov qword [rcx], rax
mov dword [rsp + 0x20], 0x40
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x140014c10
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x48]
cmp rdx, rcx
cmovb rcx, rdx
mov qword [rsi], rcx
test eax, eax
setne bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14049f400
mov eax, ebx
add rsp, 0x68
pop rbx
pop rsi
ret

Function at 0x140014c40
Capabilities:
Get graphical window text

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
mov dword [rdx + 8], 0
mov rax, qword [rdx]
mov word [rax], 0
mov rcx, qword [rcx]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
je 0x140014cb2
mov edi, eax
cmp dword [rsi + 0xc], eax
jae 0x140014c7a
mov rcx, rsi
mov edx, edi
call fcn.14000dbc0
mov rdx, qword [rsi]
lea r8d, [rdi + 1]
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp edi, eax
cmovb eax, edi
mov rcx, qword [rsi]
mov word [rcx + rax*2], 0
mov edx, 0xffffffff
nop dword [rax]
inc edx
cmp word [rcx + rdx*2], 0
jne 0x140014ca0
mov dword [rsi + 8], edx
mov cl, 1
test eax, eax
jne 0x140014cbd
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x140023120
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r9
mov edi, r8d
mov rbx, rdx
cmp r8d, 0x100000
mov eax, 0x100000
cmovae edi, eax
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x2c]
mov rcx, rax
mov rdx, rbx
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test rsi, rsi
je 0x140023172
mov ecx, dword [rsp + 0x2c]
mov dword [rsi], ecx
xor esi, esi
test eax, eax
jne 0x14002319f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x14002319f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov esi, 0x80004005
cmovne esi, ecx
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret

Function at 0x140023760
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
mov rdi, r9
mov r14, rdx
mov rbx, rcx
test r9, r9
je 0x14002377e
mov dword [rdi], 0
xor esi, esi
test r8d, r8d
je 0x1400237ec
cmp r8d, 0x8000
mov ebp, 0x8000
cmovb ebp, r8d
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x2c]
mov rcx, rax
mov rdx, r14
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [rsp + 0x2c]
add qword [rbx + 0x10], rcx
test rdi, rdi
je 0x1400237cc
add dword [rdi], ecx
test eax, eax
jne 0x1400237ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov esi, 0x80004005
cmovne esi, ecx
mov eax, esi
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret