joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140046250
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0xa0
mov rax, qword [0x140064040]
xor rax, rsp
mov qword [rsp + 0x90], rax
movzx eax, byte [rcx]
mov ebx, edx
mov r8, rcx
test al, al
je 0x140046290
cmp al, 0x25
jne 0x140046284
cmp byte [r8 + 1], al
jne 0x140046290
inc r8
movzx eax, byte [r8 + 1]
inc r8
test al, al
jne 0x140046277
movzx edx, byte [r8]
cmp dl, 0x25
jne 0x1400463e8
cmp byte [r8 + 1], dl
je 0x1400463e8
lea r11, [rsp + 0x28]
mov r9, r8
nop
lea eax, [rdx - 0x41]
movsx r10d, dl
cmp al, 0x19
ja 0x1400462cd
lea ecx, [r10 - 0x41]
mov eax, 1
shl eax, cl
test eax, 0x900
je 0x1400462f5
sub dl, 0x61
cmp dl, 0x19
ja 0x1400462e7
lea ecx, [r10 - 0x61]
mov eax, 1
shl eax, cl
test eax, 0x2480a80
je 0x1400462f5
movzx edx, byte [r9 + 1]
inc r9
test dl, dl
jne 0x1400462b0
jmp 0x1400462f8
inc r9
cmp r8, r9
jae 0x14004632f
movabs rdx, 0x800000000000009
nop word [rax + rax]
movzx ecx, byte [r8]
inc r8
lea eax, [rcx - 0x24]
cmp al, 0x3b
ja 0x140046324
bt rdx, rax
jb 0x14004632a
mov byte [r11], cl
inc r11
cmp r8, r9
jb 0x140046310
movaps xmm3, xmm2
mov byte [r11], 0
movq r9, xmm2
lea r8, [rsp + 0x28]
mov edx, 0x40
lea rcx, [rsp + 0x50]
call fcn.140007d60
cmp byte [rsp + 0x50], 0x20
lea rcx, [rsp + 0x50]
jne 0x140046368
nop dword [rax + rax]
inc rcx
cmp byte [rcx], 0x20
je 0x140046360
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x1400463da
movzx r8d, byte [rcx]
movzx eax, r8b
cmp r8b, 0x2d
jne 0x140046388
lea rax, [rcx + 1]
mov rcx, rax
movzx eax, byte [rax]
cmp al, 0x2b
lea rdx, [rcx + 1]
xorps xmm1, xmm1
cmovne rdx, rcx
movzx eax, byte [rdx]
cmp al, 0x30
jl 0x1400463c8
movsd xmm2, qword [0x14005b2d8]
cmp al, 0x39
ja 0x1400463c8
movsx eax, byte [rdx]
inc rdx
sub eax, 0x30
mulsd xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rdx]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
cmp al, 0x30
jge 0x1400463a4
cmp r8b, 0x2d
jne 0x1400463e3
xorps xmm1, xmmword [0x14005ba70]
movaps xmm0, xmm1
jmp 0x1400463eb
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
movaps xmm1, xmm0
movaps xmm0, xmm1
jmp 0x1400463eb
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140051ff0
add rsp, 0xa0
pop rbx
ret
Function at 0x140050280
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x1400502b5
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x20], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.14002edc0
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x1400503f4
mov qword [rsp + 0x58], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rbp
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, qword [rsi + 0x30]
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x14005036d
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x1400503e3
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x1400503aa
mov r10, qword [rdx]
cmp r10, rax
je 0x1400503a4
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x1400503e3
cmp r9, rdx
je 0x1400503bf
nop
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x140050405
cmp r9, rdx
jne 0x1400503b0
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x140050320
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x1400503e3
Function at 0x140051fc0
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, 7
syscall
ret

Function at 0x140052d9c
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x18], rbx
mov dword [rsp + 0x10], edx
push rsi
push rdi
push r14
sub rsp, 0x30
mov rsi, qword [0x140049c40]
mov rdi, rcx
mov rax, qword [0x140049c48]
mov ebx, 1
jmp 0x140002e5a
test ebx, ebx
js 0x140002f52
mov r14, qword [rsi]
test r14, r14
je 0x140002e56
and qword [rsp + 0x50], 0
cmp qword [r14 + 0x10], 0
jne 0x140002df5
xor ebx, ebx
jmp 0x140002e56
mov rcx, qword [r14 + 0x18]
lea r8, [rsp + 0x50]
mov rax, qword [r14 + 0x10]
lea rdx, [0x140040a40]
call qword [0x140040278]
mov ebx, eax
test eax, eax
js 0x140002e38
mov rdx, qword [rsp + 0x50]
lea rax, [r14 + 0x28]
mov rcx, qword [r14]
mov r9d, 5
mov qword [rsp + 0x20], rax
lea r8d, [r9 - 1]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoRegisterClassObject]
mov ebx, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140002e4f
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140040278]
mov rax, qword [0x140049c48]
add rsi, 8
cmp rsi, rax
jb 0x140002dd4
test ebx, ebx
js 0x140002f52
jne 0x140002f4e
cmp byte [rdi + 0x60], 0
je 0x140002f04
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rdi + 0x50], rax
test rax, rax
je 0x140002efd
lea rax, [rsp + 0x58]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x140003770]
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov rsi, rax
test rax, rax
jne 0x140002ec9
mov rcx, qword [rdi + 0x50]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test rsi, rsi
je 0x140002efd
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoResumeClassObjects]
mov ebx, eax
test eax, eax
jns 0x140002ef2
mov rcx, qword [rdi + 0x50]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov edx, dword [rdi + 0x58]
mov rcx, rsi
add edx, edx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x140002f0c
mov ebx, 0x80004005
jmp 0x140002f10
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoResumeClassObjects]
mov ebx, eax
test ebx, ebx
jns 0x140002f52
mov rdi, qword [0x140049c40]
xor eax, eax
mov rcx, qword [0x140049c48]
jmp 0x140002f47
test eax, eax
jne 0x140002f52
mov rdx, qword [rdi]
test rdx, rdx
je 0x140002f43
cmp dword [rdx + 0x28], eax
je 0x140002f43
mov ecx, dword [rdx + 0x28]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoRevokeClassObject]
mov rcx, qword [0x140049c48]
add rdi, 8
cmp rdi, rcx
jb 0x140002f22
jmp 0x140002f52
mov byte [rdi + 0x60], 0
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140009880
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x150
mov rax, qword [0x1400491f8]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor ebx, ebx
lea r8, [rsp + 0x30]
mov r12, rdx
mov r14, rcx
mov r13d, 0x400
mov ebp, ebx
mov ecx, r13d
mov edi, ebx
lea esi, [rbx + 4]
mov r9d, esi
lea edx, [rbx + 0xe]
lea r15d, [rbx + 1]
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
jne 0x1400098ee
lea r8, [0x140040ec8]
mov edx, esi
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_wcscpy_s]
mov rsi, r14
cmp r14, r13
jb 0x14000990f
cmp edi, 4
jae 0x14000990f
mov ebp, esi
add edi, r15d
and ebp, 0x3ff
shr rsi, 0xa
cmp rsi, r13
jae 0x1400098f6
test edi, edi
je 0x140009943
sub edi, r15d
je 0x14000993c
sub edi, r15d
je 0x140009935
sub edi, r15d
je 0x14000992e
cmp edi, r15d
jne 0x140009943
mov edx, 0x324
jmp 0x140009950
mov edx, 0x323
jmp 0x140009950
mov edx, 0x322
jmp 0x140009950
mov edx, 0x321
jmp 0x140009950
mov rsi, r14
mov ebp, ebx
mov r15d, ebx
mov edx, 0x325
mov rcx, qword [0x140049868]
lea r8, [rsp + 0xc0]
mov edi, 0x40
mov r9d, edi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadStringW]
test eax, eax
jne 0x140009987
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400099f2
lea rcx, [rsp + 0x40]
mov r9, rsi
mov rdx, rdi
test r15d, r15d
je 0x140009a1f
imul eax, ebp, 0x64
lea r8, str._I64u_s_02d
shr eax, 0xa
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.msvcrt.dll_swprintf_s]
test eax, eax
jle 0x1400099ed
lea r8, [rsp + 0x40]
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.msvcrt.dll_wcscpy_s]
test eax, eax
jne 0x1400099ed
lea r8, [rsp + 0xc0]
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.msvcrt.dll_wcscat_s]
test eax, eax
je 0x1400099f2
mov ebx, 0x80004005
mov eax, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14003d760
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x150
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, str._I64u
call qword [sym.imp.msvcrt.dll_swprintf_s]
jmp 0x1400099bc
Function at 0x140013c64
Capabilities:
Set file attributes

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbp
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
push r14
sub rsp, 0x70
mov rax, qword gs:[0x58]
mov r14, rcx
mov ecx, 8
mov ebp, r8d
mov rsi, rdx
mov r9, qword [rax]
lea rax, str.CTieredVolume::SetDesiredStorageClass
mov qword [rcx + r9], rax
lea rcx, [r11 - 0x30]
call fcn.140008b4c
and qword [rsp + 0x98], 0
lea r8, [rsp + 0x98]
mov rdx, rsi
mov rcx, r14
call fcn.140012d84
mov dword [rsp + 0x50], eax
mov edi, eax
test eax, eax
jns 0x140013d03
mov rcx, qword [0x140049138]
lea rax, [0x140049138]
cmp rcx, rax
je 0x140013d9d
test byte [rcx + 0x1c], 1
je 0x140013d9d
cmp byte [rcx + 0x19], 2
jb 0x140013d9d
mov edx, 0x10b
mov dword [rsp + 0x30], edi
jmp 0x140013d75
mov rcx, qword [rsp + 0x98]
lea r8, [rsp + 0x40]
xor eax, eax
mov dword [rsp + 0x20], 0x43
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x40], ebp
lea r9d, [rax + 8]
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
mov ebp, eax
test eax, eax
jns 0x140013d9d
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call fcn.140003cb8
mov edi, eax
mov dword [rsp + 0x50], eax
mov rcx, qword [0x140049138]
lea rax, [0x140049138]
cmp rcx, rax
je 0x140013d9d
test byte [rcx + 0x1c], 1
je 0x140013d9d
cmp byte [rcx + 0x19], 2
jb 0x140013d9d
mov edx, 0x10c
mov dword [rsp + 0x30], ebp
mov r9, qword [rsi + 8]
lea rax, [r14 + 0x2a0]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400414e8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsi]
mov qword [rsp + 0x20], rax
call fcn.14000b050
cmp qword [rsp + 0x98], 0
je 0x140013db6
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntdll.dll_NtClose]
lea rcx, [rsp + 0x48]
call fcn.1400089a4
lea r11, [rsp + 0x70]
mov eax, edi
mov rbp, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r14
ret
Function at 0x140015bfc
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbp
mov qword [rsp + 0x10], rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rax, qword gs:[0x58]
mov rbp, rcx
mov ecx, 8
mov r14, r8
mov r15, rdx
mov r9, qword [rax]
lea rax, str.CTieredVolume::QueryDesiredStorageClass
mov qword [rcx + r9], rax
lea rcx, [rsp + 0x48]
call fcn.140008b4c
and qword [rsp + 0xa8], 0
lea r8, [rsp + 0xa8]
mov rdx, r15
mov rcx, rbp
call fcn.140012d84
mov dword [rsp + 0x50], eax
mov esi, eax
test eax, eax
jns 0x140015c9d
mov rcx, qword [0x140049138]
lea rax, [0x140049138]
cmp rcx, rax
je 0x140015d45
test byte [rcx + 0x1c], 1
je 0x140015d45
cmp byte [rcx + 0x19], 2
jb 0x140015d45
mov edx, 0x13c
mov dword [rsp + 0x30], esi
jmp 0x140015d1d
mov rcx, qword [rsp + 0xa8]
lea r8, [rsp + 0x40]
mov r9d, 8
mov dword [rsp + 0x20], 0x43
lea rdx, [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov edi, eax
test eax, eax
js 0x140015cd2
mov eax, dword [rsp + 0x40]
mov dword [r14], eax
jmp 0x140015d45
cmp edi, 0xc000050c
jne 0x140015ce0
and dword [r14], 0
jmp 0x140015d45
mov ecx, edi
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call fcn.140003cb8
mov esi, eax
mov dword [rsp + 0x50], eax
mov rcx, qword [0x140049138]
lea rax, [0x140049138]
cmp rcx, rax
je 0x140015d45
test byte [rcx + 0x1c], 1
je 0x140015d45
cmp byte [rcx + 0x19], 2
jb 0x140015d45
mov edx, 0x13d
mov dword [rsp + 0x30], edi
mov r9, qword [r15 + 8]
lea rax, [rbp + 0x2a0]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400414e8]
mov qword [rsp + 0x28], rax
mov rax, qword [r15]
mov qword [rsp + 0x20], rax
call fcn.14000b050
cmp qword [rsp + 0xa8], 0
je 0x140015d5e
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ntdll.dll_NtClose]
lea rcx, [rsp + 0x48]
call fcn.1400089a4
lea r11, [rsp + 0x70]
mov eax, esi
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140018fa0
Capabilities:
Access peb ldr_data

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, qword gs:[0x58]
mov rdi, rcx
mov ecx, 8
mov esi, r9d
mov rbp, r8
mov rbx, rdx
mov r10, qword [rax]
lea rax, str.TieringJetDatabase::Initialize
mov qword [rcx + r10], rax
lea rcx, [r11 - 0x18]
call fcn.140008b4c
mov rax, qword [rsp + 0x70]
mov qword [rdi + 0x68], rax
mov qword [rdi], rbx
mov dword [rdi + 0x60], esi
mov qword [rdi + 0x70], rbp
cmp esi, 1
jne 0x140019006
lea rax, str.TieringEngineHeat
jmp 0x140019024
cmp esi, 2
jne 0x140019014
lea rax, str.TieringPinnedFiles
jmp 0x140019024
cmp esi, 3
jne 0x1400190bd
lea rax, str.TieringPinnedCacheFiles
mov qword [rdi + 0x58], rax
xor esi, esi
mov rcx, qword [rdi + 0x50]
test rcx, rcx
je 0x14001903b
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
jmp 0x1400190b0
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov rbx, rax
test rax, rax
jne 0x1400190ac
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx r8d, ax
or r8d, 0x80070000
test eax, eax
cmovle r8d, eax
mov dword [rsp + 0x38], r8d
mov rcx, qword [0x140049138]
lea rax, [0x140049138]
cmp rcx, rax
je 0x1400190ac
test byte [rcx + 0x1c], 1
je 0x1400190ac
cmp byte [rcx + 0x19], 2
jb 0x1400190ac
mov r9, qword [rdi + 0x70]
lea edx, [rbx + 0x3d]
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x20], r8d
lea r8, [0x1400417e8]
call fcn.1400040b8
mov qword [rdi + 0x50], rbx
mov word [rdi + 0x4c], si
mov byte [rdi + 0x9c], 1
jmp 0x140019108
mov ebx, 0x8009300f
mov dword [rsp + 0x38], ebx
mov rcx, qword [0x140049138]
lea rax, [0x140049138]
cmp rcx, rax
je 0x140019106
test byte [rcx + 0x1c], 1
je 0x140019106
cmp byte [rcx + 0x19], 2
jb 0x140019106
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400417e8]
mov edx, 0x3c
mov dword [rsp + 0x28], ebx
mov r9d, esi
mov qword [rsp + 0x20], rbp
call fcn.14001687c
mov esi, ebx
lea rcx, [rsp + 0x30]
call fcn.1400089a4
mov rbx, qword [rsp + 0x50]
mov eax, esi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14003d4c0
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 [0x140049cc8], rbx
je 0x14003d527
cmp rax, rbx
jne 0x14003d51a
mov ebx, 1
mov esi, ebx
jmp 0x14003d52c
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14003d4ff
mov ebx, 1
mov eax, dword [0x140049cd0]
cmp eax, ebx
jne 0x14003d544
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14003d5b0
mov eax, dword [0x140049cd0]
test eax, eax
jne 0x14003d5a5
mov dword [0x140049cd0], ebx
lea r15, [0x1400402d0]
lea rdi, [0x1400402b8]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14003d597
test eax, eax
jne 0x14003d59b
cmp qword [rdi], r14
je 0x14003d58c
mov rax, qword [rdi]
mov rcx, qword [0x140040278]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14003d56e
test eax, eax
je 0x14003d5ab
mov eax, 0xff
jmp 0x14003d706
mov dword [0x140049284], ebx
mov edi, 0x1f
mov eax, dword [0x140049cd0]
cmp eax, ebx
jne 0x14003d5d7
lea rdx, [0x1400402b0]
lea rcx, [0x140040280]
call sub.msvcrt.dll__initterm
mov dword [0x140049cd0], 2
test esi, esi
jne 0x14003d5e5
mov rax, r14
xchg qword [0x140049cc8], rax
cmp qword [0x140049ce8], r14
je 0x14003d618
lea rcx, [0x140049ce8]
call fcn.14003db10
test eax, eax
je 0x14003d618
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140049ce8]
mov r9, qword [0x140040278]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14003d631
mov eax, 0xff
jmp 0x14003d706
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14003d6b7
test ax, ax
je 0x14003d64c
test edx, edx
jne 0x14003d6b7
sub ax, bx
cmp ax, di
ja 0x14003d662
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14003d64c
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.1400020b4
mov dword [0x140049280], eax
cmp dword [0x1400492a0], r14d
jne 0x14003d6a0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140049284], r14d
jne 0x14003d6b5
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140049280]
jmp 0x14003d706
cmp ax, 0x22
jne 0x14003d6cb
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 0x14003d63a
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.1400dc000
add rsp, 0x28
jmp 0x14003d4c0
Function at 0x14003da0c
Capabilities:
Parse pe header

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

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x4f0
mov rbx, qword [rdx + 8]
mov rcx, rbx
lea rdi, [rsp + 0x20]
mov dword [rsp + 0x50], 0x100002
mov rsi, r8
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1400014d2
mov qword [rsp + 0xa0], rsi
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x1400014d2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
nop
add rsp, 0x4f0
pop rbx
pop rsi
pop rdi
ret

Function at 0x140001583
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x4f0
mov rbx, rcx
mov esi, edx
mov r9, r8
test r8, r8
je 0x1400015a3
cmp byte [r8], 0
jne 0x1400015b1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x140001644
lea rdx, [rsp + 0x8c]
xor eax, eax
lea rbp, [rsp + 0x70]
mov ecx, 0x19
mov rdi, rdx
lea r8, section..rdata
mov edx, 0x400
mov dword [rsp + 0x88], 0x68
rep stosd dword [rdi], eax
mov ecx, 6
mov rdi, rbp
lea r12, [rsp + 0x88]
rep stosd dword [rdi], eax
lea rdi, [rsp + 0xf0]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__snprintf]
xor eax, eax
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x48], rbp
mov rdx, rdi
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140001671
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140001671
movups xmm0, xmmword [rsp + 0x70]
lea rdx, [rsp + 0x50]
movsxd r9, esi
mov r8, rbx
mov rax, qword [rsp + 0x80]
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rax
call fcn.1400014dd
nop
add rsp, 0x4f0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x14000167f
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
sub rsp, 0x68
lea rsi, str.MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
xor eax, eax
mov r9, rcx
lea rdi, [rsp + 0x20]
mov ecx, 0x10
mov r10d, edx
rep movsd dword [rdi], dword [rsi]
mov rdx, r8
lea r8, [rsp + 0x20]
mov rcx, rax
and ecx, 7
mov cl, byte [rdx + rcx]
xor byte [r8 + rax], cl
inc rax
cmp rax, 0x40
jne 0x1400016a8
xor eax, eax
cmp r10d, eax
jle 0x1400016d7
mov rcx, rax
and ecx, 7
mov cl, byte [rdx + rcx]
xor byte [r9 + rax], cl
inc rax
jmp 0x1400016c0
mov rcx, r9
call fcn.140001450
mov edx, r10d
call fcn.140001583
nop
add rsp, 0x68
pop rsi
pop rdi
ret
Function at 0x140001720
Capabilities:
Connect pipe
Create pipe
Write file on windows
Write pipe

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
xor r8d, r8d
mov r9d, 1
mov rdi, rcx
mov esi, edx
xor ecx, ecx
xor edx, edx
mov dword [rsp + 0x4c], edx
mov edx, 2
mov qword [rsp + 0x38], rcx
lea rcx, [0x14000d040]
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], r8d
mov dword [rsp + 0x20], r8d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov rbx, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400017bf
xor edx, edx
mov rcx, rbx
lea rbp, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x1400017bf
test esi, esi
jle 0x1400017a9
xor eax, eax
mov r9, rbp
mov r8d, esi
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400017b4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400017bf
mov edx, dword [rsp + 0x4c]
add rdi, rdx
sub esi, edx
jmp 0x140001788
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x1400017e6
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
xor r9d, r9d
mov r8d, 3
mov rdi, rcx
mov ebx, edx
xor ecx, ecx
xor edx, edx
mov dword [rsp + 0x4c], edx
mov edx, 0x80000000
lea rbp, [rsp + 0x4c]
mov qword [rsp + 0x30], rcx
lea rcx, [0x14000d040]
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
xor eax, eax
cmp rsi, 0xffffffffffffffff
je 0x140001877
test ebx, ebx
jle 0x14000185c
xor eax, eax
mov r9, rbp
mov r8d, ebx
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000186c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140001877
mov edx, dword [rsp + 0x4c]
add rdi, rdx
sub ebx, edx
jmp 0x14000183b
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret