joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4343d4
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4344bf
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x434447
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
mov eax, edi
call sub.rtl250.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4344a4
mov eax, dword [ebp - 4]
call sub.rtl250.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegDeleteValueW
test eax, eax
sete bl
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
jmp 0x4344a4
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0xc]
mov edx, edi
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
push esi
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4344a4
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
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegDeleteValueA
test eax, eax
sete bl
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4344c6
lea eax, [ebp - 0x10]
mov edx, 2
call sub.rtl250.bpl__System__LStrArrayClr_qqrpvi
ret
Function at 0x434b90
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.0040e3cc
test eax, eax
je 0x434c41
cmp word [eax + 0x18], 0x20b
jne 0x434bce
add eax, 0x18
add eax, 0x78
mov edx, dword [eax]
mov esi, edx
add esi, dword [ebp - 4]
add edx, dword [eax + 4]
mov dword [ebp - 0x10], edx
jmp 0x434be0
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 0x434c41
jmp 0x434c3b
mov eax, dword [esi + 0x10]
cmp eax, dword [ebp - 0x10]
jbe 0x434bf7
push ebp
call fcn.004349d0
pop ecx
jmp 0x434c41
cmp dword [esi + 0x10], 0
je 0x434c38
mov ebx, dword [esi + 0x10]
add ebx, dword [ebp - 4]
jmp 0x434c33
cmp edi, dword [ebx]
jne 0x434c30
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x434c30
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 0x434c05
add esi, 0x14
cmp dword [esi + 0xc], 0
jne 0x434be6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x435e20
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 0x435fa3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call sub.rtl250.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 4]
push eax
call sub.shell32.dll_SHGetMalloc
test eax, eax
jne 0x435f77
lea eax, [ebp - 8]
push eax
push esi
push 0xffffffffffffffff
call sub.shell32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x435f77
cmp dword [0x4df470], 0
jne 0x435ea0
push 0x435fb4
push 0x435fe0
call sub.kernel32.dll_GetModuleHandleW
push eax
call fcn.00403590
mov dword [0x4df470], eax
cmp dword [0x4df470], 0
je 0x435ed2
lea eax, [ebp - 0x212]
push eax
mov eax, dword [ebp - 8]
push eax
call dword [0x4df470]
test eax, eax
je 0x435ed2
mov eax, edi
lea edx, [ebp - 0x212]
mov ecx, 0x105
call sub.rtl250.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
jmp 0x435f09
lea eax, [ebp - 0x212]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x435f09
lea eax, [ebp - 0x218]
lea edx, [ebp - 0x212]
mov ecx, 0
call sub.rtl250.bpl__System__LStrFromPChar_qqrr27System__AnsiStringT_us_i0__pcus
mov edx, dword [ebp - 0x218]
mov eax, edi
call sub.rtl250.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 0x435f35
lea edx, [ebp - 0x21c]
xor eax, eax
call fcn.00433804
mov eax, dword [ebp - 0x21c]
mov edx, edi
call fcn.00409fc0
cmp dword [edi], 0
je 0x435f77
mov eax, dword [edi]
call sub.rtl250.bpl__System__UStrLen_qqrx20System_UnicodeString
mov edx, dword [edi]
cmp word [edx + eax*2 - 2], 0x5c
sete al
cmp bl, al
je 0x435f77
test bl, bl
je 0x435f62
mov eax, edi
mov edx, 0x436004
call sub.rtl250.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
jmp 0x435f77
mov eax, dword [edi]
call sub.rtl250.bpl__System__UStrLen_qqrx20System_UnicodeString
mov edx, eax
mov eax, edi
mov ecx, 1
call sub.rtl250.bpl__System__UStrDelete_qqrr20System_UnicodeStringii
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x435faa
lea eax, [ebp - 0x21c]
call sub.rtl250.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x218]
call sub.rtl250.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 4]
call sub.rtl250.bpl__System__IntfClear_qqrr44System__DelphiInterface_17System_IInterface_
ret
Function at 0x436a10
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push esi
push edi
mov edi, eax
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x436a2a
call sub.user32.dll_EmptyClipboard
call sub.user32.dll_CloseClipboard
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x436a89
mov eax, edi
call sub.rtl250.bpl__System__UStrLen_qqrx20System_UnicodeString
add eax, eax
add eax, 2
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov ebx, eax
push ebx
call sub.kernel32.dll_GlobalLock
mov esi, eax
test esi, esi
je 0x436a84
mov eax, edi
call sub.rtl250.bpl__System__UStrLen_qqrx20System_UnicodeString
add eax, eax
add eax, 2
push eax
mov eax, edi
call sub.rtl250.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
mov edx, esi
pop ecx
call sub.rtl250.bpl__System_Move_qqrpxvpvi
push ebx
call sub.kernel32.dll_GlobalUnlock
push ebx
push 0xd
call sub.user32.dll_SetClipboardData
call sub.user32.dll_CloseClipboard
pop edi
pop esi
pop ebx
ret
Function at 0x438db4
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 0x438f68
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
call fcn.00438ce8
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x438f46
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [0x4dae48], 0
jne 0x438f1a
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x14]
call fcn.00434594
lea eax, [ebp - 0x30]
push eax
call sub.kernel32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.00408980
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov edx, 0x438f88
call sub.rtl250.bpl__System__LStrCat3_qqrr27System__AnsiStringT_us_i0__x27System__AnsiStringT_us_i0__t2
mov eax, dword [ebp - 0x2c]
call sub.rtl250.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 0x438e8e
lea eax, [ebp - 0x38]
push eax
call sub.kernel32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.00408980
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, 0x438f88
call sub.rtl250.bpl__System__LStrCat3_qqrr27System__AnsiStringT_us_i0__x27System__AnsiStringT_us_i0__t2
mov eax, dword [ebp - 0x34]
call sub.rtl250.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 0x438ea9
xor esi, esi
push 0
push 0x438fa0
push 0x438fac
push 0
call sub.user32.dll_MessageBoxA
jmp 0x438f09
test bl, bl
je 0x438ef0
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.00403d90
mov eax, dword [esi]
mov dword [eax + 4], edi
add eax, 8
push eax
call sub.kernel32.dll_InitializeCriticalSection
jmp 0x438f09
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 0x438f1a
mov eax, esi
call fcn.00471180
mov dword [0x4dae48], esi
cmp dword [0x4dae48], 0
je 0x438f30
mov eax, dword [0x4dae48]
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 0x438f4d
mov eax, dword [ebp - 8]
call fcn.00438da0
ret
Function at 0x443e54
Capabilities:
Create thread
Resume thread

Disassembly:
cmp dword [0x4dae74], 0
jne 0x443ee7
xor eax, eax
call fcn.0040db6c
mov dword [0x4dae74], eax
cmp dword [0x4dae74], 0
je 0x443ee7
mov eax, 0x443cb8
xor ecx, ecx
xor edx, edx
call fcn.0040e070
mov dword [0x4dae78], eax
push 0
push 0
push 0xffffffffffffffff
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x4dae88], eax
push 0x4dae6c
push 4
push 0
push 0x443d00
push 0
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4dae70], eax
cmp dword [0x4dae70], 0
je 0x443ee7
mov edx, 0x443ef4
mov eax, dword [0x4dae6c]
call fcn.00435198
push 2
mov eax, dword [0x4dae70]
push eax
call sub.kernel32.dll_SetThreadPriority
mov eax, dword [0x4dae70]
push eax
call sub.kernel32.dll_ResumeThread
ret

Function at 0x443f30
Capabilities:
Terminate thread

Disassembly:
push ebx
cmp dword [0x4dae74], 0
je 0x444001
mov ebx, dword [0x4dae88]
xor eax, eax
mov dword [0x4dae88], eax
push ebx
call sub.kernel32.dll_SetEvent
push ebx
call sub.kernel32.dll_CloseHandle
cmp dword [0x4dae84], 0
je 0x443f79
mov ebx, dword [0x4dae84]
xor eax, eax
mov dword [0x4dae84], eax
push ebx
call sub.kernel32.dll_SetEvent
push ebx
call sub.kernel32.dll_CloseHandle
mov dword [0x4dae80], 0xffffffff
mov eax, 0x443cb8
xor ecx, ecx
xor edx, edx
call fcn.0040e29c
push 0x1f4
mov eax, dword [0x4dae70]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
je 0x443fc6
push 0
mov eax, dword [0x4dae70]
push eax
call sub.kernel32.dll_TerminateThread
cmp dword [0x4dae8c], 0
je 0x443fc6
mov eax, dword [0x4dae8c]
push eax
call sub.kernel32.dll_LocalFree
xor eax, eax
mov dword [0x4dae8c], eax
mov eax, dword [0x4dae70]
push eax
call sub.kernel32.dll_CloseHandle
push 0
push 0
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [0x4dae6c]
call fcn.00434f0c
xor eax, eax
mov dword [0x4dae70], eax
xor eax, eax
mov dword [0x4dae6c], eax
xor eax, eax
mov dword [0x4dae74], eax
pop ebx
ret
Function at 0x44be30
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 0x44be5c
push edi
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x44be5c
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 0x44e30c
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 [0x4da530], 0
je 0x44e332
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 0x44e3f4
push 1
push 0x44e3fc
push 1
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.0044e2a0
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.0043221c
test al, al
jne 0x44e39c
cmp esi, 0x80090318
jne 0x44e3a4
test edi, edi
je 0x44e3a4
mov byte [ebx + 0x5c], 1
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x44e3d4
cmp dword [ebp - 0x24], 0
je 0x44e3d4
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 0x44e3ca
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 0x44e3e8
cmp dword [ebp - 0x18], 0
je 0x44e3e8
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 0x44e404
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 0x44e489
mov dword [esp + 0x38], 1
mov eax, dword [ebx + 0x50]
mov dword [esp + 0x3c], eax
mov eax, dword [0x4da544]
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 0x44e5ac
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 0x44e5ac
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 0x44e5bc
push 1
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x30]
mov eax, ebx
call fcn.0044e2a0
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.0044e30c
mov ebp, eax
sub ebp, 0x80090318
je 0x44e5a4
sub ebp, 0x7ff6fce8
je 0x44e521
sub ebp, 0x90312
je 0x44e569
sub ebp, 0xe
je 0x44e595
jmp 0x44e5ac
cmp dword [esp + 0x30], 5
jne 0x44e563
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 0x44e5ac
cmp dword [esp + 0x30], 5
jne 0x44e58e
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 0x44e41e
xor esi, esi
jmp 0x44e41e
or dword [esp + 8], 0x80
xor edi, edi
jmp 0x44e41e
or edi, 0xffffffff
jmp 0x44e41e
movzx eax, byte [esp]
add esp, 0x14c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x44e5c4
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 0x44e6f2
mov eax, dword [ebp + 0x68]
cmp eax, dword [esp + 4]
jae 0x44e6f2
mov eax, dword [ebp + 0x68]
mov dword [esp + 4], eax
jmp 0x44e6f2
cmp edi, dword [esp + 4]
jbe 0x44e61b
mov esi, dword [esp + 4]
jmp 0x44e61d
mov esi, edi
cmp dword [ebp + 8], 0
je 0x44e6d7
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 0x44e708
push 3
lea ecx, [esp + 0x30]
lea edx, [esp + 0x24]
mov eax, ebp
call fcn.0044e2a0
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 0x44e6cf
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 0x44e6d3
xor ebx, ebx
jmp 0x44e6ed
mov bl, 1
jmp 0x44e6ed
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 0x44e6fe
test edi, edi
ja 0x44e60f
mov eax, ebx
add esp, 0x64
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x452ed8
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 0x452ff1
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 0x452f22
mov dword [ebp - 0x10], 0x600
jmp 0x452f29
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 0x452fd3
cmp esi, dword [ebp - 0x10]
jae 0x452f4f
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 0x452f7c
mov eax, dword [ebp - 4]
call sub.rtl250.bpl__System__LStrLen_qqrx31System__AnsiStringT_us_i65535__
cmp eax, dword [ebp - 0x14]
je 0x452f80
xor ebx, ebx
jmp 0x452fd3
cmp byte [ebp + 8], 0
je 0x452f9f
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0041b8c8
mov edx, dword [ebp - 0x18]
mov eax, edi
call fcn.004522d8
mov ebx, eax
jmp 0x452fab
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.004522d8
mov ebx, eax
test bl, bl
je 0x452fd3
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.0045281c
test esi, esi
ja 0x452f3e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452ff8
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 0x45898c
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 0x458acf
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00409fc0
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call sub.rtl250.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
cmp dword [ebp - 4], 0
je 0x458aa5
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 0x4589f9
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 0x458a45
mov eax, dword [ebp - 4]
call sub.rtl250.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x458a41
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0045898c
pop ecx
test al, al
je 0x458a3d
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 0x458a41
xor ebx, ebx
jmp 0x458aa7
mov bl, 1
jmp 0x458aa7
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 0x458aa1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0045898c
pop ecx
test al, al
je 0x458a9d
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 0x458aa1
xor ebx, ebx
jmp 0x458aa7
mov bl, 1
jmp 0x458aa7
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458ad6
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 0x465478
Capabilities:
Create pipe
Create thread

Disassembly:
push 0
push 0
push 0x4daf60
push 0x4daf5c
call sub.kernel32.dll_CreatePipe
test eax, eax
je 0x4654d0
push 0x4daf54
push 0
push 0
push 0x46538c
push 0
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4daf58], eax
cmp dword [0x4daf58], 0
je 0x4654d0
mov edx, 0x4654e0
mov eax, dword [0x4daf54]
call fcn.00435198
push 2
mov eax, dword [0x4daf58]
push eax
call sub.kernel32.dll_SetThreadPriority
ret

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

Disassembly:
add esp, 0xffffff6c
cmp dword [0x4daf54], 0xffffffff
je 0x46560c
mov eax, dword [0x4daf58]
push eax
call sub.kernel32.dll_ResumeThread
xor eax, eax
call fcn.004356b8
test al, al
jne 0x465594
lea eax, [esp + 4]
mov edx, 0x90
call fcn.00403d90
push 0
lea eax, [esp + 4]
push eax
push 0x90
lea eax, [esp + 0x10]
push eax
mov eax, dword [0x4daf60]
push eax
call sub.kernel32.dll_WriteFile
mov eax, dword [0x4daf60]
push eax
call sub.kernel32.dll_CloseHandle
push 0x1f4
mov eax, dword [0x4daf58]
push eax
call sub.kernel32.dll_WaitForSingleObject
jmp 0x46559f
mov eax, dword [0x4daf60]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x4daf5c]
push eax
call sub.kernel32.dll_CloseHandle
push 0x32
mov eax, dword [0x4daf58]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
je 0x4655dc
push 0
mov eax, dword [0x4daf58]
push eax
call sub.kernel32.dll_TerminateThread
cmp dword [0x4daf64], 0
je 0x4655dc
mov eax, dword [0x4daf64]
push eax
call sub.kernel32.dll_LocalFree
xor eax, eax
mov dword [0x4daf64], eax
mov eax, dword [0x4daf58]
push eax
call sub.kernel32.dll_CloseHandle
push 0
push 0
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [0x4daf54]
call fcn.00434f0c
mov dword [0x4daf54], 0xffffffff
add esp, 0x94
ret