joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140073c40
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor ebx, ebx
xor edi, edi
xor r13d, r13d
cmp r8, 0x201
jae 0x140073ce0
jmp 0x140073ccf
jae 0x140073da0
cmp r8, 0x201
jae 0x140073ce0
lea r12, [rbp - 0x58]
mov esi, 0x200
mov r15, r8
jmp 0x140073d38
sub r8, r13
sub rdi, r13
cmp rdi, r8
jae 0x140073d0f
lea rcx, [rbp + 0x3c8]
mov rdx, r13
call fcn.1400aff80
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r13d, 0xffffffff
cmovb r13, rbx
mov qword [rbp + 0x3d8], r13
mov rdi, rbx
mov r12, qword [rbp + 0x3e8]
mov rsi, r13
mov r15, r13
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r15d
mov rdx, r12
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140073d61
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140073e08
mov r8d, r14d
cmp r15, r8
jne 0x140073cc0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140073e2b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x140073ccf
jmp 0x140073ce0
cmp rsi, r8
jb 0x140073e45
lea rcx, [rbp + 0x3a8]
mov rdx, r12
call fcn.140077f20
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rbx, rbx
je 0x140073df1
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.140009860
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rbx, rbx
jne 0x140073dd9
jmp 0x140073df1
lea rcx, [0x1400ee3e3]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.1400b0cb0
jmp 0x140073e5a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.1400b10a0
ud2
Function at 0x140078980
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x1400789b0
test ecx, ecx
jne 0x140078a00
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x1400789bc
test ecx, ecx
jne 0x140078a00
mov rcx, rdi
call fcn.140078860
movzx eax, al
test bpl, bpl
jne 0x140078a07
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x1400789f3.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x140078b78]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x1400789f3.2
xor eax, eax
test bpl, bpl
je 0x1400789cc
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x140078b59
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x140078a3a
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x140078ab9
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x140078a80
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x140078a9b
inc rax
dec rdi
cmp rax, 1
jne 0x140078a60
jmp 0x140078ab9
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x140078a9b
cmp ebx, 0x5c
je 0x140078a9b
inc rax
dec rdi
cmp rax, 1
jne 0x140078a80
jmp 0x140078ab9
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x140078b67
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x140078ae3
mov al, 9
cmp rdx, 2
je 0x140078ae7
cmp rdx, 1
jne 0x140078af7
cmp byte [r8], 0x2e
jne 0x140078af7
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140078af7
mov al, 0xa
jmp 0x140078af7
cmp byte [r8], 0x2e
jne 0x140078af7
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov qword [rsi + 8], r8
mov qword [rsi + 0x10], rdx
mov byte [rsi + 0x18], al
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x1400789f3.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x1400789f3.2
mov ecx, 2
jmp case.0x1400789f3.2
lea r8, str.library_std_srcpath.rs
call fcn.1400b1090
ud2
lea r8, str.library_std_srcpath.rs
call fcn.1400b1090
ud2
Function at 0x14007d670
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xd8
mov rdi, rdx
mov rsi, rcx
mov rax, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x110]
mov qword [rsp + 0x50], 0x103
mov qword [rsp + 0x58], 0
mov edx, 0xffffffff
cmp r9, rdx
cmovb rdx, r9
mov qword [rsp + 0x78], rcx
lea r9, [rsp + 0x80]
mov qword [rsp + 0x80], rax
test rcx, rcx
cmove r9, rcx
mov qword [rsp + 0x38], r9
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14007d71b
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x50]
cmp eax, 0x103
je 0x14007d752
test eax, eax
js 0x14007d72c
mov rax, qword [rsp + 0x58]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14007d745
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xd8
pop rdi
pop rsi
ret
mov byte [rsp + 0x4c], 0
mov dword [rsp + 0x48], 0
lea rax, str.I_O_error:_operation_failed_to_complete_synchronously
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], 1
mov qword [rsp + 0x78], 0
lea rax, [0x1400ee140]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x68], rax
lea rax, [0x14008b130]
mov qword [rsp + 0x70], rax
lea rax, [0x1400ee590]
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], 2
mov qword [rsp + 0xa8], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], 1
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0xa8]
call fcn.140077d00
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x60]
call fcn.140071af0
mov ecx, 7
int 0x29
ud2
Function at 0x14008e340
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14008e3ba
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14008e3b0
cmp r10, r11
jb 0x14008e453
cmp r10, rdx
ja 0x14008e467
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14008e3b2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14008e390
jmp 0x14008e427
ja 0x14008e3ba
mov r11, r10
cmp rax, r8
jne 0x14008e362
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14008e42b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14008e400
mov r8, r10
sub ecx, r9d
jns 0x14008e41e
jmp 0x14008e42d
cmp r10, rdx
je 0x14008e439
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14008e42d
xor al, 1
cmp r8, rdx
jne 0x14008e3e0
jmp 0x14008e42d
xor eax, eax
jmp 0x14008e42d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.1400b0cb0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1400b10b0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400b10a0
ud2

Function at 0x140090798
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x1400907e2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400907e2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400907e2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400907e2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400907e2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400907e4
xor al, al
add rsp, 0x28
ret
Function at 0x140099394
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 0x1400993c4
xor eax, eax
jmp 0x140099487
mov rbp, rbx
cmp word [rax], si
je 0x1400993e9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400993d0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400993cc
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.1400992b4
movsxd r14, eax
test eax, eax
jne 0x140099427
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
jmp 0x1400993bd
mov rcx, r14
call fcn.14009a4c4
mov rdi, rax
test rax, rax
jne 0x140099440
xor ecx, ecx
call fcn.140097914
jmp 0x14009941c
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.1400992b4
test eax, eax
jne 0x140099471
mov rcx, rdi
call fcn.140097914
jmp 0x14009947b
xor ecx, ecx
call fcn.140097914
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 0x14009fcc0
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, [0x14010c6a0]
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 0x14009fd17
cmp word [rdx], r13w
jne 0x14009fd17
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14009fd1c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14009fe41
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14009fe62
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14009fd55
mov rdx, r9
mov word [rbx], cx
jmp 0x14009fd7c
cmp r9, r8
jae 0x14009fd8c
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 0x14009fd36
jmp 0x14009fe41
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 0x14009fe36
cmp dword [rsp + 0x80], esi
je 0x14009fe36
lea r8, [0x14010c6a0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14009fe0e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14009fdde
mov word [rbx], r13w
jmp 0x14009fe3e
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 0x14009fdeb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14009fe3e
cmp word [rsp + 0x70], r13w
jne 0x14009fe1b
cmp rbx, r14
je 0x14009fdd8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14009fbe0
cmp word [rsp + 0x70], r13w
je 0x14009fe41
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, [0x14010c6a0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14009fe3b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14009fe41
Function at 0x1400a3a20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x5090
call fcn.1400901a0
sub rsp, rax
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x14010ac08]
xor rax, rsp
mov qword [rsp + 0x5080], rax
mov esi, r9d
mov rax, r8
mov ebx, edx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
lea rcx, vtable.MFX::MFXVector_class_MFX::PluginDescriptionRecord_.0
mov qword [rdi], rcx
xor ecx, ecx
mov qword [rdi + 8], rcx
mov dword [rdi + 0x10], ecx
lea rcx, vtable.MFX::MFXPluginStorageBase.0
mov qword [rdi], rcx
mov dword [rdi + 0x18], edx
lea rcx, vtable.MFX::MFXDefaultPlugins.0
mov qword [rdi], rcx
mov r8d, 0x1000
lea rdx, [rsp + 0x3080]
mov rcx, qword [rax + 0x530]
call qword [sym.imp.kernel32.dll_GetModuleFileNameW]
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x1400a3b56
lea edx, [rax + 0x5c]
lea rcx, [rsp + 0x3080]
call fcn.1400a7808
lea r9, [rsp + 0x3080]
test rax, rax
cmovne r9, rax
lea rax, [rsp + 0x3080]
mov rcx, r9
sub rcx, rax
sar rcx, 1
inc ecx
lea eax, [rcx + 0x19]
cmp eax, 0x1000
jae 0x1400a3b56
mov edx, 0x1000
sub edx, ecx
lea rcx, [r9 + 2]
mov r8d, esi
call fcn.1400a5d00
lea rcx, [rsp + 0x3080]
call qword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400a3b56
xor edx, edx
mov r8d, 0x3040
lea rcx, [rsp + 0x30]
call fcn.140091ad0
mov word [rsp + 0x3070], 0x100
mov dword [rsp + 0x4c], ebx
lea r8, [rsp + 0x3080]
mov edx, 0x1000
lea rcx, [rsp + 0x70]
call fcn.140097740
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400a4690
nop
mov rax, rdi
mov rcx, qword [rsp + 0x5080]
xor rcx, rsp
call fcn.140090280
add rsp, 0x5090
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400a6590
Capabilities:
Query or enumerate registry key

Disassembly:
sub rsp, 0x48
mov rcx, qword [rcx]
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.advapi32.dll_RegEnumKeyExW]
test eax, eax
sete al
add rsp, 0x48
ret

Function at 0x1400a6650
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x14010ac08]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, qword [rsp + 0x90]
xor r14d, r14d
mov dword [rsp + 0x30], r8d
mov rsi, r9
mov ebp, r8d
test rbx, rbx
je 0x1400a6689
mov edi, dword [rbx]
jmp 0x1400a668c
mov edi, r14d
mov rcx, qword [rcx]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
je 0x1400a66af
xor al, al
jmp 0x1400a672c
cmp dword [rsp + 0x30], ebp
jne 0x1400a66ab
lea eax, [rbp - 1]
cmp eax, 1
ja 0x1400a66f3
test rsi, rsi
je 0x1400a66f3
test rbx, rbx
je 0x1400a66f3
cmp edi, 2
jb 0x1400a66ab
mov edx, dword [rbx]
mov ecx, edi
lea rax, [rcx - 2]
cmp rax, rdx
jae 0x1400a66e6
shr rcx, 1
dec rcx
mov word [rsi + rcx*2], r14w
jmp 0x1400a672a
mov rcx, rdx
shr rcx, 1
mov word [rsi + rcx*2], r14w
jmp 0x1400a672a
cmp ebp, 7
jne 0x1400a672a
test rsi, rsi
je 0x1400a672a
test rbx, rbx
je 0x1400a672a
cmp edi, 4
jb 0x1400a66ab
mov edx, dword [rbx]
mov ecx, edi
lea rax, [rcx - 4]
cmp rax, rdx
jae 0x1400a671c
shr rcx, 1
dec rcx
jmp 0x1400a6725
mov rcx, rdx
shr rcx, 1
inc rcx
mov dword [rsi + rcx*2 - 2], r14d
mov al, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140090280
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400af36c
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.14009fbe0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14009fbe0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400af4bc
cmp rax, 0xffffffffffffffff
je 0x1400af4bc
xor edi, edi
test rbp, rbp
jle 0x1400af467
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14009789c
mov rbx, rax
test rax, rax
jne 0x1400af3f4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400af45d
mov edx, 0x8000
mov ecx, r14d
call fcn.1400957e0
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.14009e464
cmp eax, 0xffffffff
je 0x1400af43d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400af404
mov edx, r15d
mov ecx, r14d
call fcn.1400957e0
jmp 0x1400af45d
cmp byte [rsi + 0x38], dil
je 0x1400af454
cmp dword [rsi + 0x34], 5
jne 0x1400af454
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400af45d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140097914
jmp 0x1400af4d0
jns 0x1400af4d0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14009fbe0
cmp rax, 0xffffffffffffffff
jne 0x1400af488
cmp byte [rsi + 0x30], dil
je 0x1400af4d0
mov edi, dword [rsi + 0x2c]
jmp 0x1400af4d0
mov ecx, r14d
call fcn.140099ec4
mov rcx, rax
call qword [sym.imp.kernel32.dll_SetEndOfFile]
test eax, eax
jne 0x1400af4d0
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 0x1400af4d0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400af4c9
mov eax, dword [rsi + 0x2c]
jmp 0x1400af4ce
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14009fbe0
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 0x140002570
Capabilities:
Enumerate processes
Enumerate threads

Disassembly:
push r15
sub rsp, 0x1b0
mov rax, qword [0x140042020]
xor rax, rsp
mov qword [rsp + 0x190], rax
lea rax, str.360Tray.exe
xor edx, edx
mov qword [rsp + 0x20], rax
lea rax, str.360Safe.exe
mov qword [rsp + 0x28], rax
lea rax, str.360sd.exe
mov qword [rsp + 0x30], rax
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x1400025e6
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x130
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x1400025f0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140002730
mov qword [rsp + 0x1c0], rbx
mov qword [rsp + 0x1c8], rbp
mov qword [rsp + 0x1d0], rsi
mov qword [rsp + 0x1a8], rdi
mov qword [rsp + 0x1a0], r14
nop dword [rax + rax]
xor ebp, ebp
lea r14, [rsp + 0x20]
nop word [rax + rax]
mov rdx, qword [r14]
lea rcx, [rsp + 0x8c]
call fcn.140012358
test eax, eax
jne 0x1400026d8
mov esi, dword [rsp + 0x68]
lea ecx, [rax + 4]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400026d8
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x38], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1400026cf
nop word [rax + rax]
cmp dword [rsp + 0x44], esi
jne 0x1400026bd
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x1400026bd
mov ecx, dword [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x12]
call qword [sym.imp.USER32.dll_PostThreadMessageA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x140002680
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebp
add r14, 8
cmp ebp, 3
jb 0x140002630
lea rdx, [rsp + 0x60]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140002620
mov r14, qword [rsp + 0x1a0]
mov rcx, r15
mov rdi, qword [rsp + 0x1a8]
mov rsi, qword [rsp + 0x1d0]
mov rbp, qword [rsp + 0x1c8]
mov rbx, qword [rsp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1400093c0
add rsp, 0x1b0
pop r15
ret
Function at 0x140002750
Capabilities:
Create http request
Delete file
Download and write a file
Get http content length
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov eax, 0x20070
call fcn.140009a20
sub rsp, rax
mov rax, qword [0x140042020]
xor rax, rsp
mov qword [rsp + 0x20060], rax
mov rbx, rdx
mov rdi, rcx
xor ebp, ebp
lea rcx, str.Mozilla_4.0__compatible__MSIE_8.0__Windows_NT_6.1__Trident_4.0_
xor edx, edx
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rsi, rax
test rax, rax
je 0x1400028e0
movups xmm0, xmmword [str.Accept:___r_n_r_n]
lea rax, [rsp + 0x20050]
mov r9, 0xffffffffffffffff
movups xmmword [rsp + 0x20050], xmm0
inc r9
cmp byte [rax + r9], bpl
jne 0x1400027c2
mov qword [rsp + 0x28], rbp
lea r8, [rsp + 0x20050]
mov rdx, rdi
mov dword [rsp + 0x20], 0x84000100
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rdi, rax
test rax, rax
je 0x1400028e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
xor r9d, r9d
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], pe_nt_image_headers64
mov edx, 0x40000000
mov rcx, rbx
mov dword [rsp + 0x20], 1
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400028e0
lea r9, [rsp + 0x48]
mov dword [rsp + 0x40], ebp
lea r8, [rsp + 0x40]
mov dword [rsp + 0x48], 4
mov edx, 0x20000005
mov dword [rsp + 0x4c], ebp
mov rcx, rdi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
mov ecx, dword [rsp + 0x40]
lea r9, [rsp + 0x44]
test eax, eax
lea rdx, [rsp + 0x50]
mov r8d, 0x4000
cmove ecx, ebp
mov dword [rsp + 0x40], ecx
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400028cf
nop
mov r8d, dword [rsp + 0x44]
mov rcx, rbx
test r8d, r8d
je 0x140002905
lea r9, [rsp + 0x4c]
mov qword [rsp + 0x20], rbp
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9, [rsp + 0x44]
mov r8d, 0x4000
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140002890
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x20060]
xor rcx, rsp
call fcn.1400093c0
mov rbx, qword [rsp + 0x200a0]
add rsp, 0x20070
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, 1
jmp 0x1400028e2