joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4327b8
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, eax
mov dword [esp], 0x104
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x105
push 0
call sub.rtl160.bpl__System__LStrFromArray_qqrr27System__AnsiStringT_us_i0__pcius
add esp, 0x10c
pop ebx
ret

Function at 0x4327f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
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 0x4328f0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call sub.rtl160.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4328d5
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call sub.rtl160.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
mov edi, eax
push edi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
cmp dword [ebp - 0x10], 0
je 0x4328cc
mov eax, dword [ebp - 0x10]
add eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push 0
push edi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x4328c6
cmp dword [ebp - 0x14], 1
jne 0x4328b8
mov eax, ebx
mov edx, esi
mov ecx, 0
call sub.rtl160.bpl__System__LStrFromPChar_qqrr27System__AnsiStringT_us_i0__pcus
jmp 0x4328c6
push 0
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov edx, esi
call sub.rtl160.bpl__System__LStrFromPCharLen_qqrr27System__AnsiStringT_us_i0__pcius
push esi
call sub.kernel32.dll_LocalFree_1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4328f7
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl160.bpl__System__LStrArrayClr_qqrpvi
ret
Function at 0x432900
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__LStrAddRef_qqrpv
mov eax, dword [ebp - 8]
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 0x4329bb
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
push ebx
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x432996
mov eax, dword [ebp + 8]
call sub.rtl160.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
inc eax
push eax
mov eax, dword [ebp + 8]
call sub.rtl160.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
push 1
push 0
mov eax, dword [ebp - 8]
call sub.rtl160.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete bl
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
jmp 0x432998
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4329c2
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl160.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp + 8]
call sub.rtl160.bpl__System__LStrClr_qqrpv
ret

Function at 0x4329cc
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
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 0x432a56
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x432a39
mov eax, dword [ebp - 8]
call sub.rtl160.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegDeleteValueA
test eax, eax
sete bl
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
jmp 0x432a3b
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x432a5d
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl160.bpl__System__LStrArrayClr_qqrpvi
ret
Function at 0x432dd4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040ec18
test eax, eax
je 0x432e64
add eax, 0x80
mov edx, dword [eax]
mov esi, edx
add esi, dword [ebp - 4]
add edx, dword [eax + 4]
mov dword [ebp - 0x10], edx
test esi, esi
je 0x432e64
jmp 0x432e5e
mov eax, dword [esi + 0x10]
cmp eax, dword [ebp - 0x10]
jbe 0x432e1a
push ebp
call fcn.00432ce4
pop ecx
jmp 0x432e64
cmp dword [esi + 0x10], 0
je 0x432e5b
mov ebx, dword [ebp - 4]
add ebx, dword [esi + 0x10]
jmp 0x432e56
cmp edi, dword [ebx]
jne 0x432e53
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x432e53
mov eax, dword [ebp - 8]
mov dword [ebx], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
add ebx, 4
cmp dword [ebx], 0
jne 0x432e28
add esi, 0x14
cmp dword [esi + 0xc], 0
jne 0x432e09
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x433a90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x218], ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x433c13
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call sub.rtl160.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 4]
push eax
call sub.shell32.dll_SHGetMalloc
test eax, eax
jne 0x433be7
lea eax, [ebp - 8]
push eax
push esi
push 0xffffffffffffffff
call sub.shell32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x433be7
cmp dword [0x53be28], 0
jne 0x433b10
push 0x433c24
push 0x433c50
call sub.kernel32.dll_GetModuleHandleW_1
push eax
call fcn.00402f44
mov dword [0x53be28], eax
cmp dword [0x53be28], 0
je 0x433b42
lea eax, [ebp - 0x212]
push eax
mov eax, dword [ebp - 8]
push eax
call dword [0x53be28]
test eax, eax
je 0x433b42
mov eax, edi
lea edx, [ebp - 0x212]
mov ecx, 0x105
call sub.rtl160.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
jmp 0x433b79
lea eax, [ebp - 0x212]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x433b79
lea eax, [ebp - 0x218]
lea edx, [ebp - 0x212]
mov ecx, 0
call sub.rtl160.bpl__System__LStrFromPChar_qqrr27System__AnsiStringT_us_i0__pcus
mov edx, dword [ebp - 0x218]
mov eax, edi
call sub.rtl160.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
cmp dword [edi], 0
jne 0x433ba5
lea edx, [ebp - 0x21c]
xor eax, eax
call fcn.00431e40
mov eax, dword [ebp - 0x21c]
mov edx, edi
call fcn.00431f34
cmp dword [edi], 0
je 0x433be7
mov eax, dword [edi]
call sub.rtl160.bpl__System__UStrLen_qqrx20System_UnicodeString
mov edx, dword [edi]
cmp word [edx + eax*2 - 2], 0x5c
sete al
cmp bl, al
je 0x433be7
test bl, bl
je 0x433bd2
mov eax, edi
mov edx, 0x433c74
call sub.rtl160.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
jmp 0x433be7
mov eax, dword [edi]
call sub.rtl160.bpl__System__UStrLen_qqrx20System_UnicodeString
mov edx, eax
mov eax, edi
mov ecx, 1
call sub.rtl160.bpl__System__UStrDelete_qqrr20System_UnicodeStringii
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x433c1a
lea eax, [ebp - 0x21c]
call sub.rtl160.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x218]
call sub.rtl160.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 4]
call sub.rtl160.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
ret
Function at 0x437050
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
xor eax, eax
push ebp
push 0x4371fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
call fcn.00436f84
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4371db
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [0x535cd0], 0
jne 0x4371af
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x14]
call fcn.00432aa8
lea eax, [ebp - 0x30]
push eax
call sub.kernel32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.0040ba28
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov edx, 0x43721c
call sub.rtl160.bpl__System__LStrCat3_qqrr27System__AnsiStringT_us_i0__x27System__AnsiStringT_us_i0__t2
mov eax, dword [ebp - 0x2c]
call sub.rtl160.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
push 0
push 6
call sub.kernel32.dll_OpenFileMappingA
mov edi, eax
test edi, edi
sete bl
test bl, bl
je 0x43712a
lea eax, [ebp - 0x38]
push eax
call sub.kernel32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.0040ba28
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, 0x43721c
call sub.rtl160.bpl__System__LStrCat3_qqrr27System__AnsiStringT_us_i0__x27System__AnsiStringT_us_i0__t2
mov eax, dword [ebp - 0x34]
call sub.rtl160.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
push 4
push 0
push 4
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov edi, eax
test edi, edi
jne 0x437145
xor esi, esi
push 0
push 0x437234
push 0x437240
push 0
call sub.user32.dll_MessageBoxA
jmp 0x4371a5
test bl, bl
je 0x43718c
push 0
push 0
push 0
push 0xf001f
push edi
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
push 4
push 0x1000
push 0x28
push 0
call sub.kernel32.dll_VirtualAlloc
mov ebx, eax
mov dword [esi], ebx
mov eax, ebx
mov edx, 0x28
call fcn.00403694
mov eax, dword [esi]
mov dword [eax + 4], edi
add eax, 8
push eax
call sub.kernel32.dll_InitializeCriticalSection
jmp 0x4371a5
push 0
push 0
push 0
push 0xf001f
push edi
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
push edi
call sub.kernel32.dll_CloseHandle
test esi, esi
je 0x4371af
mov dword [0x535cd0], esi
cmp dword [0x535cd0], 0
je 0x4371c5
mov eax, dword [0x535cd0]
mov eax, dword [eax]
inc dword [eax]
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4371e2
mov eax, dword [ebp - 8]
call fcn.0043703c
ret

Function at 0x44145c
Capabilities:
Create thread

Disassembly:
cmp dword [0x535cfc], 0
jne 0x4414ce
xor eax, eax
call fcn.0040e4cc
mov dword [0x535cfc], eax
cmp dword [0x535cfc], 0
je 0x4414ce
mov eax, 0x4412f0
xor ecx, ecx
xor edx, edx
call fcn.0040e8e0
mov dword [0x535d00], eax
push 0x535cf4
push 0
push 0
push 0x441330
push 0
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x535cf8], eax
cmp dword [0x535cf8], 0
je 0x4414ce
mov edx, 0x4414dc
mov eax, dword [0x535cf4]
call fcn.00433234
push 2
mov eax, dword [0x535cf8]
push eax
call sub.kernel32.dll_SetThreadPriority
ret
Function at 0x4414fc
Capabilities:
Terminate thread

Disassembly:
cmp dword [0x535cfc], 0
je 0x44157a
cmp dword [0x535d0c], 0
je 0x441521
mov eax, dword [0x535d0c]
xor edx, edx
mov dword [0x535d0c], edx
push eax
call sub.kernel32.dll_CloseHandle
mov dword [0x535d08], 0xffffffff
mov eax, 0x4412f0
xor ecx, ecx
xor edx, edx
call fcn.0040eae8
push 0
mov eax, dword [0x535cf8]
push eax
call sub.kernel32.dll_TerminateThread
mov eax, dword [0x535cf8]
push eax
call sub.kernel32.dll_CloseHandle
push 0
push 0
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [0x535cf4]
call fcn.00432f0c
xor eax, eax
mov dword [0x535cf8], eax
xor eax, eax
mov dword [0x535cf4], eax
xor eax, eax
mov dword [0x535cfc], eax
ret
Function at 0x449bb8
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x449c15
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
mov esi, eax
push esi
call sub.wsock32.dll_inet_addr
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x449bff
push esi
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x449bff
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ebx, dword [eax]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x449c1c
lea eax, [ebp - 4]
call sub.rtl160.bpl__System__LStrClr_qqrpv
ret
Function at 0x44a34c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x44a3d1
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
xor esi, esi
jmp 0x44a3ab
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
mov ebx, eax
sub ebx, esi
cmp ebx, 0x400
jle 0x44a391
mov ebx, 0x400
push 0
push ebx
lea eax, [ebp - 4]
call sub.rtl160.bpl__System__UniqueStringA_qqrr27System__AnsiStringT_us_i0__
add eax, esi
push eax
push edi
call sub.wsock32.dll_send
test eax, eax
jl 0x44a3bb
add esi, ebx
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
cmp esi, eax
jl 0x44a378
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44a3d8
lea eax, [ebp - 4]
call sub.rtl160.bpl__System__LStrClr_qqrpv
ret

Function at 0x44a3e4
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
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 0x44a49d
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x44a437
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_CreateFileW
mov ebx, eax
jmp 0x44a466
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, 0
call sub.rtl160.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 8]
call sub.rtl160.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x44a47d
push 0
push ebx
call sub.kernel32.dll_GetFileSize
mov esi, eax
push ebx
call sub.kernel32.dll_CloseHandle
jmp 0x44a47f
xor esi, esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44a4a4
lea eax, [ebp - 8]
call sub.rtl160.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 4]
call sub.rtl160.bpl__System__UStrClr_qqrpv
ret
Function at 0x44a6c0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x44a792
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp dword [ebp - 4], 0
je 0x44a77c
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov dword [esi], eax
cmp dword [esi], 0xffffffff
je 0x44a77c
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
call sub.wsock32.dll_inet_addr
mov edi, eax
cmp edi, 0xffffffff
jne 0x44a730
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x44a730
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edi, dword [eax]
cmp edi, 0xffffffff
je 0x44a77c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
mov word [ebp - 0x14], 2
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x10]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x12], ax
mov dword [ebp - 0x10], edi
push 0x10
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esi]
push eax
call sub.wsock32.dll_connect
inc eax
je 0x44a77c
mov bl, 1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44a799
lea eax, [ebp - 4]
call sub.rtl160.bpl__System__LStrClr_qqrpv
ret
Function at 0x44ba48
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x44bb5e
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 8]
push eax
mov cl, 0x20
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.0040c10c
mov eax, dword [ebp - 8]
mov edx, 0x44bb7c
call sub.rtl160.bpl__System__LStrEqual_qqrv
jne 0x44bb20
push 0x7fffffff
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x44bb8c
call fcn.0040a688
mov esi, eax
test esi, esi
jle 0x44bb43
push 0x7fffffff
lea ecx, [esi + 0xa]
mov edx, dword [ebp - 4]
mov eax, 0x44bba4
call fcn.0040a5b8
test eax, eax
jle 0x44bb43
lea edx, [ebp - 4]
mov ecx, 0x7fffffff
xchg edx, eax
call sub.rtl160.bpl__System__LStrDelete_qqrr27System__AnsiStringT_us_i0__ii
lea ecx, [esi + 9]
lea eax, [ebp - 4]
mov edx, 1
call sub.rtl160.bpl__System__LStrDelete_qqrr27System__AnsiStringT_us_i0__ii
mov eax, 0x53552c
mov edx, dword [ebp - 4]
call sub.rtl160.bpl__System__LStrAsg_qqrr27System__AnsiStringT_us_i0__x27System__AnsiStringT_us_i0__
cmp byte [0x535528], 0
je 0x44bb1c
push 1
push 0
push 0
mov eax, dword [0x53552c]
call sub.rtl160.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
mov bl, 1
jmp 0x44bb43
lea eax, [ebp - 0xc]
push eax
mov cl, 0x20
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.0040c10c
mov eax, dword [ebp - 0xc]
mov edx, 0x44bbb4
call sub.rtl160.bpl__System__LStrEqual_qqrv
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44bb65
lea eax, [ebp - 0xc]
mov edx, 3
call sub.rtl160.bpl__System__LStrArrayClr_qqrpvi
ret
Function at 0x44bbb8
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffae4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x151c], edx
mov dword [ebp - 0x1518], edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x44bd23
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov dword [ebp - 0x1514], 1
mov dword [ebp - 0x1510], esi
mov eax, dword [0x535504]
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 0x1514]
push eax
push 0
call sub.wsock32.dll_select
test eax, eax
jle 0x44bcfd
push 0
push 0
push 0x1400
lea eax, [ebp - 0x140d]
push eax
push esi
call sub.wsock32.dll_recv
mov ecx, eax
lea edx, [ebp - 0x140d]
lea eax, [ebp - 4]
call sub.rtl160.bpl__System__LStrFromPCharLen_qqrr27System__AnsiStringT_us_i0__pcius
lea eax, [ebp - 0x1518]
push eax
mov cl, 0x20
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.0040c10c
mov eax, dword [ebp - 0x1518]
mov edx, 0x44bd40
call sub.rtl160.bpl__System__LStrEqual_qqrv
jne 0x44bcf3
push 0x7fffffff
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x44bd50
call fcn.0040a5b8
test eax, eax
jle 0x44bce3
lea ecx, [eax + 3]
lea eax, [ebp - 4]
mov edx, 1
call sub.rtl160.bpl__System__LStrDelete_qqrr27System__AnsiStringT_us_i0__ii
lea eax, [ebp - 0x151c]
push eax
mov cl, 0x20
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.0040c10c
mov eax, dword [ebp - 0x151c]
call sub.rtl160.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
cmp eax, 3
jne 0x44bcd3
mov eax, dword [ebp - 4]
call fcn.0044ba48
mov ebx, eax
jmp 0x44bcfd
mov eax, dword [ebp + 8]
push eax
mov eax, esi
call fcn.0044bbb8
pop ecx
mov ebx, eax
jmp 0x44bcfd
mov eax, dword [ebp + 8]
push eax
mov eax, esi
call fcn.0044bbb8
pop ecx
mov ebx, eax
jmp 0x44bcfd
mov eax, dword [ebp - 4]
call fcn.0044ba48
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44bd2a
lea eax, [ebp - 0x151c]
mov edx, 2
call sub.rtl160.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 4]
call sub.rtl160.bpl__System__LStrClr_qqrpv
ret
Function at 0x44ccbc
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x44cd99
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call sub.rtl160.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.00431f34
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, 0
call sub.rtl160.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
cmp dword [ebp - 4], 0
je 0x44cd74
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
jne 0x44cd34
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
mov edx, eax
lea eax, [ebp - 4]
mov ecx, 1
call sub.rtl160.bpl__System__LStrDelete_qqrr27System__AnsiStringT_us_i0__ii
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x44cd70
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0044ccbc
pop ecx
test al, al
je 0x44cd6c
push 0
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x44cd70
xor ebx, ebx
jmp 0x44cd76
mov bl, 1
jmp 0x44cd76
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44cda0
lea eax, [ebp - 0xc]
mov edx, 2
call sub.rtl160.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 4]
call sub.rtl160.bpl__System__LStrClr_qqrpv
ret