joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140204560
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x14033d010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r14, r8
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
cmp qword [rdx + 0x18], 8
jb 0x140204595
mov rcx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r15d, eax
cmp eax, 0xffffffff
jne 0x1402045b6
mov r8, r14
mov rdx, rdi
mov rcx, rsi
call fcn.140203230
jmp 0x1402046c4
xor ebp, ebp
bt r15d, 0xa
jae 0x140204696
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1402045d0
mov rdx, qword [rdi]
movdqa xmm0, xmmword [0x1402c2e60]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], bp
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], bp
jne 0x1402045f0
lea rcx, [rsp + 0x48]
call fcn.1400dd760
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x48]
call fcn.14004f460
cmp rbx, 0xffffffffffffffff
jne 0x140204662
mov r8, r14
mov rdx, rdi
mov rcx, rsi
call fcn.140203230
nop
jmp 0x1402046c4
mov rcx, rdi
call fcn.140203150
test al, al
jne 0x14020468d
mov edx, r15d
mov rcx, rdi
call fcn.140202fd0
mov dword [rsi], 9
mov dword [rsi + 4], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1402046c4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14, r14
je 0x1402046a7
mov dword [r14], ebp
call fcn.140208570
mov qword [r14 + 8], rax
mov ebx, r15d
mov edx, r15d
mov rcx, rdi
call fcn.140202fd0
and ebx, 0x10
setne bpl
add ebp, 2
mov dword [rsi], ebp
mov dword [rsi + 4], eax
mov rax, rsi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14022d970
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x1402046f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rdx + 0x18], 8
mov r14, rcx
mov rcx, rdx
mov rbx, r8
mov rdi, rdx
jb 0x14020471b
mov rcx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp eax, 0xffffffff
jne 0x140204738
mov r8, rbx
mov rdx, rdi
mov rcx, r14
call fcn.140203230
jmp 0x140204799
mov qword [rsp + 0x30], rbp
xor ebp, ebp
test rbx, rbx
je 0x14020474f
mov dword [rbx], ebp
call fcn.140208570
mov qword [rbx + 8], rax
mov rcx, rdi
bt esi, 0xa
jae 0x14020477a
call fcn.140203150
mov ebx, 4
test al, al
jne 0x14020476b
mov ebx, 9
mov edx, esi
mov rcx, rdi
call fcn.140202fd0
mov dword [r14], ebx
jmp 0x140204790
mov edx, esi
mov ebx, esi
call fcn.140202fd0
and ebx, 0x10
setne bpl
add ebp, 2
mov dword [r14], ebp
mov rbp, qword [rsp + 0x30]
mov dword [r14 + 4], eax
mov rbx, qword [rsp + 0x38]
mov rax, r14
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1402170f0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xd0
mov rax, qword [0x14033d010]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x30], 0x7fff
mov qword [rsp + 0x38], 0x7fff
mov byte [rsp + 0x48], 1
mov ecx, 0xfffe
call fcn.14022e2a8
mov rdi, rax
mov qword [rsp + 0x40], rax
mov edx, 0x7fff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14021722b
mov r8d, 0x7fff
mov rdx, rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x1402171f8
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov dword [rsp + 0x20], 1
mov rdx, rbx
mov rcx, rdi
call fcn.140221240
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1402171ab
mov rax, qword [rbx]
mov rcx, qword [rbx + 0x10]
cmp byte [rcx + rax - 1], 0x5c
je 0x1402171cc
mov r8d, 1
lea rdx, [0x1402ad0a8]
mov rcx, rbx
call fcn.14007a550
nop
mov rcx, rdi
call fcn.14022dcf0
mov rax, rbx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14022d970
mov rbx, qword [rsp + 0xe8]
add rsp, 0xd0
pop rdi
ret
lea rdx, str.Cannot_get_system_directory_long_path_name
lea rcx, [rsp + 0x50]
call fcn.14004ed80
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.14021b460
lea rdx, [0x140314e78]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Cannot_get_temporary_directory_path
lea rcx, [rsp + 0x50]
call fcn.14004ed80
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.14021b460
lea rdx, [0x140314e78]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140217b20
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x14033d010]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov rsi, rcx
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0xf
mov byte [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
je 0x140217cf5
mov ecx, edi
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rcx
xor ebx, ebx
mov qword [rsp + 0x58], rbx
mov byte [rsp + 0x60], 1
test eax, eax
je 0x140217bc7
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14022e2a8
mov rbx, rax
mov qword [rsp + 0x58], rax
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x140217ceb
cmp eax, edi
ja 0x140217ceb
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.140221240
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x38]
cmp byte [rax + rcx - 1], 0x5c
je 0x140217c24
mov r8d, 1
lea rdx, [0x1402ad0a8]
lea rcx, [rsp + 0x28]
call fcn.14007a550
nop
mov rcx, rbx
call fcn.14022dcf0
nop
movdqa xmm0, xmmword [0x1402c2e70]
movdqa xmmword [rbp - 0x80], xmm0
mov byte [rsp + 0x70], 0
movdqa xmmword [rbp - 0x60], xmm0
mov byte [rbp - 0x70], 0
movdqa xmmword [rbp - 0x40], xmm0
mov byte [rbp - 0x50], 0
movdqa xmmword [rbp - 0x20], xmm0
mov byte [rbp - 0x30], 0
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x10], xmm0
mov qword [rbp], 0
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x70]
call fcn.1402186f0
nop
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.140217d30
mov rbx, rax
lea rcx, [rbp - 0x10]
call fcn.14004f120
lea rcx, [rbp - 0x30]
call fcn.14004f4d0
lea rcx, [rbp - 0x50]
call fcn.14004f4d0
lea rcx, [rbp - 0x70]
call fcn.14004f4d0
lea rcx, [rsp + 0x70]
call fcn.14004f4d0
nop
lea rcx, [rsp + 0x28]
call fcn.14004f4d0
mov rax, rbx
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.14022d970
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
lea rcx, [rsp + 0x48]
call fcn.140104cb0
lea rdx, str.Cannot_get_current_directory
lea rcx, [rsp + 0x48]
call fcn.14004ed80
nop
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x10]
call fcn.14021b460
lea rdx, [0x140314e78]
lea rcx, [rbp + 0x10]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1402195e0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x18], 0
mov rdi, rcx
je 0x140219659
cmp qword [rcx + 0x40], 8
mov qword [rsp + 0x30], rbx
lea rbx, [rcx + 0x28]
mov rcx, rbx
jb 0x140219606
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14021964f
shr eax, 4
test al, 1
je 0x14021962d
cmp qword [rbx + 0x18], 8
jb 0x140219622
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140219640
cmp qword [rbx + 0x18], 8
jb 0x140219637
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x14021964f
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea rcx, [rdi + 8]
call fcn.140219770
int3
mov r8d, 0x15b
lea rdx, str.C:jenkins_rootworkspaceVC5.1_analoglab2pocoFoundation_srcFile_WIN32U.cpp
lea rcx, str.__path.empty__
call fcn.14021d4b0
int3

Function at 0x140219680
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x18], 0
mov rdi, rcx
je 0x140219747
cmp qword [rcx + 0x40], 8
mov qword [rsp + 0x30], rbx
lea rbx, [rcx + 0x28]
mov rcx, rbx
jb 0x1402196aa
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1402196f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x15
ja 0x14021973d
mov ecx, 0x20800c
bt ecx, eax
jae 0x14021973d
cmp qword [rbx + 0x18], 8
jb 0x1402196d4
mov rbx, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14021973d
mov rbx, qword [rsp + 0x30]
mov al, 1
add rsp, 0x20
pop rdi
ret
cmp qword [rdi + 0x18], 0
je 0x140219723
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x140219704
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14021973d
shr eax, 4
test al, 1
je 0x1402196ca
mov rbx, qword [rsp + 0x30]
xor al, al
add rsp, 0x20
pop rdi
ret
mov r8d, 0x9f
lea rdx, str.C:jenkins_rootworkspaceVC5.1_analoglab2pocoFoundation_srcFile_WIN32U.cpp
lea rcx, str.__path.empty__
call fcn.14021d4b0
int3
lea rcx, [rdi + 8]
call fcn.140219770
int3
mov r8d, 0x17e
lea rdx, str.C:jenkins_rootworkspaceVC5.1_analoglab2pocoFoundation_srcFile_WIN32U.cpp
lea rcx, str.__path.empty__
call fcn.14021d4b0
int3
Function at 0x14021a000
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x140
mov rax, qword [0x14033d010]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, rcx
cmp qword [rcx + 0x18], 0
je 0x14021a221
add rcx, 0x28
cmp qword [rcx + 0x18], 8
jb 0x14021a037
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14021a1fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x15
ja 0x14021a217
mov ecx, 0x20800c
bt ecx, eax
jae 0x14021a217
movdqa xmm0, xmmword [0x1402c2e70]
movdqa xmmword [rsp + 0x30], xmm0
mov byte [rsp + 0x20], 0
movdqa xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
movdqa xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
movdqa xmmword [rsp + 0x90], xmm0
mov byte [rsp + 0x80], 0
xorps xmm0, xmm0
movdqa xmmword [rsp + 0xa0], xmm0
mov qword [rsp + 0xb0], 0
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x20]
call fcn.1402186f0
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.1402182c0
lea rax, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rax, qword [rsp + 0x60]
mov qword [rsp + 0x70], 0
mov byte [rax], 0
lea rax, [rsp + 0x80]
cmp qword [rsp + 0x98], 0x10
cmovae rax, qword [rsp + 0x80]
mov qword [rsp + 0x90], 0
mov byte [rax], 0
mov rax, qword [rsp + 0xa8]
sub rax, qword [rsp + 0xa0]
sar rax, 5
cmp eax, 1
jle 0x14021a1bd
lea rcx, [rsp + 0x20]
call fcn.140217fe0
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x20]
call fcn.140219000
nop
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0xe0]
call fcn.140219190
nop
lea rcx, [rsp + 0xc0]
call fcn.14004f4d0
lea rax, vtable.Poco::File.0
mov qword [rsp + 0xe0], rax
lea rcx, [rsp + 0xe0]
call fcn.14021a000
nop
lea rax, vtable.Poco::FileImpl.0
mov qword [rsp + 0xe0], rax
lea rcx, [rsp + 0x108]
call fcn.14004f460
lea rcx, [rsp + 0xe8]
call fcn.14004f4d0
nop
mov rcx, rbx
call fcn.140219680
nop
lea rcx, [rsp + 0xa0]
call fcn.14004f120
lea rcx, [rsp + 0x80]
call fcn.14004f4d0
lea rcx, [rsp + 0x60]
call fcn.14004f4d0
lea rcx, [rsp + 0x40]
call fcn.14004f4d0
lea rcx, [rsp + 0x20]
call fcn.14004f4d0
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14022d970
add rsp, 0x140
pop rbx
ret
lea rcx, [rbx + 8]
call fcn.140219770
int3
mov r8d, 0x5e
lea rdx, str.C:jenkins_rootworkspaceVC5.1_analoglab2pocoFoundation_srcFile_WIN32U.cpp
lea rcx, str.__path.empty__
call fcn.14021d4b0
int3
Function at 0x14021cc00
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rdi, r8
mov rcx, qword [rcx + 0xa8]
mov rsi, rdx
cmp rcx, 0xffffffffffffffff
je 0x14021cc7e
mov eax, dword [rbx + 0x80]
test al, 1
je 0x14021cc7e
test al, 2
je 0x14021cc43
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x68]
mov rcx, qword [rbx + 0xa8]
xor eax, eax
lea r9, [rsp + 0x40]
mov r8d, edi
mov dword [rsp + 0x40], eax
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14021cc93
mov eax, dword [rsp + 0x40]
add qword [rbx + 0xb0], rax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x48]
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
lea rcx, [rbx + 0x88]
call fcn.14021a240
int3

Function at 0x14021cca0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rdi, r8
mov rcx, qword [rcx + 0xa8]
mov rsi, rdx
cmp rcx, 0xffffffffffffffff
je 0x14021cd5e
mov eax, dword [rbx + 0x80]
test al, 2
je 0x14021cd5e
test al, 8
je 0x14021cd1d
mov r9d, 2
mov qword [rsp + 0x58], 0
lea r8, [rsp + 0x5c]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x58], eax
cmp eax, 0xffffffff
jne 0x14021cd0a
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14021cd73
mov rax, qword [rsp + 0x58]
mov rcx, qword [rbx + 0xa8]
mov qword [rbx + 0xb0], rax
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], 0
mov r8d, edi
mov qword [rsp + 0x20], 0
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14021cd80
mov eax, dword [rsp + 0x40]
add qword [rbx + 0xb0], rax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x48]
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
lea rcx, [rbx + 0x88]
call fcn.14021a240
int3
lea rcx, [rbx + 0x88]
call fcn.14021a240
int3
Function at 0x140221010
Capabilities:
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x90
mov rax, qword [0x14033d010]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp qword [rdx + 0x18], 0x10
mov rsi, rcx
mov qword [rsp + 0x20], rcx
mov rbx, rdx
mov rcx, rdx
jb 0x140221045
mov rcx, qword [rdx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebp, eax
test eax, eax
je 0x1402210e3
mov ecx, ebp
mov qword [rsp + 0xc0], rdi
call fcn.14022e2a8
cmp qword [rbx + 0x18], 0x10
mov rdi, rax
jb 0x140221076
mov rbx, qword [rbx]
mov r8d, ebp
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov qword [rsi + 0x10], 0
mov r8, 0xffffffffffffffff
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
nop
inc r8
cmp byte [rdi + r8], 0
jne 0x1402210a0
mov rdx, rdi
mov rcx, rsi
call fcn.14004f6a0
mov rcx, rdi
call fcn.14022dcf0
mov rdi, qword [rsp + 0xc0]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14022d970
add rsp, 0x90
pop rsi
pop rbp
pop rbx
ret
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.14021b340
lea rdx, [0x140315a48]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140018fc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x140019050
cmp r11, r10
ja 0x1400190c6
cmp r10, rdx
ja 0x1400190d8
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x140019052
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140019030
jmp 0x1400190b4
ja 0x14001905a
mov r11, r10
cmp rax, r8
jne 0x140018ff4
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x140019090
mov rdi, r8
sub ecx, edx
jns 0x1400190ab
jmp 0x1400190b6
cmp r8, rsi
je 0x1400190e7
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x1400190b6
xor al, 1
cmp rdi, rsi
jne 0x140019070
jmp 0x1400190b6
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, [0x1413bad00]
mov rcx, r11
mov rdx, r10
call fcn.14004e4d0
lea r8, [0x1413bad00]
mov rcx, r10
call fcn.14004e250
lea rcx, [0x1413bf298]
lea r8, [0x1413bace8]
mov edx, 0x2b
call fcn.14004e2d0
int3

Function at 0x14001e630
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140016920
cmp rax, rcx
je 0x14001e655
cmp rdx, 4
jae 0x14001e658
xor eax, eax
xor r8d, r8d
jmp 0x14001e6f0
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x140050730]
movdqa xmm3, xmmword [0x140050540]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x14001e680
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14001e707
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14001e6f0
ret
Function at 0x1400237e0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1413c19c0]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140023853
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14002388a
test eax, eax
js 0x140023864
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14002387d
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x1413c1a20]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.1400229e0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140022030
mov ecx, 7
int 0x29
ud2
Function at 0x140028450
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x58]
call fcn.140024330
mov rax, qword [rbp - 0x58]
movabs rdi, 0x8000000000000000
cmp rax, rdi
jne 0x1400284a6
lea rcx, [rbp - 0x50]
call fcn.140021f30
mov qword [rsi], rdi
jmp 0x14002868f
mov qword [rbp + 0x3c8], rsi
mov qword [rbp + 0x408], rax
mov rax, qword [rbp - 0x50]
mov qword [rbp + 0x410], rax
mov qword [rbp + 0x3f0], 0
mov qword [rbp + 0x3f8], 2
mov qword [rbp + 0x400], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x418], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x140028530
jmp 0x14002851f
jae 0x1400285f7
cmp r8, 0x201
jae 0x140028530
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140028588
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14002855f
lea rcx, [rbp + 0x3f0]
mov rdx, r12
call fcn.14004f130
mov rdi, qword [rbp + 0x3f0]
mov rax, qword [rbp + 0x3f8]
mov qword [rbp + 0x418], rax
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x400], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x418]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x410]
mov rdx, r13
mov r8d, r15d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov r14d, eax
test eax, eax
jne 0x1400285b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400286c5
mov r8d, r14d
cmp r15, r8
jne 0x140028510
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140028700
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14002851f
jmp 0x140028530
cmp rsi, r8
jb 0x14002871a
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140026250
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
movaps xmmword [rbp + 0x3e0], xmm1
movaps xmmword [rbp + 0x3d0], xmm0
movabs rbx, 0x8000000000000000
test rdi, rdi
mov rsi, qword [rbp + 0x3c8]
je 0x140028657
mov rcx, qword [0x1413d3bb8]
xor edx, edx
mov r8, qword [rbp + 0x418]
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rbp + 0x3d0], rbx
jne 0x1400286a4
mov qword [rsi], rbx
lea rcx, [rbp + 0x3d8]
call fcn.140021f30
cmp qword [rbp + 0x408], 0
je 0x14002868f
mov rcx, qword [0x1413d3bb8]
xor edx, edx
mov r8, qword [rbp + 0x410]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movaps xmm0, xmmword [rbp + 0x3d0]
movaps xmm1, xmmword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
cmp qword [rbp + 0x408], 0
jne 0x140028679
jmp 0x14002868f
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3d8], rax
movabs rbx, 0x8000000000000000
mov qword [rbp + 0x3d0], rbx
test rdi, rdi
mov rsi, qword [rbp + 0x3c8]
jne 0x140028641
jmp 0x140028657
lea rcx, [0x1413bfc50]
lea r8, [0x1413c2380]
mov edx, 0x28
call fcn.14004e2d0
jmp 0x14002872f
lea rax, [0x1413c2368]
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14004e250
ud2
Function at 0x14002afb0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1413c19c0]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmp ecx, eax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
adc dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x14002b01c
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
adc eax, 0x25058
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x14002b02b
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14002b063
cmp eax, 0x103
je 0x14002b06d
test eax, eax
js 0x14002b048
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14002b063
invalid
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x1413c1a20]
cmp dword [rcx], eax