joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425440
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.0048a830
mov eax, dword [0x4de4b4]
add esp, 0xc
mov ecx, 0x4de4b4
call dword [eax + 0xc]
mov ebx, eax
add ebx, 0x10
lea esi, [ebp - 0x4c]
mov dword [ebp - 8], ebx
call fcn.0044a1e8
push edi
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4255e1
lea eax, [ebp - 0x280]
push eax
push esi
mov dword [ebp - 0x280], 0x22c
call sub.KERNEL32.DLL_Process32FirstW
test eax, eax
je 0x4255da
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x278]
cmp eax, dword [ebp - 0x18]
je 0x4255bf
cmp eax, edi
je 0x4255bf
cmp eax, 4
je 0x4255bf
lea eax, [ebp - 0x25c]
push str.LdTermDaemon.exe
push eax
call fcn.0048bf4f
test eax, eax
pop ecx
pop ecx
jne 0x4255bf
push dword [ebp - 0x278]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0044a22f
lea edi, [ebp - 8]
call fcn.0040204d
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040151c
mov ebx, dword [ebp - 8]
cmp dword [ebx - 0xc], 0
je 0x4255bf
mov eax, edi
call fcn.00422b4d
xor edi, edi
inc edi
or dword [ebp - 4], edi
push str.LdTerm.exe
lea eax, [ebp - 8]
lea ecx, [ebp - 0x14]
call fcn.0041e0dd
mov eax, dword [eax]
pop ecx
push 0
push eax
call fcn.0048cb1e
test eax, eax
pop ecx
pop ecx
jne 0x42558c
or dword [ebp - 4], 2
push str.LdxManager.exe
lea eax, [ebp - 8]
lea ecx, [ebp - 0x1c]
call fcn.0041e0dd
mov eax, dword [eax]
pop ecx
push 0
push eax
call fcn.0048cb1e
test eax, eax
pop ecx
pop ecx
jne 0x42558c
mov bl, 1
jmp 0x42558e
xor bl, bl
test byte [ebp - 4], 2
je 0x4255a3
mov eax, dword [ebp - 0x1c]
and dword [ebp - 4], 0xfffffffd
add eax, 0xfffffff0
call fcn.0040151c
test byte [ebp - 4], 1
je 0x4255b8
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 0x4255d7
lea eax, [ebp - 0x280]
push eax
push esi
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
je 0x4255da
xor edi, edi
jmp 0x4254c7
mov dword [ebp - 0xc], edi
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea edi, [ebp - 0x4c]
call fcn.0044a21d
lea eax, [ebx - 0x10]
call fcn.0040151c
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x425820
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.0048a830
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.0048ab31
test eax, eax
pop ecx
je 0x425919
mov eax, dword [0x4de4b4]
mov edi, 0x4de4b4
push ebx
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
push 0x4beb3c
lea eax, [ebp - 0x218]
push eax
mov esi, str._s_s.lnk
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.0041e0ca
mov eax, dword [0x4de4b4]
add esp, 0x10
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x4beb60
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.0041e0ca
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 0x425903
push ebx
call esi
test eax, eax
jne 0x425903
xor esi, esi
jmp 0x425906
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 0x425936
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 0x425949
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x42b1a3
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.00438355
lea esi, [ebp + 0x28]
call fcn.00438355
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 [0x4de240], ebx
je 0x42b1f9
push 0x4de0b0
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [0x4de240], eax
fld dword [0x4c9810]
lea esi, [edi + 0x54]
mov dword [edi], vtable.ATL::CAtlHttpClientT_class_ATL::ZEvtSyncSocket_.0
fstp dword [esi + 0xc]
fld dword [0x4c9814]
or dword [esi + 0x18], 0xffffffff
fstp dword [esi + 0x10]
mov dword [esi], ebx
fld dword [0x4c9818]
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.00432aff
fld dword [0x4c9810]
lea esi, [edi + 0x84]
or dword [esi + 0x18], 0xffffffff
fstp dword [esi + 0xc]
fld dword [0x4c9814]
mov dword [esi], ebx
fstp dword [esi + 0x10]
mov dword [esi + 4], ebx
fld dword [0x4c9818]
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.00432aff
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.00430a4e
lea esi, [edi + 0x10d8]
call fcn.00421aa8
lea esi, [edi + 0x3544]
mov ecx, 0x4de4b4
call fcn.004016ab
lea esi, [edi + 0x3548]
mov ecx, 0x4de4b4
call fcn.004016ab
mov esi, ebp
call fcn.004225fb
call fcn.00432521
mov dword [edi + 0xc4], ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x43826c
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 0x438333
xor eax, eax
cmp dword [ebp - 8], esi
je 0x4382b5
push dword [ebp - 8]
call ebx
cmp eax, esi
mov ecx, dword [ebp - 0xc]
mov edi, eax
mov dword [ebp - 8], ecx
jne 0x438333
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 0x438309
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 8]
call fcn.0043826c
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x438346
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 0x4382dd
cmp dword [ebp - 8], esi
je 0x438323
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 0x43833d
push dword [ebp - 8]
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
cmp dword [ebp - 8], esi
je 0x438350
push dword [ebp - 8]
call ebx
mov eax, dword [ebp - 0xc]
jmp 0x43833f
Function at 0x4386e0
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 0x4386f8
call fcn.0048ccb3
mov esi, dword [edi + 4]
cmp esi, dword [edi + 8]
jbe 0x438705
call fcn.0048ccb3
cmp esi, ebx
je 0x438723
push esi
push dword [edi + 8]
mov eax, ebx
call fcn.004394f6
pop ecx
pop ecx
push dword [edi + 8]
mov esi, eax
call fcn.00439278
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 0x438830
push 0x228
lea eax, [ebp - 0x24c]
push esi
push eax
call fcn.0048a830
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 0x438827
mov ecx, 0x4de4b4
lea esi, [ebp - 8]
call fcn.004016ab
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.00401af8
mov ebx, dword [edi + 4]
test ebx, ebx
jne 0x4387ba
xor esi, esi
jmp 0x4387c7
mov eax, dword [edi + 0xc]
sub eax, ebx
push 0x14
cdq
pop ecx
idiv ecx
mov esi, eax
mov eax, edi
call fcn.004391af
cmp eax, esi
jae 0x4387e5
lea eax, [ebp - 0x18]
push eax
push 1
push dword [edi + 8]
call fcn.00439248
mov dword [edi + 8], eax
jmp 0x438802
mov esi, dword [edi + 8]
cmp ebx, esi
jbe 0x4387f1
call fcn.0048ccb3
push esi
push edi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, edi
call fcn.004391c5
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 0x43876f
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 0x438966
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
cmp dword [ebp + 8], 0
jne 0x43897a
or eax, 0xffffffff
leave
ret
and word [ebp - 0x208], 0
push 0x206
lea eax, [ebp - 0x206]
push 0
push eax
call fcn.0048a830
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push str.SYSTEMCurrentControlSet_services_s
push 0x104
push eax
call fcn.0048cb5c
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 0x4389cc
cmp eax, 2
jne 0x438975
xor eax, eax
leave
ret
Function at 0x4389d0
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 0x438a3e
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 0x438a39
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 0x438a36
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x438a33
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 0x438f22
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.0049da80
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 0x43900e
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 0x43900e
push 0xfff
lea eax, [ebp - 0x100f]
push ebx
push eax
mov byte [ebp - 0x1010], bl
call fcn.0048a830
mov esi, dword [sym.imp.KERNEL32.DLL_ReadFile]
mov edi, 0x1000
jmp 0x438fe9
cmp dword [ebp + 0xc], ebx
je 0x439007
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 0x43900e
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x10]
jne 0x43900e
push 0xfff
lea eax, [ebp - 0x100f]
push ebx
push eax
mov byte [ebp - 0x1010], bl
call fcn.0048a830
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 0x438fa5
jmp 0x43900e
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 0x439027
push dword [ebp - 4]
call esi
cmp dword [ebp - 8], 0xffffffff
je 0x439032
push dword [ebp - 8]
call esi
cmp dword [ebp - 0xc], ebx
je 0x439042
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x439049
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 0x4396f0
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 0x439788
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 0x43977e
cmp edi, 0x200000
ja 0x43977e
lea eax, [edi + 2]
push esi
push eax
call fcn.0048979d
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 0x43977d
mov eax, dword [ebp + 8]
cmp eax, edi
jne 0x43977d
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 0x439f89
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4de4b4]
push ebx
push esi
push edi
xor ebx, ebx
mov edi, 0x4de4b4
mov ecx, edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
call dword [eax + 0xc]
mov esi, eax
mov eax, dword [0x4de4b4]
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 0x43a046
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.0043a063
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 0x43a03d
cmp dword [ebp - 4], 2
jne 0x43a03d
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 0x43a03d
mov eax, dword [ebp + 8]
cmp dword [ebp - 4], eax
jne 0x43a03d
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 0x43ac3e
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.0048a830
push esi
lea eax, [ebp - 0x216]
push edi
push eax
mov word [ebp - 0x218], di
call fcn.0048a830
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 0x43acb7
mov dword [ebp - 4], edi
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4de4b4]
push esi
push edi
mov ecx, 0x4de4b4
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 0x43ad84
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00401af8
lea esi, [ebp - 4]
call fcn.00422b09
push 0x4c0eac
mov eax, esi
push eax
call fcn.0040536e
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43ad84
lea eax, [esi - 0x10]
call fcn.0040151c
mov eax, edi
pop edi
pop esi
leave
ret
xor edi, edi
inc edi
jmp 0x43ad76
Function at 0x43ad89
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4de4b4]
push esi
push edi
mov ecx, 0x4de4b4
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 0x43ae08
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00401af8
lea esi, [ebp - 4]
call fcn.00422b09
push str.qQ
mov eax, esi
push eax
call fcn.0040536e
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43ae08
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 0x43adfa

Function at 0x43ae68
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4de4b4]
and dword [ebp - 0x10], 0
push ebx
push esi
mov esi, 0x4de4b4
push edi
mov ecx, esi
call dword [eax + 0xc]
mov ebx, eax
mov eax, dword [0x4de4b4]
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.0040225b
test eax, eax
je 0x43aee1
lea eax, [ebp - 4]
push eax
push str.ImagePath
mov ebx, esi
call fcn.004022a9
test eax, eax
je 0x43aede
lea eax, [ebp - 4]
call fcn.00422b4d
lea esi, [ebp - 4]
call fcn.00422b09
mov ebx, dword [ebp - 4]
xor esi, esi
cmp dword [ebp - 8], esi
je 0x43aef1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebx - 0xc], esi
je 0x43af61
push dword [esi + 0x4dac24]
lea eax, [ebp - 4]
lea ecx, [ebp - 0x10]
call fcn.0041e0dd
pop ecx
lea edi, [ebp - 0xc]
call fcn.0040204d
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040151c
mov edi, dword [ebp - 0xc]
push 0
push edi
call fcn.0048cb1e
test eax, eax
pop ecx
pop ecx
jne 0x43af41
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x43af41
push 4
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
add esi, 4
cmp esi, 0x1c
jb 0x43aef6
push str.SYSTEMCurrentControlSet_servicesKingsoft_Antivirus_WebShield_Service
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0042448a
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 0x43afab
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
push ebx
push esi
push edi
mov edi, 0x4de4b4
mov esi, eax
mov ecx, edi
call fcn.004016ab
mov eax, dword [0x4de4b4]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
mov eax, dword [0x4de4b4]
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.0048a830
add esp, 0xc
lea edi, [ebp - 0x10]
call fcn.0043b0c1
mov edi, esi
call fcn.0040204d
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jne 0x43b0a2
lea eax, [ebp - 0x1a4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, ebx
jne 0x43b0a2
push dword [ebp + 8]
lea eax, [ebp + 8]
push eax
call fcn.0043b252
lea edi, [ebp - 8]
call fcn.0040204d
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [ebp - 8]
cmp dword [eax - 0xc], ebx
je 0x43b0a2
mov edi, dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0043b549
cmp eax, ebx
jne 0x43b0a2
push dword [ebp - 0xc]
lea ebx, [ebp + 8]
call fcn.0043b16c
mov edi, esi
call fcn.0040204d
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x43b0a2
push eax
call fcn.0043b12a
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 0x43b445
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.0048a830
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 0x43b492
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x43b492
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov esi, dword [eax]
mov eax, esi
pop esi
add ebp, 0x78
leave
ret