joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800a8720
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
mov rdi, rcx
mov r14d, r15d
mov ebx, r15d
xor eax, eax
mov esi, 1
lock cmpxchg dword [0x180100338], esi
je 0x1800a8771
cmp rbx, 0x20
jae 0x1800a875a
xor ecx, ecx
jmp 0x1800a875c
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180100338], esi
jne 0x1800a8750
cmp qword [0x180100340], r14
mov qword [rsp + 0x58], r13
je 0x1800a890d
mov ecx, dword [0x18010682c]
mov ebx, r15d
test ecx, ecx
je 0x1800a87af
mov rdx, qword [0x180106820]
mov rax, rdx
nop word [rax + rax]
cmp rdi, qword [rax]
je 0x1800a87ba
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800a87a0
mov r14d, 4
jmp 0x1800a8913
cmp ebx, 0xffffffff
je 0x1800a87af
mov eax, ebx
imul r13, rax, 0x38
test byte [rdx + r13 + 0x20], 2
je 0x1800a886b
xor r8d, r8d
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.1800a8220
xor edx, edx
mov ecx, ebx
call fcn.1800a8110
mov r14d, eax
cmp qword [rsp + 0x20], r15
je 0x1800a885b
mov ecx, dword [rsp + 0x2c]
test ecx, ecx
je 0x1800a8847
mov rdi, qword [rsp + 0x20]
mov qword [rsp + 0x50], rbp
mov ebp, ecx
nop word [rax + rax]
mov r8d, dword [rdi]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800a8838
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rdi, 4
sub rbp, 1
jne 0x1800a8810
mov rbp, qword [rsp + 0x50]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180100340]
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r14d, r14d
jne 0x1800a8913
mov rdx, qword [0x180106820]
mov rcx, qword [rdx + r13 + 0x10]
call fcn.1800a8ba0
mov ecx, dword [0x18010682c]
lea eax, [rcx - 1]
cmp ebx, eax
jae 0x1800a88bf
imul rcx, rax, 0x38
mov rax, qword [0x180106820]
movups xmm0, xmmword [rcx + rax]
movups xmmword [rax + r13], xmm0
movups xmm1, xmmword [rcx + rax + 0x10]
movups xmmword [rax + r13 + 0x10], xmm1
movups xmm0, xmmword [rcx + rax + 0x20]
movups xmmword [rax + r13 + 0x20], xmm0
movsd xmm1, qword [rcx + rax + 0x30]
movsd qword [rax + r13 + 0x30], xmm1
mov ecx, dword [0x18010682c]
mov edx, dword [0x180106828]
dec ecx
mov eax, edx
mov dword [0x18010682c], ecx
shr eax, 1
cmp eax, 0x20
jb 0x1800a8913
cmp eax, ecx
jb 0x1800a8913
mov r8, qword [0x180106820]
mov eax, edx
mov rcx, qword [0x180100340]
xor edx, edx
shr rax, 1
imul r9, rax, 0x38
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
test rax, rax
je 0x1800a8913
shr dword [0x180106828], 1
mov qword [0x180106820], rax
jmp 0x1800a8913
mov r14d, 2
xchg dword [0x180100338], r15d
mov r13, qword [rsp + 0x58]
mov eax, r14d
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x1800a8af0
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rcx
je 0x1800a8b5f
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x1800a8b48
mov qword [rsp + 0x38], rsi
mov r8, qword [rdi]
xor edx, edx
mov r8d, dword [r8 + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800a8b3c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x1800a8b10
mov rsi, qword [rsp + 0x38]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x180100340]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1800a8c20
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x1800a8c60
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x180106810]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x1800a8c9e
cmp rsi, r14
jb 0x1800a8c96
cmp rsi, r15
jae 0x1800a8c96
cmp qword [rsi + 8], 0
jne 0x1800a8e67
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1800a8c81
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x1800a8d32
nop dword [rax]
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x1800a8d29
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800a8d29
cmp dword [rsp + 0x70], 0x10000
je 0x1800a8dab
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x1800a8d29
sub rbx, rbp
cmp rbx, r14
jae 0x1800a8cf0
test rsi, rsi
jne 0x1800a8e10
cmp rdi, r15
ja 0x1800a8e4f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x1800a8e4f
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800a8e4f
cmp dword [rsp + 0x70], 0x10000
je 0x1800a8de1
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x1800a8d62
jmp 0x1800a8e4f
test rbx, rbx
je 0x1800a8d29
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800a8e10
cmp rbx, r14
jae 0x1800a8cd0
jmp 0x1800a8d32
test rdi, rdi
je 0x1800a8e4f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800a8e10
cmp rdi, r15
jbe 0x1800a8d40
jmp 0x1800a8e4f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x1800a8e20
mov rax, qword [0x180106810]
mov qword [rsi], rax
mov qword [0x180106810], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x1800a9a50
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1800a9a8a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1800a9a8f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1800a9ad8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1800c35e0]
cmp byte [rcx + rax], 0
je 0x1800a9ad8
dec r8
sub rdx, 1
jne 0x1800a9abe
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400087bc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140008808
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140008800
cmp dword [rcx + 0x3c], edx
jl 0x140008800
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140008800
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 0x140008808
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140004000
Capabilities:
Encode data using xor

Disassembly:
movabs rcx, 0x22f24c4c0ba6e4f
movabs rdx, 0x1000
movabs r8, 0x3ed7
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x10]
add rdx, rax
add r8, rax
mov r9, rdx
xor qword [rdx], rcx
add rdx, 8
cmp rdx, r8
jb 0x140004034
jmp r9
Function at 0x140002410
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2d0]
sub rsp, 0x3d0
mov rax, qword [0x140041018]
xor rax, rsp
mov qword [rbp + 0x2c0], rax
mov rbx, rdx
mov qword [rsp + 0x20], rdx
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x54]
call fcn.14000c3d0
xor r13d, r13d
mov r12d, r13d
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r15, rax
mov dword [rsp + 0x50], 0x238
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x1400024d1
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x1400024ca
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1400024c5
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000269b
mov rcx, r8
call fcn.140009e10
xor eax, eax
jmp 0x140002656
mov dword [rsp + 0x50], 0x238
lea rdx, [rsp + 0x50]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x140002613
lea r8, [rsp + 0x7c]
lea rdx, [0x14003b820]
lea rcx, [rbp + 0x190]
call fcn.1400065a0
lea rdx, str.terminal64.exe
lea rcx, [rbp + 0x190]
call fcn.14002b530
test eax, eax
jne 0x1400024d1
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x40], 0xf
mov byte [rsp + 0x28], al
xor r8d, r8d
lea rdx, [0x14003b78b]
lea rcx, [rsp + 0x28]
call fcn.1400063c0
nop
lea rdx, [rsp + 0x28]
mov ecx, dword [rsp + 0x58]
call fcn.140002170
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x28]
test eax, eax
je 0x140002598
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140002573
mov rdx, qword [rbx]
lea rcx, [rsp + 0x28]
cmp rsi, 0x10
setae r14b
cmovae rcx, rdi
mov r8, qword [rsp + 0x38]
cmp r8, qword [rbx + 0x10]
jne 0x140002598
call fcn.14000c810
test eax, eax
je 0x1400025d8
cmp rsi, 0x10
jb 0x1400024d1
lea rdx, [rsi + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x1400025cb
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002695
mov rcx, rdi
call fcn.140009e10
jmp 0x1400024d1
mov r12d, dword [rsp + 0x58]
test r14b, r14b
je 0x140002613
lea rdx, [rsi + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x14000260b
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002695
mov rcx, rdi
call fcn.140009e10
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140002653
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14000264e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000269b
mov rcx, r8
call fcn.140009e10
mov eax, r12d
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rcx, qword [rbp + 0x2c0]
xor rcx, rsp
call fcn.140009df0
lea r11, [rsp + 0x3d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140012b7c
nop
call fcn.140012b7c
int3
Function at 0x1400043e0
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x140041018]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor ebp, ebp
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [0x14002d4d0]
xor edx, edx
lea r8d, [rbp + 1]
lea rcx, [0x14002d4f0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x140004486
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x14000447f
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
mov rcx, qword [rdi]
jb 0x14000447a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400045cf
mov rcx, r8
call fcn.140009e10
xor al, al
jmp 0x14000459d
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
lea r8, [rsp + 0x38]
lea rdx, [0x14002d4e0]
call qword [rax]
test eax, eax
js 0x140004440
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400044ad
mov rdx, qword [rdi]
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
xor r8d, r8d
call qword [rax + 0x28]
test eax, eax
js 0x140004440
xor edx, edx
mov r8d, 0x3e8
lea rcx, [rsp + 0x50]
call fcn.14000c3d0
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
mov r8d, 0x1f4
lea rdx, [rsp + 0x50]
call qword [rax + 0x40]
test eax, eax
js 0x140004440
lea rax, [rsp + 0x50]
mov rdx, 0xffffffffffffffff
nop dword [rax + rax]
inc rdx
cmp word [rax + rdx*2], bp
jne 0x140004500
mov rax, qword [rbx + 0x18]
cmp rdx, rax
ja 0x14000453c
mov rsi, rbx
cmp rax, 8
jb 0x14000451e
mov rsi, qword [rbx]
mov qword [rbx + 0x10], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.14000bd20
mov word [rbx + rsi], bp
jmp 0x140004549
lea r9, [rsp + 0x50]
mov rcx, rbx
call fcn.140006a30
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x14000459b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140004596
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400045cf
mov rcx, r8
call fcn.140009e10
mov al, 1
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], 7
mov word [rdi], bp
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140009df0
mov rbx, qword [rsp + 0x480]
add rsp, 0x450
pop rdi
pop rsi
pop rbp
ret
call fcn.140012b7c
int3
Function at 0x1400050d0
Capabilities:
Get token membership

Disassembly:
sub rsp, 0x88
mov rax, qword [0x140041018]
xor rax, rsp
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x60]
mov dword [rsp + 0x68], 0
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x68]
xor eax, eax
mov word [rsp + 0x6c], 0x500
mov dword [rsp + 0x48], eax
mov r9d, 0x220
mov dword [rsp + 0x40], eax
mov dl, 2
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
lea r8d, [rax + 0x20]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x70], eax
test eax, eax
je 0x140005159
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x70]
cmp eax, 1
sete al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140009df0
add rsp, 0x88
ret
Function at 0x140008db8
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x140008de6
xor eax, eax
jmp 0x140008ecc
cmp qword [rcx + 0x68], 0
je 0x140008df7
call fcn.140008ee8
jmp 0x140008ecc
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140008e0e
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140008e10
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140008e42
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14000bd20
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 0x140008ec6
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140008e79
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 ebx, 0xfff
jmp 0x140008ea2
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140013940
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140008ec6
cmp rsi, rbx
ja 0x140008e80
test rsi, rsi
je 0x140008ec6
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140013940
sub rsi, rax
sub rbp, rsi
mov rax, rbp
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 0x140008fac
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140008fdb
call fcn.14000906c
jmp 0x140009052
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x140008ff2
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140008ff4
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14000904c
test ecx, ecx
jle 0x14000902d
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call fcn.14000bd20
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14000904c
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000904c
mov r8, rbx
mov edx, 1
mov rcx, r15
call fcn.140013ea0
sub rbx, rax
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x14000a9d8
Capabilities:
Parse pe header

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

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140018930

Function at 0x14001cb84
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14001cba4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140012d3c
or eax, 0xffffffff
jmp 0x14001cba6
xor eax, eax
add rsp, 0x28
ret
Function at 0x14058a0a8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140589ea4
Function at 0x14058ed6c
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 0x14058ed9c
xor eax, eax
jmp 0x14058ee5f
mov rbp, rbx
cmp word [rax], si
je 0x14058edc1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14058eda8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14058eda4
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.14058ec8c
movsxd r14, eax
test eax, eax
jne 0x14058edff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14058ed95
mov rcx, r14
call fcn.14058be68
mov rdi, rax
test rax, rax
jne 0x14058ee18
xor ecx, ecx
call fcn.14058b084
jmp 0x14058edf4
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.14058ec8c
test eax, eax
jne 0x14058ee49
mov rcx, rdi
call fcn.14058b084
jmp 0x14058ee53
xor ecx, ecx
call fcn.14058b084
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 0x14059304c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140593062
mov al, 1
jmp 0x1405930c2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140593073
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1405930c0
mov ecx, dword [rcx + 0x18]
nop
call fcn.14058f5d4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1405930c0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1405930c0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1405930c0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1405930c2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140594100
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.14058dd5c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14059418a
cmp byte [rbp - 0x21], r15b
je 0x140594185
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1405941c0
call fcn.14058b440
test eax, eax
jne 0x1405941ac
cmp byte [rbp - 0x21], r15b
je 0x1405941a4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1405941c0
cmp byte [rbp - 0x21], r15b
je 0x1405941bd
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.14058d33c
test eax, eax
jne 0x140594260
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14058dd5c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1405941ff
cmp byte [rbp - 0x21], r15b
je 0x140594234
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140594234
call fcn.14058b440
test eax, eax
jne 0x140594220
cmp byte [rbp - 0x21], r15b
je 0x140594219
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140594234
cmp byte [rbp - 0x21], r15b
je 0x140594231
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.14058d33c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140594260
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140594263
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140594271
mov rcx, rdi
call fcn.14058b084
cmp byte [rbp + 0x3f], r15b
je 0x140594280
mov rcx, qword [rbp + 0x27]
call fcn.14058b084
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 0x14001ef60
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001ef88
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001ef88
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x14013bf78
Capabilities:
Encode data using xor

Disassembly:
mov rdi, r8
sub r8, 2
call fcn.14013a084
mov r8d, 0x788b938c
lea rsi, [r8*8 + 0x5239ab24]
or sil, 0x8d
mov rsi, qword [rbp + r8 - 0x788b938c]
mov r8, qword [rbp + r8 - 0x788b9384]
adc rbp, 0xc
xor r9d, r9d
push 0xffffffff8fa78898
push 0x6682ca99
test r8, r8
push 0xffffffffcf066687
lea rsp, [rsp + 0x18]
je 0x14013c032
mov eax, 0xe9914c29
sal ax, 0xef
ror al, 0xc1
push rdi
lea rax, [0x14015a9a8]
mov edi, 0xdda7e925
sal rdi, 7
shr rdi, 0xef
xor dil, byte [rdi + rsi]
push 0xffffffff9d99088d
xor edi, r9d
and edi, 0xff
mov edi, dword [rax + rdi*4]
xor qword [rsp], 0xffffffffb7b2f5a3
dec word [rsp]
shr r9d, 8
rol byte [rsp + 5], 0x23
push 0x4bbb313a
xor r9d, edi
inc rsi
xor r9d, 0x8f19c339
dec r8
lea rsp, [rsp + 0x10]
jne 0x14013bfd5
mov edi, 0x5408262d
pop rdi
call fcn.14016deb4
call fcn.14016db59
jmp 0x14013bf69