joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4456d3
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x4bfcf0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, 0x228
push esi
xor ebx, ebx
lea eax, [ebp - 0x22c]
push ebx
push eax
call fcn.00466c70
push esi
lea eax, [ebp - 0x458]
push ebx
push eax
call fcn.00466c70
or dword [ebp - 0x454], 0xffffffff
add esp, 0x18
lea eax, [esi + 4]
push edi
push 2
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x45c], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x445786
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x445757
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0x230]
jmp 0x44578c
cmp dword [ebp - 0x228], edi
je 0x445772
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x445757
jmp 0x445775
xor ebx, ebx
inc ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0x230]
test ebx, ebx
jne 0x44578c
lea esi, [ebp - 0x45c]
mov eax, dword [ebp + 8]
mov ecx, 0x8b
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00466576
leave
ret

Function at 0x4459d8
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4bfcf0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x445a6c
mov esi, dword [esi]
push edi
push 0x24
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, ebx
je 0x445a62
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x20]
push eax
push edi
call esi
cmp dword [ebp - 0x1c], 4
je 0x445a2f
cmp dword [ebp - 0x1c], 7
jne 0x445a5b
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x445a5b
lea eax, [ebp - 0x20]
push eax
push edi
call esi
cmp dword [ebp - 0x1c], 1
je 0x445a5b
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x14
jl 0x445a40
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00466576
leave
ret
Function at 0x445dcf
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call fcn.00423784
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x445e6f
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0x200000
ja 0x445e6e
mov ecx, dword [ebp + 0xc]
push edi
lea eax, [esi + 1]
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], esi
call fcn.00423997
mov edi, eax
mov dword [ebp - 8], edi
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x445e6d
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x445e6d
sub dword [ebp - 4], eax
add dword [ebp - 8], eax
cmp dword [ebp - 4], ebx
jne 0x445e2f
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
mov byte [edi + esi], bl
call fcn.004237c7
mov dword [ebp - 0x10], 1
pop edi
pop esi
mov eax, dword [ebp - 0x10]
pop ebx
leave
ret

Function at 0x445f87
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4bfcf0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x446042
cmp word [edi], bx
je 0x446042
cmp esi, ebx
je 0x446042
push 0x228
lea eax, [ebp - 0x22c]
push ebx
push eax
mov dword [ebp - 0x230], 0x22c
call fcn.00466c70
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x446042
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
jmp 0x446029
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00468eeb
pop ecx
pop ecx
test eax, eax
jne 0x44601c
lea eax, [ebp - 0x228]
push eax
mov ecx, esi
call fcn.00423b86
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x445ffb
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
xor ecx, ecx
cmp eax, dword [esi + 4]
setne cl
mov eax, ecx
jmp 0x446044
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00466576
leave
ret
Function at 0x446278
Capabilities:
Set registry value

Disassembly:
push 0x224
mov eax, 0x486fe6
call fcn.00468ad7
xor esi, esi
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x224], esi
push 0x2001f
mov ebx, str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
push ebx
mov edi, SysReAllocString
push edi
lea ecx, [ebp - 0x22c]
mov dword [ebp - 4], esi
call fcn.0042483e
test eax, eax
je 0x4462dc
push esi
push esi
push 0x2001f
push esi
push esi
push ebx
push edi
lea ecx, [ebp - 0x22c]
call fcn.0044524a
test eax, eax
jne 0x446361
xor eax, eax
push 0x208
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push esi
push eax
call fcn.00466c70
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.004461ed
add esp, 0x14
push 0x104
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
push 4
lea eax, [ebp - 0x230]
push eax
push 4
push esi
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x22c]
mov dword [ebp - 0x230], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x22c]
call fcn.00424823
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.00417891
lea ecx, [ebp - 0x22c]
call fcn.00424823
call fcn.00468b5a
ret
Function at 0x44669e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4bfcf0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
test byte [0x4c1d1c], 1
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, 0x4c1d18
jne 0x4466e9
or dword [0x4c1d1c], 1
push 0x4c1160
mov ecx, esi
call fcn.004237f4
push 0x48ac1d
call fcn.00469879
pop ecx
mov eax, dword [0x4c1d18]
cmp dword [eax - 0xc], 0
jne 0x446749
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x446744
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00468f76
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.00417d8b
push esi
call fcn.004461ac
mov edi, str.drivers_
push edi
call fcn.00468f76
pop ecx
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00417d0b
pop edi
mov eax, dword [0x4c1d18]
add eax, 0xfffffff0
push eax
call fcn.00417b88
add eax, 0x10
pop ecx
mov ecx, dword [ebp - 4]
mov dword [ebx], eax
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00466576
leave
ret

Function at 0x446768
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0x23c
mov eax, 0x487057
call fcn.00468ad7
mov esi, dword [ebp + 8]
push 0
push 2
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x23c], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x244], eax
cmp eax, 0xffffffff
je 0x446877
push 0x4c1160
lea ecx, [ebp - 0x240]
call fcn.004237f4
and dword [ebp - 4], 0
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x244]
call sub.KERNEL32.dll_Process32FirstW
lea eax, [ebp - 0x218]
push eax
call fcn.00468f76
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x240]
call fcn.00417d8b
push esi
lea ecx, [ebp - 0x240]
call fcn.00417a23
mov esi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x446833
lea eax, [ebp - 0x218]
push eax
call fcn.00468f76
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x240]
call fcn.00417d8b
push dword [ebp - 0x248]
lea ecx, [ebp - 0x240]
call fcn.00417a23
test eax, eax
jne 0x446847
push dword [ebp - 0x234]
push eax
push 1
call esi
push 4
push eax
call edi
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x244]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x446802
push dword [ebp - 0x244]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x240]
add ecx, 0xfffffff0
call fcn.00417891
xor eax, eax
inc eax
call fcn.00468b5a
ret
Function at 0x446a52
Capabilities:
Enumerate process modules

Disassembly:
push 0x21c
mov eax, 0x4870ef
call fcn.00468ad7
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor esi, esi
push 0x4c1160
mov ecx, ebx
mov dword [ebp - 4], esi
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], esi
call fcn.004237f4
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x220], 1
call fcn.00466c70
add esp, 0xc
push edi
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, esi
je 0x446afb
lea eax, [ebp - 0x228]
push eax
push 4
lea eax, [ebp - 0x21c]
push eax
push edi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x446af4
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
push edi
call sub.PSAPI.DLL_GetModuleFileNameExW
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x218]
push eax
mov ecx, ebx
call fcn.00417f8c
mov eax, ebx
call fcn.00468b5a
ret
Function at 0x447044
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push 0x268
mov eax, 0x4871f5
call fcn.00468ad7
mov eax, dword [ebp + 8]
xor ebx, ebx
push eax
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x268], ebx
call fcn.00418067
push 0x48c688
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x26c]
push eax
mov dword [ebp - 4], ebx
call fcn.00417e8f
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x260]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x26c]
add ecx, 0xfffffff0
mov edi, eax
call fcn.00417891
cmp edi, 0xffffffff
jne 0x4470bc
mov dword [ebp - 0x268], 1
jmp 0x447181
test byte [ebp - 0x260], 0x10
je 0x44715a
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x48c630
lea eax, [ebp - 0x234]
push eax
call esi
test eax, eax
je 0x44715a
push 0x48bb6c
lea eax, [ebp - 0x234]
push eax
call esi
test eax, eax
je 0x44715a
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.00417e8f
push 0x48c634
push eax
lea eax, [ebp - 0x274]
push eax
mov byte [ebp - 4], 1
call fcn.00417e8f
mov eax, dword [eax]
push dword [ebp + 0xc]
mov byte [ebp - 4], 2
push eax
call fcn.00447044
mov ecx, dword [ebp - 0x274]
add esp, 0x20
add ecx, 0xfffffff0
mov esi, eax
call fcn.00417891
mov ecx, dword [ebp - 0x270]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.00417891
cmp esi, ebx
je 0x44717a
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4470bc
mov dword [ebp - 0x268], 1
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x91
je 0x4471b4
cmp esi, ebx
jne 0x4471b4
cmp dword [ebp + 0xc], ebx
je 0x4471b4
push 4
push ebx
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 0x264]
add ecx, 0xfffffff0
call fcn.00417891
mov eax, dword [ebp - 0x268]
call fcn.00468b5a
ret
Function at 0x4472db
Capabilities:
Get file version info

Disassembly:
push 0x63c
mov eax, 0x487272
call fcn.00468ad7
mov esi, dword [ebp + 8]
xor edi, edi
push str.0.0.0.0
lea ecx, [ebp - 0x630]
mov dword [ebp - 0x648], edi
call fcn.00418067
xor eax, eax
mov ebx, 0x208
push ebx
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push edi
push eax
mov dword [ebp - 4], edi
call fcn.00466c70
add esp, 0xc
push 0x104
lea eax, [ebp - 0x21c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x648], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x644], eax
cmp eax, edi
jne 0x447371
mov eax, dword [ebp - 0x630]
add eax, 0xfffffff0
push eax
call fcn.00417b88
jmp 0x4474c6
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00468ca0
pop ecx
mov dword [ebp - 0x634], eax
cmp eax, edi
je 0x44735d
push dword [ebp - 0x644]
push edi
push eax
call fcn.00466c70
add esp, 0xc
push dword [ebp - 0x634]
lea eax, [ebp - 0x21c]
push dword [ebp - 0x644]
push edi
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x44735d
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x63c]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x634]
mov dword [ebp - 0x63c], edi
mov dword [ebp - 0x638], edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x44735d
push ebx
lea eax, [ebp - 0x62c]
push edi
push eax
mov dword [ebp - 0x640], edi
call fcn.00466c70
add esp, 0xc
test dword [ebp - 0x638], 0xfffffffc
jbe 0x4474ab
mov eax, dword [ebp - 0x63c]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0x62c]
push str.StringFileInfo_04x_04xProductVersion
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x62c]
push eax
push dword [ebp - 0x634]
call sub.VERSION.dll_VerQueryValueW
push ebx
lea eax, [ebp - 0x424]
push edi
push eax
call fcn.00466c70
push dword [ebp - 0x640]
lea eax, [ebp - 0x424]
push eax
call fcn.0046b81a
lea eax, [ebp - 0x424]
push eax
call fcn.00468f76
add esp, 0x18
push eax
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x630]
call fcn.00417d8b
push 0x2e
push 0x2c
lea ecx, [ebp - 0x630]
call fcn.00445d5f
push dword [ebp - 0x634]
call fcn.00468bd4
mov eax, dword [ebp - 0x630]
add eax, 0xfffffff0
push eax
call fcn.00417b88
pop ecx
pop ecx
mov ecx, dword [ebp - 0x630]
add eax, 0x10
add ecx, 0xfffffff0
mov dword [esi], eax
call fcn.00417891
mov eax, esi
call fcn.00468b5a
ret
Function at 0x4474e2
Capabilities:
Check if file exists
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x280
mov eax, 0x4872e7
call fcn.00468ad7
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
and dword [ebp - 0x270], 0
push eax
lea ecx, [ebp - 0x268]
call fcn.00418067
and dword [ebp - 4], 0
push esi
lea ecx, [ebp - 0x264]
call fcn.00418067
push 0x48c688
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x28c]
push eax
mov byte [ebp - 4], 1
call fcn.00417e8f
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x260]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x28c]
add ecx, 0xfffffff0
mov dword [ebp - 0x26c], eax
call fcn.00417891
cmp dword [ebp - 0x26c], 0xffffffff
jne 0x447575
mov dword [ebp - 0x270], 1
jmp 0x44772c
push dword [ebp - 0x264]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x44759a
push eax
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x447720
mov esi, 0x48c634
test byte [ebp - 0x260], 0x10
lea eax, [ebp - 0x234]
je 0x447696
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x48c630
push eax
call edi
test eax, eax
je 0x4476fb
push 0x48bb6c
lea eax, [ebp - 0x234]
push eax
call edi
test eax, eax
je 0x4476fb
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.00417e8f
push esi
push eax
lea eax, [ebp - 0x280]
push eax
mov byte [ebp - 4], 2
call fcn.00417e8f
mov edi, eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x288]
push eax
mov byte [ebp - 4], 3
call fcn.00417e8f
push esi
push eax
lea eax, [ebp - 0x274]
push eax
mov byte [ebp - 4], 4
call fcn.00417e8f
mov edi, dword [edi]
mov eax, dword [eax]
push edi
push eax
mov byte [ebp - 4], 5
call fcn.004474e2
mov ecx, dword [ebp - 0x274]
add esp, 0x38
add ecx, 0xfffffff0
mov edi, eax
call fcn.00417891
mov ecx, dword [ebp - 0x288]
add ecx, 0xfffffff0
call fcn.00417891
mov ecx, dword [ebp - 0x280]
add ecx, 0xfffffff0
call fcn.00417891
mov ecx, dword [ebp - 0x278]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00417891
test edi, edi
je 0x447720
jmp 0x4476fb
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.00417e8f
mov edi, eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x27c]
push eax
mov byte [ebp - 4], 6
call fcn.00417e8f
mov edi, dword [edi]
mov eax, dword [eax]
add esp, 0x18
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 0x27c]
add ecx, 0xfffffff0
call fcn.00417891
mov ecx, dword [ebp - 0x284]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00417891
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x44759f
mov dword [ebp - 0x270], 1
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x264]
add ecx, 0xfffffff0
call fcn.00417891
mov ecx, dword [ebp - 0x268]
add ecx, 0xfffffff0
call fcn.00417891
mov eax, dword [ebp - 0x270]
call fcn.00468b5a
ret
Function at 0x4477c2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.00418067
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push dword [ebp - 4]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x447826
and dword [ebp - 0x10], eax
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0xc], 4
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 8]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.00417891
xor eax, eax
leave
ret

Function at 0x44787a
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push esi
inc edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4478cd
call fcn.00447835
test eax, eax
je 0x4478b1
call fcn.00445527
test eax, eax
je 0x4478b1
push dword [ebp + 0xc]
push esi
call fcn.00445ba2
pop ecx
pop ecx
test eax, eax
jne 0x4478c6
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.004452b2
mov edi, eax
add esp, 0x14
xor eax, eax
test edi, edi
setne al
pop edi
pop esi
pop ebp
ret
Function at 0x447afe
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0x240
mov eax, 0x48737d
call fcn.00468ad7
mov esi, dword [ebp + 8]
xor edi, edi
push str.Kingsoft_WPS_UpdateService
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x248], edi
call fcn.00418067
lea eax, [ebp - 0x244]
push eax
call fcn.004459d8
pop ecx
mov ecx, dword [ebp - 0x244]
add ecx, 0xfffffff0
call fcn.00417891
push edi
push 2
mov dword [ebp - 0x23c], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x240], eax
cmp eax, 0xffffffff
je 0x447c96
push 0x4c1160
lea ecx, [ebp - 0x244]
call fcn.004237f4
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x240]
mov dword [ebp - 4], edi
call sub.KERNEL32.dll_Process32FirstW
lea eax, [ebp - 0x218]
push eax
call fcn.00468f76
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x244]
call fcn.00417d8b
mov edi, dword [ebp - 0x244]
push str._wpsupchkr.exe_wpsupdatechecker.exe_updatesvr.exe_wpsupdatesvr.exe_repairinst.exe_WPSSmartLabel.exe_desktoptip.exe_kwpslive.exe_wpsnotify.exe_qing.exe_qingbangong.exe_upqing.exe_kwpsinspector.exe_
push edi
call fcn.004478d1
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
jmp 0x447c28
push dword [ebp - 0x248]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [ebp - 0x240]
call ebx
add edi, 0xfffffff0
push edi
call fcn.00417b88
pop ecx
mov ecx, edi
jmp 0x447cc6
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x447bd8
lea eax, [ebp - 0x218]
push eax
call fcn.00468f76
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x244]
call fcn.00417d8b
mov edi, dword [ebp - 0x244]
push str._wpsupchkr.exe_wpsupdatechecker.exe_updatesvr.exe_wpsupdatesvr.exe_repairinst.exe_WPSSmartLabel.exe_desktoptip.exe_kwpslive.exe_wpsnotify.exe_qing.exe_qingbangong.exe_upqing.exe_kwpsinspector.exe_
push edi
call fcn.004478d1
pop ecx
pop ecx
test eax, eax
je 0x447c53
push dword [ebp - 0x234]
push 0
push 1
call ebx
push 4
push eax
mov dword [ebp - 0x248], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x447bc2
jmp 0x447c64
push str._wps.exe_et.exe_wpp.exe_TransportError.exe_transerr.exe_wpsupdate.exe_setlang.exe_webct.exe_rmtinfo.exe_wpscfgio.exe_WPSGallery.exe_Kmail.exe_ksomisc.exe_
push edi
call fcn.004478d1
pop ecx
pop ecx
test eax, eax
jne 0x447be9
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x240]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x447bf7
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [edi - 0x10]
call fcn.00417891
push 0x48c308
lea ecx, [ebp - 0x24c]
call fcn.00418067
mov eax, dword [ebp - 0x24c]
add eax, 0xfffffff0
push eax
mov dword [ebp - 4], 1
call fcn.00417b88
pop ecx
mov ecx, dword [ebp - 0x24c]
add ecx, 0xfffffff0
add eax, 0x10
mov dword [esi], eax
call fcn.00417891
mov eax, esi
call fcn.00468b5a
ret
Function at 0x448296
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4bfcf0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
xor edi, edi
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
mov esi, ecx
mov dword [ebp - 0x210], edi
call fcn.00466c70
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x44832d
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadImageToMem_CreateFile_error:_d__path:_ws
push 0x4c1dc0
call fcn.00448b55
add esp, 0x10
jmp 0x4483a8
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
push eax
push edi
push 2
push edi
push ebx
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi], eax
cmp ebx, edi
jne 0x448360
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFileByMem_CreateFileMapping_error:_d__path:_ws
jmp 0x448388
push dword [esi + 8]
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 4], eax
cmp eax, edi
jne 0x448397
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFileByMem_MapViewOfFile_error:_d__path:_ws
push 0x4c1dc0
call fcn.00448b55
add esp, 0x10
jmp 0x4483a1
mov dword [ebp - 0x210], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00466576
leave
ret

Function at 0x4484e5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 8], 0x1e00000
mov dword [esi + 0x14], eax
jbe 0x448510
push str.the_packet_is_too_large
push 0x4c1dc0
call fcn.00448b55
pop ecx
pop ecx
jmp 0x448547
call fcn.00417705
mov dword [esi + 0x18], eax
cmp eax, edi
je 0x44854a
push edi
push edi
push esi
push 0x4484d6
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
push str.LoadProductPacket_CreateThread_return:_d
push 0x4c1dc0
mov dword [esi + 0x10], eax
call fcn.00448b55
add esp, 0xc
cmp dword [esi + 0x10], edi
je 0x44854a
xor edi, edi
inc edi
mov eax, edi
pop edi
pop esi
pop ebp
ret 4