joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001130
Capabilities:
Enumerate process modules
Find taskbar
Get process image filename

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push r14
mov eax, 0x2280
call fcn.140027c20
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2270], rax
mov r14, rcx
xor edx, edx
lea rcx, str.Shell_TrayWnd
call qword [sym.imp.USER32.dll_FindWindowW]
xor ebx, ebx
lea rdx, [rsp + 0x30]
mov rcx, rax
mov dword [rsp + 0x30], ebx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea r8, [rsp + 0x34]
mov dword [r14], ebx
mov edx, 0x2000
mov qword [r14 + 4], 0xffffffffffffffff
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_K32EnumProcesses]
mov ebp, dword [rsp + 0x34]
shr rbp, 2
test rbp, rbp
je 0x140001250
mov qword [rsp + 0x2298], rdi
mov qword [rsp + 0x2290], rsi
mov edi, dword [rsp + rbx*4 + 0x60]
cmp edi, dword [rsp + 0x30]
jne 0x140001238
mov r8d, edi
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x140001238
mov r8d, 0x104
lea rdx, [rsp + 0x2060]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
lea rax, [rsp + 0x40]
mov rcx, rsi
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetProcessTimes]
mov rax, qword [rsp + 0x38]
cmp eax, dword [r14 + 4]
jae 0x14000122f
mov dword [r14], edi
mov qword [r14 + 4], rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc rbx
cmp rbx, rbp
jl 0x1400011c2
mov rdi, qword [rsp + 0x2298]
mov rsi, qword [rsp + 0x2290]
mov rax, r14
mov rcx, qword [rsp + 0x2270]
xor rcx, rsp
call fcn.1400095b0
lea r11, [rsp + 0x2280]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x140001280
Capabilities:
Create restart manager session
Enumerate processes that use resource

Disassembly:
mov eax, 0x2a48
call fcn.140027c20
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2a30], rax
lea r8, [0x14003cde0]
xor edx, edx
lea rcx, [0x14003ba80]
call qword [sym.imp.RstrtMgr.DLL_RmStartSession]
test eax, eax
jne 0x14000134c
lea rcx, [rsp + 0x40]
call fcn.140001130
mov ecx, dword [0x14003ba80]
mov r9d, 1
xor r8d, r8d
xor edx, edx
movsd xmm0, qword [rax]
movsd qword [rsp + 0x60], xmm0
mov eax, dword [rax + 8]
mov dword [rsp + 0x68], eax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.RstrtMgr.DLL_RmRegisterResources]
mov ecx, dword [0x14003ba80]
lea rax, [rsp + 0x54]
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x50]
mov dword [rsp + 0x50], 0x10
lea rdx, [rsp + 0x58]
call qword [sym.imp.RstrtMgr.DLL_RmGetList]
cmp dword [rsp + 0x54], 0
jne 0x14000134c
mov ecx, dword [0x14003ba80]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.RstrtMgr.DLL_RmShutdown]
xor eax, eax
mov rcx, qword [rsp + 0x2a30]
xor rcx, rsp
call fcn.1400095b0
add rsp, 0x2a48
ret
Function at 0x140001660
Capabilities:
Create process on windows
Get common file path
Terminate process

Disassembly:
sub rsp, 0x308
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edx, 0x105
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r8, [0x140033c60]
mov edx, 0x105
lea rcx, [rsp + 0xe0]
call fcn.140017f30
xorps xmm0, xmm0
mov dword [rsp + 0x50], 0x68
lea rax, [rsp + 0xc0]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0xe0]
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x400
mov dword [rsp + 0x20], 1
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rsp + 0x88], xmm0
movups xmmword [rsp + 0x98], xmm0
movups xmmword [rsp + 0xa8], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
call qword [sym.imp.KERNEL32.dll_FreeConsole]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 1
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.1400095b0
add rsp, 0x308
ret
Function at 0x140001d90
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001e8c
lea rdx, str.RtlGetVersion
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140001e8c
mov rcx, rbx
mov dword [rbx], 0x114
call rax
test eax, eax
jne 0x140001e8c
mov ebx, 0x5c
mov dword [rsp + 0x38], eax
mov edx, ebx
mov dword [rsp + 0x3c], 4
lea rcx, str.RegistryMachineSoftwareMicrosoftWindows_NTCurrentVersion
call fcn.14000d338
movzx edx, bx
lea rcx, [rax + 2]
call fcn.14000d338
movzx edx, bx
lea rcx, [rax + 2]
call fcn.14000d338
lea rcx, [rsp + 0x30]
mov r9d, 0x20019
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, 0xffffffff80000002
lea rdx, [rax + 2]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001e75
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rdx, [0x140035c60]
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400095b0
add rsp, 0x50
pop rbx
ret
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400095b0
add rsp, 0x50
pop rbx
ret
Function at 0x1400026e0
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x240
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov r8, r9
lea rcx, [rsp + 0x20]
mov edx, 0x104
mov rbx, r9
call fcn.140017ec8
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
lea r8, str..prev
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.140017f30
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea rcx, [rsp + 0x20]
mov edi, eax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test edi, edi
jne 0x140002779
test eax, eax
jne 0x14000277d
mov eax, 1
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400095b0
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret
test eax, eax
je 0x14000279f
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14000279b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14000279b
xor eax, eax
jmp 0x140002758
test edi, edi
je 0x140002753
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140002753
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
jmp 0x140002758
Function at 0x140009fbc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000a006
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000a006
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000a006
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000a006
cmp dword [rcx + 0x84], 0xe
jbe 0x14000a006
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000a008
xor al, al
add rsp, 0x28
ret
Function at 0x14000fc34
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000fca3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000fca3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000fca3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000fca3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000fca3
cmp dword [rcx + 0x84], 0xe
jbe 0x14000fca3
cmp dword [rcx + 0xf8], 0
je 0x14000fca3
mov ecx, ebx
call fcn.14000fd54
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000fb30
nop
cmp dword [rbp + 0x20], 0
je 0x14000fcf1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000fcfc
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000fc34

Function at 0x14000fe38
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000fca3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000fca3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000fca3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000fca3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000fca3
cmp dword [rcx + 0x84], 0xe
jbe 0x14000fca3
cmp dword [rcx + 0xf8], 0
je 0x14000fca3
mov ecx, ebx
call fcn.14000fd54
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000fb30
nop
cmp dword [rbp + 0x20], 0
je 0x14000fcf1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000fcfc
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000fc34
Function at 0x140019348
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140027c20
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001c5c0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140019397
mov rax, rbp
jmp 0x14001949f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x3c770]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001f928
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3c770]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001949b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001949b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001f928
test rax, rax
js 0x14001949b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001949b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001948d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001948d
cmp byte [rcx], 0xd
jne 0x140019473
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140019482
cmp byte [rcx + 1], 0xa
jne 0x140019482
inc rcx
jmp 0x140019482
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3b370]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140019455
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001949f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400095b0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001f140
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001f156
mov al, 1
jmp 0x14001f1b6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001f167
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001f1b4
mov ecx, dword [rcx + 0x18]
nop
call fcn.140021dc8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001f1b4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001f1b4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001f1b4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001f1b6
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001f9d4
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, [0x14003c770]
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 0x14001fa2b
cmp word [rdx], r13w
jne 0x14001fa2b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001fa30
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001fb55
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001fb76
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001fa69
mov rdx, r9
mov word [rbx], cx
jmp 0x14001fa90
cmp r9, r8
jae 0x14001faa0
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 0x14001fa4a
jmp 0x14001fb55
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 0x14001fb4a
cmp dword [rsp + 0x80], esi
je 0x14001fb4a
lea r8, [0x14003c770]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001fb22
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001faf2
mov word [rbx], r13w
jmp 0x14001fb52
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 0x14001faff
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001fb52
cmp word [rsp + 0x70], r13w
jne 0x14001fb2f
cmp rbx, r14
je 0x14001faec
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001f930
cmp word [rsp + 0x70], r13w
je 0x14001fb55
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, [0x14003c770]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001fb4f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001fb55
Function at 0x140021880
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140021907
mov rsi, rbx
cmp word [rax], bp
je 0x1400218c6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400218b0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400218ac
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001b03c
mov rdi, rax
test rax, rax
je 0x1400218f4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400282c0
mov rbp, rdi
xor ecx, ecx
call fcn.14001b000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140026c74
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.14001f930
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001f930
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140026dc4
cmp rax, 0xffffffffffffffff
je 0x140026dc4
xor edi, edi
test rbp, rbp
jle 0x140026d6f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001af88
mov rbx, rax
test rax, rax
jne 0x140026cfc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140026d65
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a570
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.14001ec44
cmp eax, 0xffffffff
je 0x140026d45
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140026d0c
mov edx, r15d
mov ecx, r14d
call fcn.14001a570
jmp 0x140026d65
cmp byte [rsi + 0x38], dil
je 0x140026d5c
cmp dword [rsi + 0x34], 5
jne 0x140026d5c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140026d65
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b000
jmp 0x140026dd8
jns 0x140026dd8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001f930
cmp rax, 0xffffffffffffffff
jne 0x140026d90
cmp byte [rsi + 0x30], dil
je 0x140026dd8
mov edi, dword [rsi + 0x2c]
jmp 0x140026dd8
mov ecx, r14d
call fcn.140021dc8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140026dd8
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 0x140026dd8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140026dd1
mov eax, dword [rsi + 0x2c]
jmp 0x140026dd6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001f930
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 0x140027bb0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140027bd8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140027bd8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140003a40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x28], 0
cmp qword [rsp + 0x60], 0
jne 0x140003a70
mov ecx, 0x7f
call qword [0x14049ba20]
xor eax, eax
jmp 0x140003c41
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
add rax, 0x88
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax + 4], 0
jne 0x140003aa0
mov ecx, 0x7f
call qword [0x14049ba20]
xor eax, eax
jmp 0x140003c41
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x60]
add rax, qword [rcx + 8]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x18], 0
je 0x140003acb
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x14], 0
jne 0x140003add
mov ecx, 0x7f
call qword [0x14049ba20]
xor eax, eax
jmp 0x140003c41
mov rax, qword [rsp + 0x68]
shr rax, 0x10
and rax, 0xffff
movzx eax, ax
test eax, eax
jne 0x140003b3c
mov rax, qword [rsp + 0x68]
and rax, 0xffff
movzx eax, ax
mov rcx, qword [rsp + 0x20]
cmp eax, dword [rcx + 0x10]
jae 0x140003b1d
mov ecx, 0x7f
call qword [0x14049ba20]
xor eax, eax
jmp 0x140003c41
mov rax, qword [rsp + 0x68]
and rax, 0xffff
movzx eax, ax
mov rcx, qword [rsp + 0x20]
sub eax, dword [rcx + 0x10]
mov dword [rsp + 0x28], eax
jmp 0x140003bfd
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x60]
add rax, qword [rcx + 8]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x60]
add rax, qword [rcx + 8]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x3c], 0
jmp 0x140003ba0
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x40]
add rax, 4
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x48]
add rax, 2
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x3c], eax
jae 0x140003be7
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x60]
add rax, qword [rcx + 8]
mov rdx, rax
mov rcx, qword [rsp + 0x68]
call fcn.14015e810
test eax, eax
jne 0x140003be5
mov rax, qword [rsp + 0x48]
movzx eax, word [rax]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x38], 1
jmp 0x140003be7
jmp 0x140003b7a
cmp dword [rsp + 0x38], 0
jne 0x140003bfd
mov ecx, 0x7f
call qword [0x14049ba20]
xor eax, eax
jmp 0x140003c41
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x28], eax
jbe 0x140003c1a
mov ecx, 0x7f
call qword [0x14049ba20]
xor eax, eax
jmp 0x140003c41
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 8]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x28]
mov eax, dword [rax + rcx*4]
mov rcx, qword [rsp + 0x60]
add rax, qword [rcx + 8]
add rsp, 0x58
ret
Function at 0x140003c50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x18
movzx eax, word [rsp + 0x30]
mov word [rsp], ax
mov eax, 1
mov word [rsp + 4], ax
xor eax, eax
mov word [rsp + 8], ax
mov dword [rsp + 0xc], 0
jmp 0x140003c90
mov eax, dword [rsp + 0xc]
inc eax
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0xc], eax
jge 0x140003d04
movzx eax, word [rsp + 4]
movzx ecx, word [rsp + 8]
cmp eax, ecx
jne 0x140003caf
xor eax, eax
mov word [rsp + 8], ax
movsxd rax, dword [rsp + 0xc]
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
add eax, 0x609
movsxd rcx, dword [rsp + 0xc]
mov rdx, qword [rsp + 0x20]
mov byte [rdx + rcx], al
movsxd rax, dword [rsp + 0xc]
movzx ecx, word [rsp + 8]
movzx ecx, word [rsp + rcx*2]
mov rdx, qword [rsp + 0x20]
movzx eax, byte [rdx + rax]
xor eax, ecx
movsxd rcx, dword [rsp + 0xc]
mov rdx, qword [rsp + 0x20]
mov byte [rdx + rcx], al
movzx eax, word [rsp + 8]
inc ax
mov word [rsp + 8], ax
jmp 0x140003c86
add rsp, 0x18
ret