joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180014998
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x330]
sub rsp, 0x430
mov rdi, rcx
mov ecx, dword [rcx]
mov r12d, 4
mov rsi, r8
mov ebx, edx
mov dword [rbp + 0x370], 1
mov dword [rbp + 0x378], ecx
add rdi, r12
call qword [sym.imp.WS2_32.dll_ntohl]
movzx ecx, word [rdi]
lea r13d, [r12 - 2]
sub ebx, 6
mov r14d, eax
add rdi, r13
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r15d, ax
mov eax, 0x3ff
lea rcx, [rsp + 0x30]
cmp ebx, eax
mov rdx, rdi
cmovge ebx, eax
movsxd rbx, ebx
mov r8, rbx
call fcn.18001b610
mov byte [rsp + rbx + 0x30], 0
call fcn.18000ef80
lea edx, [r12 - 3]
xor r8d, r8d
mov ecx, r13d
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x180014a59
or rcx, rax
call qword [sym.imp.WS2_32.dll_closesocket]
lea rcx, [rbp + 0x378]
mov r8d, r12d
mov edx, r12d
call rsi
jmp 0x180014af0
lea rcx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
jne 0x180014a6e
mov rcx, rbx
jmp 0x180014a3f
mov rdx, qword [rax + 0x18]
movsx r8, word [rax + 0x12]
lea rcx, [rsp + 0x24]
mov rdx, qword [rdx]
call fcn.18001b610
movzx ecx, r15w
mov word [rsp + 0x20], r13w
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [rbp + 0x370]
mov edx, 0x8004667e
mov rcx, rbx
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, rbx
cmp eax, 0xffffffff
je 0x180014a3f
lea rdx, [rsp + 0x20]
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_connect]
add eax, r13d
cmp eax, 1
jne 0x180014adf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, r12d
cmp eax, 0x272f
jne 0x180014a69
mov r8d, 0x7530
mov edx, r14d
mov rcx, rbx
call fcn.18001493c
mov rbx, qword [rsp + 0x480]
add rsp, 0x430
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x180014d60
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov ebx, 1
mov edi, r8d
mov esi, edx
mov dword [rax + 0x20], ebx
mov ebp, ecx
call fcn.18000ef80
lea r15d, [rbx + 1]
xor r8d, r8d
mov edx, ebx
mov ecx, r15d
call qword [sym.imp.WS2_32.dll_socket]
or r14, 0xffffffffffffffff
mov rbx, rax
cmp rax, r14
jne 0x180014daf
mov rax, r14
jmp 0x180014e18
movzx ecx, si
mov word [rsp + 0x20], r15w
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [rsp + 0x68]
mov edx, 0x8004667e
mov rcx, rbx
mov dword [rsp + 0x24], ebp
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, rbx
cmp eax, r14d
jne 0x180014dea
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x180014daa
lea rdx, [rsp + 0x20]
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_bind]
mov rcx, rbx
cmp eax, r14d
je 0x180014de2
mov edx, edi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, r14d
jne 0x180014e15
mov rcx, rbx
jmp 0x180014de2
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x180014e80
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.180014ec8
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea edi, [rax + 0xdac]
mov rcx, rbx
call fcn.1800151e8
test eax, eax
jle 0x180014eb4
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jb 0x180014e9e
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x1800152f4
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [0x180047b40]
xor edi, edi
test rbx, rbx
je 0x180015392
mov eax, dword [rbx + 4]
test eax, eax
jne 0x180015325
cmp dword [rbx + 0xc], eax
jne 0x18001532e
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0xc], eax
mov rdi, rbx
mov rbx, qword [rbx + 0x28]
jmp 0x180015307
test eax, eax
jne 0x180015325
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0xc]
cmp eax, 0x3e8
jbe 0x180015325
cmp dword [rbx + 0x10], 0
jne 0x180015357
mov rcx, qword [rbx + 0x20]
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x18001536b
cmp dword [rbx + 0x10], 2
je 0x180015325
mov rax, qword [rbx + 0x28]
mov rcx, rbx
test rdi, rdi
je 0x180015386
mov qword [rdi + 0x28], rax
call fcn.18001ab48
mov rbx, qword [rdi + 0x28]
jmp 0x180015307
mov qword [0x180047b40], rax
call fcn.18001ab48
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1800151e8
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r15
sub rsp, 0x20
and dword [rax + 0x10], 0
mov rbx, qword [0x180047b40]
xor edi, edi
cmp qword [0x180047b48], rdi
mov rsi, rcx
jne 0x180015227
mov ecx, 0x100000
call fcn.18001ab88
mov qword [0x180047b48], rax
test rbx, rbx
je 0x1800152db
mov r15d, 0xffffc
cmp dword [rbx + 4], 1
jne 0x1800152ce
mov ecx, dword [rbx]
call qword [sym.imp.WS2_32.dll_htonl]
lea r8, [rsp + 0x38]
mov edx, 0x4004667f
mov ecx, eax
mov rax, qword [0x180047b48]
mov dword [rax], ecx
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r8d, dword [rsp + 0x38]
cmp r8d, r15d
cmova r8d, r15d
mov dword [rsp + 0x38], r8d
cmp eax, 0xffffffff
je 0x18001529b
test r8d, r8d
je 0x1800152ce
mov rdx, qword [0x180047b48]
mov rcx, qword [rbx + 0x20]
add rdx, 4
call fcn.1800153a0
cmp eax, 0xffffffff
jne 0x1800152b2
mov rcx, qword [0x180047b48]
and dword [rbx + 4], 0
mov edx, 4
mov r8d, edx
call rsi
jmp 0x1800152ce
mov edx, dword [rsp + 0x38]
cmp eax, edx
jne 0x1800152ce
mov rcx, qword [0x180047b48]
add edx, 4
mov r8d, 5
call rsi
inc edi
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x180015236
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret

Function at 0x1800152f4
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.180014ec8
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea edi, [rax + 0xdac]
mov rcx, rbx
call fcn.1800151e8
test eax, eax
jle 0x180014eb4
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jb 0x180014e9e
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x1800152f4
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [0x180047b40]
xor edi, edi
test rbx, rbx
je 0x180015392
mov eax, dword [rbx + 4]
test eax, eax
jne 0x180015325
cmp dword [rbx + 0xc], eax
jne 0x18001532e
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0xc], eax
mov rdi, rbx
mov rbx, qword [rbx + 0x28]
jmp 0x180015307
test eax, eax
jne 0x180015325
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0xc]
cmp eax, 0x3e8
jbe 0x180015325
cmp dword [rbx + 0x10], 0
jne 0x180015357
mov rcx, qword [rbx + 0x20]
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x18001536b
cmp dword [rbx + 0x10], 2
je 0x180015325
mov rax, qword [rbx + 0x28]
mov rcx, rbx
test rdi, rdi
je 0x180015386
mov qword [rdi + 0x28], rax
call fcn.18001ab48
mov rbx, qword [rdi + 0x28]
jmp 0x180015307
mov qword [0x180047b40], rax
call fcn.18001ab48
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1800153a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov esi, r8d
mov rbp, rdx
mov rdi, rcx
test r8d, r8d
jle 0x1800153ea
mov r8d, esi
xor r9d, r9d
mov rdx, rbp
sub r8d, ebx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
add rbp, rcx
add ebx, ecx
cmp ecx, 0xffffffff
je 0x180015401
cmp ebx, esi
jl 0x1800153c4
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov edx, 2
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x1800153ec

Function at 0x180015420
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x450
mov esi, r8d
mov rbp, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [rsp + 0x478], 0
mov dword [rsp + 0x47c], 0x64
lea ebx, [rax + 0x7530]
jmp 0x180015503
mov rax, qword [rdi + 0x20]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x240]
mov qword [rsp + 0x248], rax
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x478]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x240], 1
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 1
call qword [sym.imp.WS2_32.dll_select]
mov rcx, qword [rdi + 0x20]
lea rdx, [rsp + 0x30]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x180015511
mov rcx, qword [rdi + 0x20]
lea rdx, [rsp + 0x240]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x180015503
mov rcx, qword [rdi + 0x20]
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x180015511
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x180015511
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ebx
jb 0x180015464
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x180015be4
Capabilities:
Enumerate processes

Disassembly:
push rbx
sub rsp, 0x150
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x12c
mov dword [rsp + 0x20], 0x130
call fcn.18001ae30
cmp dword [0x180047b64], 0
jne 0x180015c99
call fcn.18001a178
test eax, eax
je 0x180015c38
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [0x18004d390]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor edx, edx
lea ecx, [rdx + 0xa]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
test rax, rax
je 0x180015c99
lea rdx, [rsp + 0x20]
mov rcx, rax
call sub.KERNEL32.dll_Process32First
lea rdx, str.explorer.exe
lea rcx, [rsp + 0x4c]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
jne 0x180015c81
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x180015c90
jmp 0x180015c57
mov ecx, dword [rsp + 0x28]
mov dword [0x180047b64], ecx
call fcn.1800159fc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x150
pop rbx
ret
Function at 0x1800171a8
Capabilities:
Terminate process

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x40
and qword [r11 - 0x28], 0
xor eax, eax
mov r8d, edx
mov rdx, rcx
lea rcx, [r11 - 0x28]
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x18], rax
call fcn.180014688
lea rcx, [rsp + 0x20]
call fcn.180014698
xor edx, edx
lea ecx, [rdx + 1]
mov r8d, eax
mov edi, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x180017203
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x180017218
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, edi
mov ecx, 0x23
mov r8d, eax
call fcn.18000e474
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x18001722c
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x8b0]
sub rsp, 0x9b0
mov rdi, rcx
mov r15, r8
mov ebx, edx
lea rcx, [rbp + 0xb1]
xor edx, edx
mov r8d, 0x7ff
mov byte [rbp + 0xb0], 0
call fcn.18001ae30
lea rcx, [rsp + 0x68]
mov r8d, ebx
mov rdx, rdi
call fcn.180014688
lea rcx, [rsp + 0x68]
call fcn.180014698
lea rcx, [rsp + 0x50]
mov edx, 0x8000
mov esi, eax
call fcn.18000d47c
test esi, esi
jle 0x1800172ab
lea rcx, [rsp + 0x50]
mov edx, esi
call fcn.18000d4ac
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
call fcn.18000ffc4
test eax, eax
je 0x1800172c6
lea rdi, [0x1800329f4]
jmp 0x1800172df
call fcn.18001000c
lea rcx, [0x1800329f4]
lea rdi, [0x1800329f8]
test eax, eax
cmovne rdi, rcx
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180017461
lea rdx, [rbp - 0x80]
mov rcx, rax
mov dword [rbp - 0x80], 0x130
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x18001731b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180017461
lea r12, [0x1800327a0]
call fcn.180014384
mov r8d, dword [rbp - 0x78]
neg eax
sbb ecx, ecx
xor edx, edx
and ecx, 0xc00
add ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
test rax, rax
jne 0x180017375
mov ecx, dword [rbp - 0x78]
mov r9d, dword [rbp - 0x60]
lea r8, [rbp - 0x54]
mov dword [rsp + 0x28], ecx
lea rdx, str._s_t_d_s_t_d_n
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], r12
call fcn.18000d4dc
jmp 0x18001740d
lea rdx, [rbp + 0xb0]
mov r8d, 0x800
mov rcx, rax
call fcn.1800174cc
lea rdx, [rbp + 0x8f8]
neg eax
sbb cl, cl
and byte [rbp + 0xb0], cl
mov ecx, dword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov ecx, dword [rbp + 0x8f8]
or edx, 0xffffffff
test eax, eax
cmove ecx, edx
mov dword [rbp + 0x8f8], ecx
mov rcx, r14
call fcn.18000ffc4
mov r9d, dword [rbp - 0x60]
lea rcx, [0x1800329f8]
test eax, eax
mov eax, dword [rbp + 0x8f8]
lea r8, [rbp - 0x54]
mov dword [rsp + 0x40], eax
lea rax, [rbp + 0xb0]
cmove rcx, rdi
mov qword [rsp + 0x38], rax
mov eax, dword [rbp - 0x78]
mov qword [rsp + 0x30], rcx
lea rdx, str._s_t_d_t_d_s_t_s_t_s_t_d_n
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], eax
call fcn.18000d4dc
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbp - 0x80]
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x180017322
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x50]
call fcn.1800146cc
lea rcx, [rsp + 0x50]
mov ebx, eax
call fcn.18000d548
mov edx, ebx
mov r8d, select
mov rcx, rax
test esi, esi
je 0x18001745e
mov r8d, reloc.WS2_32.dll_shutdown
call r15
lea rcx, [rsp + 0x50]
call fcn.18000d458
lea r11, [rsp + 0x9b0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x180017538
Capabilities:
Enumerate files on windows

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 r12
push r14
push r15
sub rsp, 0x20
mov r14, rcx
mov r12d, 0x8000
mov r15, r8
mov ecx, r12d
mov rsi, rdx
call fcn.18001ab88
lea r8, str._s
mov r9, r14
mov rcx, rax
mov edx, r12d
mov rbx, rax
call fcn.18001af3c
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rcx, rbx
mov rbp, rax
call fcn.18001ab48
cmp rbp, 0xffffffffffffffff
je 0x180017656
lea rdi, [rsi + 0x2c]
test byte [rsi], 0x10
je 0x18001762d
mov al, byte [rdi]
cmp al, byte [0x180032a30]
jne 0x1800175c3
mov al, byte [rdi + 1]
cmp al, byte [0x180032a31]
je 0x180017639
mov al, byte [rdi]
cmp al, byte [0x180032a34]
jne 0x1800175e3
mov al, byte [rdi + 1]
cmp al, byte [0x180032a35]
jne 0x1800175e3
mov al, byte [rdi + 2]
cmp al, byte [0x180032a36]
je 0x180017639
mov rcx, r12
call fcn.18001ab88
lea r8, [0x180032768]
mov r9, rdi
mov rcx, rax
mov rdx, r12
mov rbx, rax
call fcn.18001af3c
mov r9, r15
mov r8, rsi
mov rdx, rdi
mov rcx, r14
call fcn.180017678
mov r8d, 1
mov rdx, rbx
mov rcx, r14
call r15
mov rcx, rbx
call fcn.18001ab48
jmp 0x180017639
xor r8d, r8d
mov rdx, rdi
mov rcx, r14
call r15
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1800175a9
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x180019230
Capabilities:
Encode data using xor

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, 0x50
mov qword [0x180051690], rcx
mov ebx, 0x800
mov ecx, ebx
call fcn.18001ab88
mov r8d, ebx
xor edx, edx
mov rcx, rax
mov qword [0x180051698], rax
call fcn.18001ae30
mov rcx, qword [0x180051698]
xor r14d, r14d
lea r9d, [r14 + 1]
mov edx, ebx
mov qword [rsp + 0x20], r14
mov r8d, r9d
call fcn.18001a638
mov eax, r14d
lea rbp, [0x18004aeb0]
xor byte [rax + rbp], 0x45
inc rax
cmp rax, 0x1800
jl 0x180019297
lea rcx, [rsp + 0x30]
mov r8d, 0x1800
mov rdx, rbp
call fcn.180014688
jmp 0x18001938e
lea rcx, [rsp + 0x30]
call fcn.180014734
lea rcx, [rsp + 0x30]
movsx ebx, ax
call fcn.180014734
mov rcx, qword [0x180051698]
movsx rdi, di
mov edx, ebx
movzx esi, ax
shl rdi, 4
mov word [rdi + rcx], bx
dec edx
je 0x180019378
dec edx
je 0x180019361
dec edx
jne 0x18001938e
movsx rbx, ax
mov rcx, rbx
call fcn.18001ab88
mov r8, qword [0x180051698]
lea rcx, [rsp + 0x30]
movsx edx, si
mov qword [rdi + r8 + 8], rax
call fcn.1800146d0
mov rcx, qword [0x180051698]
mov r8, rbx
mov rcx, qword [rdi + rcx + 8]
mov rdx, rax
call fcn.18001b610
mov rcx, qword [0x180051698]
mov r9d, 1
mov rcx, qword [rdi + rcx + 8]
mov r8d, r9d
mov rdx, rbx
mov qword [rsp + 0x20], r14
call fcn.18001a638
jmp 0x18001938e
lea rcx, [rsp + 0x30]
call fcn.180014698
mov rcx, qword [0x180051698]
mov dword [rdi + rcx + 8], eax
jmp 0x18001938e
lea rcx, [rsp + 0x30]
call fcn.180014734
mov rdx, qword [0x180051698]
mov word [rdi + rdx + 8], ax
lea rcx, [rsp + 0x30]
call fcn.180014734
movzx edi, ax
test ax, ax
jg 0x1800192be
xor edx, edx
mov r8d, 0x1800
mov rcx, rbp
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
jmp fcn.18001ae30

Function at 0x180019c88
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
or rsi, 0xffffffffffffffff
mov rdi, rdx
mov rbx, rcx
lea edx, [rsi + 0x19]
lea r9d, [rsi + 5]
xor ecx, ecx
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
mov qword [r14 + 0x10], rax
call fcn.180019e0c
mov r8, qword [0x18004d380]
test r8, r8
je 0x180019cfd
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9, r14
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop r14
ret
Function at 0x180019d18
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov esi, 1
mov rdi, rcx
mov rbx, rdx
add dword [0x18004d388], esi
lea ecx, [rsi + 0x26]
call fcn.180019200
cmp ax, si
jne 0x180019d52
mov rdx, rbx
mov rcx, rdi
call fcn.180019c88
jmp 0x180019d6d
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9, rbx
mov r8, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x180019d80
Capabilities:
Create thread
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov ecx, 0x37
call fcn.180019200
mov ecx, 0x27
movzx ebx, ax
call fcn.180019200
movzx edi, ax
call fcn.18001a730
cmp ebx, 1
jne 0x180019dc8
cmp edi, ebx
jne 0x180019dbf
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x180019db2
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitThread]
cmp edi, 1
jne 0x180019e03
mov r8, qword [sym.imp.KERNEL32.dll_ExitProcess]
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x18001a178
Capabilities:
Get token membership

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
lea rax, [rbp + 0x20]
lea rcx, [rbp + 0x18]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
and dword [rsp + 0x48], 0
and dword [rsp + 0x40], 0
and dword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r8d, 0x20
mov dl, 2
mov dword [rbp + 0x18], 0
mov word [rbp + 0x1c], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rbp + 0x10], eax
test eax, eax
je 0x18001a1f8
mov rdx, qword [rbp + 0x20]
lea r8, [rbp + 0x10]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb ecx, ecx
and dword [rbp + 0x10], ecx
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rbp + 0x10]
add rsp, 0x60
pop rbp
ret
Function at 0x18001a200
Capabilities:
Impersonate user

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbp, r9
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
call fcn.180019fb4
lea rax, [0x18004d390]
mov qword [rsp + 0x28], rax
mov r9d, 9
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
mov dword [rsp + 0x20], 3
call qword [sym.imp.ADVAPI32.dll_LogonUserA]
test eax, eax
jne 0x18001a269
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x18
mov edx, eax
call fcn.18000e468
jmp 0x18001a356
mov rcx, qword [0x18004d390]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x18001a287
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x19
jmp 0x18001a25d
mov ecx, 0x800
call fcn.180014570
mov edx, 0x200
mov rcx, rax
mov qword [0x18004d3b0], rax
call fcn.1800146d0
mov rcx, qword [0x18004d3b0]
mov edx, 0x200
mov qword [0x18004d398], rax
call fcn.1800146d0
mov rcx, qword [0x18004d3b0]
mov edx, 0x400
mov qword [0x18004d3a0], rax
call fcn.1800146d0
mov rdx, qword [0x18004d3a0]
mov r8d, 0x100
mov rcx, rbx
mov qword [0x18004d3a8], rax
call fcn.18000fa94
mov rdx, qword [0x18004d398]
mov r8d, 0x100
mov rcx, rsi
call fcn.18000fa94
mov rdx, qword [0x18004d3a8]
mov r8d, 0x200
mov rcx, rdi
call fcn.18000fa94
mov rcx, qword [0x18004d390]
mov r8d, 0x400
mov rdx, rbx
mov dword [0x18004d3b8], 1
call fcn.18001a45c
test eax, eax
je 0x18001a356
or rdx, 0xffffffffffffffff
inc rdx
cmp byte [rbx + rdx], 0
jne 0x18001a342
mov r8d, reloc.WS2_32.dll_ntohs
mov rcx, rbx
call rbp
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x18001a864
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov esi, r8d
mov rdi, rdx
mov rbp, rcx
test r8d, r8d
je 0x18001a8be
xor r9d, r9d
mov edx, ebx
mov rcx, rbp
lea r8d, [r9 + 1]
add rdx, rdi
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x18001a8be
add ebx, eax
cmp ebx, 2
jb 0x18001a8ba
lea eax, [rbx - 1]
cmp byte [rax + rdi], 0xa
jne 0x18001a8ba
lea eax, [rbx - 2]
cmp byte [rax + rdi], 0xd
je 0x18001a8d6
cmp ebx, esi
jb 0x18001a888
or eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
lea ecx, [rbx - 2]
mov eax, ebx
mov byte [rcx + rdi], 0
jmp 0x18001a8c1

Function at 0x18001b5f4
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.18001b45c

Function at 0x1800248a0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1800248b6
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1800248b8
xor eax, eax
test eax, eax
je 0x1800248c8
mov ecx, eax
call fcn.18001e274
or eax, 0xffffffff
jmp 0x1800248ca
xor eax, eax
add rsp, 0x28
ret