joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448610
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x58], rdi
mov edi, dword [rcx + 0x44]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov rbp, rcx
nop
nop
mov edx, dword [rbp + 0x94]
mov ebx, dword [rbp + 0x58]
mov eax, dword [rbp + 0x44]
sub ebx, dword [rbp + 0x9c]
lea ecx, [rdi + rax - 0x106]
sub ebx, edx
cmp edx, ecx
jb 0x4486dc
mov rcx, qword [rbp + 0x50]
mov r8, rdi
lea rdx, [rcx + rdi]
call fcn.004266e0
mov r8d, dword [rbp + 0x74]
mov rax, qword [rbp + 0x68]
sub dword [rbp + 0x98], edi
sub dword [rbp + 0x94], edi
sub dword [rbp + 0x84], edi
lea rdx, [rax + r8*2]
nop
movzx eax, word [rdx - 2]
sub rdx, 2
cmp eax, edi
jb 0x4486a0
sub eax, edi
jmp 0x4486a2
xor eax, eax
add r8d, 0xffffffff
mov word [rdx], ax
jne 0x448690
mov rax, qword [rbp + 0x60]
mov edx, edi
lea rcx, [rax + rdi*2]
nop
nop
nop
movzx eax, word [rcx - 2]
sub rcx, 2
cmp eax, edi
jb 0x4486d0
sub eax, edi
jmp 0x4486d2
xor eax, eax
add edx, 0xffffffff
mov word [rcx], ax
jne 0x4486c0
add ebx, edi
mov rsi, qword [rbp]
cmp dword [rsi + 8], 0
je 0x4487ba
mov eax, dword [rbp + 0x94]
mov r13d, dword [rbp + 0x9c]
add r13, rax
mov eax, dword [rsi + 8]
add r13, qword [rbp + 0x50]
cmp eax, ebx
mov r12d, eax
cmova r12d, ebx
test r12d, r12d
je 0x448762
sub eax, r12d
mov dword [rsi + 8], eax
mov rax, qword [rsi + 0x28]
mov ecx, dword [rax + 0x2c]
cmp ecx, 1
jne 0x448734
mov rdx, qword [rsi]
mov ecx, dword [rsi + 0x4c]
mov r8d, r12d
call fcn.0044a260
mov dword [rsi + 0x4c], eax
jmp 0x44874a
cmp ecx, 2
jne 0x44874a
mov rdx, qword [rsi]
mov ecx, dword [rsi + 0x4c]
mov r8d, r12d
call fcn.0043f280
mov dword [rsi + 0x4c], eax
mov rdx, qword [rsi]
mov r8d, r12d
mov rcx, r13
mov ebx, r12d
call fcn.004266e0
add qword [rsi], rbx
add dword [rsi + 0xc], r12d
add dword [rbp + 0x9c], r12d
mov r9d, dword [rbp + 0x9c]
cmp r9d, 3
jb 0x4487a3
mov eax, dword [rbp + 0x94]
mov rdx, qword [rbp + 0x50]
mov ecx, dword [rbp + 0x80]
movzx r8d, byte [rax + rdx]
mov dword [rbp + 0x70], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rbp + 0x7c]
mov dword [rbp + 0x70], r8d
cmp r9d, 0x106
jae 0x4487ba
mov rax, qword [rbp]
cmp dword [rax + 8], 0
jne 0x448640
mov r13, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x38
ret
Function at 0x44c4e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x44c50b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00430010
mov eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
test al, 1
je 0x44c535
test bl, 2
je 0x44c535
call fcn.0042ffb0
mov dword [rax], 0xd
call fcn.0042ffe0
mov dword [rax], 5
mov eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x44cab0
Capabilities:
Timestomp file

Disassembly:
sub rsp, 0x58
test rdx, rdx
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rdi
mov edi, ecx
mov rbx, rdx
jne 0x44cae1
lea rcx, [rsp + 0x48]
call fcn.00428860
mov r11, qword [rsp + 0x48]
lea rbx, [rsp + 0x40]
mov qword [rsp + 0x40], r11
lea rcx, [rbx + 8]
call fcn.0044c7e0
test rax, rax
mov r11, rax
je 0x44cc23
movzx eax, word [rax + 0x14]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x30]
add ax, 0x76c
mov word [rsp + 0x30], ax
movzx eax, word [r11 + 0x10]
inc ax
mov word [rsp + 0x32], ax
movzx eax, word [r11 + 0xc]
mov word [rsp + 0x36], ax
movzx eax, word [r11 + 8]
mov word [rsp + 0x38], ax
movzx eax, word [r11 + 4]
mov word [rsp + 0x3a], ax
movzx eax, word [r11]
mov word [rsp + 0x3e], 0
mov word [rsp + 0x3c], ax
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x44cc23
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x44cc23
mov rcx, rbx
call fcn.0044c7e0
test rax, rax
mov r11, rax
je 0x44cc23
movzx eax, word [rax + 0x14]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x30]
add ax, 0x76c
mov word [rsp + 0x30], ax
movzx eax, word [r11 + 0x10]
inc ax
mov word [rsp + 0x32], ax
movzx eax, word [r11 + 0xc]
mov word [rsp + 0x36], ax
movzx eax, word [r11 + 8]
mov word [rsp + 0x38], ax
movzx eax, word [r11 + 4]
mov word [rsp + 0x3a], ax
movzx eax, word [r11]
mov word [rsp + 0x3e], 0
mov word [rsp + 0x3c], ax
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x44cc23
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x44cc23
mov ecx, edi
call fcn.0042b1f0
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
je 0x44cc23
xor eax, eax
mov rdi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x58
ret
call fcn.0042ffb0
mov rdi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov dword [rax], 0x16
mov eax, 0xffffffff
add rsp, 0x58
ret
Function at 0x44ccb0
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push rbp
sub rsp, 0x170
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x168], rbx
mov qword [rbp + 0x170], rsi
mov qword [rbp + 0x178], rdi
mov qword [rbp + 0x148], r12
mov qword [rbp + 0x140], r13
mov rax, qword [0x00467048]
mov qword [rbp + 0x130], rax
lea rdi, [rbp + 0x20]
xor r12d, r12d
mov esi, r12d
mov r13d, 0xffffffff
mov dword [rbp + 8], r13d
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x44cdd6
lea rdx, [rbp + 0x20]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ebx, eax
mov dword [rbp + 0xc], eax
cmp eax, 0x104
jle 0x44cd93
inc eax
cdqe
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.0044e660
sub rsp, rax
lea rdi, [rsp + 0x20]
mov qword [rbp + 0x10], rdi
jmp 0x44cd81
test ebx, ebx
je 0x44cd93
lea ecx, [rbx + 1]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ebx, eax
test ebx, ebx
je 0x44cdd6
movzx eax, byte [rdi]
cmp al, 0x5c
je 0x44cda2
cmp al, 0x2f
jne 0x44cdac
cmp al, byte [rdi + 1]
jne 0x44cdac
mov r13d, r12d
jmp 0x44cdd6
mov byte [rbp], 0x3d
movzx ecx, byte [rdi]
call fcn.0044dbc0
mov byte [rbp + 1], al
mov byte [rbp + 2], 0x3a
mov byte [rbp + 3], 0
mov rdx, rdi
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
cmovne r13d, r12d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00430010
test esi, esi
je 0x44cdef
mov rcx, rdi
call fcn.00426530
mov eax, r13d
mov rcx, qword [rbp + 0x130]
call fcn.0044e630
mov rbx, qword [rbp + 0x168]
mov rsi, qword [rbp + 0x170]
mov rdi, qword [rbp + 0x178]
mov r12, qword [rbp + 0x148]
mov r13, qword [rbp + 0x140]
lea rsp, [rbp + 0x150]
pop rbp
ret
Function at 0x44dc80
Capabilities:
Clear file content

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rdi
mov ebp, edx
xor edi, edi
xor edx, edx
lea r8d, [rdi + 1]
mov qword [rsp + 0x28], r13
mov esi, ecx
call fcn.00435dc0
cmp eax, 0xffffffff
mov r13d, eax
je 0x44ddf3
lea r8d, [rdi + 2]
xor edx, edx
mov ecx, esi
call fcn.00435dc0
cmp eax, 0xffffffff
je 0x44ddf3
mov qword [rsp + 0x40], rbx
mov ebx, ebp
mov qword [rsp + 0x20], r14
sub ebx, eax
test ebx, ebx
jle 0x44dd90
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r14d, 0x1000
lea edx, [rdi + 8]
mov rcx, rax
mov r8, r14
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbp, rax
jne 0x44dd17
call fcn.0042ffb0
lea edi, [rbp - 1]
mov dword [rax], 0xc
jmp 0x44ddd8
mov edx, 0x8000
mov ecx, esi
mov qword [rsp + 0x30], r12
call fcn.0044e190
mov r12d, eax
nop
nop
mov r8d, ebx
cmp ebx, r14d
mov rdx, rbp
cmovge r8d, r14d
mov ecx, esi
call fcn.00435fa0
cmp eax, 0xffffffff
je 0x44dd51
sub ebx, eax
test ebx, ebx
jg 0x44dd30
jmp 0x44dd6b
call fcn.0042ffe0
cmp dword [rax], 5
jne 0x44dd66
call fcn.0042ffb0
mov dword [rax], 0xd
mov edi, 0xffffffff
mov edx, r12d
mov ecx, esi
call fcn.0044e190
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r12, qword [rsp + 0x30]
jmp 0x44ddd8
test ebx, ebx
jns 0x44ddd8
xor r8d, r8d
mov edx, ebp
mov ecx, esi
call fcn.00435dc0
mov ecx, esi
call fcn.0042b1f0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb edi, edi
neg edi
dec edi
cmp edi, 0xffffffff
jne 0x44ddd8
call fcn.0042ffb0
mov dword [rax], 0xd
call fcn.0042ffe0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
xor r8d, r8d
mov edx, r13d
mov ecx, esi
call fcn.00435dc0
mov r14, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x40]
mov eax, edi
jmp 0x44ddf8
mov eax, 0xffffffff
mov r13, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x2fc4ca4d0
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4caed2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ef108]
test eax, eax
je 0x2fc4caf6a
lea rax, [0x2fc4ef0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ef110]
mov qword [rbp - 8], rax
jmp 0x2fc4caf4e
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 0x2fc4caf42
cmp qword [rbp - 0x10], 0
je 0x2fc4caf42
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 0x2fc4caf08
lea rax, [0x2fc4ef0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4caf6b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cb070
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 0x2fc4cb098
mov eax, 0
jmp 0x2fc4cb0e6
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 0x2fc4cb0c1
mov eax, 0
jmp 0x2fc4cb0e6
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 0x2fc4cb0e1
mov eax, 0
jmp 0x2fc4cb0e6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cb0ec
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 0x2fc4cb16a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cb161
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 0x2fc4cb161
mov rax, qword [rbp - 8]
jmp 0x2fc4cb17f
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 0x2fc4cb134
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1429f0058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1429f01df
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 0x1429f0089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1429f006f
add dl, dl
jne 0x1429f0096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1429f00f6
xor eax, eax
add dl, dl
jne 0x1429f00a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1429f01ad
add dl, dl
jne 0x1429f00b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1429f00c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1429f00d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1429f00dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1429f00ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1429f007e
mov eax, 1
add dl, dl
jne 0x1429f0106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1429f0113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1429f00fb
sub eax, ebx
mov ebx, 1
jne 0x1429f014c
mov ecx, 1
add dl, dl
jne 0x1429f012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1429f013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1429f0123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1429f007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1429f0168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1429f0175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1429f015d
cmp eax, 0x7d00
jae 0x1429f019b
cmp eax, 0x500
jb 0x1429f0196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1429f007e
cmp eax, 0x7f
ja 0x1429f019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1429f007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1429f01d2
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 0x1429f007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001f60
Capabilities:
Resolve function by parsing pe exports

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
movsxd rax, dword [rcx + 0x3c]
mov rdx, rcx
mov ecx, 0x8664
cmp word [rax + rdx + 4], cx
jne 0x140001f91
mov ecx, dword [rax + rdx + 0x88]
jmp 0x140001f95
mov ecx, dword [rax + rdx + 0x78]
mov r10d, ecx
lea r14, str.RegisterForProvider
xor r11d, r11d
mov ebp, dword [r10 + rdx + 0x20]
mov esi, dword [r10 + rdx + 0x24]
add rbp, rdx
mov r8d, dword [r10 + rdx + 0x18]
add rsi, rdx
dec r8d
lea r9d, [r8 + r11]
shr r9d, 1
mov eax, dword [rbp + r9*4]
add rax, rdx
cmp r14, rax
je 0x140002003
test rax, rax
je 0x140001ffa
mov rbx, r14
sub rbx, rax
movsx ecx, byte [rbx + rax]
movsx edi, byte [rax]
inc rax
test cl, cl
je 0x140001fec
cmp cl, dil
je 0x140001fd9
sub ecx, edi
jns 0x140001ff6
lea r8d, [r9 - 1]
jmp 0x140001ffe
test ecx, ecx
jle 0x140002003
lea r11d, [r9 + 1]
cmp r8d, r11d
jae 0x140001fba
cmp r8d, r11d
jb 0x140002024
movzx ecx, word [rsi + r9*2]
cmp ecx, dword [r10 + rdx + 0x14]
jae 0x140002024
mov eax, dword [r10 + rdx + 0x1c]
add rax, rdx
mov eax, dword [rax + rcx*4]
add rax, rdx
jmp 0x140002026
xor eax, eax
mov rbx, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
pop r14
ret
Function at 0x14000266c
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov dword [rsp + 8], ecx
push rbx
sub rsp, 0x20
mov r8d, 0x1000
mov edx, 8
mov dword [rsp + 0x30], r8d
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x140002757
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rax
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x14000271f
mov rax, qword gs:[0x30]
mov r8, rbx
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, qword gs:[0x30]
mov edx, 8
mov r8d, dword [rsp + 0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rax
mov ecx, 0xb
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0x80000005
jne 0x14000272d
cmp dword [rbx], 0
jne 0x140002731
jmp 0x14000273b
test eax, eax
js 0x140002736
mov rax, rbx
jmp 0x140002759
test rbx, rbx
je 0x140002757
mov rax, qword gs:[0x30]
mov r8, rbx
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140002760
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], r9
push rdi
sub rsp, 0x20
and dword [rax + 0x20], 0
mov esi, ecx
mov rax, qword gs:[0x30]
mov edi, 0x1000
mov r8d, edi
mov edx, 8
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x14000283a
jmp 0x1400027f6
mov rax, qword gs:[0x30]
mov r8, rbx
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea eax, [rdi + rdi]
mov edi, eax
cmp eax, 0x20000000
ja 0x14000283a
mov rax, qword gs:[0x30]
mov r8d, edi
mov edx, 8
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
lea r9, [rsp + 0x48]
mov r8d, edi
mov rdx, rax
mov ecx, esi
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x1400027ac
test eax, eax
js 0x140002819
mov rax, rbx
jmp 0x14000283c
test rbx, rbx
je 0x14000283a
mov rax, qword gs:[0x30]
mov r8, rbx
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140002a50
Capabilities:
Enumerate files on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov qword [rax + 0x10], rdx
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0x90
and qword [rbp - 9], 0
mov r14, r9
mov rsi, r8
mov rdx, rcx
test r8, r8
jne 0x140002a8b
mov eax, 0xc00000f2
jmp 0x140002beb
test rdx, rdx
je 0x140002be6
xor eax, eax
lea rdi, [rbp - 1]
lea ecx, [rax + 0x10]
rep stosb byte [rdi], al
lea rcx, [rbp - 1]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
and qword [rbp + 0x17], 0
lea rax, [rbp - 1]
xorps xmm0, xmm0
mov qword [rbp + 0x1f], rax
lea r8, [rbp + 0xf]
mov dword [rbp + 0xf], 0x30
mov edx, 1
mov dword [rbp + 0x27], 0x40
lea rcx, [rbp - 9]
movdqu xmmword [rbp + 0x2f], xmm0
call qword [sym.imp.ntdll.dll_NtOpenDirectoryObject]
test eax, eax
js 0x140002beb
and dword [rbp + 0x77], 0
jmp 0x140002b77
mov rcx, qword gs:[0x30]
mov edx, 8
mov r8d, dword [rbp + 0x6f]
mov rcx, qword [rcx + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x140002bd3
mov r8d, dword [rbp + 0x6f]
lea rax, [rbp + 0x6f]
mov rcx, qword [rbp - 9]
mov r9b, 1
mov qword [rsp + 0x30], rax
mov rdx, rbx
lea rax, [rbp + 0x77]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x20], 0
call qword [sym.imp.ntdll.dll_NtQueryDirectoryObject]
mov edi, eax
test eax, eax
js 0x140002bb7
mov rdx, r14
mov rcx, rbx
call rsi
mov rcx, qword gs:[0x30]
mov r8, rbx
xor edx, edx
mov edi, eax
mov rcx, qword [rcx + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test edi, edi
jns 0x140002bb3
mov rcx, qword [rbp - 9]
lea rax, [rbp + 0x6f]
and dword [rbp + 0x6f], 0
mov r9b, 1
mov qword [rsp + 0x30], rax
xor r8d, r8d
lea rax, [rbp + 0x77]
xor edx, edx
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x20], 0
call qword [sym.imp.ntdll.dll_NtQueryDirectoryObject]
mov edi, eax
cmp eax, 0xc0000023
je 0x140002af0
jmp 0x140002bd3
xor edi, edi
jmp 0x140002bd3
mov rax, qword gs:[0x30]
mov r8, rbx
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x140002be2
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, edi
jmp 0x140002beb
mov eax, 0xc00000f0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140002dcc
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbp, rdx
mov r8, rdx
mov rdx, rcx
mov rbx, rcx
xor ecx, ecx
call fcn.140002d84
mov sil, 1
lea rdi, [rbx + 2]
mov r12d, 4
lea r13, str.cw
mov rdx, rbx
mov r9, r12
mov rcx, rdx
mov r8, r12
movzx eax, byte [rcx]
mov al, byte [rax + r13]
mov byte [rcx], al
add rcx, r12
sub r8, 1
jne 0x140002e1b
inc rdx
sub r9, 1
jne 0x140002e15
mov al, byte [rbx + 5]
mov r14, rdi
mov cl, byte [rbx + 1]
mov r15, r12
mov byte [rbx + 1], al
mov al, byte [rbx + 9]
mov byte [rbx + 5], al
mov al, byte [rbx + 0xd]
mov byte [rbx + 9], al
mov al, byte [rbx + 0xa]
mov byte [rbx + 0xd], cl
mov cl, byte [rdi]
mov byte [rdi], al
mov al, byte [rbx + 0xe]
mov byte [rbx + 0xa], cl
mov cl, byte [rbx + 6]
mov byte [rbx + 6], al
mov al, byte [rbx + 0xf]
mov byte [rbx + 0xe], cl
mov cl, byte [rbx + 3]
mov byte [rbx + 3], al
mov al, byte [rbx + 0xb]
mov byte [rbx + 0xf], al
mov al, byte [rbx + 7]
mov byte [rbx + 0xb], al
mov byte [rbx + 7], cl
mov r11b, byte [r14 - 2]
mov r8b, byte [r14 - 1]
mov dl, r11b
mov r9b, byte [r14 + 1]
xor dl, r8b
xor r9b, byte [r14]
mov al, dl
shr al, 7
add dl, dl
movzx eax, al
mov r10b, r9b
imul ecx, eax, 0x1b
xor r10b, r11b
xor r10b, r8b
xor cl, dl
mov dl, r8b
xor dl, byte [r14]
xor cl, r11b
xor r11b, byte [r14 + 1]
xor cl, r10b
mov byte [r14 - 2], cl
mov al, dl
shr al, 7
add dl, dl
movzx eax, al
imul ecx, eax, 0x1b
mov al, r9b
shr al, 7
add r9b, r9b
movzx eax, al
xor cl, dl
xor cl, r8b
xor cl, r10b
mov byte [r14 - 1], cl
imul ecx, eax, 0x1b
mov al, r11b
shr al, 7
add r11b, r11b
movzx eax, al
xor cl, r9b
xor cl, byte [r14]
xor cl, r10b
mov byte [r14], cl
imul ecx, eax, 0x1b
xor cl, r11b
xor cl, byte [r14 + 1]
xor cl, r10b
mov byte [r14 + 1], cl
add r14, r12
sub r15, 1
jne 0x140002e82
mov r8, rbp
mov rdx, rbx
mov cl, sil
call fcn.140002d84
inc sil
cmp sil, 0xa
jb 0x140002e0f
mov rdx, rbx
mov r8, r12
mov rcx, rdx
mov r9, r12
movzx eax, byte [rcx]
mov al, byte [rax + r13]
mov byte [rcx], al
add rcx, r12
sub r9, 1
jne 0x140002f48
inc rdx
sub r8, 1
jne 0x140002f42
mov dl, byte [rbx + 6]
mov r8, rbp
mov al, byte [rbx + 5]
mov cl, byte [rbx + 1]
mov byte [rbx + 1], al
mov al, byte [rbx + 9]
mov byte [rbx + 5], al
mov al, byte [rbx + 0xd]
mov byte [rbx + 9], al
mov al, byte [rbx + 0xa]
mov byte [rbx + 0xd], cl
mov cl, byte [rdi]
mov byte [rdi], al
mov al, byte [rbx + 0xe]
mov byte [rbx + 6], al
mov al, byte [rbx + 0xf]
mov byte [rbx + 0xe], dl
mov dl, byte [rbx + 3]
mov byte [rbx + 3], al
mov al, byte [rbx + 0xb]
mov byte [rbx + 0xf], al
mov al, byte [rbx + 7]
mov byte [rbx + 7], dl
mov rdx, rbx
mov byte [rbx + 0xa], cl
mov cl, 0xa
mov byte [rbx + 0xb], al
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
jmp fcn.140002d84