joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401750
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x00407054]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x40186a
mov rax, qword [0x00407058]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x40179e
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x401850
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x401782
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x4018a2
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x00407058]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call dbg._GetPEImageBase
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x00407058]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401885
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401849
sub eax, 0x40
and eax, 0xffffffbf
je 0x401849
mov r9, rbp
add r9, qword [0x00407058]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x401871
add dword [0x00407054], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.memcpy
xor ebp, ebp
jmp 0x4017ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
mov rax, qword [0x00407058]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call dbg.__report_error
nop
nop word cs:[rax + rax]

Function at 0x402480
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x402490
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x4024a0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x4024e1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x4024d8
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x4024e3
add rax, 0x28
cmp rax, r9
jne 0x4024c4
xor eax, eax
repz ret

Function at 0x402590
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x004042e0]
cmp word [rbx], 0x5a4d
je 0x4025b0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4025a4
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp dbg._FindPESection
Function at 0x402800
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004079c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004079a0]
test rbx, rbx
je 0x402854
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40284b
test rsi, rsi
je 0x40284b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402830
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x004079c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
Function at 0x1400fc3c0
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 [0x1403debe8]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rdx
mov rdi, r8
lea rdx, [rsp + 0x20]
call fcn.1400fd520
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 0x1400fc400
mov ecx, dword [rsp + 0x20]
lea r9, [rsp + 0x28]
movzx edx, byte [rsp + 0x21]
lea r10, [0x140342170]
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 0x1400fc4b0
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 0x1400fc500
lea rcx, [rsp + 0x20]
call fcn.140100600
mov eax, dword [rsp + 0x20]
mov dword [rdi], eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14020c3e0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1401076c0
Capabilities:
Get local ipv4 addresses

Disassembly:
test ecx, ecx
js 0x1401078c5
push r12
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x1403debe8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r15d, r8d
mov r12, rdx
mov r14d, ecx
test rdx, rdx
je 0x1401078ae
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 0x14010777a
test rbx, rbx
je 0x140107748
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 0x140107774
inc edi
cmp edi, 5
jb 0x140107710
jmp 0x140107888
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140107883
mov rsi, rbx
test rbx, rbx
je 0x14010789c
mov qword [rsp + 0xa0], rbp
cmp dword [rsi + 0x64], r15d
jne 0x140107869
cmp dword [rsi + 0x58], 0
jbe 0x140107869
mov rcx, qword [rsi + 0x40]
lea rdx, str.Virtual
call fcn.1402448b8
test rax, rax
jne 0x140107869
mov rcx, qword [rsi + 0x40]
lea rdx, str.Bluetooth
call fcn.1402448b8
test rax, rax
jne 0x140107869
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 0x140107843
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.140104a80
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 0x140107810
lea rax, [rsp + 0x38]
mov rdx, 0xffffffffffffffff
nop
inc rdx
cmp byte [rax + rdx], 0
jne 0x140107850
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 0x140107796
mov rbp, qword [rsp + 0xa0]
jmp 0x140107888
test rbx, rbx
je 0x14010789c
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.14020c3e0
add rsp, 0x70
pop r15
pop r14
pop r12
ret
Function at 0x14010cdf0
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 [0x1403e1fe8]
mov rbx, rdx
mov qword [rsp + 0xe0], rax
mov rdi, rcx
mov qword [rsp + 0xd8], rax
xorps xmm0, xmm0
mov rax, qword [0x1403e1fd0]
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 0x14010cf08
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.14010d910
int3
Function at 0x14010d910
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.1401155f0
xor r9d, r9d
lea r8, [0x1402cee18]
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 0x140128ee0
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.1401283a0
cmp eax, 1
jne 0x140128f01
lea ecx, [rax + 0x2f]
mov qword [rbp - 0x20], r14
add ebx, 0xea60
mov qword [rbp - 0x10], r14
mov qword [rbp - 8], SafeArrayLock
call fcn.1400e1b00
mov qword [rbp - 8], 0x2f
cmp ebx, 0x2bf20
je 0x140128fe3
movups xmm0, xmmword [str.setWmiEventReceiver__1_start_sleep]
mov qword [rbp - 0x10], 0x24
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1402d0308]
movups xmmword [rax + 0x10], xmm1
mov ecx, dword [0x1402d0318]
mov dword [rax + 0x20], ecx
lea rcx, [rbp - 0x20]
mov byte [rax + 0x24], r14b
mov qword [rbp - 0x20], rax
call fcn.140195010
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.1400e1b00
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 [0x1402d0330]
movups xmmword [rax + 0x10], xmm1
movzx ecx, word [0x1402d0340]
mov word [rax + 0x20], cx
lea rcx, [rbp - 0x20]
mov byte [rax + 0x22], r14b
mov qword [rbp - 0x20], rax
call fcn.140195010
jmp 0x140128f01
movups xmm0, xmmword [str.setWmiEventReceiver_trycount__3_break]
mov qword [rbp - 0x10], 0x27
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1402d0290]
movups xmmword [rax + 0x10], xmm1
mov ecx, dword [0x1402d02a0]
mov dword [rax + 0x20], ecx
movzx ecx, word [0x1402d02a4]
mov word [rax + 0x24], cx
movzx ecx, byte [0x1402d02a6]
mov byte [rax + 0x26], cl
lea rcx, [rbp - 0x20]
mov byte [rax + 0x27], r14b
mov qword [rbp - 0x20], rax
call fcn.140195010
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.140195b50
Function at 0x14012a5a0
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 0x14012a6c9
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 0x14012a6b2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x14012a6c3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x60]
jmp 0x14012a6ce
mov eax, 1
add rsp, 0x118
ret

Function at 0x14012dad0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1403debe8]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14012dbb3
cmp byte [rcx + 0x71], 0
je 0x14012dbb3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
mov rax, qword [rax + 0x18]
call qword [case.0x1400e3a85.0]
cmp eax, 0xffffffff
je 0x14012dbaf
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 [case.0x1400e3a85.0]
test eax, eax
je 0x14012db72
sub eax, 1
je 0x14012db76
cmp eax, 2
jne 0x14012dbaf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14020c3e0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14012dba6
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 0x14012dbaf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14012db5a
xor al, al
jmp 0x14012db5a
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14020c3e0
add rsp, 0x60
pop rbx
ret
Function at 0x14012e720
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x1403debe8]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14012e750
xor eax, eax
jmp 0x14012e8a3
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14012e78a
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14012e78a
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 0x14012e8a3
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xb0], rsi
je 0x14012e896
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14012e7cd
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 0x14012e7dc
movsx ecx, dil
jmp 0x14012e83a
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 [case.0x1400e3a85.0]
test eax, eax
je 0x14012e854
sub eax, 1
je 0x14012e854
cmp eax, 2
jne 0x14012e896
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 0x14012e89b
mov rsi, qword [rsp + 0x58]
lea rax, [rsp + 0x68]
sub rsi, rax
je 0x14012e884
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 0x14012e896
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x60], rax
mov eax, edi
jne 0x14012e89b
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14020c3e0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
Function at 0x14012f340
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 0x14012f371
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 0x14012f3f6
lfence
mov rbx, rbp
mov rcx, rdi
call fcn.14012df30
test rax, rax
jle 0x14012f3c6
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.140244220
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 0x14012f3e6
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x38]
call qword [case.0x1400e3a85.0]
cmp eax, 0xffffffff
je 0x14012f3ee
mov byte [r14], al
dec rbx
mov esi, 1
add r14, rsi
test rbx, rbx
jg 0x14012f388
sub rbp, rbx
jmp 0x14012f4e8
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14012f40d
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14012f40f
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14012f441
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140244220
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 0x14012f4e2
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14012f47c
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 0x14012f4c0
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 0x14012f4e2
cmp rsi, rax
ja 0x14012f490
test rbx, rbx
je 0x14012f4e2
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 0x14012f5d0
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 0x14012f671
test r8, r8
jle 0x14012f669
mov rcx, rdi
call fcn.14012e220
test rax, rax
jle 0x14012f640
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.140244220
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 0x14012f661
mov rax, qword [rdi]
mov rcx, rdi
movzx edx, byte [rbp]
mov rax, qword [rax + 0x18]
call qword [case.0x1400e3a85.0]
cmp eax, 0xffffffff
je 0x14012f669
dec rbx
mov esi, 1
add rbp, rsi
test rbx, rbx
jg 0x14012f602
sub r14, rbx
mov rax, r14
jmp 0x14012f6ed
mov rax, qword [rcx + 0x40]
mov r9, qword [rax]
test r9, r9
je 0x14012f685
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14012f687
xor ecx, ecx
movsxd rsi, ecx
test r14, r14
jle 0x14012f6e7
test ecx, ecx
jle 0x14012f6c0
cmp r14, rsi
mov rcx, r9
cmovl rsi, r14
mov r8, rsi
call fcn.140244220
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 0x14012f6e7
cmp qword [rdi + 0x80], 0
je 0x14012f6e7
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 0x140143270
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 0x140143404
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 0x140143404
movzx edx, word [r12]
xor sil, sil
movzx ecx, word [rax]
cmp r9w, dx
jae 0x14014330b
lea eax, [r10 + rcx]
cmp ax, r8w
ja 0x14014342b
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x140143322
mov eax, ecx
add cx, r11w
cmp cx, r8w
ja 0x140143322
shl eax, 0xa
mov sil, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x140143335
movzx r8d, al
mov r10d, ebp
mov r11d, ebp
jmp 0x140143382
mov r8d, eax
cmp eax, 0x800
jae 0x14014334f
shr r8d, 6
mov r10d, r9d
or r8b, 0xc0
mov r11d, r9d
jmp 0x140143382
cmp eax, 0x10000
jae 0x140143369
shr r8d, 0xc
mov r10d, 2
or r8b, 0xe0
mov r11d, r10d
jmp 0x140143382
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 0x140143404
add qword [r14], 2
test sil, sil
jne 0x1401433a3
cmp r10d, 3
jae 0x1401433af
mov rcx, qword [rbx]
mov r9d, r11d
mov byte [rcx], r8b
inc qword [rbx]
test r9d, r9d
je 0x1401433e1
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 0x1401433c0
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 0x1401432bf
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 0x140143412