joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009020
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x140018400]
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x2c]
lea r9, [rsp + 0x30]
movzx eax, byte [rcx]
add rcx, 1
add rdx, 2
mov r8d, eax
and eax, 0xf
shr r8b, 4
add eax, 0x61
add r8d, 0x41
mov byte [rdx - 1], al
mov byte [rdx - 2], r8b
cmp rcx, r9
jne 0x140009043
lea rax, [0x140018408]
mov ecx, 0x5f
lea rdx, [0x140014c91]
lea r8, [rax + 0x1a]
jmp 0x14000908b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140009088
lea rax, [0x140018440]
mov ecx, 0x5f
lea rdx, [0x140014c91]
lea r8, [rax + 0x19]
jmp 0x1400090bb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x1400090b8
xor ecx, ecx
mov byte [0x140018459], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x140018462], rdx
lea r8, [0x140018400]
lea rbx, [0x14001845a]
mov qword [0x140018472], rdx
mov qword [0x140018482], rdx
mov qword [0x140018492], rdx
xor edx, edx
mov qword [0x14001845a], rax
mov qword [0x14001846a], rax
mov qword [0x14001847a], rax
mov qword [0x14001848a], rax
mov byte [0x14001849a], 0
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 0x140009296
lea rcx, [0x140018440]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x1400091e1
lea rsi, [0x140018340]
lea r8, [0x14001849a]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x14000918d
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x140009180
lea rcx, [0x140018440]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x140009283
lea rcx, [0x140008f30]
mov qword [0x140018340], rsi
call sub.msvcrt.dll__onexit
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x140018340]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x140018440]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x14001849a]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x1400092b6
nop dword [rax]
cmp byte [rax], 0x41
jne 0x140009233
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x140009220
mov rax, rdx
mov qword [0x140018340], rax
lea rsi, [0x140018340]
jmp 0x140009259
cmp rdx, rsi
je 0x1400091bf
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x140009250
cmp rdx, rsi
je 0x1400091bf
mov qword [rdx + 8], rsi
lea rcx, [0x140008f30]
call sub.msvcrt.dll__onexit
jmp 0x1400091bf
lea rcx, [0x140014cd8]
call fcn.140008ea0
xor eax, eax
jmp 0x1400091d8
lea rcx, [0x140014cb0]
call fcn.140008ea0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
lea rcx, [0x140014d00]
call fcn.140008ea0
xor eax, eax
jmp 0x14000923f
Function at 0x13f00
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x68], rbp
mov rbp, rcx
mov qword [rsp + 0x70], rsi
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x78], rdi
mov rsi, r8
mov edi, r9d
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
xor r11d, r11d
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x38]
lea r8d, [r11 + 2]
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov rcx, rbp
mov dword [rsp + 0x30], r11d
mov dword [rsp + 0x20], r11d
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp eax, 0xc0000034
mov ecx, dword [rsp + 0x30]
jne 0x13f83
cmp ecx, edi
jae 0x13f83
cmp ecx, 0x1000
ja 0x13f83
mov eax, 0xc000000d
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
add rsp, 0x58
ret
mov rdx, rcx
mov r8d, 0x656e6f4e
xor ecx, ecx
mov qword [rsp + 0x60], rbx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
test rax, rax
mov rbx, rax
jne 0x13fa8
mov eax, 0xc000009a
jmp 0x13ff6
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov r9, rbx
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x30]
mov r8d, 2
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
jns 0x13fdc
mov eax, 0xc000000d
jmp 0x13ff6
lea rdx, [rbx + 0xc]
mov r8, rdi
mov rcx, rsi
call fcn.00016fd0
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePool]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
add rsp, 0x58
ret
Function at 0x145a0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x40], rbx
mov rbx, rcx
call fcn.00014050
lea edx, [rax*4]
xor r10d, r10d
mov r11d, eax
test edx, edx
movsxd r9, edx
jle 0x14619
lea rdx, [rbx + r9*4 + 8]
lea r8, [rbx + 8]
nop
mov eax, dword [rdx - 8]
mov ecx, dword [r8 - 8]
add r10, 4
mov dword [r8 - 8], eax
mov eax, dword [rdx - 4]
mov dword [rdx - 8], ecx
mov ecx, dword [r8 - 4]
mov dword [r8 - 4], eax
mov eax, dword [rdx]
mov dword [rdx - 4], ecx
mov ecx, dword [r8]
mov dword [r8], eax
mov eax, dword [rdx + 4]
mov dword [rdx], ecx
mov ecx, dword [r8 + 4]
mov dword [r8 + 4], eax
sub r9, 4
mov dword [rdx + 4], ecx
sub rdx, 0x10
add r8, 0x10
cmp r10, r9
jl 0x145d0
cmp r11d, 1
jle 0x147bd
mov qword [rsp + 0x48], rdi
lea r10d, [r11 - 1]
lea rdi, [0x00010000]
nop
nop
nop
nop
mov r9d, dword [rbx + 0x10]
add rbx, 0x10
mov rax, r9
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0x21b0]
movzx eax, byte [rbx + 1]
movzx ecx, byte [rdi + rax*4 + 0x21b0]
mov r8d, dword [rdi + rdx*4 + 0x25b0]
movzx eax, byte [rbx + 2]
xor r8d, dword [rdi + rcx*4 + 0x2db0]
movzx ecx, byte [rdi + rax*4 + 0x21b0]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x29b0]
movzx eax, byte [rdi + rax*4 + 0x21b0]
mov r9d, dword [rbx + 4]
xor r8d, dword [rdi + rax*4 + 0x31b0]
mov rax, r9
mov dword [rbx], r8d
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0x21b0]
movzx eax, byte [rbx + 5]
movzx ecx, byte [rdi + rax*4 + 0x21b0]
mov r8d, dword [rdi + rdx*4 + 0x25b0]
movzx eax, byte [rbx + 6]
xor r8d, dword [rdi + rcx*4 + 0x2db0]
movzx ecx, byte [rdi + rax*4 + 0x21b0]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x29b0]
movzx eax, byte [rdi + rax*4 + 0x21b0]
mov r9d, dword [rbx + 8]
xor r8d, dword [rdi + rax*4 + 0x31b0]
mov rax, r9
mov dword [rbx + 4], r8d
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0x21b0]
movzx eax, byte [rbx + 9]
movzx ecx, byte [rdi + rax*4 + 0x21b0]
mov r8d, dword [rdi + rdx*4 + 0x25b0]
movzx eax, byte [rbx + 0xa]
xor r8d, dword [rdi + rcx*4 + 0x2db0]
movzx ecx, byte [rdi + rax*4 + 0x21b0]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x29b0]
movzx eax, byte [rdi + rax*4 + 0x21b0]
mov r9d, dword [rbx + 0xc]
xor r8d, dword [rdi + rax*4 + 0x31b0]
mov rax, r9
mov dword [rbx + 8], r8d
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0x21b0]
movzx eax, byte [rbx + 0xd]
movzx ecx, byte [rdi + rax*4 + 0x21b0]
movzx eax, byte [rbx + 0xe]
mov r8d, dword [rdi + rdx*4 + 0x25b0]
xor r8d, dword [rdi + rcx*4 + 0x2db0]
movzx ecx, byte [rdi + rax*4 + 0x21b0]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x29b0]
movzx eax, byte [rdi + rax*4 + 0x21b0]
xor r8d, dword [rdi + rax*4 + 0x31b0]
dec r10
mov dword [rbx + 0xc], r8d
jne 0x14640
mov rdi, qword [rsp + 0x48]
mov eax, r11d
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
ret
Function at 0x1a590
Capabilities:
Create device object

Disassembly:
mov eax, 0x15a8
call sub.ntoskrnl.exe___chkstk
sub rsp, rax
mov rax, qword [0x000181d8]
mov qword [rsp + 0x1570], rax
cmp dword [0x00018270], 0x10
mov qword [rsp + 0x15c8], rbx
mov qword [rsp + 0x1598], rsi
mov qword [rsp + 0x1590], rdi
mov rsi, r8
mov rbx, rcx
mov edi, edx
jb 0x1a5df
mov eax, 0xc000000d
jmp 0x1a6cf
lea rcx, [rsp + 0x48]
mov rdx, rbx
mov r8d, 0x34
call fcn.00016fd0
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x48]
call fcn.0001cc40
test eax, eax
js 0x1a6cf
mov edx, dword [0x00018270]
mov eax, dword [rbx + 4]
lea r8, [0x00010000]
mov dword [r8 + rdx*4 + 0x81f0], eax
mov eax, dword [rbx + 8]
mov qword [rsp + 0x1588], r12
mov dword [r8 + rdx*4 + 0x8230], eax
inc edx
lea r12, [rdi - 0x34]
shr r12, 1
mov dword [0x00018270], edx
lea eax, [r12 - 1]
cmp word [rbx + rax*2 + 0x34], 0
jne 0x1a7b1
lea eax, [r12 - 2]
cmp word [rbx + rax*2 + 0x34], 0
jne 0x1a7b1
mov qword [rsp + 0x15a0], rbp
mov dil, 1
call qword [sym.imp.ntoskrnl.exe_KeEnterCriticalRegion]
lea rcx, [rsi + 0x48]
call qword [sym.imp.ntoskrnl.exe_ExAcquireFastMutex]
mov rax, qword [rsi + 0x30]
lea r11, [rsi + 0x30]
cmp rax, r11
je 0x1a6a5
mov ecx, dword [rbx + 4]
cmp ecx, dword [rax - 8]
je 0x1a6a2
mov rax, qword [rax]
cmp rax, r11
jne 0x1a693
jmp 0x1a6a5
xor dil, dil
lea rcx, [rsi + 0x48]
call qword [sym.imp.ntoskrnl.exe_ExReleaseFastMutex]
call qword [sym.imp.ntoskrnl.exe_KeLeaveCriticalRegion]
test dil, dil
jne 0x1a6fc
mov eax, 0xc000000d
mov rbp, qword [rsp + 0x15a0]
mov r12, qword [rsp + 0x1588]
mov rdi, qword [rsp + 0x1590]
mov rsi, qword [rsp + 0x1598]
mov rbx, qword [rsp + 0x15c8]
mov rcx, qword [rsp + 0x1570]
call fcn.00017320
add rsp, 0x15a8
ret
mov rcx, qword [rsi]
lea rax, [rsp + 0x40]
mov r9d, 0x2a
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov edx, 0x1540
mov byte [rsp + 0x28], 0
add r12d, r12d
mov dword [rsp + 0x20], 0x180
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
mov edi, eax
js 0x1a6bf
mov rax, qword [rsp + 0x40]
mov r8d, 0x62735556
mov rdx, r12
mov rbp, qword [rax + 0x40]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
test rax, rax
mov qword [rbp + 0x28], rax
jne 0x1a76f
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, 0xc000009a
jmp 0x1a6bf
lea rdx, [rbx + 0x34]
mov r8, r12
mov rcx, rax
call fcn.00016fd0
mov r11d, dword [rbx + 4]
mov rdx, rsi
mov dword [rbp + 0x30], r11d
mov rcx, qword [rsp + 0x40]
call fcn.0001a4c0
lea rcx, [rbp + 0x50]
lea rdx, [rsp + 0x80]
mov r8d, 0x14ef
call fcn.00016fd0
mov eax, edi
jmp 0x1a6bf
mov eax, 0xc000000d
jmp 0x1a6c7
Function at 0x1b990
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
sub rsp, 0x1c8
mov rax, qword [0x000181d8]
mov qword [rsp + 0x190], rax
mov qword [r11 - 0x10], rbp
mov qword [r11 - 0x18], rsi
mov qword [r11 - 0x28], r12
mov r12, rdx
mov esi, r8d
mov rbp, rcx
mov rax, cr8
test al, al
je 0x1b9d0
mov eax, 1
jmp 0x1baac
lea r8, str.RegistryMACHINESystemCurrentControlSetMulttKeyDumps
lea rdx, [0x00021b30]
lea rcx, [rsp + 0x90]
add r9, 0x1264
mov qword [rsp + 0x1c0], rbx
mov qword [rsp + 0x1a8], rdi
call qword [sym.imp.ntoskrnl.exe_swprintf]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
xor ebx, ebx
lea rax, [rsp + 0x78]
lea r8, [rsp + 0x38]
lea rcx, [rsp + 0x30]
mov edx, 0x20006
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x38], 0x30
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x50], 0x40
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
mov edi, eax
js 0x1ba95
lea rcx, [rsp + 0x68]
mov rdx, rbp
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x30]
lea r9d, [rbx + 3]
lea rdx, [rsp + 0x68]
xor r8d, r8d
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], r12
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
test edi, edi
mov rdi, qword [rsp + 0x1a8]
sets bl
mov eax, ebx
mov rbx, qword [rsp + 0x1c0]
mov r12, qword [rsp + 0x1a0]
mov rsi, qword [rsp + 0x1b0]
mov rbp, qword [rsp + 0x1b8]
mov rcx, qword [rsp + 0x190]
call fcn.00017320
add rsp, 0x1c8
ret
Function at 0x21210
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x48
mov rax, qword [0x000181d8]
mov qword [rsp + 0x28], rax
mov eax, dword [rdx + 0x1a8]
mov r10, r8
mov r11d, ecx
and eax, 0x1f0000
cmp eax, 0x1f0000
jne 0x21367
movzx r8d, word [rdx + 0x91]
mov qword [rsp + 0x68], rbx
movzx ebx, word [rdx + 0x8d]
movzx eax, r8w
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rdi
movzx edi, word [rdx + 0x8f]
shr ax, 0xc
mov word [rsp + 8], 0xf
and al, 0xf
mov word [rsp + 0xa], 0
lea r9, [rsp + 0x10]
mov byte [rsp + 0x20], al
movzx eax, r8w
shr r8b, 4
shr ax, 8
and r8b, 0xf
and al, 0xf
mov byte [rsp + 0x22], r8b
mov byte [rsp + 0x21], al
movzx eax, byte [rdx + 0x91]
and al, 0xf
xor esi, esi
mov r8d, esi
mov byte [rsp + 0x23], al
nop
movzx ecx, r8w
movzx edx, bx
movzx eax, di
shr dx, cl
shr ax, cl
inc r8d
and dl, 1
and al, 1
inc r9
add dl, dl
or dl, al
cmp r8d, 0x10
mov byte [r9 - 1], dl
jl 0x212b0
movzx r8d, word [rsp + 8]
movzx edx, word [rsp + 0xc]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x68]
lea r9, [rsp + r8 + 0x10]
shr r11d, 0x1c
nop
nop
nop
movzx eax, sil
movzx ecx, r11b
add dx, dx
xor al, 1
inc esi
shl al, 2
sub cl, al
movzx eax, byte [r9]
and cl, 0xf
xor cl, byte [rsp + rax + 0x20]
movzx eax, cl
xor r8w, ax
movzx eax, r8w
mov word [rsp + 8], r8w
lea r9, [rsp + rax + 0x10]
movzx eax, byte [rsp + rax + 0x10]
and al, 1
movzx ecx, al
or cx, dx
cmp esi, 8
mov dx, cx
mov word [rsp + 0xc], cx
jl 0x21300
mov word [r10], cx
mov rsi, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
call fcn.00017320
add rsp, 0x48
ret
mov byte [rsp], 0xff
mov byte [rsp + 1], 0xfe
movzx eax, word [rsp]
mov word [r8], ax
mov rcx, qword [rsp + 0x28]
call fcn.00017320
add rsp, 0x48
ret
Function at 0x21390
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
sub rsp, 0xb8
mov rax, qword [0x000181d8]
mov qword [rsp + 0x90], rax
movzx r8d, word [rcx + 0x91]
movzx r10d, word [rcx + 0x8d]
mov qword [r11 + 0x20], rbp
movzx eax, r8w
mov qword [r11 - 8], rsi
mov rbp, rcx
shr ax, 0xc
mov rsi, rdx
lea r9, [rsp + 0x28]
and al, 0xf
mov byte [rsp + 0x38], al
movzx eax, r8w
shr r8b, 4
shr ax, 8
and r8b, 0xf
and al, 0xf
mov byte [rsp + 0x39], al
movzx eax, byte [rcx + 0x91]
mov byte [r11 - 0x7e], r8b
movzx r11d, word [rcx + 0x8f]
and al, 0xf
xor r8d, r8d
mov byte [rsp + 0x3b], al
nop
movzx ecx, r8w
movzx edx, r10w
movzx eax, r11w
shr dx, cl
shr ax, cl
inc r8d
and dl, 1
and al, 1
inc r9
add dl, dl
or dl, al
cmp r8d, 0x10
mov byte [r9 - 1], dl
jl 0x21410
xor eax, eax
mov qword [rsp + 0xd0], rbx
lea rbx, [rsp + 0x40]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x70], rax
mov rax, qword [rbp + 0x93]
mov qword [rsp + 0xa8], rdi
mov edi, 6
sub rbx, 4
mov qword [rsp + 0x68], rax
nop
nop
mov eax, dword [rsp + 0x6c]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x64]
lea rcx, [rsp + 0x6c]
mov r9, rbp
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x64], eax
call fcn.00016d00
add rbx, 4
movzx r11d, al
mov eax, dword [rsp + 0x68]
dec edi
xor dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x60]
add word [rsp + 0x5c], r11w
test edi, edi
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x64]
mov dword [rbx], eax
jg 0x21490
mov eax, dword [rsp + 0x44]
mov rdi, qword [rsp + 0xa8]
mov rbp, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0xd0]
mov dword [rsi], eax
mov eax, dword [rsp + 0x40]
mov dword [rsi + 4], eax
mov eax, dword [rsp + 0x4c]
mov dword [rsi + 8], eax
mov eax, dword [rsp + 0x48]
mov dword [rsi + 0xc], eax
mov eax, dword [rsp + 0x54]
mov dword [rsi + 0x10], eax
mov eax, dword [rsp + 0x50]
mov dword [rsi + 0x14], eax
movzx eax, word [rsp + 0x5c]
mov word [rsi + 0x18], ax
mov rsi, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x90]
call fcn.00017320
add rsp, 0xb8
ret
Function at 0x140003220
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
lea rsi, [0x1400240aa]
lea rdi, [0x14003b0a0]
mov rcx, qword [0x14002a048]
movq xmm6, rdi
movq xmm0, rsi
punpcklqdq xmm6, xmm0
test rcx, rcx
je 0x140003277
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140003298
mov rcx, qword [0x14002a048]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14003b080], 0
jne 0x1400032b0
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [0x14002a048]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x14000326a
mov edx, 0x414
lea r12, [rsp + 0x20]
mov qword [rsp + 0x20], 0
mov rbp, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov dword [rsp + 0x28], 3
mov rcx, r12
mov ebx, 0x14
mov word [rsp + 0x40], dx
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rsi
movaps xmmword [rsp + 0x30], xmm6
call rbp
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140003364
test al, 0x10
je 0x140003280
mov ecx, 0x64
call r14
mov eax, 0x414
mov qword [rsp + 0x50], rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
movaps xmmword [rsp + 0x30], xmm6
call rbp
sub ebx, 1
je 0x140003280
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x140003310
jmp 0x140003280
Function at 0x14000f530
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
push rsi
push rbx
movabs rdx, 0x27d4eb2f165667c5
mov r10, rcx
lea rcx, [rcx + 0x28]
mov r9d, dword [r10 + 0x48]
mov r8, qword [r10 + 0x18]
mov r11, qword [r10]
add r9, rcx
add rdx, r8
cmp r11, 0x1f
jbe 0x14000f60d
mov rbx, qword [r10 + 0x10]
mov rdx, qword [r10 + 8]
movabs rdi, 0xc2b2ae3d27d4eb4f
mov rax, qword [r10 + 0x20]
mov rsi, rbx
imul rbx, rdi
mov rbp, rdx
rol rdx, 1
rol rsi, 7
imul rbp, rdi
add rdx, rsi
mov rsi, r8
rol rsi, 0xc
imul r8, rdi
add rdx, rsi
mov rsi, rax
rol rbp, 0x1f
rol rsi, 0x12
imul rax, rdi
add rdx, rsi
rol r8, 0x1f
movabs rsi, 0x9e3779b185ebca87
imul rbp, rsi
imul r8, rsi
xor rdx, rbp
mov rbp, rbx
movabs rbx, 0x85ebca77c2b2ae63
imul rdx, rsi
rol rbp, 0x1f
imul rbp, rsi
add rdx, rbx
xor rdx, rbp
imul rdx, rsi
add rdx, rbx
xor r8, rdx
mov rdx, rax
imul r8, rsi
rol rdx, 0x1f
imul rdx, rsi
lea rax, [r8 + rbx]
xor rdx, rax
imul rdx, rsi
add rdx, rbx
lea rsi, [r10 + 0x30]
add rdx, r11
cmp r9, rsi
jb 0x14000f679
movabs rbx, 0xc2b2ae3d27d4eb4f
mov rcx, rsi
movabs r8, 0x9e3779b185ebca87
movabs r11, 0x85ebca77c2b2ae63
nop word [rax + rax]
mov rax, qword [rcx - 8]
add rcx, 8
imul rax, rbx
rol rax, 0x1f
imul rax, r8
xor rax, rdx
rol rax, 0x1b
imul rax, r8
lea rdx, [rax + r11]
cmp r9, rcx
jae 0x14000f640
mov rax, r9
sub rax, r10
lea rcx, [rax - 0x30]
and rcx, 0xfffffffffffffff8
add rcx, rsi
lea r8, [rcx + 4]
cmp r9, r8
jb 0x14000f6b7
mov eax, dword [rcx]
movabs rcx, 0x9e3779b185ebca87
imul rax, rcx
mov rcx, r8
xor rax, rdx
movabs rdx, 0xc2b2ae3d27d4eb4f
rol rax, 0x17
imul rax, rdx
movabs rdx, 0x165667b19e3779f9
add rdx, rax
cmp r9, rcx
jbe 0x14000f6ee
movabs r10, 0x27d4eb2f165667c5
movabs r8, 0x9e3779b185ebca87
movzx eax, byte [rcx]
add rcx, 1
imul rax, r10
xor rax, rdx
rol rax, 0xb
imul rax, r8
mov rdx, rax
cmp r9, rcx
jne 0x14000f6d0
mov rax, rdx
shr rax, 0x21
xor rax, rdx
movabs rdx, 0xc2b2ae3d27d4eb4f
imul rax, rdx
mov rdx, rax
shr rdx, 0x1d
xor rax, rdx
movabs rdx, 0x165667b19e3779f9
imul rax, rdx
mov rdx, rax
shr rdx, 0x20
xor rax, rdx
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x14001a8d0
Capabilities:
Create directory

Disassembly:
push r14
mov eax, 0x2020
push r13
push r12
push rsi
push rbx
call fcn.14001ca20
sub rsp, rax
mov eax, dword [0x14002a040]
mov r12, rcx
test eax, eax
je 0x14001a9a0
xor ebx, ebx
lea rsi, [0x140039080]
test eax, eax
jg 0x14001a914
jmp 0x14001a940
add rbx, 1
cmp dword [0x14002a040], ebx
jle 0x14001a940
mov rdx, qword [rsi + rbx*8]
mov rcx, r12
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14001a908
mov eax, 1
add rsp, 0x2020
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
mov rcx, r12
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x14001a957
cmp word [r12 + 2], 0x3a
je 0x14001a924
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14001a9f0
movsxd rbx, dword [0x14002a040]
cmp ebx, 0x3ff
jg 0x14001a924
mov rcx, r12
call sub.msvcrt.dll__wcsdup
add dword [0x14002a040], 1
mov r8, rax
lea rax, [0x140039080]
mov qword [rax + rbx*8], r8
jmp 0x14001a924
lea r13, [rsp + 0x20]
lea r14, str._HOME_
mov r8d, 0x1000
mov rdx, r14
mov rcx, r13
call fcn.14001a260
test al, al
je 0x14001aa08
movsxd rbx, dword [0x14002a040]
mov rcx, r13
lea rsi, [0x140039080]
call sub.msvcrt.dll__wcsdup
mov qword [rsi + rbx*8], rax
mov eax, dword [0x14002a040]
add eax, 1
mov dword [0x14002a040], eax
jmp 0x14001a8f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14001a96a
xor eax, eax
jmp 0x14001a929
mov rcx, r14
call fcn.140001e80
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x14001bd20
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
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.140021ef0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140021ef0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x14001bd90
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x14003d174]
mov r12, rcx
test ebx, ebx
jle 0x14001bec0
mov rax, qword [0x14003d178]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x14001bddb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x14001be65
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x14001bdc0
mov rcx, r12
call fcn.14001c760
mov rsi, rax
test rax, rax
je 0x14001bee2
mov rax, qword [0x14003d178]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.14001c890
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14003d178]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14001bec7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001be5e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14001be70
add dword [0x14003d174], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x14003d178]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001be5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14001bd20
nop dword [rax]
xor ebx, ebx
jmp 0x14001bde8
mov rax, qword [0x14003d178]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14001bd20
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14001bd20
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14001c3b0
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x14003d1e0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14003d1c0]
test rbx, rbx
je 0x14001c40c
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14001c403
test r12, r12
je 0x14001c403
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14001c3e8
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]