joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002dbb0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x510
mov rax, qword [0x1400db800]
xor rax, rsp
mov qword [rsp + 0x500], rax
mov rbx, rdx
mov rsi, rcx
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
xorps xmm0, xmm0
mov dword [rsp + 0x70], 0x68
mov rbp, rax
lea r8, [rsp + 0x2f0]
xor eax, eax
mov edi, 0x104
mov r9d, edi
mov qword [rsp + 0x60], rax
mov rdx, rbx
lea rcx, [rbp + 0x74]
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rsp + 0x88], xmm0
movups xmmword [rsp + 0x98], xmm0
movups xmmword [rsp + 0xa8], xmm0
movups xmmword [rsp + 0xb8], xmm0
movups xmmword [rsp + 0xc8], xmm0
call fcn.14002d0a0
test eax, eax
jne 0x14002dd59
lea rdx, [rsp + 0x2f0]
lea rax, [rsp + 0xe0]
sub rdx, rax
lea rcx, [rsp + 0xe0]
nop dword [rax + rax]
lea rax, [rdi + 0x7ffffefa]
test rax, rax
je 0x14002dc92
movzx eax, word [rdx + rcx]
test ax, ax
je 0x14002dc92
mov word [rcx], ax
add rcx, 2
sub rdi, 1
jne 0x14002dc70
test rdi, rdi
lea rax, [rcx - 2]
lea rdx, [rsp + 0xe0]
cmovne rax, rcx
xor ebx, ebx
mov word [rax], bx
lea rax, [rsp + 0xe0]
movzx ecx, word [rsp + 0xe0]
test cx, cx
je 0x14002dce1
nop
cmp cx, 0x5c
je 0x14002dcd2
cmp cx, 0x2f
je 0x14002dcd2
add rax, 2
jmp 0x14002dcd9
add rax, 2
mov rdx, rax
movzx ecx, word [rax]
test cx, cx
jne 0x14002dcc0
mov word [rdx - 2], bx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbp + 0x48], eax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x2f0]
lea rax, [rsp + 0x50]
xor ecx, ecx
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov r8d, dword [rbp + 0x58]
xor r8d, eax
and r8d, 1
xor dword [rbp + 0x58], r8d
test al, 1
je 0x14002dd4f
mov rcx, rsi
call fcn.14002d950
jmp 0x14002dd69
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14002dd69
mov r8d, eax
mov edx, 0xcc
mov rcx, rsi
call fcn.140091750
mov eax, 1
mov rcx, qword [rsp + 0x500]
xor rcx, rsp
call fcn.140094850
mov rbx, qword [rsp + 0x540]
add rsp, 0x510
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002ec40
Capabilities:
Get file attributes

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x240
mov rax, qword [0x1400db800]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbp, rdx
mov r8d, 5
lea rdx, str.http:
mov rdi, rcx
call fcn.1400a2754
test eax, eax
lea rbx, [rdi + 0xa]
mov r8d, 4
lea rdx, str.map:
cmovne rbx, rdi
mov rcx, rbx
call fcn.1400a2754
test eax, eax
lea rcx, [rbx + 8]
cmovne rcx, rbx
mov r12, rcx
movzx eax, word [rcx]
test ax, ax
je 0x14002ecd1
cmp ax, 0x5c
je 0x14002ecc2
cmp ax, 0x2f
je 0x14002ecc2
add rcx, 2
jmp 0x14002ecc9
add rcx, 2
mov r12, rcx
movzx eax, word [rcx]
test ax, ax
jne 0x14002ecb0
xor r13d, r13d
mov qword [rsp + 0x290], r14
mov r15d, r13d
lea rax, str.DIABDAT.MPQ
lea rdi, str.Diablo_I.txt
lea ebx, [r13 + 0x5c]
mov rdx, qword [r15 + rax]
test rdx, rdx
je 0x14002edf8
mov rcx, r12
call fcn.140027040
test eax, eax
je 0x14002edf1
lea r9, [0x1400e25b0]
xor r8d, r8d
lea rcx, [rsp + 0x20]
call fcn.140018f60
mov rdi, qword [r15 + rdi]
lea rcx, [rsp + 0x20]
mov rax, 0xffffffffffffffff
mov r14, rbp
mov rsi, r13
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], si
jne 0x14002ed40
test rax, rax
je 0x14002ed63
lea rcx, [rsp + rax*2 + 0x1e]
cmp word [rcx], 0x5c
jne 0x14002ed63
sub rcx, 2
sub rax, 1
jne 0x14002ed53
test rdi, rdi
je 0x14002ed8b
cmp word [rdi], 0x5c
jne 0x14002ed7a
nop
add rdi, 2
cmp word [rdi], 0x5c
je 0x14002ed70
mov rsi, 0xffffffffffffffff
inc rsi
cmp word [rdi + rsi*2], r13w
jne 0x14002ed81
test rax, rax
je 0x14002edad
lea rbx, [rax + rax]
mov rcx, rbp
mov r8, rbx
lea rdx, [rsp + 0x20]
call fcn.1400b1500
lea r14, [rbx + rbp]
mov ebx, 0x5c
test rdi, rdi
je 0x14002edd4
test rsi, rsi
je 0x14002edd4
mov word [r14], bx
mov rdx, rdi
add r14, 2
lea rbx, [rsi + rsi]
mov r8, rbx
mov rcx, r14
call fcn.1400b1500
add r14, rbx
mov rcx, rbp
mov word [r14], r13w
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x14002ee3a
mov ebx, 0x5c
lea rdi, str.Diablo_I.txt
lea rax, str.DIABDAT.MPQ
add r15, 0x10
cmp r15, 0x250
jb 0x14002ecf1
mov word [rbp], r13w
xor al, al
mov r14, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140094850
add rsp, 0x240
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov al, 1
jmp 0x14002ee10
Function at 0x14002ee40
Capabilities:
Enumerate pe sections

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, 0x20
movzx r8d, word [rcx]
xor esi, esi
mov r14, rdx
mov rdi, rcx
mov r9d, esi
mov rax, rcx
mov rbx, rcx
test r8w, r8w
je 0x14002eece
cmp r8w, 0x5c
je 0x14002ee89
cmp r8w, 0x2f
je 0x14002ee89
add rax, 2
jmp 0x14002ee90
add rax, 2
mov rbx, rax
movzx r8d, word [rax]
test r8w, r8w
jne 0x14002ee75
movzx r8d, word [rbx]
test r8w, r8w
je 0x14002eece
nop dword [rax]
nop dword [rax + rax]
cmp r8w, 0x2e
mov rax, rbx
movzx r8d, word [rbx + 2]
cmovne rax, r9
add rbx, 2
mov r9, rax
test r8w, r8w
jne 0x14002eeb0
test r9, r9
lea rdx, [0x1400c6378]
cmovne rbx, r9
xor bpl, bpl
mov rcx, rbx
call fcn.14009b63c
test eax, eax
je 0x14002ef05
lea rdx, [0x1400c6388]
mov rcx, rbx
call fcn.14009b63c
test eax, eax
je 0x14002ef05
xor al, al
jmp 0x14002eff3
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x14002efef
mov r10, rax
mov eax, 0xfffffff0
and r10, rax
movsxd rdx, dword [r10 + 0x3c]
lea r8, [r10 + 0x18]
movzx ecx, word [rdx + r10 + 0x14]
movzx r9d, word [rdx + r10 + 6]
add rcx, rdx
add r8, rcx
cmp si, r9w
jae 0x14002efe6
movabs rdx, 0x61746164722e
nop dword [rax]
cmp qword [r8], rdx
jne 0x14002efaf
mov ebx, dword [r8 + 0xc]
mov eax, dword [r8 + 8]
add rbx, r10
lea rcx, [rbx - 0x54]
add rcx, rax
cmp rbx, rcx
ja 0x14002efaf
nop dword [rax]
cmp dword [rbx], 0x1a51504d
jne 0x14002efa6
cmp dword [rbx + 4], 0
jne 0x14002efa6
cmp dword [rbx + 0x2c], 0
jne 0x14002efa6
cmp byte [rbx + 0x40], 0x25
jne 0x14002efa6
cmp byte [rbx + 0x41], 0x73
jne 0x14002efa6
cmp byte [rbx + 0x42], bpl
je 0x14002efbe
add rbx, 4
cmp rbx, rcx
jbe 0x14002ef80
inc si
add r8, 0x28
cmp si, r9w
jb 0x14002ef60
jmp 0x14002efe6
mov eax, dword [rbx + 0x28]
lea rcx, [rbx + 0x30]
xor edx, edx
mov dword [r14 + 4], eax
call fcn.140094550
lea rcx, [rbx + 0x44]
mov qword [r14 + 8], rax
xor edx, edx
call fcn.140094550
mov qword [r14 + 0x10], rax
mov bpl, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
movzx eax, bpl
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14003a0b0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x60
xor r12d, r12d
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x48], r12
mov rcx, qword [0x1400e1230]
xor edx, edx
mov r8d, 0x2000
mov qword [rsp + 0x40], r12
mov esi, r12d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
jne 0x14003a0fc
lea eax, [rbp + 8]
add rsp, 0x60
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov edx, 0x80000000
mov rcx, rdi
mov qword [rsp + 0x90], r14
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x14003a144
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test eax, eax
jne 0x14003a2e4
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov edx, 0xc0000000
mov rcx, rbx
mov qword [rsp + 0x98], r15
mov dword [rsp + 0x20], 1
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x14003a18c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test eax, eax
jne 0x14003a2cd
lea r9, [rsp + 0x40]
xor edx, edx
mov r8d, 0x100
mov rcx, rdi
mov ebx, esi
call fcn.14003ee70
test al, al
je 0x14003a223
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x50]
mov r9d, 8
mov qword [rsp + 0x50], r12
mov dword [rsp + 0xa8], r12d
mov qword [rsp + 0x20], r12
lea edx, [r9 - 3]
call fcn.140042680
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0xa8]
mov r9d, 4
mov qword [rsp + 0x20], r12
lea edx, [r9 + 0x23]
call fcn.140042680
mov rcx, qword [rsp + 0x40]
call fcn.14003ec20
mov eax, dword [rsp + 0xa8]
and eax, 0x404
cmp eax, 0x404
jne 0x14003a21c
mov edi, 0x200
mov qword [rsp + 0x50], rdi
jmp 0x14003a24d
mov rdi, qword [rsp + 0x50]
jmp 0x14003a24d
lea rdx, [rsp + 0x4c]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x48], eax
cmp eax, 0x1000000
jae 0x14003a2b9
cmp dword [rsp + 0x4c], r12d
jne 0x14003a2b9
mov edi, eax
test ebx, ebx
jne 0x14003a2be
test edi, edi
je 0x14003a2be
mov ebx, 0x2000
mov qword [rsp + 0x20], r12
cmp edi, ebx
lea r9, [rsp + 0xa0]
mov rdx, rbp
mov rcx, r14
cmovb ebx, edi
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0xa0], ebx
jne 0x14003a2b2
lea r9, [rsp + 0xa0]
mov qword [rsp + 0x20], r12
mov r8d, ebx
mov rdx, rbp
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsp + 0xa0], ebx
jne 0x14003a2ab
sub edi, ebx
jne 0x14003a251
jmp 0x14003a2be
mov esi, 0x70
jmp 0x14003a2be
mov esi, 0x570
jmp 0x14003a2be
mov esi, 0x3ee
cmp r15, 0xffffffffffffffff
je 0x14003a2cd
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, qword [rsp + 0x98]
cmp r14, 0xffffffffffffffff
je 0x14003a2e4
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1400e1230]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r14, qword [rsp + 0x90]
mov eax, esi
add rsp, 0x60
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14003c300
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, 0x240
mov rax, qword [0x1400db800]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov r15, r8
mov rbp, rdx
mov rsi, rcx
xor r9d, r9d
mov rcx, r15
xor r8d, r8d
mov edx, 0xffffffff
xor edi, edi
call qword [sym.imp.SHELL32.dll_DragQueryFileW]
mov r14d, eax
mov ebx, edi
test eax, eax
je 0x14003c3b3
nop dword [rax]
mov rax, qword [0x1400e3070]
test rax, rax
je 0x14003c362
test byte [rax + 0x70], 1
jne 0x14003c3dc
mov r9d, 0x104
lea r8, [rsp + 0x20]
mov edx, ebx
mov rcx, r15
call qword [sym.imp.SHELL32.dll_DragQueryFileW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, 2
cmp eax, 0xffffffff
je 0x14003c3ac
mov rcx, rsi
test al, 0x10
je 0x14003c3a3
lea r8, [rsp + 0x20]
mov rdx, rbp
call fcn.14003c030
jmp 0x14003c3aa
lea rdx, [rsp + 0x20]
call rbp
mov edi, eax
inc ebx
cmp ebx, r14d
jb 0x14003c350
mov eax, edi
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140094850
mov rbx, qword [rsp + 0x288]
add rsp, 0x240
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
xor eax, eax
jmp 0x14003c3b5
Function at 0x14003c3e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x40
mov rax, qword [rdx]
mov rbx, rdx
xor r14d, r14d
mov qword [rdx + 0x48], rcx
lea rdx, [r11 - 0x28]
mov qword [r11 - 0x20], r14
mov edi, r14d
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x10], 1
mov qword [r11 - 0x18], 0xc6
call fcn.140017e30
mov rsi, qword [rbx + 0x28]
test rsi, rsi
je 0x14003c473
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea edi, [r14 + 2]
cmp eax, 0xffffffff
je 0x14003c46d
mov rcx, rbx
test al, 0x10
je 0x14003c463
mov r8, rsi
lea rdx, [fcn.14003b9b0]
call fcn.14003c030
mov edi, eax
lea rsi, [rbx + 0x40]
jmp 0x14003c491
mov rdx, rsi
call fcn.14003b9b0
mov edi, eax
lea rsi, [rbx + 0x40]
jmp 0x14003c491
mov r8, qword [rbx + 0x40]
lea rsi, [rbx + 0x40]
test r8, r8
je 0x14003c491
lea rdx, [fcn.14003b9b0]
mov rcx, rbx
call fcn.14003c300
mov edi, eax
mov rcx, qword [rbx]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x38], 1
mov qword [rsp + 0x30], 0xc3
call fcn.140017e30
mov rbp, qword [rbx + 0x28]
test rbp, rbp
je 0x14003c4f8
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, 2
cmp eax, 0xffffffff
je 0x14003c511
mov rcx, rbx
test al, 0x10
je 0x14003c4ee
mov r8, rbp
lea rdx, [fcn.14003bd30]
call fcn.14003c030
jmp 0x14003c50f
mov rdx, rbp
call fcn.14003bd30
jmp 0x14003c50f
mov r8, qword [rsi]
test r8, r8
je 0x14003c511
lea rdx, [fcn.14003bd30]
mov rcx, rbx
call fcn.14003c300
mov edi, eax
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], 0xc8
call fcn.140017e30
mov rcx, qword [rbx + 0x18]
mov rcx, qword [rcx + 0x20]
call fcn.14003ed60
mov rbx, qword [rsp + 0x50]
mov eax, edi
mov rdi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop r14
ret
Function at 0x14003cfb0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x490
mov rax, qword [0x1400db800]
xor rax, rsp
mov qword [rsp + 0x480], rax
xor r14d, r14d
mov r12, rcx
lea rcx, [rsp + 0x270]
mov r15d, r8d
mov rsi, rdx
mov edi, r14d
test rdx, rdx
je 0x14003d040
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rdx + rbx*2], di
jne 0x14003cff7
test rbx, rbx
je 0x14003d040
lea rax, [rdx - 2]
lea rax, [rax + rbx*2]
nop dword [rax]
cmp word [rax], 0x5c
jne 0x14003d022
sub rax, 2
sub rbx, 1
jne 0x14003d010
jmp 0x14003d040
add rbx, rbx
lea rcx, [rsp + 0x270]
mov r8, rbx
call fcn.1400b1500
lea rcx, [rsp + 0x270]
add rcx, rbx
mov word [rcx], 0x5c
lea rbx, [rcx + 2]
mov eax, dword [0x1400c53f0]
lea rdx, [rsp + 0x20]
mov word [rcx + 2], ax
mov word [rcx + 4], r14w
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14003d16a
call fcn.140018860
test al, al
jne 0x14003d15c
lea r8, [rsp + 0x4c]
mov edx, 0x104
sub r8, rbx
mov rcx, rbx
nop word [rax + rax]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x14003d0c3
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14003d0c3
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14003d0a0
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r14w
test byte [rsp + 0x20], 0x10
je 0x14003d128
cmp word [rsp + 0x4c], 0x2e
jne 0x14003d0fe
movzx eax, word [rsp + 0x4e]
cmp ax, 0x2e
jne 0x14003d0f4
cmp word [rsp + 0x50], r14w
jmp 0x14003d0f7
test ax, ax
sete al
test al, al
jne 0x14003d13a
lea r8d, [r15 + 1]
mov rcx, r12
lea rdx, [rsp + 0x270]
call fcn.14003cfb0
mov edi, eax
test eax, eax
jne 0x14003d161
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x14003d136
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x14003d152
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14003d078
jmp 0x14003d161
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x14003d161
mov edi, 0x4c7
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
test r15d, r15d
jne 0x14003d1ae
test edi, edi
je 0x14003d1ae
lea edx, [r15 + 3]
mov rcx, r12
cmp edi, 0x4c7
jne 0x14003d199
mov r8d, 0x126
call fcn.140018730
cmp eax, 6
cmovne r14d, edi
mov eax, r14d
jmp 0x14003d1b0
mov r9, rsi
mov r8d, 0x8f
call fcn.140018730
cmp eax, 6
cmove edi, r14d
mov eax, edi
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140094850
add rsp, 0x490
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140046ac0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x40
mov r10, rdx
mov qword [rsp + 0x30], 0
mov eax, r8d
mov dword [rsp + 0x28], 0
and eax, 0x200
mov dword [rsp + 0x20], 3
bts eax, 8
mov rbx, rcx
shr eax, 8
mov edx, 0x187
bt r8d, 8
mov ecx, 0x81
mov r8d, eax
cmovb edx, ecx
xor r9d, r9d
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 0x98], rax
cmp rax, 0xffffffffffffffff
jne 0x140046b2a
xor al, al
add rsp, 0x40
pop rbx
ret
lea rdx, [rsp + 0x54]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, qword [rbx + 0x98]
lea r9, [rbx + 0x90]
mov dword [rsp + 0x50], eax
xor r8d, r8d
mov rax, qword [rsp + 0x50]
xor edx, edx
mov qword [rbx + 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetFileTime]
mov al, 1
mov qword [rbx + 0x88], 0
add rsp, 0x40
pop rbx
ret

Function at 0x140049670
Capabilities:
Delete file
Move file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov eax, dword [rcx + 0xcc]
mov rdi, rdx
mov rbx, rcx
test al, al
je 0x1400496a2
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
bt eax, 8
jae 0x1400496c0
mov ecx, 5
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rdi
call qword [rdx + 0x78]
mov rcx, rbx
call qword [rbx + 0x78]
mov rcx, qword [rbx + 0xb0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, qword [rbx + 0xb0]
mov rcx, qword [rdi + 0xb0]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x140049695
mov r8d, dword [rbx + 0xcc]
mov rcx, rbx
mov rdx, qword [rbx + 0xb0]
call fcn.140046ac0
test al, al
je 0x140049695
mov rcx, rdi
call fcn.140049040
mov rbx, qword [rsp + 0x30]
mov al, 1
add rsp, 0x20
pop rdi
ret

Function at 0x14004a0c0
Capabilities:
Encode data using xor

Disassembly:
push rbx
movzx eax, byte [rcx]
mov r11d, r8d
mov qword [rsp + 0x18], rdi
mov edi, r9d
mov rbx, rdx
mov r10, rcx
test al, al
je 0x14004a0fb
nop word [rax + rax]
cmp al, 0x5c
je 0x14004a0e8
cmp al, 0x2f
jne 0x14004a0ec
lea r10, [rcx + 1]
movzx eax, byte [rcx + 1]
inc rcx
test al, al
jne 0x14004a0e0
movzx eax, byte [r10]
mov r8d, 0x7fed7fed
mov r9d, 0xeeeeeeee
test al, al
je 0x14004a15e
mov qword [rsp + 0x10], rsi
lea rsi, [0x140000000]
nop word [rax + rax]
movzx ecx, al
lea r10, [r10 + 1]
lea eax, [r9 + r8]
movzx edx, byte [rcx + rsi + 0xd9570]
lea ecx, [rdx + 0x300]
mov r8d, dword [rsi + rcx*4 + 0xde2a0]
xor r8d, eax
imul eax, r9d, 0x21
lea r9d, [r8 + 3]
add eax, edx
add r9d, eax
movzx eax, byte [r10]
test al, al
jne 0x14004a120
mov rsi, qword [rsp + 0x10]
bt edi, 0x11
mov rdi, qword [rsp + 0x18]
jae 0x14004a172
lea eax, [r8 + rbx]
xor eax, r11d
pop rbx
ret
mov eax, r8d
pop rbx
ret
Function at 0x14004a180
Capabilities:
Encode data using xor

Disassembly:
push rbx
mov rax, rcx
shr edx, 2
and eax, 3
mov r9, rcx
mov ebx, 0xeeeeeeee
test edx, edx
je 0x14004a29b
mov qword [rsp + 0x18], rsi
lea rsi, [0x1400de2a0]
test rax, rax
jne 0x14004a1f9
mov r10d, edx
nop
movzx eax, r8b
lea r9, [r9 + 4]
add eax, 0x400
mov ecx, r8d
not ecx
shl ecx, 0x15
add ebx, dword [rsi + rax*4]
mov eax, r8d
shr eax, 0xb
lea edx, [rbx + r8]
xor edx, dword [r9 - 4]
lea r8d, [rcx + 0x11111111]
or r8d, eax
mov dword [r9 - 4], edx
imul eax, ebx, 0x21
lea ebx, [rdx + 3]
add ebx, eax
sub r10, 1
jne 0x14004a1b0
mov rsi, qword [rsp + 0x18]
pop rbx
ret
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rdi
lea rdi, [rcx + 2]
mov ebp, edx
nop dword [rax]
movzx eax, r8b
lea rdi, [rdi + 4]
add eax, 0x400
add ebx, dword [rsi + rax*4]
lea ecx, [rbx + r8]
imul ebx, ebx, 0x21
xor byte [rdi - 6], cl
mov eax, ecx
movzx r11d, byte [rdi - 6]
shr eax, 8
xor byte [rdi - 5], al
mov eax, ecx
movzx r10d, byte [rdi - 5]
add ebx, 3
shr ecx, 0x18
xor byte [rdi - 3], cl
mov ecx, r8d
movzx r9d, byte [rdi - 3]
not ecx
shl r9d, 8
shr eax, 0x10
xor byte [rdi - 4], al
mov eax, r8d
movzx edx, byte [rdi - 4]
or r9d, edx
shl ecx, 0x15
shl r9d, 8
or r9d, r10d
shr eax, 0xb
shl r9d, 8
or r9d, r11d
lea r8d, [rcx + 0x11111111]
add ebx, r9d
or r8d, eax
sub rbp, 1
jne 0x14004a210
mov rdi, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
pop rbx
ret

Function at 0x14004a3e0
Capabilities:
Encode data using xor

Disassembly:
push rbx
mov rax, rcx
shr edx, 2
and eax, 3
mov r9, rcx
mov ebx, 0xeeeeeeee
test edx, edx
je 0x14004a50a
mov qword [rsp + 0x20], rdi
lea rdi, [0x1400de2a0]
test rax, rax
jne 0x14004a45a
mov r10d, edx
nop
mov edx, dword [r9]
lea r9, [r9 + 4]
movzx eax, r8b
mov ecx, r8d
add eax, 0x400
not ecx
shl ecx, 0x15
add ebx, dword [rdi + rax*4]
lea eax, [rbx + r8]
xor eax, edx
mov dword [r9 - 4], eax
mov eax, r8d
shr eax, 0xb
lea r8d, [rcx + 0x11111111]
or r8d, eax
imul eax, ebx, 0x21
lea ebx, [rdx + 3]
add ebx, eax
sub r10, 1
jne 0x14004a410
mov rdi, qword [rsp + 0x20]
pop rbx
ret
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
lea rsi, [rcx + 2]
mov ebp, edx
nop word [rax + rax]
movzx r11d, byte [rsi - 2]
movzx r10d, byte [rsi - 1]
movzx edx, byte [rsi + 1]
movzx r9d, byte [rsi]
lea rsi, [rsi + 4]
movzx eax, r8b
add eax, 0x400
add ebx, dword [rdi + rax*4]
lea ecx, [rbx + r8]
imul ebx, ebx, 0x21
movzx eax, cl
xor al, r11b
mov byte [rsi - 6], al
mov eax, ecx
shr eax, 8
xor al, r10b
mov byte [rsi - 5], al
mov eax, ecx
shr ecx, 0x18
xor cl, dl
shr eax, 0x10
mov byte [rsi - 3], cl
xor al, r9b
mov ecx, r8d
mov byte [rsi - 4], al
not ecx
mov eax, r8d
shl ecx, 0x15
shr eax, 0xb
lea r8d, [rcx + 0x11111111]
mov ecx, edx
shl ecx, 8
or r8d, eax
or ecx, r9d
shl ecx, 8
or ecx, r10d
shl ecx, 8
or ecx, r11d
add ecx, 3
add ebx, ecx
sub rbp, 1
jne 0x14004a470
mov rsi, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x20]
pop rbx
ret