joyce8/EMBER2024-capa huggingface dataset:
Function at 0x102978c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x460
mov rax, qword [0x01045480]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rdi, rcx
mov rsi, rdx
lea rcx, [rsp + 0x40]
xor r12d, r12d
xor edx, edx
mov r8d, 0x208
mov rbx, r12
call fcn.01035300
mov ebp, 0x200
lea rcx, [rsp + 0x250]
xor edx, edx
mov r8, rbp
call fcn.01035300
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x38], ebp
cmp rsi, r12
je 0x10298d7
mov ebp, 0x104
lea r8, [0x0100f008]
lea rcx, [rsp + 0x40]
mov rdx, rbp
call fcn.01036a04
cmp eax, r12d
jne 0x10298c7
lea r8, [0x0100a3a8]
lea rcx, [rsp + 0x40]
mov rdx, rbp
call fcn.01036a04
cmp eax, r12d
jne 0x10298c7
lea rcx, [rsp + 0x40]
mov r8, rsi
mov rdx, rbp
call fcn.01036a04
cmp eax, r12d
jne 0x10298c7
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, r12d
jne 0x10298c7
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
lea rdx, [0x0100f038]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x250]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, r12d
jne 0x10298c7
cmp word [rsp + 0x250], r12w
je 0x10298c7
lea rcx, [rsp + 0x250]
call fcn.01029988
mov rbx, rax
mov rcx, qword [rsp + 0x30]
cmp rcx, r12
je 0x10298d7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rdi + 0x10], rbx
mov rax, rbx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.01029cb0
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x1029cb0
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x01045480]
jne 0x1029ccb
rol rcx, 0x10
test cx, 0xffff
jne 0x1029cc7
ret 0
ror rcx, 0x10
jmp 0x102ebe8
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x01047240]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x01047338]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x102ec6d
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x01047240]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x102ec8f
mov rax, qword [rsp + 0x88]
mov qword [0x01047338], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x010472d8], rax
mov rax, qword [0x01047338]
mov qword [0x010471b0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x010472c0], rax
mov dword [0x010471a0], 0xc0000409
mov dword [0x010471a4], 1
mov rax, qword [0x01045480]
mov qword [rsp + 0x68], rax
mov rax, qword [0x01045488]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x01004c10]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x102d804
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov dword [rax + 0x18], r8d
push r12
sub rsp, 0x30
mov edi, r8d
mov ebx, edx
mov r12d, ecx
mov ecx, 8
call fcn.0103467c
nop
cmp dword [0x01046c5c], 1
je 0x102d8b7
mov dword [0x01046c58], 1
mov byte [0x01046c14], dil
test ebx, ebx
jne 0x102d8a3
mov rcx, qword [0x01049230]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov rcx, qword [0x01049228]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov qword [rsp + 0x20], rax
test rsi, rsi
je 0x102d890
sub rbx, 8
mov qword [rsp + 0x20], rbx
cmp rbx, rsi
jb 0x102d890
mov rcx, qword [rbx]
test rcx, rcx
je 0x102d88e
call rcx
jmp 0x102d876
lea rdx, [0x010045c8]
lea rcx, [0x010045b0]
call fcn.0102d654
lea rdx, [0x010045d8]
lea rcx, [0x010045d0]
call fcn.0102d654
nop
test edi, edi
je 0x102d8c5
mov ecx, 8
call fcn.0103456c
test edi, edi
jne 0x102d8ed
mov dword [0x01046c5c], 1
lea ecx, [rdi + 8]
call fcn.0103456c
mov ecx, r12d
call fcn.0102d5f8
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
xor r8d, r8d
xor edx, edx
jmp 0x102d804

Function at 0x102d90c
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov dword [rax + 0x18], r8d
push r12
sub rsp, 0x30
mov edi, r8d
mov ebx, edx
mov r12d, ecx
mov ecx, 8
call fcn.0103467c
nop
cmp dword [0x01046c5c], 1
je 0x102d8b7
mov dword [0x01046c58], 1
mov byte [0x01046c14], dil
test ebx, ebx
jne 0x102d8a3
mov rcx, qword [0x01049230]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov rcx, qword [0x01049228]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov qword [rsp + 0x20], rax
test rsi, rsi
je 0x102d890
sub rbx, 8
mov qword [rsp + 0x20], rbx
cmp rbx, rsi
jb 0x102d890
mov rcx, qword [rbx]
test rcx, rcx
je 0x102d88e
call rcx
jmp 0x102d876
lea rdx, [0x010045c8]
lea rcx, [0x010045b0]
call fcn.0102d654
lea rdx, [0x010045d8]
lea rcx, [0x010045d0]
call fcn.0102d654
nop
test edi, edi
je 0x102d8c5
mov ecx, 8
call fcn.0103456c
test edi, edi
jne 0x102d8ed
mov dword [0x01046c5c], 1
lea ecx, [rdi + 8]
call fcn.0103456c
mov ecx, r12d
call fcn.0102d5f8
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
xor r8d, r8d
xor edx, edx
jmp 0x102d804

Function at 0x102d91c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x102d804
Function at 0x102d9bc
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r13
sub rsp, 0x30
lea r13, [0x01045220]
mov ebx, ecx
xor edi, edi
mov rax, r13
cmp ecx, dword [rax]
je 0x102d9ee
inc edi
add rax, 0x10
cmp edi, 0x17
jb 0x102d9df
cmp edi, 0x17
jae 0x102db9c
mov ebp, 3
mov ecx, ebp
call fcn.01034c9c
cmp eax, 1
je 0x102db54
mov ecx, ebp
call fcn.01034c9c
test eax, eax
jne 0x102da24
cmp dword [0x01045100], 1
je 0x102db54
cmp ebx, 0xfc
je 0x102db9c
lea rbx, [0x01046c60]
mov ebp, 0x314
lea r8, [fcn.01004bf0]
mov rcx, rbx
mov rdx, rbp
call fcn.01032148
test eax, eax
je 0x102da67
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.0102f1d8
lea rdx, [0x01046c79]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x01046d7d], 0
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x102dab8
lea r8, [0x01004bd8]
lea rcx, [0x01046c79]
mov edx, 0x2fb
call fcn.01032148
test eax, eax
je 0x102dab8
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.0102f1d8
lea r8, [0x01046c79]
mov rdx, rbp
mov rcx, rbx
call fcn.01034c0c
test eax, eax
je 0x102dae3
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.0102f1d8
lea r8, [0x01004bd0]
mov rdx, rbp
mov rcx, rbx
call fcn.01034c0c
test eax, eax
je 0x102db0e
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.0102f1d8
movsxd r8, edi
mov rdx, rbp
mov rcx, rbx
add r8, r8
mov r8, qword [r13 + r8*8 + 8]
call fcn.01034c0c
test eax, eax
je 0x102db3d
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.0102f1d8
lea rdx, [0x01004ba8]
mov r8d, 0x12010
mov rcx, rbx
call fcn.010349d4
jmp 0x102db9c
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r11, rax
test rax, rax
je 0x102db9c
or rcx, 0xffffffffffffffff
cmp rax, rcx
je 0x102db9c
movsxd rdx, edi
xor eax, eax
lea r9, [rsp + 0x48]
and qword [rsp + 0x20], rax
add rdx, rdx
mov rdx, qword [r13 + rdx*8 + 8]
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r13
ret

Function at 0x102ea84
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x102ead1
cmp rcx, 0xffffffffffffffff
je 0x102ead1
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x102eac9
cmp dword [rcx + 0x3c], edx
jl 0x102eac9
cmp dword [rcx + 0x3c], 0x10000000
jae 0x102eac9
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x102ead1
mov rax, rdx
add rsp, 0x18
ret
Function at 0x102f1d8
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x530
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x102f243
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
jmp 0x102f263
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x538]
mov qword [rsp + 0xf8], rax
lea rcx, [0x01004c20]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add rsp, 0x530
pop rbx
ret
Function at 0x10349d4
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x50
mov ebx, r8d
mov r12, rdx
mov r13, rcx
call fcn.0102e67c
xor ebp, ebp
and dword [rsp + 0x88], ebp
and dword [rsp + 0x30], ebp
mov rdi, rax
cmp qword [0x010479e0], rbp
jne 0x1034b0c
lea rcx, [0x01004e18]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
test rax, rax
jne 0x1034a38
xor eax, eax
jmp 0x1034bec
lea rdx, [0x01004e08]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1034a31
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x01004df8]
mov rcx, rsi
mov qword [0x010479e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x01004de0]
mov rcx, rsi
mov qword [0x010479e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rcx, [rsp + 0x88]
mov qword [0x010479f0], rax
call fcn.0102d690
test eax, eax
je 0x1034abf
and qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.0102f1d8
cmp dword [rsp + 0x88], 2
jne 0x1034b0c
lea rdx, [0x01004dc0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x01047a00], rax
test rax, rax
je 0x1034b0c
lea rdx, [0x01004da8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x010479f8], rax
mov rcx, qword [0x010479f8]
cmp rcx, rdi
je 0x1034b9e
cmp qword [0x01047a00], rdi
je 0x1034b9e
call sub.KERNEL32.dll_DecodePointer
call rax
mov rsi, rax
test rax, rax
je 0x1034b69
mov rcx, qword [0x01047a00]
call sub.KERNEL32.dll_DecodePointer
lea rcx, [rsp + 0x34]
mov r9d, 0xc
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
lea r8, [rsp + 0x38]
mov rcx, rsi
call rax
test eax, eax
je 0x1034b69
test byte [rsp + 0x40], 1
jne 0x1034b9e
lea rcx, [rsp + 0x30]
call fcn.0102d6dc
test eax, eax
je 0x1034b8b
and qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.0102f1d8
cmp dword [rsp + 0x30], 4
jb 0x1034b98
bts ebx, 0x15
jmp 0x1034bd2
bts ebx, 0x12
jmp 0x1034bd2
mov rcx, qword [0x010479e8]
cmp rcx, rdi
je 0x1034bd2
call sub.KERNEL32.dll_DecodePointer
call rax
mov rbp, rax
test rax, rax
je 0x1034bd2
mov rcx, qword [0x010479f0]
cmp rcx, rdi
je 0x1034bd2
call sub.KERNEL32.dll_DecodePointer
mov rcx, rbp
call rax
mov rbp, rax
mov rcx, qword [0x010479e0]
call sub.KERNEL32.dll_DecodePointer
mov r9d, ebx
mov r8, r12
mov rdx, r13
mov rcx, rbp
call rax
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x1035ed4
Capabilities:
Get system information on windows

Disassembly:
push rbp
push r12
push r13
sub rsp, 0x90
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x90], rbx
mov qword [rbp + 0x98], rsi
mov qword [rbp + 0xa0], rdi
mov rax, qword [0x01045480]
xor rax, rbp
mov qword [rbp + 0x68], rax
mov eax, dword [rsp]
sub rsp, 0x10
lea r12, [rsp + 0x20]
mov eax, dword [r12]
lea rdx, [rbp + 8]
mov r8d, 0x30
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1035fda
mov r13, qword [rbp + 0x10]
lea rcx, [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [rbp + 0x3c]
lea rcx, [rbp]
xor ebx, ebx
and dword [rbp], ebx
call qword [sym.imp.KERNEL32.dll_SetThreadStackGuarantee]
cmp eax, 1
jne 0x1035f62
mov eax, dword [rbp]
test eax, eax
cmovne ebx, eax
lea edx, [rdi - 1]
lea ecx, [rdx + rbx]
cmp ecx, ebx
jb 0x1035fda
mov eax, edx
not eax
and ecx, eax
je 0x1035f7d
lea eax, [rcx + rdi]
cmp eax, ecx
jb 0x1035fda
mov ecx, eax
lea eax, [rdi + rdi*2]
mov ebx, edx
cmp ecx, eax
not rbx
cmovb ecx, eax
and rbx, r12
lea rax, [r13 + rdi]
mov esi, ecx
sub rbx, rsi
cmp rbx, rax
jb 0x1035fda
mov r9d, 4
mov r8d, 0x1000
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x1035fda
lea r9, [rbp + 4]
mov r8d, 0x104
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1035fda
mov eax, 1
jmp 0x1035fdc
xor eax, eax
mov rcx, qword [rbp + 0x68]
xor rcx, rbp
call fcn.01029cb0
mov rbx, qword [rbp + 0x90]
mov rsi, qword [rbp + 0x98]
mov rdi, qword [rbp + 0xa0]
lea rsp, [rbp + 0x70]
pop r13
pop r12
pop rbp
ret
Function at 0x1400039b0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
push r15
sub rsp, 0x48
xor r15d, r15d
lea rcx, str.C:Windows_system32_rdpjnu.ini
mov rdi, r8
mov qword [rsp + 0x30], r15
mov r14, rdx
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov dword [rsp + 0x20], 3
lea r8d, [r15 + 1]
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140003a0c
xor al, al
add rsp, 0x48
pop r15
pop r14
pop rdi
pop rsi
ret
lea rdx, [rsp + 0x88]
mov qword [rsp + 0x40], rbp
mov rcx, rsi
mov qword [rsp + 0x88], r15
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ebp, dword [rsp + 0x88]
mov ecx, 0x40
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [r14], rax
test rax, rax
jne 0x140003a61
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x40]
xor al, al
add rsp, 0x48
pop r15
pop r14
pop rdi
pop rsi
ret
mov qword [rsp + 0x78], rbx
mov ebx, ebp
mov dword [rdi], r15d
test ebp, ebp
jle 0x140003a9e
nop
mov rdx, qword [r14]
lea r9, [rsp + 0x70]
mov r8d, ebx
mov dword [rsp + 0x70], r15d
mov rcx, rsi
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x140003a9e
add dword [rdi], eax
sub ebx, eax
test ebx, ebx
jg 0x140003a70
mov rcx, rsi
mov rbx, qword [rsp + 0x78]
cmp dword [rdi], ebp
je 0x140003acb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbp, qword [rsp + 0x40]
xor al, al
add rsp, 0x48
pop r15
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x40]
mov al, 1
add rsp, 0x48
pop r15
pop r14
pop rdi
pop rsi
ret

Function at 0x140003d80
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov edi, r8d
mov dword [rsp + 0x28], 0x80
mov rsi, rdx
mov dword [rsp + 0x68], 0
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
test rax, rax
je 0x140003dfa
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], 0
mov r8d, edi
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
test eax, eax
jne 0x140003e0c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x50]
mov al, 1
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140006270
Capabilities:
Create directory
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x390
mov rax, qword [0x140030008]
xor rax, rsp
mov qword [rsp + 0x380], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x104
call fcn.140011b90
lea rax, str.Diagnostics.txt
mov r9, rdi
lea r8, [0x14002b2e0]
mov qword [rsp + 0x20], rax
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.140004200
xor ebx, ebx
lea rcx, str.C:Windows_system32_rdpjnu.ini
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], ebx
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x140006411
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x48], rbx
lea r8, [rsp + 0x48]
mov dword [rsp + 0x40], ebx
mov edx, 0x153
call fcn.140003af0
test al, al
je 0x140006411
mov rbx, qword [rsp + 0x48]
lea rcx, [rsp + 0x50]
mov r8d, dword [rsp + 0x40]
mov rdx, rbx
call fcn.140003d80
test al, al
je 0x140006411
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.1400040a0
test al, al
je 0x140006411
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
xor edx, edx
lea rcx, [rsp + 0x160]
mov r8d, 0x104
call fcn.140011b90
xor edx, edx
lea rcx, [rsp + 0x270]
mov r8d, 0x104
call fcn.140011b90
mov r9, rdi
lea r8, str._sx86.dll
mov edx, 0x104
lea rcx, [rsp + 0x160]
call fcn.140004200
mov r9, rdi
lea r8, str._sx64.dll
mov edx, 0x104
lea rcx, [rsp + 0x270]
call fcn.140004200
lea r8, [rsp + 0x160]
mov edx, 0x1a7
call fcn.140006440
test al, al
je 0x140006411
lea r8, [rsp + 0x270]
mov edx, 0x1ac
call fcn.140006440
test al, al
setne al
jmp 0x140006413
xor al, al
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.14000e940
mov rbx, qword [rsp + 0x3a8]
add rsp, 0x390
pop rdi
ret
Function at 0x1805d2058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1805d21df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1805d2089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1805d206f
add dl, dl
jne 0x1805d2096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1805d20f6
xor eax, eax
add dl, dl
jne 0x1805d20a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1805d21ad
add dl, dl
jne 0x1805d20b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805d20c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805d20d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805d20dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1805d20ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1805d207e
mov eax, 1
add dl, dl
jne 0x1805d2106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805d2113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1805d20fb
sub eax, ebx
mov ebx, 1
jne 0x1805d214c
mov ecx, 1
add dl, dl
jne 0x1805d212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1805d213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1805d2123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1805d207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1805d2168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1805d2175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1805d215d
cmp eax, 0x7d00
jae 0x1805d219b
cmp eax, 0x500
jb 0x1805d2196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1805d207e
cmp eax, 0x7f
ja 0x1805d219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1805d207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1805d21d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1805d207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400015fa
Capabilities:
Parse pe header

Disassembly:
jmp 0x140075c68
xor r8d, r8d
xor edx, edx
jmp 0x140075958

Function at 0x140001be5
Capabilities:
Print debug messages

Disassembly:
jmp 0x1400c7924
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rbp, rdx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
setne sil
test eax, eax
je 0x1400c7970
test rbx, rbx
je 0x1400c795f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.140001df7
cmp eax, 1
je 0x1400c7970
mov eax, 4
jmp 0x1400c79b3
call fcn.140005894
cmp eax, 2
jne 0x1400c79ac
call fcn.140001e7e
test al, al
je 0x1400c79ac
call fcn.140003ef4
test al, al
jne 0x1400c79a2
bts edi, 0x15
xor ecx, ecx
mov rdx, rbx
mov r8, rbp
mov r9d, edi
call fcn.1400058e4
jmp 0x1400c79b3
call fcn.140005687
mov rcx, rax
jmp 0x1400c7992
movzx eax, sil
add eax, 3
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret