joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a2d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4928
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5603e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov eax, dword [str.CLSID00024512_0000_0000_C000_000000000046InprocServer32]
push 0x2001f
push eax
push ebx
mov dword [ebp - 4], ebx
call fcn.0043b220
add esp, 4
push eax
lea ecx, [ebp - 0x18]
call fcn.00412570
test eax, eax
jne 0x41a38c
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 0x18]
cmp edi, ebx
je 0x41a351
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push edi
push 1
push ebx
push str..ksoback
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
je 0x41a358
cmp esi, ebx
je 0x41a39a
push esi
jmp 0x41a394
mov edx, dword [ebp + 0xc]
push edx
push str.InprocServer32.ksoback
lea ecx, [ebp - 0x18]
call fcn.004176f0
test eax, eax
jne 0x41a351
cmp esi, ebx
je 0x41a378
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x41a39a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41a4a0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4928
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5603e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov eax, dword [str.CLSID00024512_0000_0000_C000_000000000046InprocServer32]
push 0x2001f
push eax
push ebx
mov dword [ebp - 4], ebx
call fcn.0043b220
add esp, 4
push eax
lea ecx, [ebp - 0x18]
call fcn.00412570
test eax, eax
jne 0x41a53e
mov esi, dword [ebp - 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push str..ksoback
push esi
call edi
test eax, eax
je 0x41a513
cmp esi, ebx
je 0x41a54c
push esi
jmp 0x41a546
push str.InprocServer32.ksoback
push esi
call edi
test eax, eax
jne 0x41a50c
cmp esi, ebx
je 0x41a52a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x41a54c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423690
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
push 1
push 0
push 2
call fcn.0043baf0
test eax, eax
jns 0x4236ec
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret
push esi
push edi
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
jmp 0x423700
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x423700
lea eax, [ebp - 0x20c]
push eax
push 1
push str.EnableUpdateMode
mov ecx, 7
mov esi, str.cfgsoem.ini
push 0x4cebd0
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
pop edi
xor ecx, ebp
neg eax
pop esi
call fcn.004b12f6
mov esp, ebp
pop ebp
ret
Function at 0x427c00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5a0a
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x219]
mov dword [ebp - 4], 0
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x224], 0
call fcn.004331f0
mov ecx, esi
mov dword [ebp - 4], 1
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_void_]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov dword [ebp - 0x224], 1
mov word [ebp - 0x218], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0
push 0x1c
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x427cd5
push 0xffffffffffffffff
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.QtCore4.dll_public:_static_class_QString___cdecl_QString::fromWCharArray_unsigned_short_int_const___int_]
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call dword [0x4c471c]
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x219]
mov byte [ebp - 4], 0
call fcn.00433280
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret
Function at 0x42e190
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 0x14]
push esi
mov esi, dword [ecx + 4]
sub esi, dword [ecx]
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
push edi
shr eax, 0x1f
xor edi, edi
add eax, edx
je 0x42e222
mov dword [ebp - 4], edi
jmp 0x42e1c0
mov esi, dword [ecx]
mov ecx, dword [ecx + 4]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, edi
jbe 0x42e28a
mov eax, dword [ebp - 4]
add eax, esi
cmp dword [eax + 0x14], 8
jb 0x42e1ef
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x42e295
mov ecx, dword [ebx + 0x14]
mov esi, dword [ecx + 4]
sub esi, dword [ecx]
add dword [ebp - 4], 0x1c
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
cmp edi, eax
jb 0x42e1c0
mov esi, dword [ebx + 0x14]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [ebp - 4], esi
cmp ecx, eax
je 0x42e281
mov edx, dword [ebp - 4]
push edx
push ecx
push eax
push eax
call fcn.00405e10
mov edi, dword [esi + 4]
mov ebx, eax
add esp, 0x10
mov esi, ebx
cmp ebx, edi
je 0x42e27b
jmp 0x42e250
cmp dword [esi + 0x14], 8
jb 0x42e261
mov eax, dword [esi]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
add esi, 0x1c
cmp esi, edi
jne 0x42e250
mov edx, dword [ebp - 4]
mov dword [edx + 4], ebx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push str.invalid_vector_T__subscript
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xout_of_range_char_const__]
pop edi
pop esi
mov eax, 0x80004005
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x430230
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6fbb
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.ksolite.dll_class_QString___cdecl_krt::dirs::wtoolex_void_]
push str.wpsupdatesvr.exe
push eax
lea ecx, [ebp - 0x30]
push ecx
mov dword [ebp - 4], 0
call fcn.004080f0
add esp, 0x10
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x40]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QFile::constructor_class_QString_const__]
mov ecx, eax
mov byte [ebp - 4], 3
call dword [sym.imp.QtCore4.dll_public:_bool___thiscall_QFile::exists_void_const]
test al, al
lea ecx, [ebp - 0x40]
sete bl
mov byte [ebp - 4], 2
call dword [sym.imp.QtCore4.dll_public_virtual:_void___thiscall_QFile::destructor_void_]
test bl, bl
jne 0x4303a7
push 1
push 0
push 0
mov ebx, 0x80004005
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x43031e
mov eax, dword [str.Kingsoft_WPS_UpdateService]
push 4
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x43030c
lea ecx, [ebp - 0x2c]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x430301
cmp dword [ebp - 0x28], 4
jne 0x430301
xor ebx, ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
jmp 0x430312
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call edi
test ebx, ebx
jne 0x430324
jmp 0x4303a7
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call fcn.00436c80
test eax, eax
jne 0x430341
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
mov eax, ebx
jmp 0x4303b9
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
je 0x430381
mov edx, dword [str.Kingsoft_WPS_UpdateService]
push 0x10
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x43037e
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x43037b
xor ebx, ebx
push esi
call edi
push esi
call edi
lea ecx, [ebp - 0x30]
test ebx, ebx
je 0x4303aa
lea eax, [ebp - 0x34]
push eax
push str._Service
mov dword [ebp - 0x34], 0
call dword [sym.imp.QtCore4.dll_public:_unsigned_short_int_const____thiscall_QString::utf16_void_const]
push eax
call fcn.0044ff30
add esp, 0xc
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret
Function at 0x432110
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b754b
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x23c], ecx
mov dword [ebp - 0x244], esi
cmp dword [ecx + 0x9c], edi
jne 0x4322c4
push 7
xor eax, eax
push str.0.0.0.X
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], ax
call fcn.00405660
mov dword [ebp - 4], edi
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x250], 0x80000001
mov dword [ebp - 0x24c], 0x80000002
xor ebx, ebx
jmp 0x4321b0
mov edx, dword [ebp + ebx*4 - 0x250]
lea ecx, [ebp - 0x238]
push ecx
push 0x20019
push edi
push str.SOFTWAREKingsoftOffice6.0Common
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x43224d
mov esi, dword [ebp - 0x238]
cmp esi, edi
je 0x432247
push 0x206
lea ecx, [ebp - 0x216]
xor eax, eax
push edi
push ecx
mov dword [ebp - 0x240], edi
mov word [ebp - 0x218], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x248]
push edx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x240]
push ecx
push edi
push str.Version
push esi
mov dword [ebp - 0x248], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 0x238]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x238], edi
cmp esi, edi
je 0x432259
mov esi, dword [ebp - 0x244]
inc ebx
cmp ebx, 2
jb 0x4321b0
jmp 0x43228a
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x432262
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.00405660
mov esi, dword [ebp - 0x244]
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x234]
push ecx
mov ecx, dword [ebp - 0x23c]
add ecx, 0x8c
call fcn.00405560
cmp dword [ebp - 0x220], 8
mov dword [ebp - 4], 0xffffffff
jb 0x4322c4
mov edx, dword [ebp - 0x234]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0x23c]
push 0xffffffffffffffff
add ecx, 0x8c
push edi
xor eax, eax
push ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov ecx, esi
mov word [esi], ax
call fcn.00405560
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret 4
Function at 0x432f50
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x65c
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x65c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 2
mov ebx, eax
or edi, 0xffffffff
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4330a5
push 0x228
lea ecx, [ebp - 0x22c]
push 0
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x230]
push edx
push esi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x432fe1
nop
cmp dword [ebp - 0x228], ebx
je 0x432fdb
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x432fc0
jmp 0x432fe1
mov edi, dword [ebp - 0x218]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x4330a5
push 0x424
lea ecx, [ebp - 0x654]
push 0
push ecx
mov dword [ebp - 0x658], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
push edi
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
mov dword [ebp - 0x658], 0x428
cmp ebx, 0xffffffff
je 0x4330a5
lea edx, [ebp - 0x658]
push edx
push ebx
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x43309e
mov esi, dword [sym.imp.MSVCR100.dll__wsplitpath]
mov edi, dword [sym.imp.MSVCR100.dll__wcsicmp]
xor eax, eax
push 0x1fe
push eax
lea ecx, [ebp - 0x202]
push ecx
mov word [ebp - 0x204], ax
call sub.MSVCR100.dll_memset
lea edx, [ebp - 0x204]
push edx
push 0
push 0
lea eax, [ebp - 0x638]
push 0
push eax
call esi
lea ecx, [ebp - 0x202]
push 0x4d1574
push ecx
call edi
add esp, 0x28
test eax, eax
je 0x4330bb
lea edx, [ebp - 0x658]
push edx
push ebx
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x433047
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 0x80004005
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0xc], 0
mov edx, dword [ebp - 0x65c]
je 0x4330f3
lea eax, [ebp - 0x438]
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4330d1
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x638]
mov ecx, eax
sub edx, ecx
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x433100
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004b12f6
mov esp, ebp
pop ebp
ret

Function at 0x433640
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
inc eax
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
pop ebp
ret
Function at 0x433ab0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x561004]
push ebx
xor ebx, ebx
cmp eax, ebx
jne 0x433c18
push esi
push edi
mov esi, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0xc]
push ecx
mov dword [0x561004], 1
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
call esi
lea edx, [ebp - 0x20]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x223
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call esi
lea ecx, [ebp - 0x14]
push ecx
push 8
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea edx, [ebp - 0x18]
push edx
push ebx
push ebx
push 2
push eax
mov dword [ebp - 0x18], ebx
call edi
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.MSVCR100.dll_malloc]
mov ecx, dword [ebp - 0x14]
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x18]
push edx
push eax
push esi
push 2
push ecx
call edi
xor edi, edi
cmp dword [esi], ebx
jbe 0x433bc3
lea edx, [esi + 4]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x1c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x433b9f
mov dword [ebp - 0x28], 1
jmp 0x433bba
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x20]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x433bba
mov dword [ebp - 0x24], 1
add dword [ebp - 0x10], 8
inc edi
cmp edi, dword [esi]
jb 0x433b82
push esi
call dword [sym.imp.MSVCR100.dll_free]
mov eax, dword [ebp - 0x14]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_FreeSid]
push ecx
call esi
mov edx, dword [ebp - 0x20]
push edx
call esi
pop edi
pop esi
cmp dword [ebp - 0x28], ebx
je 0x433c09
mov eax, 1
mov dword [0x561004], eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x24]
neg eax
sbb eax, eax
add eax, 3
mov dword [0x561004], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004b12f6
mov esp, ebp
pop ebp
ret
Function at 0x433cf0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call dword [sym.imp.MSVCR100.dll_wcsrchr]
xor ecx, ecx
lea edi, [ebp - 0x20c]
add esp, 8
mov word [eax], cx
add edi, 0xfffffffe
jmp 0x433d60
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x433d60
lea edx, [ebp - 0x20c]
push edx
push 0
push str.DisableWhatsNewOnStartmenu
mov ecx, 7
mov esi, str.cfgsoem.ini
push 0x4cebd0
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 4]
dec eax
neg eax
sbb eax, eax
pop edi
xor ecx, ebp
inc eax
pop esi
call fcn.004b12f6
mov esp, ebp
pop ebp
ret

Function at 0x433db0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call dword [sym.imp.MSVCR100.dll_wcsrchr]
xor ecx, ecx
lea edi, [ebp - 0x20c]
add esp, 8
mov word [eax], cx
add edi, 0xfffffffe
jmp 0x433e20
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x433e20
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x20c]
push edx
push eax
push ebx
mov ecx, 7
mov esi, str.cfgsoem.ini
push 0x4d165c
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004b12f6
mov esp, ebp
pop ebp
ret

Function at 0x434070
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push str.WPS_Office_
push eax
call dword [sym.imp.MSVCR100.dll_wcsstr]
add esp, 8
test eax, eax
je 0x434118
push 0x4c7cc4
lea edx, [ebp - 0x20c]
xor ecx, ecx
push edx
mov word [eax + 0x16], cx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x434118
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x434118
push 4
push eax
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret
Function at 0x434210
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
lea edx, [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push esi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0xc]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x434282
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x434251
cmp eax, 2
jne 0x43426c
mov eax, dword [ebp + 0x10]
test esi, esi
je 0x43427c
test eax, eax
je 0x434277
test al, 1
jne 0x43426c
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x43427c
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x434b90
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call sub.MSVCR100.dll_memset
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x412]
push eax
mov word [ebp - 0x414], dx
call sub.MSVCR100.dll_memset
mov edx, dword [0x565030]
add esp, 0x18
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call dword [sym.imp.MSVCR100.dll_wcsrchr]
xor ecx, ecx
add esp, 8
mov word [eax], cx
xor eax, eax
mov edi, edi
movzx ecx, word [ebp + eax - 0x20c]
mov word [ebp + eax - 0x414], cx
add eax, 2
test cx, cx
jne 0x434c10
push esi
push edi
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x434c33
mov ecx, 7
mov esi, str.cfgsoem.ini
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x414]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x434c54
lea edx, [ebp - 0x20c]
push edx
push 0
mov ecx, 8
mov esi, str.cfgs_setup.ini
push str.DisabledSnManager
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0x4cebd0
call esi
cmp eax, 1
je 0x434cb8
lea eax, [ebp - 0x414]
push eax
push 0
push str.DisabledSnManager
push 0x4cebd0
call esi
cmp eax, 1
je 0x434cb8
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.004b12f6
mov esp, ebp
pop ebp
ret