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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
push ebx
push esi
push edi
xor edi, edi
push 0x228
lea eax, [ebp - 0x27c]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x280], edi
call fcn.0048af40
mov eax, dword [0x4df4b4]
add esp, 0xc
mov ecx, 0x4df4b4
call dword [eax + 0xc]
mov ebx, eax
add ebx, 0x10
lea esi, [ebp - 0x4c]
mov dword [ebp - 8], ebx
call fcn.0044a7c0
push edi
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4256f7
lea eax, [ebp - 0x280]
push eax
push esi
mov dword [ebp - 0x280], 0x22c
call sub.KERNEL32.DLL_Process32FirstW
test eax, eax
je 0x4256f0
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x278]
cmp eax, dword [ebp - 0x18]
je 0x4256d5
cmp eax, edi
je 0x4256d5
cmp eax, 4
je 0x4256d5
lea eax, [ebp - 0x25c]
push str.LdTermDaemon.exe
push eax
call fcn.0048cc52
test eax, eax
pop ecx
pop ecx
jne 0x4256d5
push dword [ebp - 0x278]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0044a807
lea edi, [ebp - 8]
call fcn.00402033
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040151c
mov ebx, dword [ebp - 8]
cmp dword [ebx - 0xc], 0
je 0x4256d5
mov eax, edi
call fcn.00422b29
xor edi, edi
inc edi
or dword [ebp - 4], edi
push str.LdTerm.exe
lea eax, [ebp - 8]
lea ecx, [ebp - 0x14]
call fcn.0041e02e
mov eax, dword [eax]
pop ecx
push 0
push eax
call fcn.0048bef3
test eax, eax
pop ecx
pop ecx
jne 0x4256a2
or dword [ebp - 4], 2
push str.LdxManager.exe
lea eax, [ebp - 8]
lea ecx, [ebp - 0x1c]
call fcn.0041e02e
mov eax, dword [eax]
pop ecx
push 0
push eax
call fcn.0048bef3
test eax, eax
pop ecx
pop ecx
jne 0x4256a2
mov bl, 1
jmp 0x4256a4
xor bl, bl
test byte [ebp - 4], 2
je 0x4256b9
mov eax, dword [ebp - 0x1c]
and dword [ebp - 4], 0xfffffffd
add eax, 0xfffffff0
call fcn.0040151c
test byte [ebp - 4], 1
je 0x4256ce
mov eax, dword [ebp - 0x14]
and dword [ebp - 4], 0xfffffffe
add eax, 0xfffffff0
call fcn.0040151c
test bl, bl
mov ebx, dword [ebp - 8]
jne 0x4256ed
lea eax, [ebp - 0x280]
push eax
push esi
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
je 0x4256f0
xor edi, edi
jmp 0x4255dd
mov dword [ebp - 0xc], edi
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea edi, [ebp - 0x4c]
call fcn.0044a7f5
lea eax, [ebx - 0x10]
call fcn.0040151c
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x425936
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
push edi
xor edi, edi
push edi
xor esi, esi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], edi
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push 0x206
lea eax, [ebp - 0x216]
push edi
push eax
mov word [ebp - 0x218], di
call fcn.0048af40
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp - 0x218]
push eax
call fcn.0048b241
test eax, eax
pop ecx
je 0x425a2f
mov eax, dword [0x4df4b4]
mov edi, 0x4df4b4
push ebx
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
push 0x4bfb3c
lea eax, [ebp - 0x218]
push eax
mov esi, str._s_s.lnk
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.0041e01b
mov eax, dword [0x4df4b4]
add esp, 0x10
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x4bfb60
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.0041e01b
mov edi, dword [ebp - 0xc]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
push edi
call esi
test eax, eax
mov ebx, dword [ebp - 0x10]
jne 0x425a19
push ebx
call esi
test eax, eax
jne 0x425a19
xor esi, esi
jmp 0x425a1c
xor esi, esi
inc esi
lea eax, [ebx - 0x10]
call fcn.0040151c
lea eax, [edi - 0x10]
call fcn.0040151c
xor edi, edi
pop ebx
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], edi
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x425a4c
mov eax, dword [ebp - 8]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x425a5f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x42b2f1
Capabilities:
Initialize winsock library

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, eax
lea ebp, [edi + 4]
lea esi, [ebp + 0x10]
call fcn.00438488
lea esi, [ebp + 0x28]
call fcn.00438488
or dword [ebp + 0x40], 0xffffffff
xor ebx, ebx
mov dword [ebp], 1
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 4], ebx
mov byte [ebp + 0x44], bl
mov dword [ebp + 0x48], ebx
mov dword [ebp + 0x4c], 0x2710
cmp dword [0x4df240], ebx
je 0x42b347
push 0x4df0b0
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [0x4df240], eax
fld dword [0x4ca8c8]
lea esi, [edi + 0x54]
mov dword [edi], vtable.ATL::CAtlHttpClientT_class_ATL::ZEvtSyncSocket_.0
fstp dword [esi + 0xc]
fld dword [0x4ca8cc]
or dword [esi + 0x18], 0xffffffff
fstp dword [esi + 0x10]
mov dword [esi], ebx
fld dword [0x4ca8d0]
mov dword [esi + 4], ebx
fstp dword [esi + 0x14]
mov dword [esi + 8], 0x11
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], 0xa
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00432c28
fld dword [0x4ca8c8]
lea esi, [edi + 0x84]
or dword [esi + 0x18], 0xffffffff
fstp dword [esi + 0xc]
fld dword [0x4ca8cc]
mov dword [esi], ebx
fstp dword [esi + 0x10]
mov dword [esi + 4], ebx
fld dword [0x4ca8d0]
mov dword [esi + 8], 0x11
fstp dword [esi + 0x14]
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], 0xa
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00432c28
lea eax, [edi + 0xb4]
lea esi, [edi + 0xc8]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
call fcn.00430b9c
lea esi, [edi + 0x10d8]
call fcn.00421a84
lea esi, [edi + 0x3544]
mov ecx, 0x4df4b4
call fcn.004016a0
lea esi, [edi + 0x3548]
mov ecx, 0x4df4b4
call fcn.004016a0
mov esi, ebp
call fcn.004225d7
call fcn.0043264a
mov dword [edi + 0xc4], ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x43839f
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [ecx]
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0xc]
push ecx
push 0x2001f
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
push eax
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
cmp edi, esi
jne 0x438466
xor eax, eax
cmp dword [ebp - 8], esi
je 0x4383e8
push dword [ebp - 8]
call ebx
cmp eax, esi
mov ecx, dword [ebp - 0xc]
mov edi, eax
mov dword [ebp - 8], ecx
jne 0x438466
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push ecx
jmp 0x43843c
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 8]
call fcn.0043839f
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x438479
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 0x10], 0x100
call edi
test eax, eax
je 0x438410
cmp dword [ebp - 8], esi
je 0x438456
push dword [ebp - 8]
call ebx
mov dword [ebp - 8], esi
push dword [ebp + 8]
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp dword [ebp - 8], esi
je 0x438470
push dword [ebp - 8]
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
cmp dword [ebp - 8], esi
je 0x438483
push dword [ebp - 8]
call ebx
mov eax, dword [ebp - 0xc]
jmp 0x438472
Function at 0x4387f1
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push ebx
mov ebx, dword [edi + 8]
cmp dword [edi + 4], ebx
push esi
jbe 0x438809
call fcn.0048c1d4
mov esi, dword [edi + 4]
cmp esi, dword [edi + 8]
jbe 0x438816
call fcn.0048c1d4
cmp esi, ebx
je 0x438834
push esi
push dword [edi + 8]
mov eax, ebx
call fcn.00439607
pop ecx
pop ecx
push dword [edi + 8]
mov esi, eax
call fcn.00439389
mov dword [edi + 8], esi
xor esi, esi
push esi
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x438941
push 0x228
lea eax, [ebp - 0x24c]
push esi
push eax
call fcn.0048af40
add esp, 0xc
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x250], 0x22c
call sub.KERNEL32.DLL_Process32FirstW
test eax, eax
je 0x438938
mov ecx, 0x4df4b4
lea esi, [ebp - 8]
call fcn.004016a0
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x22c]
push eax
mov eax, esi
push eax
call fcn.00401ac9
mov ebx, dword [edi + 4]
test ebx, ebx
jne 0x4388cb
xor esi, esi
jmp 0x4388d8
mov eax, dword [edi + 0xc]
sub eax, ebx
push 0x14
cdq
pop ecx
idiv ecx
mov esi, eax
mov eax, edi
call fcn.004392c0
cmp eax, esi
jae 0x4388f6
lea eax, [ebp - 0x18]
push eax
push 1
push dword [edi + 8]
call fcn.00439359
mov dword [edi + 8], eax
jmp 0x438913
mov esi, dword [edi + 8]
cmp ebx, esi
jbe 0x438902
call fcn.0048c1d4
push esi
push edi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, edi
call fcn.004392d6
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040151c
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 4]
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x438880
xor esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x438a77
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
cmp dword [ebp + 8], 0
jne 0x438a8b
or eax, 0xffffffff
leave
ret
and word [ebp - 0x208], 0
push 0x206
lea eax, [ebp - 0x206]
push 0
push eax
call fcn.0048af40
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push str.SYSTEMCurrentControlSet_services_s
push 0x104
push eax
call fcn.0048bf31
add esp, 0x1c
lea eax, [ebp - 0x208]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
je 0x438add
cmp eax, 2
jne 0x438a86
xor eax, eax
leave
ret
Function at 0x438ae1
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
xor esi, esi
xor eax, eax
cmp dword [ebp + 8], esi
je 0x438b4f
push ebx
push edi
push 6
pop ecx
push 1
push esi
mov dword [ebp - 0x20], esi
lea edi, [ebp - 0x1c]
push esi
mov dword [ebp - 4], esi
rep stosd dword es:[edi], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
cmp ebx, esi
je 0x438b4a
push 0x14
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x438b47
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x438b44
xor eax, eax
cmp dword [ebp - 0x1c], 4
sete al
mov dword [ebp - 4], eax
push edi
call esi
push ebx
call esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
leave
ret
Function at 0x439033
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.0049ee20
or dword [ebp - 8], 0xffffffff
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_CreateFileW]
push edi
xor ebx, ebx
push ebx
mov edi, 0x80
push edi
push 3
push ebx
push 3
push SysReAllocString
push dword [ebp + 8]
mov dword [ebp - 0xc], ebx
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x43911f
push ebx
push edi
push 2
push ebx
push 3
push 0x40000000
push dword [ebp + 0xc]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x43911f
push 0xfff
lea eax, [ebp - 0x100f]
push ebx
push eax
mov byte [ebp - 0x1010], bl
call fcn.0048af40
mov esi, dword [sym.imp.KERNEL32.DLL_ReadFile]
mov edi, 0x1000
jmp 0x4390fa
cmp dword [ebp + 0xc], ebx
je 0x439118
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 8]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x43911f
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x10]
jne 0x43911f
push 0xfff
lea eax, [ebp - 0x100f]
push ebx
push eax
mov byte [ebp - 0x1010], bl
call fcn.0048af40
add esp, 0xc
push ebx
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 4]
mov dword [ebp + 0xc], ebx
call esi
test eax, eax
jne 0x4390b6
jmp 0x43911f
mov dword [ebp - 0xc], 1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp dword [ebp - 4], 0xffffffff
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edi, eax
je 0x439138
push dword [ebp - 4]
call esi
cmp dword [ebp - 8], 0xffffffff
je 0x439143
push dword [ebp - 8]
call esi
cmp dword [ebp - 0xc], ebx
je 0x439153
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x43915a
push edi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x439801
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x439899
push edi
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
cmp dword [ebp - 4], ebx
mov edi, eax
jne 0x43988f
cmp edi, 0x200000
ja 0x43988f
lea eax, [edi + 2]
push esi
push eax
call fcn.00489ea1
pop ecx
push ebx
mov esi, eax
lea eax, [ebp + 8]
push eax
push edi
push esi
push dword [ebp - 8]
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x43988e
mov eax, dword [ebp + 8]
cmp eax, edi
jne 0x43988e
mov byte [eax + esi], bl
mov eax, dword [ebp + 8]
mov byte [eax + esi + 1], bl
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
mov dword [ebp - 0xc], 1
pop esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
mov eax, dword [ebp - 0xc]
pop ebx
leave
ret 0xc
Function at 0x43a09a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4df4b4]
push ebx
push esi
push edi
xor ebx, ebx
mov edi, 0x4df4b4
mov ecx, edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
call dword [eax + 0xc]
mov esi, eax
mov eax, dword [0x4df4b4]
add esi, 0x10
mov ecx, edi
mov dword [ebp - 0xc], esi
call dword [eax + 0xc]
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 0xc]
mov edi, eax
add edi, 0x10
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x43a157
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.0043a174
push ebx
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 8]
mov byte [ebp + 0xc], 0xff
mov byte [ebp + 0xd], 0xfe
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
mov esi, dword [ebp - 0xc]
je 0x43a14e
cmp dword [ebp - 4], 2
jne 0x43a14e
mov eax, dword [esi - 0xc]
push ebx
lea ecx, [ebp - 4]
push ecx
add eax, eax
push eax
push esi
push dword [ebp - 8]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x43a14e
mov eax, dword [ebp + 8]
cmp dword [ebp - 4], eax
jne 0x43a14e
mov dword [ebp - 0x10], 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [edi - 0x10]
call fcn.0040151c
lea eax, [esi - 0x10]
call fcn.0040151c
mov eax, dword [ebp - 0x10]
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x43ad0c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
push esi
push edi
mov esi, 0x208
xor edi, edi
push esi
lea eax, [ebp - 0x422]
push edi
push eax
mov word [ebp - 0x424], di
call fcn.0048af40
push esi
lea eax, [ebp - 0x216]
push edi
push eax
mov word [ebp - 0x218], di
call fcn.0048af40
add esp, 0x18
mov eax, 0x104
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0x424]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
test eax, eax
jne 0x43ad85
mov dword [ebp - 4], edi
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 4

Function at 0x43adda
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4df4b4]
push esi
push edi
mov ecx, 0x4df4b4
call dword [eax + 0xc]
xor edi, edi
push edi
mov esi, eax
push 0x17
lea eax, [ebp - 0x20c]
push eax
add esi, 0x10
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x43ae52
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00401ac9
lea esi, [ebp - 4]
call fcn.00422ae5
push 0x4c1eac
mov eax, esi
push eax
call fcn.00405369
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43ae52
lea eax, [esi - 0x10]
call fcn.0040151c
mov eax, edi
pop edi
pop esi
leave
ret
xor edi, edi
inc edi
jmp 0x43ae44
Function at 0x43ae57
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4df4b4]
push esi
push edi
mov ecx, 0x4df4b4
call dword [eax + 0xc]
xor edi, edi
push edi
mov esi, eax
push 0x19
lea eax, [ebp - 0x20c]
push eax
add esi, 0x10
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x43aed6
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00401ac9
lea esi, [ebp - 4]
call fcn.00422ae5
push str.qQ
mov eax, esi
push eax
call fcn.00405369
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43aed6
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
lea eax, [esi - 0x10]
call fcn.0040151c
mov eax, edi
pop edi
pop esi
leave
ret
xor edi, edi
inc edi
jmp 0x43aec8

Function at 0x43af36
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4df4b4]
and dword [ebp - 0x10], 0
push ebx
push esi
mov esi, 0x4df4b4
push edi
mov ecx, esi
call dword [eax + 0xc]
mov ebx, eax
mov eax, dword [0x4df4b4]
add ebx, 0x10
mov ecx, esi
mov dword [ebp - 4], ebx
call dword [eax + 0xc]
and dword [ebp - 8], 0
push 1
mov edi, eax
push str.SYSTEMCurrentControlSet_servicesKingsoft_Antivirus_WebShield_Service
add edi, 0x10
push reloc.OLEAUT32.dll_SysReAllocString
lea esi, [ebp - 8]
mov dword [ebp - 0xc], edi
call fcn.00402241
test eax, eax
je 0x43afaf
lea eax, [ebp - 4]
push eax
push str.ImagePath
mov ebx, esi
call fcn.0040228f
test eax, eax
je 0x43afac
lea eax, [ebp - 4]
call fcn.00422b29
lea esi, [ebp - 4]
call fcn.00422ae5
mov ebx, dword [ebp - 4]
xor esi, esi
cmp dword [ebp - 8], esi
je 0x43afbf
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebx - 0xc], esi
je 0x43b02f
push dword [esi + 0x4dbc24]
lea eax, [ebp - 4]
lea ecx, [ebp - 0x10]
call fcn.0041e02e
pop ecx
lea edi, [ebp - 0xc]
call fcn.00402033
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040151c
mov edi, dword [ebp - 0xc]
push 0
push edi
call fcn.0048bef3
test eax, eax
pop ecx
pop ecx
jne 0x43b00f
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x43b00f
push 4
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
add esi, 4
cmp esi, 0x1c
jb 0x43afc4
push str.SYSTEMCurrentControlSet_servicesKingsoft_Antivirus_WebShield_Service
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004245a0
pop ecx
pop ecx
mov dword [ebp - 0x10], 1
lea eax, [edi - 0x10]
call fcn.0040151c
lea eax, [ebx - 0x10]
call fcn.0040151c
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43b079
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
push ebx
push esi
push edi
mov edi, 0x4df4b4
mov esi, eax
mov ecx, edi
call fcn.004016a0
mov eax, dword [0x4df4b4]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
mov eax, dword [0x4df4b4]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
xor ebx, ebx
push 0x18e
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x1a2]
push ebx
push eax
mov word [ebp - 0x1a4], bx
call fcn.0048af40
add esp, 0xc
lea edi, [ebp - 0x10]
call fcn.0043b18f
mov edi, esi
call fcn.00402033
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jne 0x43b170
lea eax, [ebp - 0x1a4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, ebx
jne 0x43b170
push dword [ebp + 8]
lea eax, [ebp + 8]
push eax
call fcn.0043b320
lea edi, [ebp - 8]
call fcn.00402033
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [ebp - 8]
cmp dword [eax - 0xc], ebx
je 0x43b170
mov edi, dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0043b617
cmp eax, ebx
jne 0x43b170
push dword [ebp - 0xc]
lea ebx, [ebp + 8]
call fcn.0043b23a
mov edi, esi
call fcn.00402033
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x43b170
push eax
call fcn.0043b1f8
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040151c
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x43b513
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x9c
push esi
push 0x9a
lea eax, [ebp - 0x23]
push 0
push eax
mov byte [ebp - 0x24], 0
call fcn.0048af40
add esp, 0xc
push 0x9b
lea eax, [ebp - 0x24]
push eax
xor esi, esi
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x43b560
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x43b560
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov esi, dword [eax]
mov eax, esi
pop esi
add ebp, 0x78
leave
ret