joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400590c0
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x140059268
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x140059125
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x140059125
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140059125
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x14005915c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x1400591b2
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400591b2
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400591b2
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400591b2
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400591b2
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.140058b70
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x140059214
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400352f0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.140058f40
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140059260
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400352f0
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x14005a9d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140091698]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x14005aa65
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x14005aac6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1400352f0
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14006dcf0
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x14005ab81
sub ecx, 1
je 0x14005abf4
sub ecx, 1
je 0x14005ab30
cmp ecx, 1
je 0x14005ab13
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x140072100]
call fcn.1400352f0
jmp 0x14005abf4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.14005a700
test eax, eax
je 0x14005abf4
jmp 0x14005aa9a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x14005abf4
sub rax, rsi
cmp rax, rbp
jae 0x14005abf4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140035470
jmp 0x14005abf4
cmp r8d, 4
jle 0x14005abf4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x14005abf4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140035210
mov esi, eax
test eax, eax
je 0x14005abd3
mov edx, 5
mov rcx, rbx
call fcn.14005b6c0
mov eax, esi
jmp 0x14005aa9a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140043af0
mov rcx, r14
call fcn.140043dd0
test eax, eax
je 0x14005aa98
mov edx, 5
mov rcx, rbx
call fcn.14005b6c0
mov eax, Ordinal_45
jmp 0x14005aa9a
Function at 0x14006d990
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x14006d9d2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x14006da19
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x14006da72
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x14006da30
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14006dab3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x140085902]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x140085903]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14006da80
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x14006e86c
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x14010d30d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14010d31d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14010d305
lea eax, [rcx + 1]
jmp 0x14010d32b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14010d33e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14010d324
sub eax, 3
jb 0x14010d35e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14010d3ad
sar eax, 1
movsxd rbp, eax
jb 0x14010d394
jmp 0x14010d36c
add ebx, ebx
jne 0x14010d36a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14010d394
inc ecx
add ebx, ebx
jne 0x14010d37a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14010d394
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14010d38d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14010d37c
add ecx, 2
jmp 0x14010d399
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14010d2c2
jmp 0x14010d30d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xc9800
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14010d3fd
cmp rsi, rcx
jae 0x14010d405
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14010d3e4
cmp al, 0x8f
ja 0x14010d3e4
cmp byte [rsi - 2], 0xf
je 0x14010d3ea
sub al, 0xe8
cmp al, 1
ja 0x14010d3ce
cmp rsi, rcx
jae 0x14010d405
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14010d3d4
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14010d405
lodsb al, byte [rsi]
jmp 0x14010d3e4
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x10a000]
mov eax, dword [rdi]
or eax, eax
je 0x14010d462
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x10d000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14010d412
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14010d45c
mov qword [rbx], rax
add rbx, 8
jmp 0x14010d432
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14010d49c
cmp al, 0xef
ja 0x14010d48e
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14010d46e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14010d47d
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.14010d51b], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.14010d51b
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14010d50b
sub rsp, 0xffffffffffffff80
jmp 0x1400013f0
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
add esp, 0xfffff254
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040dc
push r9
push r8
push rdx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
push rcx
push rsi
mov rdx, qword [rdx + 0x20]
movzx rcx, word [rdx + 0x4a]
xor r9, r9
mov rsi, qword [rdx + 0x50]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x14000403d
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x140004033
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040d1
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040d1
add rax, rdx
mov r8d, dword [rax + 0x20]
mov ecx, dword [rax + 0x18]
add r8, rdx
push rax
jrcxz 0x1400040d0
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004087
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004078
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
pop r8
pop rsi
pop rcx
add rax, rdx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004027
Function at 0x180062a50
Capabilities:
Enumerate pe sections

Disassembly:
push r14
push r15
sub rsp, 0x28
mov r15d, edx
xor edx, edx
mov r14, rcx
call fcn.18002ff10
mov rcx, r14
mov edx, dword [rax + 0x3c]
call fcn.18002ff10
mov rdx, rax
xor ecx, ecx
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
jbe 0x180062aa5
mov r9d, dword [rax + 0xc]
cmp r15d, r9d
jb 0x180062a9b
mov r8d, dword [rax + 8]
add r9d, r8d
cmp r15d, r9d
jb 0x180062ab0
inc ecx
add rax, 0x28
cmp ecx, edx
jb 0x180062a86
xor eax, eax
add rsp, 0x28
pop r15
pop r14
ret
add rsp, 0x28
pop r15
pop r14
ret

Function at 0x180062ac0
Capabilities:
Parse pe header

Disassembly:
push r14
push r15
sub rsp, 0x58
mov r14, rcx
mov ecx, 0x170
call fcn.180068700
mov r15, rax
test r15, r15
je 0x180062b27
xor edx, edx
lea rcx, [r15 + 0x40]
call fcn.180062df0
xor r9d, r9d
mov rcx, r15
xor edx, edx
mov r8d, 0x40
mov dword [r15 + 0x160], r9d
mov dword [r15 + 0x164], r9d
mov qword [r15 + 0x168], 0
call fcn.180012b10
xor edx, edx
lea rcx, [r15 + 0x58]
mov r8d, 0x108
call fcn.180012b10
jmp 0x180062b2a
xor r15d, r15d
mov rcx, r14
xor edx, edx
call fcn.18002ff10
mov rcx, r15
mov rdx, rax
mov r8d, 0x40
call fcn.18006fcf0
movzx edx, word [r15]
cmp edx, 0x5a4d
je 0x180062b69
mov rcx, r15
mov edx, 1
call fcn.180058890
xor eax, eax
add rsp, 0x58
pop r15
pop r14
ret
mov rcx, r14
mov edx, 0x40
call fcn.18002ff10
mov r8d, dword [r15 + 0x3c]
lea rcx, [r15 + 0x40]
add r8d, 0xffffffc0
mov rdx, rax
call fcn.180033420
mov rcx, r14
mov edx, dword [r15 + 0x3c]
call fcn.18002ff10
mov rdx, rax
lea rcx, [r15 + 0x58]
mov r8d, 0x108
call fcn.18006fcf0
cmp dword [r15 + 0x58], 0x4550
jne 0x180062b51
xor r9d, r9d
xor r10d, r10d
movzx edx, word [r15 + 0x5e]
xor r8d, r8d
test edx, edx
lea rcx, [r15 + 0x160]
jle 0x180062cfa
mov qword [rsp + 0x48], rbx
mov rbx, rcx
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rdi
mov rdi, r9
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rbp
mov ebp, r10d
Function at 0x140001790
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push rbx
mov eax, 0x10040
call fcn.140038270
sub rsp, rax
mov rax, qword [0x1400c6158]
xor rax, rsp
mov qword [rsp + 0x10030], rax
mov ebx, 0x7fff
lea rdx, [rsp + 0x30]
mov r8d, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000183e
mov edx, 0x5c
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_wcsrchr
test rax, rax
je 0x14000183e
mov ecx, 0x3b
lea rdx, [rsp + 0x30]
mov word [rax], cx
movzx ecx, word [0x14003aa18]
movsd xmm0, qword [str.PATH]
mov word [rsp + 0x28], cx
lea rcx, [rax + 2]
sub rcx, rdx
movsd qword [rsp + 0x20], xmm0
sar rcx, 1
lea rdx, [rax + 2]
sub ebx, ecx
lea rcx, [rsp + 0x20]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14000183e
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
cmp eax, 1
jne 0x14000183e
jmp 0x140001840
xor al, al
mov rcx, qword [rsp + 0x10030]
xor rcx, rsp
call fcn.1400382e0
add rsp, 0x10040
pop rbx
ret
Function at 0x140012e50
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x40
mov rbx, rcx
lea rax, [rsp + 0x60]
mov r9, rdx
mov qword [rsp + 0x20], rax
mov r8, rcx
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140011af0
mov rax, qword gs:[0x58]
mov edx, dword [0x1400c6730]
mov ecx, 8
mov rdx, qword [rax + rdx*8]
mov eax, dword [rcx + rdx]
cmp dword [0x1400c6634], eax
jg 0x140012f04
mov eax, dword [0x1400c6630]
test eax, eax
je 0x140012ec1
lea edx, [rax - 1]
mov dword [0x1400c6630], edx
cmp eax, 1
je 0x140012ef1
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x140012edd
cmp eax, 0xffffffff
je 0x140012eeb
sub eax, 1
mov dword [rcx], eax
jne 0x140012eeb
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140003e30
add rsp, 0x40
pop rbx
ret
lea r8, [rsp + 0x30]
mov rdx, rbx
mov ecx, 1
call fcn.140011b40
int3
lea rcx, [0x1400c6634]
call fcn.1400380cc
cmp dword [0x1400c6634], 0xffffffff
jne 0x140012ea9
lea rcx, str.QT_FATAL_WARNINGS
call fcn.140010d60
lea rcx, [0x1400c6634]
mov dword [0x1400c6630], eax
call fcn.14003806c
jmp 0x140012ea9

Function at 0x140025070
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
xor r9d, r9d
mov r10, rcx
mov ecx, r9d
cmp rdx, 0x20
jb 0x1400250f7
mov qword [rsp + 0x10], rbx
lea r11, [r8 + 0x10]
mov qword [rsp], rdi
mov rbx, r10
sub rbx, r8
mov edi, 0x10
sub rdi, r8
nop
movdqu xmm0, xmmword [rbx + r11 - 0x10]
add rcx, 0x20
movdqu xmm2, xmmword [rbx + r11]
lea r11, [r11 + 0x20]
movdqa xmm1, xmm0
lea rax, [rdi + r11]
psrlw xmm0, 8
psllw xmm1, 8
pxor xmm1, xmm0
movdqa xmm0, xmm2
psllw xmm0, 8
psrlw xmm2, 8
pxor xmm0, xmm2
movdqu xmmword [r11 - 0x20], xmm0
movdqu xmmword [r11 - 0x30], xmm1
cmp rax, rdx
jbe 0x1400250a0
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
lea rax, [rcx + 0x10]
cmp rax, rdx
ja 0x140025121
movdqu xmm0, xmmword [rcx + r10]
movdqa xmm1, xmm0
psrlw xmm0, 8
psllw xmm1, 8
pxor xmm1, xmm0
movdqu xmmword [rcx + r8], xmm1
mov rcx, rax
cmp rcx, rdx
jae 0x140025155
lea rax, [rcx + r8]
sub r10, r8
nop dword [rax]
cmp r9, 0x10
jae 0x140025155
movzx ecx, word [rax + r10]
add r9, 2
rol cx, 8
mov word [rax], cx
add rax, 2
mov rcx, rax
sub rcx, r8
cmp rcx, rdx
jb 0x140025130
mov rax, rdx
add rsp, 8
ret
Function at 0x140029310
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 8]
mov rdi, r8
mov rsi, rdx
cmp dword [rbx + 0xa4], 1
je 0x140029342
mov rax, qword [rcx]
call qword [rax + 0x18]
mov dword [rbx + 0xa4], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1400324e0
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov r15, qword [rcx + 0x18]
mov rsi, rcx
mov rcx, qword [rcx + 0x78]
mov rbp, r8
mov r14, rdx
test rcx, rcx
jne 0x1400325c5
cmp dword [rsi + 0xa0], 0xffffffff
jne 0x14003264b
cmp qword [rsi + 0x80], 0xffffffffffffffff
je 0x140032642
xor r12d, r12d
mov rdi, r8
mov ebx, r12d
mov rcx, qword [rsi + 0x80]
lea rdx, [rbx + r14]
mov r8d, 0x2000000
mov qword [rsp + 0x20], r12
cmp rdi, r8
lea r9, [rsp + 0x60]
cmovl r8d, edi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003257b
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x140032573
add rbx, rax
sub rdi, rax
cmp rbx, rbp
jl 0x140032534
mov rax, rbx
jmp 0x140032659
test rbx, rbx
jne 0x140032573
lea edx, [rbx - 1]
lea rcx, [rsp + 0x78]
call fcn.140029ec0
mov r8, rax
lea edx, [rbx + 1]
mov rcx, r15
call fcn.140027a30
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx]
test eax, eax
je 0x140032633
cmp eax, 0xffffffff
je 0x140032642
sub eax, 1
mov dword [rcx], eax
jne 0x140032642
mov rcx, qword [rsp + 0x78]
jmp 0x140032633
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
cmp rax, 0xffffffffffffffff
je 0x14003264b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
add eax, 0xfffffffe
cmp eax, 1
ja 0x14003264b
mov rcx, qword [rsi + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
je 0x14003264b
mov edx, 0xffffffff
lea rcx, [rsp + 0x60]
call fcn.14002a030
mov r8, rax
mov edx, 1
mov rcx, r15
call fcn.140027a30
mov rcx, qword [rsp + 0x60]
mov edx, dword [rcx]
test edx, edx
je 0x140032633
cmp edx, 0xffffffff
je 0x140032642
sub edx, 1
mov dword [rcx], edx
jne 0x140032642
mov rcx, qword [rsp + 0x60]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.140003e30
mov rax, 0xffffffffffffffff
jmp 0x140032659
mov r8, rbp
mov rdx, r14
mov rcx, rsi
call fcn.140029360
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140029360
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r12
push r14
push r15
sub rsp, 0x20
mov r12, qword [rcx + 0x18]
mov rbp, r8
mov r15, rdx
mov r14, rcx
test r8, r8
js 0x1400294e3
xor ebx, ebx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
cmp qword [rcx + 0x78], rbx
je 0x140029439
nop dword [rax]
mov r9, qword [r14 + 0x78]
lea rcx, [rbx + r15]
mov r8, rbp
mov edx, 1
sub r8, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, qword [r14 + 0x78]
mov rsi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
setne al
test al, al
je 0x1400293d4
test rsi, rsi
je 0x140029406
lea rdi, [rsi + rbx]
mov rbx, rdi
test al, al
jne 0x1400294c9
test rsi, rsi
jne 0x1400293f8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
xor ecx, ecx
cmp dword [rax], 4
sete cl
jmp 0x140029400
xor ecx, ecx
cmp rdi, rbp
setl cl
test ecx, ecx
jne 0x1400293a0
jmp 0x14002947a
mov rcx, qword [r14 + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov rcx, qword [r14 + 0x78]
xor r8d, r8d
mov edx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rdi, qword [rsp + 0x60]
mov rax, rbx
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
cmp dword [rcx + 0xa0], 0xffffffff
je 0x14002947f
mov ecx, dword [r14 + 0xa0]
lea rdx, [rbx + r15]
mov r8d, 0x7fffffff
mov rax, rbp
sub rax, rbx
cmp rax, r8
cmovb r8d, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
movsxd rcx, eax
test eax, eax
jle 0x140029475
add rbx, rcx
cmp rbx, rbp
jl 0x140029442
cmp ecx, 0xffffffff
jne 0x1400294c9
test rbx, rbx
jne 0x1400294c9
mov rbx, 0xffffffffffffffff
lea rcx, [rsp + 0x50]
mov edx, ebx
call fcn.14002a030
mov r8, rax
lea edx, [rbx + 2]
mov rcx, r12
call fcn.140027a30
mov rcx, qword [rsp + 0x50]
mov edx, dword [rcx]
test edx, edx
je 0x1400294bb
cmp edx, ebx
je 0x1400294c9
sub edx, 1
mov dword [rcx], edx
jne 0x1400294c9
mov rcx, qword [rsp + 0x50]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140003e30
mov rdi, qword [rsp + 0x60]
mov rax, rbx
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
mov edx, 0x16
lea rcx, [rsp + 0x50]
call fcn.14002a030
mov r8, rax
mov edx, 1
mov rcx, r12
call fcn.140027a30
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx]
test eax, eax
je 0x14002951e
cmp eax, 0xffffffff
je 0x14002952c
sub eax, 1
mov dword [rcx], eax
jne 0x14002952c
mov rcx, qword [rsp + 0x50]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140003e30
mov rax, 0xffffffffffffffff
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
Function at 0x14002aa70
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rax, rdx
mov rdi, rcx
mov rcx, rax
lea rdx, [rsp + 0x20]
mov rsi, r8
call fcn.140028000
mov rcx, rax
call fcn.14000a850
lea rdx, [rsp + 0x58]
mov rcx, rdi
mov rbx, rax
call fcn.140028000
mov rcx, rax
call fcn.14000a850
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov rcx, qword [rsp + 0x58]
test eax, eax
setne bl
mov eax, dword [rcx]
test eax, eax
je 0x14002aae8
cmp eax, 0xffffffff
je 0x14002aaf6
sub eax, 1
mov dword [rcx], eax
jne 0x14002aaf6
mov rcx, qword [rsp + 0x58]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140003e30
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x14002ab12
cmp eax, 0xffffffff
je 0x14002ab20
sub eax, 1
mov dword [rcx], eax
jne 0x14002ab20
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140003e30
test bl, bl
jne 0x14002ab3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x5c], 2
mov rcx, qword [rsp + 0x58]
mov qword [rsi], rcx
mov rsi, qword [rsp + 0x48]
movzx eax, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret