joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001789
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
xor eax, eax
mov rsi, rcx
mov ebx, edx
mov rbp, r8
mov dl, byte [rsi + rax + 6]
lea r12, [rsp + 0x2d]
mov byte [rsp + rax + 0x2d], dl
inc rax
cmp rax, 0x32
jne 0x1400017a3
lea rcx, str.PPF2.0_patch_information:_n
mov byte [rsp + 0x5f], 0
call sym.printf
mov rdx, r12
lea rcx, str.Description_:__s_n
call sym.printf
lea rcx, str.File_id.diz_:
call sym.printf
mov r8d, 2
mov edx, ebx
mov rcx, rsi
call sym.ShowFileId
mov r12d, eax
test eax, eax
jne 0x140001808
lea rcx, str.not_available_n
call sym.printf
movzx eax, byte [rsi + 0x39]
movzx edx, byte [rsi + 0x38]
mov r8d, 2
mov rcx, rbp
movzx edi, byte [rsi + 0x3a]
shl eax, 8
add edx, eax
shl edi, 0x10
lea eax, [rdx + rdi]
movzx edi, byte [rsi + 0x3b]
xor edx, edx
shl edi, 0x18
add edi, eax
call dbg.fseeko64
mov rcx, rbp
call sym.ftell
cmp edi, eax
mov rdi, qword [dbg.__acrt_iob_func]
je 0x140001885
lea rcx, str.The_size_of_the_bin_file_isnt_correct__continue____y_n_:
call sym.printf
mov ecx, 1
call rdi
mov rcx, rax
call sym.fflush
xor ecx, ecx
call rdi
mov rcx, rax
call sym.getc
and eax, 0xffffffdf
cmp al, 0x59
je 0x140001885
lea rcx, str.Aborted..._n
jmp 0x140001a19
xor ecx, ecx
call rdi
mov rcx, rax
call sym.fflush
xor eax, eax
lea rdx, [0x1400d0a60]
mov cl, byte [rsi + rax + 0x3c]
mov byte [rdx + rax], cl
inc rax
cmp rax, 0x400
jne 0x14000189a
xor r8d, r8d
mov edx, 0x9320
mov rcx, rbp
call dbg.fseeko64
lea rcx, [0x1400d0e60]
mov r9, rbp
mov r8d, 0x400
mov edx, 1
call sym.fread
lea rcx, str.Error:_Can_not_read_bin_block_n
cmp rax, 0x400
jne 0x140001a19
mov r8d, 0x400
lea rdx, [0x1400d0e60]
lea rcx, [0x1400d0a60]
call sym.memcmp
test al, al
je 0x140001938
lea rcx, str.Binblock_Patchvalidation_failed._continue____y_n_:
call sym.printf
mov ecx, 1
call rdi
mov rcx, rax
call sym.fflush
xor ecx, ecx
call rdi
mov rcx, rax
call sym.getc
and eax, 0xffffffdf
cmp al, 0x59
jne 0x140001879
lea rcx, str.Patching...
call sym.printf
mov ecx, 1
call rdi
mov rcx, rax
call sym.fflush
test r12d, r12d
jne 0x140001960
sub ebx, 0x43c
jmp 0x140001969
sub ebx, 0x462
sub ebx, r12d
mov r12d, 0x43c
lea r13, [0x1400d0860]
lea rcx, str.reading..._b_b_b_b_b_b_b_b_b_b
call sym.printf
mov ecx, 1
call rdi
mov rcx, rax
call sym.fflush
mov eax, r12d
lea ecx, [r12 + 5]
movsxd rdx, dword [rsi + rax]
lea eax, [r12 + 4]
movzx r15d, byte [rsi + rax]
xor eax, eax
mov r14d, r15d
cmp r15d, eax
jle 0x1400019c3
lea r8d, [rcx + rax]
mov r8b, byte [rsi + r8]
mov byte [r13 + rax], r8b
inc rax
jmp 0x1400019ac
xor r8d, r8d
mov rcx, rbp
lea r12d, [r12 + r15 + 5]
call dbg.fseeko64
lea rcx, str.writing..._b_b_b_b_b_b_b_b_b_b
call sym.printf
mov ecx, 1
call rdi
mov rcx, rax
call sym.fflush
mov r9, rbp
movzx r8d, r14b
mov rcx, r13
mov edx, 1
call sym.fwrite
mov eax, 0xfffffffb
sub eax, r15d
add ebx, eax
jne 0x140001976
lea rcx, str.successful._n
call sym.printf
nop
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140001d75
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r12
sub rsp, 0x30
mov qword [rsp + 0x28], r8
mov r12d, edx
mov qword [rsp + 0x20], rcx
call sym.PPFVersion
mov rcx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x28]
cmp eax, 1
mov edx, eax
jne 0x140001dac
mov edx, r12d
add rsp, 0x30
pop r12
jmp sym.ApplyPPF1Patch
cmp eax, 2
jne 0x140001dbf
mov edx, r12d
add rsp, 0x30
pop r12
jmp sym.ApplyPPF2Patch
cmp eax, 3
jne 0x140001dd8
mov r9d, 1
mov edx, r12d
add rsp, 0x30
pop r12
jmp sym.ApplyPPF3Patch
lea rcx, str.Error:_Unknown_PPF_Patch_version__d_n
add rsp, 0x30
pop r12
jmp sym.printf

Function at 0x1400020c0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x140002130
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1400d12f4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x1400022e0
mov rax, qword [0x1400d12f8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000217c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140002207
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140002160
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x14000233d
mov rax, qword [0x1400d12f8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400d12f8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002322
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002200
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002290
add dword [0x1400d12f4], 1
cmp ebx, 8
jae 0x140002238
test bl, 4
jne 0x1400022f0
test ebx, ebx
je 0x140002229
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140002310
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x140002229
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x14000226a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x1400d12f8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002200
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x140002187
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140002229
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140002229
mov rax, qword [0x1400d12f8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop dword [rax]
Function at 0x140002850
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1400d1360]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400d1340]
test rbx, rbx
je 0x1400028a4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000289b
test r12, r12
je 0x14000289b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002880
lea rcx, [0x1400d1360]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002ad0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x140002ae0
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x140002af0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140002b35
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x140002b2c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x140002b37
add rax, 0x28
cmp rax, r9
jne 0x140002b18
xor eax, eax
ret

Function at 0x140002be0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x1400cc5a0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x140002c59
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140002c59
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x140002c56
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x140002c4d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x140002c59
add r8, 0x28
cmp r8, r9
jne 0x140002c38
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x140002d40
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1400cc5a0]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x140002daf
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140002daf
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x140002dad
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002da4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002db8
add rax, 0x28
cmp rax, r9
jne 0x140002d90
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x140002dd0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x1400cc5a0]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x140002e48
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140002e48
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x140002e48
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140002e48
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x140002e3c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140002e50
add rdx, 0x28
cmp rdx, r10
jne 0x140002e28
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x140002e60
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x140002e6e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002e45
test r8d, r8d
jg 0x140002e58
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x140005ea0
Capabilities:
Create pipe
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x80], rbx
movzx esi, r8b
mov rdi, rdx
mov rbx, rcx
xor ebp, ebp
cmp dword [rcx + 0x20], ebp
je 0x140005f11
mov dword [rcx + 0x20], ebp
cmp qword [rcx + 0x60], 0xffffffffffffffff
je 0x140005efe
mov rcx, qword [rcx + 0x60]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x60], 0xffffffffffffffff
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x140005f11
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x58], rbp
cmp rbx, rdi
je 0x140005f28
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call fcn.1400075c0
test sil, sil
je 0x140005fe3
mov ecx, Ordinal_41
call fcn.1400e194c
mov qword [rsp + 0x50], rax
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov dword [rsp + 0x48], Ordinal_27
mov dword [rsp + 0x58], 1
cmp qword [rbx + 0x18], 0x10
jb 0x140005f7f
mov rcx, qword [rbx]
jmp 0x140005f82
mov rcx, rbx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x28], 0x200
mov dword [rsp + 0x20], 0x200
mov r9d, VarUI2FromI4
xor r8d, r8d
mov edx, 0x80003
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov qword [rbx + 0x68], rax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140005fc7
call fcn.1400e1944
cmp qword [rbx + 0x68], 0xffffffffffffffff
jne 0x140005fda
mov rcx, rdi
call fcn.140007010
xor al, al
jmp 0x140006029
lea r8, [0x140006c30]
jmp 0x140005fea
lea r8, [0x140006ab0]
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebp
mov dword [rsp + 0x90], ebp
mov r9, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x58], rax
cmp rax, rbp
je 0x140005fce
mov dword [rbx + 0x20], 1
mov rcx, rdi
call fcn.140007010
mov al, 1
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x140008de0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov r14, rcx
xor sil, sil
cmp qword [rcx + 0x18], 0x10
jb 0x140008e08
mov rcx, qword [rcx]
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140008f8c
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x98], edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x98]
lea r8d, [rdi + 4]
lea rdx, [rsp + 0xa0]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor r9d, r9d
xor r8d, r8d
lea edx, [rdi + 4]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [rbx - 4]
mov esi, eax
mov edx, eax
lea rcx, [rsp + 0x48]
call fcn.14000b2a0
mov r8, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
sub r8, rbx
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x98]
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r9, rbx
lea ecx, [rdi + 1]
test rsi, rsi
je 0x140008f1d
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r9]
add ecx, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xfff1
sub ecx, eax
lea r9, [r9 + 1]
lea r8d, [rdi + rcx]
mov eax, 0x80078071
mul r8d
shr edx, 0xf
imul eax, edx, 0xfff1
sub r8d, eax
mov edi, r8d
sub rsi, 1
jne 0x140008ee0
shl edi, 0x10
add edi, ecx
cmp edi, dword [rsp + 0xa0]
sete sil
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x140008f8c
mov rax, qword [rsp + 0x58]
sub rax, rbx
cmp rax, 0x1000
jb 0x140008f83
test bl, 0x1f
je 0x140008f56
call fcn.1400e463c
int3
mov rax, qword [rbx - 8]
cmp rax, rbx
jb 0x140008f65
call fcn.1400e463c
int3
sub rbx, rax
cmp rbx, 8
jae 0x140008f74
call fcn.1400e463c
int3
cmp rbx, 0x27
jbe 0x140008f80
call fcn.1400e463c
int3
mov rbx, rax
mov rcx, rbx
call fcn.14007b810
nop
mov rcx, r14
call fcn.140007010
movzx eax, sil
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000a270
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2b0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x2f0], rbx
mov r14, rdx
mov rbx, rcx
call fcn.140008fb0
test al, al
je 0x14000a2ed
mov rcx, rbx
call fcn.140009060
test al, al
je 0x14000a2ed
xor r12d, r12d
mov dword [rsp + 0x300], r12d
mov r9d, 4
lea r8, [rsp + 0x300]
mov edx, r9d
mov rcx, rbx
call fcn.140009120
test al, al
jne 0x14000a2f4
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x14000a2ed
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0xffffffffffffffff
xor al, al
jmp 0x14000a494
mov edi, 8
mov r15d, dword [rsp + 0x300]
add r15d, 0xfffffff8
movabs rax, 0x948b0fcd6e9e0653
mul r15
sub r15, rdx
shr r15, 1
add r15, rdx
shr r15, 8
lea rcx, [rsp + 0x1b0]
call fcn.140008320
lea rcx, [rsp + 0x38]
call fcn.140008cc0
nop
cmp qword [rax + 0x18], 0x10
jb 0x14000a341
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0x1b0]
call fcn.140008360
nop
lea rcx, [rsp + 0x38]
call fcn.140007010
mov ebp, r12d
test r15d, r15d
je 0x14000a48b
movabs r13, 0xbe82fa0be82f9f
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x14000a3ca
xor r9d, r9d
xor r8d, r8d
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x308], r12d
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x308]
mov r8d, 0x144
lea rdx, [rsp + 0x60]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x308], 0x144
sete al
test al, al
je 0x14000a470
jmp 0x14000a3fa
mov rdx, qword [rbx + 0x30]
sub rdx, qword [rbx + 0x28]
lea ecx, [rdi + 0x144]
cmp rcx, rdx
ja 0x14000a470
mov r8d, edi
add r8, qword [rbx + 0x28]
mov edx, 0x144
mov r9d, edx
lea rcx, [rsp + 0x60]
call fcn.14000d1b0
add edi, 0x144
mov r8d, 0x144
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x1b0]
call fcn.140008450
test al, al
je 0x14000a470
mov rsi, qword [r14]
lea r9, [rsp + 0x60]
mov r8, qword [rsi + 8]
mov rdx, rsi
mov rcx, r14
call fcn.14000b090
mov rdx, qword [r14 + 8]
mov rcx, r13
sub rcx, rdx
cmp rcx, 1
jb 0x14000a463
lea rcx, [rdx + 1]
mov qword [r14 + 8], rcx
mov qword [rsi + 8], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rax
inc ebp
cmp ebp, r15d
jb 0x14000a372
jmp 0x14000a48b
lea rcx, str.list_T__too_long
call fcn.14007e084
int3
mov dil, 1
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x14000a48d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0xffffffffffffffff
jmp 0x14000a48d
xor edi, edi
movzx eax, dil
xor eax, 1
mov rbx, qword [rsp + 0x2f0]
add rsp, 0x2b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000aca0
Capabilities:
Get file version info

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov qword [r11 - 0x48], 0xfffffffffffffffe
mov rsi, rdx
mov rdi, rcx
xor eax, eax
mov dword [rsp + 0x30], eax
mov qword [r11 + 0x20], rax
mov dword [r11 + 0x18], eax
xor edx, edx
mov rcx, qword [rsi]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebp, eax
test eax, eax
jne 0x14000ad0e
call fcn.14000bcc0
mov rcx, rax
test rax, rax
jne 0x14000acf9
mov ecx, 0x80004005
call fcn.14000b790
int3
mov rax, qword [rax]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rdi], rax
or ebx, 0xffffffff
jmp 0x14000ae2d
mov rcx, rbp
call fcn.14007b85c
mov rbx, rax
mov r9, rax
mov r8d, ebp
xor edx, edx
mov rcx, qword [rsi]
call sub.VERSION.dll_GetFileVersionInfoA
mov rcx, rbx
test eax, eax
jne 0x14000ad4d
call fcn.14007b864
call fcn.14000bcc0
mov rcx, rax
test rax, rax
jne 0x14000acf9
mov ecx, 0x80004005
call fcn.14000b790
int3
lea r9, [rsp + 0xa0]
lea r8, [rsp + 0xa8]
lea rdx, reloc.SHELL32.dll_PathGetShortPath
call sub.VERSION.dll_VerQueryValueW
mov rcx, rbx
test eax, eax
jne 0x14000ad91
call fcn.14007b864
call fcn.14000bcc0
mov rcx, rax
test rax, rax
jne 0x14000acf9
mov ecx, 0x80004005
call fcn.14000b790
int3
mov rax, qword [rsp + 0xa8]
movzx ebp, word [rax + 0x12]
movzx r14d, word [rax + 0x10]
movzx r15d, word [rax + 0x16]
movzx r12d, word [rax + 0x14]
call fcn.14007b864
call fcn.14000bcc0
mov rcx, rax
test rax, rax
jne 0x14000adc9
mov ecx, 0x80004005
call fcn.14000b790
int3
mov rax, qword [rax]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r15d
mov r9d, r14d
mov r8d, ebp
lea rdx, str._d._d._d._d
lea rcx, [rsp + 0x38]
call fcn.14000bb10
mov r14, qword [rsp + 0x38]
lea rcx, [r14 - 0x18]
call fcn.14000b7c0
add rax, 0x18
mov qword [rdi], rax
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [r14 - 8], eax
sub eax, 1
jg 0x14000ae2d
mov rcx, qword [r14 - 0x18]
mov rax, qword [rcx]
lea rdx, [r14 - 0x18]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14000ae47
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, rdi
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000d470
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
mov rax, rsp
push rbp
push rsi
push r14
sub rsp, 0x170
add dword [rcx + 0x58], r8d
mov ebp, r8d
mov r14, rdx
mov rsi, rcx
test r8d, r8d
jle 0x14000d65a
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
mov qword [rax - 0x20], r13
mov qword [rax - 0x28], r15
nop dword [rax + rax]
movsxd rax, dword [rsi + 0x54]
lea rcx, [rsi + 0x14]
mov edi, 0x40
mov rdx, r14
sub edi, dword [rsi + 0x54]
cmp ebp, edi
cmovl edi, ebp
add rcx, rax
movsxd rbx, edi
mov r8, rbx
call fcn.1400ac280
add dword [rsi + 0x54], edi
sub ebp, edi
add r14, rbx
cmp dword [rsi + 0x54], 0x40
jne 0x14000d62a
mov r12d, dword [rsi]
lea rbx, [rsp + 0x20]
mov r13d, dword [rsi + 4]
lea rdx, [rsi + 0x16]
mov r9d, dword [rsi + 8]
sub rbx, rsi
mov r11d, dword [rsi + 0xc]
mov edi, r12d
mov r15d, dword [rsi + 0x10]
mov r8d, r13d
mov r10d, reloc.WS2_32.dll_recv
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [rdx - 2]
movzx eax, byte [rdx - 1]
lea rdx, [rdx + 4]
shl eax, 0x10
shl ecx, 0x18
add ecx, eax
movzx eax, byte [rdx - 4]
shl eax, 8
add ecx, eax
movzx eax, byte [rdx - 3]
add ecx, eax
mov dword [rbx + rdx - 0x1a], ecx
sub r10, 1
jne 0x14000d520
lea rcx, [rsp + 0x28]
lea edx, [r10 + 0x40]
nop word [rax + rax]
mov eax, dword [rcx + 0x2c]
xor eax, dword [rcx + 0x18]
xor eax, dword [rcx - 8]
xor eax, dword [rcx]
lea rcx, [rcx + 4]
rol eax, 1
mov dword [rcx + 0x34], eax
sub rdx, 1
jne 0x14000d560
nop word [rax + rax]
cmp rdx, 0x14
jge 0x14000d59e
mov eax, r8d
mov ecx, r9d
not eax
and ecx, r8d
and eax, r11d
mov r10d, 0x5a827999
or eax, ecx
jmp 0x14000d5da
cmp rdx, 0x28
jge 0x14000d5ac
mov r10d, 0x6ed9eba1
jmp 0x14000d5d1
cmp rdx, 0x3c
jge 0x14000d5cb
mov eax, r9d
mov ecx, r9d
or eax, r8d
and ecx, r8d
and eax, r11d
mov r10d, 0x8f1bbcdc
or eax, ecx
jmp 0x14000d5da
mov r10d, 0xca62c1d6
mov eax, r11d
xor eax, r9d
xor eax, r8d
mov ecx, edi
rol ecx, 5
add ecx, dword [rsp + rdx*4 + 0x20]
inc rdx
add ecx, eax
add ecx, r10d
add ecx, r15d
mov r15d, r11d
mov r11d, r9d
mov r9d, r8d
ror r9d, 2
mov r8d, edi
mov edi, ecx
cmp rdx, 0x50
jl 0x14000d580
add dword [rsi + 8], r9d
lea eax, [r12 + rcx]
add dword [rsi + 0xc], r11d
add dword [rsi + 0x10], r15d
mov dword [rsi], eax
lea eax, [r8 + r13]
mov dword [rsi + 4], eax
mov dword [rsi + 0x54], 0
test ebp, ebp
jg 0x14000d4b0
mov r15, qword [rsp + 0x160]
mov r13, qword [rsp + 0x168]
mov r12, qword [rsp + 0x1a0]
mov rdi, qword [rsp + 0x198]
mov rbx, qword [rsp + 0x190]
add rsp, 0x170
pop r14
pop rsi
pop rbp
ret