joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007580
Capabilities:
Create directory

Disassembly:
push r15
mov eax, 0x3038
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000e4c0
sub rsp, rax
mov rbx, r8
mov r14, rcx
mov rcx, rdx
mov rdi, rdx
call sub.msvcrt.dll_strlen
mov rcx, rbx
mov rsi, rax
call sub.msvcrt.dll_strlen
lea rax, [rsi + rax + 1]
cmp rax, 0xfff
ja 0x140007680
lea rsi, [rsp + 0x30]
mov r9, rdi
mov edx, 0x1000
mov dword [rsp + 0x20], 0x5c
lea r8, str._s_c
mov rcx, rsi
mov ebp, 0x1000
call fcn.140007560
mov edx, 0x5c
mov rcx, rbx
lea r12, [0x140019e45]
movsxd rdi, eax
call sub.msvcrt.dll_strchr
lea r13, [rsp + 0x1030]
sub rbp, rdi
add rdi, rsi
test rax, rax
mov r15, rax
jne 0x140007636
jmp 0x140007690
lea rcx, [r15 + 1]
mov edx, 0x5c
call sub.msvcrt.dll_strchr
test rax, rax
mov r15, rax
je 0x140007690
mov r9d, r15d
mov r8, r12
mov rdx, rbp
mov qword [rsp + 0x20], rbx
sub r9d, ebx
mov rcx, rdi
call fcn.140007560
mov rcx, rsi
call fcn.140004630
test eax, eax
jne 0x140007620
mov r8d, 0x1000
mov rdx, r13
mov rcx, rsi
call fcn.140008a80
mov rdx, qword [r14 + 0x3038]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140007620
mov eax, 0xffffffff
jmp 0x140007692
xor eax, eax
add rsp, 0x3038
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1400076b0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rdi
mov eax, 0x1020
push rsi
push rbx
call fcn.14000e4c0
sub rsp, rax
mov rsi, rdx
lea rdx, [0x140019e4a]
call fcn.140004670
test rax, rax
mov rbx, rax
je 0x14000779e
lea rdx, [0x140019e4d]
mov rcx, rsi
call fcn.140004670
test rax, rax
mov rsi, rax
je 0x140007796
lea rdi, [rsp + 0x20]
jmp 0x14000773f
mov r8d, 0x1000
mov r9, rbx
mov edx, 1
mov rcx, rdi
call sub.msvcrt.dll_fread
test rax, rax
mov r8, rax
je 0x140007780
mov r9, rsi
mov edx, 1
mov rcx, rdi
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x140007770
mov rcx, rsi
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x140007770
mov rcx, rbx
call sub.msvcrt.dll_feof
test eax, eax
je 0x140007700
xor edi, edi
mov rcx, rbx
call sub.msvcrt.dll_fclose
mov rcx, rsi
call sub.msvcrt.dll_fclose
mov eax, edi
add rsp, 0x1020
pop rbx
pop rsi
pop rdi
ret
mov rcx, rsi
call sub.msvcrt.dll_clearerr
mov edi, 0xffffffff
jmp 0x14000774d
mov rcx, rbx
call sub.msvcrt.dll_ferror
test eax, eax
je 0x14000774b
mov rcx, rbx
call sub.msvcrt.dll_clearerr
jmp 0x140007778
mov rcx, rbx
call sub.msvcrt.dll_fclose
mov edi, 0xffffffff
jmp 0x14000775d
Function at 0x1400077b0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov r12, rcx
mov ecx, 0x2000
mov rbp, rdx
mov rdi, r8
call sub.msvcrt.dll_malloc
test rax, rax
mov rsi, rax
je 0x1400078a0
xor edx, edx
mov r8d, 2
mov rcx, r12
call fcn.14000ed30
test eax, eax
js 0x1400078a0
mov rcx, r12
call fcn.14000edd0
movsxd rbx, eax
cmp rbx, rdi
jb 0x1400078a0
mov r15d, 1
sub r15, rdi
mov qword [rsp + 0x28], r15
mov r13d, 0x2000
cmp rbx, r13
cmovae r13, rbx
lea r14, [r13 - 0x2000]
sub rbx, r14
cmp rbx, rdi
jb 0x1400078a0
xor r8d, r8d
mov edx, r14d
mov rcx, r12
call fcn.14000ed30
test eax, eax
js 0x1400078a0
mov r9, r12
mov r8, rbx
mov edx, 1
mov rcx, rsi
call sub.msvcrt.dll_fread
cmp rax, rbx
jne 0x1400078a0
mov rdx, qword [rsp + 0x28]
lea rbx, [rdx + rax]
jmp 0x14000788a
lea r15, [rbx - 1]
mov r8, rdi
mov rdx, rbp
lea rcx, [rsi + r15]
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x1400078c0
mov rbx, r15
test rbx, rbx
jne 0x140007870
lea rbx, [r14 + rdi - 1]
test r14, r14
jne 0x140007819
nop dword [rax]
xor ebx, ebx
mov rcx, rsi
call sub.msvcrt.dll_free
mov rax, rbx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rbx, [r13 + rbx - 0x2001]
jmp 0x1400078a2

Function at 0x1400078d0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push r15
mov eax, 0x2288
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000e4c0
sub rsp, rax
mov r14, qword [sym.imp.msvcrt.dll__snwprintf]
lea r8, str._s
mov edx, 0x1000
lea r13, [rsp + 0x280]
mov qword [rsp + 0x22d0], rcx
mov r9, rcx
mov rcx, r13
call r14
cmp eax, 0xfff
jg 0x140007a38
lea rsi, [rsp + 0x30]
mov r12d, 0x1000
mov rcx, r13
lea ebx, [rax - 1]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
sub r12d, ebx
cmp rax, 0xffffffffffffffff
mov r15, rax
je 0x140007a38
movsxd rax, ebx
mov rdi, qword [sym.imp.KERNEL32.dll_FindNextFileW]
lea rax, [r13 + rax*2]
mov qword [rsp + 0x20], rax
lea rbx, [rsp + 0x5c]
movsxd rax, r12d
lea rbp, [0x140019e6a]
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov rcx, rbx
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400079d0
lea rdx, [0x140019e6e]
mov rcx, rbx
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400079d0
mov rdx, qword [rsp + 0x28]
mov r9, rbx
mov rcx, qword [rsp + 0x20]
lea r8, [0x140019e74]
call r14
cmp eax, r12d
jge 0x1400079d0
mov eax, dword [rsp + 0x30]
mov rcx, r13
test al, 0x10
je 0x140007a18
test ah, 4
je 0x1400079ca
cmp dword [rsp + 0x54], 0xa000000c
je 0x140007a30
call fcn.1400078d0
nop
mov rdx, rsi
mov rcx, r15
call rdi
test eax, eax
jne 0x140007972
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x22d0]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
setne al
movzx eax, al
neg eax
add rsp, 0x2288
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, rsi
mov rcx, r15
call rdi
test eax, eax
jne 0x140007972
jmp 0x1400079dc
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1400079d0
mov eax, 0xffffffff
jmp 0x1400079fe
Function at 0x140007cb0
Capabilities:
Query environment variable

Disassembly:
push rsi
mov eax, 0x4028
push rbx
call fcn.14000e4c0
sub rsp, rax
xor r8d, r8d
xor edx, edx
call fcn.140008a80
lea rbx, [rsp + 0x20]
mov r8d, 0x1000
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
sub eax, 1
cmp eax, 0xffe
ja 0x140007d28
lea rsi, [rsp + 0x2020]
mov r8d, 0x1000
mov rcx, rbx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
sub eax, 1
cmp eax, 0xffe
ja 0x140007d28
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.140008980
add rsp, 0x4028
pop rbx
pop rsi
ret
xor eax, eax
add rsp, 0x4028
pop rbx
pop rsi
ret
Function at 0x1400087d0
Capabilities:
Enumerate process modules

Disassembly:
push r15
mov eax, 0x4048
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000e4c0
sub rsp, rax
mov dword [rsp + 0x3c], 0
lea rbx, [rsp + 0x3c]
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r8d, r8d
xor edx, edx
mov r9, rbx
mov rcx, rax
mov rsi, rax
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x140008820
mov r12d, dword [rsp + 0x3c]
test r12d, r12d
jne 0x140008838
add rsp, 0x4048
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, r12d
mov edx, 1
call sub.msvcrt.dll_calloc
test rax, rax
mov rdi, rax
je 0x140008820
mov r9, rbx
mov r8d, r12d
mov rdx, rax
mov rcx, rsi
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
jne 0x140008880
mov rcx, rdi
add rsp, 0x4048
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sub.msvcrt.dll_free
lea r14, [rsp + 0x2040]
mov r8d, 0x1000
lea rcx, [rbp + 0x2022]
mov rdx, r14
call fcn.140008a80
test rax, rax
je 0x140008862
mov rcx, r14
call sub.msvcrt.dll_wcslen
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x3c]
shr eax, 3
test eax, eax
je 0x140008862
lea r12d, [rax*8]
mov rbx, rdi
mov r15, rdi
lea rbp, [rsp + 0x40]
add r12, rdi
xor r13d, r13d
nop dword [rax + rax]
mov rdx, qword [r15]
mov r9d, 0x1000
mov r8, rbp
mov rcx, rsi
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
je 0x140008913
mov r8, qword [rsp + 0x28]
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x140008913
mov rdx, qword [r15]
movsxd rax, r13d
add r13d, 1
mov qword [rdi + rax*8], rdx
add r15, 8
cmp r15, r12
jne 0x1400088d8
test r13d, r13d
jle 0x140008862
movsxd r13, r13d
lea r14, [rdi + r13*8]
mov r13, qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140008945
add rbx, 8
cmp r14, rbx
je 0x140008862
mov rdx, qword [rbx]
mov r9d, 0x1000
mov r8, rbp
mov rcx, rsi
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
je 0x140008938
xor r12d, r12d
jmp 0x14000896e
cmp r12d, 0x20
je 0x140008938
mov rcx, qword [rbx]
add r12d, 1
call r13
test eax, eax
jne 0x140008968
jmp 0x140008938
Function at 0x14000d700
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400163e0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400163e0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x14000d770
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140024394]
test esi, esi
mov rbx, rcx
jle 0x14000d8a0
mov rax, qword [0x140024398]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000d7bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000d845
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000d7a0
mov rcx, rbx
call fcn.14000e1e0
test rax, rax
mov rdi, rax
je 0x14000d8c2
mov rax, qword [0x140024398]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000e320
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140024398]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000d8a7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000d83e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000d850
add dword [0x140024394], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x140024398]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000d83e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000d700
nop dword [rax]
xor esi, esi
jmp 0x14000d7c8
mov rax, qword [0x140024398]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.14000d700
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.14000d700
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000de30
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140024400]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400243e0]
test rbx, rbx
je 0x14000de8c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14000de83
test rsi, rsi
je 0x14000de83
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000de68
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000e0a0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14000e0d8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14000e0e0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14000e0b0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14000e0d8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14000e0e0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14000e0c0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14000e0d8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14000e0e0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14000e1e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14001e410]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000e200
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000e208
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000e200
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000e25d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x14000e254
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000e200
add rax, 0x28
cmp rax, r9
jne 0x14000e240
xor eax, eax
ret

Function at 0x14000e260
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001e410]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000e27f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000e288
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000e27f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14000e320
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001e410]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000e33f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000e348
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140059520
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov eax, dword [0x1400e8350]
mov ecx, dword [0x1400e040c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005955d
lea rcx, [0x1400e8348]
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.14004c6d0
lea rcx, [0x1400e8350]
call fcn.14005ac00
cmp dword [0x1400e8350], 0xffffffff
jne 0x140059549
mov qword [0x1400e8348], 0
lea rcx, [0x1400e8348]
xor edx, edx
call fcn.14002cb70
lea rcx, [0x1400e8350]
call fcn.14005ac98
jmp 0x140059549

Function at 0x14005a710
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400e8360]
mov ecx, dword [0x1400e040c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005a7b2
lea rcx, [0x1400e8358]
xor edx, edx
call fcn.14004c6d0
mov eax, dword [0x1400e8370]
mov ecx, dword [0x1400e040c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005a776
lea rcx, [0x1400e8368]
xor edx, edx
add rsp, 0x28
jmp fcn.14004c6d0
lea rcx, [0x1400e8370]
call fcn.14005ac00
cmp dword [0x1400e8370], 0xffffffff
jne 0x14005a764
mov qword [0x1400e8368], 0
lea rcx, [0x1400e8368]
xor edx, edx
call fcn.14002cb70
lea rcx, [0x1400e8370]
call fcn.14005ac98
jmp 0x14005a764
lea rcx, [0x1400e8360]
call fcn.14005ac00
cmp dword [0x1400e8360], 0xffffffff
jne 0x14005a735
mov qword [0x1400e8358], 0
lea rcx, [0x1400e8358]
xor edx, edx
call fcn.14002cb70
lea rcx, [0x1400e8360]
call fcn.14005ac98
jmp 0x14005a735
Function at 0x140002590
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140004650], rbx
je 0x1400025dc
cmp rax, rbx
jne 0x1400025cf
mov ebx, 1
mov esi, ebx
jmp 0x1400025e1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400025b4
mov ebx, 1
mov eax, dword [0x140004658]
cmp eax, ebx
jne 0x1400025f7
mov ecx, 0x1f
call 0x140169000
jmp 0x14000265c
mov eax, dword [0x140004658]
test eax, eax
jne 0x140002656
mov dword [0x140004658], ebx
lea r15, [0x1400033c0]
lea rdi, [0x1400033a8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140002648
test eax, eax
jne 0x14000264c
cmp qword [rdi], 0
je 0x14000263d
mov rax, qword [rdi]
mov rcx, qword [0x140003388]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000261e
test eax, eax
je 0x14000265c
mov eax, 0xff
jmp 0x140002738
mov dword [0x140004064], ebx
mov eax, dword [0x140004658]
cmp eax, ebx
jne 0x140002683
lea rdx, [0x1400033a0]
lea rcx, [0x140003390]
call sub.msvcrt.dll__initterm
mov dword [0x140004658], 2
test esi, esi
jne 0x140002690
xor eax, eax
xchg qword [0x140004650], rax
cmp qword [0x140004660], 0
je 0x1400026c4
lea rcx, [0x140004660]
call fcn.140002940
test eax, eax
je 0x1400026c4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140004660]
mov r9, qword [0x140003388]
call r9
mov r8, qword [0x140004078]
mov rdx, qword [0x140004070]
mov ecx, dword [0x140004068]
call fcn.1400019b0
mov dword [0x140004060], eax
cmp dword [0x140004080], 0
jne 0x1400026f4
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140004064], 0
jne 0x140002709
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140004060]
jmp 0x140002738
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.1400029d4
add rsp, 0x28
jmp 0x140002590

Function at 0x14000282c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140002878
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140002870
cmp dword [rcx + 0x3c], edx
jl 0x140002870
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140002870
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 0x140002878
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14000b120
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov dword [rcx], 0x61707865
mov r10, rcx
mov dword [rcx + 4], 0x3320646e
mov dword [rcx + 8], 0x79622d32
mov dword [rcx + 0xc], 0x6b206574
movzx eax, byte [rdx + 2]
movzx r9d, byte [rdx + 3]
shl r9d, 8
or r9d, eax
movzx eax, byte [rdx + 1]
shl r9d, 8
or r9d, eax
movzx eax, byte [rdx]
shl r9d, 8
or r9d, eax
mov dword [rcx + 0x10], r9d
movzx eax, byte [rdx + 6]
movzx ecx, byte [rdx + 7]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 4]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x14], ecx
movzx eax, byte [rdx + 0xa]
movzx ecx, byte [rdx + 0xb]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 8]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x18], ecx
movzx eax, byte [rdx + 0xe]
movzx ecx, byte [rdx + 0xf]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0xc]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x1c], ecx
movzx eax, byte [rdx + 0x12]
movzx ecx, byte [rdx + 0x13]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x10]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x20], ecx
movzx eax, byte [rdx + 0x16]
movzx ecx, byte [rdx + 0x17]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x14]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x24], ecx
movzx eax, byte [rdx + 0x1a]
movzx ecx, byte [rdx + 0x1b]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x19]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x18]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x28], ecx
movzx eax, byte [rdx + 0x1e]
movzx ecx, byte [rdx + 0x1f]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x1d]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x1c]
shl ecx, 8
or ecx, eax
xor eax, eax
mov dword [r10 + 0x2c], ecx
mov qword [r10 + 0x30], rax
movzx eax, byte [r8 + 2]
movzx ecx, byte [r8 + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [r8 + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [r8]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x38], ecx
movzx eax, byte [r8 + 6]
movzx ecx, byte [r8 + 7]
shl ecx, 8
or ecx, eax
movzx eax, byte [r8 + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [r8 + 4]
shl ecx, 8
or ecx, eax
mov rax, r10
mov dword [r10 + 0x3c], ecx
ret
Function at 0x14000d460
Capabilities:
Encode data using xor
Get disk size

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [0x1401abb6c]
xor ebx, ebx
cmp byte [0x1401abb6f], bl
mov dword [rsp + 0x30], eax
je 0x14000d527
cmp dword [0x140235078], 2
mov ecx, ebx
jl 0x14000d4fc
movdqa xmm3, xmmword [0x140075b70]
movdqa xmm2, xmm3
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x1401abb90]
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x1401abb90]
shufps xmm2, xmm0, 0xdd
psrad xmm2, 4
movdqa xmm0, xmm2
psrld xmm0, 0x1f
paddd xmm0, xmm2
pmulld xmm0, xmmword [str.2222]
psubd xmm3, xmm0
movd xmm0, eax
andps xmm3, xmmword [0x140075bb0]
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmmword [0x1401abb80]
xorps xmm3, xmm0
movd dword [rsp + 0x30], xmm3
jmp 0x14000d527
lea r8, [rsp + 0x30]
mov eax, 0x51eb851f
lea r8, [r8 + 1]
mul ecx
shr edx, 4
movsx eax, dl
imul edx, eax, 0x32
movzx eax, cl
inc ecx
sub al, dl
add al, 0x33
xor byte [r8 - 1], al
cmp ecx, 4
jl 0x14000d501
xor r9d, r9d
lea r8, [rsp + 0x38]
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x14000d563
mov rax, qword [rsp + 0x38]
movabs rcx, 0xf00000000
and rax, 0xffffffffc0000000
cmp rax, rcx
setbe bl
mov eax, ebx
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14000d890
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x78
mov rax, qword [0x1402350c0]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rcx, qword [rsp + 0x28]
xor eax, eax
and rcx, 0xfffffffffffffc00
cmp rcx, 0x40000000
setb al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140046770
add rsp, 0x78
ret

Function at 0x14000d8e0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor eax, eax
cmp dword [rsp + 0x40], 2
setb al
add rsp, 0x58
ret

Function at 0x14000d900
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbx
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x1f4
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
sub eax, ebx
cmp eax, 0x1c2
setbe cl
mov eax, ecx
add rsp, 0x20
pop rbx
ret