joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180033c30
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x180079bbc]
mov ebx, edi
test ecx, ecx
je 0x180033d6d
mov rax, qword [0x180079bb0]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x180033c88
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180033c60
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x180033d6d
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.180033950
mov r8d, dword [0x180079bbc]
cmp ebx, r8d
jae 0x180033cf8
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x180079bb0]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x180033cf1
mov edx, esi
mov ecx, ebx
call fcn.180033b00
mov edi, eax
test eax, eax
jne 0x180033cf8
mov r8d, dword [0x180079bbc]
inc ebx
cmp ebx, r8d
jb 0x180033cc0
cmp qword [rsp + 0x20], 0
je 0x180033d6d
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180033d59
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180033d4a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180033d20
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180079aa0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1800340c0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x1800798a8], ebp
je 0x180034117
cmp rbx, 0x20
jae 0x180034100
xor ecx, ecx
jmp 0x180034102
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1800798a8], ebp
jne 0x1800340f6
cmp qword [0x180079aa0], r15
je 0x180034213
test rdi, rdi
jne 0x180034137
mov ecx, esi
call fcn.180033c30
mov ebp, eax
jmp 0x180034218
mov ecx, dword [0x180079bbc]
mov ebx, r15d
test ecx, ecx
je 0x18003415f
mov r8, qword [0x180079bb0]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x180034169
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180034150
mov ebp, 4
jmp 0x180034218
cmp ebx, 0xffffffff
je 0x18003415f
mov eax, ebx
imul rdx, rax, 0x38
movzx eax, byte [rdx + r8 + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x18003420a
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.180033950
mov edx, esi
mov ecx, ebx
call fcn.180033b00
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x180034218
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800341f4
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x1800341ea
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x1800341c0
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180079aa0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180034218
neg esi
sbb ebp, ebp
add ebp, 6
jmp 0x180034218
mov ebp, 2
xchg dword [0x1800798a8], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x18003d46c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1800354d0
sub rsp, rax
mov rax, qword [0x180077040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180048018
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18003d4bb
mov rax, rbp
jmp 0x18003d5c3
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x79110]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180048e50
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x79110]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18003d5bf
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18003d5bf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180048e50
test rax, rax
js 0x18003d5bf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18003d5bf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18003d5b1
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18003d5b1
cmp byte [rcx], 0xd
jne 0x18003d597
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18003d5a6
cmp byte [rcx + 1], 0xa
jne 0x18003d5a6
inc rcx
jmp 0x18003d5a6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x77450]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18003d579
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18003d5c3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180034810
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x180045ba8
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 0x180045c17
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180045c17
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180045c17
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180045c17
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180045c17
cmp dword [rcx + 0x84], 0xe
jbe 0x180045c17
cmp dword [rcx + 0xf8], 0
je 0x180045c17
mov ecx, ebx
call fcn.180045cc8
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.180045aa4
nop
cmp dword [rbp + 0x20], 0
je 0x180045c65
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180045c70
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180045ba8
Function at 0x180048efc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x180079110]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x180048f53
cmp word [rdx], r13w
jne 0x180048f53
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180048f58
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18004907d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18004909e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180048f91
mov rdx, r9
mov word [rbx], cx
jmp 0x180048fb8
cmp r9, r8
jae 0x180048fc8
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x180048f72
jmp 0x18004907d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180049072
cmp dword [rsp + 0x80], esi
je 0x180049072
lea r8, [0x180079110]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18004904a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18004901a
mov word [rbx], r13w
jmp 0x18004907a
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x180049027
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18004907a
cmp word [rsp + 0x70], r13w
jne 0x180049057
cmp rbx, r14
je 0x180049014
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180048e58
cmp word [rsp + 0x70], r13w
je 0x18004907d
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x180079110]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180049077
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18004907d
Function at 0x18004b5b0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18004b5c6
mov al, 1
jmp 0x18004b626
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18004b5d7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18004b624
mov ecx, dword [rcx + 0x18]
nop
call fcn.180050584
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18004b624
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18004b624
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18004b624
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18004b626
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18004dfa4
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18004dfd4
xor eax, eax
jmp 0x18004e097
mov rbp, rbx
cmp word [rax], si
je 0x18004dff9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18004dfe0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18004dfdc
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18004c848
movsxd r14, eax
test eax, eax
jne 0x18004e037
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18004dfcd
mov rcx, r14
call fcn.180046d18
mov rdi, rax
test rax, rax
jne 0x18004e050
xor ecx, ecx
call fcn.180046cdc
jmp 0x18004e02c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18004c848
test eax, eax
jne 0x18004e081
mov rcx, rdi
call fcn.180046cdc
jmp 0x18004e08b
xor ecx, ecx
call fcn.180046cdc
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x180052a18
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.180048e58
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180048e58
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180052b68
cmp rax, 0xffffffffffffffff
je 0x180052b68
xor edi, edi
test rbp, rbp
jle 0x180052b13
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180049cc0
mov rbx, rax
test rax, rax
jne 0x180052aa0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180052b09
mov edx, 0x8000
mov ecx, r14d
call fcn.18005289c
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.18004adac
cmp eax, 0xffffffff
je 0x180052ae9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180052ab0
mov edx, r15d
mov ecx, r14d
call fcn.18005289c
jmp 0x180052b09
cmp byte [rsi + 0x38], dil
je 0x180052b00
cmp dword [rsi + 0x34], 5
jne 0x180052b00
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180052b09
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180046cdc
jmp 0x180052b7c
jns 0x180052b7c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180048e58
cmp rax, 0xffffffffffffffff
jne 0x180052b34
cmp byte [rsi + 0x30], dil
je 0x180052b7c
mov edi, dword [rsi + 0x2c]
jmp 0x180052b7c
mov ecx, r14d
call fcn.180050584
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180052b7c
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 0x180052b7c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180052b75
mov eax, dword [rsi + 0x2c]
jmp 0x180052b7a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180048e58
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 0x1800535b0
Capabilities:
Parse pe header

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

Disassembly:
call fcn.140f121df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140f12089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f1206f
add dl, dl
jne 0x140f12096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f120f6
xor eax, eax
add dl, dl
jne 0x140f120a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f121ad
add dl, dl
jne 0x140f120b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f120c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f120d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f120dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140f120ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140f1207e
mov eax, 1
add dl, dl
jne 0x140f12106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f12113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f120fb
sub eax, ebx
mov ebx, 1
jne 0x140f1214c
mov ecx, 1
add dl, dl
jne 0x140f1212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140f1213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f12123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f1207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140f12168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140f12175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f1215d
cmp eax, 0x7d00
jae 0x140f1219b
cmp eax, 0x500
jb 0x140f12196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f1207e
cmp eax, 0x7f
ja 0x140f1219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f1207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140f121d2
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 0x140f1207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001750
Capabilities:
Execute command

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x140047010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rdx
mov qword [rsp + 0x28], rdx
mov rbp, qword [rdx + 0x10]
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, rbp
cmp rax, 6
jb 0x1400019a9
mov r15, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x1400017aa
mov r15, qword [rdx]
mov qword [rsp + 0x30], 0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
lea r14, [rbp + 6]
mov edi, 0xf
lea rsi, [rsp + 0x30]
cmp r14, rdi
jbe 0x140001850
mov rdi, r14
or rdi, 0xf
cmp rdi, rcx
jbe 0x1400017e4
mov rdi, rcx
jmp 0x1400017f0
mov eax, 0x16
cmp rdi, rax
cmovb rdi, rax
mov rcx, rdi
add rcx, 1
mov rax, 0xffffffffffffffff
cmovb rcx, rax
cmp rcx, 0x1000
jb 0x140001837
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400019a3
mov rcx, rax
call fcn.140036ff0
test rax, rax
je 0x14000190d
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140001848
test rcx, rcx
je 0x140001846
call fcn.140036ff0
mov rsi, rax
jmp 0x140001848
xor esi, esi
mov qword [rsp + 0x30], rsi
nop dword [rax]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], rdi
mov eax, dword [str.start]
mov dword [rsi], eax
movzx eax, word [0x1400399e4]
mov word [rsi + 4], ax
lea rcx, [rsi + 6]
mov r8, rbp
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + r14], 0
movss xmm1, dword [0x14003fe98]
movss xmm2, dword [0x14003fe5c]
movss xmm0, dword [0x14003fea0]
unpcklps xmm0, xmm1
movq r9, xmm0
movss xmm1, dword [0x14003fe64]
unpcklps xmm1, xmm2
movq r8, xmm1
mov rdx, qword [0x1401366f0]
call fcn.140001680
test al, al
je 0x1400018d9
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140001919
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001914
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001914
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140037354
movdqa xmm0, xmmword [0x14003ff20]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140001962
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14000195d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000199c
mov rcx, r8
call fcn.140037354
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140036fd0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400015c0
nop
call fcn.140001660
int3
Function at 0x140004790
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x1400047ed
lea rbx, [0x14003aea0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1400047d4
cmp r10, 2
jb 0x1400047d4
cmp byte [r9], r8b
jne 0x1400047d4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x1400047b0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000482f
lea rbx, [0x14003aea0]
cmp r8b, 0x23
jne 0x140004813
cmp byte [r9], r8b
jne 0x140004813
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140004800
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x1400049f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
xor r14d, r14d
mov rsi, r8
test r8, r8
je 0x140004a0e
mov qword [r8], r14
lea rdx, [0x14003a9c0]
call fcn.140004840
mov rbx, rax
test rax, rax
jne 0x140004a33
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x140004b5d
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140004b5d
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140004b5d
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140004b5d
cmp rdi, 0xffffffffffffffff
je 0x140004b5d
mov rcx, rdi
call fcn.140008900
mov rbp, rax
test rax, rax
je 0x140004b5d
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x140004b4a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r8, qword [0x140136720]
test r8, r8
je 0x140004b3f
movsx rdx, word [r8 + 0x60f0]
lea rcx, [r8 + 0x60f4]
mov r9d, dword [r8 + 0x3f58]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140004b34
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x60f0], cx
movsx rax, cx
lea rcx, [r8 + 0x60f4]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r14d
inc word [rcx + 6]
inc dword [r8 + 0x60ec]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140004b66
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x140004b58
mov qword [rsi], rdi
mov rax, rbp
jmp 0x140004b68
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140011a50
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x108]
lea r10, [0x14003aea0]
mov r8, rdx
mov r9, rcx
movsxd rdx, dword [rcx + 0x100]
mov ebx, dword [rax + rdx*4 - 4]
not ebx
movzx eax, r8b
movzx edx, bl
xor rdx, rax
shr ebx, 8
mov rax, r8
shr rax, 8
xor ebx, dword [r10 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
mov rax, r8
xor rdx, rcx
shr rax, 0x10
xor ebx, dword [r10 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
mov rax, r8
xor rdx, rcx
shr rax, 0x18
xor ebx, dword [r10 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
mov rax, r8
xor rdx, rcx
shr rax, 0x20
xor ebx, dword [r10 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
mov rax, r8
xor rdx, rcx
shr rax, 0x28
xor ebx, dword [r10 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
mov rax, r8
xor rdx, rcx
shr rax, 0x30
xor ebx, dword [r10 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
mov rax, r8
xor rdx, rcx
shr rax, 0x38
xor ebx, dword [r10 + rdx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [r10 + rcx*4]
mov rcx, qword [r9]
not ebx
cmp dword [rcx + 0x404c], ebx
jne 0x140011b3f
mov edx, 0xc
mov ecx, ebx
call fcn.14001bdf0
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x140011b50
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0x100]
lea r11, [0x14003aea0]
mov rax, qword [rcx + 0x108]
mov r9, rcx
movsxd r10, edx
mov ebx, dword [rax + r8*4 - 4]
not ebx
movzx eax, r10b
movzx r8d, bl
shr ebx, 8
xor r8, rax
mov eax, r10d
shr eax, 8
movzx edx, al
mov eax, r10d
xor ebx, dword [r11 + r8*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r11 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r11 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r10d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [r9]
xor ebx, dword [r11 + rdx*4]
not ebx
cmp dword [rcx + 0x404c], ebx
jne 0x140011be6
mov r8, r10
mov edx, 4
mov ecx, ebx
call fcn.14001bdf0
mov eax, ebx
add rsp, 0x20
pop rbx
ret