joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005ce80
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14005ce8d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14005ce9d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14005ce85
lea eax, [rcx + 1]
jmp 0x14005ceab
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14005cebe
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14005cea4
sub eax, 3
jb 0x14005cede
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14005cf2d
sar eax, 1
movsxd rbp, eax
jb 0x14005cf14
jmp 0x14005ceec
add ebx, ebx
jne 0x14005ceea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14005cf14
inc ecx
add ebx, ebx
jne 0x14005cefa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14005cf14
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14005cf0d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14005cefc
add ecx, 2
jmp 0x14005cf19
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14005ce42
jmp 0x14005ce8d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x28800
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14005cf79
cmp rsi, rcx
jae 0x14005cf81
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14005cf60
cmp al, 0x8f
ja 0x14005cf60
cmp byte [rsi - 2], 0xf
je 0x14005cf66
sub al, 0xe8
cmp al, 1
ja 0x14005cf4a
cmp rsi, rcx
jae 0x14005cf81
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14005cf50
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14005cf81
lodsb al, byte [rsi]
jmp 0x14005cf60
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x5a000]
mov eax, dword [rdi]
or eax, eax
je 0x14005cfea
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x6427c]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14005cf8e
jns 0x14005cfc3
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14005cfcd
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14005cfe4
mov qword [rbx], rax
add rbx, 8
jmp 0x14005cfae
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14005d024
cmp al, 0xef
ja 0x14005d016
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14005cff6
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14005d005
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x237]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14005d078
sub rsp, 0xffffffffffffff80
jmp 0x14000afb0
Function at 0x1400d3190
Capabilities:
Encode data using xor
Encrypt data using des
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140351248]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rdx
mov rdi, r8
lea rdx, [rsp + 0x20]
call fcn.1400d42f0
lea rcx, [rsp + 0x20]
mov r9d, 6
sub rbx, rcx
lea rax, [rsp + 0x20]
nop dword [rax]
movzx ecx, byte [rbx + rax]
xor byte [rax], cl
lea rax, [rax + 1]
sub r9, 1
jne 0x1400d31d0
mov ecx, dword [rsp + 0x20]
lea r9, [rsp + 0x28]
movzx edx, byte [rsp + 0x21]
lea r10, [0x1402d3170]
movzx eax, cl
and cl, 3
shr al, 2
mov byte [rsp + 0x28], al
movzx eax, dl
shr al, 4
and dl, 0xf
shl cl, 4
or cl, al
shl dl, 2
mov byte [rsp + 0x29], cl
movzx ecx, byte [rsp + 0x22]
movzx eax, cl
and cl, 0x3f
shr al, 6
or dl, al
mov byte [rsp + 0x2b], cl
movzx ecx, byte [rsp + 0x23]
movzx eax, cl
mov byte [rsp + 0x2a], dl
movzx edx, byte [rsp + 0x24]
and cl, 3
shr al, 2
mov byte [rsp + 0x2c], al
movzx eax, dl
shr al, 4
and dl, 0xf
shl cl, 4
or cl, al
shl dl, 2
mov byte [rsp + 0x2d], cl
movzx ecx, byte [rsp + 0x25]
movzx eax, cl
and cl, 0x3f
shr al, 6
or dl, al
mov byte [rsp + 0x2f], cl
mov byte [rsp + 0x2e], dl
xor r8d, r8d
nop word [rax + rax]
movzx ecx, byte [r9]
lea r9, [r9 + 1]
mov edx, ecx
mov eax, ecx
shr rax, 1
and edx, 1
and eax, 0xf
shl edx, 4
or rdx, rax
and ecx, 0x20
movzx eax, r8b
or rdx, rcx
shl rax, 6
inc r8d
add rdx, rax
movzx eax, byte [rdx + r10]
and al, 0xf
mov byte [r9 - 1], al
cmp r8d, 8
jl 0x1400d3280
lea rdx, [rsp + 0x20]
mov r8d, 4
lea rcx, [rsp + 0x29]
movzx eax, byte [rcx - 1]
lea rdx, [rdx + 1]
shl al, 4
or al, byte [rcx]
lea rcx, [rcx + 2]
mov byte [rdx - 1], al
sub r8, 1
jne 0x1400d32d0
lea rcx, [rsp + 0x20]
call fcn.1400d73d0
mov eax, dword [rsp + 0x20]
mov dword [rdi], eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401c0070
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400de3c0
Capabilities:
Get local ipv4 addresses

Disassembly:
test ecx, ecx
js 0x1400de5c5
push r12
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140351248]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r15d, r8d
mov r12, rdx
mov r14d, ecx
test rdx, rdx
je 0x1400de5ae
mov qword [rsp + 0x90], rbx
xor ebx, ebx
mov qword [rsp + 0x60], rdi
mov edi, ebx
mov dword [rsp + 0x34], ebx
mov qword [rsp + 0x68], rsi
nop dword [rax]
lea rax, [rsp + 0x34]
mov r9, rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
cmp eax, 0x6f
jne 0x1400de47a
test rbx, rbx
je 0x1400de448
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [rsp + 0x34]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x1400de474
inc edi
cmp edi, 5
jb 0x1400de410
jmp 0x1400de588
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400de583
mov rsi, rbx
test rbx, rbx
je 0x1400de59c
mov qword [rsp + 0xa0], rbp
cmp dword [rsi + 0x64], r15d
jne 0x1400de569
cmp dword [rsi + 0x58], 0
jbe 0x1400de569
mov rcx, qword [rsi + 0x40]
lea rdx, str.Virtual
call fcn.1401f7de8
test rax, rax
jne 0x1400de569
mov rcx, qword [rsi + 0x40]
lea rdx, str.Bluetooth
call fcn.1401f7de8
test rax, rax
jne 0x1400de569
mov word [rsp + 0x30], ax
xorps xmm0, xmm0
mov byte [rsp + 0x32], al
mov word [rsp + 0x48], ax
movups xmmword [rsp + 0x38], xmm0
mov eax, dword [rsi + 0x58]
cmp r14d, eax
cmovb eax, r14d
test eax, eax
je 0x1400de543
lea rdi, [rsi + 0x50]
mov ebp, eax
nop word [rax + rax]
movzx r8d, byte [rdi]
lea rdx, str._02X
lea rcx, [rsp + 0x30]
call fcn.1400db780
lea r8, [rsp + 0x30]
mov edx, SafeArrayLock
lea rcx, [rsp + 0x38]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat_s
lea rdi, [rdi + 1]
sub rbp, 1
jne 0x1400de510
lea rax, [rsp + 0x38]
mov rdx, 0xffffffffffffffff
nop
inc rdx
cmp byte [rax + rdx], 0
jne 0x1400de550
inc rdx
lea r8, [rsp + 0x38]
mov rcx, r12
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy_s
mov rax, qword [rsi + 8]
mov rsi, rax
test rax, rax
jne 0x1400de496
mov rbp, qword [rsp + 0xa0]
jmp 0x1400de588
test rbx, rbx
je 0x1400de59c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401c0070
add rsp, 0x70
pop r15
pop r14
pop r12
ret
Function at 0x1400e3d60
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xf0
xor eax, eax
mov dword [rsp + 0x80], 0x68
mov qword [rsp + 0x70], rax
xorps xmm1, xmm1
mov qword [rsp + 0xc4], rax
mov r10, r9
mov dword [rsp + 0xcc], eax
mov r11, r8
mov rax, qword [0x1403543b0]
mov rbx, rdx
mov qword [rsp + 0xe0], rax
mov rdi, rcx
mov qword [rsp + 0xd8], rax
xorps xmm0, xmm0
mov rax, qword [0x140354398]
xor r9d, r9d
mov qword [rsp + 0xd0], rax
mov r8, r10
movups xmmword [rsp + 0xb4], xmm1
mov rdx, r11
mov rcx, rbx
movups xmmword [rsp + 0x84], xmm1
movups xmmword [rsp + 0x94], xmm1
movups xmmword [rsp + 0xa4], xmm1
psrldq xmm1, 8
movd eax, xmm1
movups xmmword [rsp + 0x60], xmm0
bts eax, 8
mov dword [rsp + 0xbc], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x48], rax
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x8000000
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov ebx, eax
test eax, eax
je 0x1400e3e78
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x100]
add rsp, 0xf0
pop rdi
ret
lea rdx, str.CreateProcess
mov rcx, rdi
call fcn.1400e47e0
int3
Function at 0x1400e47e0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 0x400
xor edx, edx
mov edi, eax
mov ecx, 0x1300
xor eax, eax
mov r8d, edi
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [rax + 0x28]
add ecx, ebx
movsxd rdx, ecx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LocalSize]
mov rcx, qword [rsp + 0x60]
lea r8, str._s_failed_with_error__d:__s
mov qword [rsp + 0x28], rcx
mov r9, rsi
shr rax, 1
mov rcx, rbx
mov rdx, rax
mov dword [rsp + 0x20], edi
call fcn.1400eaf60
xor r9d, r9d
lea r8, [0x14026d3c8]
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1400f9070
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
xor r14d, r14d
movzx edi, dl
mov ebx, r14d
mov rsi, rcx
movzx edx, dil
mov rcx, rsi
call fcn.1400f8540
cmp eax, 1
jne 0x1400f9091
lea ecx, [rax + 0x2f]
mov qword [rbp - 0x20], r14
add ebx, 0xea60
mov qword [rbp - 0x10], r14
mov qword [rbp - 8], SafeArrayLock
call fcn.1400b88d0
mov qword [rbp - 8], 0x2f
cmp ebx, 0x2bf20
je 0x1400f9173
movups xmm0, xmmword [str.setWmiEventReceiver__1_start_sleep]
mov qword [rbp - 0x10], 0x24
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14026e098]
movups xmmword [rax + 0x10], xmm1
mov ecx, dword [0x14026e0a8]
mov dword [rax + 0x20], ecx
lea rcx, [rbp - 0x20]
mov byte [rax + 0x24], r14b
mov qword [rbp - 0x20], rax
call fcn.140162100
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x30
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x10], r14
mov qword [rbp - 8], SafeArrayLock
call fcn.1400b88d0
movups xmm0, xmmword [str.setWmiEventReceiver__1_end_sleep]
mov qword [rbp - 0x10], 0x22
mov qword [rbp - 8], 0x2f
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14026e0c0]
movups xmmword [rax + 0x10], xmm1
movzx ecx, word [0x14026e0d0]
mov word [rax + 0x20], cx
lea rcx, [rbp - 0x20]
mov byte [rax + 0x22], r14b
mov qword [rbp - 0x20], rax
call fcn.140162100
jmp 0x1400f9091
movups xmm0, xmmword [str.setWmiEventReceiver_trycount__3_break]
mov qword [rbp - 0x10], 0x27
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14026e020]
movups xmmword [rax + 0x10], xmm1
mov ecx, dword [0x14026e030]
mov dword [rax + 0x20], ecx
movzx ecx, word [0x14026e034]
mov word [rax + 0x24], cx
movzx ecx, byte [0x14026e036]
mov byte [rax + 0x26], cl
lea rcx, [rbp - 0x20]
mov byte [rax + 0x27], r14b
mov qword [rbp - 0x20], rax
call fcn.140162100
mov edx, 2
lea rcx, str.setWmiEventReceiver_trycount__3
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rbp
jmp fcn.140162c40
Function at 0x1400fa6c0
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x118
mov r11, r9
mov r10, rdx
mov rdx, qword [rsp + 0x140]
mov ecx, dword [rsp + 0x148]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xc0], xmm0
movups xmmword [rsp + 0xd0], xmm0
mov qword [rsp + 0xe0], rax
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x80], 0x68
mov eax, 5
mov word [rsp + 0xc0], ax
lea r9, str.Winsta0Default
lea rax, str.Winsta0Winlogon
test ecx, ecx
cmovne rax, r9
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x48], rax
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r8
mov dword [rsp + 0x30], 0x8000400
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, rdx
mov rdx, r11
mov rcx, r10
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x1400fa7e9
mov edx, 0x1388
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x68]
cmp rcx, 0xffffffffffffffff
je 0x1400fa7d2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x1400fa7e3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x60]
jmp 0x1400fa7ee
mov eax, 1
add rsp, 0x118
ret

Function at 0x1400fdbf0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140351248]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400fdcd3
cmp byte [rcx + 0x71], 0
je 0x1400fdcd3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
mov rax, qword [rax + 0x18]
call qword [str.pP__]
cmp eax, 0xffffffff
je 0x1400fdccf
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [str.pP__]
test eax, eax
je 0x1400fdc92
sub eax, 1
je 0x1400fdc96
cmp eax, 2
jne 0x1400fdccf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401c0070
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400fdcc6
lfence
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
cmp rdi, rax
jne 0x1400fdccf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400fdc7a
xor al, al
jmp 0x1400fdc7a
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401c0070
add rsp, 0x60
pop rbx
ret
Function at 0x1400fe840
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x140351248]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400fe870
xor eax, eax
jmp 0x1400fe9c3
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400fe8aa
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400fe8aa
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1400fe9c3
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xb0], rsi
je 0x1400fe9b6
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400fe8ed
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
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400fe8fc
movsx ecx, dil
jmp 0x1400fe95a
lea r8, [rsp + 0x58]
mov byte [rsp + 0x50], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x88]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x68]
mov rax, qword [rax + 0x38]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x60]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [str.pP__]
test eax, eax
je 0x1400fe974
sub eax, 1
je 0x1400fe974
cmp eax, 2
jne 0x1400fe9b6
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400fe9bb
mov rsi, qword [rsp + 0x58]
lea rax, [rsp + 0x68]
sub rsi, rax
je 0x1400fe9a4
lfence
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x68]
mov r8, rsi
mov edx, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
cmp rsi, rax
jne 0x1400fe9b6
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x60], rax
mov eax, edi
jne 0x1400fe9bb
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1401c0070
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
Function at 0x1400ff460
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x1400ff491
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rsi
je 0x1400ff516
lfence
mov rbx, rbp
mov rcx, rdi
call fcn.1400fe050
test rax, rax
jle 0x1400ff4e6
mov rdx, qword [rdi + 0x38]
cmp rbx, rax
mov rsi, rbx
mov rcx, r14
cmovge rsi, rax
mov r8, rsi
mov rdx, qword [rdx]
call fcn.1401f7750
mov rax, qword [rdi + 0x50]
sub rbx, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x38]
movsxd rax, esi
add qword [rcx], rax
jmp 0x1400ff506
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x38]
call qword [str.pP__]
cmp eax, 0xffffffff
je 0x1400ff50e
mov byte [r14], al
dec rbx
mov esi, 1
add r14, rsi
test rbx, rbx
jg 0x1400ff4a8
sub rbp, rbx
jmp 0x1400ff608
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400ff52d
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400ff52f
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400ff561
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1401f7750
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x1400ff602
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x1400ff59c
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov rbx, rsi
cmp rsi, 0xfff
jbe 0x1400ff5e0
nop dword [rax + rax]
mov r9, qword [rdi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
sub rsi, rax
add r14, rax
mov rbx, rsi
cmp rax, 0xfff
jne 0x1400ff602
cmp rsi, rax
ja 0x1400ff5b0
test rbx, rbx
je 0x1400ff602
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov rsi, rbx
sub rsi, rax
sub rbp, rsi
lfence
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400ff6f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov r14, r8
mov rbp, rdx
mov rdi, rcx
mov rbx, r8
je 0x1400ff791
test r8, r8
jle 0x1400ff789
mov rcx, rdi
call fcn.1400fe340
test rax, rax
jle 0x1400ff760
mov rcx, qword [rdi + 0x40]
cmp rbx, rax
mov rsi, rbx
mov rdx, rbp
cmovge rsi, rax
mov r8, rsi
mov rcx, qword [rcx]
call fcn.1401f7750
mov rax, qword [rdi + 0x58]
sub rbx, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
jmp 0x1400ff781
mov rax, qword [rdi]
mov rcx, rdi
movzx edx, byte [rbp]
mov rax, qword [rax + 0x18]
call qword [str.pP__]
cmp eax, 0xffffffff
je 0x1400ff789
dec rbx
mov esi, 1
add rbp, rsi
test rbx, rbx
jg 0x1400ff722
sub r14, rbx
mov rax, r14
jmp 0x1400ff80d
mov rax, qword [rcx + 0x40]
mov r9, qword [rax]
test r9, r9
je 0x1400ff7a5
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400ff7a7
xor ecx, ecx
movsxd rsi, ecx
test r14, r14
jle 0x1400ff807
test ecx, ecx
jle 0x1400ff7e0
cmp r14, rsi
mov rcx, r9
cmovl rsi, r14
mov r8, rsi
call fcn.1401f7750
mov rax, qword [rdi + 0x58]
sub r14, rsi
add rbp, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
test r14, r14
jle 0x1400ff807
cmp qword [rdi + 0x80], 0
je 0x1400ff807
lfence
mov r9, qword [rdi + 0x80]
mov r8, r14
mov edx, 1
mov rcx, rbp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
sub r14, rax
sub rbx, r14
mov rax, rbx
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
Function at 0x140113680
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
mov r14, qword [rsp + 0x50]
xor ebp, ebp
mov rax, qword [rsp + 0x58]
mov r13, r9
mov rbx, qword [rsp + 0x68]
mov r12, rdx
mov qword [r14], r8
mov qword [rbx], rax
mov rax, qword [r14]
cmp rax, r9
je 0x140113814
mov r15, qword [rsp + 0x60]
lea r9d, [rbp + 1]
mov rdi, qword [rbx]
mov r11d, 0x2800
mov r8d, 0x3ff
mov r10d, 0x2400
cmp rdi, r15
je 0x140113814
movzx edx, word [r12]
xor sil, sil
movzx ecx, word [rax]
cmp r9w, dx
jae 0x14011371b
lea eax, [r10 + rcx]
cmp ax, r8w
ja 0x14011383b
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x140113732
mov eax, ecx
add cx, r11w
cmp cx, r8w
ja 0x140113732
shl eax, 0xa
mov sil, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x140113745
movzx r8d, al
mov r10d, ebp
mov r11d, ebp
jmp 0x140113792
mov r8d, eax
cmp eax, 0x800
jae 0x14011375f
shr r8d, 6
mov r10d, r9d
or r8b, 0xc0
mov r11d, r9d
jmp 0x140113792
cmp eax, 0x10000
jae 0x140113779
shr r8d, 0xc
mov r10d, 2
or r8b, 0xe0
mov r11d, r10d
jmp 0x140113792
shr r8d, 0x12
mov r10d, 3
movzx r11d, sil
or r8b, 0xf0
xor r11d, 1
add r11d, r11d
lea r9d, [r11 + 1]
mov rdx, r15
sub rdx, rdi
mov ecx, r9d
cmp rdx, rcx
jl 0x140113814
add qword [r14], 2
test sil, sil
jne 0x1401137b3
cmp r10d, 3
jae 0x1401137bf
mov rcx, qword [rbx]
mov r9d, r11d
mov byte [rcx], r8b
inc qword [rbx]
test r9d, r9d
je 0x1401137f1
lea r8d, [r10 + r10*2]
add r8d, r8d
nop dword [rax + rax]
sub r8d, 6
mov edx, eax
mov ecx, r8d
dec r9d
shr edx, cl
mov rcx, qword [rbx]
and dl, 0x3f
or dl, 0x80
mov byte [rcx], dl
inc qword [rbx]
test r9d, r9d
jg 0x1401137d0
shr eax, 0xa
mov r9d, 1
test sil, sil
mov ecx, r9d
cmovne ecx, eax
mov word [r12], cx
mov rax, qword [r14]
cmp rax, r13
jne 0x1401136cf
mov rax, qword [rsp + 0x40]
cmp rax, qword [r14]
sete bpl
mov eax, ebp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov eax, 2
jmp 0x140113822