joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e0a9
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x36c
push ebx
mov ebx, dword [ebp + 0x7c]
push esi
add ebx, 0x28
push edi
mov esi, ebx
call fcn.00410495
xor edi, edi
push edi
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
push 0x124
mov dword [ebp + 0x70], eax
lea eax, [ebp - 0x1ec]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1f0]
push eax
push dword [ebp + 0x70]
mov dword [ebp - 0x1f0], 0x128
call sub.KERNEL32.DLL_Process32First
jmp 0x40e241
mov eax, dword [ebp - 0x1e8]
mov ecx, dword [ebp - 0x1d8]
push eax
push edi
push 0x410
mov byte [ebp - 0xc4], 0
mov dword [ebp + 0x48], edi
mov dword [ebp + 0x4c], edi
mov dword [ebp + 0x50], edi
mov dword [ebp + 0x54], edi
mov dword [ebp + 0x58], edi
mov dword [ebp + 0x5c], edi
mov dword [ebp + 0x60], edi
mov dword [ebp + 0x64], edi
mov dword [ebp - 0xc8], eax
mov dword [ebp + 0x44], ecx
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
cmp eax, edi
mov dword [ebp + 0x6c], eax
je 0x40e1f3
mov esi, 0x104
push esi
lea eax, [ebp - 0x2f7]
push edi
push eax
mov byte [ebp - 0x2f8], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2f8]
push eax
push dword [ebp + 0x6c]
mov eax, dword [ebp + 0x7c]
call fcn.0040e26b
cmp byte [ebp - 0xc4], 0
jne 0x40e1d7
cmp dword [0x416a78], edi
mov dword [ebp + 0x68], esi
jne 0x40e1bd
push str.kernel32.dll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
cmp eax, edi
je 0x40e1bd
push str.QueryFullProcessImageNameA
push eax
mov dword [0x416a78], 1
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x416a7c], eax
mov eax, dword [0x416a7c]
cmp eax, edi
je 0x40e1d7
lea ecx, [ebp + 0x68]
push ecx
lea ecx, [ebp - 0x2f8]
push ecx
push edi
push dword [ebp + 0x6c]
call eax
lea eax, [ebp - 0xc4]
push eax
lea esi, [ebp - 0x2f8]
call fcn.0040d980
pop ecx
push dword [ebp + 0x6c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, dword [ebx + 0xc]
cmp esi, edi
jl 0x40e241
cmp esi, 0xffffffff
mov eax, dword [ebx + 8]
jne 0x40e20b
push dword [ebx]
call sub.msvcrt.dll_free
jmp 0x40e21e
push eax
push 0x130
lea eax, [ebx + 4]
mov edx, esi
mov edi, ebx
call fcn.0040221e
pop ecx
lea eax, [esi + 1]
cmp dword [ebx + 0xc], eax
pop ecx
jge 0x40e22a
mov dword [ebx + 0xc], eax
mov edi, esi
imul edi, edi, 0x130
add edi, dword [ebx]
push 0x4c
pop ecx
lea esi, [ebp - 0xc8]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
lea eax, [ebp - 0x1f0]
push eax
push dword [ebp + 0x70]
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x40e104
push dword [ebp + 0x70]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4
Function at 0x40e293
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi], 0
jne 0x40e2e8
push edi
push str.psapi.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.GetModuleBaseNameA
push eax
mov dword [esi], eax
call edi
push str.EnumProcessModules
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.GetModuleFileNameExA
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.EnumProcesses
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.GetModuleInformation
push dword [esi]
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0xc], eax
pop edi
ret

Function at 0x40e35a
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [esi]
test eax, eax
je 0x40e36a
push eax
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
and dword [esi], 0
push str.rasapi32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test eax, eax
mov dword [esi], eax
je 0x40e3ca
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.RasSetEntryDialParamsA
push eax
call edi
push str.RasEnumConnectionsA
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.RasGetConnectStatusA
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.RasHangUpA
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.RasGetEntryDialParamsA
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.RasDialA
push dword [esi]
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
pop edi
xor eax, eax
cmp dword [esi], eax
setne al
ret

Function at 0x40e683
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
call fcn.0040e5d0
add esp, 0xc
test eax, eax
jne 0x40e6ca
mov eax, dword [ebp + 0x14]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40e6c1
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x40e6cf
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
call fcn.0040e5d0
add esp, 0xc
test eax, eax
jne 0x40e70f
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 3
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40e706
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x40e714
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x2001f
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
call fcn.0040e5b7
add esp, 0x10
test eax, eax
jne 0x40e750
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x40e747
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x40e755
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 0x20019
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
call fcn.0040e5b7
add esp, 0x10
test eax, eax
jne 0x40e7a6
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push dword [ebp - 8]
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
push dword [ebp - 8]
mov esi, eax
neg esi
sbb esi, esi
not esi
and esi, dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x40eb11
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
mov esi, edi
xor ebx, ebx
call fcn.0040e8b9
test eax, eax
jne 0x40eb2d
push 5
push str.regedit.exe
call dword [sym.imp.KERNEL32.DLL_WinExec]
call fcn.0040e8b9
test eax, eax
je 0x40eb90
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x20000000
je 0x40eb51
push 9
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, dword [esp + 0xc]
push edi
call fcn.0040ea02
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, edi
call fcn.0040e7ab
test eax, eax
je 0x40eb85
push dword [edi + 8]
mov ebx, dword [esp + 0x14]
or eax, 0xffffffff
call fcn.0040e910
push dword [edi + 8]
call fcn.0040e958
xor ebx, ebx
inc ebx
pop esi
mov eax, ebx
pop ebx
ret 8
Function at 0x40ef17
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
call fcn.0040ee10
xor ebx, ebx
cmp dword [0x4163bc], ebx
je 0x40ef59
call fcn.004023b4
cmp dword [eax + 0x10], 1
jne 0x40ef4a
cmp esi, 0x19
je 0x40ef59
cmp esi, 0x17
je 0x40ef59
cmp esi, 0x16
je 0x40ef59
push ebx
push esi
push edi
push ebx
call dword [0x4163bc]
jmp 0x40effb
push 0x103
lea eax, [ebp - 0x127]
push ebx
push eax
mov byte [ebp - 0x128], bl
call sub.msvcrt.dll_memset
add esp, 0xc
cmp esi, 0x19
je 0x40ef83
cmp esi, 0x17
je 0x40ef83
cmp esi, 0x16
jne 0x40ef99
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000002
jmp 0x40efad
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40efe5
lea ecx, [ebp - 0x24]
mov eax, esi
call fcn.0040ee55
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
mov eax, 0x104
call fcn.0040e5f8
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x128]
push eax
push edi
call sub.msvcrt.dll_strcpy
xor eax, eax
cmp byte [edi], bl
pop ecx
pop ecx
setne al
pop ebx
leave
ret
Function at 0x4106c2
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x411400
call fcn.004108b0
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4106ff
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4106ff
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x410717
cmp eax, 0x20b
je 0x410704
mov dword [ebp - 0x1c], ebx
jmp 0x41072b
cmp dword [ecx + 0x84], 0xe
jbe 0x4106ff
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x410725
cmp dword [ecx + 0x74], 0xe
jbe 0x4106ff
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x416a8c], 0xffffffff
or dword [0x416a90], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x41603c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x416038]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x416a88], eax
call fcn.004108ac
cmp dword [section..data], ebx
jne 0x410786
push fcn.004108ac
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0041089a
push 0x4113d0
push 0x4113cc
call sub.msvcrt.dll__initterm
mov eax, dword [0x416034]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x416030]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x4113c8
push 0x4113b4
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x41081c
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x4107f0
cmp al, 0x22
jne 0x4107e2
cmp byte [esi], 0x22
jne 0x4107f9
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x410803
cmp al, 0x20
jbe 0x4107f5
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
test byte [ebp - 0x4c], 1
je 0x410827
movzx eax, word [ebp - 0x48]
jmp 0x41082a
cmp byte [esi], 0x20
jbe 0x4107f9
inc esi
mov dword [ebp - 0x34], esi
jmp 0x41081c
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x410847
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x41087c
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.004108e9
ret
Function at 0x48eb9c
Capabilities:
Delete file

Disassembly:
push ebp
sub esp, 0xa8
lea ebp, [esp - 4]
mov eax, dword [0x5651c0]
xor eax, ebp
mov dword [ebp + 0xa8], eax
push 8
mov eax, 0x50a228
call fcn.004d2c19
mov esi, edx
mov edi, ecx
mov dword [ebp + 0x9c], 0x52eb68
mov dword [ebp + 0xa0], str.http:__www.yahoo.com
mov dword [ebp + 0xa4], str.http:__www.example.com
call fcn.00406d01
push eax
lea ecx, [ebp - 0x14]
call fcn.00406b29
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
push str.tin9999.tmp
call fcn.00409419
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.00470120
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00406df6
push esi
push edi
lea ecx, [ebp]
call fcn.00496c56
xor ebx, ebx
mov dword [ebp + 0x78], ebx
mov edi, ebx
push dword [ebp + edi*4 + 0x9c]
lea ecx, [ebp - 0x10]
call fcn.00409419
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp]
call fcn.004971c9
mov esi, eax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00406df6
test esi, esi
je 0x48ec68
inc edi
cmp edi, 3
jl 0x48ec2c
jmp 0x48ec6a
mov bl, 1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp]
call fcn.0047c254
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00406df6
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa8]
xor ecx, ebp
call fcn.004d207d
lea esp, [ebp + 0xac]
pop ebp
ret
Function at 0x493896
Capabilities:
Reference sql statements

Disassembly:
push 0xc
mov eax, 0x50a77e
call fcn.004d2c19
mov edi, ecx
cmp dword [edi], 0
jne 0x4938b0
xor al, al
jmp 0x49394b
call fcn.00406d01
push eax
lea ecx, [ebp - 0x18]
call fcn.00406b29
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0x18]
push str.SELECT__Value__FROM__Property__WHERE__Property____s
push eax
call fcn.00457385
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
add esp, 0xc
xor ebx, ebx
mov dword [ebp - 0x10], ebx
push eax
push esi
push dword [edi]
call dword [sym.imp.msi.dll_MsiEnumClientsA]
mov edi, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
test eax, eax
jne 0x493932
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x493932
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
test eax, eax
jne 0x493927
push dword [ebp + 0xc]
push ecx
push dword [ebp - 0x14]
call fcn.00493a5f
mov bl, al
cmp dword [ebp - 0x14], 0
je 0x493932
push dword [ebp - 0x14]
call edi
cmp dword [ebp - 0x10], 0
je 0x49393d
push dword [ebp - 0x10]
call edi
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00406df6
mov al, bl
call fcn.004d2be2
ret 8
Function at 0x4a2863
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x4a2877
xor al, al
jmp 0x4a28e8
push ebp
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
lea ebp, [eax + eax]
lea eax, [ebp + 2]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov dword [esi], edi
test edi, edi
jne 0x4a28a3
xor al, al
jmp 0x4a28e6
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
jne 0x4a28b5
xor al, al
jmp 0x4a28e5
mov eax, dword [esp + 0x14]
push ebp
push dword [eax]
push ebx
call fcn.004d3390
add esp, 0xc
xor eax, eax
mov word [ebx + ebp], ax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esi]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov al, 1
pop ebx
pop edi
pop ebp
pop esi
ret 4

Function at 0x4a4efc
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50c16b
mov eax, dword fs:[0]
push eax
push ecx
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5651c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 5
call fcn.004a4fc8
mov esi, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
xor ebx, ebx
cmp dword [edi + 0x48], ebx
je 0x4a4f4e
cmp dword [edi + 0x4c], ebx
je 0x4a4f4e
push dword [edi + 0x48]
call esi
mov dword [edi + 0x48], ebx
mov byte [ebp - 4], 4
lea ecx, [edi + 0x58]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 4
call fcn.0040b976
mov byte [ebp - 4], 3
cmp dword [edi + 0x50], 0
je 0x4a4f70
push dword [edi + 0x50]
call esi
mov byte [ebp - 4], 2
lea esi, [edi + 0x30]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 7
lea ecx, [esi + 0xc]
call fcn.004a65dd
mov byte [ebp - 4], 2
mov ecx, esi
call fcn.004a66ec
mov byte [ebp - 4], 1
lea ecx, [edi + 0x24]
call fcn.00465130
mov byte [ebp - 4], bl
lea ecx, [edi + 0x18]
call fcn.00408e56
or dword [ebp - 4], 0xffffffff
mov ecx, edi
push ebx
push 1
call fcn.00404a9e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a5356
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x50c27d
call fcn.004d2c19
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x18], esi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4a537f
mov eax, dword [eax]
push ecx
push 0x80
push 2
push ecx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 0x20]
call fcn.00422c5e
push ebx
push esi
call dword [sym.imp.msi.dll_MsiRecordGetStringW]
push 0xc800
lea ecx, [ebp - 0x2c]
mov dword [ebp + 8], eax
xor edi, edi
call fcn.0046e650
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0xc800
push eax
push dword [ebp - 0x2c]
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.msi.dll_MsiRecordSetStringA]
test eax, eax
jne 0x4a53f7
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
add edi, dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jne 0x4a53c0
cmp dword [ebp + 8], edi
sete bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0046e6f0
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4a541c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x20], 0
mov al, bl
call fcn.004d2be2
ret

Function at 0x4abf26
Capabilities:
Create pipe

Disassembly:
push 0x1c
mov eax, 0x4f7ad8
call fcn.004d2c4d
mov esi, ecx
cmp byte [esi + 0x1c], 0
mov ecx, dword [ebp + 0xc]
je 0x4abf44
mov al, 1
jmp 0x4abfd5
mov al, byte [ebp + 8]
push ecx
lea ecx, [esi + 0x20]
mov byte [esi + 0x1d], al
call fcn.0040423c
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004ac461
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp byte [esi + 0x1d], bl
je 0x4abf98
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
mov ecx, 0x400
push 0x1388
push ecx
push ecx
push 0xff
push 6
push 3
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x38], eax
cmp byte [esi + 0x1d], bl
jne 0x4abfbd
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
push ebx
push 3
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x38], eax
cmp eax, 0xffffffff
je 0x4abfc3
mov byte [esi + 0x1c], 1
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push 0
push 1
call fcn.00404a9e
mov al, bl
call fcn.004d2bf7
ret 8
Function at 0x4c9540
Capabilities:
Delete directory

Disassembly:
push 0xc
mov eax, 0x51401d
call fcn.004d2c19
mov edi, edx
mov esi, ecx
call fcn.00406d01
push eax
lea ecx, [ebp - 0x10]
call fcn.00406b29
mov dword [ebp - 4], 1
mov eax, dword [edi]
push 0x5c
pop ebx
mov eax, dword [eax - 0xc]
test eax, eax
je 0x4c95af
dec eax
mov ecx, edi
push eax
call fcn.0046ddb0
cmp ax, bx
jne 0x4c95af
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax - 0xc]
dec eax
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00444ed9
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
push eax
call fcn.004434b9
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00406df6
jmp 0x4c95b8
push edi
lea ecx, [ebp - 0x10]
call fcn.004434b9
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi]
mov eax, dword [eax - 0xc]
cmp eax, dword [ecx - 0xc]
jge 0x4c9616
push ebx
push ecx
call fcn.004d5852
pop ecx
pop ecx
test eax, eax
jne 0x4c95d7
or eax, 0xffffffff
jmp 0x4c95db
sub eax, dword [esi]
sar eax, 1
push eax
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.00444ed9
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x4c9607
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x14]
call fcn.004c9540
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00406df6
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00406df6
call fcn.004d2be2
ret

Function at 0x4c962b
Capabilities:
Delete file

Disassembly:
push 8
mov eax, 0x514060
call fcn.004d2c19
mov edi, edx
mov esi, ecx
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x4c96be
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00406d01
push eax
lea ecx, [ebp - 0x10]
call fcn.00406b29
mov dword [ebp - 4], 1
push 0x5c
push dword [esi]
call fcn.004d5852
pop ecx
pop ecx
test eax, eax
je 0x4c969f
sub eax, dword [esi]
sar eax, 1
cmp eax, 0xffffffff
je 0x4c969f
push eax
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.00444ed9
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
push eax
call fcn.004434b9
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00406df6
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
je 0x4c96b2
mov edx, edi
lea ecx, [ebp - 0x10]
call fcn.004c9540
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00406df6
call fcn.004d2be2
ret

Function at 0x4ca8d0
Capabilities:
Hash data with md5

Disassembly:
mov byte [ecx + 0x68], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x4ce0e2
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x5144b2
call fcn.004d2c4d
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x4ce1ff
cmp byte [ebx + 0x3e], 0
je 0x4ce1ff
mov eax, dword [ebx]
mov edi, 0xffff
push edi
mov esi, dword [eax + 0xc]
mov ecx, esi
call fcn.004d2bdc
mov ecx, ebx
call esi
movzx eax, ax
cmp di, ax
sete al
test al, al
je 0x4ce12e
xor al, al
jmp 0x4ce201
xor eax, eax
mov dword [ebp - 0x14], 0xf
push eax
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.0044ef07
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov edx, ecx
cmp eax, 0x10
jae 0x4ce15e
lea edx, [ebp - 0x28]
mov ecx, edx
mov edi, dword [ebx + 0x38]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, edx
mov esi, dword [edi]
push eax
push ecx
lea eax, [ebx + 0x40]
mov ecx, dword [esi + 0x20]
push eax
call fcn.004d2bdc
mov ecx, edi
call dword [esi + 0x20]
sub eax, 0
je 0x4ce193
sub eax, 1
je 0x4ce197
dec eax
sub eax, 1
je 0x4ce1ed
xor bl, bl
jmp 0x4ce1ef
mov byte [ebx + 0x3e], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov edx, ecx
cmp eax, 0x10
jae 0x4ce1a7
lea edx, [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
sub esi, edx
je 0x4ce1cf
cmp eax, 0x10
jae 0x4ce1b6
lea ecx, [ebp - 0x28]
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.004e05fd
add esp, 0x10
cmp esi, eax
jne 0x4ce18f
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp byte [ebx + 0x3e], 0
je 0x4ce1ed
test esi, esi
jne 0x4ce152
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.004042c5
jmp 0x4ce14c
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004046a8
mov al, bl
jmp 0x4ce201
mov al, 1
call fcn.004d2bf7
ret

Function at 0x4e8d26
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004e89e9

Function at 0x4e8d31
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004e8b6a