joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c34e0
Capabilities:
Reference wmi statements

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4c3609
push rbp
mov rbp, rsp
sub rsp, 0x60
cmp bl, 0x6c
jne 0x4c351f
test byte [rax], al
cmp dword [0x00682e70], 0
je 0x4c350d
mov rcx, qword [rax]
call sym.runtime.gcWriteBarrier1
mov qword [r11], rcx
lea rcx, sym.encoding_json.stateEndValue
mov qword [rax], rcx
xor eax, eax
add rsp, 0x60
pop rbp
ret
test byte [rax], al
cmp dword [0x00682e70], 0
je 0x4c3535
mov rcx, qword [rax]
call sym.runtime.gcWriteBarrier1
mov qword [r11], rcx
mov qword [rsp + 0x70], rax
lea rcx, sym.encoding_json.stateError
mov qword [rax], rcx
mov eax, ebx
call sym.encoding_json.quoteChar
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x48], rbx
lea rax, [0x004fc2e0]
nop dword [rax]
call sym.runtime.newobject
mov qword [rsp + 0x50], rax
lea rbx, [0x0051356d]
mov ecx, 0x12
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x48]
lea r8, [0x00541130]
mov r9d, 1
lea r10, [0x00518936]
mov r11d, 0x1f
xor eax, eax
nop dword [rax]
call sym.runtime.concatstring4
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 8], rbx
cmp dword [0x00682e70], 0
je 0x4c35c6
call sym.runtime.gcWriteBarrier2
mov qword [r11], rax
mov rdx, qword [rcx]
mov qword [r11 + 8], rdx
mov qword [rcx], rax
mov rdx, qword [rsp + 0x70]
mov rbx, qword [rdx + 0x38]
mov qword [rcx + 0x10], rbx
lea rbx, [0x00541db8]
mov qword [rdx + 0x28], rbx
cmp dword [0x00682e70], 0
je 0x4c35fa
call sym.runtime.gcWriteBarrier2
mov qword [r11], rcx
mov rbx, qword [rdx + 0x30]
mov qword [r11 + 8], rbx
mov qword [rdx + 0x30], rcx
mov eax, 0xb
add rsp, 0x60
pop rbp
ret
mov qword [rsp + 8], rax
mov byte [rsp + 0x10], bl
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
movzx ebx, byte [rsp + 0x10]
jmp sym.encoding_json.stateNul

Function at 0x4ccb40
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4cd27f
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
movabs rcx, 0xcbf29ce484222325
jmp 0x4ccb6d
lea rax, [rdx + 0x10]
dec rbx
mov rcx, rsi
test rbx, rbx
jle 0x4ccdf1
mov rdx, rax
mov rsi, qword [rax]
nop dword [rax]
test rsi, rsi
je 0x4cce1d
mov edi, dword [rsi + 0x10]
shr edi, 1
mov r8, qword [rax + 8]
and edi, 0x3f
lea rax, [0x00543e80]
jmp qword [rax + rdi*8]
mov rax, rcx
add rsp, 0x10
pop rbp
ret
lea rax, [0x004f09a0]
lea rbx, [0x00541bf0]
call sym.runtime.gopanic
inc rax
cmp rax, r8
jge 0x4cce42
mov r9, qword [rsi + rax*8]
xor r10d, r10d
nop
jmp 0x4cce77
lea rdi, [0x004f0a20]
mov rsi, rcx
movabs rcx, 0x100000001b3
jmp 0x4ccb63
movzx r11d, r9b
xor rcx, r11
inc r10
shr r9, 8
movabs r11, 0x100000001b3
imul rcx, r11
cmp r10, 8
jl 0x4cce5b
jmp 0x4cce30
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp sym.internal_bisect.Hash
Function at 0x4cd420
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x4cd437
inc rax
cmp rax, 4
jge 0x4cd44f
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x4cd434
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x4cd460
inc rax
cmp rax, 4
jge 0x4cd46e
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x4cd497
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x4cd47b
jmp 0x4cd45d

Function at 0x4cd560
Capabilities:
Reference wmi statements

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4cd675
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rdx, qword [rax + 0x20]
mov rdx, qword [rdx + 0x20]
nop word [rax + rax]
test rdx, rdx
je 0x4cd641
cmp byte [rdx + 0x38], 0
jne 0x4cd641
mov qword [rsp + 0x60], rax
mov rcx, qword [rax + 8]
mov rdx, qword [rax]
nop
test rcx, rcx
je 0x4cd5bd
cmp byte [rdx], 0x23
jne 0x4cd5bd
dec rcx
mov rbx, rcx
neg rbx
sar rbx, 0x3f
and ebx, 1
add rdx, rbx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rdx
lea rax, [0x004fb060]
call sym.runtime.newobject
lea rcx, [sym.sync_atomic._Uint64_.Load_fm]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x20]
test byte [rcx], al
add rcx, 0x18
cmp dword [0x00682e70], 0
je 0x4cd5fd
call sym.runtime.gcWriteBarrier1
mov qword [r11], rcx
mov qword [rsp + 0x48], rax
mov qword [rax + 8], rcx
lea rbx, [0x005185ab]
mov ecx, 0x1e
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
lea r8, [0x005109c5]
mov r9d, 7
xor eax, eax
call sym.runtime.concatstring3
mov rcx, qword [rsp + 0x48]
call sym.internal_godebug.registerMetric
add rsp, 0x50
pop rbp
nop
ret
mov rsi, qword [rax + 8]
mov rdi, qword [rax]
xor eax, eax
lea rbx, [0x0051a62a]
mov ecx, 0x25
call sym.runtime.concatstring2
nop dword [rax + rax]
call sym.runtime.convTstring
mov rbx, rax
lea rax, [0x004f09a0]
call sym.runtime.gopanic
nop
mov qword [rsp + 8], rax
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
jmp sym.internal_godebug._Setting_.register
Function at 0x140006a00
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x140006a24
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x140006ab2
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140006a80
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x140006a80
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.140034d90
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140006a9d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140006aa5
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x140006a41
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x140006b90
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x140006ac9
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140006acb
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140006afd
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.140034d90
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140006b8d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140006b38
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x140006b6e
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.14001e00c
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x140006b8d
cmp rsi, rax
ja 0x140006b41
test rsi, rsi
je 0x140006b8d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14001e00c
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret

Function at 0x1400110e8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140011132
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140011132
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140011132
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140011132
cmp dword [rcx + 0x84], 0xe
jbe 0x140011132
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140011134
xor al, al
add rsp, 0x28
ret
Function at 0x140020bd8
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 0x140020c47
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140020c47
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140020c47
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140020c47
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140020c47
cmp dword [rcx + 0x84], 0xe
jbe 0x140020c47
cmp dword [rcx + 0xf8], 0
je 0x140020c47
mov ecx, ebx
call fcn.140020d04
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.140020ad4
nop
cmp dword [rbp + 0x20], 0
je 0x140020c95
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140020ca0
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140020bd8

Function at 0x140020de8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140020bd8
Function at 0x140027a14
Capabilities:
Read file on windows

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, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x140027a4a
call fcn.14001d7b4
mov dword [rax], 0x16
call fcn.14001e7e0
jmp 0x140027b9a
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140027b9a
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140027b9a
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140027a79
lock or dword [rcx + 0x14], 0x10
jmp 0x140027b9a
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140027a8d
call fcn.1400282c0
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x140027a9d
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x140027aa0
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.140024c08
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.1400292b4
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x140027b88
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x140027b33
mov rcx, rbx
call fcn.140024c08
cmp eax, 0xffffffff
je 0x140027b1e
mov rcx, rbx
call fcn.140024c08
cmp eax, 0xfffffffe
je 0x140027b1e
mov rcx, rbx
call fcn.140024c08
movsxd rdi, eax
lea rsi, [0x14004f2d0]
mov rcx, rbx
sar rdi, 6
call fcn.140024c08
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x140027b25
lea rdx, [0x14004c470]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140027b33
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x140027b57
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x140027b57
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x140027b57
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x140027b75
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x140027b80
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x140027b9f
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x140027a14
Function at 0x140027bbc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x140027bee
call fcn.14001d7b4
mov dword [rax], 0x16
call fcn.14001e7e0
jmp 0x140027d0d
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140027d0d
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140027d0d
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140027c1d
lock or dword [rcx + 0x14], 0x10
jmp 0x140027d0d
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140027c31
call fcn.1400282c0
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140024c08
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1400292b4
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140027cfb
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x140027cc6
mov rcx, rsi
call fcn.140024c08
cmp eax, edi
je 0x140027cb1
mov rcx, rsi
call fcn.140024c08
cmp eax, 0xfffffffe
je 0x140027cb1
mov rcx, rsi
call fcn.140024c08
movsxd rbx, eax
lea r14, [0x14004f2d0]
mov rcx, rsi
sar rbx, 6
call fcn.140024c08
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140027cb8
lea rdx, [0x14004c470]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140027cc6
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x140027cea
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x140027cea
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x140027cea
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x140027d10
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x140027d28
Capabilities:
Read file on windows

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, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x140027a4a
call fcn.14001d7b4
mov dword [rax], 0x16
call fcn.14001e7e0
jmp 0x140027b9a
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140027b9a
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140027b9a
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140027a79
lock or dword [rcx + 0x14], 0x10
jmp 0x140027b9a
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140027a8d
call fcn.1400282c0
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x140027a9d
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x140027aa0
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.140024c08
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.1400292b4
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x140027b88
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x140027b33
mov rcx, rbx
call fcn.140024c08
cmp eax, 0xffffffff
je 0x140027b1e
mov rcx, rbx
call fcn.140024c08
cmp eax, 0xfffffffe
je 0x140027b1e
mov rcx, rbx
call fcn.140024c08
movsxd rdi, eax
lea rsi, [0x14004f2d0]
mov rcx, rbx
sar rdi, 6
call fcn.140024c08
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x140027b25
lea rdx, [0x14004c470]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140027b33
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x140027b57
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x140027b57
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x140027b57
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x140027b75
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x140027b80
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x140027b9f
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x140027a14
Function at 0x140028040
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.140010c60
sub rsp, rax
mov rax, qword [0x14004c080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140024c08
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002808f
mov rax, rbp
jmp 0x140028197
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, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x4f2d0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140029a8c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x4f2d0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140028193
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 0x140028193
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140029a8c
test rax, rax
js 0x140028193
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140028193
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140028185
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140028185
cmp byte [rcx], 0xd
jne 0x14002816b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002817a
cmp byte [rcx + 1], 0xa
jne 0x14002817a
inc rcx
jmp 0x14002817a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x4c4c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002814d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140028197
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140010370
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 0x140028e08
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14004f2d0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x140028e66
cmp word [rdx], r12w
jne 0x140028e66
or byte [rax + r8*8 + 0x38], cl
jmp 0x140028e6c
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140028fc7
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140028fa2
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140028ea5
mov rcx, r9
jmp 0x140028ec8
cmp r9, rdx
jae 0x140028edf
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x140028e89
jmp 0x140028fc7
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140028f9c
cmp dword [rsp + 0x80], edi
je 0x140028f9c
mov rdx, r14
lea r11, [0x14004f2d0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140028f75
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140028f48
mov word [rbx], r12w
jmp 0x140028fc3
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x140028f51
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140028fc3
cmp word [rsp + 0x70], r12w
jne 0x140028f82
cmp rbx, rsi
je 0x140028f42
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140029a94
cmp word [rsp + 0x70], r12w
je 0x140028fc7
mov word [rbx], r13w
jmp 0x140028fc3
lea r11, [0x14004f2d0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140028fbf
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140028fc7
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14002c83c
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 0x14002c8c3
mov rsi, rbx
cmp word [rax], bp
je 0x14002c882
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14002c86c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14002c868
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140023858
mov rdi, rax
test rax, rax
je 0x14002c8b0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140034d90
mov rbp, rdi
xor ecx, ecx
call fcn.14002381c
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 0x140033ef0
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.140029a94
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140029a94
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140034040
cmp rax, 0xffffffffffffffff
je 0x140034040
xor edi, edi
test rbp, rbp
jle 0x140033feb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140025ad8
mov rbx, rax
test rax, rax
jne 0x140033f78
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140033fe1
mov edx, 0x8000
mov ecx, r14d
call fcn.140021c30
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.140027300
cmp eax, 0xffffffff
je 0x140033fc1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140033f88
mov edx, r15d
mov ecx, r14d
call fcn.140021c30
jmp 0x140033fe1
cmp byte [rsi + 0x38], dil
je 0x140033fd8
cmp dword [rsi + 0x34], 5
jne 0x140033fd8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140033fe1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14002381c
jmp 0x140034054
jns 0x140034054
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140029a94
cmp rax, 0xffffffffffffffff
jne 0x14003400c
cmp byte [rsi + 0x30], dil
je 0x140034054
mov edi, dword [rsi + 0x2c]
jmp 0x140034054
mov ecx, r14d
call fcn.14002d4fc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140034054
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 0x140034054
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14003404d
mov eax, dword [rsi + 0x2c]
jmp 0x140034052
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140029a94
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 0x140034940
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140034968
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140034968
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400028bc
Capabilities:
Parse pe header

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