joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004880
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
movabs rax, 0xc2b2ae3d27d4eb4f
movabs rdx, 0x9e3779b185ebca87
movabs r10, 0x85ebca77c2b2ae63
movabs r8, 0x27d4eb2f165667c5
mov r9d, dword [rcx + 0x48]
add r9, rcx
add r9, 0x28
mov rsi, qword [rcx]
cmp rsi, 0x20
jb 0x140004959
mov r14, qword [rcx + 8]
mov rbx, qword [rcx + 0x10]
mov rdi, qword [rcx + 0x18]
mov r11, qword [rcx + 0x20]
mov r15, r14
rol r15, 1
mov r12, rbx
rol r12, 7
add r12, r15
mov r15, rdi
rol r15, 0xc
mov r13, r11
rol r13, 0x12
add r13, r15
add r13, r12
imul r14, rax
rol r14, 0x1f
imul r14, rdx
xor r14, r13
imul r14, rdx
add r14, r10
imul rbx, rax
rol rbx, 0x1f
imul rbx, rdx
xor rbx, r14
imul rbx, rdx
imul rdi, rax
rol rdi, 0x1f
add rbx, r10
imul rdi, rdx
xor rdi, rbx
imul rdi, rdx
add rdi, r10
imul r11, rax
rol r11, 0x1f
imul r11, rdx
xor r11, rdi
imul r11, rdx
add r11, r10
jmp 0x140004960
mov r11, qword [rcx + 0x18]
add r11, r8
lea rdi, [rcx + 0x28]
add r11, rsi
add rcx, 0x30
cmp rcx, r9
jbe 0x140004980
mov rsi, r11
mov rbx, rdi
jmp 0x1400049b0
mov rsi, qword [rdi]
imul rsi, rax
rol rsi, 0x1f
imul rsi, rdx
xor rsi, r11
rol rsi, 0x1b
imul rsi, rdx
add rsi, r10
lea rbx, [rdi + 8]
add rdi, 0x10
mov r11, rsi
cmp rdi, r9
mov rdi, rbx
jbe 0x140004980
movabs rcx, 0x165667b19e3779f9
lea r10, [rbx + 4]
cmp r10, r9
jbe 0x1400049cd
mov r10, rbx
cmp r10, r9
jb 0x1400049f0
jmp 0x140004a10
mov r11d, dword [rbx]
imul r11, rdx
xor r11, rsi
rol r11, 0x17
imul r11, rax
add r11, rcx
mov rsi, r11
cmp r10, r9
jae 0x140004a10
nop word [rax + rax]
movzx r11d, byte [r10]
imul r11, r8
xor r11, rsi
rol r11, 0xb
imul r11, rdx
inc r10
mov rsi, r11
cmp r10, r9
jb 0x1400049f0
jmp 0x140004a13
mov r11, rsi
mov rdx, r11
shr rdx, 0x21
xor rdx, r11
imul rdx, rax
mov r8, rdx
shr r8, 0x1d
xor r8, rdx
imul r8, rcx
mov rax, r8
shr rax, 0x20
xor rax, r8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140013c80
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x208
mov r9d, edx
mov rsi, rcx
lea r8, [0x1400283a0]
lea rdi, [rsp + 0x80]
mov r15d, pe_nt_image_headers64
mov edx, pe_nt_image_headers64
mov rcx, rdi
call fcn.140013e50
mov word [rsp + 0x100], 0
movzx eax, byte [rsp + 0x80]
test al, al
je 0x140013d6a
lea r12, [rsp + 0x100]
lea rbx, [rsp + 0x30]
lea r14, [rsp + 0x2c]
nop word cs:[rax + rax]
mov byte [rsp + 0x2c], al
mov byte [rsp + 0x2d], 0
mov r8d, 2
mov rcx, rbx
mov rdx, r14
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x140013e3b
cmp word [r12], 0
mov rax, r12
mov rcx, r15
je 0x140013d41
mov rcx, r15
mov rdx, r12
nop dword [rax + rax]
lea rax, [rdx + 2]
dec rcx
cmp word [rdx + 2], 0
mov rdx, rax
jne 0x140013d30
test rcx, rcx
je 0x140013e3b
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov word [rax + 2], 0
add r12, 2
dec r15
movzx eax, byte [rdi + 1]
inc rdi
test al, al
jne 0x140013cf0
mov word [rsp + 0x30], 0
movzx eax, byte [rsi]
test al, al
je 0x140013e16
lea r14, [rsp + 0x30]
mov r15d, 0x28
lea rdi, [rsp + 0x2c]
lea rbx, [rsp + 0x2a]
nop word cs:[rax + rax]
mov byte [rsp + 0x2a], al
mov byte [rsp + 0x2b], 0
mov r8d, 2
mov rcx, rdi
mov rdx, rbx
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x140013e3b
cmp word [r14], 0
mov rax, r14
mov rcx, r15
je 0x140013df1
mov rcx, r15
mov rdx, r14
nop word cs:[rax + rax]
lea rax, [rdx + 2]
dec rcx
cmp word [rdx + 2], 0
mov rdx, rax
jne 0x140013de0
test rcx, rcx
je 0x140013e3b
movzx ecx, word [rsp + 0x2c]
mov word [rax], cx
mov word [rax + 2], 0
add r14, 2
dec r15
movzx eax, byte [rsi + 1]
inc rsi
test al, al
jne 0x140013da0
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x208
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call sub.msvcrt.dll_abort
int3
Function at 0x140014f10
Capabilities:
Check if file exists
Get file attributes
Terminate process

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x90
movaps xmmword [rsp + 0x80], xmm8
movaps xmmword [rsp + 0x70], xmm7
movaps xmmword [rsp + 0x60], xmm6
mov rcx, qword [0x1400330b8]
test rcx, rcx
je 0x140014f6b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140014f5e
mov rcx, qword [0x1400330b8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x1400330b8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1400358f0], 1
jne 0x140015017
mov rbx, qword [0x1400286e8]
mov qword [rsp + 0x50], rbx
movups xmm6, xmmword [0x1400286d8]
movaps xmmword [rsp + 0x40], xmm6
movups xmm7, xmmword [0x1400286c8]
movaps xmmword [rsp + 0x30], xmm7
movups xmm8, xmmword [0x1400286b8]
movaps xmmword [rsp + 0x20], xmm8
lea rsi, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebp, 0x14
lea rdi, [0x1400330d0]
mov r14, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r15, qword [sym.imp.KERNEL32.dll_Sleep]
mov r12, qword [sym.imp.SHELL32.dll_SHFileOperationW]
nop dword [rax]
mov rcx, rdi
call r14
cmp eax, 0xffffffff
je 0x140015017
and eax, 0x10
je 0x140015017
mov ecx, 0x64
call r15
mov qword [rsp + 0x50], rbx
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm7
movaps xmmword [rsp + 0x20], xmm8
mov rcx, rsi
call r12
dec ebp
jne 0x140014fe0
movaps xmm6, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x70]
movaps xmm8, xmmword [rsp + 0x80]
add rsp, 0x90
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x14001bbd0
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x2020
call fcn.14001d350
sub rsp, rax
mov rsi, rcx
mov eax, dword [0x1400330c0]
test eax, eax
je 0x14001bbf3
test eax, eax
jg 0x14001bc3b
jmp 0x14001bc72
lea rdx, str.HOME
lea rcx, [rsp + 0x20]
mov r8d, 0x1000
call fcn.140014570
test al, al
je 0x14001bcea
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll__wcsdup
movsxd rcx, dword [0x1400330c0]
lea rdx, [0x140038130]
mov qword [rdx + rcx*8], rax
lea eax, [rcx + 1]
mov dword [0x1400330c0], eax
test eax, eax
jle 0x14001bc72
lea rdi, [0x140038130]
xor ebx, ebx
nop word cs:[rax + rax]
mov rdx, qword [rdi]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x14001bcdd
inc rbx
movsxd rax, dword [0x1400330c0]
add rdi, 8
cmp rbx, rax
jl 0x14001bc50
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x14001bc89
mov al, 1
cmp word [rsi + 2], 0x3a
je 0x14001bcdf
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, eax
mov al, 1
test ecx, ecx
jne 0x14001bcaa
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete al
test al, al
je 0x14001bcdf
cmp dword [0x1400330c0], 0x3ff
jg 0x14001bcdf
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
movsxd rcx, dword [0x1400330c0]
lea rdx, [0x140038130]
mov qword [rdx + rcx*8], rax
lea eax, [rcx + 1]
mov dword [0x1400330c0], eax
mov al, 1
add rsp, 0x2020
pop rbx
pop rdi
pop rsi
ret
lea rcx, str.HOME
call fcn.140015f50
int3

Function at 0x14001c030
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.140022f80
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140022f80
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x14001cd02
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400521e8]
test eax, eax
je 0x14001cd9a
lea rax, [0x1400521c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400521f0]
mov qword [rbp - 8], rax
jmp 0x14001cd7e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14001cd72
cmp qword [rbp - 0x10], 0
je 0x14001cd72
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14001cd38
lea rax, [0x1400521c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14001cd9b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x14001cea0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14001cec8
mov eax, 0
jmp 0x14001cf16
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14001cef1
mov eax, 0
jmp 0x14001cf16
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14001cf11
mov eax, 0
jmp 0x14001cf16
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14001cf1c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14001cf9a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14001cf91
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14001cf91
mov rax, qword [rbp - 8]
jmp 0x14001cfaf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14001cf64
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140051100
Capabilities:
Move file

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4a0
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x498], rax
movaps xmm0, xmmword [0x1401d9dd0]
lea rbp, [rsp + 0x30]
movaps xmmword [rbp + 0x40], xmm0
movaps xmmword [rbp + 0x30], xmm0
movaps xmmword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
lea rdx, [0x1401e7aa3]
lea r8, str..._.._base_files_file_util_win.cc
lea rsi, [rsp + 0x290]
mov rcx, rsi
mov r9d, 0x19b
call fcn.1400d95e0
mov rcx, rbp
mov rdx, rsi
xor r8d, r8d
call fcn.1400e5a80
lea rbp, [rsp + 0x290]
mov r8d, 0x208
mov rcx, rbp
mov dl, 0xaa
call fcn.140103d70
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x14005119e
mov rdx, qword [rbx]
mov r8d, 0x104
mov rcx, rbp
call fcn.1400dcde0
mov rcx, rbp
call fcn.1400d0fb0
lea rbp, [rsp + 0x80]
mov r8d, 0x208
mov rcx, rbp
mov dl, 0xaa
call fcn.140103d70
cmp byte [rdi + 0x17], 0
mov rdx, rdi
jns 0x1400511d8
mov rdx, qword [rdi]
mov r8d, 0x104
mov rcx, rbp
call fcn.1400dcde0
mov rcx, rbp
call fcn.1400d0fb0
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x1400511fa
mov rdx, qword [rbx]
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x140051206
mov rcx, qword [rdi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor r8d, r8d
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_ReplaceFileW]
test eax, eax
jne 0x140051269
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140052a10
mov ebp, eax
cmp byte [rdi + 0x17], 0
jns 0x140051239
mov rdi, qword [rdi]
cmp byte [rbx + 0x17], 0
jns 0x140051242
mov rbx, qword [rbx]
mov rcx, rbx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne dil
test r14, r14
je 0x14005126c
test eax, eax
jne 0x14005126c
cmp ebp, 0xfffffffc
je 0x140051296
mov dword [r14], ebp
xor edi, edi
jmp 0x14005126c
mov dil, 1
lea rcx, [rsp + 0x30]
call fcn.1400e5c10
mov rcx, qword [rsp + 0x498]
xor rcx, rsp
call fcn.1401013e0
mov eax, edi
add rsp, 0x4a0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call fcn.14015d870
mov ebp, eax
jmp 0x140051262

Function at 0x1400512a0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x1401d9dd0]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x40], xmm0
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.PathExists
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x1ce
call fcn.1400d95e0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1400e5a80
cmp byte [rdi + 0x17], 0
jns 0x140051316
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.1400e5c10
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1401013e0
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x140130550
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor edi, edi
cmp qword [rcx + 0x78], 0
je 0x14013059d
mov rsi, rcx
mov rcx, qword [rcx + 0x80]
test rcx, rcx
je 0x14013074c
mov eax, dword [rsi + 0x9c]
test al, 0x10
jne 0x1401305bb
test al, 8
jne 0x140130669
xor edi, edi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401013e0
mov eax, edi
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rax, qword [rsi + 0x30]
cmp rax, qword [rsi + 0x28]
je 0x1401305dd
mov rax, qword [rsi]
mov edi, 0xffffffff
mov rcx, rsi
mov edx, 0xffffffff
call qword [rax + 0x60]
cmp eax, 0xffffffff
je 0x14013059d
lea r14, [rsi + 0x88]
movabs r15, 0xaaaaaaaaaaaaaaaa
lea r12, [rsp + 0x30]
mov edi, 0xffffffff
mov qword [rsp + 0x30], r15
mov r8, qword [rsi + 0x40]
mov rcx, qword [rsi + 0x80]
mov r9, qword [rsi + 0x60]
add r9, r8
mov rax, qword [rcx]
mov qword [rsp + 0x20], r12
mov rdx, r14
call qword [rax + 0x20]
mov ebp, eax
mov rbx, qword [rsp + 0x30]
mov rcx, qword [rsi + 0x40]
mov r9, qword [rsi + 0x78]
sub rbx, rcx
mov edx, 1
mov r8, rbx
call fcn.140119bf0
cmp rax, rbx
jne 0x14013059d
cmp ebp, 1
je 0x1401305f8
cmp ebp, 2
je 0x14013059d
mov rcx, qword [rsi + 0x78]
call fcn.140118e68
test eax, eax
jne 0x14013059d
jmp 0x14013059b
mov rax, qword [rsi + 0x90]
mov qword [rsp + 0x30], rax
cmp byte [rsi + 0xa2], 0
je 0x1401306a9
mov rdi, qword [rsi + 0x20]
sub rdi, qword [rsi + 0x18]
xor ebx, ebx
neg edi
mov rcx, qword [rsi + 0x78]
mov edx, edi
mov r8d, 1
call fcn.1401194e4
test eax, eax
je 0x1401306d1
mov edi, 0xffffffff
jmp 0x14013059d
mov rax, qword [rcx]
call qword [rax + 0x28]
mov r9, qword [rsi + 0x48]
mov rdi, qword [rsi + 0x50]
sub rdi, r9
test eax, eax
jle 0x14013070b
mov rcx, qword [rsi + 0x20]
sub rcx, qword [rsi + 0x18]
mov eax, eax
imul rcx, rax
add rdi, rcx
jmp 0x140130686
test bl, bl
je 0x1401306e1
mov rax, qword [rsp + 0x30]
mov qword [rsi + 0x88], rax
mov rax, qword [rsi + 0x40]
mov qword [rsi + 0x50], rax
mov qword [rsi + 0x48], rax
mov dword [rsi + 0x9c], 0
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
mov qword [rsi + 0x20], 0
jmp 0x14013059b
mov rax, qword [rsi + 0x18]
cmp rax, qword [rsi + 0x20]
je 0x140130686
mov r8, qword [rsi + 0x40]
mov rcx, qword [rsi + 0x80]
sub rax, qword [rsi + 0x10]
mov rbp, qword [rcx]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
call qword [rbp + 0x38]
mov eax, eax
add rdi, qword [rsi + 0x48]
add rax, qword [rsi + 0x40]
sub rdi, rax
mov bl, 1
jmp 0x140130688
call fcn.140130cd0
int3
Function at 0x140130a60
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov ebp, 0xffffffff
cmp qword [rcx + 0x78], 0
jne 0x140130aab
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401013e0
mov eax, ebp
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov esi, edx
mov rdi, rcx
call fcn.140130c50
mov byte [rsp + 0x5f], 0xaa
mov r15, qword [rdi + 0x28]
mov r14, qword [rdi + 0x38]
cmp esi, 0xffffffff
je 0x140130b3e
mov rax, qword [rdi + 0x30]
test rax, rax
jne 0x140130ae6
lea rcx, [rsp + 0x60]
lea rax, [rsp + 0x5f]
mov qword [rdi + 0x30], rax
mov qword [rdi + 0x28], rax
mov qword [rdi + 0x38], rcx
mov byte [rax], sil
mov rcx, qword [rdi + 0x28]
mov rbx, qword [rdi + 0x30]
inc rbx
mov qword [rdi + 0x30], rbx
sub rbx, rcx
je 0x140130b31
cmp byte [rdi + 0xa2], 0
je 0x140130b47
mov r9, qword [rdi + 0x78]
mov edx, 1
mov r8, rbx
call fcn.140119bf0
mov ebp, 0xffffffff
cmp rax, rbx
jne 0x140130a8b
mov qword [rdi + 0x30], r15
mov qword [rdi + 0x28], r15
mov qword [rdi + 0x38], r14
xor ebp, ebp
cmp esi, 0xffffffff
cmovne ebp, esi
jmp 0x140130a8b
mov rbx, qword [rdi + 0x30]
mov rcx, r15
jmp 0x140130af8
mov qword [rsp + 0x40], r14
mov rax, qword [rdi + 0x40]
lea r13, [rsp + 0x50]
mov qword [r13], rax
lea r14, [rdi + 0x88]
lea r12, [rsp + 0x48]
mov rcx, qword [rdi + 0x80]
test rcx, rcx
je 0x140130c42
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x48], rax
mov rax, qword [rdi + 0x40]
mov rdx, qword [rdi + 0x60]
add rdx, rax
mov r8, qword [rdi + 0x28]
mov r9, qword [rdi + 0x30]
mov rbp, qword [rcx]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
mov rdx, r14
call qword [rbp + 0x10]
mov rcx, qword [rdi + 0x28]
cmp qword [rsp + 0x48], rcx
je 0x140130c38
mov ebp, eax
cmp eax, 3
je 0x140130c1b
cmp ebp, 1
ja 0x140130c38
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rdi + 0x40]
mov r9, qword [rdi + 0x78]
sub rbx, rcx
mov edx, 1
mov r8, rbx
call fcn.140119bf0
cmp ebp, 1
jne 0x140130c03
cmp rax, rbx
jne 0x140130c03
mov rcx, qword [rdi + 0x30]
mov rdx, qword [rsp + 0x48]
mov qword [rdi + 0x28], rdx
mov qword [rdi + 0x38], rcx
cmp rax, rbx
jne 0x140130c38
cmp ebp, 1
je 0x140130b65
mov r14, qword [rsp + 0x40]
jmp 0x140130b25
mov rbx, qword [rdi + 0x30]
mov r9, qword [rdi + 0x78]
sub rbx, rcx
mov edx, 1
mov r8, rbx
call fcn.140119bf0
cmp rax, rbx
je 0x140130c11
mov ebp, 0xffffffff
jmp 0x140130a8b
call fcn.140130cd0
int3
Function at 0x14013aa70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov r15, rdx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, qword [rdx]
lea r12, [rdx + 8]
test rax, rax
mov rdx, r12
cmove rdx, rax
mov ebp, dword [rdx + 8]
xor ebx, ebx
test ebp, ebp
setne bl
lea rdi, [r15 + 0x28]
xor edx, edx
cmp rax, 1
cmovbe rdi, rdx
mov dword [rsp + 0x20], ebp
mov ebp, dword [rdi + 8]
test ebp, ebp
mov edi, 2
cmove rdi, rbx
lea rbx, [r15 + 0x48]
cmp rax, 2
cmovbe rbx, rdx
mov dword [rsp + 0x24], ebp
mov ebp, dword [rbx + 8]
test ebp, ebp
mov ebx, 3
cmove rbx, rdi
lea rdi, [r15 + 0x68]
cmp rax, 3
cmovbe rdi, rdx
mov dword [rsp + 0x28], ebp
mov ebp, dword [rdi + 8]
test ebp, ebp
mov edi, 4
cmove rdi, rbx
lea rbx, [r15 + 0x88]
cmp rax, 4
cmovbe rbx, rdx
mov dword [rsp + 0x2c], ebp
mov ebp, dword [rbx + 8]
test ebp, ebp
mov ebx, 5
cmove rbx, rdi
lea rdi, [r15 + 0xa8]
cmp rax, 5
cmovbe rdi, rdx
mov dword [rsp + 0x30], ebp
mov ebp, dword [rdi + 8]
test ebp, ebp
mov edi, 6
cmove rdi, rbx
lea rbx, [r15 + 0xc8]
cmp rax, 6
cmovbe rbx, rdx
mov dword [rsp + 0x34], ebp
mov ebp, dword [rbx + 8]
test ebp, ebp
mov ebx, 7
cmove rbx, rdi
lea rdi, [r15 + 0xe8]
cmp rax, 7
cmovbe rdi, rdx
mov dword [rsp + 0x38], ebp
mov ebp, dword [rdi + 8]
test ebp, ebp
mov edi, 8
cmove rdi, rbx
lea rbx, [r15 + 0x108]
cmp rax, 8
cmovbe rbx, rdx
mov r14, rcx
mov dword [rsp + 0x3c], ebp
mov ecx, dword [rbx + 8]
test ecx, ecx
mov ebp, 9
cmove rbp, rdi
cmp rax, 9
lea rax, [r15 + 0x128]
cmovbe rax, rdx
mov dword [rsp + 0x40], ecx
mov eax, dword [rax + 8]
mov dword [rsp + 0x44], eax
test eax, eax
mov r13d, 0xa
cmove r13, rbp
mov rsi, qword [r14]
lea rdi, [r14 + 8]
test rsi, rsi
cmovne rsi, rdi
mov rcx, rsi
mov rdx, r13
call fcn.14013a150
mov ebx, eax
test al, al
je 0x14013ac1e
test r13, r13
je 0x14013ac1e
mov ebp, 1
mov edx, dword [rsp + rbp*4 + 0x1c]
mov rcx, rsi
call fcn.14013a150
mov ebx, eax
test al, al
je 0x14013ac1e
lea rax, [rbp + 1]
cmp rbp, r13
mov rbp, rax
jb 0x14013ac00
test bl, bl
je 0x14013ac63
test r13, r13
je 0x14013ac63
mov esi, 1
lea rax, [rsi - 1]
mov rcx, rdi
cmp qword [r14], rax
ja 0x14013ac3a
xor ecx, ecx
mov rdx, r12
cmp qword [r15], rax
ja 0x14013ac44
xor edx, edx
call fcn.14013a240
mov ebx, eax
test al, al
je 0x14013ac63
lea rax, [rsi + 1]
add r12, 0x20
add rdi, 0x20
cmp rsi, r13
mov rsi, rax
jb 0x14013ac2c
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401013e0
mov eax, ebx
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14013ba80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
xor edx, edx
jmp 0x14013bbb0
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r15d, edx
mov rsi, rcx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp byte [rcx + 0x60], 0
je 0x14013bc0e
mov edi, dword [rsi + 0x5c]
test r15b, r15b
je 0x14013bbee
mov dword [rsi + 0x5c], 0xffffffff
mov byte [rsi + 0x60], 0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401013e0
mov eax, edi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movabs r14, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x58], r14
mov eax, dword [rsi + 0x58]
test eax, eax
mov edi, 1
cmovg edi, eax
xor ebp, ebp
mov rcx, qword [rsi + 0x40]
call fcn.140119fcc
cmp eax, 0xffffffff
je 0x14013bc88
mov byte [rsp + rbp + 0x58], al
inc rbp
cmp rdi, rbp
jne 0x14013bc2c
mov byte [rsp + 0x57], 0xaa
cmp byte [rsi + 0x61], 0
je 0x14013bc92
mov al, byte [rsp + 0x58]
mov byte [rsp + 0x57], al
test r15b, r15b
je 0x14013bc68
movzx edi, byte [rsp + 0x57]
mov dword [rsi + 0x5c], edi
jmp 0x14013bbee
mov edi, edi
test edi, edi
jle 0x14013bd36
mov rdx, qword [rsi + 0x40]
movzx ecx, byte [rsp + rdi + 0x57]
dec rdi
call fcn.14011c368
cmp eax, 0xffffffff
jne 0x14013bc6a
mov edi, 0xffffffff
jmp 0x14013bbee
lea rax, [rsp + 0x48]
mov qword [rax], r14
lea r12, [rsp + 0x40]
mov qword [r12], r14
mov rcx, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x50]
mov r13d, dword [rdx]
movzx ebp, word [rdx + 4]
movzx r14d, word [rdx + 6]
lea r9, [rsp + rdi + 0x58]
mov rax, qword [rcx]
mov qword [rsp + 0x38], r12
lea rbx, [rsp + 0x58]
mov qword [rsp + 0x30], rbx
lea rbx, [rsp + 0x57]
mov qword [rsp + 0x28], rbx
lea rbx, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
lea r8, [rsp + 0x58]
call qword [rax + 0x18]
cmp eax, 1
jne 0x14013bd1f
mov rax, qword [rsi + 0x50]
mov dword [rax], r13d
mov word [rax + 4], bp
mov word [rax + 6], r14w
cmp edi, 8
je 0x14013bc88
mov rcx, qword [rsi + 0x40]
call fcn.140119fcc
cmp eax, 0xffffffff
je 0x14013bc88
mov byte [rsp + rdi + 0x58], al
inc rdi
jmp 0x14013bca3
cmp eax, 2
je 0x14013bc88
cmp eax, 3
je 0x14013bc51
jmp 0x14013bc59
movzx edi, byte [rsp + 0x57]
jmp 0x14013bbee