joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444160
Capabilities:
Create thread
Resume thread

Disassembly:
cmp dword [0x5fbe74], 0
jne 0x4441f3
xor eax, eax
call fcn.0040e388
mov dword [0x5fbe74], eax
cmp dword [0x5fbe74], 0
je 0x4441f3
mov eax, 0x443fc4
xor ecx, ecx
xor edx, edx
call fcn.0040e88c
mov dword [0x5fbe78], eax
push 0
push 0
push 0xffffffffffffffff
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x5fbe88], eax
push 0x5fbe6c
push 4
push 0
push 0x44400c
push 0
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x5fbe70], eax
cmp dword [0x5fbe70], 0
je 0x4441f3
mov edx, 0x444200
mov eax, dword [0x5fbe6c]
call fcn.004354a4
push 2
mov eax, dword [0x5fbe70]
push eax
call sub.kernel32.dll_SetThreadPriority
mov eax, dword [0x5fbe70]
push eax
call sub.kernel32.dll_ResumeThread
ret

Function at 0x44423c
Capabilities:
Terminate thread

Disassembly:
push ebx
cmp dword [0x5fbe74], 0
je 0x44430d
mov ebx, dword [0x5fbe88]
xor eax, eax
mov dword [0x5fbe88], eax
push ebx
call sub.kernel32.dll_SetEvent
push ebx
call sub.kernel32.dll_CloseHandle
cmp dword [0x5fbe84], 0
je 0x444285
mov ebx, dword [0x5fbe84]
xor eax, eax
mov dword [0x5fbe84], eax
push ebx
call sub.kernel32.dll_SetEvent
push ebx
call sub.kernel32.dll_CloseHandle
mov dword [0x5fbe80], 0xffffffff
mov eax, 0x443fc4
xor ecx, ecx
xor edx, edx
call fcn.0040eab8
push 0x1f4
mov eax, dword [0x5fbe70]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
je 0x4442d2
push 0
mov eax, dword [0x5fbe70]
push eax
call sub.kernel32.dll_TerminateThread
cmp dword [0x5fbe8c], 0
je 0x4442d2
mov eax, dword [0x5fbe8c]
push eax
call sub.kernel32.dll_LocalFree
xor eax, eax
mov dword [0x5fbe8c], eax
mov eax, dword [0x5fbe70]
push eax
call sub.kernel32.dll_CloseHandle
push 0
push 0
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [0x5fbe6c]
call fcn.00435218
xor eax, eax
mov dword [0x5fbe70], eax
xor eax, eax
mov dword [0x5fbe6c], eax
xor eax, eax
mov dword [0x5fbe74], eax
pop ebx
ret
Function at 0x44c13c
Capabilities:
Resolve dns

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, esi
call sub.rtl250.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
mov edi, eax
push edi
call sub.wsock32.dll_inet_addr
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x44c168
push edi
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x44c168
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ebx, dword [eax]
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x44e618
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
or dword [ebp + 0xc], 0xc11c
cmp byte [0x5fb530], 0
je 0x44e63e
or dword [ebp + 0xc], 0x80000
push 1
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
push 1
push 0x44e700
push 1
push 0x44e708
push 1
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.0044e5ac
push 0
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
push esi
lea eax, [ebx + 0x44]
push eax
mov eax, dword [ebx + 8]
call dword [eax + 0x18]
mov esi, eax
mov eax, esi
call fcn.0043267c
test al, al
jne 0x44e6a8
cmp esi, 0x80090318
jne 0x44e6b0
test edi, edi
je 0x44e6b0
mov byte [ebx + 0x5c], 1
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x44e6e0
cmp dword [ebp - 0x24], 0
je 0x44e6e0
push 0
mov eax, dword [ebp - 0x24]
push eax
push edi
mov eax, dword [ebx + 0x50]
push eax
call sub.wsock32.dll_send
test eax, eax
jg 0x44e6d6
mov esi, 0x80090304
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebx + 8]
call dword [eax + 0x40]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x44e6f4
cmp dword [ebp - 0x18], 0
je 0x44e6f4
push eax
mov eax, dword [ebx + 8]
call dword [eax + 0x40]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x44e710
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffeb4
mov edi, edx
mov ebx, eax
mov byte [esp], 0
xor esi, esi
xor eax, eax
mov dword [esp + 8], eax
test edi, edi
je 0x44e795
mov dword [esp + 0x38], 1
mov eax, dword [ebx + 0x50]
mov dword [esp + 0x3c], eax
mov eax, dword [0x5fb544]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
push 0
push 0
lea eax, [esp + 0x44]
push eax
push 0
call sub.wsock32.dll_select
test eax, eax
jle 0x44e8b8
push 0
mov eax, dword [ebx + 0x74]
sub eax, esi
push eax
mov eax, dword [ebx + 0x78]
add eax, esi
push eax
mov eax, dword [ebx + 0x50]
push eax
call sub.wsock32.dll_recv
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
jle 0x44e8b8
mov eax, dword [esp + 4]
add esi, eax
test esi, esi
sete al
neg al
sbb edi, edi
push 1
mov eax, dword [ebx + 0x78]
mov dword [esp + 0x140], eax
xor eax, eax
mov dword [esp + 0x144], eax
lea eax, [esp + 0x140]
push eax
push 1
mov dword [esp + 0x150], esi
xor eax, eax
mov dword [esp + 0x154], eax
lea eax, [esp + 0x150]
push eax
push 1
push 0x44e8c8
push 1
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x30]
mov eax, ebx
call fcn.0044e5ac
push 0
mov eax, dword [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
lea edx, [ebx + 0x54]
xor ecx, ecx
mov eax, ebx
call fcn.0044e618
mov ebp, eax
sub ebp, 0x80090318
je 0x44e8b0
sub ebp, 0x7ff6fce8
je 0x44e82d
sub ebp, 0x90312
je 0x44e875
sub ebp, 0xe
je 0x44e8a1
jmp 0x44e8b8
cmp dword [esp + 0x30], 5
jne 0x44e86f
mov eax, dword [esp + 0x2c]
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc
mov dword [ebx + 0x84], eax
mov edx, dword [ebx + 0x84]
mov eax, dword [ebx + 0x78]
add eax, esi
sub eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x2c]
call sub.rtl250.bpl__System_Move_qqrpxvpvi
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x80], 2
mov byte [esp], 1
jmp 0x44e8b8
cmp dword [esp + 0x30], 5
jne 0x44e89a
mov edx, dword [ebx + 0x78]
mov eax, dword [ebx + 0x78]
add eax, esi
sub eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x2c]
call sub.rtl250.bpl__System_Move_qqrpxvpvi
mov esi, dword [esp + 0x2c]
jmp 0x44e72a
xor esi, esi
jmp 0x44e72a
or dword [esp + 8], 0x80
xor edi, edi
jmp 0x44e72a
or edi, 0xffffffff
jmp 0x44e72a
movzx eax, byte [esp]
add esp, 0x14c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x44e8d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff9c
mov esi, edx
mov ebp, eax
mov bl, 1
mov eax, esi
call sub.rtl250.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
mov dword [esp], eax
mov eax, esi
call sub.rtl250.bpl__System__LStrLen_qqrx31System__AnsiStringT_us_i65535__
mov edi, eax
mov dword [esp + 4], 0x400
cmp dword [ebp + 8], 0
je 0x44e9fe
mov eax, dword [ebp + 0x68]
cmp eax, dword [esp + 4]
jae 0x44e9fe
mov eax, dword [ebp + 0x68]
mov dword [esp + 4], eax
jmp 0x44e9fe
cmp edi, dword [esp + 4]
jbe 0x44e927
mov esi, dword [esp + 4]
jmp 0x44e929
mov esi, edi
cmp dword [ebp + 8], 0
je 0x44e9e3
mov edx, dword [ebp + 0x78]
add edx, dword [ebp + 0x60]
mov eax, dword [esp]
mov ecx, esi
call sub.rtl250.bpl__System_Move_qqrpxvpvi
push 3
mov eax, dword [ebp + 0x78]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x78]
add eax, dword [ebp + 0x60]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x78]
add eax, dword [ebp + 0x60]
add eax, esi
mov dword [esp + 0x50], eax
xor eax, eax
mov dword [esp + 0x54], eax
lea eax, [esp + 0x48]
push eax
push 3
mov eax, dword [ebp + 0x60]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], esi
mov eax, dword [ebp + 0x64]
mov dword [esp + 0x68], eax
xor eax, eax
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x60]
push eax
push 3
push 0x44ea14
push 3
lea ecx, [esp + 0x30]
lea edx, [esp + 0x24]
mov eax, ebp
call fcn.0044e5ac
push 0
lea eax, [esp + 0xc]
push eax
push 0
lea eax, [ebp + 0x54]
push eax
mov eax, dword [ebp + 8]
call dword [eax + 0x64]
test eax, eax
jne 0x44e9db
push 0
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x24]
add eax, dword [esp + 0x30]
push eax
mov eax, dword [ebp + 0x78]
push eax
mov eax, dword [ebp + 0x50]
push eax
call sub.wsock32.dll_send
test eax, eax
jg 0x44e9df
xor ebx, ebx
jmp 0x44e9f9
mov bl, 1
jmp 0x44e9f9
push 0
push esi
mov eax, dword [esp + 8]
push eax
mov eax, dword [ebp + 0x50]
push eax
call sub.wsock32.dll_send
test eax, eax
setg bl
add dword [esp], esi
sub edi, esi
test bl, bl
je 0x44ea0a
test edi, edi
ja 0x44e91b
mov eax, ebx
add esp, 0x64
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4531e4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4532fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
push 0
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetFilePointer
mov esi, dword [ebp - 0xc]
cmp byte [ebp + 8], 0
je 0x45322e
mov dword [ebp - 0x10], 0x600
jmp 0x453235
mov dword [ebp - 0x10], 0x800
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call sub.rtl250.bpl__System__LStrSetLength_qqrr27System__AnsiStringT_us_i0__ius
test esi, esi
jbe 0x4532df
cmp esi, dword [ebp - 0x10]
jae 0x45325b
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, esi
call sub.rtl250.bpl__System__LStrSetLength_qqrr27System__AnsiStringT_us_i0__ius
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
call sub.rtl250.bpl__System__LStrLen_qqrx31System__AnsiStringT_us_i65535__
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x453288
mov eax, dword [ebp - 4]
call sub.rtl250.bpl__System__LStrLen_qqrx31System__AnsiStringT_us_i65535__
cmp eax, dword [ebp - 0x14]
je 0x45328c
xor ebx, ebx
jmp 0x4532df
cmp byte [ebp + 8], 0
je 0x4532ab
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0041c0e4
mov edx, dword [ebp - 0x18]
mov eax, edi
call fcn.004525e4
mov ebx, eax
jmp 0x4532b7
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.004525e4
mov ebx, eax
test bl, bl
je 0x4532df
sub esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
sub eax, esi
imul eax, eax, 0x3e8
xor edx, edx
div dword [ebp - 0xc]
mov edx, eax
mov eax, edi
call fcn.00452b28
test esi, esi
ja 0x45324a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453304
lea eax, [ebp - 0x18]
call sub.rtl250.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 4]
call sub.rtl250.bpl__System__LStrClr_qqrpv
ret
Function at 0x458c98
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl250.bpl__System__UStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x458ddb
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a638
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call sub.rtl250.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
cmp dword [ebp - 4], 0
je 0x458db1
mov eax, dword [ebp - 4]
call sub.rtl250.bpl__System__UStrLen_qqrx20System_UnicodeString
mov edx, dword [ebp - 4]
cmp word [edx + eax*2 - 2], 0x5c
jne 0x458d05
mov eax, dword [ebp - 4]
call sub.rtl250.bpl__System__UStrLen_qqrx20System_UnicodeString
mov edx, eax
lea eax, [ebp - 4]
mov ecx, 1
call sub.rtl250.bpl__System__UStrDelete_qqrr20System_UnicodeStringii
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x458d51
mov eax, dword [ebp - 4]
call sub.rtl250.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x458d4d
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00458c98
pop ecx
test al, al
je 0x458d49
push 0
mov eax, dword [ebp - 4]
call sub.rtl250.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x458d4d
xor ebx, ebx
jmp 0x458db3
mov bl, 1
jmp 0x458db3
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov ecx, 0
call sub.rtl250.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0xc]
call sub.rtl250.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x458dad
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00458c98
pop ecx
test al, al
je 0x458da9
push 0
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
mov ecx, 0
call sub.rtl250.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x10]
call sub.rtl250.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x458dad
xor ebx, ebx
jmp 0x458db3
mov bl, 1
jmp 0x458db3
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458de2
lea eax, [ebp - 0x10]
mov edx, 2
call sub.rtl250.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl250.bpl__System__UStrArrayClr_qqrpvi
ret
Function at 0x465784
Capabilities:
Create pipe
Create thread

Disassembly:
push 0
push 0
push 0x5fbf60
push 0x5fbf5c
call sub.kernel32.dll_CreatePipe
test eax, eax
je 0x4657dc
push 0x5fbf54
push 0
push 0
push 0x465698
push 0
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x5fbf58], eax
cmp dword [0x5fbf58], 0
je 0x4657dc
mov edx, 0x4657ec
mov eax, dword [0x5fbf54]
call fcn.004354a4
push 2
mov eax, dword [0x5fbf58]
push eax
call sub.kernel32.dll_SetThreadPriority
ret

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

Disassembly:
add esp, 0xffffff6c
cmp dword [0x5fbf54], 0xffffffff
je 0x465918
mov eax, dword [0x5fbf58]
push eax
call sub.kernel32.dll_ResumeThread
xor eax, eax
call fcn.004359c4
test al, al
jne 0x4658a0
lea eax, [esp + 4]
mov edx, 0x90
call fcn.0040437c
push 0
lea eax, [esp + 4]
push eax
push 0x90
lea eax, [esp + 0x10]
push eax
mov eax, dword [0x5fbf60]
push eax
call sub.kernel32.dll_WriteFile
mov eax, dword [0x5fbf60]
push eax
call sub.kernel32.dll_CloseHandle
push 0x1f4
mov eax, dword [0x5fbf58]
push eax
call sub.kernel32.dll_WaitForSingleObject
jmp 0x4658ab
mov eax, dword [0x5fbf60]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x5fbf5c]
push eax
call sub.kernel32.dll_CloseHandle
push 0x32
mov eax, dword [0x5fbf58]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
je 0x4658e8
push 0
mov eax, dword [0x5fbf58]
push eax
call sub.kernel32.dll_TerminateThread
cmp dword [0x5fbf64], 0
je 0x4658e8
mov eax, dword [0x5fbf64]
push eax
call sub.kernel32.dll_LocalFree
xor eax, eax
mov dword [0x5fbf64], eax
mov eax, dword [0x5fbf58]
push eax
call sub.kernel32.dll_CloseHandle
push 0
push 0
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [0x5fbf54]
call fcn.00435218
mov dword [0x5fbf54], 0xffffffff
add esp, 0x94
ret
Function at 0x466960
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
xor edx, edx
mov dword [ebp - 0x210], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x466a23
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call sub.rtl250.bpl__System__UStrClr_qqrpv
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x4669c8
push 0x104
lea eax, [ebp - 0x20a]
push eax
push 0x1001
push 0x800
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x466a0a
mov eax, ebx
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call sub.rtl250.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
jmp 0x466a0a
push 0x104
lea eax, [ebp - 0x20a]
push eax
push 0x1001
push 0x800
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x466a0a
lea eax, [ebp - 0x210]
lea edx, [ebp - 0x20a]
mov ecx, 0
call sub.rtl250.bpl__System__LStrFromPChar_qqrr27System__AnsiStringT_us_i0__pcus
mov edx, dword [ebp - 0x210]
mov eax, ebx
call sub.rtl250.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466a2a
lea eax, [ebp - 0x210]
call sub.rtl250.bpl__System__LStrClr_qqrpv
ret

Function at 0x466dd4
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 0x466ed2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x466ee0
push 0x466f0c
call sub.kernel32.dll_GetModuleHandleW
push eax
call fcn.004039d8
test eax, eax
je 0x466e1b
mov dword [ebp - 0x60], 0x40
lea edx, [ebp - 0x60]
push edx
call eax
jmp 0x466e41
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.rtl250.bpl__System___lldiv_qqrv
push edx
push eax
lea ecx, [ebp - 0x64]
mov dx, 0x30
mov eax, 1
call fcn.00409188
push dword [ebp - 0x64]
push 0x466f34
push 0
push 0x100000
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
add eax, 0x80000
adc edx, 0
call sub.rtl250.bpl__System___lldiv_qqrv
push edx
push eax
lea ecx, [ebp - 0x68]
mov dx, 0x30
mov eax, 1
call fcn.00409188
push dword [ebp - 0x68]
push 0x466f44
mov eax, ebx
mov edx, 4
call sub.rtl250.bpl__System__UStrCatN_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466ed9
lea eax, [ebp - 0x68]
mov edx, 2
call sub.rtl250.bpl__System__UStrArrayClr_qqrpvi
ret
Function at 0x4672f8
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 0x46745c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
lea eax, [ebp - 4]
call sub.rtl250.bpl__System__LStrClr_qqrpv
push 0x6074a4
call sub.kernel32.dll_EnterCriticalSection
xor eax, eax
push ebp
push 0x46742d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 4]
mov ecx, ebx
mov edx, esi
call sub.rtl250.bpl__System__LStrFromPCharLen_qqrr27System__AnsiStringT_us_i0__pcius
push 0
mov edx, edi
lea eax, [ebp - 8]
mov ecx, ebx
call sub.rtl250.bpl__System__LStrFromPCharLen_qqrr27System__AnsiStringT_us_i0__pcius
mov eax, dword [ebp - 4]
call sub.rtl250.bpl__System__LStrLen_qqrx31System__AnsiStringT_us_i65535__
cmp ebx, eax
jne 0x467423
mov eax, dword [ebp - 8]
call sub.rtl250.bpl__System__LStrLen_qqrx31System__AnsiStringT_us_i65535__
cmp ebx, eax
jne 0x467423
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call sub.rtl250.bpl__System__LStrEqual_qqrv
je 0x467423
lea eax, [ebp - 0x10]
push eax
push 0x40
push ebx
push esi
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x467423
mov edx, esi
mov eax, edi
mov ecx, ebx
call sub.rtl250.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 [0x6074bc]
call sub.rtl250.bpl__System__DynArrayLength_qqrpxv
mov ebx, eax
lea eax, [ebx + 1]
push eax
mov eax, 0x6074bc
mov ecx, 1
mov edx, dword [0x4672cc]
call sub.rtl250.bpl__System__DynArraySetLength_qqrv
add esp, 4
mov edi, ebx
add edi, edi
mov eax, dword [0x6074bc]
mov dword [eax + edi*8], esi
mov eax, dword [0x6074bc]
lea eax, [eax + edi*8 + 4]
mov edx, dword [ebp - 4]
call sub.rtl250.bpl__System__LStrAsg_qqrr27System__AnsiStringT_us_i0__x27System__AnsiStringT_us_i0__
mov eax, dword [0x6074bc]
lea eax, [eax + edi*8 + 8]
mov edx, dword [ebp - 8]
call sub.rtl250.bpl__System__LStrAsg_qqrr27System__AnsiStringT_us_i0__x27System__AnsiStringT_us_i0__
mov eax, dword [0x6074bc]
mov edx, dword [ebp + 8]
mov dword [eax + edi*8 + 0xc], edx
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x467437
push 0x6074a4
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467463
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl250.bpl__System__LStrArrayClr_qqrpvi
ret
Function at 0x467470
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 0x46759e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x6074a4
call sub.kernel32.dll_EnterCriticalSection
mov eax, dword [0x6074bc]
call sub.rtl250.bpl__System__DynArrayHigh_qqrpxv
test eax, eax
jl 0x46756f
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
add eax, eax
mov edx, dword [0x6074bc]
lea ebx, [edx + eax*8]
xor eax, eax
push ebp
push 0x467559
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 8]
call sub.rtl250.bpl__System__LStrLen_qqrx31System__AnsiStringT_us_i65535__
mov edx, eax
mov eax, dword [ebx]
call fcn.0040fc08
test al, al
jne 0x46754f
push 0
mov eax, dword [ebx + 8]
call sub.rtl250.bpl__System__LStrLen_qqrx31System__AnsiStringT_us_i65535__
mov ecx, eax
mov edx, dword [ebx]
lea eax, [ebp - 4]
call sub.rtl250.bpl__System__LStrFromPCharLen_qqrr27System__AnsiStringT_us_i0__pcius
mov eax, dword [ebp - 4]
mov edx, dword [ebx + 8]
call sub.rtl250.bpl__System__LStrEqual_qqrv
jne 0x46754f
lea eax, [ebp - 0xc]
push eax
push 0x40
mov eax, dword [ebx + 4]
call sub.rtl250.bpl__System__LStrLen_qqrx31System__AnsiStringT_us_i65535__
push eax
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x46754f
mov eax, dword [ebx + 4]
call sub.rtl250.bpl__System__LStrLen_qqrx31System__AnsiStringT_us_i65535__
mov ecx, eax
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
call sub.rtl250.bpl__System_Move_qqrpxvpvi
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebx + 4]
call sub.rtl250.bpl__System__LStrLen_qqrx31System__AnsiStringT_us_i65535__
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 0x467563
inc dword [ebp - 8]
dec dword [ebp - 0x10]
jne 0x4674b3
push 0x6074a4
call sub.kernel32.dll_LeaveCriticalSection
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 0x4675a5
lea eax, [ebp - 4]
call sub.rtl250.bpl__System__LStrClr_qqrpv
ret