joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ba85
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
xor esi, esi
cmp dword [ebx + 0xc], esi
jne 0x40ba9a
xor eax, eax
jmp 0x40bb97
mov ecx, dword [ebx + 0x80]
add ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 0x6c]
push esi
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40babd
push 2
pop eax
jmp 0x40bb97
push edi
lea edi, [ebp - 0x2c]
call fcn.0040a848
cmp dword [ebx + 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
jbe 0x40bb80
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebx + 0x6c]
push esi
lea ecx, [ebp - 0xc]
push ecx
push 0x18
lea ecx, [ebp - 0x2c]
push ecx
push eax
call edi
test eax, eax
je 0x40bb7d
cmp dword [ebp - 0xc], esi
je 0x40bb7d
cmp dword [ebp - 4], esi
je 0x40bb0e
push dword [ebp - 4]
call fcn.004222bd
pop ecx
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x18]
inc eax
push eax
lea eax, [ebp - 4]
push eax
call fcn.004038ae
test al, al
je 0x40bb79
mov eax, dword [ebx + 0x6c]
push esi
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp - 0x18]
push dword [ebp - 4]
push eax
call edi
test eax, eax
je 0x40bb7d
cmp dword [ebp - 0xc], esi
je 0x40bb7d
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov byte [eax + ecx], 0
lea eax, [ebp - 0x2c]
lea esi, [ebx + 0x60]
push eax
call fcn.0040c293
mov eax, dword [ebp - 8]
mov ecx, esi
call fcn.0040c2da
push dword [ebp - 4]
add eax, 0x18
push eax
call fcn.00401d4a
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
xor esi, esi
cmp eax, dword [ebx + 0xc]
jb 0x40badb
jmp 0x40bb80
push 3
jmp 0x40bb7f
push 2
pop esi
push dword [ebp - 4]
call fcn.004222bd
mov eax, dword [ebp - 0x14]
pop ecx
add eax, 0xfffffff0
call fcn.0040175b
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x40bb9a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
cmp dword [esi + 0x88], ebx
jle 0x40bbb2
xor eax, eax
jmp 0x40bcd1
mov ecx, dword [esi + 0x80]
add ecx, dword [esi + 8]
mov eax, dword [esi + 0x6c]
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40bbd5
push 2
pop eax
jmp 0x40bcd1
cmp dword [esi + 4], ebx
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
jbe 0x40bcc5
mov eax, dword [esi + 0x6c]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea ecx, [ebp - 8]
push ecx
push 8
lea ecx, [ebp - 0x14]
push ecx
push eax
call edi
test eax, eax
je 0x40bcc2
cmp dword [ebp - 8], ebx
je 0x40bcc2
mov eax, dword [0x429570]
mov ecx, 0x429570
call dword [eax + 0xc]
add eax, 0x10
cmp dword [ebp - 4], ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
je 0x40bc3d
push dword [ebp - 4]
call fcn.004222bd
pop ecx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
inc eax
push eax
lea eax, [ebp - 4]
push eax
call fcn.004038ae
test al, al
je 0x40bca8
mov eax, dword [esi + 0x6c]
push ebx
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 0x10]
push dword [ebp - 4]
push eax
call edi
test eax, eax
je 0x40bcb7
cmp dword [ebp - 8], ebx
je 0x40bcb7
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
push eax
mov byte [ecx + eax], bl
lea eax, [ebp - 0x1c]
push eax
call fcn.00401d4a
lea ebx, [esi + 0x84]
lea edi, [ebp - 0x1c]
call fcn.0042155c
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040175b
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
xor ebx, ebx
cmp eax, dword [esi + 4]
jb 0x40bbeb
jmp 0x40bcc5
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040175b
push 3
jmp 0x40bcc4
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040175b
push 2
pop ebx
push dword [ebp - 4]
call fcn.004222bd
pop ecx
mov eax, ebx
pop edi
pop ebx
leave
ret

Function at 0x40c531
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x429060]
xor eax, ebp
push esi
mov dword [ebp + 0x84], eax
lea eax, [ebp - 0x80]
push eax
push 0x104
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x40c569
call fcn.00401d06
jmp 0x40c587
cmp byte [ebp + eax - 0x81], 0x5c
je 0x40c579
mov byte [ebp + eax - 0x80], 0x5c
inc eax
mov byte [ebp + eax - 0x80], 0
lea eax, [ebp - 0x80]
push eax
call fcn.00401d1b
mov ecx, dword [ebp + 0x84]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042254d
add ebp, 0x88
leave
ret
Function at 0x40c84e
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x154
mov eax, dword [0x429060]
xor eax, ebp
push esi
mov esi, dword [ebp + 0x7c]
mov dword [ebp + 0x70], eax
mov eax, dword [esi]
push edi
sub eax, 0x10
mov dword [ebp - 0xe0], esi
call fcn.00401773
add eax, 0x10
mov dword [ebp - 0xd4], eax
lea eax, [ebp - 0xd4]
call fcn.0040c50c
mov edi, 0x424cbc
mov ecx, edi
call fcn.00401d64
push eax
push edi
lea eax, [ebp - 0xd4]
push eax
call fcn.00401cb8
and dword [ebp - 0xd0], 0
push 0x4f
pop ecx
xor eax, eax
lea edi, [ebp - 0xcc]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xd0]
push eax
push dword [ebp - 0xd4]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0xdc], eax
je 0x40ca04
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp byte [ebp - 0xa4], 0x2e
jne 0x40c91d
cmp byte [ebp - 0xa3], 0
je 0x40c907
cmp byte [ebp - 0xa3], 0x2e
jne 0x40c91d
cmp byte [ebp - 0xa2], 0
jne 0x40c91d
lea eax, [ebp - 0xd0]
push eax
push dword [ebp - 0xdc]
call ebx
mov edi, eax
jmp 0x40c9fb
test byte [ebp - 0xd0], 0x10
je 0x40c9a3
mov eax, dword [esi]
sub eax, 0x10
call fcn.00401773
add eax, 0x10
mov dword [ebp - 0xd8], eax
lea eax, [ebp - 0xd8]
call fcn.0040c50c
lea ecx, [ebp - 0xa4]
call fcn.00401d64
push eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xd8]
push eax
call fcn.00401cb8
lea eax, [ebp - 0xd0]
push eax
push dword [ebp - 0xdc]
call ebx
mov edi, eax
lea eax, [ebp - 0xd8]
push eax
call fcn.0040c84e
pop ecx
lea esi, [ebp - 0xd8]
call fcn.00403840
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, dword [ebp - 0xd8]
add eax, 0xfffffff0
call fcn.0040175b
jmp 0x40c9f5
mov eax, esi
lea edi, [ebp - 0xd4]
call fcn.0040158b
mov eax, edi
call fcn.0040c50c
lea ecx, [ebp - 0xa4]
call fcn.00401d64
push eax
lea eax, [ebp - 0xa4]
push eax
mov eax, edi
push eax
call fcn.00401cb8
lea eax, [ebp - 0xd0]
push eax
push dword [ebp - 0xdc]
call ebx
lea esi, [ebp - 0xd4]
mov edi, eax
call fcn.00403840
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [ebp - 0xe0]
test edi, edi
jne 0x40c8e3
pop ebx
push dword [ebp - 0xdc]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0xd4]
add eax, 0xfffffff0
call fcn.0040175b
mov ecx, dword [ebp + 0x70]
pop edi
xor ecx, ebp
pop esi
call fcn.0042254d
add ebp, 0x74
leave
ret
Function at 0x40caa5
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x429570]
push esi
push edi
mov ecx, 0x429570
call dword [eax + 0xc]
mov edi, dword [ebp + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
lea esi, [eax - 1]
call fcn.00403af9
cmp al, 0x5c
jne 0x40caf9
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
lea ecx, [ebp + 0xc]
dec eax
push ecx
mov esi, edi
call fcn.004014a5
lea edi, [ebp - 4]
call fcn.0040158b
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.0040175b
jmp 0x40cb03
mov eax, edi
lea edi, [ebp - 4]
call fcn.0040158b
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [esi]
mov edx, dword [eax - 0xc]
cmp edx, dword [ecx - 0xc]
jge 0x40cb51
push 0x5c
call fcn.0040143c
lea ecx, [ebp - 8]
push ecx
call fcn.004014a5
mov eax, dword [ebp - 8]
cmp dword [eax - 0xc], 0
je 0x40cb43
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0040caa5
pop ecx
pop ecx
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040175b
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040175b
pop edi
pop esi
leave
ret

Function at 0x40cb5d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x429060]
and dword [ebp - 0x80], 0
and dword [ebp - 0x7c], 0
and dword [ebp - 0x78], 0
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x68]
push eax
push 0x64
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov dword [ebp - 0x6c], eax
xor edi, edi
lea esi, [ebp + edi - 0x68]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x40cbce
push esi
lea esi, [ebp - 0x74]
call fcn.00401d1b
mov eax, esi
push eax
lea esi, [ebp - 0x80]
call fcn.004058ad
mov eax, dword [ebp - 0x74]
add eax, 0xfffffff0
call fcn.0040175b
jmp 0x40cbce
cmp byte [ebp + edi - 0x68], 0
je 0x40cbd3
inc edi
cmp edi, dword [ebp - 0x6c]
jb 0x40cbc6
inc edi
cmp edi, dword [ebp - 0x6c]
jb 0x40cb95
mov eax, dword [ebp - 0x70]
lea edi, [ebp - 0x80]
call fcn.0040d19b
lea edi, [ebp - 0x80]
call fcn.00403a31
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x70]
pop edi
xor ecx, ebp
pop esi
call fcn.0042254d
leave
ret
Function at 0x40cee1
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, dword [ebp + 8]
call fcn.0040cbfd
test al, al
je 0x40cef7
xor eax, eax
leave
ret
push esi
lea eax, [ebp - 0x18]
push edi
xor esi, esi
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call fcn.0040cd5d
mov edi, dword [ebp - 0x14]
cmp edi, esi
pop ecx
jg 0x40cf27
push esi
push esi
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
sub eax, 0x10
call fcn.00401773
mov esi, eax
add esi, 0x10
dec edi
cmp byte [ebp + 0xc], 0
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], edi
je 0x40cf4a
inc edi
mov dword [ebp - 0xc], edi
push ebx
xor ebx, ebx
inc ebx
cmp edi, ebx
jle 0x40d022
lea eax, [esi - 0x10]
call fcn.00401773
push dword [0x429170]
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.00403a66
mov eax, ebx
lea ecx, [ebp - 0x18]
call fcn.0040a7d2
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00401cb8
mov edi, dword [ebp - 4]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40cfd5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov dword [ebp - 4], eax
je 0x40cfe5
cmp ebx, 1
jle 0x40cfb8
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea eax, [edi - 0x10]
call fcn.0040175b
lea eax, [esi - 0x10]
call fcn.0040175b
lea edi, [ebp - 0x18]
call fcn.00403a31
mov eax, dword [ebp - 4]
jmp 0x40d034
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x40cfe5
lea eax, [ebp - 4]
push eax
call fcn.004058ad
push dword [0x429170]
lea eax, [ebp - 8]
push eax
call fcn.00403a66
mov eax, ebx
lea ecx, [ebp - 0x18]
call fcn.0040a7d2
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00401cb8
lea eax, [edi - 0x10]
call fcn.0040175b
mov esi, dword [ebp - 8]
inc ebx
cmp ebx, dword [ebp - 0xc]
jl 0x40cf56
lea eax, [esi - 0x10]
call fcn.0040175b
lea edi, [ebp - 0x18]
call fcn.00403a31
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret
Function at 0x40e44e
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x429060]
xor eax, ebp
push ebx
push esi
mov dword [ebp + 0x88], eax
call fcn.0040444b
test al, al
jne 0x40e502
mov eax, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push str.ProgramFilesFolder
push eax
call esi
test eax, eax
mov ebx, str.AppDataFolder
je 0x40e4a9
mov eax, dword [edi]
push str.ProgramFiles
push eax
call esi
test eax, eax
je 0x40e4a9
mov eax, dword [edi]
push ebx
push eax
call esi
test eax, eax
jne 0x40e502
mov eax, dword [edi]
push ebx
push eax
call esi
neg eax
sbb al, al
inc al
push 0
pop ebx
mov byte [ebp - 0x7d], al
mov byte [ebp - 0x7c], bl
mov eax, str.APPDATA
jne 0x40e4ca
mov eax, str.PROGRAMFILES
push 0x104
lea ecx, [ebp - 0x7c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, ebx
jbe 0x40e4e6
mov byte [ebp + esi - 0x7c], 0x5c
inc esi
mov byte [ebp + esi - 0x7c], bl
cmp byte [ebp - 0x7c], bl
je 0x40e4f9
lea eax, [ebp - 0x7c]
push eax
push edi
call fcn.00401d4a
xor eax, eax
cmp esi, ebx
setne al
jmp 0x40e504
xor al, al
mov ecx, dword [ebp + 0x88]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042254d
add ebp, 0x8c
leave
ret

Function at 0x40eab3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [eax]
push ebx
push esi
xor esi, esi
cmp dword [eax - 0xc], esi
mov ebx, ecx
jne 0x40eacc
xor eax, eax
jmp 0x40eb7d
push edi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40eaf1
push eax
jmp 0x40eb73
push 0x78
lea eax, [ebp - 4]
call fcn.004037ec
push esi
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40eb1b
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040175b
cmp edi, esi
jmp 0x40eb70
push esi
lea eax, [ebp - 8]
push eax
push ebx
lea esi, [ebp - 4]
call fcn.00403840
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40eb63
cmp dword [ebp - 8], 0
je 0x40eb63
mov eax, esi
push eax
push dword [ebp + 8]
call fcn.0040e65e
movzx esi, al
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040175b
test edi, edi
je 0x40eb5f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x40eb7c
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040175b
test edi, edi
je 0x40eb79
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x410409
Capabilities:
Create process on windows
Delete file
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1a4]
sub esp, 0x224
mov eax, dword [0x429060]
xor eax, ebp
mov dword [ebp + 0x1a0], eax
mov eax, dword [ebp + 0x1ac]
push ebx
push edi
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x68]
push eax
push 0x104
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x78], eax
je 0x4105af
lea eax, [ebp + 0x9c]
push eax
push ebx
push 0x425270
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x4105af
push esi
lea eax, [ebp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp + 0x9c]
push eax
lea esi, [ebp - 0x6c]
call fcn.00401d1b
mov esi, str..url
mov ecx, esi
call fcn.00401d64
push eax
push esi
lea eax, [ebp - 0x6c]
push eax
call fcn.00401cb8
push ebx
push 0x80
push 2
push ebx
push ebx
mov ebx, dword [ebp - 0x6c]
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x80], esi
jne 0x4104d2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx - 0x10]
jmp 0x4105a9
mov eax, dword [0x429570]
mov ecx, 0x429570
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x70], eax
mov eax, dword [edi]
sub eax, 0x10
call fcn.00401773
mov edi, eax
add edi, 0x10
push edi
lea eax, [ebp - 0x70]
push str._InternetShortcut__r_nURL_s_r_n
push eax
call fcn.0040382d
mov ebx, dword [ebp - 0x70]
mov eax, dword [ebx - 0xc]
add esp, 0xc
push 0
lea ecx, [ebp - 0x78]
push ecx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
mov dword [ebp - 0x70], eax
je 0x41052d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x80], 0
xor eax, eax
cmp dword [ebp - 0x70], eax
je 0x410547
push 5
push eax
push eax
push dword [ebp - 0x6c]
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [ebp - 0x6c]
push 0x5c
call fcn.004015e9
test eax, eax
pop ecx
jne 0x41055b
or eax, 0xffffffff
jmp 0x41055e
sub eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x74]
add ecx, 0xc
push ecx
lea ecx, [ebp - 0x70]
push ecx
lea esi, [ebp - 0x6c]
call fcn.004014a5
push eax
call fcn.0040caa5
mov eax, dword [ebp - 0x70]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.0040175b
lea eax, [edi - 0x10]
call fcn.0040175b
lea eax, [ebx - 0x10]
call fcn.0040175b
cmp dword [ebp - 0x80], 0
je 0x4105a3
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x6c]
add eax, 0xfffffff0
call fcn.0040175b
pop esi
mov ecx, dword [ebp + 0x1a0]
pop edi
xor ecx, ebp
pop ebx
call fcn.0042254d
add ebp, 0x1a4
leave
ret 4
Function at 0x412d60
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, eax
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x30]
cmp dword [eax - 0xc], 0
jne 0x412d79
mov al, 1
jmp 0x412dbd
and dword [ebp - 0x20], 0
push esi
push edi
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebx + 8]
lea esi, [eax + 0x30]
mov ecx, dword [esi]
call fcn.0040499a
mov ecx, dword [ebp - 0x18]
shr ecx, 0x14
cmp ecx, eax
jl 0x412dae
mov al, 1
jmp 0x412dbb
push esi
push 0xd4
call fcn.00412e40
xor al, al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x412e40
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x50]
push esi
push edi
sub eax, 0x10
call fcn.00401773
add eax, 0x10
push 0x424960
lea edi, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.00404687
mov eax, dword [0x429570]
pop ecx
mov esi, 0x429570
mov ecx, esi
call dword [eax + 0xc]
push dword [ebp + 8]
add eax, 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00401b0b
mov eax, dword [0x429570]
mov ecx, esi
call dword [eax + 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
add eax, 0x10
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp + 8]
push esi
push edi
push eax
call fcn.0040382d
add esp, 0x10
cmp byte [ebx + 0xc], 0
je 0x412ec4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x412ee0
mov eax, dword [ebx]
call fcn.00420d09
mov eax, dword [ebx]
push 0
call fcn.00420c48
push 0x30
push eax
lea eax, [ebp + 8]
push eax
call fcn.00420cb7
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040175b
lea eax, [edi - 0x10]
call fcn.0040175b
lea eax, [esi - 0x10]
call fcn.0040175b
pop edi
pop esi
leave
ret 8

Function at 0x413c7e
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
xor ebx, ebx
mov byte [esi + 0x15], bl
mov byte [esi + 0x14], bl
mov dword [esi + 0xc], eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [esi + 0x18], eax
lea eax, [esp + 4]
push eax
push ebx
push esi
push 0x413cab
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebx
pop ecx
ret
Function at 0x413e7f
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
call fcn.00405581
test eax, eax
je 0x413f09
lea eax, [ebp - 8]
push eax
xor esi, esi
push 0x28
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x413ec0
cmp dword [ebp - 8], esi
je 0x413ebc
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x413f20
lea eax, [ebp - 0x14]
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
push esi
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x413eae
cmp dword [ebp - 8], esi
je 0x413f0e
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x413f0e
call fcn.00413f23
push 0x80040002
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
setne al
pop esi
leave
ret

Function at 0x413f23
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0xb0]
sub esp, 0x130
mov eax, dword [0x429060]
xor eax, ebp
mov dword [ebp + 0xac], eax
call fcn.00405581
test eax, eax
jne 0x413ff0
push ebx
push eax
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x413f67
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x413fef
push edi
lea eax, [ebp - 0x80]
push 0x42972c
push eax
call fcn.0040de61
pop ecx
pop ecx
push 0x49
pop ecx
xor eax, eax
lea edi, [ebp - 0x78]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x7c]
push eax
push ebx
mov dword [ebp - 0x7c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x413fdc
push esi
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x413fcd
push dword [ebp - 0x74]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test esi, esi
je 0x413fcd
push esi
call edi
lea eax, [ebp - 0x7c]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x413f9e
pop esi
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff0
call fcn.0040175b
test ebx, ebx
je 0x413fee
push ebx
call edi
pop edi
pop ebx
mov ecx, dword [ebp + 0xac]
xor ecx, ebp
call fcn.0042254d
add ebp, 0xb0
leave
ret
Function at 0x415718
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
lea eax, [ebp - 0x14]
xor edi, edi
push eax
push dword [esi + 4]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.USER32.dll_GetClientRect]
push 0x419
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 0x74]
call fcn.0041fc19
push dword [eax]
push edi
push 0x172
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x210
push 1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
call fcn.004086df
mov byte [esi + 0x78], 1
pop edi
leave
ret

Function at 0x415c7c
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov byte [eax + 0x68], cl
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x41657f
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, eax
xor ebx, ebx
cmp dword [esi], ebx
jne 0x416596
xor al, al
jmp 0x41664b
mov eax, dword [0x429570]
mov ecx, 0x429570
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0xc]
push dword [0x4293d0]
push eax
call fcn.0040382d
mov esi, dword [esi]
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 4], ebx
push esi
call sub.msi.dll_MsiEnableUIPreview
test eax, eax
je 0x4165e5
cmp dword [ebp - 4], ebx
je 0x41663e
push dword [ebp - 4]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
jmp 0x41663e
push ebx
push dword [ebp - 4]
call sub.msi.dll_MsiViewModify
test eax, eax
jne 0x4165d6
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
je 0x416614
cmp dword [ebp - 8], ebx
je 0x4165d6
push dword [ebp - 8]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
jmp 0x4165d6
push 1
push dword [ebp - 8]
call fcn.00416753
cmp dword [ebp - 8], ebx
mov byte [ebp + 0xb], al
je 0x41662e
push dword [ebp - 8]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 4], ebx
je 0x41663b
push dword [ebp - 4]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov bl, byte [ebp + 0xb]
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040175b
mov al, bl
pop esi
pop ebx
leave
ret 4