joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002242c
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14002245c
xor eax, eax
jmp 0x14002251f
mov rbp, rbx
cmp word [rax], si
je 0x140022481
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140022468
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140022464
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14001fa78
movsxd r14, eax
test eax, eax
jne 0x1400224bf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140022455
mov rcx, r14
call fcn.14001d48c
mov rdi, rax
test rax, rax
jne 0x1400224d8
xor ecx, ecx
call fcn.14001a7d8
jmp 0x1400224b4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14001fa78
test eax, eax
jne 0x140022509
mov rcx, rdi
call fcn.14001a7d8
jmp 0x140022513
xor ecx, ecx
call fcn.14001a7d8
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14002253c
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 0x1400225c3
mov rsi, rbx
cmp word [rax], bp
je 0x140022582
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14002256c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140022568
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001d48c
mov rdi, rax
test rax, rax
je 0x1400225b0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140029910
mov rbp, rdi
xor ecx, ecx
call fcn.14001a7d8
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 0x140026c64
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.140014dec
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140026cee
cmp byte [rbp - 0x21], r15b
je 0x140026ce9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140026d24
call fcn.14001e98c
test eax, eax
jne 0x140026d10
cmp byte [rbp - 0x21], r15b
je 0x140026d08
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140026d24
cmp byte [rbp - 0x21], r15b
je 0x140026d21
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.1400148d4
test eax, eax
jne 0x140026dc4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140014dec
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140026d63
cmp byte [rbp - 0x21], r15b
je 0x140026d98
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140026d98
call fcn.14001e98c
test eax, eax
jne 0x140026d84
cmp byte [rbp - 0x21], r15b
je 0x140026d7d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140026d98
cmp byte [rbp - 0x21], r15b
je 0x140026d95
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.1400148d4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140026dc4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140026dc7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140026dd5
mov rcx, rdi
call fcn.14001a7d8
cmp byte [rbp + 0x3f], r15b
je 0x140026de4
mov rcx, qword [rbp + 0x27]
call fcn.14001a7d8
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 0x140028450
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.14001c114
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c114
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400285a0
cmp rax, 0xffffffffffffffff
je 0x1400285a0
xor edi, edi
test rbp, rbp
jle 0x14002854b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001e700
mov rbx, rax
test rax, rax
jne 0x1400284d8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140028541
mov edx, 0x8000
mov ecx, r14d
call fcn.140015cc8
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.14001cdf0
cmp eax, 0xffffffff
je 0x140028521
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400284e8
mov edx, r15d
mov ecx, r14d
call fcn.140015cc8
jmp 0x140028541
cmp byte [rsi + 0x38], dil
je 0x140028538
cmp dword [rsi + 0x34], 5
jne 0x140028538
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140028541
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001a7d8
jmp 0x1400285b4
jns 0x1400285b4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c114
cmp rax, 0xffffffffffffffff
jne 0x14002856c
cmp byte [rsi + 0x30], dil
je 0x1400285b4
mov edi, dword [rsi + 0x2c]
jmp 0x1400285b4
mov ecx, r14d
call fcn.1400172c8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400285b4
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 0x1400285b4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400285ad
mov eax, dword [rsi + 0x2c]
jmp 0x1400285b2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c114
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 0x1400296b0
Capabilities:
Parse pe header

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

Disassembly:
call 0x140cb61df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140cb6089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cb606f
add dl, dl
jne 0x140cb6096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cb60f6
xor eax, eax
add dl, dl
jne 0x140cb60a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cb61ad
add dl, dl
jne 0x140cb60b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cb60c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cb60d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cb60dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140cb60ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140cb607e
mov eax, 1
add dl, dl
jne 0x140cb6106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cb6113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cb60fb
sub eax, ebx
mov ebx, 1
jne 0x140cb614c
mov ecx, 1
add dl, dl
jne 0x140cb612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140cb613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cb6123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cb607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140cb6168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140cb6175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cb615d
cmp eax, 0x7d00
jae 0x140cb619b
cmp eax, 0x500
jb 0x140cb6196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cb607e
cmp eax, 0x7f
ja 0x140cb619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cb607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140cb61d2
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 0x140cb607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000240f
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push r15
xor rax, rax
push rax
push rax
push rax
sub rsp, 0x28
push 0x400
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.140005730
add rsp, 0x20
mov qword [rsp + 0x28], rax
push qword [0x14000ea80]
add rsp, 0xfffffffffffffff8
push qword [0x14000ea80]
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.140008378
add rsp, 0x28
lea rcx, [rsp + 0x38]
pop rdx
call fcn.14000a100
push qword [rsp + 0x28]
push 0
movabs rax, 0x14000d00d
push rax
push qword [rsp + 0x48]
pop rcx
pop rdx
pop r8
pop r9
add rsp, 0xffffffffffffffe0
call sub.KERNEL32.dll_GetTempFileNameA
add rsp, 0x20
push qword [0x14000ea80]
add rsp, 0xfffffffffffffff8
push qword [0x14000ea80]
push qword [rsp + 0x40]
pop rcx
pop rdx
add rsp, 0xffffffffffffffe0
call fcn.140005750
add rsp, 0x28
lea rcx, [0x14000e56c]
pop rdx
call fcn.14000a100
push qword [rsp + 0x28]
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.1400057d0
add rsp, 0x20
push qword [0x14000e56c]
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.1400082b4
add rsp, 0x20
push qword [0x14000e56c]
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.140008410
add rsp, 0x20
push qword [0x14000ea80]
add rsp, 0xfffffffffffffff8
push qword [0x14000ea80]
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.1400081a0
add rsp, 0x28
lea rcx, [0x14000e564]
pop rdx
call fcn.14000a100
push qword [rsp + 0x50]
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.1400057f0
add rsp, 0x20
mov rax, rax
push rax
xor r15, r15
cmp r15, qword [rsp]
jne 0x14000257a
mov rcx, qword [0x14000e56c]
push qword [0x14000ea80]
add rsp, 0xffffffffffffffe0
call fcn.14000a220
add rsp, 0x20
lea rcx, [0x14000e564]
pop rdx
add rsp, 0xffffffffffffffd8
call fcn.14000a100
add rsp, 0x28
mov qword [rsp + 0x40], 2
jmp 0x140002590
mov r15, 1
cmp r15, qword [rsp]
jne 0x140002590
mov qword [rsp + 0x40], 1
pop rax
mov r15, qword [rsp + 0x50]
add r15, qword [rsp + 0x38]
mov rax, r15
push rax
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.1400057f0
add rsp, 0x20
mov qword [0x14000e554], rax
mov r15, qword [rsp + 0x50]
add r15, qword [rsp + 0x38]
inc r15
mov rax, r15
push rax
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.1400057f0
add rsp, 0x20
mov qword [0x14000e55c], rax
mov rax, 1
jmp 0x1400025e6
push rax
mov rcx, qword [rsp + 0x38]
sub rsp, 0x20
call fcn.14000a290
add rsp, 0x20
pop rax
add rsp, 0x40
pop r15
ret
Function at 0x140002bbe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
xor rax, rax
push rax
push rax
push rax
push rax
sub rsp, 0x28
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.14000a2c0
add rsp, 0x10
push 0xa
push qword [rsp + 0x30]
push qword [rsp + 0x60]
pop rcx
pop rdx
pop r8
add rsp, 0xffffffffffffffe0
call sub.KERNEL32.dll_FindResourceA
add rsp, 0x20
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140002c51
push qword [rsp + 0x30]
push qword [rsp + 0x58]
pop rcx
pop rdx
add rsp, 0xffffffffffffffe0
call sub.KERNEL32.dll_LoadResource
add rsp, 0x20
mov qword [0x14000e5f4], rax
push qword [rsp + 0x30]
push qword [rsp + 0x58]
pop rcx
pop rdx
add rsp, 0xffffffffffffffe0
call sub.KERNEL32.dll_SizeofResource
add rsp, 0x20
mov qword [0x14000e5ec], rax
push qword [0x14000e5ec]
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.140005730
add rsp, 0x20
mov qword [rsp + 0x38], rax
push qword [0x14000e5ec]
push qword [0x14000e5f4]
push qword [rsp + 0x48]
pop rcx
pop rdx
pop r8
add rsp, 0xffffffffffffffe0
call sub.msvcrt.dll_memcpy
add rsp, 0x20
push qword [rsp + 0x38]
pop rax
mov qword [0x14000e5f4], rax
mov rax, qword [rsp + 0x30]
jmp 0x140002ca1
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x20
call fcn.14000a290
add rsp, 0x20
pop rax
add rsp, 0x48
ret
Function at 0x14000375f
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
push rbp
push r15
mov rdx, 0x14
sub rsp, 8
mov qword [rsp], 0
dec rdx
jne 0x140003778
sub rsp, 0x28
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.14000a2c0
add rsp, 0x10
mov rdx, qword [rsp + 0xe8]
lea rcx, [rsp + 0x30]
sub rsp, 0x10
call fcn.14000a2c0
add rsp, 0x10
mov rdx, qword [rsp + 0xf0]
lea rcx, [rsp + 0x38]
sub rsp, 0x10
call fcn.14000a2c0
add rsp, 0x10
mov rcx, qword [rsp + 0x28]
push qword [0x14000ea80]
add rsp, 0xffffffffffffffd8
call fcn.14000a220
add rsp, 0x28
movabs rcx, 0x14000d00e
add rsp, 0xffffffffffffffd8
call fcn.14000a220
add rsp, 0x28
mov rcx, qword [rsp + 0x40]
add rsp, 0xffffffffffffffd8
call fcn.14000a220
add rsp, 0x28
lea rcx, [rsp + 0x48]
pop rdx
call fcn.14000a100
lea rax, [rsp + 0x48]
lea rbp, [rsp + 0x48]
mov dword [rbp], 0x70
mov dword [rbp + 4], 0x140
mov dword [rbp + 0x30], 0
movabs rax, str.open
mov rax, rax
push rax
pop rax
mov qword [rbp + 0x10], rax
movabs rax, str.wscript
mov rax, rax
push rax
pop rax
mov qword [rbp + 0x18], rax
mov rax, qword [rsp + 0x40]
mov rax, rax
push rax
pop rax
mov qword [rbp + 0x20], rax
mov rax, qword [rsp + 0x30]
mov rax, rax
push rax
pop rax
mov qword [rbp + 0x28], rax
lea rax, [rsp + 0x48]
mov rax, rax
push rax
pop rcx
add rsp, 0xffffffffffffffe0
call sub.SHELL32.dll_ShellExecuteExA
add rsp, 0x20
mov qword [rsp + 0xb8], rax
push 0x19
pop rcx
add rsp, 0xffffffffffffffe0
call sub.KERNEL32.dll_Sleep
add rsp, 0x20
lea rax, [rsp + 0xc0]
mov rax, rax
push rax
lea rbp, [rsp + 0x50]
push qword [rbp + 0x68]
pop rcx
pop rdx
add rsp, 0xffffffffffffffe0
call sub.KERNEL32.dll_GetExitCodeProcess
add rsp, 0x20
and rax, rax
je 0x1400038f5
mov r15, qword [rsp + 0xc0]
cmp r15, 0x103
je 0x1400038f5
jmp 0x1400038f7
jmp 0x1400038a7
mov rax, 1
jmp 0x140003903
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x20
call fcn.14000a290
add rsp, 0x20
mov rcx, qword [rsp + 0x38]
sub rsp, 0x20
call fcn.14000a290
add rsp, 0x20
mov rcx, qword [rsp + 0x40]
sub rsp, 0x20
call fcn.14000a290
add rsp, 0x20
mov rcx, qword [rsp + 0x48]
sub rsp, 0x20
call fcn.14000a290
add rsp, 0x20
pop rax
add rsp, 0xc8
pop r15
pop rbp
ret

Function at 0x140004b0c
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
test ecx, ecx
je 0x140004b31
movsxd rdx, ecx
lea rcx, [0x140004a88]
call qword [sym.imp.USER32.dll_EnumWindows]
jmp 0x140004b72
mov rbx, qword [0x14000e6a8]
test rbx, rbx
je 0x140004b72
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140004b6a
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
lea rdx, [rbx + 0x10]
lea rcx, [0x14000e6a8]
call fcn.1400090a0
mov rbx, rdi
test rdi, rdi
jne 0x140004b3d
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140004bf4
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [0x14000eae0]
call fcn.140008a64
xor ebx, ebx
or esi, 0xffffffff
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dl, byte [rax]
test dl, dl
je 0x140004cba
mov rcx, qword [rsp + 0x30]
mov r10b, 0x20
lea r9d, [rbx + 1]
cmp dl, r10b
jne 0x140004c48
add rax, r9
cmp byte [rax], r10b
je 0x140004c40
mov dl, byte [rax]
mov r8d, r9d
cmp dl, 0x22
jne 0x140004c7e
add rax, r9
mov rbx, rax
mov cl, byte [rax]
test cl, cl
je 0x140004c79
cmp cl, 0x22
je 0x140004c6c
add rax, r9
mov cl, byte [rax]
test cl, cl
jne 0x140004c5e
cmp byte [rax], 0
je 0x140004c79
mov rcx, rax
add rax, r9
jmp 0x140004ca0
mov rcx, rax
jmp 0x140004ca0
test dl, dl
je 0x140004c9d
mov rbx, rax
cmp dl, r10b
je 0x140004c93
add rax, r9
mov dl, byte [rax]
test dl, dl
jne 0x140004c85
cmp byte [rax], 0
mov rcx, rax
je 0x140004ca0
jmp 0x140004c74
xor r8d, r8d
cmp dword [rbp], esi
jne 0x140004caa
test rdi, rdi
jne 0x140004cc4
test r8d, r8d
je 0x140004cb2
add esi, r9d
mov dl, byte [rax]
xor ebx, ebx
test dl, dl
jne 0x140004c3b
test rdi, rdi
jne 0x140004cd6
movsxd rax, esi
jmp 0x140004cd9
test rbx, rbx
je 0x140004cd6
sub ecx, ebx
mov rax, rbx
mov dword [rdi], ecx
add dword [rbp], r9d
jmp 0x140004cd9
and dword [rdi], 0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140004db4
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x14000eae0]
call fcn.140008a64
xor ecx, ecx
add rsp, 0x28
jmp fcn.140004bf4

Function at 0x140004ea8
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x28
mov rax, rdx
test rcx, rcx
je 0x140004ec8
test rax, rax
lea rdx, [0x14000c818]
cmovne rdx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
add rsp, 0x28
ret

Function at 0x1400055a8
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x160
lea rcx, [rsp + 0x20]
mov ebx, 0x64
mov dword [rsp + 0x20], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x14000568a
mov eax, dword [rsp + 0x30]
sub eax, 1
je 0x140005667
cmp eax, 1
jne 0x14000568a
mov eax, dword [rsp + 0x24]
sub eax, 3
je 0x140005660
sub eax, 1
je 0x140005659
sub eax, 1
je 0x140005634
cmp eax, 1
jne 0x14000568a
lea rcx, [rsp + 0xc0]
lea ebx, [rax + 0x45]
mov dword [rsp + 0xc0], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x14000568a
cmp byte [rsp + 0x15a], 1
je 0x14000568a
mov ebx, 0x4b
jmp 0x14000568a
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x140005652
sub eax, 1
je 0x14000564b
cmp eax, 1
jne 0x14000568a
lea ebx, [rax + 0x40]
jmp 0x14000568a
mov ebx, 0x3c
jmp 0x14000568a
mov ebx, 0x32
jmp 0x14000568a
mov ebx, 0x14
jmp 0x14000568a
mov ebx, 5
jmp 0x14000568a
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x140005685
cmp eax, 0xa
je 0x14000567e
cmp eax, 0x5a
jne 0x14000568a
lea ebx, [rax - 0x32]
jmp 0x14000568a
mov ebx, 0x1e
jmp 0x14000568a
mov ebx, 0xa
movsxd rax, ebx
add rsp, 0x160
pop rbx
ret
Function at 0x1400062a4
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x14000ec00]
call fcn.140008e84
mov rsi, rax
test rax, rax
je 0x14000631d
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x1400062e2
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x14000631d
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov edx, ebx
mov ecx, eax
mov edi, eax
call fcn.14000a330
lea r8d, [rdi + 1]
mov byte [rax], 0
mov rcx, qword [rsi]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov rcx, rbx
call sub.msvcrt.dll_strlen
sub edi, eax
mov ecx, edi
call fcn.14000a4c0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400080cc
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, 9
call qword [sym.imp.USER32.dll_GetKeyState]
test al, al
jns 0x14000816b
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
test al, al
js 0x14000816b
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
test al, al
js 0x14000816b
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
test al, al
js 0x14000816b
call qword [sym.imp.USER32.dll_GetFocus]
lea rdx, [rsp + 0x38]
mov r8d, 5
mov rcx, rax
call qword [sym.imp.USER32.dll_GetClassNameA]
lea rdx, str.Rich
lea rcx, [rsp + 0x38]
mov r8d, 4
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x14000816b
call qword [sym.imp.USER32.dll_GetFocus]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov edx, 0x44e
call qword [sym.imp.USER32.dll_SendMessageA]
bt rax, 0xb
jae 0x140008196
lea rdx, str.PB_WindowID
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetPropA]
test rax, rax
je 0x140008196
mov rcx, qword [0x14000ec20]
lea rdx, [rax - 1]
call fcn.140008e84
mov rax, qword [rax + 0x10]
jmp 0x140008198
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x1400081a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edx, ecx
mov esi, 0x104
mov ecx, esi
call fcn.14000a330
mov ecx, esi
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
movsxd rbx, eax
test eax, eax
je 0x1400081df
cmp byte [rbx + rdi - 1], 0x5c
je 0x1400081df
mov byte [rbx + rdi], 0x5c
inc ebx
sub esi, ebx
mov ecx, esi
call fcn.14000a4c0
mov rsi, qword [rsp + 0x38]
movsxd r11, ebx
mov rbx, qword [rsp + 0x30]
mov byte [r11 + rdi], 0
add rsp, 0x20
pop rdi
ret

Function at 0x1400082b4
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x1400082c7
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
cdqe
jmp 0x1400082c9
xor eax, eax
add rsp, 0x28
ret

Function at 0x140008378
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edx, ecx
mov ebx, 0x104
mov ecx, ebx
call fcn.14000a330
mov ecx, ebx
mov rdx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea rcx, str.Kernel32.DLL
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
test rax, rax
je 0x1400083ea
lea rdx, str.GetLongPathNameA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400083e1
mov r8d, ebx
mov rdx, rsi
mov rcx, rsi
call rax
mov edi, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
sub ebx, edi
mov ecx, ebx
call fcn.14000a4c0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
movsxd r11, edi
mov byte [r11 + rsi], 0
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret