joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140050bc4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400307f4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140050c4e
cmp byte [rbp - 0x21], r15b
je 0x140050c49
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140050c84
call fcn.1400419f0
test eax, eax
jne 0x140050c70
cmp byte [rbp - 0x21], r15b
je 0x140050c68
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140050c84
cmp byte [rbp - 0x21], r15b
je 0x140050c81
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14003cb1c
test eax, eax
jne 0x140050d24
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400307f4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140050cc3
cmp byte [rbp - 0x21], r15b
je 0x140050cf8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140050cf8
call fcn.1400419f0
test eax, eax
jne 0x140050ce4
cmp byte [rbp - 0x21], r15b
je 0x140050cdd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140050cf8
cmp byte [rbp - 0x21], r15b
je 0x140050cf5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14003cb1c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140050d24
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140050d27
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140050d35
mov rcx, rdi
call fcn.1400404dc
cmp byte [rbp + 0x3f], r15b
je 0x140050d44
mov rcx, qword [rbp + 0x27]
call fcn.1400404dc
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400519e4
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400450bc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400450bc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140051b34
cmp rax, 0xffffffffffffffff
je 0x140051b34
xor edi, edi
test rbp, rbp
jle 0x140051adf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140040464
mov rbx, rax
test rax, rax
jne 0x140051a6c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140051ad5
mov edx, 0x8000
mov ecx, r14d
call fcn.14003dbcc
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140043644
cmp eax, 0xffffffff
je 0x140051ab5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140051a7c
mov edx, r15d
mov ecx, r14d
call fcn.14003dbcc
jmp 0x140051ad5
cmp byte [rsi + 0x38], dil
je 0x140051acc
cmp dword [rsi + 0x34], 5
jne 0x140051acc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140051ad5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400404dc
jmp 0x140051b48
jns 0x140051b48
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400450bc
cmp rax, 0xffffffffffffffff
jne 0x140051b00
cmp byte [rsi + 0x30], dil
je 0x140051b48
mov edi, dword [rsi + 0x2c]
jmp 0x140051b48
mov ecx, r14d
call fcn.14004a894
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140051b48
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140051b48
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140051b41
mov eax, dword [rsi + 0x2c]
jmp 0x140051b46
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400450bc
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140052760
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140052788
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140052788
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14072c058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14072c1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14072c089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14072c06f
add dl, dl
jne 0x14072c096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14072c0f6
xor eax, eax
add dl, dl
jne 0x14072c0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14072c1ad
add dl, dl
jne 0x14072c0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14072c0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14072c0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14072c0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14072c0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14072c07e
mov eax, 1
add dl, dl
jne 0x14072c106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14072c113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14072c0fb
sub eax, ebx
mov ebx, 1
jne 0x14072c14c
mov ecx, 1
add dl, dl
jne 0x14072c12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14072c13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14072c123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14072c07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14072c168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14072c175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14072c15d
cmp eax, 0x7d00
jae 0x14072c19b
cmp eax, 0x500
jb 0x14072c196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14072c07e
cmp eax, 0x7f
ja 0x14072c19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14072c07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14072c1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14072c07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20

Function at 0x141004ed0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x141004eda
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x141004f03
pop rbp
sub rbp, 0x33
sub rbp, 0x1004ed0
sub rsp, 0x20
jmp 0x141004f22
add al, 0
add byte [rax], al
fsubr st(7)
push rdi
cmp dword [rax - 0x39], ecx
rcl al, 0x4e
add byte [rcx], al
mov rax, 0x1004ed0
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffb3b5d836
xor byte [rax], dl
inc rax
dec rcx
jne 0x141004f41
jmp 0x141004f58
jle 0x141004f19
fistp qword [rbp + 0x36360abf]
jle 0x141004f1a
idiv dword [rsi]
invalid
Function at 0x140028974
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001c284
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c284
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140028ac4
cmp rax, 0xffffffffffffffff
je 0x140028ac4
xor edi, edi
test rbp, rbp
jle 0x140028a6f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001eb98
mov rbx, rax
test rax, rax
jne 0x1400289fc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140028a65
mov edx, 0x8000
mov ecx, r14d
call fcn.140019be8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001cf60
cmp eax, 0xffffffff
je 0x140028a45
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140028a0c
mov edx, r15d
mov ecx, r14d
call fcn.140019be8
jmp 0x140028a65
cmp byte [rsi + 0x38], dil
je 0x140028a5c
cmp dword [rsi + 0x34], 5
jne 0x140028a5c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140028a65
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001a948
jmp 0x140028ad8
jns 0x140028ad8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c284
cmp rax, 0xffffffffffffffff
jne 0x140028a90
cmp byte [rsi + 0x30], dil
je 0x140028ad8
mov edi, dword [rsi + 0x2c]
jmp 0x140028ad8
mov ecx, r14d
call fcn.14001871c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140028ad8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140028ad8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140028ad1
mov eax, dword [rsi + 0x2c]
jmp 0x140028ad6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c284
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140029bd0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140029bf8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140029bf8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140001978
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400019c2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400019c2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400019c2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400019c2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400019c2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400019c4
xor al, al
add rsp, 0x28
ret
Function at 0x140014360
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x10040
call fcn.140030cb0
sub rsp, rax
mov rbx, rcx
xor edx, edx
lea rcx, [section.sect_4]
nop
movzx eax, byte [rdx + rcx + 0xb0310]
inc rdx
cmp rdx, 8
mov byte [rsp + rdx + 0x1f], al
movzx eax, byte [rdx + rcx + 0xb0097]
mov byte [rsp + rdx + 0x27], al
jl 0x140014380
lea rdx, str.AU3_
lea rcx, [rsp + 0x10058]
call fcn.140017e10
lea rdx, [rsp + 0x10058]
lea rcx, [rsp + 0x30]
mov r8d, 4
call fcn.140016710
xor edi, edi
nop
mov r9, qword [rbx]
lea rcx, [rsp + 0x40]
mov edx, 1
mov r8d, 0x10000
call fcn.140019a28
cmp eax, 0x18
jl 0x14001444c
lea r10d, [rax - 0x14]
xor ecx, ecx
mov r11, rax
test r10d, r10d
jle 0x140014426
lea rdx, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
movzx eax, byte [rdx + r8]
cmp byte [rsp + r8 + 0x20], al
je 0x14001443e
cmp r9d, 0x14
je 0x1400313d0
inc ecx
inc rdx
cmp ecx, r10d
jl 0x140014400
mov rcx, qword [rbx]
mov edx, 0xffffffec
lea edi, [rdi + r11 - 0x14]
lea r8d, [rdx + 0x15]
call fcn.140019e98
jmp 0x1400143d0
inc r8
inc r9d
cmp r8, 0x14
jl 0x140014406
jmp 0x140014412
mov eax, 3
mov rbx, qword [rsp + 0x10050]
add rsp, 0x10040
pop rdi
ret
lea edx, [rdi + rcx + 0x14]
mov rcx, qword [rbx]
xor r8d, r8d
call fcn.140019e98
mov r9, qword [rbx]
mov edx, 1
lea r8d, [rdx + 3]
lea rcx, [rsp + 0x10058]
call fcn.140019a28
lea rdx, str.EA06
lea rcx, [rsp + 0x10058]
mov byte [rsp + 0x1005c], 0
call fcn.140019a60
neg eax
sbb eax, eax
and eax, 4
jmp 0x140014451

Function at 0x140014530
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, 0x1d0
mov rdi, rcx
mov rsi, rdx
lea rcx, [0x14009b6c0]
or edx, 0xffffffff
call fcn.140014470
lea rcx, [rsp + 0xc0]
mov rdx, rax
mov rbx, rax
call fcn.140017e10
mov rcx, rbx
call fcn.140016a60
lea rcx, [rsp + 0x30]
call fcn.140014620
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x30]
call fcn.1400146b0
xor ebp, ebp
mov dword [rdi + 0xc], ebp
mov rdx, rbp
mov ecx, ebp
movzx eax, byte [rsp + rdx + 0x30]
add rdx, 4
add ecx, eax
movzx eax, byte [rsp + rdx + 0x2d]
add ecx, eax
movzx eax, byte [rsp + rdx + 0x2e]
add ecx, eax
movzx eax, byte [rsp + rdx + 0x2f]
add ecx, eax
cmp rdx, 0x10
jl 0x14001459d
mov dword [rdi + 0xc], ecx
lea rdx, [0x14009e810]
mov rcx, rsi
call fcn.1400195fc
mov qword [rdi], rax
test rax, rax
je 0x140033c60
mov rcx, rdi
call fcn.140014360
test eax, eax
je 0x140033c6a
mov rcx, qword [rdi]
mov ebx, eax
call fcn.140019694
mov eax, ebx
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov eax, 1
jmp 0x1400145fd
mov r9, qword [rdi]
mov edx, 1
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0xf]
call fcn.140019a28
lea rdx, [rsp + 0x20]
mov r9d, 0x99f2
mov r8d, reloc.WSOCK32.dll_recv
mov rcx, rdi
call fcn.140058f00
mov dword [rdi + 0xc], ebp
mov ecx, ebp
movzx eax, byte [rsp + rbp + 0x20]
inc rbp
imul ecx, eax
cmp rbp, 0x10
jl 0x140033c9e
mov dword [rdi + 0xc], ecx
mov rcx, qword [rdi]
call fcn.140019d7c
mov dword [rdi + 8], eax
xor eax, eax
jmp 0x1400145fd
Function at 0x14007af00
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor eax, eax
mov r12, r9
mov r15, rdx
lea ebx, [rax + 1]
mov edi, eax
mov ebp, eax
cmp qword [rdx + 8], rax
je 0x14007b0d6
mov rsi, qword [rsp + 0xc0]
mov r14, qword [rsp + 0xb8]
mov r13, qword [rsp + 0xb0]
mov byte [rsi], al
mov byte [r14], al
mov byte [r13], al
mov byte [r9], al
movsxd rdx, edi
mov rcx, r15
call fcn.140043480
cmp word [rax], 0x2b
je 0x14007af84
cmp word [rax], 0x5e
je 0x14007af7e
cmp word [rax], 0x21
je 0x14007af7e
cmp word [rax], 0x23
jne 0x14007afad
cmp word [rax], 0x2b
jne 0x14007af8a
mov byte [r12], bl
jmp 0x14007afa9
cmp word [rax], 0x5e
jne 0x14007af96
mov byte [r13], bl
jmp 0x14007afa9
cmp word [rax], 0x21
jne 0x14007afa1
mov byte [r14], bl
jmp 0x14007afa9
cmp word [rax], 0x23
jne 0x14007afa9
mov byte [rsi], bl
add edi, ebx
jmp 0x14007af5b
movsxd rdx, edi
add edi, ebx
mov rcx, r15
mov dword [rsp + 0x98], edi
call fcn.140043480
mov rsi, qword [rsp + 0xa0]
movzx ecx, word [rax]
cmp cx, 0x7b
jne 0x14007b0a6
lea rcx, [rsp + 0x30]
mov edx, 0x40
call fcn.140011880
mov rcx, qword [rsp + 0x90]
lea rax, [rsp + 0x98]
lea r9, [rsp + 0x30]
mov edx, 0x7d
mov r8, r15
mov qword [rsp + 0x20], rax
call fcn.140071280
test al, al
je 0x14007b08c
lea rdi, [0x1400b0bf0]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rdi]
call fcn.140016d8c
test eax, eax
je 0x14007b03a
lea rax, reloc.WSOCK32.dll_accept
add rdi, 8
add ebp, ebx
cmp rdi, rax
jl 0x14007b017
cmp ebp, 0x62
jne 0x14007b078
lea rcx, [rsp + 0x30]
xor edx, edx
call fcn.140002170
movzx ecx, word [rax]
call qword [sym.imp.USER32.dll_VkKeyScanW]
movsx ecx, ax
bt ecx, 9
mov dword [rsi], ecx
jae 0x14007b063
mov byte [r13], bl
bt ecx, 0xa
jae 0x14007b06c
mov byte [r14], bl
bt ecx, 8
jae 0x14007b09a
mov byte [r12], bl
jmp 0x14007b09a
lea rcx, [section.sect_4]
movsxd rax, ebp
cmp byte [rax + rcx + 0xb0f00], 0
je 0x14007b090
xor bl, bl
jmp 0x14007b09a
movzx eax, byte [rax + rcx + 0xb0f70]
mov dword [rsi], eax
lea rcx, [rsp + 0x30]
call fcn.140002610
jmp 0x14007b0ce
call qword [sym.imp.USER32.dll_VkKeyScanW]
movsx ecx, ax
bt ecx, 9
mov dword [rsi], ecx
jae 0x14007b0bb
mov byte [r13], bl
bt ecx, 0xa
jae 0x14007b0c4
mov byte [r14], bl
bt ecx, 8
jae 0x14007b0ce
mov byte [r12], bl
and dword [rsi], 0xff
mov al, bl
mov rbx, qword [rsp + 0xa8]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140001493
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1400014d7
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x1400014d2
cmp rbx, r11
jae 0x1400014d7
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x1400014c0
cmp rbx, r11
jb 0x1400014db
xor eax, eax
jmp 0x1400014e7
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400017f0
Capabilities:
Copy file
Move file

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [rcx + 0x2138]
mov rbx, r8
mov r10, rdx
test al, 1
mov eax, 2
mov r8d, 0
cmovne r8d, eax
mov eax, dword [rcx + 0x2138]
mov r9, rcx
mov rdx, rbx
mov rcx, r10
test al, 2
je 0x140001849
or r8d, 0xa
mov dword [rsp + 0x20], r8d
lea r8, [0x140001710]
call qword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
mov rcx, rbx
add rsp, 0x30
pop rbx
jmp fcn.1400016b0
lea r8, [0x140001710]
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CopyFileExW]
mov rcx, rbx
add rsp, 0x30
pop rbx
jmp fcn.1400016b0

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, rdx
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400018c2
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400018c2
mov edx, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400040a0
Capabilities:
Get disk information

Disassembly:
push rdi
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x88], rbx
mov rax, qword [0x140197b10]
xor rax, rsp
mov qword [rsp + 0x68], rax
movsxd rbx, ecx
lea rdi, [0x140195170]
cmp byte [rbx + rdi], 0xff
jne 0x140004183
add cx, 0x41
mov word [rsp + 0x58], cx
mov eax, 0x3a
mov word [rsp + 0x5a], ax
xor eax, eax
mov word [rsp + 0x5c], ax
mov word [rsp + 0x5e], ax
mov word [rsp + 0x60], ax
mov word [rsp + 0x62], ax
mov word [rsp + 0x64], ax
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
sete al
mov byte [rbx + rdi], al
test al, al
je 0x14000417d
mov eax, 0x5c
mov word [rsp + 0x5c], ax
mov eax, 0x4e
mov word [rsp + 0x5e], ax
mov eax, 0x55
mov word [rsp + 0x60], ax
mov eax, 0x4c
mov word [rsp + 0x62], ax
lea rcx, [rsp + 0x28]
call fcn.1400dd0c8
nop
xor r8d, r8d
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x28]
call fcn.1400dd1cc
test eax, eax
sete al
mov byte [rbx + rdi], al
lea rcx, [rsp + 0x28]
call fcn.1400dd124
movsx eax, byte [rbx + rdi]
jmp 0x140004187
movsx eax, byte [rbx + rdi]
jmp 0x140004187
movsx eax, byte [rbx + rdi]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14010bcc0
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret

Function at 0x140004750
Capabilities:
Get file system object information

Disassembly:
push rbx
sub rsp, 0x300
mov rax, qword [0x140197b10]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov rbx, rcx
mov rcx, qword [rcx + 0xc0]
xor r9d, r9d
mov rcx, qword [rcx + 0x40]
xor r8d, r8d
mov edx, 0x1108
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, rax
call fcn.1400d9d4c
test rax, rax
je 0x1400047a3
lea rcx, [rbx + 0xc8]
call fcn.1400d9cd0
mov rcx, qword [rbx + 0xd8]
lea r8, [rsp + 0x30]
mov r9d, 0x2b8
xor edx, edx
mov dword [rsp + 0x20], 0x4001
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
jne 0x1400047e1
lea rcx, [rbx + 0xe8]
lea rdx, str.Cannot_retrive_the_Handle_of_system_ImageList_
call fcn.140002280
xor eax, eax
jmp 0x140004823
mov rcx, qword [rbx + 0xc0]
mov qword [rbx + 0xd0], rax
lea rax, [rbx + 0xc8]
test rax, rax
jne 0x140004800
xor r9d, r9d
jmp 0x140004804
mov r9, qword [rax + 8]
mov rcx, qword [rcx + 0x40]
xor r8d, r8d
mov edx, 0x1109
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, rax
call fcn.1400d9d4c
mov eax, 1
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.14010bcc0
add rsp, 0x300
pop rbx
ret
Function at 0x1400075f0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x480
mov rax, qword [0x140197b10]
xor rax, rsp
mov qword [rsp + 0x470], rax
xor esi, esi
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x50]
mov edx, 0x209
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x48], rsi
mov word [rsp + 0x50], si
call fcn.140063ce0
lea edx, [rsi + 0x5c]
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_StrChrW]
lea r8d, [rsi + 0x5c]
lea rcx, [rsp + 0x50]
xor edx, edx
mov rdi, rax
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
mov rbx, rax
test rax, rax
je 0x1400076b6
mov dword [rsp + 0x38], esi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rsi
mov word [rbx + 2], si
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x1400076de
mov word [rbx], si
cmp rbx, rdi
jbe 0x1400076b6
lea r8d, [rax + 0x5c]
lea rcx, [rsp + 0x50]
xor edx, edx
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
mov rbx, rax
test rax, rax
jne 0x140007662
or eax, 0xffffffff
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14010bcc0
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov eax, dword [rsp + 0x40]
shr eax, 0x13
and eax, 1
jmp 0x1400076b9

Function at 0x140007700
Capabilities:
Get file system object information
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x510
mov rax, qword [0x140197b10]
xor rax, rsp
mov qword [rsp + 0x500], rax
lea rsi, [0x140000000]
mov edi, ecx
mov eax, dword [rsi + rdi*4 + 0x195288]
test eax, eax
jns 0x1400077bd
mov rcx, qword [rsi + rdi*8 + 0x195278]
lea rdx, [rsp + 0x2f0]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor r11d, r11d
test edi, edi
je 0x140007775
mov eax, 0x5c
mov word [rsp + 0x2f6], r11w
mov word [rsp + 0x2f4], ax
lea rcx, [rsp + 0x38]
xor edx, edx
mov r8d, 0x2b0
mov qword [rsp + 0x30], r11
call fcn.14010c6c0
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x2f0]
mov r9d, 0x2b8
mov edx, 0x10
mov dword [rsp + 0x20], 0x110
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [rsp + 0x38]
mov dword [rsi + rdi*4 + 0x195288], eax
mov rcx, qword [rsp + 0x500]
xor rcx, rsp
call fcn.14010bcc0
lea r11, [rsp + 0x510]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret