joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425820
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.0048a3a0
mov eax, dword [0x4dd4b4]
add esp, 0xc
mov ecx, 0x4dd4b4
call dword [eax + 0xc]
mov ebx, eax
add ebx, 0x10
lea esi, [ebp - 0x4c]
mov dword [ebp - 8], ebx
call fcn.0044a40a
push edi
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4259c1
lea eax, [ebp - 0x280]
push eax
push esi
mov dword [ebp - 0x280], 0x22c
call sub.KERNEL32.DLL_Process32FirstW
test eax, eax
je 0x4259ba
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x278]
cmp eax, dword [ebp - 0x18]
je 0x42599f
cmp eax, edi
je 0x42599f
cmp eax, 4
je 0x42599f
lea eax, [ebp - 0x25c]
push str.LdTermDaemon.exe
push eax
call fcn.0048ca4a
test eax, eax
pop ecx
pop ecx
jne 0x42599f
push dword [ebp - 0x278]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0044a451
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 0x42599f
mov eax, edi
call fcn.00422df3
xor edi, edi
inc edi
or dword [ebp - 4], edi
push str.LdTerm.exe
lea eax, [ebp - 8]
lea ecx, [ebp - 0x14]
call fcn.0041e2e0
mov eax, dword [eax]
pop ecx
push 0
push eax
call fcn.0048c122
test eax, eax
pop ecx
pop ecx
jne 0x42596c
or dword [ebp - 4], 2
push str.LdxManager.exe
lea eax, [ebp - 8]
lea ecx, [ebp - 0x1c]
call fcn.0041e2e0
mov eax, dword [eax]
pop ecx
push 0
push eax
call fcn.0048c122
test eax, eax
pop ecx
pop ecx
jne 0x42596c
mov bl, 1
jmp 0x42596e
xor bl, bl
test byte [ebp - 4], 2
je 0x425983
mov eax, dword [ebp - 0x1c]
and dword [ebp - 4], 0xfffffffd
add eax, 0xfffffff0
call fcn.0040151c
test byte [ebp - 4], 1
je 0x425998
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 0x4259b7
lea eax, [ebp - 0x280]
push eax
push esi
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
je 0x4259ba
xor edi, edi
jmp 0x4258a7
mov dword [ebp - 0xc], edi
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea edi, [ebp - 0x4c]
call fcn.0044a43f
lea eax, [ebx - 0x10]
call fcn.0040151c
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x425c00
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.0048a3a0
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.0048a6a1
test eax, eax
pop ecx
je 0x425cf9
mov eax, dword [0x4dd4b4]
mov edi, 0x4dd4b4
push ebx
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
push 0x4bd9dc
lea eax, [ebp - 0x218]
push eax
mov esi, str._s_s.lnk
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.0041e2cd
mov eax, dword [0x4dd4b4]
add esp, 0x10
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x4bda00
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.0041e2cd
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 0x425ce3
push ebx
call esi
test eax, eax
jne 0x425ce3
xor esi, esi
jmp 0x425ce6
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 0x425d16
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 0x425d29
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x42b600
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.00438735
lea esi, [ebp + 0x28]
call fcn.00438735
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 [0x4dd240], ebx
je 0x42b656
push 0x4dd0b0
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [0x4dd240], eax
fld dword [0x4c8690]
lea esi, [edi + 0x54]
mov dword [edi], vtable.ATL::CAtlHttpClientT_class_ATL::ZEvtSyncSocket_.0
fstp dword [esi + 0xc]
fld dword [0x4c8694]
or dword [esi + 0x18], 0xffffffff
fstp dword [esi + 0x10]
mov dword [esi], ebx
fld dword [0x4c8698]
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.00408300
fld dword [0x4c8690]
lea esi, [edi + 0x84]
or dword [esi + 0x18], 0xffffffff
fstp dword [esi + 0xc]
fld dword [0x4c8694]
mov dword [esi], ebx
fstp dword [esi + 0x10]
mov dword [esi + 4], ebx
fld dword [0x4c8698]
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.00408300
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.00430eab
lea esi, [edi + 0x10d8]
call fcn.00421d4e
lea esi, [edi + 0x3544]
mov ecx, 0x4dd4b4
call fcn.004016ab
lea esi, [edi + 0x3548]
mov ecx, 0x4dd4b4
call fcn.004016ab
mov esi, ebp
call fcn.004228a1
call fcn.0043295b
mov dword [edi + 0xc4], ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x43864c
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 0x438713
xor eax, eax
cmp dword [ebp - 8], esi
je 0x438695
push dword [ebp - 8]
call ebx
cmp eax, esi
mov ecx, dword [ebp - 0xc]
mov edi, eax
mov dword [ebp - 8], ecx
jne 0x438713
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 0x4386e9
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 8]
call fcn.0043864c
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x438726
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 0x4386bd
cmp dword [ebp - 8], esi
je 0x438703
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 0x43871d
push dword [ebp - 8]
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
cmp dword [ebp - 8], esi
je 0x438730
push dword [ebp - 8]
call ebx
mov eax, dword [ebp - 0xc]
jmp 0x43871f
Function at 0x438a9e
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 0x438ab6
call fcn.0048c323
mov esi, dword [edi + 4]
cmp esi, dword [edi + 8]
jbe 0x438ac3
call fcn.0048c323
cmp esi, ebx
je 0x438ae1
push esi
push dword [edi + 8]
mov eax, ebx
call fcn.004398b4
pop ecx
pop ecx
push dword [edi + 8]
mov esi, eax
call fcn.00439636
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 0x438bee
push 0x228
lea eax, [ebp - 0x24c]
push esi
push eax
call fcn.0048a3a0
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 0x438be5
mov ecx, 0x4dd4b4
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 0x438b78
xor esi, esi
jmp 0x438b85
mov eax, dword [edi + 0xc]
sub eax, ebx
push 0x14
cdq
pop ecx
idiv ecx
mov esi, eax
mov eax, edi
call fcn.0043956d
cmp eax, esi
jae 0x438ba3
lea eax, [ebp - 0x18]
push eax
push 1
push dword [edi + 8]
call fcn.00439606
mov dword [edi + 8], eax
jmp 0x438bc0
mov esi, dword [edi + 8]
cmp ebx, esi
jbe 0x438baf
call fcn.0048c323
push esi
push edi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, edi
call fcn.00439583
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 0x438b2d
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 0x438d24
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
cmp dword [ebp + 8], 0
jne 0x438d38
or eax, 0xffffffff
leave
ret
and word [ebp - 0x208], 0
push 0x206
lea eax, [ebp - 0x206]
push 0
push eax
call fcn.0048a3a0
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push str.SYSTEMCurrentControlSet_services_s
push 0x104
push eax
call fcn.0048c1cc
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 0x438d8a
cmp eax, 2
jne 0x438d33
xor eax, eax
leave
ret
Function at 0x438d8e
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 0x438dfc
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 0x438df7
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 0x438df4
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x438df1
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 0x4392e0
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.0049d480
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 0x4393cc
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 0x4393cc
push 0xfff
lea eax, [ebp - 0x100f]
push ebx
push eax
mov byte [ebp - 0x1010], bl
call fcn.0048a3a0
mov esi, dword [sym.imp.KERNEL32.DLL_ReadFile]
mov edi, 0x1000
jmp 0x4393a7
cmp dword [ebp + 0xc], ebx
je 0x4393c5
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 0x4393cc
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x10]
jne 0x4393cc
push 0xfff
lea eax, [ebp - 0x100f]
push ebx
push eax
mov byte [ebp - 0x1010], bl
call fcn.0048a3a0
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 0x439363
jmp 0x4393cc
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 0x4393e5
push dword [ebp - 4]
call esi
cmp dword [ebp - 8], 0xffffffff
je 0x4393f0
push dword [ebp - 8]
call esi
cmp dword [ebp - 0xc], ebx
je 0x439400
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x439407
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 0x439aae
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 0x439b46
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 0x439b3c
cmp edi, 0x200000
ja 0x439b3c
lea eax, [edi + 2]
push esi
push eax
call fcn.0048930f
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 0x439b3b
mov eax, dword [ebp + 8]
cmp eax, edi
jne 0x439b3b
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 0x43a347
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4dd4b4]
push ebx
push esi
push edi
xor ebx, ebx
mov edi, 0x4dd4b4
mov ecx, edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
call dword [eax + 0xc]
mov esi, eax
mov eax, dword [0x4dd4b4]
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 0x43a404
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.0043a421
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 0x43a3fb
cmp dword [ebp - 4], 2
jne 0x43a3fb
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 0x43a3fb
mov eax, dword [ebp + 8]
cmp dword [ebp - 4], eax
jne 0x43a3fb
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 0x43b015
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.0048a3a0
push esi
lea eax, [ebp - 0x216]
push edi
push eax
mov word [ebp - 0x218], di
call fcn.0048a3a0
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 0x43b08e
mov dword [ebp - 4], edi
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4dd4b4]
push esi
push edi
mov ecx, 0x4dd4b4
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 0x43b15b
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00401af8
lea esi, [ebp - 4]
call fcn.00422daf
push 0x4bfd4c
mov eax, esi
push eax
call fcn.0040537b
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43b15b
lea eax, [esi - 0x10]
call fcn.0040151c
mov eax, edi
pop edi
pop esi
leave
ret
xor edi, edi
inc edi
jmp 0x43b14d
Function at 0x43b160
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4dd4b4]
push esi
push edi
mov ecx, 0x4dd4b4
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 0x43b1df
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00401af8
lea esi, [ebp - 4]
call fcn.00422daf
push str.qQ
mov eax, esi
push eax
call fcn.0040537b
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43b1df
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 0x43b1d1

Function at 0x43b23f
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4dd4b4]
and dword [ebp - 0x10], 0
push ebx
push esi
mov esi, 0x4dd4b4
push edi
mov ecx, esi
call dword [eax + 0xc]
mov ebx, eax
mov eax, dword [0x4dd4b4]
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 0x43b2b8
lea eax, [ebp - 4]
push eax
push str.ImagePath
mov ebx, esi
call fcn.004022a9
test eax, eax
je 0x43b2b5
lea eax, [ebp - 4]
call fcn.00422df3
lea esi, [ebp - 4]
call fcn.00422daf
mov ebx, dword [ebp - 4]
xor esi, esi
cmp dword [ebp - 8], esi
je 0x43b2c8
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebx - 0xc], esi
je 0x43b338
push dword [esi + 0x4d9c24]
lea eax, [ebp - 4]
lea ecx, [ebp - 0x10]
call fcn.0041e2e0
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.0048c122
test eax, eax
pop ecx
pop ecx
jne 0x43b318
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x43b318
push 4
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
add esi, 4
cmp esi, 0x1c
jb 0x43b2cd
push str.SYSTEMCurrentControlSet_servicesKingsoft_Antivirus_WebShield_Service
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0042486a
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 0x43b382
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
push ebx
push esi
push edi
mov edi, 0x4dd4b4
mov esi, eax
mov ecx, edi
call fcn.004016ab
mov eax, dword [0x4dd4b4]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
mov eax, dword [0x4dd4b4]
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.0048a3a0
add esp, 0xc
lea edi, [ebp - 0x10]
call fcn.0043b498
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 0x43b479
lea eax, [ebp - 0x1a4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, ebx
jne 0x43b479
push dword [ebp + 8]
lea eax, [ebp + 8]
push eax
call fcn.0043b629
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 0x43b479
mov edi, dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0043b920
cmp eax, ebx
jne 0x43b479
push dword [ebp - 0xc]
lea ebx, [ebp + 8]
call fcn.0043b543
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 0x43b479
push eax
call fcn.0043b501
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 0x43b81c
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.0048a3a0
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 0x43b869
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x43b869
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov esi, dword [eax]
mov eax, esi
pop esi
add ebp, 0x78
leave
ret