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

Disassembly:
jmp 0x14001fea0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001fec0
xor al, al
jmp 0x14001ff41
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001fed3
xor al, al
jmp 0x14001ff41
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001fefd
xor al, al
jmp 0x14001ff41
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001ff11
xor al, al
jmp 0x14001ff41
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001ff23
xor al, al
jmp 0x14001ff41
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001ff3f
xor al, al
jmp 0x14001ff41
mov al, 1
add rsp, 0x38
ret
Function at 0x140011d07
Capabilities:
Execute syscall

Disassembly:
jmp 0x140014610
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x15882105
call fcn.140011b4a
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140011d20
Capabilities:
Execute syscall

Disassembly:
jmp 0x140014e50
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0xdd95c91e
call fcn.140011b4a
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x14001dd80
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011c85
movzx eax, al
test eax, eax
jne 0x14001dda0
mov ecx, 7
call fcn.140011a3c
nop
mov byte [rsp + 0x20], 0
call fcn.140011a7d
mov byte [rsp + 0x21], al
cmp dword [0x14002aae8], 1
jne 0x14001ddc4
mov ecx, 7
call fcn.140011a3c
nop
jmp 0x14001de1c
cmp dword [0x14002aae8], 0
jne 0x14001de17
mov dword [0x14002aae8], 1
lea rdx, [0x140026660]
lea rcx, [0x140026330]
call fcn.140011582
test eax, eax
je 0x14001ddf8
mov eax, 0xff
jmp 0x14001df21
lea rdx, [0x140026220]
lea rcx, [section..rdata]
call fcn.140011a6e
mov dword [0x14002aae8], 2
jmp 0x14001de1c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011a00
call fcn.1400118b6
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x14001de79
mov rcx, qword [rsp + 0x30]
call fcn.14001147e
movzx eax, al
test eax, eax
je 0x14001de79
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140031020]
nop
call fcn.140011942
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001dead
mov rcx, qword [rsp + 0x38]
call fcn.14001147e
movzx eax, al
test eax, eax
je 0x14001dead
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011ba4
nop
call fcn.14001dfd0
mov dword [rsp + 0x28], eax
call fcn.140011843
movzx eax, al
test eax, eax
jne 0x14001decc
mov ecx, dword [rsp + 0x28]
call fcn.1400110cd
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001dedb
call fcn.140011bc7
nop
xor edx, edx
mov cl, 1
call fcn.140011447
mov eax, dword [rsp + 0x28]
jmp 0x14001df21
add rsp, 0x68
ret
Function at 0x1400051a0
Capabilities:
Access peb ldr_data
Get process filename
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0xe8
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x38], 0
mov rax, qword gs:[0x60]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x60], 0
mov rax, qword [rsp + 0x68]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov rax, qword [rax]
sub rax, 0x10
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140005241
jmp 0x1400053f0
mov rax, qword [rsp + 0x30]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x30]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax + 4]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
add rax, 0x14
mov qword [rsp + 0x50], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 0x70]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
xor eax, eax
mov word [rsp + 0x20], ax
jmp 0x140005309
movzx eax, word [rsp + 0x20]
inc ax
mov word [rsp + 0x20], ax
movzx eax, word [rsp + 0x20]
mov rcx, qword [rsp + 0x38]
cmp eax, dword [rcx + 0x18]
jae 0x1400053f0
movzx eax, word [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
movzx eax, word [rsp + 0x20]
mov rcx, qword [rsp + 0x88]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0x90]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x98], rax
mov r8d, 2
lea rdx, [0x1400074fc]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x1400053eb
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x40], eax
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0xb0]
call fcn.140002eb0
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
lea rdx, [rsp + 0x40]
lea rcx, [0x14000a168]
call fcn.140003790
mov rdx, qword [rsp + 0xa8]
mov rcx, rax
call fcn.140003690
nop
lea rcx, [rsp + 0xb0]
call fcn.1400034d0
jmp 0x1400052fc
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140005c10
add rsp, 0xe8
ret
Function at 0x140006258
Capabilities:
Parse pe header

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

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x2828
call fcn.140031e80
sub rsp, rax
mov r14, rcx
mov rax, qword [0x1400503c8]
xor rax, rsp
mov qword [rsp + 0x2820], rax
lea r8, [rcx + 0x2024]
xorps xmm0, xmm0
movups xmmword [rcx + 0x2034], xmm0
movups xmmword [rcx + 0x2024], xmm0
cmp dword [rcx + 0x2048], 0
je 0x1400047a7
xor ecx, ecx
nop word [rax + rax]
mov rdi, rcx
and rdi, 0xfffffffffffffffc
mov eax, dword [r14 + rdi + 0x2024]
movzx esi, byte [rdx + rcx]
or esi, eax
shld esi, eax, 8
mov dword [r14 + rdi + 0x2024], esi
cmp rcx, 0x1e
ja 0x1400047a7
add rcx, 1
mov eax, dword [r14 + 0x2048]
cmp rcx, rax
jb 0x140004770
movups xmm0, xmmword [r14 + 0x2004]
movups xmm1, xmmword [r14 + 0x2014]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [r8]
movups xmm1, xmmword [r8 + 0x10]
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x50], xmm1
mov eax, 0x10
mov ecx, dword [rsp + 0x20]
nop dword [rax]
mov r8d, dword [rsp + rax*4 - 0x1c]
mov esi, dword [rsp + rax*4 + 0x18]
mov ebx, esi
rol ebx, 0xf
mov edi, esi
rol edi, 0xd
xor edi, ebx
shr esi, 0xa
mov edx, r8d
rol edx, 0x19
mov ebx, r8d
rol ebx, 0xe
xor esi, edi
xor ebx, edx
mov edx, r8d
shr edx, 3
xor edx, ebx
add ecx, dword [rsp + rax*4 + 4]
add ecx, esi
add ecx, edx
add ecx, eax
mov dword [rsp + rax*4 + 0x20], ecx
add rax, 1
mov ecx, r8d
cmp rax, 0xa00
jne 0x1400047e0
lea rdx, [rsp + 0x820]
mov r8d, 0x1000
mov rcx, r14
call fcn.140033760
lea rcx, [r14 + 0x1000]
lea rdx, [rsp + 0x1820]
mov r8d, 0x1000
call fcn.140033760
mov dword [r14 + 0x2000], 0
mov edi, 0x1000
nop dword [rax]
mov rcx, r14
call fcn.140004530
add edi, 0xffffffff
jne 0x140004870
mov rcx, qword [rsp + 0x2820]
xor rcx, rsp
call fcn.140031ee0
nop
add rsp, 0x2828
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400048a0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rsi, r9
mov rdi, r8
mov r15, rdx
mov r14d, dword [rsp + 0x80]
cmp r14d, 4
jb 0x140004919
mov r12d, r14d
shr r12, 2
xor ebp, ebp
xor ebx, ebx
mov rcx, r15
call fcn.140004530
movzx ecx, byte [rdi + rbp*4]
xor cl, al
mov byte [rsi + rbp*4], cl
mov ecx, eax
shr ecx, 8
xor cl, byte [rdi + rbp*4 + 1]
mov byte [rsi + rbp*4 + 1], cl
mov ecx, eax
shr ecx, 0x10
xor cl, byte [rdi + rbp*4 + 2]
mov byte [rsi + rbp*4 + 2], cl
shr eax, 0x18
xor al, byte [rdi + rbp*4 + 3]
mov byte [rsi + rbp*4 + 3], al
add rbx, 0xfffffffffffffffc
add rbp, 1
cmp r12d, ebp
jne 0x1400048d0
sub rsi, rbx
sub rdi, rbx
mov rcx, r15
call fcn.140004530
and r14d, 3
je 0x14000494d
mov cl, byte [rdi]
xor cl, al
mov byte [rsi], cl
cmp r14d, 1
je 0x14000494d
mov ecx, eax
shr ecx, 8
xor cl, byte [rdi + 1]
mov byte [rsi + 1], cl
cmp r14d, 2
je 0x14000494d
shr eax, 0x10
xor al, byte [rdi + 2]
mov byte [rsi + 2], al
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140004980
Capabilities:
Encrypt data using curve25519
Generate random numbers via winapi

Disassembly:
push rsi
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rax, qword [0x1400503c8]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.140030d40
test eax, eax
je 0x140004a4e
xorps xmm6, xmm6
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
mov rcx, qword [rsp + 0x28]
lea r8, [rsp + 0x30]
mov edx, 0x20
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x140004a32
and byte [rsp + 0x30], 0xf8
mov al, byte [rsp + 0x4f]
and al, 0x3f
or al, 0x40
mov byte [rsp + 0x4f], al
movaps xmmword [0x140051e10], xmm6
movaps xmmword [0x140051e20], xmm6
lea rcx, [0x140051e10]
lea r8, reloc.OLEAUT32.dll_VariantCopy
lea rsi, [rsp + 0x30]
mov rdx, rsi
call fcn.1400018a0
lea rcx, [0x140051e30]
lea r8, [0x140050090]
mov rdx, rsi
call fcn.1400018a0
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x40], xmm6
mov esi, 1
jmp 0x140004a34
xor esi, esi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140031ee0
mov eax, esi
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rsi
ret
mov ecx, 1
call qword [sym.imp.KERNEL32.DLL_ExitThread]
Function at 0x1400097f0
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
je 0x140009800
cmp edx, 1
jne 0x140009806
mov eax, 0x676e6f64
jmp 0x140009855
mov eax, 0x676e6f64
ret
mov r8d, edx
and r8d, 0xfffffffe
neg r8d
mov eax, 0x676e6f64
lea r9, [0x1400442c0]
nop dword [rax]
mov r10d, eax
shl r10d, 8
shr eax, 0x18
movzx r11d, byte [rcx]
xor r11d, eax
xor r10d, dword [r9 + r11*4]
mov eax, r10d
shl eax, 8
shr r10d, 0x18
movzx r11d, byte [rcx + 1]
xor r11d, r10d
xor eax, dword [r9 + r11*4]
add rcx, 2
add r8d, 2
jne 0x140009820
test dl, 1
je 0x140009871
mov edx, eax
shr edx, 0x18
movzx ecx, byte [rcx]
xor ecx, edx
lea rdx, [0x1400442c0]
shl eax, 8
xor eax, dword [rdx + rcx*4]
ret
Function at 0x14000aa80
Capabilities:
Create process on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x908
movaps xmmword [rsp + 0x8f0], xmm6
mov rdi, rcx
mov rax, qword [0x1400503c8]
xor rax, rsp
mov qword [rsp + 0x8e8], rax
lea rsi, [rsp + 0xe0]
mov r8d, 0x800
mov rcx, rsi
xor edx, edx
call fcn.140033e10
xorps xmm6, xmm6
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0xc0], xmm6
movaps xmmword [rsp + 0xb0], xmm6
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0x70], xmm6
mov qword [rsp + 0xd0], 0
movaps xmmword [rsp + 0x50], xmm6
mov qword [rsp + 0x60], 0
mov word [rsp + 0xb0], 0
mov dword [rsp + 0x70], WSAGetLastError
mov dword [rsp + 0xac], 1
mov rcx, rsi
mov rdx, rdi
call qword [sym.imp.KERNEL32.DLL_lstrcpyW]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 0
xor ecx, ecx
mov rdx, rsi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x14000ab94
mov rcx, qword [rsp + 0x50]
mov edx, 0x2710
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
mov rsi, qword [sym.imp.KERNEL32.DLL_CloseHandle]
call rsi
mov rcx, qword [rsp + 0x50]
call rsi
mov rcx, qword [rsp + 0x8e8]
xor rcx, rsp
call fcn.140031ee0
movaps xmm6, xmmword [rsp + 0x8f0]
add rsp, 0x908
pop rdi
pop rsi
ret
Function at 0x14000c200
Capabilities:
Create restart manager session
Enumerate processes that use resource
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0xb8
mov rax, qword [0x1400503c8]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0x58], rcx
mov dword [rsp + 0x54], 0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov word [rsp + 0xa0], 0
lea rcx, [rsp + 0x54]
xor esi, esi
lea r8, [rsp + 0x60]
xor edx, edx
call sub.RstrtMgr.DLL_RmStartSession
test eax, eax
jne 0x14000c40e
mov ecx, dword [rsp + 0x54]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x58]
xor edi, edi
mov edx, 1
xor r9d, r9d
call sub.RstrtMgr.DLL_RmRegisterResources
test eax, eax
jne 0x14000c403
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x4c], 0
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov ecx, dword [rsp + 0x54]
lea rsi, [rsp + 0x50]
mov qword [rsp + 0x20], rsi
xor edi, edi
lea rdx, [rsp + 0x4c]
lea r8, [rsp + 0x48]
xor r9d, r9d
call sub.RstrtMgr.DLL_RmGetList
cmp eax, 0xea
jne 0x14000c3d9
mov eax, dword [rsp + 0x4c]
test eax, eax
je 0x14000c3d9
imul rcx, rax, 0x29c
call fcn.140013890
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14000c3f0
mov ecx, dword [rsp + 0x4c]
mov dword [rsp + 0x48], ecx
mov ecx, dword [rsp + 0x54]
mov qword [rsp + 0x20], rsi
lea rdx, [rsp + 0x4c]
lea r8, [rsp + 0x48]
mov r9, rax
call sub.RstrtMgr.DLL_RmGetList
test eax, eax
jne 0x14000c3e6
cmp dword [rsp + 0x4c], 0
je 0x14000c3e6
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcessId]
cmp dword [rsp + 0x48], 0
je 0x14000c42a
mov rcx, qword [rsp + 0x40]
mov r8d, dword [rcx]
cmp r8d, eax
je 0x14000c3eb
mov rax, qword [0x140051e58]
mov rax, qword [rax]
test rax, rax
je 0x14000c392
cmp r8d, dword [rax]
je 0x14000c3eb
mov rax, qword [rax + 8]
test rax, rax
jne 0x14000c384
xor edi, edi
mov ecx, 0x100001
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_OpenProcess]
cmp rax, 0xffffffffffffffff
je 0x14000c3e6
mov rsi, rax
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov rcx, rsi
mov edx, 0x1388
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, 1
xor eax, eax
test al, al
je 0x14000c40e
jmp 0x14000c403
mov ecx, dword [rsp + 0x54]
call sub.RstrtMgr.DLL_RmEndSession
xor eax, eax
jmp 0x14000c3fd
mov rcx, qword [rsp + 0x40]
call fcn.1400138c0
mov ecx, dword [rsp + 0x54]
call sub.RstrtMgr.DLL_RmEndSession
xor eax, eax
xor edi, edi
xor esi, esi
test al, al
je 0x14000c40e
mov ecx, dword [rsp + 0x54]
call sub.RstrtMgr.DLL_RmEndSession
mov esi, edi
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140031ee0
mov eax, esi
add rsp, 0xb8
pop rdi
pop rsi
ret
mov ecx, dword [rsp + 0x54]
mov edx, 1
xor r8d, r8d
call sub.RstrtMgr.DLL_RmShutdown
xor edi, edi
test eax, eax
sete dil
mov rcx, qword [rsp + 0x40]
call fcn.1400138c0
mov al, 1
test al, al
je 0x14000c40e
jmp 0x14000c403
Function at 0x14000c460
Capabilities:
Move file

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov ecx, 0x7fd7
call fcn.140013890
test rax, rax
je 0x14000c4b3
mov rdi, rax
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.KERNEL32.DLL_lstrcpyW]
call fcn.140004a60
mov rcx, rdi
mov rdx, rax
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
mov rcx, rsi
mov rdx, rdi
call qword [sym.imp.KERNEL32.DLL_MoveFileW]
mov rcx, rdi
call fcn.1400138c0
mov eax, 1
jmp 0x14000c4b5
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x14000ed10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1400503c8]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rcx, [0x140051e60]
call qword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov byte [rsp + 0x40], 0
lea rcx, [rsp + 0x41]
mov byte [rsp + 0x41], 0x7b
mov byte [rsp + 0x42], 0x6a
mov byte [rsp + 0x43], setsockopt
mov byte [rsp + 0x44], 0x6a
mov byte [rsp + 0x45], WSAGetLastError
mov byte [rsp + 0x46], 0x6a
mov byte [rsp + 0x47], 0x5f
mov byte [rsp + 0x48], 0x6a
mov byte [rsp + 0x49], 0x66
mov byte [rsp + 0x4a], 0x6a
mov byte [rsp + 0x4b], 0x3b
mov byte [rsp + 0x4c], 0x6a
mov byte [rsp + 0x4d], 9
mov byte [rsp + 0x4e], 0x6a
mov byte [rsp + 0x4f], 3
mov byte [rsp + 0x50], 0x6a
mov byte [rsp + 0x51], 0x18
mov byte [rsp + 0x52], 0x6a
mov byte [rsp + 0x53], 0x5f
mov byte [rsp + 0x54], 0x6a
mov byte [rsp + 0x55], 0x2f
mov byte [rsp + 0x56], 0x6a
mov byte [rsp + 0x57], 0x1d
mov byte [rsp + 0x58], 0x6a
mov byte [rsp + 0x59], reloc.WS2_32.dll_gethostname
mov byte [rsp + 0x5a], 0x6a
mov byte [rsp + 0x5b], 0x1d
mov byte [rsp + 0x5c], 0x6a
mov byte [rsp + 0x5d], 0x6a
mov byte [rsp + 0x5e], 0x6a
mov al, byte [rsp + 0x40]
test al, 1
jne 0x14000ee56
mov r9d, 1
nop
movzx edx, byte [rsp + r9 + 0x40]
movzx edx, dl
add edx, edx
lea r8d, [rdx + rdx*8]
mov edx, 0x774
sub edx, r8d
movsx eax, dx
imul eax, eax, 0xffff8103
shr eax, 0x10
add eax, edx
movzx eax, ax
mov edx, eax
shr edx, 0xf
shr eax, 6
add eax, edx
mov edx, eax
shl edx, 7
add edx, r8d
sub eax, edx
add eax, 0x774
add al, 0x7f
movzx r8d, al
lea edx, [r8 + r8*2]
shr edx, 8
mov eax, r8d
sub al, dl
shr al, 1
add al, dl
shr al, 6
movzx eax, al
mov edx, eax
shl edx, 7
sub edx, eax
sub r8b, dl
mov byte [rsp + r9 + 0x40], r8b
add r9, 1
cmp r9, 0x1f
jne 0x14000ede0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80000000
mov dword [rsp + 0x20], 4
mov edx, 0x40000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov qword [0x1400503a8], rax
mov rcx, rax
xor edx, edx
xor r8d, r8d
mov r9d, 2
call qword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140031ee0
nop
add rsp, 0x68
ret
Function at 0x140016c10
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
movaps xmmword [rsp + 0x50], xmm6
mov rax, qword [0x1400503c8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r15, qword [0x140051ee0]
test r15, r15
je 0x140016db2
movzx eax, word [r15]
movzx ebp, byte [r15 + 2]
shl ebp, 0x10
or ebp, eax
xor edi, edi
mov rsi, qword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov r12, qword [sym.imp.WS2_32.dll_WSASocketW]
mov r13, qword [sym.imp.KERNEL32.DLL_GlobalFree]
xorps xmm6, xmm6
mov r14, qword [sym.imp.WS2_32.dll_bind]
jmp 0x140016cb6
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rbx
call r13
mov eax, 4
cmp eax, 4
setl cl
test eax, eax
setne al
test cl, al
jne 0x140016d9b
add dil, 1
cmp dil, 0xff
je 0x140016d9b
mov edx, 0x40
mov ecx, 0x40
call rsi
mov rbx, rax
mov eax, 2
test rbx, rbx
je 0x140016c95
movzx eax, dil
shl eax, 0x18
or eax, ebp
mov dword [rbx + 0x28], eax
mov byte [rbx + 0x2c], 2
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, 2
mov edx, 1
mov r8d, 6
xor r9d, r9d
call r12
mov qword [rbx + 0x20], rax
cmp rax, 0xffffffffffffffff
je 0x140016d90
movaps xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x30], 2
mov rcx, rax
lea rdx, [rsp + 0x30]
mov r8d, setsockopt
call r14
test eax, eax
jne 0x140016c80
mov rdx, qword [0x140051ed8]
mov rcx, qword [rbx + 0x20]
mov r8d, 2
xor r9d, r9d
call qword [sym.imp.KERNEL32.DLL_CreateIoCompletionPort]
test rax, rax
je 0x140016c80
mov rax, rbx
add rax, 0x30
mov qword [rbx + 0x30], 0
mov rcx, qword [0x140051f08]
mov qword [rbx + 0x38], rcx
mov qword [rcx], rbx
mov qword [0x140051f08], rax
xor eax, eax
jmp 0x140016c95
mov rcx, rbx
call r13
jmp 0x140016ca8
mov rcx, qword [r15 + 8]
mov rax, qword [r15 + 0x10]
test rcx, rcx
je 0x140016db6
mov qword [rcx + 0x10], rax
mov rax, qword [r15 + 0x10]
jmp 0x140016dbd
xor esi, esi
jmp 0x140016dd1
mov qword [0x140051ee8], rax
mov rcx, qword [r15 + 8]
mov qword [rax], rcx
mov rcx, r15
call fcn.140036d0c
mov esi, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140031ee0
mov eax, esi
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400315c0
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
cmp ecx, 1
je 0x140031647
cmp ecx, 2
je 0x140031650
xor r14d, r14d
cmp ecx, 4
jne 0x1400316ae
mov r14d, 1
cmp qword [0x140051fe8], 0
je 0x1400316ae
xor esi, esi
lea rdi, [0x1400316c0]
lea rbx, [0x140051fe0]
mov rbp, qword [sym.imp.KERNEL32.DLL_CreateThread]
nop dword [rax + rax]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor ecx, ecx
xor edx, edx
mov r8, rdi
mov r9, rbx
call rbp
mov rcx, qword [0x140051fe0]
mov qword [rcx + rsi*8], rax
add rsi, 1
cmp rsi, qword [0x140051fe8]
jb 0x140031610
jmp 0x1400316ae
lea rdi, [0x140051f20]
jmp 0x140031657
lea rdi, [0x140051f80]
mov r14d, 1
cmp qword [rdi + 8], 0
je 0x1400316ae
xor esi, esi
lea rbx, [0x1400318a0]
mov rbp, qword [sym.imp.KERNEL32.DLL_CreateThread]
nop word cs:[rax + rax]
nop
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor ecx, ecx
xor edx, edx
mov r8, rbx
mov r9, rdi
call rbp
mov rcx, qword [rdi]
mov qword [rcx + rsi*8], rax
add rsi, 1
cmp rsi, qword [rdi + 8]
jb 0x140031680
mov eax, r14d
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x140035884
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400359b4
Function at 0x140004728
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140004870
Function at 0x14000c824
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14000c854
xor eax, eax
jmp 0x14000c917
mov rbp, rbx
cmp word [rax], si
je 0x14000c879
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000c860
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000c85c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14000c744
movsxd r14, eax
test eax, eax
jne 0x14000c8b7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000c84d
mov rcx, r14
call fcn.1400089cc
mov rdi, rax
test rax, rax
jne 0x14000c8d0
xor ecx, ecx
call fcn.140007a34
jmp 0x14000c8ac
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14000c744
test eax, eax
jne 0x14000c901
mov rcx, rdi
call fcn.140007a34
jmp 0x14000c90b
xor ecx, ecx
call fcn.140007a34
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret