joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002db0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000f600]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002dd0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002dd8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002dd0
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002e18
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002e0f
test rcx, rcx
je 0x140002dd0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002e00
xor eax, eax
ret

Function at 0x140002e20
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000f600]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002e40
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002e48
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

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

Disassembly:
mov rax, qword [0x14000f600]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002e80
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002e88
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002e80
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002e80
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002ec4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002ed8
add rax, 0x28
cmp r9, rax
jne 0x140002eb0
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

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

Disassembly:
mov r11, qword [0x14000f600]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002f12
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002f20
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002f12
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002f12
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140002f12
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002f6d
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002f80
add rdx, 0x28
cmp r10, rdx
jne 0x140002f58
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002f8f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002f9f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002f76
test ecx, ecx
jg 0x140002f88
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140004610
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x14000f6b0]
mov rax, qword [rsi]
test rax, rax
je 0x1400046a0
cmp qword [rax + 0x30], 0
jne 0x1400046c0
lea rbx, [0x14000e078]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140004670
cmp qword [rax + 0x30], 0
jne 0x140004690
lea rdx, [0x14000e078]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je sym.pthread_tls_init.cold
add rsp, 0x28
pop rbx
pop rsi
ret
call sym.__shmem3_winpthreads_tdm_init_local_region
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140004652
test rax, rax
jne 0x140004690
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140004660
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140004630
test rax, rax
jne 0x1400046c0
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x14000463b

Function at 0x1400046d0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x1400047e2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x1400047ba
add rax, 1
cmp rax, 0x6b
je 0x1400047d7
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x1400047b0
cmp edx, 0x6a
je 0x1400047d7
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sym.abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x1400047cb
Function at 0x140008290
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x14000f6b0]
mov rax, qword [rbx]
mov r12, rcx
mov esi, edx
test rax, rax
je 0x140008360
cmp qword [rax + 0x60], 0
jne 0x140008380
lea rcx, [0x14000e068]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_lock
mov rcx, r12
call sym.__pthread_get_pointer
test rax, rax
je 0x140008390
cmp qword [rax + 0x1d8], r12
jne 0x140008390
test byte [rax + 0x40], 0xc
jne 0x140008390
mov edx, dword [rax + 0xbc]
test edx, edx
jne 0x140008390
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x140008390
mov rax, qword [rbx]
test rax, rax
je 0x1400083f0
cmp qword [rax + 0x60], 0
jne 0x140008410
lea rcx, [0x14000e068]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_unlock
test esi, esi
je 0x140008420
lea edx, [rsi - 2]
cmp edx, 0x15
ja 0x140008428
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
jmp sym.pthread_cancel
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x60], 0
mov rax, qword [rbx]
je 0x1400082bb
test rax, rax
jne 0x140008380
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x1400082c6
mov rax, qword [rbx]
test rax, rax
je 0x1400083c0
cmp qword [rax + 0x60], 0
jne 0x1400083e0
lea rcx, [0x14000e068]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_unlock
mov eax, 3
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
call sym.__shmem3_winpthreads_tdm_init_local_region
mov r8, rax
mov rax, qword [rbx]
cmp qword [r8 + 0x60], 0
je 0x14000839f
test rax, rax
jne 0x1400083e0
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x1400083aa
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x60], 0
mov rax, qword [rbx]
je 0x14000832a
test rax, rax
jne 0x140008410
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x140008335
xor eax, eax
jmp 0x1400083b4
mov eax, 0x16
jmp 0x1400083b4
Function at 0x1400086a0
Capabilities:
Create thread
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rdi, rcx
mov rsi, rdx
mov rbx, r8
mov rbp, r9
call sym.pop_pthread_mem
mov r12, rax
test rax, rax
je 0x140008909
test rdi, rdi
je 0x1400086da
mov rax, qword [rax + 0x1d8]
mov qword [rdi], rax
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [r12 + 8], rbp
mov dword [r12 + 0x44], 1
mov rbp, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [r12 + 0xbc], 0
mov r14, r13
mov qword [r12 + 0x28], 0xffffffffffffffff
mov qword [r12 + 0x10], rbx
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call rbp
mov qword [r12 + 0x30], rax
test rax, rax
jne 0x140008747
add ebx, 1
cmp ebx, 1
je 0x140008850
mov ecx, 0x14
call r14
cmp ebx, 5
jne 0x140008715
mov qword [r12 + 0x38], 0xffffffffffffffff
lea r14, [r12 + 0x68]
mov rcx, r14
call sym.pthread_spin_destroy
cmp eax, 1
je 0x14000894f
cmp qword [r12 + 0x30], 0
mov qword [r12 + 0x68], 0xffffffffffffffff
mov dword [r12], 0xbab1f00d
mov dword [r12 + 0xc0], 0
mov dword [r12 + 0xb8], 0
je 0x1400088f2
xor edx, edx
test rsi, rsi
je 0x1400087bf
mov eax, dword [rsi]
mov edx, dword [rsi + 0x10]
mov dword [r12 + 0x44], eax
test al, 8
jne 0x140008920
mov eax, dword [rsi + 0x18]
mov dword [r12 + 0xc0], eax
lea r8, [sym.pthread_create_wrapper]
mov r9, r12
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov r13, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400088b0
mov eax, dword [r12 + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jge 0x140008880
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [r12 + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [r12 + 0x44], 4
jne 0x140008860
mov qword [r12 + 0x28], r13
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
xor ecx, ecx
call r13
jmp 0x140008715
mov qword [r12 + 0x28], 0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000882f
mov edx, 0xfffffffe
cmp eax, 0xffffffff
jl 0x140008805
mov edx, 0xf
cmp eax, 0xe
jg 0x140008805
cmp eax, 2
mov edx, 2
cmovle edx, eax
jmp 0x140008805
mov rcx, qword [r12 + 0x30]
test rcx, rcx
je 0x1400088c0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [r12 + 0x38]
call sym.pthread_mutex_destroy
mov rcx, r14
call sym.pthread_spin_destroy
cmp eax, 1
je 0x14000894f
mov qword [r12 + 0x68], 0xffffffffffffffff
mov qword [r12 + 0x30], 0
mov qword [r12 + 0x28], 0
test rdi, rdi
je 0x1400088fe
mov qword [rdi], 0
cmp qword [r12 + 0x1d0], 0
je 0x140008940
mov eax, 0xb
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov dword [rsp + 0x3c], edx
call sym.__pthread_self_lite
mov edx, dword [rsp + 0x3c]
mov eax, dword [rax + 0xc0]
mov dword [r12 + 0xc0], eax
jmp 0x1400087bf
mov rcx, r12
call sym.push_pthread_mem.part.0
mov eax, 0xb
jmp 0x14000890e
call sym.replace_spin_keys.part.0
nop
nop word cs:[rax + rax]
Function at 0x140009390
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400093b0
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x1400093f8
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1400093a4
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400093e5

Function at 0x140009420
Capabilities:
Check mutex on windows

Disassembly:
push r12
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
lea r8, [0x1400122c0]
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400094d8
mov rdx, qword [0x140012200]
lea rcx, [0x140012200]
mov rax, qword [rdx + 8]
test rax, rax
je 0x1400094a8
cmp rdx, rcx
jne 0x14000948a
mov qword [rdx], rax
cmp rax, rcx
je 0x14000948f
nop dword [rax]
test rax, rax
je 0x1400094ba
mov rdx, qword [rdx]
mov qword [rax], rdx
mov rdx, rax
mov rax, qword [rdx + 8]
cmp rax, rcx
jne 0x140009478
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
test rax, rax
je 0x1400094ba
mov rdx, rax
jmp 0x140009486
lea rcx, [0x140012300]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x1400094f6
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x20
pop r12
ret
lea rcx, str.failed_to_to_lock_cleanup_mutex_n
call sym.__shmem_get_error
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x20
pop r12
ret
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_DeleteAtom]
jmp 0x1400094ba
Function at 0x14000cff0
Capabilities:
Capture screenshot
Shutdown system

Disassembly:
sub rsp, 0x28
call dbg.__main
mov rax, qword [0x14000f680]
xor edx, edx
mov r9d, dword [rax]
mov rax, qword [0x14000f670]
mov r8, qword [rax]
mov rax, qword [0x14000f660]
mov rcx, qword [rax]
add rsp, 0x28
jmp sym.WinMain

Function at 0x402b20
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x004053b0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x402b99
mov rcx, r10
call fcn.004029f0
test eax, eax
je 0x402b99
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x402b96
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x402b8d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x402b99
add r8, 0x28
cmp r8, r9
jne 0x402b78
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x14001a3d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x14001a460
cmp r10, r11
jb 0x14001a4d6
cmp r10, rdx
ja 0x14001a4ea
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x14001a462
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14001a440
jmp 0x14001a4c4
ja 0x14001a46a
mov r11, r10
cmp rax, r8
jne 0x14001a404
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x14001a4a0
mov rdi, r8
sub ecx, edx
jns 0x14001a4bb
jmp 0x14001a4c6
cmp r8, rsi
je 0x14001a4fb
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x14001a4c6
xor al, 1
cmp rdi, rsi
jne 0x14001a480
jmp 0x14001a4c6
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, [0x14139c610]
mov rcx, r11
mov rdx, r10
call fcn.140053840
ud2
lea r8, [0x14139c610]
mov rcx, r10
call fcn.1400535c0
ud2
lea rcx, [0x1413a0cb0]
lea r8, [0x14139c5f8]
mov edx, 0x2b
call fcn.140053640
ud2
Function at 0x1400216c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x14002171b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14002171b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x140021736
cmp eax, 0x42
jne 0x14002171b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x1400217e6
cmp byte [r9 + r11], 0x5f
jne 0x1400217e6
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14002184e
mov rcx, rsi
xor edx, edx
call fcn.14001cbb0
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.14001cbb0
test al, al
jne 0x1400218e1
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140021772
lea rdx, [0x1413a05ab]
mov r8d, 1
call fcn.1400184d0
test al, al
jne 0x1400218e1
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14002172a
xor r14d, r14d
lea rbx, [0x1413a0960]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x1400217a4
cmp byte [rax + rcx], 0x45
je 0x14002190a
sub r14, 1
jb 0x1400217c9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400217c9
mov r8d, 2
mov rdx, rbx
call fcn.1400184d0
test al, al
jne 0x1400218e1
mov rcx, rsi
call fcn.14001e4c0
test al, al
jne 0x1400218e1
mov rax, qword [rsi]
test rax, rax
jne 0x140021790
jmp 0x14002172a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x1400218a8
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x140021842
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14002182c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14002181b
add dl, 0xa9
jmp 0x14002182a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x1400218a8
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x1400218a8
movzx edx, bl
add rax, rdx
jae 0x1400217f0
jmp 0x1400218a8
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x1400218a8
cmp rax, rcx
jae 0x1400218a5
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x1400218e9
cmp qword [rsi + 0x20], 0
je 0x140021903
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.1400216c0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14002172c
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400218f8
lea rax, [0x1413a0910]
lea rdx, [0x1413a0920]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.1400184d0
test al, al
je 0x1400218f8
mov dil, 2
jmp 0x14002172a
mov dil, 1
xor r8d, r8d
mov rcx, qword [rsi + 0x20]
test rcx, rcx
jne 0x1400218b3
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14002172a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14002172a
Function at 0x1400261a0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1413a3398]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140026213
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14002624a
test eax, eax
js 0x140026224
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14002623d
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x1413a33f8]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140024090
mov rcx, rax
call fcn.140024200
mov ecx, 7
int 0x29
ud2
Function at 0x140029970
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x1400299a0
test ecx, ecx
jne 0x1400299f0
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x1400299ac
test ecx, ecx
jne 0x1400299f0
mov rcx, rdi
call fcn.140029850
movzx eax, al
test bpl, bpl
jne 0x1400299f7
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x1400299e3.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x140029b68]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x1400299e3.2
xor eax, eax
test bpl, bpl
je 0x1400299bc
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x140029b49
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x140029a2a
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x140029aa9
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x140029a70
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x140029a8b
inc rax
dec rdi
cmp rax, 1
jne 0x140029a50
jmp 0x140029aa9
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x140029a8b
cmp ebx, 0x5c
je 0x140029a8b
inc rax
dec rdi
cmp rax, 1
jne 0x140029a70
jmp 0x140029aa9
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x140029b57
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x140029ad3
mov al, 9
cmp rdx, 2
je 0x140029ad7
cmp rdx, 1
jne 0x140029ae7
cmp byte [r8], 0x2e
jne 0x140029ae7
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140029ae7
mov al, 0xa
jmp 0x140029ae7
cmp byte [r8], 0x2e
jne 0x140029ae7
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov byte [rsi + 8], al
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rdx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x1400299e3.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x1400299e3.2
mov ecx, 2
jmp case.0x1400299e3.2
lea r8, [0x1413a2518]
call fcn.140053540
ud2
lea r8, [0x1413a2530]
call fcn.140053540
ud2
Function at 0x14002e850
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1413a3398]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x14002e8bc
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x14002e8cb
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14002e903
cmp eax, 0x103
je 0x14002e90d
test eax, eax
js 0x14002e8e8
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14002e903
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x1413a33f8]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140024090
mov rcx, rax
call fcn.140024200
mov ecx, 7
int 0x29
ud2

Function at 0x14002fcf0
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.140026e30
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x14002fda7
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r8b, 1
call fcn.14002e970
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
test rdi, rdi
je 0x14002fda7
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14002fd79
test rsi, rsi
je 0x14002fda5
mov rcx, qword [0x1413b4bb8]
xor esi, esi
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14002fda7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x14002fda0
mov rcx, qword [0x1413b4bb8]
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, rbx
jmp 0x14002fda7
xor esi, esi
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret