joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ff6bcc7e13c
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.7ff6bcc5a868
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x7ff6bcc7e1c6
cmp byte [rbp - 0x21], r15b
je 0x7ff6bcc7e1c1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x7ff6bcc7e1fc
call fcn.7ff6bcc6d974
test eax, eax
jne 0x7ff6bcc7e1e8
cmp byte [rbp - 0x21], r15b
je 0x7ff6bcc7e1e0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x7ff6bcc7e1fc
cmp byte [rbp - 0x21], r15b
je 0x7ff6bcc7e1f9
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.7ff6bcc5a5d0
test eax, eax
jne 0x7ff6bcc7e29c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.7ff6bcc5a868
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x7ff6bcc7e23b
cmp byte [rbp - 0x21], r15b
je 0x7ff6bcc7e270
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x7ff6bcc7e270
call fcn.7ff6bcc6d974
test eax, eax
jne 0x7ff6bcc7e25c
cmp byte [rbp - 0x21], r15b
je 0x7ff6bcc7e255
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x7ff6bcc7e270
cmp byte [rbp - 0x21], r15b
je 0x7ff6bcc7e26d
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.7ff6bcc5a5d0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x7ff6bcc7e29c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x7ff6bcc7e29f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x7ff6bcc7e2ad
mov rcx, rdi
call fcn.7ff6bcc6d048
cmp byte [rbp + 0x3f], r15b
je 0x7ff6bcc7e2bc
mov rcx, qword [rbp + 0x27]
call fcn.7ff6bcc6d048
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 0x7ff6bcc7f2e0
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.7ff6bcc6f73c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.7ff6bcc6f73c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x7ff6bcc7f430
cmp rax, 0xffffffffffffffff
je 0x7ff6bcc7f430
xor edi, edi
test rbp, rbp
jle 0x7ff6bcc7f3db
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.7ff6bcc6d634
mov rbx, rax
test rax, rax
jne 0x7ff6bcc7f368
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x7ff6bcc7f3d1
mov edx, 0x8000
mov ecx, r14d
call fcn.7ff6bcc68ff0
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.7ff6bcc6cd40
cmp eax, 0xffffffff
je 0x7ff6bcc7f3b1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x7ff6bcc7f378
mov edx, r15d
mov ecx, r14d
call fcn.7ff6bcc68ff0
jmp 0x7ff6bcc7f3d1
cmp byte [rsi + 0x38], dil
je 0x7ff6bcc7f3c8
cmp dword [rsi + 0x34], 5
jne 0x7ff6bcc7f3c8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x7ff6bcc7f3d1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.7ff6bcc6d048
jmp 0x7ff6bcc7f444
jns 0x7ff6bcc7f444
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.7ff6bcc6f73c
cmp rax, 0xffffffffffffffff
jne 0x7ff6bcc7f3fc
cmp byte [rsi + 0x30], dil
je 0x7ff6bcc7f444
mov edi, dword [rsi + 0x2c]
jmp 0x7ff6bcc7f444
mov ecx, r14d
call fcn.7ff6bcc772c8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x7ff6bcc7f444
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 0x7ff6bcc7f444
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x7ff6bcc7f43d
mov eax, dword [rsi + 0x2c]
jmp 0x7ff6bcc7f442
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.7ff6bcc6f73c
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 0x7ff6bcc7f8b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x7ff6bcc7f8d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x7ff6bcc7f8d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14002924c
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.14001c844
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c844
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002939c
cmp rax, 0xffffffffffffffff
je 0x14002939c
xor edi, edi
test rbp, rbp
jle 0x140029347
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f158
mov rbx, rax
test rax, rax
jne 0x1400292d4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002933d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a178
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.14001d520
cmp eax, 0xffffffff
je 0x14002931d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400292e4
mov edx, r15d
mov ecx, r14d
call fcn.14001a178
jmp 0x14002933d
cmp byte [rsi + 0x38], dil
je 0x140029334
cmp dword [rsi + 0x34], 5
jne 0x140029334
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002933d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001af0c
jmp 0x1400293b0
jns 0x1400293b0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c844
cmp rax, 0xffffffffffffffff
jne 0x140029368
cmp byte [rsi + 0x30], dil
je 0x1400293b0
mov edi, dword [rsi + 0x2c]
jmp 0x1400293b0
mov ecx, r14d
call fcn.140018630
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400293b0
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 0x1400293b0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400293a9
mov eax, dword [rsi + 0x2c]
jmp 0x1400293ae
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c844
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 0x1400018f8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001942
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001942
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001942
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001942
cmp dword [rcx + 0x84], 0xe
jbe 0x140001942
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001944
xor al, al
add rsp, 0x28
ret
Function at 0x140003525
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
call fcn.14000f440
mov qword [rsp + 0x28], rax
push qword [0x14001c550]
sub rsp, 8
push qword [0x14001c550]
pop rcx
sub rsp, 0x20
call fcn.14000f8fc
add rsp, 0x28
lea rcx, [rsp + 0x38]
pop rdx
call fcn.1400132d0
push qword [rsp + 0x28]
push 0
movabs rax, 0x14001a01e
push rax
push qword [rsp + 0x48]
pop rcx
pop rdx
pop r8
pop r9
call sub.KERNEL32.dll_GetTempFileNameA
push qword [0x14001c550]
sub rsp, 8
push qword [0x14001c550]
push qword [rsp + 0x40]
pop rcx
pop rdx
sub rsp, 0x20
call fcn.14000f510
add rsp, 0x28
lea rcx, [0x14001bb7c]
pop rdx
call fcn.1400132d0
push qword [rsp + 0x28]
pop rcx
call fcn.14000f590
push qword [0x14001bb7c]
pop rcx
call fcn.14000f7f8
push qword [0x14001bb7c]
pop rcx
call fcn.14000f994
push qword [0x14001c550]
sub rsp, 8
push qword [0x14001c550]
pop rcx
sub rsp, 0x20
call fcn.14000f6ac
add rsp, 0x28
lea rcx, [0x14001bab4]
pop rdx
call fcn.1400132d0
push qword [rsp + 0x50]
pop rcx
call fcn.14000f460
mov rax, rax
push rax
xor r15, r15
cmp r15, qword [rsp]
jne 0x140003660
mov rcx, qword [0x14001bb7c]
push qword [0x14001c550]
sub rsp, 0x20
call fcn.1400133f0
add rsp, 0x20
lea rcx, [0x14001bab4]
pop rdx
sub rsp, 0x28
call fcn.1400132d0
add rsp, 0x28
mov qword [rsp + 0x40], 2
jmp 0x140003676
mov r15, 1
cmp r15, qword [rsp]
jne 0x140003676
mov qword [rsp + 0x40], 1
pop rax
mov r15, qword [rsp + 0x50]
add r15, qword [rsp + 0x38]
mov rax, r15
push rax
pop rcx
call fcn.14000f460
mov qword [0x14001bb1c], rax
mov r15, qword [rsp + 0x50]
add r15, qword [rsp + 0x38]
inc r15
mov rax, r15
push rax
pop rcx
call fcn.14000f460
mov qword [0x14001b9a4], rax
mov rax, 1
jmp 0x1400036bc
push rax
mov rcx, qword [rsp + 0x38]
sub rsp, 0x28
call fcn.1400134d0
add rsp, 0x28
pop rax
add rsp, 0x40
pop r15
ret
Function at 0x140004893
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
mov r15, qword [0x14001bb1c]
cmp r15, 1
jne 0x140004979
push qword [0x14001bbc4]
pop rcx
call fcn.14000b0a0
mov r15, rax
and r15, r15
jle 0x14000490f
mov rcx, qword [0x14001bbc4]
call fcn.14000b0a8
mov rcx, qword [0x14001bbc4]
call fcn.14000b0bc
or rax, rax
je 0x14000490f
mov rbp, qword [0x14001bbcc]
push qword [rbp + 0x10]
pop rcx
call fcn.140011750
mov r15, rax
movsxd rax, dword [rbp + 0x18]
cmp r15, rax
jne 0x14000490d
mov rbp, qword [0x14001bbcc]
push qword [rbp + 0x10]
pop rcx
call fcn.14000f7f8
jmp 0x1400048d0
push qword [0x14001bbd4]
pop rcx
call fcn.14000b0a0
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x140004979
push 5
push 0
push 1
push qword [0x14001bbd4]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140008160
mov rcx, qword [0x14001bbd4]
call fcn.14000b0a8
mov rcx, qword [0x14001bbd4]
call fcn.14000b0bc
or rax, rax
je 0x140004979
mov rbp, qword [0x14001bbdc]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryA
jmp 0x140004956
mov rax, 1
jmp 0x140004985
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140008b20
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x140008b97
movsxd rdx, ecx
lea rcx, [0x140008a7c]
call qword [sym.imp.USER32.DLL_EnumWindows]
mov rbx, qword [0x14001bbf0]
test rbx, rbx
je 0x140008c0a
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140008b8d
cmp byte [rbx + 0x20], 0
je 0x140008b8d
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
xor r8d, r8d
call qword [sym.imp.USER32.DLL_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x140008b53
jmp 0x140008c0a
mov rbx, qword [0x14001bbf0]
test rbx, rbx
je 0x140008c0a
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140008c02
cmp byte [rbx + 0x21], 0
je 0x140008bc6
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x140008bf2
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
call qword [sym.imp.USER32.DLL_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x14001bbf0]
call fcn.140012cb4
mov rbx, rdi
test rdi, rdi
jne 0x140008ba3
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140008ce4
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 [0x14001c590]
call fcn.14001245c
xor ebx, ebx
or esi, 0xffffffff
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dl, byte [rax]
test dl, dl
je 0x140008daa
mov rcx, qword [rsp + 0x30]
mov r10b, 0x20
lea r9d, [rbx + 1]
cmp dl, r10b
jne 0x140008d38
add rax, r9
cmp byte [rax], r10b
je 0x140008d30
mov dl, byte [rax]
mov r8d, r9d
cmp dl, 0x22
jne 0x140008d6e
add rax, r9
mov rbx, rax
mov cl, byte [rax]
test cl, cl
je 0x140008d69
cmp cl, 0x22
je 0x140008d5c
add rax, r9
mov cl, byte [rax]
test cl, cl
jne 0x140008d4e
cmp byte [rax], 0
je 0x140008d69
mov rcx, rax
add rax, r9
jmp 0x140008d90
mov rcx, rax
jmp 0x140008d90
test dl, dl
je 0x140008d8d
mov rbx, rax
cmp dl, r10b
je 0x140008d83
add rax, r9
mov dl, byte [rax]
test dl, dl
jne 0x140008d75
cmp byte [rax], 0
mov rcx, rax
je 0x140008d90
jmp 0x140008d64
xor r8d, r8d
cmp dword [rbp], esi
jne 0x140008d9a
test rdi, rdi
jne 0x140008db4
test r8d, r8d
je 0x140008da2
add esi, r9d
mov dl, byte [rax]
xor ebx, ebx
test dl, dl
jne 0x140008d2b
test rdi, rdi
jne 0x140008dc6
movsxd rax, esi
jmp 0x140008dc9
test rbx, rbx
je 0x140008dc6
sub ecx, ebx
mov rax, rbx
mov dword [rdi], ecx
add dword [rbp], r9d
jmp 0x140008dc9
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 0x140008ea4
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x14001c590]
call fcn.14001245c
xor ecx, ecx
add rsp, 0x28
jmp fcn.140008ce4

Function at 0x140008f98
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x28
mov rax, rdx
test rcx, rcx
je 0x140008fb8
test rax, rax
lea rdx, [0x140018662]
cmovne rdx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
add rsp, 0x28
ret
Function at 0x140009804
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r14, qword [rsp + 0x80]
or rbp, 0xffffffffffffffff
xor edi, edi
mov rsi, r9
mov r15, r8
mov r12, rdx
mov rbx, rcx
test r9, r9
je 0x14000985f
cmp byte [r9], dil
je 0x14000985f
mov rcx, r9
call fcn.140013f40
mov rcx, rbx
mov rdx, rax
mov rsi, rax
call fcn.140009f90
mov rdi, rax
jmp 0x140009874
cmp dword [rcx + 0x10], edi
je 0x140009966
movsxd rcx, dword [rcx + 0x18]
mov rax, qword [rbx + 8]
mov rdi, qword [rax + rcx*8]
test rdi, rdi
je 0x140009966
test r14, r14
je 0x14000989a
mov r8, qword [rdi]
mov rcx, qword [0x14001b98c]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, qword [rdi]
mov r12, rax
test r12, r12
je 0x140009966
cmp r15, qword [rdi]
jl 0x140009966
mov edx, dword [rdi + 0x10]
mov rcx, qword [rbx]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r8, qword [rdi + 8]
cmp r8, qword [rdi]
jne 0x1400098f6
mov r8d, dword [rdi]
mov rcx, qword [rbx]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd r11, dword [rsp + 0x80]
cmp qword [rdi], r11
jne 0x140009966
mov rbp, r11
jmp 0x140009966
mov rcx, qword [0x14001b98c]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r13, rax
test rax, rax
je 0x140009966
mov r8d, dword [rdi + 8]
mov rcx, qword [rbx]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd r11, dword [rsp + 0x80]
cmp qword [rdi + 8], r11
jne 0x140009954
mov rbx, qword [rdi]
mov r8, r15
mov rdx, r12
mov rcx, r13
call fcn.14000a15c
movsxd rcx, eax
cmp rcx, rbx
cmove rbp, rbx
mov rcx, qword [0x14001b98c]
mov r8, r13
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r14, r14
je 0x140009995
cmp rbp, 0xffffffffffffffff
jne 0x14000998c
test r12, r12
je 0x140009988
mov rcx, qword [0x14001b98c]
mov r8, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ebp, ebp
jmp 0x140009995
mov rcx, qword [rdi]
mov rbp, r12
mov qword [r14], rcx
test rsi, rsi
je 0x1400099a7
cmp byte [rsi], 0
je 0x1400099a7
mov rcx, rsi
call fcn.140014020
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rax, rbp
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140009ab0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov r12, rcx
mov rcx, r9
mov rsi, r8
mov r15, rdx
xor ebx, ebx
call fcn.140013f40
mov rcx, qword [0x14001b98c]
lea edi, [rsi + 0x18]
xor edx, edx
movsxd r8, edi
mov r14, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r13, rax
test rax, rax
je 0x140009bd5
mov r9d, edi
mov r8, rax
mov edx, esi
mov rcx, r15
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 5
call fcn.14000a1e4
movsxd rdi, eax
test eax, eax
je 0x140009b34
cmp rdi, rsi
jge 0x140009b34
mov r15, r13
jmp 0x140009b36
mov edi, esi
mov rcx, r14
call sub.msvcrt.dll_strlen
mov rcx, qword [r12]
lea r9, [rbp + 0x30]
mov word [rbp - 0x10], ax
movsxd rax, edi
lea rdx, [rbp - 0x20]
mov r8d, 0x12
mov qword [rbp - 0x20], rsi
mov qword [rsp + 0x20], rbx
mov qword [rbp - 0x18], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rbp + 0x30], 0x12
jne 0x140009bbb
movsx r8d, word [rbp - 0x10]
mov rcx, qword [r12]
lea r9, [rbp + 0x30]
mov rdx, r14
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsx r11d, word [rbp - 0x10]
cmp r11d, dword [rbp + 0x30]
jne 0x140009bbb
mov rcx, qword [r12]
lea r9, [rbp + 0x30]
mov r8d, edi
mov rdx, r15
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp edi, dword [rbp + 0x30]
mov eax, 1
cmove rbx, rax
mov rcx, r12
call fcn.140009d98
mov rcx, qword [0x14001b98c]
mov r8, r13
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, r14
call fcn.140014020
lea r11, [rsp + 0x50]
mov rax, rbx
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140009e04
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
mov rbp, rsp
sub rsp, 0x60
cmp qword [rcx + 8], 0
mov rbx, rcx
mov esi, 0x40
jne 0x140009f78
mov rcx, qword [0x14001b98c]
xor edx, edx
mov r8d, 0x200
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
and dword [rbx + 0x14], 0
lea edi, [rsi - 0x3c]
mov qword [rbx + 8], rax
mov edx, edi
xor r9d, r9d
mov rcx, qword [rbx]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
and qword [rsp + 0x20], 0
cmp dword [rbx + 0x1c], 0x706c7a31
mov rcx, qword [rbx]
lea r9, [rbp + 0x20]
jne 0x140009ea7
lea rdx, [rbp - 0x18]
mov r8d, 0x18
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rbp + 0x20], 0x18
jne 0x140009f78
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x28], rax
movzx eax, word [rbp - 8]
mov word [rbp - 0x20], ax
jmp 0x140009ec1
lea rdx, [rbp - 0x30]
mov r8d, 0x12
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rbp + 0x20], 0x12
jne 0x140009f78
cmp dword [rbx + 0x14], esi
jl 0x140009eea
mov r8, qword [rbx + 8]
mov rcx, qword [0x14001b98c]
add esi, 0x40
movsxd r9, esi
mov edx, 8
shl r9, 3
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [rbx + 8], rax
movsx r8, word [rbp - 0x20]
mov rcx, qword [0x14001b98c]
xor edx, edx
add r8, 0x19
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rbp - 0x30]
and qword [rsp + 0x20], 0
mov qword [rax], rcx
mov rcx, qword [rbp - 0x28]
lea rdx, [rax + 0x14]
mov qword [rax + 8], rcx
movsx r8d, word [rbp - 0x20]
mov rcx, qword [rbx]
lea r9, [rbp + 0x20]
mov r12, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsx r11, word [rbp - 0x20]
mov byte [r11 + r12 + 0x14], 0
cmp dword [rbx + 0x1c], 0x706c7a31
movsx rax, word [rbp - 0x20]
jne 0x140009f4f
lea edi, [rdi + rax + 0x18]
jmp 0x140009f53
lea edi, [rdi + rax + 0x12]
mov dword [r12 + 0x10], edi
movsxd rcx, dword [rbx + 0x14]
add edi, dword [rbp - 0x28]
mov rax, qword [rbx + 8]
mov r9d, 1
mov qword [rax + rcx*8], r12
inc dword [rbx + 0x14]
mov edx, dword [rbp - 0x28]
jmp 0x140009e51
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret

Function at 0x14000bf14
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 [0x14001c750]
call fcn.140012374
mov rsi, rax
test rax, rax
je 0x14000bf8d
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x14000bf52
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x14000bf8d
mov rcx, qword [rsi]
call qword [sym.imp.USER32.DLL_GetWindowTextLengthA]
mov edx, ebx
mov ecx, eax
mov edi, eax
call fcn.140013550
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.1400136f0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14000c47c
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
lea rcx, [rsp + 0x20]
mov ebx, 0xc8
mov dword [rsp + 0x20], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x14000c591
mov eax, dword [rsp + 0x30]
dec eax
je 0x14000c56e
dec eax
jne 0x14000c591
lea rcx, [rsp + 0xc0]
xor edi, edi
mov dword [rsp + 0xc0], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x14000c4e9
lea eax, [rdi + 1]
cmp byte [rsp + 0x15a], al
cmove edi, eax
mov eax, dword [rsp + 0x24]
sub eax, 3
je 0x14000c567
dec eax
je 0x14000c560
dec eax
je 0x14000c536
dec eax
jne 0x14000c591
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x14000c52a
dec eax
je 0x14000c51e
dec eax
jne 0x14000c591
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x5f
jmp 0x14000c591
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x55
jmp 0x14000c591
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x4b
jmp 0x14000c591
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x14000c559
dec eax
je 0x14000c552
dec eax
jne 0x14000c591
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x41
jmp 0x14000c591
mov ebx, 0x3c
jmp 0x14000c591
mov ebx, 0x32
jmp 0x14000c591
mov ebx, 0x14
jmp 0x14000c591
mov ebx, 5
jmp 0x14000c591
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x14000c58c
cmp eax, 0xa
je 0x14000c585
cmp eax, 0x5a
jne 0x14000c591
lea ebx, [rax - 0x32]
jmp 0x14000c591
mov ebx, 0x1e
jmp 0x14000c591
mov ebx, 0xa
movsxd rax, ebx
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret