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

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x2030
call fcn.1400153a0
sub rsp, rax
mov rsi, rcx
mov rax, qword [0x140037008]
xor rax, rsp
mov qword [rsp + 0x2028], rax
mov eax, dword [0x14003bac0]
test eax, eax
je 0x140015275
test eax, eax
jg 0x1400152bd
jmp 0x1400152f2
lea rdx, str._HOME_
lea rcx, [rsp + 0x20]
mov r8d, 0x1000
call fcn.140013360
test al, al
je 0x14001537a
lea rcx, [rsp + 0x20]
call fcn.14001be2c
movsxd rcx, dword [0x14003bac0]
lea rdx, [0x140048b20]
mov qword [rdx + rcx*8], rax
lea eax, [rcx + 1]
mov dword [0x14003bac0], eax
test eax, eax
jle 0x1400152f2
lea rdi, [0x140048b20]
xor ebx, ebx
nop word cs:[rax + rax]
mov rdx, qword [rdi]
mov rcx, rsi
call fcn.14001ca70
test eax, eax
je 0x14001535b
inc rbx
movsxd rax, dword [0x14003bac0]
add rdi, 8
cmp rbx, rax
jl 0x1400152d0
mov rcx, rsi
call fcn.14001caa8
cmp rax, 2
jne 0x140015309
mov bl, 1
cmp word [rsi + 2], 0x3a
je 0x14001535d
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x140015328
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete bl
test bl, bl
je 0x14001535d
cmp dword [0x14003bac0], 0x3ff
jg 0x14001535d
mov rcx, rsi
call fcn.14001be2c
movsxd rcx, dword [0x14003bac0]
lea rdx, [0x140048b20]
mov qword [rdx + rcx*8], rax
lea eax, [rcx + 1]
mov dword [0x14003bac0], eax
mov bl, 1
mov rcx, qword [rsp + 0x2028]
xor rcx, rsp
call fcn.140015400
mov eax, ebx
add rsp, 0x2030
pop rbx
pop rdi
pop rsi
ret
lea rcx, str._HOME_
call fcn.1400143a0
int3

Function at 0x140015bb4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140015bfe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140015bfe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140015bfe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140015bfe
cmp dword [rcx + 0x84], 0xe
jbe 0x140015bfe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140015c00
xor al, al
add rsp, 0x28
ret
Function at 0x14001ace0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001ae34
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14001aea3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001aea3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001aea3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001aea3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001aea3
cmp dword [rcx + 0x84], 0xe
jbe 0x14001aea3
cmp dword [rcx + 0xf8], 0
je 0x14001aea3
mov ecx, ebx
call fcn.14001ad60
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14001afc8
nop
cmp dword [rbp + 0x20], 0
je 0x14001aef1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001ae00
int3

Function at 0x14001cf30
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001cf58
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001cf58
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140022748
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400227cf
mov rsi, rbx
cmp word [rax], bp
je 0x14002278e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140022778
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140022774
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001fbec
mov rdi, rax
test rax, rax
je 0x1400227bc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140016400
mov rbp, rdi
xor ecx, ecx
call fcn.14001ecac
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000b9fc
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140016950], eax
call fcn.14000b77c
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140016950], 0
jne case.default.0x14000ba52
mov ecx, 1
call fcn.14000b77c
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
movabs eax, dword [0xf28eed4b5fe58263]
invalid
Function at 0x140016e50
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140161b60], rbx
je 0x140016eb7
cmp rax, rbx
jne 0x140016eaa
mov ebx, 1
mov esi, ebx
jmp 0x140016ebc
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x140016e8f
mov ebx, 1
mov eax, dword [0x140161b68]
cmp eax, ebx
jne 0x140016ed4
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x140016f40
mov eax, dword [0x140161b68]
test eax, eax
jne 0x140016f35
mov dword [0x140161b68], ebx
lea r15, [0x1400fb010]
lea rdi, [0x1400faff8]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x140016f27
test eax, eax
jne 0x140016f2b
cmp qword [rdi], r14
je 0x140016f1c
mov rax, qword [rdi]
mov rcx, qword [0x1400faf30]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x140016efe
test eax, eax
je 0x140016f3b
mov eax, 0xff
jmp 0x140017096
mov dword [0x140161554], ebx
mov edi, 0x1f
mov eax, dword [0x140161b68]
cmp eax, ebx
jne 0x140016f67
lea rdx, [0x1400faff0]
lea rcx, [0x1400faf38]
call sub.msvcrt.dll__initterm
mov dword [0x140161b68], 2
test esi, esi
jne 0x140016f75
mov rax, r14
xchg qword [0x140161b60], rax
cmp qword [0x140161b80], r14
je 0x140016fa8
lea rcx, [0x140161b80]
call fcn.140017970
test eax, eax
je 0x140016fa8
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140161b80]
mov r9, qword [0x1400faf30]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x140016fc1
mov eax, 0xff
jmp 0x140017096
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x140017047
test ax, ax
je 0x140016fdc
test edx, edx
jne 0x140017047
sub ax, bx
cmp ax, di
ja 0x140016ff2
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x140016fdc
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140014730
mov dword [0x140161550], eax
cmp dword [0x140161570], r14d
jne 0x140017030
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140161554], r14d
jne 0x140017045
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140161550]
jmp 0x140017096
cmp ax, 0x22
jne 0x14001705b
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x140016fca
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.1401fe000
add rsp, 0x28
jmp 0x140016e50
Function at 0x14001785c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400178a8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400178a0
cmp dword [rcx + 0x3c], edx
jl 0x1400178a0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400178a0
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 0x1400178a8
mov rax, rdx
add rsp, 0x18
ret

Function at 0x14001bd20
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
and qword [rcx + 0x18], 0
mov rbx, rcx
and qword [rcx + 0x20], 0
xor edx, edx
and qword [rcx + 0x28], 0
mov r8d, 0x800
and qword [rcx + 0x30], 0
and qword [rcx + 0x38], 0
mov byte [rcx + 0x10], 0
lea rcx, str.amsi.dll
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
nop dword [rax + rax]
mov qword [rbx], rax
test rax, rax
je 0x14001be42
lea rdx, str.AmsiInitialize
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
mov rcx, qword [rbx]
lea rdx, str.AmsiUninitialize
mov qword [rbx + 0x18], rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
mov rcx, qword [rbx]
lea rdx, str.AmsiScanBuffer
mov qword [rbx + 0x28], rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
mov rcx, qword [rbx]
lea rdx, str.AmsiOpenSession
mov qword [rbx + 0x20], rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
mov rcx, qword [rbx]
lea rdx, str.AmsiCloseSession
mov qword [rbx + 0x30], rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
cmp qword [rbx + 0x18], 0
mov qword [rbx + 0x38], rax
je 0x14001be2d
cmp qword [rbx + 0x20], 0
je 0x14001be2d
cmp qword [rbx + 0x28], 0
je 0x14001be2d
cmp qword [rbx + 0x30], 0
je 0x14001be2d
test rax, rax
je 0x14001be2d
mov rax, qword [rbx + 0x18]
lea rdx, [rbx + 8]
lea rcx, str.VSSAMSI
call qword [0x1400faf30]
test eax, eax
js 0x14001be2d
mov byte [rbx + 0x10], 1
cmp byte [rbx + 0x10], 0
jne 0x14001be42
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
nop dword [rax + rax]
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x1400443f4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x30
and qword [rcx + 8], 0
xorps xmm0, xmm0
and dword [rcx + 0x18], 0
xor eax, eax
and qword [rcx + 0x20], 0
mov rbx, rcx
and dword [rcx + 0x28], 0
movups xmmword [rcx + 0x30], xmm0
movups xmmword [rcx + 0x40], xmm0
mov qword [rcx + 0x50], rax
mov byte [rcx + 0x58], al
add rcx, 0x60
call fcn.14001b780
and qword [rsp + 0x50], 0
lea rax, [rsp + 0x50]
lea rdi, [rbx + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
mov dword [rdi], 1
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftOle
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400444dc
and dword [rsp + 0x48], eax
lea r9, [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, str.EnableATLEnumClassLock
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x40], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
cmp dword [rsp + 0x48], 4
mov ecx, 0xd
cmovne eax, ecx
test eax, eax
je 0x1400444cb
mov dword [rdi], 1
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
lea rax, [0x1400f9a08]
mov qword [rbx], rax
call fcn.140012130
mov rax, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400c7430
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x810]
sub rsp, 0x910
mov rax, qword [0x1401613e0]
xor rax, rsp
mov qword [rbp + 0x800], rax
mov rdi, rcx
call qword [sym.imp.VssTrace.DLL_Ordinal_11]
nop dword [rax + rax]
cmp eax, dword [rdi + 4]
je 0x1400c75a4
mov rdx, qword [rdi + 0x28]
lea r8, [rsp + 0x50]
mov ecx, dword [rdi + 0x24]
xor ebx, ebx
mov dword [rsp + 0x50], ebx
mov dword [rdi + 4], eax
call qword [sym.imp.VssTrace.DLL_Ordinal_8]
nop dword [rax + rax]
test eax, eax
je 0x1400c749e
mov eax, dword [rsp + 0x50]
jmp 0x1400c74ba
mov rcx, qword [rdi + 0x60]
test rcx, rcx
je 0x1400c74ae
call fcn.1400c3de0
jmp 0x1400c74ba
call qword [sym.imp.VssTrace.DLL_Ordinal_6]
nop dword [rax + rax]
mov dword [rdi], eax
mov eax, dword [rdi + 4]
cmp dword [0x140161400], eax
je 0x1400c75a4
xor edx, edx
lea rcx, [rbp]
mov r8d, 0x800
call sub.msvcrt.dll_memset
lea rdx, [rbp]
call fcn.1400c3884
lea rax, str.base_stor_vssmodules_trace_fntracer.cpp
mov dword [rsp + 0x70], 0x24f
mov qword [rsp + 0x58], rax
lea rcx, [rbp - 0x80]
xor edx, edx
mov dword [rsp + 0x74], reloc.VssTrace.DLL_Ordinal_11
lea rax, str.CVssFunctionTracer::UpdateLocalIsTracingEnabledFlag
mov dword [rsp + 0x78], 0xff
mov qword [rsp + 0x60], rax
lea rax, str.TRCTRCC
mov qword [rsp + 0x68], rax
lea r8d, [rdx + 0x78]
mov dword [rbp - 8], 0x1000000
call sub.msvcrt.dll_memset
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineW]
nop dword [rax + rax]
mov rbx, rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcessId]
nop dword [rax + rax]
mov ecx, dword [rdi + 4]
lea r8, str.TRACING_STARTED
mov dword [rsp + 0x48], ecx
lea rdx, [rsp + 0x58]
mov ecx, dword [0x140161400]
mov r9d, 0x78
mov dword [rsp + 0x40], ecx
lea rcx, [rbp]
mov qword [rsp + 0x38], rcx
mov rcx, rdi
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], eax
lea rax, str.Tracing_started_or_updated._PID_d__CommandLine__s___UserName__s_._SQN__d_____d_
mov qword [rsp + 0x20], rax
call fcn.140004730
mov eax, dword [rdi + 4]
mov dword [0x140161400], eax
mov rcx, qword [rbp + 0x800]
xor rcx, rsp
call fcn.1400170f0
lea r11, [rsp + 0x910]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1400da92c
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
lea r12, str.base_stor_vssmodules_registry_registry.cxx
mov qword [rsp + 0x40], r12
lea r13, str.CVssRegistryKey::SetBinaryValue
mov qword [rsp + 0x48], r13
lea rax, str.REGREGSC
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x16a
mov dword [rsp + 0x5c], reloc.VssTrace.DLL_Ordinal_11
mov dword [rsp + 0x60], 0xff
mov dword [rbp - 0x20], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x10]
call fcn.1400c2080
nop
mov dword [rsp + 0x28], 0x48
mov qword [rsp + 0x20], rsi
mov r9d, 3
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rdi + 8]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x1400daa7e
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r13
lea rax, str.REGREGSC
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x17d
mov dword [rsp + 0x5c], reloc.VssTrace.DLL_Ordinal_11
mov dword [rsp + 0x60], 0xff
mov dword [rbp - 0x20], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
mov rcx, qword [rdi + 0x18]
test ebx, ebx
jle 0x1400daa4a
movzx ebx, bx
or ebx, 0x80070000
mov dword [rsp + 0x38], 0x48
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rcx
mov rax, qword [rdi + 8]
mov qword [rsp + 0x20], rax
lea r9, str.RegSetValueExW_0x_08lx__s_0_REG_BINARY__p._lu_
mov r8d, ebx
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x10]
call fcn.1400c5ee8
nop
lea rcx, [rbp - 0x10]
call fcn.140006990
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
Function at 0x140002170
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rsi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov rdi, rcx
movabs rbp, 0x9e3779b185ebca87
movabs r15, 0x27d4eb2f165667c5
movabs r14, 0xc2b2ae3d27d4eb4f
movabs r12, 0x7a1435883d4d519d
cmp rsi, 0x20
jb 0x14000226b
mov rcx, qword [rcx + 8]
mov r8, qword [rdi + 0x18]
mov r9, qword [rdi + 0x20]
mov rax, r8
mov rdx, qword [rdi + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rdx
rol rax, 7
add r10, rax
mov rax, rcx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rcx, r14
imul rdx, r14
imul r8, r14
imul r9, r14
rol rcx, 0x1f
imul rcx, rbp
rol rdx, 0x1f
xor r10, rcx
rol r8, 0x1f
imul r10, rbp
imul rdx, rbp
imul r8, rbp
sub r10, r12
rol r9, 0x1f
xor r10, rdx
imul r10, rbp
imul r9, rbp
sub r10, r12
xor r10, r8
imul r10, rbp
sub r10, r12
xor r10, r9
imul r10, rbp
add rax, r10
add rax, rsi
jmp 0x140002273
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x1400022aa
nop dword [rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, r14
add r11, 8
rol rcx, 0x1f
imul rcx, rbp
xor rax, rcx
rol rax, 0x1b
imul rax, rbp
sub rax, r12
cmp rdx, rbx
jbe 0x140002280
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x1400022d5
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rbp
xor rax, rcx
rol rax, 0x17
imul rax, r14
add rax, r8
cmp r11, rbx
jae 0x1400022fb
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r15
xor rax, rcx
rol rax, 0xb
imul rax, rbp
cmp r11, rbx
jb 0x1400022e0
mov rbx, qword [rsp + 0x20]
mov rcx, rax
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
shr rcx, 0x21
xor rcx, rax
imul rcx, r14
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
pop r12
ret

Function at 0x14000a450
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14002c008]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a495
xor al, al
jmp 0x14000a4e2
cmp word [rbx], 0
je 0x14000a4ad
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a4a0
cmp word [rsp + 0x30], 0
je 0x14000a4db
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a503
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a4c0
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000b690
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000f530
int3
Function at 0x14000ad00
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.14001f540
sub rsp, rax
mov rax, qword [0x14002c008]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x140030580]
lea rsi, [0x1400325b0]
mov rdi, rcx
test r11d, r11d
jne 0x14000ad79
mov r8d, 0x1000
lea rdx, str._HOME_
lea rcx, [rsp + 0x20]
call fcn.14000a510
test al, al
je 0x14000ae5f
lea rcx, [rsp + 0x20]
call fcn.140013b7c
movsxd r11, dword [0x140030580]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x140030580], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000adb4
mov r10, rsi
mov r8, qword [r10]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000ada4
add rax, 2
test ecx, ecx
jne 0x14000ad90
test edx, edx
je 0x14000add7
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000ad84
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000adc0
cmp rax, 2
jne 0x14000addb
cmp word [rdi + 2], 0x3a
jne 0x14000addb
mov al, 1
jmp 0x14000ae3e
xor edx, edx
mov qword [rsp + 0x2048], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x14000ae08
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000ae08
mov bl, 1
jmp 0x14000ae0c
test bl, bl
je 0x14000ae33
cmp dword [0x140030580], 0x400
jge 0x14000ae33
mov rcx, rdi
call fcn.140013b7c
movsxd rdx, dword [0x140030580]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x140030580], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000b690
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str._HOME_
call fcn.14000ab50
int3
Function at 0x14000af80
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x140030588]
test rcx, rcx
je 0x14000afbb
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000afae
mov rcx, qword [0x140030588]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x140030588]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1400345d8], 0
je 0x14000b0ae
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x140028878]
mov qword [rsp + 0x80], rsi
lea rsi, [0x1400305b0]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b08f
test al, 0x10
je 0x14000b08f
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000b035
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x14000f524
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000f383
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f383
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f383
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f383
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f383
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f383
cmp dword [rcx + 0xf8], 0
je 0x14000f383
mov ecx, ebx
call fcn.14000f440
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000f210
nop
cmp dword [rbp + 0x20], 0
je 0x14000f3d1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000f3dc
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000f314