joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4263b0
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.00497490
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.00497791
test eax, eax
pop ecx
je 0x4264a9
mov eax, dword [0x5289f4]
mov edi, 0x5289f4
push ebx
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
push 0x504744
lea eax, [ebp - 0x218]
push eax
mov esi, str._s_s.lnk
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.0041e84b
mov eax, dword [0x5289f4]
add esp, 0x10
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x504768
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.0041e84b
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 0x426493
push ebx
call esi
test eax, eax
jne 0x426493
xor esi, esi
jmp 0x426496
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 0x4264c6
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 0x4264d9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x426c43
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x67c
push ebx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
je 0x426d75
push 0x21a
lea eax, [esp + 0x46e]
push esi
push eax
mov word [esp + 0x474], si
call fcn.00497490
push dword [ebp + 8]
lea eax, [esp + 0x478]
push 0x504810
push eax
call fcn.0042c39f
push 0x24c
lea eax, [esp + 0x30]
push esi
push eax
mov dword [esp + 0x34], esi
call fcn.00497490
add esp, 0x24
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x46c]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
je 0x426d75
mov edi, dword [sym.imp.KERNEL32.DLL_FindNextFileW]
lea ecx, [esp + 0x10]
push ecx
push eax
call edi
test eax, eax
je 0x426d6b
mov ebx, dword [ebp + 0xc]
lea eax, [esp + 0x3c]
push 0x4f9af0
push eax
call fcn.004996ee
test eax, eax
pop ecx
pop ecx
je 0x426d58
lea eax, [esp + 0x3c]
push 0x4fca44
push eax
call fcn.004996ee
test eax, eax
pop ecx
pop ecx
je 0x426d58
test byte [esp + 0x10], 0x10
je 0x426d56
push 0x206
lea eax, [esp + 0x266]
push esi
push eax
mov word [esp + 0x26c], si
call fcn.00497490
lea eax, [esp + 0x48]
push eax
push dword [ebp + 8]
lea eax, [esp + 0x274]
push 0x4fca4c
push eax
call fcn.0042c3ba
lea eax, [esp + 0x27c]
push ebx
push eax
call fcn.00426c43
add esp, 0x24
jmp 0x426d58
inc dword [ebx]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x10]
call edi
test eax, eax
jne 0x426cdd
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_FindClose]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42bf16
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.0043927f
lea esi, [ebp + 0x28]
call fcn.0043927f
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 [0x528750], ebx
je 0x42bf6c
push 0x5285c0
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [0x528750], eax
fld dword [0x50f768]
lea esi, [edi + 0x54]
mov dword [edi], vtable.ATL::CAtlHttpClientT_class_ATL::ZEvtSyncSocket_.0
fstp dword [esi + 0xc]
fld dword [0x50f76c]
or dword [esi + 0x18], 0xffffffff
fstp dword [esi + 0x10]
mov dword [esi], ebx
fld dword [0x50f770]
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.00408747
fld dword [0x50f768]
lea esi, [edi + 0x84]
or dword [esi + 0x18], 0xffffffff
fstp dword [esi + 0xc]
fld dword [0x50f76c]
mov dword [esi], ebx
fstp dword [esi + 0x10]
mov dword [esi + 4], ebx
fld dword [0x50f770]
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.00408747
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.00431811
lea esi, [edi + 0x10d8]
call fcn.004225e6
lea esi, [edi + 0x3544]
mov ecx, 0x5289f4
call fcn.004016a6
lea esi, [edi + 0x3548]
mov ecx, 0x5289f4
call fcn.004016a6
mov esi, ebp
call fcn.0042311e
call fcn.004332fa
mov dword [edi + 0xc4], ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4391b5
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
push edi
push 0x2001f
push dword [ebp + 8]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.0041187a
mov edi, eax
cmp edi, esi
je 0x4391f2
cmp dword [ebp - 8], esi
je 0x4391ee
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x43925f
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x439210
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 8]
call fcn.004391b5
cmp eax, esi
mov dword [ebp - 0x10], eax
jne 0x439266
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 0xc], 0x100
call edi
test eax, eax
je 0x4391fa
cmp dword [ebp - 8], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x439246
push dword [ebp - 8]
call edi
mov dword [ebp - 8], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 8], esi
mov ebx, eax
je 0x43925d
push dword [ebp - 8]
call edi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
cmp dword [ebp - 8], esi
je 0x439274
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
jmp 0x43925f
Function at 0x43962e
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 0x439646
call fcn.0049853b
mov esi, dword [edi + 4]
cmp esi, dword [edi + 8]
jbe 0x439653
call fcn.0049853b
cmp esi, ebx
je 0x439671
push esi
push dword [edi + 8]
mov eax, ebx
call fcn.0043a444
pop ecx
pop ecx
push dword [edi + 8]
mov esi, eax
call fcn.0043a1c6
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 0x43977e
push 0x228
lea eax, [ebp - 0x24c]
push esi
push eax
call fcn.00497490
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 0x439775
mov ecx, 0x5289f4
lea esi, [ebp - 8]
call fcn.004016a6
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.00401b57
mov ebx, dword [edi + 4]
test ebx, ebx
jne 0x439708
xor esi, esi
jmp 0x439715
mov eax, dword [edi + 0xc]
sub eax, ebx
push 0x14
cdq
pop ecx
idiv ecx
mov esi, eax
mov eax, edi
call fcn.0043a0fd
cmp eax, esi
jae 0x439733
lea eax, [ebp - 0x18]
push eax
push 1
push dword [edi + 8]
call fcn.0043a196
mov dword [edi + 8], eax
jmp 0x439750
mov esi, dword [edi + 8]
cmp ebx, esi
jbe 0x43973f
call fcn.0049853b
push esi
push edi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, edi
call fcn.0043a113
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 0x4396bd
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 0x4398b4
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
cmp dword [ebp + 8], 0
jne 0x4398c8
or eax, 0xffffffff
leave
ret
and word [ebp - 0x208], 0
push 0x206
lea eax, [ebp - 0x206]
push 0
push eax
call fcn.00497490
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push str.SYSTEMCurrentControlSet_services_s
push 0x104
push eax
call fcn.00499bd1
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 0x43991a
cmp eax, 2
jne 0x4398c3
xor eax, eax
leave
ret
Function at 0x43991e
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 0x43998c
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 0x439987
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 0x439984
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x439981
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 0x439e70
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.004ab830
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 SysReAllocStringLen
push dword [ebp + 8]
mov dword [ebp - 0xc], ebx
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x439f5c
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 0x439f5c
push 0xfff
lea eax, [ebp - 0x100f]
push ebx
push eax
mov byte [ebp - 0x1010], bl
call fcn.00497490
mov esi, dword [sym.imp.KERNEL32.DLL_ReadFile]
mov edi, 0x1000
jmp 0x439f37
cmp dword [ebp + 0xc], ebx
je 0x439f55
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 0x439f5c
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x10]
jne 0x439f5c
push 0xfff
lea eax, [ebp - 0x100f]
push ebx
push eax
mov byte [ebp - 0x1010], bl
call fcn.00497490
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 0x439ef3
jmp 0x439f5c
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 0x439f75
push dword [ebp - 4]
call esi
cmp dword [ebp - 8], 0xffffffff
je 0x439f80
push dword [ebp - 8]
call esi
cmp dword [ebp - 0xc], ebx
je 0x439f90
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x439f97
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 0x43a63e
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 SysReAllocStringLen
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 0x43a6d6
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 0x43a6cc
cmp edi, 0x200000
ja 0x43a6cc
lea eax, [edi + 2]
push esi
push eax
call fcn.004963f3
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 0x43a6cb
mov eax, dword [ebp + 8]
cmp eax, edi
jne 0x43a6cb
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 0x43b022
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5289f4]
push ebx
push esi
xor ebx, ebx
mov esi, 0x5289f4
push edi
mov ecx, esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
call dword [eax + 0xc]
mov edi, eax
mov eax, dword [0x5289f4]
add edi, 0x10
mov ecx, esi
mov dword [ebp - 0x14], edi
call dword [eax + 0xc]
mov esi, eax
xor eax, eax
push eax
push eax
push 2
push eax
push 1
push 0x40000000
push dword [ebp + 0xc]
add esi, 0x10
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x43b1b3
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call fcn.0043b1d0
mov eax, dword [ebp + 0x10]
dec eax
mov edi, dword [ebp - 0x14]
je 0x43b13f
dec eax
je 0x43b0e0
dec eax
jne 0x43b187
push eax
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 0x10]
mov byte [ebp + 0xc], 0xff
mov byte [ebp + 0xd], 0xfe
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x43b1aa
cmp dword [ebp - 4], 2
jne 0x43b1aa
mov ebx, dword [edi - 0xc]
mov dword [ebp - 0xc], edi
add ebx, ebx
jmp 0x43b187
push 0
lea eax, [ebp - 4]
push eax
push 3
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x10]
mov byte [ebp + 8], 0xef
mov byte [ebp + 9], 0xbb
mov byte [ebp + 0xa], 0xbf
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x43b1aa
cmp dword [ebp - 4], 3
jne 0x43b1aa
call dword [section..data]
test edi, edi
je 0x43b15a
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x43b15a
lea ebx, [eax + eax]
mov eax, ebx
call fcn.004aa020
mov esi, esp
push 0xfde9
jmp 0x43b16d
call dword [section..data]
test edi, edi
mov esi, eax
je 0x43b15a
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x43b15e
xor eax, eax
jmp 0x43b174
lea ebx, [eax + eax]
mov eax, ebx
call fcn.004aa020
mov eax, esp
push esi
mov esi, eax
push ebx
push edi
call fcn.00439344
push eax
lea eax, [ebp - 8]
push eax
call fcn.0041d76c
mov esi, dword [ebp - 8]
mov ebx, dword [esi - 0xc]
mov dword [ebp - 0xc], esi
push 0
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x43b1aa
cmp dword [ebp - 4], ebx
jne 0x43b1aa
mov dword [ebp - 0x18], 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [esi - 0x10]
call fcn.0040151c
lea eax, [edi - 0x10]
call fcn.0040151c
mov eax, dword [ebp - 0x18]
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x43c0b8
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.00497490
push esi
lea eax, [ebp - 0x216]
push edi
push eax
mov word [ebp - 0x218], di
call fcn.00497490
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 0x43c131
mov dword [ebp - 4], edi
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5289f4]
push esi
push edi
mov ecx, 0x5289f4
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 0x43c1fe
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00401b57
lea esi, [ebp - 4]
call fcn.0042360a
push 0x506b64
mov eax, esi
push eax
call fcn.00405529
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43c1fe
lea eax, [esi - 0x10]
call fcn.0040151c
mov eax, edi
pop edi
pop esi
leave
ret
xor edi, edi
inc edi
jmp 0x43c1f0

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5289f4]
push esi
push edi
mov ecx, 0x5289f4
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 0x43c282
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00401b57
lea esi, [ebp - 4]
call fcn.0042360a
push str.qQ
mov eax, esi
push eax
call fcn.00405529
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43c282
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 0x43c274
Function at 0x43c2e2
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x5289f4]
and dword [ebp - 0x10], 0
push ebx
push esi
mov esi, 0x5289f4
push edi
mov ecx, esi
call dword [eax + 0xc]
mov ebx, eax
mov eax, dword [0x5289f4]
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.00402281
test eax, eax
je 0x43c35b
lea eax, [ebp - 4]
push eax
push str.ImagePath
mov ebx, esi
call fcn.004022cf
test eax, eax
je 0x43c358
lea eax, [ebp - 4]
call fcn.00423643
lea esi, [ebp - 4]
call fcn.0042360a
mov ebx, dword [ebp - 4]
xor esi, esi
cmp dword [ebp - 8], esi
je 0x43c36b
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebx - 0xc], esi
je 0x43c3db
push dword [esi + 0x524e84]
lea eax, [ebp - 4]
lea ecx, [ebp - 0x10]
call fcn.0041e85e
pop ecx
lea edi, [ebp - 0xc]
call fcn.00402073
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040151c
mov edi, dword [ebp - 0xc]
push 0
push edi
call fcn.004997a7
test eax, eax
pop ecx
pop ecx
jne 0x43c3bb
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x43c3bb
push 4
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
add esi, 4
cmp esi, 0x1c
jb 0x43c370
push str.SYSTEMCurrentControlSet_servicesKingsoft_Antivirus_WebShield_Service
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0042502d
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 0x43c45d
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
push ebx
push esi
push edi
mov edi, 0x5289f4
mov esi, eax
mov ecx, edi
call fcn.004016a6
mov eax, dword [0x5289f4]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
mov eax, dword [0x5289f4]
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.00497490
add esp, 0xc
lea edi, [ebp - 0x10]
call fcn.0043c573
mov edi, esi
call fcn.00402073
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jne 0x43c554
lea eax, [ebp - 0x1a4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, ebx
jne 0x43c554
push dword [ebp + 8]
lea eax, [ebp + 8]
push eax
call fcn.0043c704
lea edi, [ebp - 8]
call fcn.00402073
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [ebp - 8]
cmp dword [eax - 0xc], ebx
je 0x43c554
mov edi, dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0043c9f7
cmp eax, ebx
jne 0x43c554
push dword [ebp - 0xc]
lea ebx, [ebp + 8]
call fcn.0043c61e
mov edi, esi
call fcn.00402073
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x43c554
push eax
call fcn.0043c5dc
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 0x43c8f3
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.00497490
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 0x43c940
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x43c940
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov esi, dword [eax]
mov eax, esi
pop esi
add ebp, 0x78
leave
ret