joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44cda8
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__UStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x44ce70
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00431f34
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call sub.rtl160.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
cmp dword [ebp - 4], 0
je 0x44ce53
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__UStrLen_qqrx20System_UnicodeString
mov edx, dword [ebp - 4]
cmp word [edx + eax*2 - 2], 0x5c
jne 0x44ce13
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__UStrLen_qqrx20System_UnicodeString
mov edx, eax
lea eax, [ebp - 4]
mov ecx, 1
call sub.rtl160.bpl__System__UStrDelete_qqrr20System_UnicodeStringii
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x44ce4f
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0044cda8
pop ecx
test al, al
je 0x44ce4b
push 0
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x44ce4f
xor ebx, ebx
jmp 0x44ce55
mov bl, 1
jmp 0x44ce55
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44ce77
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl160.bpl__System__UStrArrayClr_qqrpvi
ret
Function at 0x457d14
Capabilities:
Create pipe
Create thread

Disassembly:
push 0
push 0
push 0x535de0
push 0x535ddc
call sub.kernel32.dll_CreatePipe
test eax, eax
je 0x457d6c
push 0x535dd4
push 0
push 0
push 0x457cb8
push 0
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x535dd8], eax
cmp dword [0x535dd8], 0
je 0x457d6c
mov edx, 0x457d7c
mov eax, dword [0x535dd4]
call fcn.00433234
push 2
mov eax, dword [0x535dd8]
push eax
call sub.kernel32.dll_SetThreadPriority
ret

Function at 0x457da0
Capabilities:
Resume thread
Terminate thread
Write file on windows

Disassembly:
add esp, 0xffffffc4
cmp dword [0x535dd4], 0xffffffff
je 0x457e5d
mov eax, dword [0x535dd8]
push eax
call sub.kernel32.dll_ResumeThread
xor eax, eax
call fcn.004336f0
test al, al
jne 0x457e0a
lea eax, [esp + 4]
mov edx, 0x38
call fcn.00403694
push 0
lea eax, [esp + 4]
push eax
push 0x38
lea eax, [esp + 0x10]
push eax
mov eax, dword [0x535de0]
push eax
call sub.kernel32.dll_WriteFile
mov eax, dword [0x535de0]
push eax
call sub.kernel32.dll_CloseHandle
push 0x1f4
mov eax, dword [0x535dd8]
push eax
call sub.kernel32.dll_WaitForSingleObject
jmp 0x457e15
mov eax, dword [0x535de0]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x535ddc]
push eax
call sub.kernel32.dll_CloseHandle
push 0x32
mov eax, dword [0x535dd8]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
je 0x457e3e
push 0
mov eax, dword [0x535dd8]
push eax
call sub.kernel32.dll_TerminateThread
mov eax, dword [0x535dd8]
push eax
call sub.kernel32.dll_CloseHandle
push 0
push 0
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [0x535dd4]
call fcn.00432f0c
add esp, 0x3c
ret
Function at 0x458c84
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
push 0x1001
push 0x800
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x458cbc
mov eax, ebx
mov edx, esp
mov ecx, 0x105
push 0
call sub.rtl160.bpl__System__LStrFromArray_qqrr27System__AnsiStringT_us_i0__pcius
jmp 0x458cc3
mov eax, ebx
call sub.rtl160.bpl__System__LStrClr_qqrpv
add esp, 0x108
pop ebx
ret

Function at 0x458fcc
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
xor edx, edx
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x68], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4590c6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4590d4
push 0x459100
call sub.kernel32.dll_GetModuleHandleW_1
push eax
call fcn.00402f44
test eax, eax
je 0x459013
mov dword [ebp - 0x60], 0x40
lea edx, [ebp - 0x60]
push edx
call eax
jmp 0x459039
mov dword [ebp - 0x20], 0x20
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [ebp - 0x14]
xor edx, edx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
push 0
push 0x100000
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
add eax, 0x80000
adc edx, 0
call sub.rtl160.bpl__System___lldiv_qqrv
push edx
push eax
lea ecx, [ebp - 0x64]
mov dl, 0x30
mov eax, 1
call fcn.0040b9d4
push dword [ebp - 0x64]
push 0x459128
push 0
push 0x100000
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
add eax, 0x80000
adc edx, 0
call sub.rtl160.bpl__System___lldiv_qqrv
push edx
push eax
lea ecx, [ebp - 0x68]
mov dl, 0x30
mov eax, 1
call fcn.0040b9d4
push dword [ebp - 0x68]
push 0x459138
mov eax, ebx
mov edx, 4
call sub.rtl160.bpl__System__LStrCatN_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4590cd
lea eax, [ebp - 0x68]
mov edx, 2
call sub.rtl160.bpl__System__LStrArrayClr_qqrpvi
ret
Function at 0x45948c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov ebx, ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4595cb
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
lea eax, [ebp - 4]
call sub.rtl160.bpl__System__LStrClr_qqrpv
xor eax, eax
push ebp
push 0x4595a6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 4]
mov ecx, ebx
mov edx, esi
call sub.rtl160.bpl__System__LStrFromPCharLen_qqrr27System__AnsiStringT_us_i0__pcius
push 0
mov edx, edi
lea eax, [ebp - 8]
mov ecx, ebx
call sub.rtl160.bpl__System__LStrFromPCharLen_qqrr27System__AnsiStringT_us_i0__pcius
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
cmp ebx, eax
jne 0x45959c
mov eax, dword [ebp - 8]
call sub.rtl160.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
cmp ebx, eax
jne 0x45959c
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call sub.rtl160.bpl__System__LStrEqual_qqrv
je 0x45959c
lea eax, [ebp - 0x10]
push eax
push 0x40
push ebx
push esi
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x45959c
mov edx, esi
mov eax, edi
mov ecx, ebx
call sub.rtl160.bpl__System_Move_qqrpxvpvi
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
push ebx
push esi
call sub.kernel32.dll_VirtualProtect
mov eax, dword [0x53be60]
call sub.rtl160.bpl__System__DynArrayLength_qqrpxv
mov ebx, eax
lea eax, [ebx + 1]
push eax
mov eax, 0x53be60
mov ecx, 1
mov edx, dword [0x459460]
call sub.rtl160.bpl__System__DynArraySetLength_qqrv
add esp, 4
lea edi, [ebx + ebx*2]
mov eax, dword [0x53be60]
mov dword [eax + edi*4], esi
mov eax, dword [0x53be60]
lea eax, [eax + edi*4 + 4]
mov edx, dword [ebp - 4]
call sub.rtl160.bpl__System__LStrAsg_qqrr27System__AnsiStringT_us_i0__x27System__AnsiStringT_us_i0__
mov eax, dword [0x53be60]
lea eax, [eax + edi*4 + 8]
mov edx, dword [ebp - 8]
call sub.rtl160.bpl__System__LStrAsg_qqrr27System__AnsiStringT_us_i0__x27System__AnsiStringT_us_i0__
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4595b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4595d2
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl160.bpl__System__LStrArrayClr_qqrpvi
ret
Function at 0x4595e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4596fb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x53be60]
call sub.rtl160.bpl__System__DynArrayHigh_qqrpxv
test eax, eax
jl 0x4596d6
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
lea eax, [eax + eax*2]
mov edx, dword [0x53be60]
lea ebx, [edx + eax*4]
xor eax, eax
push ebp
push 0x4596c0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 8]
call sub.rtl160.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
push eax
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x4596b6
push 0
mov eax, dword [ebx + 8]
call sub.rtl160.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
mov ecx, eax
mov edx, dword [ebx]
lea eax, [ebp - 4]
call sub.rtl160.bpl__System__LStrFromPCharLen_qqrr27System__AnsiStringT_us_i0__pcius
mov eax, dword [ebp - 4]
mov edx, dword [ebx + 8]
call sub.rtl160.bpl__System__LStrEqual_qqrv
jne 0x4596b6
lea eax, [ebp - 0xc]
push eax
push 0x40
mov eax, dword [ebx + 4]
call sub.rtl160.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
push eax
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4596b6
mov eax, dword [ebx + 4]
call sub.rtl160.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
mov ecx, eax
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
call sub.rtl160.bpl__System_Move_qqrpxvpvi
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebx + 4]
call sub.rtl160.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
push eax
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_VirtualProtect
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4596ca
inc dword [ebp - 8]
dec dword [ebp - 0x10]
jne 0x459619
push 0
push 0
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459702
lea eax, [ebp - 4]
call sub.rtl160.bpl__System__LStrClr_qqrpv
ret
Function at 0x45c6ec
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
call sub.kernel32.dll_GetCurrentThreadId
cmp esi, eax
je 0x45c716
push edi
call sub.kernel32.dll_SuspendThread
mov esi, eax
cmp esi, 0xffffffff
je 0x45c716
push edi
call sub.kernel32.dll_ResumeThread
test esi, esi
setg bl
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4608f8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__LStrAddRef_qqrpv
mov eax, dword [ebp - 8]
call sub.rtl160.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x460a21
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [edi], 0
jne 0x4609f4
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
call sub.kernel32.dll_GetModuleHandleA
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.0040eeec
mov dword [edi], eax
test esi, esi
je 0x460968
cmp word [esi], 0x25ff
jne 0x460968
mov eax, esi
add eax, 2
mov eax, dword [eax]
mov ebx, dword [eax]
jmp 0x46096a
xor ebx, ebx
push 0
call sub.kernel32.dll_GetModuleHandleW_1
cmp eax, dword [0x537004]
je 0x460982
cmp byte [0x53559c], 0
je 0x460999
lea eax, [ebp - 0x14]
call fcn.00432b4c
mov eax, dword [ebp - 0x14]
mov edx, dword [edi]
mov ecx, dword [ebp + 8]
call fcn.00432e6c
jmp 0x4609a8
mov edx, dword [edi]
mov ecx, dword [ebp + 8]
mov eax, dword [0x537004]
call fcn.00432dd4
test ebx, ebx
je 0x4609b7
mov eax, esi
add eax, 2
mov eax, dword [eax]
cmp ebx, dword [eax]
je 0x4609bb
xor eax, eax
jmp 0x4609bd
mov al, 1
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x4609f8
add esi, 2
mov ebx, dword [esi]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4609f8
mov eax, dword [ebp + 8]
mov dword [ebx], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
jmp 0x4609f8
mov byte [ebp - 9], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460a28
lea eax, [ebp - 0x14]
mov edx, dword [0x432b1c]
call sub.rtl160.bpl__System__DynArrayClear_qqrrpvpv
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl160.bpl__System__LStrArrayClr_qqrpvi
ret
Function at 0x460a38
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x460b0d
push dword fs:[eax]
mov dword fs:[eax], esp
test edi, edi
je 0x460af1
test esi, esi
je 0x460a79
cmp word [esi], 0x25ff
jne 0x460a79
mov eax, esi
add eax, 2
mov eax, dword [eax]
mov ebx, dword [eax]
jmp 0x460a7b
xor ebx, ebx
push 0
call sub.kernel32.dll_GetModuleHandleW_1
cmp eax, dword [0x537004]
je 0x460a93
cmp byte [0x53559c], 0
je 0x460aaa
lea eax, [ebp - 0xc]
call fcn.00432b4c
mov eax, dword [ebp - 0xc]
mov ecx, edi
mov edx, dword [ebp - 4]
call fcn.00432e6c
jmp 0x460ab9
mov ecx, edi
mov edx, dword [ebp - 4]
mov eax, dword [0x537004]
call fcn.00432dd4
test ebx, ebx
je 0x460af1
mov eax, esi
add eax, 2
mov eax, dword [eax]
cmp ebx, dword [eax]
jne 0x460af1
add esi, 2
mov ebx, dword [esi]
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x460af1
mov dword [ebx], edi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460b14
lea eax, [ebp - 0xc]
mov edx, dword [0x432b1c]
call sub.rtl160.bpl__System__DynArrayClear_qqrrpvpv
ret
Function at 0x461164
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
mov esi, dword [ebp + 0x20]
xor eax, eax
push ebp
push 0x4611ff
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov eax, 2
call fcn.00460cc0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp - 8]
push eax
push 0x460b5c
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_CreateRemoteThread
mov ebx, eax
test esi, esi
je 0x4611cb
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
test ebx, ebx
je 0x4611e9
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetCurrentThreadId
push eax
xor ecx, ecx
mov edx, ebx
mov eax, dword [ebp - 0x10]
call fcn.00432f0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461206
lea eax, [ebp - 4]
call sub.rtl160.bpl__System__LStrClr_qqrpv
ret

Function at 0x461310
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
push edi
mov dword [ebp - 0x44], ecx
mov edi, edx
mov ebx, eax
lea eax, [ebp - 0x40]
mov edx, dword [0x40ff94]
call sub.rtl160.bpl__System__InitializeRecord_qqrpvt1
xor eax, eax
push ebp
push 0x4613d0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x45], 0
lea edx, [ebp - 0x40]
mov eax, ebx
call fcn.00415454
cmp byte [ebp - 0x40], 0
je 0x4613b4
mov eax, dword [ebp - 0x20]
call sub.rtl160.bpl__System__DynArrayHigh_qqrpxv
test eax, eax
jl 0x4613b4
inc eax
xor esi, esi
mov edx, esi
add edx, edx
add edx, edx
add edx, edx
sub edx, esi
mov ecx, dword [ebp - 0x20]
lea ebx, [ecx + edx*4]
cmp byte [ebx + 0x10], 0
je 0x4613b0
cmp edi, dword [ebx + 0xc]
jne 0x4613b0
lea eax, [ebp - 0x4c]
push eax
push 0x40
push 4
mov eax, dword [ebx + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4613b4
mov edx, dword [ebp - 0x44]
sub edx, dword [ebx + 8]
mov eax, dword [ebx + 0x14]
mov dword [eax], edx
lea edx, [ebp - 0x4c]
push edx
mov edx, dword [ebp - 0x4c]
push edx
push 4
push eax
call sub.kernel32.dll_VirtualProtect
mov byte [ebp - 0x45], 1
jmp 0x4613b4
inc esi
dec eax
jne 0x46135f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4613d7
lea eax, [ebp - 0x40]
mov edx, dword [0x40ff94]
call sub.rtl160.bpl__System__FinalizeRecord_qqrpvt1
ret
Function at 0x461cd0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__LStrAddRef_qqrpv
lea eax, [ebp - 0xc]
mov edx, dword [0x461dd0]
call sub.rtl160.bpl__System__InitializeRecord_qqrpvt1
xor eax, eax
push ebp
push 0x461d82
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x461d90
call sub.user32.dll_FindWindowW
mov ebx, eax
test ebx, ebx
je 0x461d56
lea eax, [ebp - 0x10]
push eax
push 0
push ebx
call sub.user32.dll_GetWindowThreadProcessId
mov cl, 0x30
mov edx, 1
call fcn.0040ba28
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 0x461db4
call sub.rtl160.bpl__System__LStrCat3_qqrr27System__AnsiStringT_us_i0__x27System__AnsiStringT_us_i0__t2
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call sub.rtl160.bpl__System__LStrLAsg_qqrr27System__AnsiStringT_us_i0__x27System__AnsiStringT_us_i0__
lea eax, [ebp - 0xc]
push eax
push 0x461bdc
call sub.user32.dll_EnumWindows
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461d89
lea eax, [ebp - 0x10]
call sub.rtl160.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0xc]
mov edx, dword [0x461dd0]
call sub.rtl160.bpl__System__FinalizeRecord_qqrpvt1
lea eax, [ebp - 4]
call sub.rtl160.bpl__System__LStrClr_qqrpv
ret

Function at 0x461e54
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x461f29
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.0040ba28
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, 0x461f44
call sub.rtl160.bpl__System__LStrCat3_qqrr27System__AnsiStringT_us_i0__x27System__AnsiStringT_us_i0__t2
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
push 0
push 4
call sub.kernel32.dll_OpenFileMappingA
mov ebx, eax
test ebx, ebx
je 0x461f0e
mov byte [0x535530], 1
push 0
push 0
push 0
push 4
push ebx
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
test esi, esi
je 0x461f08
mov eax, dword [esi + 4]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [esi]
push eax
push 0
push 0x100000
call sub.kernel32.dll_OpenProcess
mov edi, eax
test edi, edi
je 0x461ef0
push 0xffffffffffffffff
push edi
call sub.kernel32.dll_WaitForSingleObject
push edi
call sub.kernel32.dll_CloseHandle
mov edx, 0x5355d0
lea eax, [esi + 8]
mov ecx, 0x50
call sub.rtl160.bpl__System_Move_qqrpxvpvi
push esi
call sub.kernel32.dll_UnmapViewOfFile
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461f30
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl160.bpl__System__LStrArrayClr_qqrpvi
ret
Function at 0x462034
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x124], edx
mov dword [ebp - 0x120], edx
mov dword [ebp - 4], edx
xor edx, edx
push ebp
push 0x4621e4
push dword fs:[edx]
mov dword fs:[edx], esp
xor ebx, ebx
push 0x104
lea edx, [ebp - 0x119]
push edx
push eax
call sub.kernel32.dll_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x119]
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x462145
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingW
mov edi, eax
test edi, edi
je 0x46213f
push 0
push 0
push 0
push 4
push edi
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x462139
mov eax, dword [ebp - 8]
call fcn.0040ec18
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x462130
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x58], 0
je 0x462130
mov eax, dword [ebp - 0xc]
add eax, 0x58
mov dword [ebp - 0x10], eax
push 0
push esi
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 8]
xor ecx, ecx
mov eax, dword [ebp - 8]
call fcn.00461fd8
mov ecx, eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
sub edx, eax
sub edx, 4
mov eax, dword [ebp - 0x10]
add eax, 4
call fcn.00461fd8
add eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
cmp eax, dword [edx + 0x58]
je 0x462130
mov bl, 1
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_UnmapViewOfFile
push edi
call sub.kernel32.dll_CloseHandle
push esi
call sub.kernel32.dll_CloseHandle
test bl, bl
je 0x4621b8
push 0x10
push 0
lea edx, [ebp - 0x120]
mov eax, dword [0x535cd4]
mov ecx, dword [eax]
call dword [ecx + 0x248]
mov eax, dword [ebp - 0x120]
call sub.rtl160.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
push 0
call sub.user32.dll_MessageBoxA
push 0
call sub.kernel32.dll_GetModuleHandleW_1
cmp eax, dword [0x537004]
je 0x4621b1
mov eax, 0x535cd4
call sub.rtl160.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x124]
mov edx, dword [ebp - 4]
call sub.rtl160.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0x124]
mov eax, dword [0x40816c]
call fcn.00408308
call sub.rtl160.bpl__System__RaiseExcept_qqrv
jmp 0x4621b8
push 0
call sub.kernel32.dll_ExitProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4621eb
lea eax, [ebp - 0x124]
call sub.rtl160.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x120]
call sub.rtl160.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 4]
call sub.rtl160.bpl__System__LStrClr_qqrpv
ret
Function at 0x46236c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x462476
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov edx, 0x462484
mov ecx, 0x462498
mov eax, esi
call fcn.0040f2a8
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
cmp eax, 0x14
jne 0x462460
cmp esi, dword [0x537004]
sete al
mov edx, dword [ebp - 4]
test byte [edx + 3], 0x80
sete dl
cmp al, dl
jne 0x462460
mov eax, esi
call fcn.0040ec18
mov ebx, eax
lea eax, [ebp - 8]
push eax
push 0x40
push 0xe0
lea eax, [ebx + 0x18]
push eax
call sub.kernel32.dll_VirtualProtect
cmp esi, dword [0x537004]
jne 0x46240d
mov edx, 0x4316a4
mov eax, dword [ebp - 4]
sub edx, dword [eax]
sub edx, esi
mov dword [ebx + 0x2c], edx
mov edx, 0x535534
sub edx, dword [eax + 4]
sub edx, esi
mov dword [ebx + 0x30], edx
jmp 0x462426
mov eax, dword [ebp - 4]
mov edx, dword [eax]
and edx, 0x7fffffff
mov dword [ebx + 0x2c], edx
mov eax, dword [eax + 4]
and eax, 0x7fffffff
mov dword [ebx + 0x30], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov dword [ebx + 0x1c], edx
mov edx, dword [eax + 0xc]
mov dword [ebx + 0x20], edx
mov eax, dword [eax + 0x10]
mov dword [ebx + 0x24], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
push 0xe0
lea eax, [ebx + 0x18]
push eax
call sub.kernel32.dll_VirtualProtect
push 0
push 0
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46247d
lea eax, [ebp - 4]
call sub.rtl160.bpl__System__LStrClr_qqrpv
ret