joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14014ed50
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14026f088]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rcx
cmp qword [rcx + 0x68], 0
je 0x14014eec8
cmp byte [rcx + 0x72], 0
je 0x14014eec8
mov ebx, 0xffff
mov edx, ebx
call fcn.14014e420
cmp bx, ax
jne 0x14014eda7
xor al, al
jmp 0x14014eeca
mov qword [rsp + 0x58], InitCommonControls
mov qword [rsp + 0x50], 0
mov byte [rsp + 0x40], 0
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rsp + 0x40]
call fcn.140150990
nop
mov r9, qword [rsp + 0x58]
nop word [rax + rax]
lea rdx, [rsp + 0x40]
cmp r9, 0x10
cmovae rdx, qword [rsp + 0x40]
lea r8, [rsp + 0x40]
cmovae r8, qword [rsp + 0x40]
mov rcx, qword [rdi + 0x68]
mov r10, qword [rcx]
mov r9, qword [rsp + 0x50]
add r9, rdx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x74]
call qword [r10 + 0x40]
test eax, eax
je 0x14014ee26
sub eax, 1
jne 0x14014ee9a
jmp 0x14014ee2a
mov byte [rdi + 0x72], 0
lea rax, [rsp + 0x40]
mov r10, qword [rsp + 0x40]
mov r9, qword [rsp + 0x58]
cmp r9, 0x10
cmovae rax, r10
mov rbx, qword [rsp + 0x38]
sub rbx, rax
je 0x14014ee76
lea rcx, [rsp + 0x40]
cmp r9, 0x10
cmovae rcx, r10
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
call fcn.14019c7d4
mov r9, qword [rsp + 0x58]
cmp rbx, rax
jne 0x14014eea4
cmp byte [rdi + 0x72], 0
je 0x14014eea8
test rbx, rbx
jne 0x14014ede0
xor r8d, r8d
lea edx, [rbx + 8]
lea rcx, [rsp + 0x40]
call fcn.14012ab10
jmp 0x14014edd0
sub eax, 2
mov r9, qword [rsp + 0x58]
je 0x14014eea8
xor bl, bl
jmp 0x14014eeaa
mov bl, 1
cmp r9, 0x10
jb 0x14014eec3
lea r8, [r9 + 1]
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.140126d00
movzx eax, bl
jmp 0x14014eeca
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140185a60
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140151f60
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, dword [rdx + 0x10]
mov rbp, rcx
add esi, 4
mov rbx, rdx
movsxd rcx, esi
call fcn.140185afc
mov r9, qword [rbx + 8]
mov rdi, rax
test r9, r9
je 0x1401520d3
lea eax, [rsi - 4]
mov edx, 1
movsxd rbx, eax
mov rcx, rdi
mov r8, rbx
call fcn.14019a348
test eax, eax
je 0x1401520d3
mov byte [rbx + rdi], 0
lea eax, [rsi - 1]
movsxd rcx, eax
lea eax, [rsi - 2]
mov byte [rcx + rdi], 0
movsxd rcx, eax
mov byte [rcx + rdi], 0
lea ecx, [rsi - 3]
movsxd rdx, ecx
mov byte [rdx + rdi], 0
mov edx, 0xfeff
cmp esi, 4
jl 0x140152023
mov eax, dword [rdi]
cmp eax, 0xfffe0000
jne 0x140151ff4
mov dword [rbp + 0x28], 4
jmp 0x140151fff
cmp eax, edx
jne 0x140152023
mov dword [rbp + 0x28], 5
mov eax, esi
mov r8, rdi
cdq
mov rcx, rbp
and edx, 3
add eax, edx
lea rdx, [rdi + 4]
sar eax, 2
mov r9d, eax
call fcn.140153cb0
mov al, 1
jmp 0x1401520dd
cmp esi, 2
jl 0x140152085
movzx eax, word [rdi]
mov ecx, 0xfffe
cmp ax, cx
jne 0x14015205c
mov eax, esi
mov dword [rbp + 0x28], 2
cdq
mov r8, rdi
sub eax, edx
mov rcx, rbp
sar eax, 1
lea rdx, [rdi + 2]
mov r9d, eax
call fcn.140153db0
mov al, 1
jmp 0x1401520dd
cmp ax, dx
jne 0x140152085
mov eax, esi
mov dword [rbp + 0x28], 3
cdq
mov r8, rdi
sub eax, edx
mov rcx, rbp
sar eax, 1
lea rdx, [rdi + 2]
mov r9d, eax
call fcn.140153db0
mov al, 1
jmp 0x1401520dd
cmp esi, 3
jl 0x1401520b7
movsx eax, byte [rdi]
cmp eax, 0xef
jne 0x1401520b7
movsx eax, byte [rdi + 1]
cmp eax, 0xbb
jne 0x1401520b7
movsx eax, byte [rdi + 2]
cmp eax, 0xbf
jne 0x1401520b7
mov dword [rbp + 0x28], 1
lea rdx, [rdi + 3]
jmp 0x1401520c1
mov dword [rbp + 0x28], 0
mov rdx, rdi
mov r9d, esi
mov r8, rdi
mov rcx, rbp
call fcn.140153e30
mov al, 1
jmp 0x1401520dd
mov rcx, rdi
call fcn.140185a84
xor al, al
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140158d30
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
bt rax, 0xf
jb 0x140158d63
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
bt rax, 0xf
jae 0x140158d73
mov rax, qword [rbx + 0x38]
jmp 0x140158d67
mov rax, qword [rbx + 0x30]
test rax, rax
je 0x140158d73
mov dword [rax + 0x58], 1
mov ecx, 0xa4
call qword [sym.imp.USER32.dll_GetKeyState]
bt rax, 0xf
jb 0x140158dad
mov ecx, 0xa5
call qword [sym.imp.USER32.dll_GetKeyState]
bt rax, 0xf
jae 0x140158dbd
mov rax, qword [rbx + 0x48]
test rax, rax
je 0x140158dbd
mov dword [rax + 0x58], 1
add rsp, 0x20
pop rbx
ret
mov rax, qword [rbx + 0x40]
test rax, rax
je 0x140158dbd
mov dword [rax + 0x58], 1
mov ecx, 0xa2
call qword [sym.imp.USER32.dll_GetKeyState]
bt rax, 0xf
jb 0x140158de7
mov ecx, 0xa3
call qword [sym.imp.USER32.dll_GetKeyState]
bt rax, 0xf
jae 0x140158df7
mov rax, qword [rbx + 0x58]
jmp 0x140158deb
mov rax, qword [rbx + 0x50]
test rax, rax
je 0x140158df7
mov dword [rax + 0x58], 1
add rsp, 0x20
pop rbx
ret
Function at 0x140158e00
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
xor edi, edi
bt rax, 0xf
jae 0x140158e26
lea eax, [rdi + 2]
jmp 0x140158e3a
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
bt rax, 0xf
jb 0x140158e4f
mov eax, edi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140158e46
mov dword [rcx + 0x58], edi
cmp eax, 3
je 0x140158e4f
test eax, eax
jne 0x140158e5b
mov rax, qword [rbx + 0x38]
test rax, rax
je 0x140158e5b
mov dword [rax + 0x58], edi
mov ecx, 0xa4
call qword [sym.imp.USER32.dll_GetKeyState]
bt rax, 0xf
jae 0x140158e74
mov eax, 8
jmp 0x140158e88
mov ecx, 0xa5
call qword [sym.imp.USER32.dll_GetKeyState]
bt rax, 0xf
jb 0x140158e9d
mov eax, edi
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x140158e94
mov dword [rcx + 0x58], edi
cmp eax, 9
je 0x140158e9d
test eax, eax
jne 0x140158ea9
mov rax, qword [rbx + 0x48]
test rax, rax
je 0x140158ea9
mov dword [rax + 0x58], edi
mov ecx, 0xa2
call qword [sym.imp.USER32.dll_GetKeyState]
bt rax, 0xf
jae 0x140158ec2
mov eax, 5
jmp 0x140158ed6
mov ecx, 0xa3
call qword [sym.imp.USER32.dll_GetKeyState]
bt rax, 0xf
jb 0x140158eeb
mov eax, edi
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x140158ee2
mov dword [rcx + 0x58], edi
cmp eax, 6
je 0x140158eeb
test eax, eax
jne 0x140158ef7
mov rax, qword [rbx + 0x58]
test rax, rax
je 0x140158ef7
mov dword [rax + 0x58], edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140160e50
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x270
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x14026f088]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rdx
mov rsi, rcx
cmp qword [rdx + 0x10], 0
sete al
test al, al
je 0x140160e9a
xor al, al
jmp 0x140160fd4
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call fcn.14018f1e0
mov edx, 0x104
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov qword [rsp + 0x40], 7
xor r8d, r8d
mov qword [rsp + 0x38], r8
mov word [rsp + 0x28], r8w
cmp word [rsp + 0x50], r8w
je 0x140160eef
lea rax, [rsp + 0x50]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140160ee4
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.140003290
nop
mov r8d, 1
lea rdx, [0x140203598]
lea rcx, [rsp + 0x28]
call fcn.140004d70
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140004ee0
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
lea rdx, str.KbdLayerDescriptor
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rax, rax
je 0x140160fb2
mov rdi, qword [rsi + 0x10]
mov rbx, qword [rsi + 8]
cmp rbx, rdi
je 0x140160f84
nop dword [rax]
mov r8, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [r8]
add rbx, 0x10
cmp rbx, rdi
jne 0x140160f70
mov rax, qword [rsi + 8]
mov qword [rsi + 0x10], rax
call r14
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x140160fa0
mov rcx, rsi
call fcn.140161000
test rbp, rbp
je 0x140160fb2
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov bl, 1
jmp 0x140160fb4
xor bl, bl
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x140160fd1
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.140003900
movzx eax, bl
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140185a60
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140161009
Capabilities:
Encrypt data using rc4 prga

Disassembly:
test rdx, rdx
je 0x140161136
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rbp
mov rax, qword [0x14026f088]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r15, rdx
xor esi, esi
mov rax, rdx
lea rbx, [rcx + 8]
lea r12, vtable.RT::CDiacritic.0
nop dword [rax]
mov ebp, dword [rax]
mov qword [rsp + 0x28], r12
mov edi, ebp
shr edi, 0x10
mov word [rsp + 0x32], di
mov word [rsp + 0x34], bp
movzx r14d, word [rax + 4]
mov word [rsp + 0x30], r14w
mov rax, qword [rbx + 8]
lea rcx, [rsp + 0x28]
cmp rcx, rax
jae 0x1401610cf
mov rcx, qword [rbx]
lea rdx, [rsp + 0x28]
cmp rcx, rdx
ja 0x1401610cf
lea rdi, [rsp + 0x28]
sub rdi, rcx
cmp rax, qword [rbx + 0x10]
jne 0x1401610a2
mov rcx, rbx
call fcn.1401611b0
and rdi, 0xfffffffffffffff0
add rdi, qword [rbx]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1401610f6
mov qword [rcx], r12
movzx eax, word [rdi + 8]
mov word [rcx + 8], ax
movzx eax, word [rdi + 0xa]
mov word [rcx + 0xa], ax
movzx eax, word [rdi + 0xc]
mov word [rcx + 0xc], ax
jmp 0x1401610f6
cmp rax, qword [rbx + 0x10]
jne 0x1401610dd
mov rcx, rbx
call fcn.1401611b0
mov rax, qword [rbx + 8]
test rax, rax
je 0x1401610f6
mov qword [rax], r12
mov word [rax + 8], r14w
mov word [rax + 0xa], di
mov word [rax + 0xc], bp
add qword [rbx + 8], 0x10
inc rsi
mov qword [rsp + 0x28], r12
lea rax, [r15 + rsi*8]
cmp dword [rax], 0
jne 0x140161050
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140185a60
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x140185c58
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140185ce9
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x140185ce9
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140185ce9
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140185ccd
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140185cc7
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140185ccf
add rdx, 0x28
jmp 0x140185cac
xor edx, edx
test rdx, rdx
jne 0x140185cd8
xor al, al
jmp 0x140185cef
test dword [rdx + 0x24], 0x80000000
je 0x140185ce5
xor al, al
jmp 0x140185cef
mov al, 1
jmp 0x140185cef
xor al, al
jmp 0x140185cef
add rsp, 0x18
ret
Function at 0x140189ba0
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rdx + 0x18], 8
mov rbp, r9
mov eax, r8d
mov rdi, rdx
mov rbx, rcx
jb 0x140189bca
mov rdx, qword [rdx]
cmp qword [rcx + 0x18], 8
jb 0x140189bd4
mov rcx, qword [rcx]
xor esi, esi
test eax, eax
mov r8d, esi
sete r8b
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x140189bf1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea rax, str.boost::filesystem::copy_file
mov r9, rbp
mov r8, rdi
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov ecx, esi
call fcn.14018ab50
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140189f40
Capabilities:
Create directory

Disassembly:
mov rax, rsp
push rsi
sub rsp, 0xd0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x14026f088]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, rdx
mov rsi, rcx
cmp qword [rcx + 0x18], 8
jb 0x140189f7e
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140189fa5
test rbx, rbx
je 0x140189f9e
mov dword [rbx], 0
call fcn.14018cdd0
mov qword [rbx + 8], rax
mov al, 1
jmp 0x14018a070
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov dword [rsp + 0x20], 0
call fcn.14018cdd0
mov qword [rsp + 0x28], rax
cmp ebp, 0xb7
jne 0x140189ff4
lea r8, [rsp + 0x20]
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.14018ba60
cmp dword [rax], 3
jne 0x140189ff4
test rbx, rbx
je 0x14018a06e
mov dword [rbx], 0
call fcn.14018cdd0
jmp 0x14018a06a
test rbx, rbx
jne 0x14018a063
mov qword [rsp + 0x58], InitCommonControls
mov qword [rsp + 0x50], rbx
mov byte [rsp + 0x40], bl
lea r8d, [rbx + 0x23]
lea rdx, str.boost::filesystem::create_directory
lea rcx, [rsp + 0x40]
call fcn.140126d60
nop
mov dword [rsp + 0x20], ebp
call fcn.14018cdd0
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
lea r9, [rsp + 0x20]
mov r8, rsi
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.1401896c0
lea rdx, [0x14026ae90]
lea rcx, [rsp + 0x60]
call fcn.14018eab8
nop
call fcn.14018cdd0
mov dword [rbx], ebp
mov qword [rbx + 8], rax
xor al, al
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140185a60
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rsi
ret
Function at 0x14018b4c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x18], 8
mov rsi, rdx
mov rdi, rcx
jb 0x14018b4df
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14018b50e
mov r8, rsi
lea rcx, [rsp + 0x30]
mov rdx, rdi
call fcn.14018b370
mov eax, dword [rax]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
test rsi, rsi
je 0x14018b522
mov dword [rsi], 0
call fcn.14018cdd0
mov qword [rsi + 8], rax
bt ebx, 0xa
jae 0x14018b569
mov rcx, rdi
call fcn.14018af30
test al, al
je 0x14018b554
and bl, 0x10
mov eax, 4
mov ecx, 0xb
cmovne eax, ecx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov eax, 9
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rsi, qword [rsp + 0x40]
and ebx, 0x10
or ebx, 0x20
shr ebx, 4
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14018b7f0
Capabilities:
Delete directory
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbx, rcx
cmp edx, 1
jne 0x14018b825
test r8, r8
je 0x14018b818
xor eax, eax
mov dword [r8], eax
call fcn.14018cdd0
mov qword [rdi + 8], rax
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea eax, [rdx - 3]
test eax, 0xfffffff7
je 0x14018b89e
cmp qword [rcx + 0x18], 8
jb 0x14018b839
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14018b877
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7b
je 0x14018b877
cmp eax, 0x57
je 0x14018b877
cmp eax, 0x35
ja 0x14018b868
movabs rdx, 0x2000000020800c
bt rdx, rax
jb 0x14018b877
cmp eax, 0xa1
je 0x14018b877
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14018b879
xor eax, eax
lea r9, str.boost::filesystem::remove
mov r8, rdi
mov rdx, rbx
mov ecx, eax
call fcn.14018ac60
test al, al
je 0x14018b904
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp qword [rcx + 0x18], 8
jb 0x14018b8a8
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14018b8e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7b
je 0x14018b8e6
cmp eax, 0x57
je 0x14018b8e6
cmp eax, 0x35
ja 0x14018b8d7
movabs rdx, 0x2000000020800c
bt rdx, rax
jb 0x14018b8e6
cmp eax, 0xa1
je 0x14018b8e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14018b8e8
xor eax, eax
lea r9, str.boost::filesystem::remove
mov r8, rdi
mov rdx, rbx
mov ecx, eax
call fcn.14018ac60
test al, al
jne 0x14018b818
mov al, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14018b920
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rdx + 0x18], 8
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
jb 0x14018b942
mov rdx, qword [rdx]
cmp qword [rcx + 0x18], 8
jb 0x14018b94c
mov rcx, qword [rcx]
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x14018b964
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14018b966
xor eax, eax
lea rcx, str.boost::filesystem::rename
mov r9, rsi
mov qword [rsp + 0x20], rcx
mov r8, rdi
mov ecx, eax
mov rdx, rbx
call fcn.14018ab50
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0xc8], rbx
mov rax, qword [0x14026f088]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r14, r8
mov rdi, rdx
mov rsi, rcx
cmp qword [rdx + 0x18], 8
jb 0x14018baa4
mov rcx, qword [rdx]
jmp 0x14018baa7
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, eax
cmp eax, 0xffffffff
jne 0x14018bac7
mov r8, r14
mov rdx, rdi
mov rcx, rsi
call fcn.14018b370
jmp 0x14018bc19
xor r15d, r15d
bt eax, 0xa
jae 0x14018bbd5
cmp qword [rdi + 0x18], 8
jb 0x14018bae0
mov rdx, qword [rdi]
jmp 0x14018bae3
mov rdx, rdi
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r15
mov word [rsp + 0x50], r15w
cmp word [rdx], r15w
jne 0x14018bb02
mov r8, r15
jmp 0x14018bb10
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r15w
jne 0x14018bb06
lea rcx, [rsp + 0x50]
call fcn.140003290
nop
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
mov qword [rsp + 0x30], r15
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
mov r8, qword [rsp + 0x68]
cmp r8, 8
jb 0x14018bb75
inc r8
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.140003900
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r15
mov word [rsp + 0x50], r15w
cmp rbx, 0xffffffffffffffff
jne 0x14018bba0
mov r8, r14
mov rdx, rdi
mov rcx, rsi
call fcn.14018b370
nop
jmp 0x14018bc19
mov rcx, rdi
call fcn.14018af30
test al, al
jne 0x14018bbcb
mov edx, ebp
mov rcx, rdi
call fcn.14018b010
mov dword [rsi], 9
mov dword [rsi + 4], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x14018bc19
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test r14, r14
je 0x14018bbe6
mov dword [r14], r15d
call fcn.14018cdd0
mov qword [r14 + 8], rax
mov edx, ebp
mov rcx, rdi
test bpl, 0x10
mov dword [rsp + 0x40], 3
jne 0x14018bc01
mov dword [rsp + 0x40], 2
call fcn.14018b010
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x44], eax
mov eax, dword [rcx]
mov dword [rsi], eax
mov eax, dword [rcx + 4]
mov dword [rsi + 4], eax
mov rax, rsi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140185a60
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401a59e0
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1401a57b4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401a57b4
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401a57b4
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401a57b4
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401a57b4
cmp dword [rcx + 0x84], 0xe
jbe 0x1401a57b4
cmp dword [rcx + 0xf8], esi
je 0x1401a57b4
mov ecx, r14d
call fcn.1401a58fc
mov ecx, 2
call fcn.14019e474
nop
cmp byte [0x140278520], 0
jne 0x1401a587e
mov r15d, 1
mov eax, r15d
xchg dword [0x140278510], eax
test ebx, ebx
jne 0x1401a5827
mov rdi, qword [0x14026f088]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140278518]
cmp rcx, rax
je 0x1401a581e
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140003230]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140278658]
jmp 0x1401a5833
cmp ebx, r15d
jne 0x1401a5839
lea rcx, [0x140278670]
call fcn.1401a6494
nop
test ebx, ebx
jne 0x1401a5850
lea rdx, [0x1401c90f0]
lea rcx, [0x1401c90d0]
call fcn.1401a67f4
lea rdx, [0x1401c9100]
lea rcx, [0x1401c90f8]
call fcn.1401a67f4
movzx eax, byte [0x140278520]
test esi, esi
cmove eax, r15d
mov byte [0x140278520], al
jmp 0x1401a587e
mov ecx, 2
call fcn.14019e4c8
test esi, esi
jne 0x1401a5895
mov ecx, r14d
call fcn.1401a58b0
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1401a5744
Function at 0x1401ab660
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1401ab31c
call fcn.14019d884
mov dword [rax], 0x16
call fcn.140190554
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1401ab304
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1401ab304
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x1401ab34e
lock or dword [rax + 0x14], 0x10
jmp 0x1401ab304
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1401ab36b
mov rcx, qword [rbp + 0x10]
call fcn.1401ad4ac
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1401aa0ac
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1401aad54
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x1401ab3c2
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x1401ab304
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1401ab42e
mov rcx, qword [rbp + 0x10]
call fcn.1401aa0ac
cmp eax, 0xffffffff
je 0x1401ab415
mov rcx, qword [rbp + 0x10]
call fcn.1401aa0ac
cmp eax, 0xfffffffe
je 0x1401ab415
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1401aa0ac
movsxd rdi, eax
lea rsi, [0x140278930]
mov rcx, rbx
sar rdi, 6
call fcn.1401aa0ac
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x1401ab41c
lea rax, [0x14026f4b0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1401ab42e
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x1401ab464
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1401ab460
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1401ab460
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x1401ab307
jmp 0x1401ab2d4