joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400138dc
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1400138fc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400111ac
or eax, 0xffffffff
jmp 0x1400138fe
xor eax, eax
add rsp, 0x28
ret

Function at 0x140013c2c
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x140039018]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor esi, esi
mov rbx, rdx
test rdx, rdx
jne 0x14001396b
call fcn.14001121c
mov dword [rax], 0x16
call fcn.140016668
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14000bba0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
test rcx, rcx
je 0x140013932
mov dword [rsp + 0x28], esi
lea r8, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400139d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x1400139ac
cmp eax, 3
jbe 0x1400139c9
cmp eax, 8
je 0x1400139b9
cmp eax, 0x12
je 0x1400139c9
call fcn.14001121c
mov dword [rax], 0x16
jmp 0x140013942
call fcn.14001121c
mov dword [rax], 0xc
jmp 0x140013942
call fcn.14001121c
mov dword [rax], 2
jmp 0x140013942
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x34]
cmp eax, 0x80
cmove eax, esi
mov dword [rbx], eax
call fcn.140013b74
lea rcx, [rsp + 0x3c]
mov qword [rbx + 8], rax
call fcn.140013b74
lea rcx, [rsp + 0x44]
mov qword [rbx + 0x10], rax
call fcn.140013b74
mov qword [rbx + 0x18], rax
lea rcx, [rbx + 0x24]
mov eax, dword [rsp + 0x50]
lea r8, [rsp + 0x5c]
mov edx, 0x104
mov dword [rbx + 0x20], eax
call fcn.14001c204
test eax, eax
jne 0x140013a37
mov rax, rdi
jmp 0x140013946
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140016688
int3
jmp 0x140013904
Function at 0x140013c34
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x290
mov rax, qword [0x140039018]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor edi, edi
mov rbx, rdx
test rcx, rcx
jne 0x140013aa9
call fcn.14001121c
mov dword [rax], 0x16
call fcn.140016668
or eax, 0xffffffff
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14000bba0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x290
pop rdi
ret
cmp rcx, 0xffffffffffffffff
je 0x140013a75
test rbx, rbx
je 0x140013a75
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140013b04
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x140013add
cmp eax, 3
jbe 0x140013af7
cmp eax, 8
je 0x140013aea
cmp eax, 0x12
je 0x140013af7
call fcn.14001121c
mov dword [rax], 0x16
jmp 0x140013a85
call fcn.14001121c
mov dword [rax], 0xc
jmp 0x140013a85
call fcn.14001121c
mov dword [rax], 2
jmp 0x140013a85
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x34]
cmp eax, 0x80
cmove eax, edi
mov dword [rbx], eax
call fcn.140013b74
lea rcx, [rsp + 0x3c]
mov qword [rbx + 8], rax
call fcn.140013b74
lea rcx, [rsp + 0x44]
mov qword [rbx + 0x10], rax
call fcn.140013b74
mov qword [rbx + 0x18], rax
lea rcx, [rbx + 0x24]
mov eax, dword [rsp + 0x50]
lea r8, [rsp + 0x5c]
mov edx, 0x104
mov dword [rbx + 0x20], eax
call fcn.14001c204
test eax, eax
je 0x140013a88
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140016688
int3
jmp 0x140013a4c

Function at 0x140014160
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140014180
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400111ac
or eax, 0xffffffff
jmp 0x140014182
xor eax, eax
add rsp, 0x28
ret

Function at 0x140015a54
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140015880
Function at 0x1401aef50
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10088
call fcn.1401e3390
sub rsp, rax
mov rax, qword [0x140226cc8]
xor rax, rsp
mov qword [rsp + 0x10070], rax
xor eax, eax
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], ax
lea r8d, [rax + 0x28]
call fcn.1401de090
mov r8d, 0x10000
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x1401aefcd
lea rcx, [rsp + 0x70]
call fcn.1401ee650
mov rcx, qword [rsp + 0x10070]
xor rcx, rsp
call fcn.1401e3360
add rsp, 0x10088
ret
xor eax, eax
mov rcx, qword [rsp + 0x10070]
xor rcx, rsp
call fcn.1401e3360
add rsp, 0x10088
ret

Function at 0x1401af340
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140226cc8]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbp, rdx
mov rsi, rcx
call fcn.1401c6c00
lea rdx, str.environ
mov rcx, rax
call qword [sym.imp.python311.dll_PyObject_GetAttrString]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.python311.dll_PyUnicode_FromString]
mov rdx, rsi
lea rcx, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov word [rsp + 0x20], ax
lea r8d, [rax + 0x28]
call fcn.1401de090
lea rcx, [rsp + 0x20]
test rbp, rbp
je 0x1401af401
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, 0xffffffffffffffff
mov rcx, rbp
call sub.python311.dll_PyUnicode_FromWideChar
mov r8, rax
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.python311.dll_PyObject_SetItem]
test eax, eax
je 0x1401af3ef
mov ecx, 1
call qword [sym.imp.python311.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python311.dll_Py_Exit]
int3
sub qword [rsi], 1
jne 0x1401af41e
mov rax, qword [rsi + 8]
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x1401af41e
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.python311.dll_PyObject_DelItem]
test eax, eax
je 0x1401af41e
call fcn.1401aed70
sub qword [rdi], 1
jne 0x1401af42e
mov rax, qword [rdi + 8]
mov rcx, rdi
call qword [rax + 0x30]
sub qword [rbx], 1
jne 0x1401af43e
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401e3360
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401de140
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r8, rcx
mov eax, 0xffffffff
test edx, edx
je 0x1401de204
mov r9d, edx
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [r8]
lea r8, [r8 + 1]
xor eax, edx
mov edx, eax
and dl, 1
neg dl
sbb ecx, ecx
shr eax, 1
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb eax, eax
shr ecx, 1
and eax, 0xedb88320
xor eax, ecx
sub r9, 1
jne 0x1401de160
not eax
ret
Function at 0x1401e3dac
Capabilities:
Parse pe header

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

Function at 0x1401e85c4
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 0x1401e8423
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401e8423
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401e8423
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401e8423
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401e8423
cmp dword [rcx + 0x84], 0xe
jbe 0x1401e8423
cmp dword [rcx + 0xf8], 0
je 0x1401e8423
mov ecx, ebx
call fcn.1401e84e0
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.1401e82b0
nop
cmp dword [rbp + 0x20], 0
je 0x1401e8471
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401e847c
int3
xor r8d, r8d
xor edx, edx
jmp 0x1401e83b4
Function at 0x1401f3764
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 0x1401f37eb
mov rsi, rbx
cmp word [rax], bp
je 0x1401f37aa
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1401f3794
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1401f3790
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1401eeee0
mov rdi, rax
test rax, rax
je 0x1401f37d8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1401e40d0
mov rbp, rdi
xor ecx, ecx
call fcn.1401ef988
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 0x140b20058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140b201df
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 0x140b20089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b2006f
add dl, dl
jne 0x140b20096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b200f6
xor eax, eax
add dl, dl
jne 0x140b200a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b201ad
add dl, dl
jne 0x140b200b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b200c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b200d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b200dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140b200ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140b2007e
mov eax, 1
add dl, dl
jne 0x140b20106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b20113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b200fb
sub eax, ebx
mov ebx, 1
jne 0x140b2014c
mov ecx, 1
add dl, dl
jne 0x140b2012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b2013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b20123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b2007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140b20168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b20175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b2015d
cmp eax, 0x7d00
jae 0x140b2019b
cmp eax, 0x500
jb 0x140b20196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b2007e
cmp eax, 0x7f
ja 0x140b2019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b2007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140b201d2
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 0x140b2007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001d40
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea r11, [0x140003840]
mov rax, qword [rcx + 8]
mov rbx, qword [rcx]
mov rcx, rax
mov rsi, rax
shr rcx, 0x20
shr rsi, 0x38
mov byte [rsp + 0x1e], cl
mov rcx, rax
lea r14, [rdx + 0x10]
shr rcx, 0x28
mov qword [rdx], rbx
mov byte [rsp + 0x18], cl
mov rcx, rax
shr rcx, 0x30
mov qword [rdx + 8], rax
mov byte [rsp + 0x1f], cl
mov qword [rsp + 0x10], rsi
lea rsi, [0x140014041]
nop dword [rax]
movzx ecx, byte [rsp + 0x1e]
movzx r9d, byte [rsp + 0x10]
movzx r8d, byte [rsp + 0x1f]
movzx edx, byte [rsp + 0x18]
movzx ecx, byte [r11 + rcx]
movzx r9d, byte [r11 + r9]
movzx r8d, byte [r11 + r8]
movzx edx, byte [r11 + rdx]
shl ecx, 8
xor dl, byte [rsi]
or ecx, r9d
movzx edx, dl
shl ecx, 8
or ecx, r8d
shl ecx, 8
or ecx, edx
xor ecx, ebx
shr rbx, 0x20
xor ebx, ecx
mov r13d, ecx
mov r12d, ecx
mov edx, ebx
mov r15d, ebx
mov r9d, ebx
shr r13d, 0x18
shr edx, 0x18
shr r15d, 0x10
xor r9d, eax
movzx r13d, r13b
movzx edx, dl
movzx r15d, r15b
shr rax, 0x20
mov edi, r9d
shl rdx, 8
mov r8d, eax
shr r12d, 0x10
mov ebp, r9d
or rdx, r15
xor r8d, r9d
movzx r12d, r12b
shr edi, 0x10
mov qword [rsp], rdx
movzx edx, bh
movzx ebx, bl
mov eax, r8d
mov r15, rdx
mov rdx, qword [rsp]
movzx eax, ah
mov r10d, r8d
mov dword [rsp + 0x18], eax
mov eax, r8d
shr r10d, 0x10
movzx edi, dil
shl rdx, 8
shr eax, 0x18
mov byte [rsp + 0x1f], r10b
movzx r10d, r10b
or rdx, r15
mov byte [rsp + 0x10], al
movzx eax, al
shr ebp, 0x18
shl rdx, 8
mov byte [rsp + 0x1e], r8b
movzx ebp, bpl
or rdx, rbx
movzx ebx, ch
movzx ecx, cl
shl rdx, 8
or rdx, r13
shl rdx, 8
or rdx, r12
shl rdx, 8
or rdx, rbx
shl rax, 8
mov ebx, r8d
movzx r8d, r8b
or rax, r10
movzx ebx, bh
shl rdx, 8
add rsi, 1
shl rax, 8
or rdx, rcx
add r14, 0x10
or rax, rbx
mov ebx, r9d
movzx r9d, r9b
mov qword [rsp], rdx
shl rax, 8
or rax, r8
shl rax, 8
or rax, rbp
shl rax, 8
or rax, rdi
movzx edi, bh
mov rbx, qword [rsp]
shl rax, 8
or rax, rdi
lea rdi, [0x14001404b]
shl rax, 8
or rax, r9
mov qword [rsp + 8], rax
movdqa xmm0, xmmword [rsp]
movups xmmword [r14 - 0x10], xmm0
cmp rsi, rdi
jne 0x140001da0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400025d7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x88]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x1c]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x24]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x20]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x38], rax
mov dword [rbp - 4], 0
jmp 0x1400026c1
mov eax, dword [rbp - 4]
lea rdx, [rax*4]
mov rax, qword [rbp - 0x38]
add rax, rdx
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rdx, rax
mov rax, qword [rbp + 0x18]
mov rcx, rax
call fcn.140002570
test eax, eax
jne 0x1400026bd
mov rax, qword [rbp + 0x10]
mov edx, dword [rbp - 4]
lea rcx, [rdx + rdx]
mov rdx, qword [rbp - 0x30]
add rdx, rcx
movzx edx, word [rdx]
movzx edx, dx
lea rcx, [rdx*4]
mov rdx, qword [rbp - 0x28]
add rdx, rcx
mov edx, dword [rdx]
mov edx, edx
add rax, rdx
jmp 0x1400026d2
add dword [rbp - 4], 1
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x18]
cmp dword [rbp - 4], eax
jb 0x140002660
mov eax, 0
add rsp, 0x60
pop rbp
ret
Function at 0x14005e450
Capabilities:
Write file on windows

Disassembly:
movsxd rax, dword [rcx - 4]
sub rcx, rax
jmp 0x14005e450
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov r15, r8
mov rsi, rcx
lea rax, [rcx - 0x28]
mov qword [rsp + 0x40], rax
mov byte [rsp + 0x48], 0
lea rcx, [rsp + 0x40]
call fcn.140043950
nop
mov r14b, 1
xor r12d, r12d
mov dword [rsp + 0x90], r12d
mov ebx, r12d
nop dword [rax]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x90]
mov r8d, 8
lea rdx, [rsp + 0x98]
mov rcx, qword [rsi - 0x30]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
inc ebx
cmp ebx, 0x3e8
jg 0x14005e504
mov eax, 0x66666667
imul ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea ecx, [rdx + rdx*4]
add ecx, ecx
cmp ebx, ecx
jne 0x14005e4f6
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rsp + 0x90]
cmp eax, 8
jne 0x14005e4a0
jmp 0x14005e50b
mov eax, dword [rsp + 0x90]
test edi, edi
je 0x14005e5c5
cmp eax, 8
jne 0x14005e5c5
mov edi, dword [rsp + 0x98]
mov dword [rsp + 0xa8], r12d
mov ebx, r12d
nop
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0xa8]
mov r8d, edi
mov rdx, r15
mov rcx, qword [rsi - 0x30]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebp, eax
inc ebx
cmp ebx, 0x3e8
jg 0x14005e58b
mov eax, 0x66666667
imul ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea ecx, [rdx + rdx*4]
add ecx, ecx
cmp ebx, ecx
jne 0x14005e57e
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rsp + 0xa8]
cmp edi, eax
jne 0x14005e530
jmp 0x14005e592
mov eax, dword [rsp + 0xa8]
test ebp, ebp
je 0x14005e5b6
cmp edi, eax
jne 0x14005e5b6
lea rdx, [0x14005e220]
lea rcx, [rsp + 0x30]
call fcn.140038800
mov rax, qword [rsp + 0x30]
mov qword [rsi - 0x48], rax
jmp 0x14005e5dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Blob_WriteFile_failed__GLE_d._n
jmp 0x14005e5d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Header_WriteFile_failed__GLE_d._n
mov edx, eax
call fcn.14005a8c0
xor r14b, r14b
cmp byte [rsp + 0x48], 0
je 0x14005e5ed
mov rcx, qword [rsp + 0x40]
call fcn.140057530
movzx eax, r14b
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14005e690
Capabilities:
Read file on windows

Disassembly:
movsxd rax, dword [rcx - 4]
sub rcx, rax
jmp 0x14005e690
push rbx
push rsi
push r12
sub rsp, 0x40
lea rsi, [rcx - 0xe4]
xor r12d, r12d
mov rbx, rcx
mov dword [rsi + 4], 0xffffffff
mov dword [rsi], r12d
lea r9, [rsp + 0x68]
mov rcx, qword [rcx - 0x38]
mov rdx, rsi
lea r8d, [r12 + 8]
mov dword [rsp + 0x68], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14005e7f6
cmp dword [rsp + 0x68], r12d
je 0x14005e7f6
mov qword [rsp + 0x70], rbp
lea rcx, [rbx - 0xf8]
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x38], r14
mov r14d, dword [rsi]
mov edx, r14d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x60], r12d
call fcn.14005ddd0
movzx ebp, al
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [rbx - 0xf0]
lea r9, [rsp + 0x60]
mov rcx, qword [rbx - 0x38]
mov r8d, r14d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
test eax, eax
je 0x14005e74b
cmp dword [rsp + 0x60], r12d
jne 0x14005e756
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x14005e7ce
test edi, edi
jne 0x14005e774
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x14005e774
mov eax, dword [rsp + 0x60]
add qword [rbx - 0xf0], rax
jmp 0x14005e720
test bpl, bpl
je 0x14005e7c8
lea rdx, [0x14005e220]
lea rcx, [rsp + 0x60]
call fcn.140038800
mov rax, qword [rsp + 0x60]
lea rcx, [rbx - 0xf8]
mov r8, qword [rbx - 0xf0]
mov r9, rsi
mov edx, dword [rsi]
mov qword [rbx - 0x40], rax
call fcn.14005d7f0
mov r14, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x70]
mov r15, qword [rsp + 0x30]
add rsp, 0x40
pop r12
pop rsi
pop rbx
ret
movzx eax, bpl
jmp 0x14005e7ab
lea rcx, str.Pipe_Broke._n
call fcn.14005a8c0
test edi, edi
jne 0x14005e7f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Read_header_failed._GLE_d_n
call fcn.14005a8c0
xor al, al
jmp 0x14005e7ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x14005e818
lea rcx, str.Pipe_Broke._n
call fcn.14005a8c0
xor al, al
add rsp, 0x40
pop r12
pop rsi
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ReadFile_failed__GLE_d._n
call fcn.14005a8c0
xor al, al
add rsp, 0x40
pop r12
pop rsi
pop rbx
ret

Function at 0x14006e210
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x40]
test rcx, rcx
je 0x14006e26f
mov rax, qword [rcx + 8]
add rcx, 8
movsxd r8, dword [rax + 4]
add rcx, r8
mov rax, qword [rcx]
call qword [rax + 0x20]
test al, al
je 0x14006e26f
lea rcx, [rbx + 0x48]
call fcn.14008cfd0
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rdx, qword [rbx + 0x40]
mov rax, qword [rdx + 8]
add rdx, 8
movsxd rcx, dword [rax + 4]
add rcx, rdx
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rdx, rdi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.Qt5Widgets.dll_protected_virtual:_void___cdecl_QWidget::closeEvent_class_QCloseEvent____ptr64____ptr64]
Function at 0x140072670
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0x50
lea rbp, [rsp + 0x20]
mov qword [rbp], 0xfffffffffffffffe
mov qword [rbp + 0x58], rbx
mov qword [rbp + 0x60], rsi
mov rax, qword [0x14035bf60]
xor rax, rbp
mov qword [rbp + 0x28], rax
mov r14, rcx
add rcx, 0x180
cmp qword [rcx + 0x18], 0x10
jb 0x1400726b0
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
lea r8, str.IOM_VERSION
mov edx, 0x3e8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
je 0x1400727f5
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x1400727f5
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r9, rax
lea ecx, [rbx + 1]
mov edx, ecx
lea rax, [rcx + 0xf]
cmp rax, rdx
ja 0x140072724
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1400a8e80
sub rsp, rax
lea rdi, [rsp + 0x20]
mov r8, rbx
mov rdx, r9
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + rdi], 0
mov qword [rbp + 0x20], 0xf
xor r8d, r8d
mov qword [rbp + 0x18], r8
mov byte [rbp + 8], r8b
cmp byte [rdi], r8b
je 0x14007276d
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdi + r8], 0
jne 0x140072763
mov rdx, rdi
lea rcx, [rbp + 8]
call fcn.14000a860
nop
lea rcx, [r14 + 0x160]
lea rax, [rbp + 8]
cmp rcx, rax
je 0x14007279b
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 8]
call fcn.14000a730
nop
mov rax, qword [rbp + 0x20]
cmp rax, 0x10
jb 0x1400727f5
inc rax
mov rcx, qword [rbp + 8]
cmp rax, 0x1000
jb 0x1400727f0
test cl, 0x1f
je 0x1400727c0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400727d0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400727e0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x1400727ed
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.1400a8724
mov rcx, qword [rbp + 0x28]
xor rcx, rbp
call fcn.1400a8da0
mov rbx, qword [rbp + 0x58]
mov rsi, qword [rbp + 0x60]
lea rsp, [rbp + 0x30]
pop r14
pop rdi
pop rbp
ret