joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140010060
Capabilities:
Create service

Disassembly:
push rdi
sub rsp, 0xa90
mov rax, qword [0x1400490e0]
xor rax, rsp
mov qword [rsp + 0xa80], rax
mov rdi, rcx
call fcn.1400102e0
test eax, eax
je 0x140010091
mov eax, 1
jmp 0x140010198
mov r8d, 0x104
lea rdx, [rsp + 0x72]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14001028e
cmp eax, 0x104
je 0x14001028e
lea ecx, [rax + 1]
mov r8d, 0x22
mov word [rsp + 0x70], r8w
mov word [rsp + rcx*2 + 0x70], r8w
lea ecx, [rax + 2]
add rcx, rcx
cmp rcx, 0x20c
jae 0x1400102d7
mov qword [rsp + 0xaa8], rbx
xor edx, edx
mov qword [rsp + 0xab0], rsi
mov r8d, 0xf003f
xor esi, esi
mov word [rsp + rcx + 0x70], si
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x1400101b1
mov r8d, 0x400
lea rdx, [rsp + 0x280]
mov ecx, 0xd80a
call fcn.14000ff40
test eax, eax
jne 0x14001016f
lea r8, str.Could_not_open_Service_Manager
mov edx, 0x400
lea rcx, [rsp + 0x280]
call fcn.1400276f0
test eax, eax
je 0x14001016f
cmp eax, 0xc
je 0x1400102ab
cmp eax, 0x16
je 0x1400102a0
cmp eax, 0x22
je 0x1400102a0
cmp eax, 0x50
jne 0x140010295
lea r8, [rdi + 0x68]
xor r9d, r9d
lea rdx, [rsp + 0x280]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov rbx, qword [rsp + 0xaa8]
mov rsi, qword [rsp + 0xab0]
mov rcx, qword [rsp + 0xa80]
xor rcx, rsp
call fcn.14001dff0
add rsp, 0xa90
pop rdi
ret
mov qword [rsp + 0x60], rsi
lea rax, str.RPCSS
mov qword [rsp + 0x58], rsi
add rdi, 0x68
mov qword [rsp + 0x50], rax
mov r9d, 0xf01ff
mov qword [rsp + 0x48], rsi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rsi
mov r8, rdi
mov qword [rsp + 0x38], rax
mov rdx, rdi
mov dword [rsp + 0x30], 1
mov rcx, rbx
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayGetDim
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
test rax, rax
jne 0x140010272
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r8d, 0x400
lea rdx, [rsp + 0x280]
mov ecx, 0xd80b
call fcn.14000ff40
test eax, eax
jne 0x140010267
lea r8, str.Could_not_start_service
mov edx, 0x400
lea rcx, [rsp + 0x280]
call fcn.1400276f0
test eax, eax
je 0x140010267
cmp eax, 0xc
je 0x1400102cc
cmp eax, 0x16
je 0x1400102c1
cmp eax, 0x22
je 0x1400102c1
cmp eax, 0x50
jne 0x1400102b6
xor r9d, r9d
mov r8, rdi
jmp 0x140010176
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x140010188
xor eax, eax
jmp 0x140010198
mov ecx, 0x80004005
call fcn.14000d1c0
int3
mov ecx, 0x80070057
call fcn.14000d1c0
int3
mov ecx, 0x8007000e
call fcn.14000d1c0
int3
mov ecx, 0x80004005
call fcn.14000d1c0
int3
mov ecx, 0x80070057
call fcn.14000d1c0
int3
mov ecx, 0x8007000e
call fcn.14000d1c0
int3
call fcn.14001e7b4
int3
Function at 0x140010360
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
cmp dword [rcx + 0x28c], 0
mov rsi, rcx
je 0x140010496
lea rdx, str.SeDebugPrivilege
mov qword [rsp + 0x88], r14
call fcn.14000f110
lea rdx, str.SeImpersonatePrivilege
mov rcx, rsi
call fcn.14000f110
lea rdx, str.SeTcbPrivilege
mov rcx, rsi
call fcn.14000f110
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
movzx edx, byte [rsi + 0x299]
movzx ecx, byte [rsi + 0x298]
mov dword [rsi + 0x290], eax
call fcn.140018f30
test rax, rax
jne 0x1400103d9
mov eax, 0x8007000e
jmp 0x1400103e3
xor edx, edx
mov rcx, rax
call fcn.140019170
xor ebp, ebp
lea rcx, [rsp + 0x20]
test eax, eax
cmovns ebp, eax
call fcn.140002f10
mov rcx, qword [rsp + 0x20]
call fcn.140003cb0
mov rbx, qword [rsp + 0x28]
test eax, eax
setne r14b
test rbx, rbx
je 0x140010448
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140010448
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [0x1400355d0]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140010448
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x1400355d0]
mov eax, 0x80004005
test r14b, r14b
cmove ebp, eax
xor edx, edx
xor ecx, ecx
call fcn.14001df58
xor ecx, ecx
call fcn.1400256d0
xor ecx, ecx
call fcn.1400256d0
xor ecx, ecx
call fcn.1400256d0
xor ecx, ecx
call fcn.1400256d0
mov r14, qword [rsp + 0x88]
test ebp, ebp
jns 0x140010496
mov eax, ebp
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
cmp dword [rsi + 0x28c], 0
je 0x1400104be
mov eax, 4
lea rdx, [rsi + 0x270]
xchg dword [rsi + 0x274], eax
mov rcx, qword [rsi + 0x268]
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov rcx, rsi
call fcn.14000f5d0
lfence
mov rcx, rsi
call fcn.14000f1d0
test eax, eax
jne 0x14001051f
xor r9d, r9d
lea rcx, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jle 0x140010521
nop dword [rax]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jg 0x1400104f0
jmp 0x140010521
js 0x140010579
mov rbx, qword [0x140049060]
xor edi, edi
mov rdx, qword [0x140049068]
cmp rbx, rdx
jae 0x140010565
test edi, edi
jne 0x140010565
mov rax, qword [rbx]
test rax, rax
je 0x14001055c
mov rax, qword [rax + 0x20]
mov ecx, dword [rax + 8]
test ecx, ecx
je 0x14001055c
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
mov rdx, qword [0x140049068]
mov edi, eax
add rbx, 8
cmp rbx, rdx
jb 0x140010536
cmp byte [rsi + 0x60], 0
je 0x140010577
lfence
mov ecx, dword [rsi + 0x5c]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, edi
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x140015040
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, qword [rcx + 0x10]
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
je 0x1400150f9
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x1400150c5
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je case.default.0x1400150dd
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je case.default.0x1400150dd
mov rdx, qword [rdi]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rbx
mov rdx, rsi
call qword [0x1400355d0]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
cmp dword [rdi + 8], 0
je case.default.0x1400150dd
mov rcx, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
cmp byte [0x14004ac28], 0
jne 0x140015144
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140015134
lea rdx, [0x140036fd8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14004ac20], rax
mov byte [0x14004ac28], 1
jmp 0x14001514b
mov rax, qword [0x14004ac20]
mov byte [0x14004ac28], 1
jmp 0x14001514b
mov rax, qword [0x14004ac20]
mov rcx, qword [rbx]
mov rdx, rsi
test rax, rax
je 0x1400150ce
mov r8d, dword [rbx + 8]
xor r9d, r9d
call qword [0x1400355d0]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
stc
xor al, 0x9d
enter 0xfffffffffffff964, 0xffffffffffffff99
outsd dx, dword [rsi]
jl 0x14007d342
ret
insb byte [rdi], dx
invalid
Function at 0x140016550
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x480
mov rax, qword [0x1400490e0]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x60], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x1400165d5
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x1400165d5
call fcn.140014c40
mov ebx, eax
jmp 0x140016700
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x1400165f6
call fcn.140014c40
jmp 0x1400166ef
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140016619
call fcn.140014c40
jmp 0x1400166ef
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x14001663b
mov ebx, 0x8007000e
jmp 0x1400166f1
mov ecx, eax
test eax, eax
je 0x140016673
xor edx, edx
mov rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140016738
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x140016673
lfence
lea rcx, [rsp + 0x60]
call fcn.140014ab0
jmp 0x14001667d
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
jmp 0x140016690
cmp qword [rsp + 0x60], 0
jne 0x14001669f
mov ebx, 0x8007000e
jmp 0x1400166f1
lfence
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1400166cc
call fcn.140014c40
jmp 0x1400166ef
mov ecx, eax
mov rax, qword [rsp + 0x60]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.140016050
mov ebx, eax
test rdi, rdi
je 0x140016700
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x60], rax
je 0x140016717
lea rcx, [rsp + 0x60]
call fcn.140015180
nop
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14001dff0
add rsp, 0x480
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
lfence
mov ecx, 0x80070216
call fcn.14000d1c0
int3
Function at 0x14001f004
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001f04e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001f04e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001f04e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001f04e
cmp dword [rcx + 0x84], 0xe
jbe 0x14001f04e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001f050
xor al, al
add rsp, 0x28
ret
Function at 0x14002d078
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14002d0ff
mov rsi, rbx
cmp word [rax], bp
je 0x14002d0be
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14002d0a8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14002d0a4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140028fec
mov rdi, rax
test rax, rax
je 0x14002d0ec
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400207f0
mov rbp, rdi
xor ecx, ecx
call fcn.140029734
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
push rcx
push rsi
mov rdx, qword [rdx + 0x20]
xor r9, r9
movzx rcx, word [rdx + 0x4a]
mov rsi, qword [rdx + 0x50]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
push r9
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
push rax
mov ecx, dword [rax + 0x18]
mov r8d, dword [rax + 0x20]
add r8, rdx
jrcxz 0x1400040ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x140003fa4
Capabilities:
Get system information on windows

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x1c0
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x1c0], rbx
mov qword [rbp + 0x1c8], rsi
mov qword [rbp + 0x1d0], rdi
mov rax, qword [0x1400153a0]
xor rax, rbp
mov qword [rbp + 0x190], rax
mov eax, dword [0x140015c74]
mov r15d, 1
test r15b, al
jne 0x140004022
or eax, r15d
lea rcx, [rbp + 0x70]
mov ebx, 0x114
mov dword [0x140015c74], eax
mov r8d, ebx
xor edx, edx
call sub.msvcrt.dll_memset
lea rcx, [rbp + 0x70]
mov dword [rbp + 0x70], ebx
call qword [sym.imp.api_ms_win_core_sysinfo_l1_2_1.dll_GetVersionExW]
mov eax, dword [rbp + 0x80]
mov dword [0x1400159f0], eax
mov eax, dword [rsp]
sub rsp, 0x10
lea rsi, [rsp + 0x20]
mov eax, dword [rsi]
mov r8d, 0x30
lea rdx, [rbp + 8]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_memory_l1_1_2.dll_VirtualQuery]
test rax, rax
jne 0x14000404f
xor eax, eax
jmp 0x140004119
mov rbx, qword [rbp + 0x10]
lea rcx, [rbp + 0x38]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_2_1.dll_GetSystemInfo]
mov eax, dword [rbp + 0x3c]
mov ecx, 0x11000
mov r14d, eax
lea edi, [rax - 1]
not rdi
and rdi, rsi
mov esi, 0x2000
sub rdi, rax
mov eax, dword [0x1400159f0]
cmp eax, r15d
cmove esi, ecx
add rsi, rbx
cmp rdi, rsi
jb 0x140004048
cmp eax, r15d
je 0x1400040f9
mov r8d, 0x30
lea rdx, [rbp + 8]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_memory_l1_1_2.dll_VirtualQuery]
test rax, rax
je 0x140004048
add rbx, qword [rbp + 0x20]
test dword [rbp + 0x28], 0x1000
je 0x140004092
test dword [rbp + 0x2c], 0x100
mov rbx, qword [rbp + 8]
je 0x1400040c9
mov eax, r15d
jmp 0x140004119
cmp rdi, rbx
jb 0x140004048
cmp rbx, rsi
mov r9d, 4
mov r8d, 0x1000
mov rdx, r14
cmovb rbx, rsi
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_memory_l1_1_2.dll_VirtualAlloc]
mov eax, dword [0x1400159f0]
jmp 0x1400040fc
mov rbx, rdi
cmp eax, r15d
lea r9, [rbp]
mov r8d, 0x104
mov rdx, r14
cmove r8d, r15d
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_memory_l1_1_2.dll_VirtualProtect]
mov rcx, qword [rbp + 0x190]
xor rcx, rbp
call fcn.14000cf30
mov rbx, qword [rbp + 0x1c0]
mov rsi, qword [rbp + 0x1c8]
mov rdi, qword [rbp + 0x1d0]
lea rsp, [rbp + 0x1a0]
pop r15
pop r14
pop rbp
ret
Function at 0x1400041c8
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0x1a8]
sub rsp, 0x290
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1400153a0]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rsi, rdx
mov rdi, rcx
xor eax, eax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400042d3
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000424e
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x48], rcx
test ebx, ebx
jne 0x1400042d3
jmp 0x140004277
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x48]
call fcn.1400041c8
mov ebx, eax
test eax, eax
jne 0x1400042d3
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov dword [rsp + 0x40], 0x100
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x80]
xor edx, edx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
test eax, eax
je 0x14000425e
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400042c6
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
and qword [rsp + 0x48], 0
mov rdx, rsi
mov rcx, rdi
call fcn.140004338
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400042e3
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14000cf30
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x290
pop rdi
pop rsi
pop rbp
ret
Function at 0x140005720
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
and dword [rsp + 0x40], 0
mov rbx, rcx
lea rcx, [0x140015b58]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_EnterCriticalSection]
cmp rbx, qword [0x140015c80]
jne 0x14000578b
cmp byte [0x140015c78], 0
jne 0x14000578b
lea rax, [rsp + 0x40]
mov byte [0x140015c78], 1
mov qword [rsp + 0x28], rax
lea r8, [fcn.140005640]
and dword [rsp + 0x20], 0
mov r9, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_CreateThread]
mov qword [rbx + 0x88], rax
test rax, rax
jne 0x14000578b
mov rcx, rbx
call fcn.140005640
lea rcx, [0x140015b58]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_LeaveCriticalSection]
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x140007d90
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x188]
sub rsp, 0x280
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400153a0]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rsi, rcx
xor ebx, ebx
and qword [rsp + 0x58], rbx
and qword [rsp + 0x60], rbx
and qword [rsp + 0x48], rbx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftALGISV
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x140007e7c
mov rbx, qword [rsp + 0x48]
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x40], 0x100
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
mov edx, edi
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
inc edi
test eax, eax
jne 0x140007e7a
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140007bcc
test al, al
je 0x140007e73
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140007834
mov rbx, qword [rsp + 0x50]
jmp 0x140007e13
xor edi, edi
test rbx, rbx
je 0x140007e8a
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14000cf30
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400084a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x30
mov rcx, qword [rcx]
mov rax, r8
mov qword [r11 - 0x10], r9
mov rdi, r9
mov qword [r11 - 0x18], rdx
lea r9, [r11 + 8]
mov rbx, rdx
xor esi, esi
mov rdx, rax
mov dword [rsp + 0x40], esi
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ecx, dword [rsp + 0x40]
mov edx, eax
test ecx, ecx
je 0x140008515
cmp ecx, 2
jbe 0x14000852a
cmp ecx, 7
jne 0x140008515
test byte [rdi], 1
jne 0x140008515
mov eax, dword [rdi]
and eax, 0xfffffffe
cmp eax, 4
jb 0x140008515
test rbx, rbx
je 0x140008540
mov eax, dword [rdi]
shr rax, 1
cmp word [rbx + rax*2 - 2], si
jne 0x140008515
cmp word [rbx + rax*2 - 4], si
je 0x140008540
mov eax, 0xd
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test byte [rdi], 1
jne 0x140008515
test rbx, rbx
je 0x140008540
mov eax, dword [rdi]
shr rax, 1
cmp word [rbx + rax*2 - 2], si
jne 0x140008515
mov eax, edx
jmp 0x14000851a
Function at 0x140009d28
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x1400153a0]
xor rax, rsp
mov qword [rsp + 0x38], rax
or r15, 0xffffffffffffffff
mov r12, rdx
mov rdi, r15
xor r13d, r13d
lea ecx, [r15 + 3]
lea edx, [rcx - 1]
mov qword [r11 - 0x40], rcx
lea r8d, [r15 + 7]
call qword [sym.imp.WS2_32.dll_socket]
lea r14d, [r15 + 0x11]
mov rsi, rax
cmp rax, r15
je 0x140009da7
mov r8d, r14d
lea rdx, [rsp + 0x28]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_bind]
mov ebx, eax
cmp eax, r15d
je 0x140009d9e
mov rdi, rsi
jmp 0x140009daf
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
test ebx, ebx
jne 0x140009dfa
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], r14d
lea rdx, [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, r15d
movzx ebp, r13w
mov ebx, eax
cmovne bp, word [rsp + 0x2a]
test eax, eax
jne 0x140009df1
mov rcx, r14
call fcn.14000c820
mov rsi, rax
test rax, rax
jne 0x140009e32
lea ebx, [rax + 0xe]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14000cf30
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov qword [rax], rdi
mov word [rax + 8], bp
movsxd rdi, dword [0x140015b88]
mov ecx, dword [0x140015b8c]
lea r15d, [rdi + 1]
test r15d, r15d
jle 0x140009ebf
cmp edi, ecx
jne 0x140009ea5
cmp edi, 0x3fffffff
jg 0x140009ebf
movabs rdx, 0xfffffffffffffff
cmp rdi, rdx
ja 0x140009ebf
test ecx, ecx
lea r14d, [rdi + rdi]
mov rcx, qword [0x140015b80]
mov eax, 1
cmove r14d, eax
movsxd rdx, r14d
shl rdx, 3
call qword [sym.imp.msvcrt.dll_realloc]
mov rcx, rax
test rax, rax
je 0x140009ebf
mov dword [0x140015b8c], r14d
mov qword [0x140015b80], rax
jmp 0x140009eac
mov rcx, qword [0x140015b80]
lea rdx, [rcx + rdi*8]
mov dword [0x140015b88], r15d
test rdx, rdx
je 0x140009ebf
mov qword [rdx], rsi
mov word [r12], bp
jmp 0x140009dfa

Function at 0x14000a774
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
and dword [rsp + 0x38], 0
mov rsi, rcx
xor ebx, ebx
mov edi, 0xff
mov eax, 0x3ff
shr eax, 1
lea ebx, [rbx*2 + 2]
jne 0x14000a797
shr ebx, 1
and dword [rcx], 0
mov edx, 4
lea rcx, [rsp + 0x38]
call qword [sym.imp.CRYPTBASE.dll_SystemFunction036]
cmp al, 1
jne 0x14000a7d5
mov eax, dword [rsp + 0x38]
and eax, ebx
mov dword [rsp + 0x38], eax
cmp eax, 0x3ff
jbe 0x14000a7d3
add edi, 0xffffffff
je 0x14000a7d5
jmp 0x14000a7a7
mov dword [rsi], eax
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret