joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4813d6
Capabilities:
Get file version info
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x17c
mov eax, dword [0x4b9658]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp edi, ebx
mov esi, edx
je 0x48157a
cmp byte [edi], bl
je 0x48157a
cmp esi, ebx
je 0x48157a
push ebx
push ebx
push 3
push ebx
push 3
push closesocket
push edi
mov byte [esi], bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x4c], eax
je 0x48157a
push ebx
push edi
mov dword [ebp - 0x58], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, ebx
mov dword [ebp - 0x48], eax
mov byte [esi], bl
je 0x4814b7
push eax
call fcn.00464af0
cmp eax, ebx
pop ecx
mov dword [ebp - 0x5c], eax
je 0x4814b7
push eax
push dword [ebp - 0x48]
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4814ae
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x48]
push eax
push 0x4a7468
push dword [ebp - 0x5c]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x54], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4814ae
push esi
call fcn.0046a3a0
mov ecx, dword [ebp - 0x48]
movzx edx, word [ecx + 0xc]
push edx
movzx edx, word [ecx + 0xe]
push edx
movzx edx, word [ecx + 8]
movzx ecx, word [ecx + 0xa]
push edx
push ecx
dec eax
push str._d._d._d._d
push eax
push esi
call fcn.0046804a
add esp, 0x20
mov dword [ebp - 0x58], 1
push dword [ebp - 0x5c]
call fcn.004647ea
pop ecx
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [ebp - 0x50]
push eax
push 0x40
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x4c]
call edi
test eax, eax
je 0x48156c
cmp dword [ebp - 0x50], 0x40
jne 0x48156c
push ebx
push ebx
push dword [ebp - 8]
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x50]
push eax
push 0xf8
lea eax, [ebp - 0x17c]
push eax
push dword [ebp - 0x4c]
call edi
test eax, eax
je 0x48156c
cmp dword [ebp - 0x50], 0xf8
jne 0x48156c
push esi
call fcn.0046a3a0
add esi, eax
mov eax, dword [ebp - 0x174]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x5c], ebx
call fcn.004959fa
push 9
pop ecx
mov esi, eax
lea edi, [ebp - 0x84]
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 0x84]
mov eax, dword [ebp - 0x74]
push dword [ebp - 0x80]
inc eax
push dword [ebp - 0x7c]
push dword [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x70]
add eax, 0x76c
push eax
push str.__04d__02d__02d__02d:_02d:_02d
push 0x77
push dword [ebp - 0x54]
call fcn.0046804a
add esp, 0x2c
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x58]
jmp 0x48157c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call int.00464500
leave
ret
Function at 0x4820bd
Capabilities:
Parse pe header

Disassembly:
push ebp
sub esp, 0x90
lea ebp, [esp - 4]
mov eax, dword [0x4b9658]
xor eax, ebp
mov dword [ebp + 0x90], eax
push 0x118
mov eax, 0x49dd96
call fcn.00475442
mov ebx, dword [ebp + 0x9c]
mov esi, dword [ebp + 0xa0]
mov eax, dword [ebp + 0xa4]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xa8]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp + 0xac]
mov dword [ebp - 0x24], edx
and dword [ebp - 4], 0
mov byte [ebp + 0x40], 0
xor eax, eax
lea edi, [ebp + 0x41]
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 8
pop ecx
xor eax, eax
lea edi, [ebp + 0x48]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x18]
push eax
push 0x40
lea eax, [ebp]
push eax
push esi
push ebx
call edx
test eax, eax
je 0x482145
cmp dword [ebp - 0x18], 0x40
mov byte [ebp - 0x14], 1
je 0x482149
mov byte [ebp - 0x14], 0
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.00482082
cmp word [ebp], 0x5a4d
sete al
mov byte [ebp - 0x14], al
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.00482082
lea eax, [ebp - 0x18]
push eax
mov edi, 0xf8
push edi
lea eax, [ebp - 0x124]
push eax
mov eax, dword [ebp + 0x3c]
add eax, esi
push eax
push ebx
call dword [ebp - 0x24]
test eax, eax
je 0x482193
cmp dword [ebp - 0x18], edi
mov byte [ebp - 0x14], 1
je 0x482197
mov byte [ebp - 0x14], 0
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.00482082
cmp dword [ebp - 0x124], 0x4550
jne 0x4821c8
cmp word [ebp - 0x120], 0x14c
jne 0x4821c8
cmp word [ebp - 0x10c], 0x10b
mov byte [ebp - 0x14], 1
je 0x4821cc
mov byte [ebp - 0x14], 0
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.00482082
mov eax, dword [ebp + 0x3c]
lea eax, [esi + eax + 0xf8]
mov dword [ebp - 0x1c], eax
movzx edi, word [ebp - 0x11e]
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x20], edi
jae 0x482279
lea eax, [ebp - 0x18]
push eax
push 0x28
lea eax, [ebp + 0x68]
push eax
push dword [ebp - 0x1c]
push ebx
call dword [ebp - 0x24]
test eax, eax
je 0x482217
cmp dword [ebp - 0x18], 0x28
mov byte [ebp - 0x14], 1
je 0x48221b
mov byte [ebp - 0x14], 0
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.00482082
add dword [ebp - 0x1c], 0x28
push 0x28
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp + 0x68]
push eax
call fcn.00478741
add esp, 0xc
test eax, eax
je 0x482279
mov ecx, dword [ebp + 0x8c]
mov eax, 0x20000020
and ecx, eax
cmp ecx, eax
jne 0x48226a
mov eax, dword [ebp + 0x74]
add eax, esi
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x78]
add eax, ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
xor eax, eax
inc eax
jmp 0x48227b
inc dword [ebp - 0x20]
jmp 0x4821ef
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x90]
xor ecx, ebp
call int.00464500
add ebp, 0x94
leave
ret
Function at 0x492d47
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4bccc0], 0
push esi
jne 0x492cba
call fcn.00492be5
test eax, eax
je 0x492cfd
mov eax, dword [0x4bccc0]
cmp eax, 1
jne 0x492cdb
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x492cfd
pop esi
ret
push eax
call dword [0x4bccc8]
test eax, eax
jne 0x492d45
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x492d01
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4bccc0]
call dword [0x4bccc8]
mov edi, eax
test edi, edi
je 0x492d28
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x492d44
lea edi, [esi + 0xff0]
push esi
push dword [0x4bccc0]
call dword [0x4bccc4]
add esi, 0x10
cmp esi, edi
jb 0x492d2e
mov eax, esi
pop edi
pop esi
ret
jmp 0x492ca7

Function at 0x492e98
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4b9658]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00492e2d
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00464a50
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x492ee7
cmp dword [ebp - 0x1c], 5
jb 0x492eff
jmp 0x492efb
cmp dword [ebp - 0x10], 1
jne 0x492eff
cmp dword [ebp - 0x1c], 4
ja 0x492efb
jne 0x492eff
cmp dword [ebp - 0x18], 0
jbe 0x492eff
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4a829c
call fcn.0040c910
test eax, eax
jge 0x492f20
mov byte [0x4bba60], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call int.00464500
add ebp, 0x78
leave
ret
Function at 0x4935c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x49ed18
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b9658]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x4bcd64]
test eax, eax
jne 0x4935f2
xor esi, esi
jmp 0x4935fb
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x20], 0
je 0x49363d
cmp dword [esi + 0x14], 0
jne 0x49367f
cmp dword [esi + 0x10], 0
jne 0x493685
push 0x4930e0
push 0x4bcd5c
call fcn.004932e0
mov eax, dword [0x4bcd64]
add esp, 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
mov dword [esp + 0x20], 0xffffffff
je 0x49366b
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x49366b
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp dword [esi + 0x10], 0
je 0x4936c5
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x4936b3
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x10], 0
jne 0x493685
cmp dword [esi + 0x14], 0
je 0x493617
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4936ea
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x49371b
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x49371b
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x49371b
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x14], 0
jne 0x4936cf
jmp 0x493611
Function at 0x494ed0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], 8
jb 0x494edf
mov eax, dword [eax + 4]
jmp 0x494ee2
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x494f7a
push esi
call fcn.00494350
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], esi
mov dword [ecx], eax
pop esi
je 0x494f5f
cmp eax, 3
je 0x494f5f
cmp eax, 0x7b
je 0x494f5f
cmp eax, 0xf
je 0x494f5f
cmp eax, 0x15
je 0x494f5f
cmp eax, 0x57
je 0x494f5f
cmp eax, 0xa1
je 0x494f5f
cmp eax, 0x35
je 0x494f5f
cmp eax, 0x20
jne 0x494f54
mov eax, dword [0x4bcdc0]
mov dword [ecx], eax
mov edx, dword [0x4bcdc4]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 9
ret
mov eax, dword [esp + 4]
mov dword [eax], 0
ret
mov eax, dword [0x4bcdc0]
mov dword [ecx], eax
mov edx, dword [0x4bcdc4]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 1
ret
mov edx, dword [0x4bcdc0]
mov ecx, dword [esp + 0xc]
mov dword [ecx], edx
mov edx, dword [0x4bcdc4]
test al, 0x10
mov dword [ecx + 4], edx
lea eax, [esp + 8]
mov dword [esp + 8], 3
jne 0x494fa7
mov dword [esp + 8], 2
mov ecx, dword [eax]
mov eax, dword [esp + 4]
mov dword [eax], ecx
ret
Function at 0x4024f0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x402553
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x402513
mov ebx, 1
jmp 0x402538
lea edx, [ebp - 8]
mov eax, ebx
call sub.rtl60.bpl__Sysutils_ExtractFileDrive_qqrx17System_AnsiString
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.004024ac
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.kernel32.dll_GetDriveTypeA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40255a
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
ret

Function at 0x4025dc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x114], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
mov eax, dword [ebp - 8]
test eax, eax
je 0x402608
xor edx, edx
mov dword [eax], edx
xor eax, eax
push ebp
push 0x4026a7
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x114]
mov eax, dword [ebp - 4]
call fcn.004024ac
mov edx, dword [ebp - 0x114]
lea eax, [ebp - 4]
call sub.rtl60.bpl__System__LStrLAsg_qqrpvpxv
push 1
call sub.kernel32.dll_SetErrorMode
mov esi, eax
push 0
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push pe_nt_image_headers32
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.kernel32.dll_GetVolumeInformationA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x402680
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x110]
mov ecx, pe_nt_image_headers32
call sub.rtl60.bpl__System__LStrFromArray_qqrr17System_AnsiStringpci
push esi
call sub.kernel32.dll_SetErrorMode
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4026ae
lea eax, [ebp - 0x114]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 4]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret
Function at 0x4070e8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
mov byte [ebp - 5], cl
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x407190
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x5c]
xor ecx, ecx
mov edx, 0x44
call fcn.004015c0
mov dword [ebp - 0x5c], 0x44
mov dword [ebp - 0x30], 1
mov word [ebp - 0x2c], bx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb ebx, ebx
inc ebx
test byte [ebp - 5], bl
je 0x407168
push 0xffffffffffffffff
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407197
lea eax, [ebp - 4]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret

Function at 0x4071a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x407287
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, byte [ebx + 1]
dec al
je 0x407201
dec al
je 0x4071d1
dec al
je 0x40723c
jmp 0x40726a
push 0
mov eax, dword [ebx + 4]
call sub.rtl60.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.user32.dll_FindWindowA
test eax, eax
je 0x40726a
push 0
push 0
push 0x10
push eax
call sub.user32.dll_SendMessageA
push 0x7d0
call sub.kernel32.dll_Sleep
jmp 0x40726a
mov eax, ebx
mov ebx, eax
lea ecx, [ebp - 8]
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.00406f18
push dword [ebp - 8]
push 0x4072a0
push dword [ebx + 8]
lea eax, [ebp - 4]
mov edx, 3
call sub.rtl60.bpl__System__LStrCatN_qqrv
mov eax, dword [ebp - 4]
mov cl, byte [ebx + 0xc]
mov edx, 5
call fcn.004070e8
jmp 0x40726a
push 4
push 0
push 0
lea ecx, [ebp - 0xc]
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.00406f18
mov eax, dword [ebp - 0xc]
call sub.rtl60.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
push 0
mov eax, dword [sym.imp.vcl60.bpl__Forms_Application]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_ShellExecuteA
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40728e
lea eax, [ebp - 0xc]
mov edx, 3
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
ret
Function at 0x40754c
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4076c4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [edi]
call sub.rtl60.bpl__System__LStrToPChar_qqrx17System_AnsiString
mov dl, 0x2a
call sub.rtl60.bpl__Sysutils_StrScan_qqrpxcc
test eax, eax
jne 0x40758f
mov eax, dword [edi]
call sub.rtl60.bpl__System__LStrToPChar_qqrx17System_AnsiString
mov dl, 0x3f
call sub.rtl60.bpl__Sysutils_StrScan_qqrpxcc
test eax, eax
je 0x40759f
mov edx, edi
mov eax, esi
call fcn.004072f8
mov ebx, eax
jmp 0x4076a9
mov bl, 1
lea eax, [ebp - 4]
mov ecx, dword [edi]
mov edx, dword [esi + 0x40]
call sub.rtl60.bpl__System__LStrCat3_qqrv
lea ecx, [ebp - 8]
mov edx, dword [edi + 8]
mov eax, esi
call fcn.00406f18
cmp byte [edi + 0xc], 0
je 0x4075db
cmp byte [edi + 0xc], 1
jne 0x4076a9
mov eax, dword [ebp - 8]
call sub.rtl60.bpl__Sysutils_FileExists_qqrx17System_AnsiString
test al, al
je 0x4076a9
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 8]
call sub.rtl60.bpl__Sysutils_ExtractFileDir_qqrx17System_AnsiString
cmp dword [ebp - 0xc], 0
je 0x407600
mov eax, dword [ebp - 0xc]
call sub.rtl60.bpl__Sysutils_DirectoryExists_qqrx17System_AnsiString
test al, al
jne 0x407600
mov eax, dword [ebp - 0xc]
call sub.rtl60.bpl__Sysutils_ForceDirectories_qqr17System_AnsiString
mov eax, dword [ebp - 8]
call sub.rtl60.bpl__Sysutils_FileExists_qqrx17System_AnsiString
test al, al
je 0x40761c
push 0x20
mov eax, dword [ebp - 8]
call sub.rtl60.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.kernel32.dll_SetFileAttributesA
push 0
mov eax, dword [ebp - 8]
call sub.rtl60.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x40766b
push 0x4076dc
push dword [ebp - 8]
push 0x4076e8
push 0x4076f4
lea eax, [ebp - 0x10]
mov edx, 4
call sub.rtl60.bpl__System__LStrCatN_qqrv
mov edx, dword [ebp - 0x10]
mov eax, dword [esi + 0x68]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x407695
push 0x4076dc
push dword [ebp - 8]
push 0x4076e8
push 0x407704
lea eax, [ebp - 0x14]
mov edx, 4
call sub.rtl60.bpl__System__LStrCatN_qqrv
mov edx, dword [ebp - 0x14]
mov eax, dword [esi + 0x68]
mov ecx, dword [eax]
call dword [ecx + 0x38]
test bl, bl
je 0x4076a9
cmp byte [edi + 0xd], 0
je 0x4076a9
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.00407044
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4076cb
lea eax, [ebp - 0x14]
mov edx, 5
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
ret
Function at 0x412a50
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47732b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0046b6f0
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x412ad2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004692da
mov eax, dword [eax]
push 0x60e1f4
push eax
call fcn.0045b5e4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046b97b
test bl, bl
je 0x412ad2
push 0x60e1f4
lea ecx, [esp + 0xc]
call fcn.0046bd0b
push 0x611d88
lea ecx, [esp + 0xc]
call fcn.0046bd0b
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x412b0e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046b97b
jmp 0x412bd9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x412b92
lea edx, [esp + 0x7c]
push 0x611d84
push edx
call fcn.0045b5e4
add esp, 8
test eax, eax
je 0x412b92
lea eax, [esp + 0x7c]
push 0x611d80
push eax
call fcn.0045b5e4
add esp, 8
test eax, eax
je 0x412b92
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x412b22
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0046b97b
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x4133d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x413432
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x413440
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4773ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x618828]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x413578
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4134a6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046b97b
xor eax, eax
jmp 0x4135ef
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046bab8
push esi
lea ecx, [esp + 0xc]
call fcn.0046bd47
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4135cd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.004133d0
test eax, eax
jne 0x4135cd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.004133d0
test eax, eax
jne 0x4135cd
lea eax, [esp + 0x14]
push 0x611d9c
push eax
call fcn.0045c620
mov esi, eax
add esp, 8
test esi, esi
jne 0x4135ac
lea ecx, [esp + 0x14]
push 0x611d98
push ecx
call fcn.0045c5a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4135ac
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4135af
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046ba68
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4134be
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046b97b
xor eax, eax
jmp 0x4135ef
mov byte [esi], 0
push 0x611d94
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0046b97b
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4