joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1803f79a2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rax
pushf
mov eax, 0x7518373
pushf
not eax
add eax, 0x8363ca0d
xor eax, 0x80df2ee2
rol eax, 0xdb
popf
pushf
not eax
add eax, 0xc72603f8
xor eax, 0x9db71c69
rol eax, 0xd1
popf
pushf
not eax
add eax, 0xa5a03f43
xor eax, 0x9be54a31
rol eax, 0x82
popf
cmp eax, 2
jne 0x1803f79f2
popf
pop rax
jmp 0x1803f7b6e
cmp eax, 0
jne 0x1803f7a01
popf
pop rax
jmp 0x1803f7a10
cmp eax, 1
jne 0x1803f7a10
popf
pop rax
jmp 0x1803f7ad3
sub rsp, 0x38
mov rax, qword [0x18027c030]
mov r10, qword [rax + 0x3ed0]
mov r9, qword [r10 + 0x1a0]
cmp dword [r9 + 0x10], 1
je 0x1803f7a7a
push rax
pushf
mov eax, 0xe2efdff9
pushf
not eax
add eax, 0x99c9f60d
xor eax, 0xe366bcbc
rol eax, 0x96
popf
pushf
not eax
add eax, 0xbf9cae00
xor eax, 0xe1bafa5f
rol eax, 0xfe
popf
pushf
not eax
add eax, 0xb4130f10
xor eax, 0xf7739fed
rol eax, 0xb7
popf
jmp 0x1803f79e3
push rax
pushf
mov eax, 0x8a797a50
pushf
not eax
add eax, 0xe07d1808
xor eax, 0x99ead926
rol eax, 0xfc
popf
pushf
not eax
add eax, 0xc55c1e8c
xor eax, 0xd66f5a6a
rol eax, 0xe7
popf
pushf
not eax
add eax, 0xe9921308
xor eax, 0xd711ccc4
rol eax, 0x5d
popf
pushf
not eax
add eax, 0xe4777325
xor eax, 0xe3906ce3
rol eax, 0xa2
popf
jmp 0x1803f79e3
movups xmm0, xmmword [r9 + 0x3c]
mov rax, qword [r10 + 0x290]
movss xmm4, dword [r9 + 0x3c]
movss xmm3, dword [r9 + 0x40]
movss xmm2, dword [r9 + 0x44]
movss xmm1, dword [r9 + 0x48]
movups xmmword [r10 + 0x230], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r10 + 0x290]
movups xmm0, xmmword [rsp + 0x20]
movsxd rdx, dword [rax + 0x58]
mov rcx, qword [rax + 0x60]
add rdx, rdx
movups xmmword [rcx + rdx*8 - 0x10], xmm0
mov r8d, dword [r9 + 0xc]
lea rcx, [r9 + 0x70]
mov rdx, qword [r10 + 0x290]
inc r8d
add rsp, 0x38
jmp fcn.1800c5a80
add rsp, 0x38
ret
Function at 0x180419ba8
Capabilities:
Authenticate hmac

Disassembly:
push rax
pushf
mov eax, 0x843ec189
pushf
not eax
add eax, 0xb7664a04
xor eax, 0x8d15941d
rol eax, 0x7d
popf
pushf
not eax
add eax, 0xe79116fb
xor eax, 0xefcad36e
rol eax, 0xe6
popf
cmp eax, 0
jne 0x180419be5
popf
pop rax
jmp 0x180419be5
xor r8d, r8d
jmp fcn.1803c43af
Function at 0x140001200
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x2b0
mov rax, qword [0x140012040]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov rbx, rcx
mov qword [rsp + 0x48], rcx
xor edi, edi
mov dword [rsp + 0x40], edi
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], sendto
mov byte [rcx], dil
mov dword [rsp + 0x40], 1
xor edx, edx
mov r8d, 0x105
lea rcx, [rsp + 0x190]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x105
lea rcx, [rsp + 0x80]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x70], edi
mov dword [rsp + 0x78], edi
mov dword [rsp + 0x74], edi
mov dword [rsp + 0x38], 0x105
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
mov r8d, 0x105
lea rdx, [rsp + 0x190]
lea rcx, [0x14000d74c]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x140001328
mov edx, dword [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140002200
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140001e00
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x140001328
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001323
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001323
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000aa0c
mov rax, rbx
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.14000a9b0
mov rbx, qword [rsp + 0x2c8]
add rsp, 0x2b0
pop rdi
ret
Function at 0x1400034e0
Capabilities:
Execute command

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rbx, rcx
cmp qword [0x140012a50], 0
je 0x1400036c8
mov rbp, qword [rcx + 0x10]
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, rbp
cmp rax, 3
jb 0x1400036f0
cmp qword [rbx + 0x18], 0xf
jbe 0x14000352b
mov rbx, qword [rbx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
lea r14, [rbp + 3]
mov edi, select
lea rsi, [rsp + 0x20]
cmp r14, rdi
jbe 0x1400035c9
mov rdi, r14
or rdi, 0xf
cmp rdi, rcx
jbe 0x14000358b
mov rdi, rcx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.14000a9d0
test rax, rax
je 0x1400036ba
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x1400035c4
mov eax, socket
cmp rdi, rax
cmovb rdi, rax
lea rcx, [rdi + 1]
test rcx, rcx
jne 0x1400035a4
xor esi, esi
jmp 0x1400035c4
cmp rcx, 0x1000
jb 0x1400035bc
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400036f6
jmp 0x14000356c
call fcn.14000a9d0
mov rsi, rax
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], rdi
mov ecx, dword [0x14000d7d0]
mov word [rsi], cx
movzx ecx, byte [0x14000d7d2]
mov byte [rsi + 2], cl
lea rcx, [rsi + 3]
mov r8, rbp
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + r14], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
mov r8d, 7
lea rdx, str.cmd.exe
lea rcx, [rsp + 0x48]
call fcn.140002860
nop
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x48]
call fcn.140004a90
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x140003673
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000366e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000366e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000aa0c
movdqa xmm0, xmmword [0x14000dfb0]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], 0
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x1400036db
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400036c1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400036c1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000aa0c
jmp 0x1400036db
cmp qword [rcx + 0x18], 0xf
jbe 0x1400036d2
mov rbx, qword [rcx]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.1400011e0
int3
call fcn.140001140
int3
Function at 0x140003f20
Capabilities:
Create thread

Disassembly:
sub rsp, 0x68
mov rax, qword [0x140012040]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov ecx, 8
call fcn.14000a9d0
lea rcx, [0x1400039e0]
mov qword [rax], rcx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140004570]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140003fbb
cmp dword [rsp + 0x38], 0
je 0x140003faf
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140003faf
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14000a9b0
add rsp, 0x68
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x38], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x1400070e0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x68
mov rax, qword [0x140012040]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov ecx, 8
call fcn.14000a9d0
lea rcx, [0x1400068d0]
mov qword [rax], rcx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140004570]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14000717b
cmp dword [rsp + 0x38], 0
je 0x14000716f
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x14000716f
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14000a9b0
add rsp, 0x68
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x38], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x140007690
Capabilities:
Set console window title

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x140012040]
xor rax, rsp
mov qword [rbp + 0x4f], rax
lea rcx, str.Net_Sense
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
call qword [sym.imp.KERNEL32.dll_FreeConsole]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov ecx, 1
call fcn.14000a9d0
mov rbx, rax
mov qword [rbp + 0x17], rax
lea rax, vtable.std::_Func_impl_no_alloc_void____cdecl___void___void___.0
mov qword [rbp - 0x29], rax
lea rax, [0x140007620]
mov qword [rbp - 0x21], rax
lea rax, [rbp - 0x29]
mov qword [rbp + 0xf], rax
lea rax, [rbp - 0x29]
mov qword [rbp + 0x27], rax
lea rax, str.NetSense
mov qword [0x140012a78], rax
lea rdx, [rbp - 0x29]
call fcn.140005190
nop
mov rcx, qword [rbp + 0xf]
test rcx, rcx
je 0x140007745
mov rax, qword [rcx]
lea rdx, [rbp - 0x29]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
nop
mov qword [0x140012af0], rbx
xor ebx, ebx
mov edi, ebx
mov qword [rbp + 0x17], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp + 0x17]
mov edx, 8
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140007804
mov dword [rbp + 0x1f], ebx
lea rax, [rbp + 0x1f]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov dword [rbp + 0x27], ebx
lea rax, [rbp + 0x1f]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rbp + 0x27]
mov edx, 0xc
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1400077c5
cmp dword [rbp + 0x27], ebx
sete dil
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x140007804
mov rcx, qword [0x140012a78]
mov qword [rbp + 0x2f], rcx
lea rax, [0x1400048c0]
mov qword [rbp + 0x37], rax
mov qword [rbp + 0x3f], rbx
mov qword [rbp + 0x47], rbx
lea rcx, [rbp + 0x2f]
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
setne bl
mov eax, ebx
jmp 0x140007809
mov eax, 0xffffffff
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.14000a9b0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140009630
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x140012040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r9
mov r14, r8
mov rsi, rdx
mov ecx, 0x230
call fcn.14000a9d0
mov rdi, rax
mov qword [rsp + 0x30], rax
mov rdx, rbx
mov rcx, rax
call fcn.140001ed0
mov ecx, dword [rbx + 0x20]
mov dword [rdi + 0x20], ecx
mov ecx, dword [rbx + 0x24]
mov dword [rdi + 0x24], ecx
lea rdx, [rdi + 0x28]
lea rcx, [rbx + 0x28]
mov r8d, 4
nop dword [rax]
movups xmm0, xmmword [rcx]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rdx + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rdx + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rdx + 0x30], xmm1
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rdx + 0x40], xmm0
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rdx + 0x50], xmm1
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rdx + 0x60], xmm0
lea rdx, [rdx + 0x80]
movups xmm1, xmmword [rcx + 0x70]
movups xmmword [rdx - 0x10], xmm1
lea rcx, [rcx + 0x80]
sub r8, 1
jne 0x140009690
mov rax, qword [r14]
mov qword [rdi + 0x228], rax
mov qword [rsp + 0x30], rdi
lea rbx, [rsi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], r8d
mov r9, rdi
lea r8, [0x140009920]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsi], rax
test rax, rax
je 0x140009736
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14000a9b0
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
mov dword [rbx], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x14000b570
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x78
movups xmm3, xmmword [str.ohejWzUUHOQS_]
mov eax, dword [0x14013e760]
xor r9d, r9d
cmp word [0x14013e762], r9w
movaps xmmword [rsp + 0x60], xmm7
movq xmm7, qword [0x14013e758]
movups xmmword [rsp + 0x40], xmm3
mov dword [rsp + 0x58], eax
movq qword [rsp + 0x50], xmm7
je 0x1400098d4
cmp dword [reloc.WS2_32.dll_accept], 2
mov ecx, r9d
jl 0x140009890
movdqa xmm2, xmmword [0x140146400]
mov ecx, ntohl
movdqa xmm4, xmmword [0x1401468a0]
movdqa xmm1, xmm2
movdqa xmm5, xmmword [str.33336666]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movq xmm1, xmm3
paddw xmm2, xmmword [0x140146510]
movdqa xmm3, xmmword [0x140146460]
xorps xmm2, xmm1
movq qword [rsp + 0x40], xmm2
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm3, xmm0
pshufhw xmm0, xmm3, 0xd8
movdqa xmm3, xmmword [0x140146470]
pshuflw xmm1, xmm0, 0xd8
movq xmm0, qword [rsp + 0x48]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
paddw xmm2, xmmword [0x140146510]
xorps xmm2, xmm0
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movq qword [rsp + 0x48], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm3, xmm0
pshufhw xmm0, xmm3, 0xd8
pshuflw xmm1, xmm0, 0xd8
movq xmm0, xmm7
pshufd xmm2, xmm1, 0xd8
paddw xmm2, xmmword [0x140146510]
xorps xmm2, xmm0
movq qword [rsp + 0x50], xmm2
mov eax, ecx
lea r8, [rsp + 0x40]
lea r8, [r8 + rax*2]
nop dword [rax + rax]
mov eax, 0xa0a0a0a1
lea r8, [r8 + 2]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub ax, dx
movzx eax, ax
imul edx, eax, 0x33
add dx, cx
inc ecx
xor word [r8 - 2], dx
cmp ecx, 0xe
jl 0x1400098a0
mov qword [rsp + 0x30], r9
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x28], r9d
mov edx, 0xc0000000
mov r8d, 3
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x14015e250], rax
test rax, rax
je 0x140009919
cmp rax, 0xffffffffffffffff
setne al
movaps xmm7, xmmword [rsp + 0x60]
add rsp, 0x78
ret
movaps xmm7, xmmword [rsp + 0x60]
add rsp, 0x78
ret
Function at 0x140009f00
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x14015d080]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rdx
mov rbx, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov r8d, Ordinal_35
lea rdx, str.SystemCurrentControlSetServices_
lea rcx, [rsp + 0x40]
call fcn.140004e20
nop
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0xf
jbe 0x140009f56
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.1400106c0
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rdx, qword [rsp + 0x40]
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x14000a07b
mov byte [rsp + 0x38], 1
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Type
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x14000a07b
mov byte [rsp + 0x39], 3
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x39]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.ErrorControl
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x14000a07b
mov byte [rsp + 0x3a], 3
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x3a]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Start
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x14000a07b
mov eax, dword [rbx + 0x10]
cmp qword [rbx + 0x18], 0xf
jbe 0x14000a041
mov rbx, qword [rbx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x14000a07b
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
sete bl
jmp 0x14000a07d
xor bl, bl
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14000a0bd
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a0b8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000a0b8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14010c114
movzx eax, bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14010c0b0
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
Function at 0x14000f450
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x14000f478
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000f49e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000f4a0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14000f4f9
test ecx, ecx
jle 0x14000f4d9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14000f4f9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000f4f9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x14000f520
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14000f542
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14000f558
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000f574
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000f576
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000f5b2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000f64e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000f5ed
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000f62e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000f64e
cmp rbx, rax
ja 0x14000f600
test rbx, rbx
je 0x14000f64e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x14000fac0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14015d080]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000faed
xor eax, eax
jmp 0x14000fc59
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000fb27
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14000fb27
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x14000fc59
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000fc4c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000fb6a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14000fb95
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000fc51
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000fc04
sub eax, 1
je 0x14000fc04
cmp eax, 2
jne 0x14000fc4c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000fc51
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14000fc32
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000fc4c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14000fc51
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14010c0b0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret