joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47eb60
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push rbp
sub rsp, 0xb0
lea rbp, [rsp + 0x80]
vmovdqa xmm0, xmmword [rdx]
vmovaps xmmword [rbp - 0x50], xmm0
vmovdqa xmm1, xmmword [rcx]
vmovaps xmmword [rbp - 0x60], xmm1
vmovdqa xmmword [rbp - 0x40], xmm1
vmovdqa xmmword [rbp - 0x30], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0xaa
mov r8d, 0x10
call fcn.004adff0
lea rax, [rbp - 0x20]
mov qword [rbp - 0x10], 0x4d430001
mov qword [rbp - 8], rax
mov qword [rbp], 0x10
mov qword [rbp + 8], 0
mov qword [rbp + 0x10], 0
mov qword [rbp + 0x18], 0
lea rax, [rbp - 0x10]
xor ecx, ecx
mov edx, ecx
rol rdi, 3
rol rdi, 0xd
rol rdi, 0x3d
rol rdi, 0x33
xchg rbx, rbx
lea rcx, [rbp + 0x20]
mov edx, 0xaa
mov r8d, 0x10
call fcn.004adff0
vmovaps xmm3, xmmword [rbp - 0x60]
vmovaps xmm4, xmmword [rbp - 0x50]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], 0x4d430001
mov qword [rbp - 8], rax
mov qword [rbp], 0x10
mov qword [rbp + 8], 0
mov qword [rbp + 0x10], 0
mov qword [rbp + 0x18], 0
lea rax, [rbp - 0x10]
xor ecx, ecx
mov edx, ecx
rol rdi, 3
rol rdi, 0xd
rol rdi, 0x3d
rol rdi, 0x33
xchg rbx, rbx
vaeskeygenassist xmm2, xmm3, 0x10
vpslldq xmm1, xmm4, 4
vpxor xmm0, xmm4, xmm1
vpslldq xmm1, xmm0, 8
vpxor xmm0, xmm0, xmm1
vpshufd xmm1, xmm2, 0xff
vpxor xmm0, xmm0, xmm1
vmovdqa xmmword [rbp - 0x20], xmm2
vmovdqa xmmword [rbp + 0x20], xmm1
add rsp, 0xb0
pop rbp
ret

Function at 0x47ec90
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push rbp
sub rsp, 0xb0
lea rbp, [rsp + 0x80]
vmovdqa xmm0, xmmword [rdx]
vmovaps xmmword [rbp - 0x50], xmm0
vmovdqa xmm1, xmmword [rcx]
vmovaps xmmword [rbp - 0x60], xmm1
vmovdqa xmmword [rbp - 0x40], xmm1
vmovdqa xmmword [rbp - 0x30], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0xaa
mov r8d, 0x10
call fcn.004adff0
lea rax, [rbp - 0x20]
mov qword [rbp - 0x10], 0x4d430001
mov qword [rbp - 8], rax
mov qword [rbp], 0x10
mov qword [rbp + 8], 0
mov qword [rbp + 0x10], 0
mov qword [rbp + 0x18], 0
lea rax, [rbp - 0x10]
xor ecx, ecx
mov edx, ecx
rol rdi, 3
rol rdi, 0xd
rol rdi, 0x3d
rol rdi, 0x33
xchg rbx, rbx
lea rcx, [rbp + 0x20]
mov edx, 0xaa
mov r8d, 0x10
call fcn.004adff0
vmovaps xmm3, xmmword [rbp - 0x60]
vmovaps xmm4, xmmword [rbp - 0x50]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], 0x4d430001
mov qword [rbp - 8], rax
mov qword [rbp], 0x10
mov qword [rbp + 8], 0
mov qword [rbp + 0x10], 0
mov qword [rbp + 0x18], 0
lea rax, [rbp - 0x10]
xor ecx, ecx
mov edx, ecx
rol rdi, 3
rol rdi, 0xd
rol rdi, 0x3d
rol rdi, 0x33
xchg rbx, rbx
vaeskeygenassist xmm2, xmm3, 0x10
vpslldq xmm1, xmm4, 4
vpxor xmm0, xmm4, xmm1
vpslldq xmm1, xmm0, 8
vpxor xmm0, xmm0, xmm1
vpshufd xmm1, xmm2, 0xaa
vpxor xmm0, xmm0, xmm1
vmovdqa xmmword [rbp - 0x20], xmm2
vmovdqa xmmword [rbp + 0x20], xmm1
add rsp, 0xb0
pop rbp
ret
Function at 0x47edc0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push rbp
sub rsp, 0xb0
lea rbp, [rsp + 0x80]
vmovdqa xmm0, xmmword [rdx]
vmovaps xmmword [rbp - 0x50], xmm0
vmovdqa xmm1, xmmword [rcx]
vmovaps xmmword [rbp - 0x60], xmm1
vmovdqa xmmword [rbp - 0x40], xmm1
vmovdqa xmmword [rbp - 0x30], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0xaa
mov r8d, 0x10
call fcn.004adff0
lea rax, [rbp - 0x20]
mov qword [rbp - 0x10], 0x4d430001
mov qword [rbp - 8], rax
mov qword [rbp], 0x10
mov qword [rbp + 8], 0
mov qword [rbp + 0x10], 0
mov qword [rbp + 0x18], 0
lea rax, [rbp - 0x10]
xor ecx, ecx
mov edx, ecx
rol rdi, 3
rol rdi, 0xd
rol rdi, 0x3d
rol rdi, 0x33
xchg rbx, rbx
lea rcx, [rbp + 0x20]
mov edx, 0xaa
mov r8d, 0x10
call fcn.004adff0
vmovaps xmm3, xmmword [rbp - 0x60]
vmovaps xmm4, xmmword [rbp - 0x50]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], 0x4d430001
mov qword [rbp - 8], rax
mov qword [rbp], 0x10
mov qword [rbp + 8], 0
mov qword [rbp + 0x10], 0
mov qword [rbp + 0x18], 0
lea rax, [rbp - 0x10]
xor ecx, ecx
mov edx, ecx
rol rdi, 3
rol rdi, 0xd
rol rdi, 0x3d
rol rdi, 0x33
xchg rbx, rbx
vaeskeygenassist xmm2, xmm3, 0x20
vpslldq xmm1, xmm4, 4
vpxor xmm0, xmm4, xmm1
vpslldq xmm1, xmm0, 8
vpxor xmm0, xmm0, xmm1
vpshufd xmm1, xmm2, 0xff
vpxor xmm0, xmm0, xmm1
vmovdqa xmmword [rbp - 0x20], xmm2
vmovdqa xmmword [rbp + 0x20], xmm1
add rsp, 0xb0
pop rbp
ret

Function at 0x47eef0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push rbp
sub rsp, 0xb0
lea rbp, [rsp + 0x80]
vmovdqa xmm0, xmmword [rdx]
vmovaps xmmword [rbp - 0x50], xmm0
vmovdqa xmm1, xmmword [rcx]
vmovaps xmmword [rbp - 0x60], xmm1
vmovdqa xmmword [rbp - 0x40], xmm1
vmovdqa xmmword [rbp - 0x30], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0xaa
mov r8d, 0x10
call fcn.004adff0
lea rax, [rbp - 0x20]
mov qword [rbp - 0x10], 0x4d430001
mov qword [rbp - 8], rax
mov qword [rbp], 0x10
mov qword [rbp + 8], 0
mov qword [rbp + 0x10], 0
mov qword [rbp + 0x18], 0
lea rax, [rbp - 0x10]
xor ecx, ecx
mov edx, ecx
rol rdi, 3
rol rdi, 0xd
rol rdi, 0x3d
rol rdi, 0x33
xchg rbx, rbx
lea rcx, [rbp + 0x20]
mov edx, 0xaa
mov r8d, 0x10
call fcn.004adff0
vmovaps xmm3, xmmword [rbp - 0x60]
vmovaps xmm4, xmmword [rbp - 0x50]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], 0x4d430001
mov qword [rbp - 8], rax
mov qword [rbp], 0x10
mov qword [rbp + 8], 0
mov qword [rbp + 0x10], 0
mov qword [rbp + 0x18], 0
lea rax, [rbp - 0x10]
xor ecx, ecx
mov edx, ecx
rol rdi, 3
rol rdi, 0xd
rol rdi, 0x3d
rol rdi, 0x33
xchg rbx, rbx
vaeskeygenassist xmm2, xmm3, 0x20
vpslldq xmm1, xmm4, 4
vpxor xmm0, xmm4, xmm1
vpslldq xmm1, xmm0, 8
vpxor xmm0, xmm0, xmm1
vpshufd xmm1, xmm2, 0xaa
vpxor xmm0, xmm0, xmm1
vmovdqa xmmword [rbp - 0x20], xmm2
vmovdqa xmmword [rbp + 0x20], xmm1
add rsp, 0xb0
pop rbp
ret
Function at 0x47f020
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push rbp
sub rsp, 0xb0
lea rbp, [rsp + 0x80]
vmovdqa xmm0, xmmword [rdx]
vmovaps xmmword [rbp - 0x50], xmm0
vmovdqa xmm1, xmmword [rcx]
vmovaps xmmword [rbp - 0x60], xmm1
vmovdqa xmmword [rbp - 0x40], xmm1
vmovdqa xmmword [rbp - 0x30], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0xaa
mov r8d, 0x10
call fcn.004adff0
lea rax, [rbp - 0x20]
mov qword [rbp - 0x10], 0x4d430001
mov qword [rbp - 8], rax
mov qword [rbp], 0x10
mov qword [rbp + 8], 0
mov qword [rbp + 0x10], 0
mov qword [rbp + 0x18], 0
lea rax, [rbp - 0x10]
xor ecx, ecx
mov edx, ecx
rol rdi, 3
rol rdi, 0xd
rol rdi, 0x3d
rol rdi, 0x33
xchg rbx, rbx
lea rcx, [rbp + 0x20]
mov edx, 0xaa
mov r8d, 0x10
call fcn.004adff0
vmovaps xmm3, xmmword [rbp - 0x60]
vmovaps xmm4, xmmword [rbp - 0x50]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], 0x4d430001
mov qword [rbp - 8], rax
mov qword [rbp], 0x10
mov qword [rbp + 8], 0
mov qword [rbp + 0x10], 0
mov qword [rbp + 0x18], 0
lea rax, [rbp - 0x10]
xor ecx, ecx
mov edx, ecx
rol rdi, 3
rol rdi, 0xd
rol rdi, 0x3d
rol rdi, 0x33
xchg rbx, rbx
vaeskeygenassist xmm2, xmm3, 0x40
vpslldq xmm1, xmm4, 4
vpxor xmm0, xmm4, xmm1
vpslldq xmm1, xmm0, 8
vpxor xmm0, xmm0, xmm1
vpshufd xmm1, xmm2, 0xff
vpxor xmm0, xmm0, xmm1
vmovdqa xmmword [rbp - 0x20], xmm2
vmovdqa xmmword [rbp + 0x20], xmm1
add rsp, 0xb0
pop rbp
ret
Function at 0x140023008
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14002301e
mov al, 1
jmp 0x14002308a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14002302f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140023088
mov ecx, dword [rcx + 0x18]
nop
call fcn.14002b570
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140023088
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140023088
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140023088
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14002308a
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140023c90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1400319a0
sub rsp, rax
mov rax, qword [0x140173950]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140020a24
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140023cdf
mov rax, rbp
jmp 0x140023deb
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x173ef0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400238cc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x173ef0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140023de7
mov dword [rsp + 0x30], edi
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + r12*8 + 0x28]
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140023de7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400238cc
test rax, rax
js 0x140023de7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140023de7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140023dd9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140023dd9
cmp byte [rcx], 0xd
jne 0x140023dbf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140023dce
cmp byte [rcx + 1], 0xa
jne 0x140023dce
inc rcx
jmp 0x140023dce
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1732c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140023da1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140023deb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140030b80
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400253e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140173ef0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140025437
cmp word [rdx], r13w
jne 0x140025437
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14002543c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14002556d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14002558e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140025475
mov rdx, r9
mov word [rbx], cx
jmp 0x14002549c
cmp r9, r8
jae 0x1400254ac
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140025456
jmp 0x14002556d
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], si
mov r8d, r12d
mov dword [rsp + 0x80], esi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rsi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140025562
cmp dword [rsp + 0x80], esi
je 0x140025562
lea r8, [0x140173ef0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14002553a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14002550a
mov word [rbx], r13w
jmp 0x14002556a
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140025517
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14002556a
cmp word [rsp + 0x70], r13w
jne 0x140025547
cmp rbx, r14
je 0x140025504
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400238d4
cmp word [rsp + 0x70], r13w
je 0x14002556d
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140173ef0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140025567
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14002556d
Function at 0x14002716c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400271db
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400271db
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400271db
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400271db
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400271db
cmp dword [rcx + 0x84], 0xe
jbe 0x1400271db
cmp dword [rcx + 0xf8], 0
je 0x1400271db
mov ecx, ebx
call fcn.14002728c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140027070
nop
cmp dword [rbp + 0x20], 0
je 0x140027229
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140027234
int3
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x14002716c

Function at 0x140027368
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002716c

Function at 0x14002aa98
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov dword [rsp + 0x30], esi
mov rbx, rcx
test rcx, rcx
je 0x14002ab0b
cmp word [rcx], si
je 0x14002ab0b
lea rdx, [0x14011c368]
call fcn.14002e4e8
test eax, eax
je 0x14002ab0b
lea rdx, [0x14011c370]
mov rcx, rbx
call fcn.14002e4e8
test eax, eax
jne 0x14002ab01
mov ecx, dword [rdi + 8]
lea r9d, [rsi + 2]
lea r8, [rsp + 0x30]
mov edx, 0x2000000b
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14002ab28
mov eax, dword [rsp + 0x30]
jmp 0x14002ab3a
mov rcx, rbx
call fcn.14000dfd0
jmp 0x14002ab3a
mov ecx, dword [rdi + 8]
lea r8, [rsp + 0x30]
mov r9d, 2
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x14002ab2c
xor eax, eax
jmp 0x14002ab3a
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x14002ab3a
call qword [sym.imp.KERNEL32.dll_GetACP]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14002ab4c
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ebp, edx
mov dword [rax + 8], ebx
mov edi, ecx
call fcn.14001cb30
mov ecx, edi
lea r9d, [rbx + 2]
and ecx, 0x3ff
lea r8, [rsp + 0x30]
bts ecx, 0xa
mov edx, 0x20000001
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14002abef
cmp edi, dword [rsp + 0x30]
je 0x14002abe8
test ebp, ebp
je 0x14002abe8
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x14002abc4
sub dx, 0x61
cmp dx, 0x19
ja 0x14002abd0
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x14002abb1
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x14002abd4
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x14002abf1
mov eax, 1
jmp 0x14002abf1
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14002f6c4
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.1400238d4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400238d4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002f814
cmp rax, 0xffffffffffffffff
je 0x14002f814
xor edi, edi
test rbp, rbp
jle 0x14002f7bf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001a5d0
mov rbx, rax
test rax, rax
jne 0x14002f74c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002f7b5
mov edx, 0x8000
mov ecx, r14d
call fcn.14002f548
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.14002181c
cmp eax, 0xffffffff
je 0x14002f795
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002f75c
mov edx, r15d
mov ecx, r14d
call fcn.14002f548
jmp 0x14002f7b5
cmp byte [rsi + 0x38], dil
je 0x14002f7ac
cmp dword [rsi + 0x34], 5
jne 0x14002f7ac
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002f7b5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001bb4c
jmp 0x14002f828
jns 0x14002f828
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400238d4
cmp rax, 0xffffffffffffffff
jne 0x14002f7e0
cmp byte [rsi + 0x30], dil
je 0x14002f828
mov edi, dword [rsi + 0x2c]
jmp 0x14002f828
mov ecx, r14d
call fcn.14002b570
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14002f828
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 0x14002f828
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14002f821
mov eax, dword [rsi + 0x2c]
jmp 0x14002f826
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400238d4
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 0x140030398
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14003041f
mov rsi, rbx
cmp word [rax], bp
je 0x1400303de
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400303c8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400303c4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001baec
mov rdi, rax
test rax, rax
je 0x14003040c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400333b0
mov rbp, rdi
xor ecx, ecx
call fcn.14001bb4c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140031840
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003188a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003188a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003188a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003188a
cmp dword [rcx + 0x84], 0xe
jbe 0x14003188a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14003188c
xor al, al
add rsp, 0x28
ret

Function at 0x14003fadc
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14003fafc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000e178
or eax, 0xffffffff
jmp 0x14003fafe
xor eax, eax
add rsp, 0x28
ret
Function at 0x14004585c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xf0
mov rbx, qword [0x140176940]
mov rdi, rcx
test rbx, rbx
je 0x1400459f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x14016d460], 5
jbe 0x1400459e7
movabs rdx, 0x800000000000
test qword [0x14016d470], rdx
je 0x1400459e7
mov rax, qword [0x14016d478]
and rax, rdx
cmp rax, qword [0x14016d478]
jne 0x1400459e7
mov rax, qword [rdi]
lea rdx, [0x140158f81]
mov qword [rbp + 0x3f], 0x2000000
mov ecx, dword [rax]
mov dword [rbp + 0x6f], ecx
mov rcx, qword [0x140176938]
mov eax, dword [rcx + 0x48]
mov dword [rbp + 0x77], eax
mov eax, dword [rcx + 0x44]
mov dword [rbp + 0x7f], eax
mov eax, dword [rcx + 0x40]
mov dword [rbp - 9], eax
movzx eax, byte [rcx + 0x3c]
mov dword [rbp - 5], eax
movzx eax, byte [rcx + 0x3b]
mov dword [rbp - 1], eax
movzx eax, byte [rcx + 0x3a]
mov dword [rbp + 3], eax
movzx eax, byte [rcx + 0x39]
mov dword [rbp + 7], eax
movzx eax, byte [rcx + 0x38]
mov dword [rbp + 0xb], eax
mov rax, qword [rcx + 0x30]
mov qword [rbp + 0xf], rax
mov rax, qword [rcx + 0x28]
mov qword [rbp + 0x17], rax
mov rax, qword [rcx + 0x20]
mov qword [rbp + 0x1f], rax
mov rax, qword [rcx + 0x18]
mov qword [rbp + 0x27], rax
mov rax, qword [rcx + 0x10]
mov qword [rbp + 0x2f], rax
mov rax, qword [rcx + 8]
mov qword [rbp + 0x37], rax
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x98], rax
lea rax, [rbp + 0x77]
mov qword [rsp + 0x90], rax
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x88], rax
lea rax, [rbp - 9]
mov qword [rsp + 0x80], rax
lea rax, [rbp - 5]
mov qword [rsp + 0x78], rax
lea rax, [rbp - 1]
mov qword [rsp + 0x70], rax
lea rax, [rbp + 3]
mov qword [rsp + 0x68], rax
lea rax, [rbp + 7]
mov qword [rsp + 0x60], rax
lea rax, [rbp + 0xb]
mov qword [rsp + 0x58], rax
lea rax, [rbp + 0xf]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x17]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x1f]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x27]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x2f]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x37]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x3f]
mov qword [rsp + 0x20], rax
call fcn.140001000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [0x14016d280]
lea rax, [0x14016d280]
cmp rcx, rax
je 0x140045a24
test byte [rcx + 0x1c], 4
je 0x140045a24
mov r9, qword [rdi]
lea r8, [0x140128c40]
mov rcx, qword [rcx + 0x10]
mov edx, 0x15
mov r9d, dword [r9]
call fcn.140044380
add rsp, 0xf0
pop rdi
pop rbx
pop rbp
ret
Function at 0x14004933c
Capabilities:
Open clipboard

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x140049393
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x140049366
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x140049393
mov rcx, qword [0x14016d280]
lea rdi, [0x14016d280]
cmp rcx, rdi
je 0x14004945f
test byte [rcx + 0x1c], 1
je 0x14004945f
mov edx, 0x1b
jmp 0x14004944c
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x1400493e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x1400493b2
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
jns 0x1400493e7
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rcx, qword [0x14016d280]
lea rdi, [0x14016d280]
cmp rcx, rdi
je 0x14004945f
test byte [rcx + 0x1c], 1
je 0x14004945f
mov edx, 0x1c
mov r9d, ebx
jmp 0x14004944f
mov rcx, qword [0x14016d280]
lea rdi, [0x14016d280]
cmp rcx, rdi
je 0x140049415
test byte [rcx + 0x1c], 4
je 0x140049415
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b188]
mov edx, 0x1d
call fcn.140044360
call qword [sym.imp.USER32.dll_CloseClipboard]
test eax, eax
jne 0x14004945f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x140049433
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x14004945f
mov rcx, qword [0x14016d280]
cmp rcx, rdi
je 0x14004945f
test byte [rcx + 0x1c], 1
je 0x14004945f
mov edx, 0x1e
mov r9d, eax
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b188]
call fcn.140044380
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret