joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407240
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x508
mov rax, qword [0x0042a560]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov qword [r11 + 0x20], rbp
mov qword [r11 - 8], rsi
lea rax, [rsp + 0x30]
mov rbp, rdx
xor esi, esi
lea rdx, str.SystemCurrentControlSetControlKeyboard_Layouts
lea r9d, [rsi + 9]
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x407299
xor eax, eax
jmp 0x407436
xor edx, edx
lea rcx, [rsp + 0x52]
mov qword [rsp + 0x520], rbx
lea r8d, [rdx + 0x62]
mov qword [rsp + 0x4f8], rdi
mov word [rsp + 0x50], si
call fcn.0040e3f0
lea rcx, [rsp + 0xc2]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0xc0], si
call fcn.0040e3f0
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0xc0]
mov r9d, 0x104
xor edx, edx
mov ebx, esi
mov edi, esi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x407419
cmp ebx, 0x2710
jge 0x407419
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0xc0]
add ebx, 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4073ec
lea rcx, [rsp + 0x2d2]
xor edx, edx
mov r8d, 0x206
mov dword [rsp + 0x44], 0x32
mov word [rsp + 0x2d0], si
call fcn.0040e3f0
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x44]
lea rdx, str.Ime_File
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x40], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
lea r11, [rsp + 0x40]
lea rax, [rsp + 0x2d0]
mov qword [rsp + 0x28], r11
lea rdx, str.Layout_Text
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x50]
call fcn.0040fad0
mov r8, rbp
sub r8, rax
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x4073e8
add rax, 2
test ecx, ecx
jne 0x4073d4
test edx, edx
je 0x407414
mov rcx, qword [rsp + 0x30]
add edi, 1
lea r8, [rsp + 0xc0]
mov edx, edi
mov r9d, 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x407302
jmp 0x407419
mov esi, 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x4f8]
mov rbx, qword [rsp + 0x520]
mov eax, esi
mov rsi, qword [rsp + 0x500]
mov rbp, qword [rsp + 0x528]
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.0040e5d0
add rsp, 0x508
ret
Function at 0x407460
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov r11, rsp
sub rsp, 0x718
mov rax, qword [0x0042a560]
xor rax, rsp
mov qword [rsp + 0x6f0], rax
mov qword [r11 - 8], rbp
lea rax, [rsp + 0x38]
mov rbp, rdx
mov qword [r11 - 0x18], rdi
mov rdi, r8
lea rdx, str.SystemCurrentControlSetControlKeyboard_Layouts
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4076f0
lea r8d, [rax + 0x62]
lea rcx, [rsp + 0x52]
xor edx, edx
mov qword [rsp + 0x738], rbx
mov word [rsp + 0x50], ax
mov qword [rsp + 0x708], rsi
call fcn.0040e3f0
lea rcx, [rsp + 0x2d2]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x2d0], 0
call fcn.0040e3f0
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x2d0]
xor ebx, ebx
mov r9d, 0x104
xor edx, edx
mov esi, ebx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x4076d5
cmp ebx, 0x2710
jge 0x4076d5
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x2d0]
add ebx, 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x407613
lea rcx, [rsp + 0x4e2]
xor edx, edx
mov r8d, 0x206
mov dword [rsp + 0x44], 0x32
mov word [rsp + 0x4e0], ax
call fcn.0040e3f0
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x44]
lea rdx, str.Ime_File
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x40], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
lea r11, [rsp + 0x40]
lea rax, [rsp + 0x4e0]
mov qword [rsp + 0x28], r11
lea rdx, str.Layout_Text
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rcx, [rsp + 0x50]
call fcn.0040fad0
mov r8, rbp
sub r8, rax
nop
nop
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x407604
add rax, 2
test ecx, ecx
jne 0x4075f0
test edx, edx
je 0x40763e
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
add esi, 1
lea r8, [rsp + 0x2d0]
mov edx, esi
mov r9d, 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x407524
jmp 0x4076d5
lea rcx, [rsp + 0xc2]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0xc0], 0
call fcn.0040e3f0
lea rcx, [rsp + 0xc0]
sub rcx, rdi
nop
nop
movzx eax, word [rdi]
add rdi, 2
test ax, ax
mov word [rcx + rdi - 2], ax
jne 0x407670
xor eax, eax
lea rdi, [rsp + 0xc0]
mov rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
lea rax, [rsp + 0xc0]
lea rdx, str.Layout_Text
not rcx
mov r9d, 1
xor r8d, r8d
sub rcx, 1
add ecx, ecx
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x708]
mov rbx, qword [rsp + 0x738]
mov rdi, qword [rsp + 0x700]
mov rbp, qword [rsp + 0x710]
mov rcx, qword [rsp + 0x6f0]
xor rcx, rsp
call fcn.0040e5d0
add rsp, 0x718
ret
Function at 0x4095a0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x0042a560]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x11c
call fcn.0040e3f0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x24], 6
jne 0x409619
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x4095f2
cmp eax, 1
jne 0x409619
cmp byte [rsp + 0x13a], 1
jne 0x409619
mov eax, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.0040e5d0
add rsp, 0x158
ret
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.0040e5d0
add rsp, 0x158
ret

Function at 0x409680
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x688
mov rax, qword [0x0042a560]
xor rax, rsp
mov qword [rsp + 0x670], rax
mov qword [rsp + 0x6a0], rbx
mov rbx, rcx
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x40], 0
call fcn.0040e3f0
xor edx, edx
lea rcx, str.SOFTWARE_
nop
nop
nop
movzx eax, word [rdx + rcx]
add rdx, 2
test ax, ax
mov word [rsp + rdx + 0x3e], ax
jne 0x4096d0
xor eax, eax
mov qword [rsp + 0x6a8], rdi
lea rdi, [rsp + 0x40]
mov rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
cmp qword [rbx + 0x50], 8
mov rax, qword [str.WanNengWBInput]
mov qword [rdi - 2], rax
mov rax, qword [0x00421fe0]
mov qword [rdi + 6], rax
mov rax, qword [0x00421fe8]
mov qword [rdi + 0xe], rax
mov eax, dword [0x00421ff0]
mov dword [rdi + 0x16], eax
movzx eax, word [0x00421ff4]
mov word [rdi + 0x1a], ax
mov rdi, qword [rsp + 0x6a8]
jb 0x409745
mov rcx, qword [rbx + 0x38]
jmp 0x409749
lea rcx, [rbx + 0x38]
lea rdx, [rsp + 0x250]
movzx eax, word [rcx]
add rdx, 2
add rcx, 2
test ax, ax
mov word [rdx - 2], ax
jne 0x409751
cmp qword [rbx + 0x28], 8
jb 0x409772
mov rcx, qword [rbx + 0x10]
jmp 0x409776
lea rcx, [rbx + 0x10]
mov rbx, qword [rsp + 0x6a0]
lea rdx, [rsp + 0x460]
nop
nop
nop
movzx eax, word [rcx]
add rdx, 2
add rcx, 2
test ax, ax
mov word [rdx - 2], ax
jne 0x409790
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r9d, 2
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40982d
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x250]
lea rdx, str.CfgRootPath
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x460]
lea rdx, str.CfgUserPath
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.0040e5d0
add rsp, 0x688
ret
Function at 0x40b020
Capabilities:
Check if file exists

Disassembly:
sub rsp, 0x248
mov rax, qword [0x0042a560]
xor rax, rsp
mov qword [rsp + 0x230], rax
cmp qword [rcx + 0x50], 8
mov qword [rsp + 0x258], rbx
mov rbx, rcx
jb 0x40b051
mov r8, qword [rcx + 0x38]
jmp 0x40b055
lea r8, [rcx + 0x38]
lea r9, str.Config
lea rdx, [0x004228b0]
lea rcx, [rsp + 0x20]
call fcn.0040e620
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40b086
lea rcx, [rsp + 0x20]
call fcn.0040ddc0
mov rdx, qword [rbx + 0x78]
xor eax, eax
mov qword [rsp + 0x268], rsi
mov qword [rsp + 0x240], rdi
lea rdi, [rsp + 0x20]
mov rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
mov rax, qword [str.Config.ini]
add rbx, 0x58
mov qword [rdi - 2], rax
mov rax, qword [0x004229d0]
mov rcx, 0xffffffffffffffff
mov qword [rdi + 6], rax
mov eax, dword [0x004229d8]
mov dword [rdi + 0xe], eax
movzx eax, word [0x004229dc]
mov word [rdi + 0x12], ax
xor eax, eax
lea rdi, [rsp + 0x20]
repne scasw ax, word [rdi]
cmp rdx, 8
not rcx
lea rsi, [rcx - 1]
jb 0x40b101
mov rax, qword [rbx + 8]
lea rdi, [rbx + 8]
jmp 0x40b108
lea rdi, [rbx + 8]
mov rax, rdi
lea rcx, [rsp + 0x20]
cmp rcx, rax
jb 0x40b159
cmp rdx, 8
jb 0x40b11d
mov rcx, qword [rdi]
jmp 0x40b120
mov rcx, rdi
mov rax, qword [rbx + 0x18]
lea rcx, [rcx + rax*2]
lea rax, [rsp + 0x20]
cmp rcx, rax
jbe 0x40b159
cmp rdx, 8
jb 0x40b13b
mov rdi, qword [rdi]
lea r8, [rsp + 0x20]
mov r9, rsi
mov rdx, rbx
sub r8, rdi
mov rcx, rbx
sar r8, 1
call fcn.00401a30
jmp 0x40b1ed
movabs rax, 0x7ffffffffffffffe
cmp rsi, rax
jbe 0x40b16d
call fcn.0040e230
mov rax, qword [rbx + 0x20]
cmp rax, rsi
jae 0x40b199
mov r8, qword [rbx + 0x18]
mov rdx, rsi
mov rcx, rbx
call fcn.00401420
test rsi, rsi
je 0x40b1ed
mov rdx, qword [rbx + 0x20]
cmp rdx, 8
jb 0x40b1b2
mov rcx, qword [rdi]
jmp 0x40b1b5
test rsi, rsi
jne 0x40b185
cmp rax, 8
mov qword [rbx + 0x18], rsi
jb 0x40b1ab
mov rdi, qword [rdi]
mov word [rdi], 0
jmp 0x40b1ed
mov rcx, rdi
mov qword [rsp + 0x260], rbp
lea rbp, [rsi + rsi]
lea r8, [rsp + 0x20]
mov r9, rbp
add rdx, rdx
call fcn.0040e710
cmp qword [rbx + 0x20], 8
mov qword [rbx + 0x18], rsi
jb 0x40b1df
mov rdi, qword [rdi]
mov word [rdi + rbp], 0
mov rbp, qword [rsp + 0x260]
mov rdi, qword [rsp + 0x240]
mov rsi, qword [rsp + 0x268]
mov rbx, qword [rsp + 0x258]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.0040e5d0
add rsp, 0x248
ret
Function at 0x40b220
Capabilities:
Check if file exists

Disassembly:
sub rsp, 0x248
mov rax, qword [0x0042a560]
xor rax, rsp
mov qword [rsp + 0x230], rax
cmp qword [rcx + 0x50], 8
mov qword [rsp + 0x258], rbx
mov rbx, rcx
jb 0x40b251
mov r8, qword [rcx + 0x38]
jmp 0x40b255
lea r8, [rcx + 0x38]
lea r9, str.Config
lea rdx, [0x004228b0]
lea rcx, [rsp + 0x20]
call fcn.0040e620
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40b286
lea rcx, [rsp + 0x20]
call fcn.0040ddc0
xor eax, eax
mov qword [rsp + 0x268], rsi
mov qword [rsp + 0x240], rdi
lea rdi, [rsp + 0x20]
mov rcx, 0xffffffffffffffff
add rbx, 0x120
mov rdx, qword [rbx + 0x20]
repne scasw ax, word [rdi]
mov rax, qword [str.Related.ini]
mov qword [rdi - 2], rax
mov rax, qword [0x004229f8]
mov rcx, 0xffffffffffffffff
mov qword [rdi + 6], rax
mov rax, qword [0x00422a00]
mov qword [rdi + 0xe], rax
xor eax, eax
lea rdi, [rsp + 0x20]
repne scasw ax, word [rdi]
cmp rdx, 8
not rcx
lea rsi, [rcx - 1]
jb 0x40b2fb
mov rax, qword [rbx + 8]
lea rdi, [rbx + 8]
jmp 0x40b302
lea rdi, [rbx + 8]
mov rax, rdi
lea rcx, [rsp + 0x20]
cmp rcx, rax
jb 0x40b353
cmp rdx, 8
jb 0x40b317
mov rcx, qword [rdi]
jmp 0x40b31a
mov rcx, rdi
mov rax, qword [rbx + 0x18]
lea rcx, [rcx + rax*2]
lea rax, [rsp + 0x20]
cmp rcx, rax
jbe 0x40b353
cmp rdx, 8
jb 0x40b335
mov rdi, qword [rdi]
lea r8, [rsp + 0x20]
mov r9, rsi
mov rdx, rbx
sub r8, rdi
mov rcx, rbx
sar r8, 1
call fcn.00401a30
jmp 0x40b3e7
movabs rax, 0x7ffffffffffffffe
cmp rsi, rax
jbe 0x40b367
call fcn.0040e230
mov rax, qword [rbx + 0x20]
cmp rax, rsi
jae 0x40b393
mov r8, qword [rbx + 0x18]
mov rdx, rsi
mov rcx, rbx
call fcn.00401420
test rsi, rsi
je 0x40b3e7
mov rdx, qword [rbx + 0x20]
cmp rdx, 8
jb 0x40b3ac
mov rcx, qword [rdi]
jmp 0x40b3af
test rsi, rsi
jne 0x40b37f
cmp rax, 8
mov qword [rbx + 0x18], rsi
jb 0x40b3a5
mov rdi, qword [rdi]
mov word [rdi], 0
jmp 0x40b3e7
mov rcx, rdi
mov qword [rsp + 0x260], rbp
lea rbp, [rsi + rsi]
lea r8, [rsp + 0x20]
mov r9, rbp
add rdx, rdx
call fcn.0040e710
cmp qword [rbx + 0x20], 8
mov qword [rbx + 0x18], rsi
jb 0x40b3d9
mov rdi, qword [rdi]
mov word [rdi + rbp], 0
mov rbp, qword [rsp + 0x260]
mov rdi, qword [rsp + 0x240]
mov rsi, qword [rsp + 0x268]
mov rbx, qword [rsp + 0x258]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.0040e5d0
add rsp, 0x248
ret
Function at 0x40b7a0
Capabilities:
Check if file exists

Disassembly:
sub rsp, 0x248
mov rax, qword [0x0042a560]
xor rax, rsp
mov qword [rsp + 0x230], rax
cmp qword [rcx + 0x50], 8
mov qword [rsp + 0x258], rbx
mov rbx, rcx
jb 0x40b7d1
mov r8, qword [rcx + 0x38]
jmp 0x40b7d5
lea r8, [rcx + 0x38]
lea r9, str.UseData
lea rdx, [0x004228b0]
lea rcx, [rsp + 0x20]
call fcn.0040e620
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40b806
lea rcx, [rsp + 0x20]
call fcn.0040ddc0
mov qword [rsp + 0x268], rsi
mov qword [rsp + 0x240], rdi
xor eax, eax
add rbx, 0x1c0
lea rdi, [rsp + 0x20]
mov rcx, 0xffffffffffffffff
mov rdx, qword [rbx + 0x20]
repne scasw ax, word [rdi]
cmp rdx, 8
not rcx
lea rsi, [rcx - 1]
jb 0x40b849
mov rax, qword [rbx + 8]
lea rdi, [rbx + 8]
jmp 0x40b850
lea rdi, [rbx + 8]
mov rax, rdi
lea rcx, [rsp + 0x20]
cmp rcx, rax
jb 0x40b8a1
cmp rdx, 8
jb 0x40b865
mov rcx, qword [rdi]
jmp 0x40b868
mov rcx, rdi
mov rax, qword [rbx + 0x18]
lea rcx, [rcx + rax*2]
lea rax, [rsp + 0x20]
cmp rcx, rax
jbe 0x40b8a1
cmp rdx, 8
jb 0x40b883
mov rdi, qword [rdi]
lea r8, [rsp + 0x20]
mov r9, rsi
mov rdx, rbx
sub r8, rdi
mov rcx, rbx
sar r8, 1
call fcn.00401a30
jmp 0x40b935
movabs rax, 0x7ffffffffffffffe
cmp rsi, rax
jbe 0x40b8b5
call fcn.0040e230
mov rax, qword [rbx + 0x20]
cmp rax, rsi
jae 0x40b8e1
mov r8, qword [rbx + 0x18]
mov rdx, rsi
mov rcx, rbx
call fcn.00401420
test rsi, rsi
je 0x40b935
mov rdx, qword [rbx + 0x20]
cmp rdx, 8
jb 0x40b8fa
mov rcx, qword [rdi]
jmp 0x40b8fd
test rsi, rsi
jne 0x40b8cd
cmp rax, 8
mov qword [rbx + 0x18], rsi
jb 0x40b8f3
mov rdi, qword [rdi]
mov word [rdi], 0
jmp 0x40b935
mov rcx, rdi
mov qword [rsp + 0x260], rbp
lea rbp, [rsi + rsi]
lea r8, [rsp + 0x20]
mov r9, rbp
add rdx, rdx
call fcn.0040e710
cmp qword [rbx + 0x20], 8
mov qword [rbx + 0x18], rsi
jb 0x40b927
mov rdi, qword [rdi]
mov word [rdi + rbp], 0
mov rbp, qword [rsp + 0x260]
mov rdi, qword [rsp + 0x240]
mov rsi, qword [rsp + 0x268]
mov rbx, qword [rsp + 0x258]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.0040e5d0
add rsp, 0x248
ret
Function at 0x40cc50
Capabilities:
Enumerate processes

Disassembly:
mov r11, rsp
sub rsp, 0x488
mov rax, qword [0x0042a560]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov rbp, rcx
mov qword [r11 + 0x20], rsi
lea rcx, [r11 - 0x226]
xor edx, edx
mov r8d, 0x206
mov qword [r11 - 8], rdi
mov word [rsp + 0x260], 0
call fcn.0040e3f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rcx, [rsp + 0x24]
xor edi, edi
xor edx, edx
mov r8d, 0x234
mov ebx, eax
mov dword [rsp + 0x20], edi
call fcn.0040e3f0
lea ecx, [rdi + 2]
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x40cd61
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x238
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40cd26
nop
cmp dword [rsp + 0x28], ebx
je 0x40cd10
lea rdx, [rsp + 0x20]
mov rcx, rsi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40ccf0
jmp 0x40cd26
movzx eax, word [rsp + rdi + 0x4c]
add rdi, 2
test ax, ax
mov word [rsp + rdi + 0x25e], ax
jne 0x40cd10
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x260]
call fcn.0040fad0
mov rcx, 0xffffffffffffffff
mov rdx, rax
xor eax, eax
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbp + 0x1e8]
call fcn.00401c40
mov rdi, qword [rsp + 0x480]
mov rsi, qword [rsp + 0x4a8]
mov rbp, qword [rsp + 0x4a0]
mov rbx, qword [rsp + 0x498]
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.0040e5d0
add rsp, 0x488
ret
Function at 0x40cda0
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov r11, rsp
sub rsp, 0x248
mov rax, qword [0x0042a560]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov qword [r11 + 0x10], rbx
xor r9d, r9d
mov rbx, rcx
lea rdx, [rsp + 0x20]
lea r8d, [r9 + 0x1a]
xor ecx, ecx
mov qword [r11 - 8], rdi
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
lea rdi, [rsp + 0x20]
mov rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
test ecx, ecx
je 0x40cfa7
mov edx, dword [0x004219d4]
lea rdi, [rsp + 0x20]
mov rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
mov rcx, 0xffffffffffffffff
mov dword [rdi - 2], edx
lea rdi, [rsp + 0x20]
repne scasw ax, word [rdi]
mov rax, qword [str.WanNengWBIME]
mov rcx, 0xffffffffffffffff
mov qword [rdi - 2], rax
mov rax, qword [0x00422aa0]
mov qword [rdi + 6], rax
mov rax, qword [0x00422aa8]
mov qword [rdi + 0xe], rax
movzx eax, word [0x00422ab0]
mov word [rdi + 0x16], ax
xor eax, eax
lea rdi, [rsp + 0x20]
repne scasw ax, word [rdi]
lea rcx, [rsp + 0x20]
mov dword [rdi - 2], edx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40ce7b
lea rcx, [rsp + 0x20]
call fcn.0040ddc0
mov rdx, qword [rbx + 0x50]
xor eax, eax
add rbx, 0x30
lea rdi, [rsp + 0x20]
mov rcx, 0xffffffffffffffff
mov qword [rsp + 0x268], rsi
repne scasw ax, word [rdi]
cmp rdx, 8
not rcx
lea rsi, [rcx - 1]
jb 0x40ceb3
mov rax, qword [rbx + 8]
lea rdi, [rbx + 8]
jmp 0x40ceba
lea rdi, [rbx + 8]
mov rax, rdi
lea rcx, [rsp + 0x20]
cmp rcx, rax
jb 0x40cf0b
cmp rdx, 8
jb 0x40cecf
mov rcx, qword [rdi]
jmp 0x40ced2
mov rcx, rdi
mov rax, qword [rbx + 0x18]
lea rcx, [rcx + rax*2]
lea rax, [rsp + 0x20]
cmp rcx, rax
jbe 0x40cf0b
cmp rdx, 8
jb 0x40ceed
mov rdi, qword [rdi]
lea r8, [rsp + 0x20]
mov r9, rsi
mov rdx, rbx
sub r8, rdi
mov rcx, rbx
sar r8, 1
call fcn.00401a30
jmp 0x40cf9f
movabs rax, 0x7ffffffffffffffe
cmp rsi, rax
jbe 0x40cf1f
call fcn.0040e230
mov rax, qword [rbx + 0x20]
cmp rax, rsi
jae 0x40cf4b
mov r8, qword [rbx + 0x18]
mov rdx, rsi
mov rcx, rbx
call fcn.00401420
test rsi, rsi
je 0x40cf9f
mov rdx, qword [rbx + 0x20]
cmp rdx, 8
jb 0x40cf64
mov rcx, qword [rdi]
jmp 0x40cf67
test rsi, rsi
jne 0x40cf37
cmp rax, 8
mov qword [rbx + 0x18], rsi
jb 0x40cf5d
mov rdi, qword [rdi]
mov word [rdi], 0
jmp 0x40cf9f
mov rcx, rdi
mov qword [rsp + 0x260], rbp
lea rbp, [rsi + rsi]
lea r8, [rsp + 0x20]
mov r9, rbp
add rdx, rdx
call fcn.0040e710
cmp qword [rbx + 0x20], 8
mov qword [rbx + 0x18], rsi
jb 0x40cf91
mov rdi, qword [rdi]
mov word [rdi + rbp], 0
mov rbp, qword [rsp + 0x260]
mov rsi, qword [rsp + 0x268]
mov rdi, qword [rsp + 0x240]
mov rbx, qword [rsp + 0x258]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.0040e5d0
add rsp, 0x248
ret
Function at 0x40cfd0
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov r11, rsp
sub rsp, 0x248
mov rax, qword [0x0042a560]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov qword [r11 + 0x10], rbx
xor r9d, r9d
mov rbx, rcx
lea rdx, [rsp + 0x20]
lea r8d, [r9 + 0x1a]
xor ecx, ecx
mov qword [r11 - 8], rdi
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
lea rdi, [rsp + 0x20]
mov rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
test ecx, ecx
je 0x40d1eb
mov edx, dword [0x004219d4]
lea rdi, [rsp + 0x20]
mov rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
mov rcx, 0xffffffffffffffff
mov dword [rdi - 2], edx
lea rdi, [rsp + 0x20]
repne scasw ax, word [rdi]
mov rax, qword [str.WanNengWBIME.users]
mov rcx, 0xffffffffffffffff
mov qword [rdi - 2], rax
mov rax, qword [0x00422ac0]
mov qword [rdi + 6], rax
mov rax, qword [0x00422ac8]
mov qword [rdi + 0xe], rax
mov rax, qword [0x00422ad0]
mov qword [rdi + 0x16], rax
mov eax, dword [0x00422ad8]
mov dword [rdi + 0x1e], eax
movzx eax, word [0x00422adc]
mov word [rdi + 0x22], ax
xor eax, eax
lea rdi, [rsp + 0x20]
repne scasw ax, word [rdi]
lea rcx, [rsp + 0x20]
mov dword [rdi - 2], edx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40d0bf
lea rcx, [rsp + 0x20]
call fcn.0040ddc0
mov rdx, qword [rbx + 0x28]
xor eax, eax
add rbx, 8
lea rdi, [rsp + 0x20]
mov rcx, 0xffffffffffffffff
mov qword [rsp + 0x268], rsi
repne scasw ax, word [rdi]
cmp rdx, 8
not rcx
lea rsi, [rcx - 1]
jb 0x40d0f7
mov rax, qword [rbx + 8]
lea rdi, [rbx + 8]
jmp 0x40d0fe
lea rdi, [rbx + 8]
mov rax, rdi
lea rcx, [rsp + 0x20]
cmp rcx, rax
jb 0x40d14f
cmp rdx, 8
jb 0x40d113
mov rcx, qword [rdi]
jmp 0x40d116
mov rcx, rdi
mov rax, qword [rbx + 0x18]
lea rcx, [rcx + rax*2]
lea rax, [rsp + 0x20]
cmp rcx, rax
jbe 0x40d14f
cmp rdx, 8
jb 0x40d131
mov rdi, qword [rdi]
lea r8, [rsp + 0x20]
mov r9, rsi
mov rdx, rbx
sub r8, rdi
mov rcx, rbx
sar r8, 1
call fcn.00401a30
jmp 0x40d1e3
movabs rax, 0x7ffffffffffffffe
cmp rsi, rax
jbe 0x40d163
call fcn.0040e230
mov rax, qword [rbx + 0x20]
cmp rax, rsi
jae 0x40d18f
mov r8, qword [rbx + 0x18]
mov rdx, rsi
mov rcx, rbx
call fcn.00401420
test rsi, rsi
je 0x40d1e3
mov rdx, qword [rbx + 0x20]
cmp rdx, 8
jb 0x40d1a8
mov rcx, qword [rdi]
jmp 0x40d1ab
test rsi, rsi
jne 0x40d17b
cmp rax, 8
mov qword [rbx + 0x18], rsi
jb 0x40d1a1
mov rdi, qword [rdi]
mov word [rdi], 0
jmp 0x40d1e3
mov rcx, rdi
mov qword [rsp + 0x260], rbp
lea rbp, [rsi + rsi]
lea r8, [rsp + 0x20]
mov r9, rbp
add rdx, rdx
call fcn.0040e710
cmp qword [rbx + 0x20], 8
mov qword [rbx + 0x18], rsi
jb 0x40d1d5
mov rdi, qword [rdi]
mov word [rdi + rbp], 0
mov rbp, qword [rsp + 0x260]
mov rsi, qword [rsp + 0x268]
mov rdi, qword [rsp + 0x240]
mov rbx, qword [rsp + 0x258]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.0040e5d0
add rsp, 0x248
ret