joyce8/EMBER2024-capa huggingface dataset:
Function at 0x546120
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x552dc8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5ad880]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov edi, dword [esp + 0x24]
push edi
call fcn.005233f0
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
xor ebx, ebx
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
push ebx
add edi, 0x14
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push edi
mov dword [esp + 0x28], ebx
mov byte [ecx], bl
call fcn.004066b0
mov dword [esi + 0x30], vtable.boost::exception.0
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], 0xffffffff
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.1.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x5461d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x552e00
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5ad880]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.005233f0
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
push 0
lea edx, [edi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push edx
mov dword [esp + 0x24], 0
mov byte [ecx], 0
call fcn.004066b0
mov dword [esi], vtable.boost::lock_error.0
mov dword [esi + 0x30], vtable.boost::exception.0
mov ecx, dword [edi + 0x34]
mov dword [esp + 0x18], 1
mov dword [esi + 0x34], ecx
test ecx, ecx
je 0x546264
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov ecx, dword [edi + 0x3c]
mov dword [esi + 0x3c], ecx
mov edx, dword [edi + 0x40]
mov dword [esi + 0x40], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.1.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x546750
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x552f58
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5ad880]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov eax, dword [0x5aec1c]
cmp eax, 0xffffffff
jne 0x546785
xor esi, esi
jmp 0x54678e
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x24], 0
test esi, esi
je 0x5467d5
cmp dword [esi + 0x1c], 0
jne 0x546817
cmp dword [esi + 0xc], 0
jne 0x546820
push 0x544760
push 0x5b72c8
call fcn.005449c0
mov eax, dword [0x5aec1c]
add esp, 8
cmp eax, 0xffffffff
je 0x5467d5
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x24], 0xffffffff
test esi, esi
je 0x546803
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x546803
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
cmp dword [esi + 0xc], 0
je 0x546860
lea ecx, [ecx]
mov ebx, dword [esi + 0xc]
mov eax, dword [ebx + 4]
mov dword [esi + 0xc], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x54684e
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0xc], 0
jne 0x546820
cmp dword [esi + 0x1c], 0
je 0x5467aa
lea ebx, [ebx]
mov ecx, dword [esi + 0x18]
mov edi, dword [ecx]
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x54688b
mov eax, dword [edi + 0x18]
test eax, eax
je 0x54688b
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esi + 0x14]
call fcn.0042b610
cmp dword [esi + 0x1c], 0
jne 0x546870
jmp 0x5467a4

Function at 0x546940
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, ecx
mov eax, dword [edi]
lea ecx, [eax + 0x10]
push ecx
push 4
push eax
push 0x5468b0
push 0
push 0
call fcn.005246d8
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x546969
pop edi
xor al, al
pop ebx
ret
mov edx, dword [edi]
push esi
add edx, 4
mov eax, 1
lock xadd dword [edx], eax
mov esi, dword [edi]
mov eax, dword [esi + 8]
test eax, eax
je 0x54698d
cmp eax, 0xffffffff
je 0x54698d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebx
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop edi
mov al, 1
pop ebx
ret
Function at 0x548b16
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x548b51
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x548b38
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x548b49
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x548b53
inc edi
add eax, 0x28
cmp edi, esi
jb 0x548b2e
xor eax, eax
pop edi
pop esi
ret
Function at 0x4065ee
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406612
xor eax, eax
test eax, eax
je 0x406625
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406625
xor ecx, ecx
jmp 0x406628
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406751
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427d8c], 0
push esi
jne 0x406788
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406762
mov dword [ecx*4 + 0x427d88], eax
inc ecx
cmp ecx, 0x100
jl 0x40675d
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067b9
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427d88]
xor eax, esi
inc ecx
dec edx
jne 0x40679b
pop edi
not eax
pop esi
ret 0xc

Function at 0x402680
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x409008], 0x8088405
inc edx
mov dword [ebx + 0x409008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x407080
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [0x409214]
mov dword [eax], ecx
mov ebx, edx
test ebx, ebx
jle 0x4070a1
mov eax, 0xff
call fcn.00402680
xor byte [esi], al
inc esi
dec ebx
jne 0x407091
pop esi
pop ebx
ret
Function at 0x4096c0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x40d018]
xor eax, ebp
mov dword [ebp - 0x40], eax
xor eax, eax
mov word [ebp - 0x248], ax
push 0x206
push 0
lea ecx, [ebp - 0x246]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
xor edx, edx
mov word [ebp - 0x450], dx
push 0x206
push 0
lea eax, [ebp - 0x44e]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.MSVCR90.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x40974f
mov edx, dword [ebp + 0xc]
push edx
push 0x104
lea eax, [ebp - 0x450]
push eax
call fcn.004062c0
push 0x40b3b4
push 0x104
lea ecx, [ebp - 0x450]
push ecx
call fcn.00406310
jmp 0x40979e
lea edx, [ebp - 0x450]
push edx
push 0
push 0
push 0x2b
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x409780
push 0x40b3b8
push 0x104
lea eax, [ebp - 0x450]
push eax
call fcn.00406310
jmp 0x40979e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40b3d8
push str.SHGetFolderPath_failed
call fcn.004080a0
add esp, 0xc
jmp 0x409874
lea ecx, [ebp - 0x450]
push ecx
push 0x104
lea edx, [ebp - 0x248]
push edx
call fcn.004062c0
push str.AdobeARMHelper.exe
push 0x104
lea eax, [ebp - 0x248]
push eax
call fcn.00406310
push 0xffffffffffffffff
lea ecx, [ebp - 0x248]
push ecx
call fcn.004095f0
add esp, 8
test eax, eax
jne 0x4097fc
push 0x357
lea edx, [ebp - 0x248]
push edx
push str.Service_workflow_failed__file_not_valid:
call fcn.004080a0
add esp, 0xc
jmp 0x409874
mov dword [ebp - 0x3c], 0
push 0x38
push 0
lea eax, [ebp - 0x38]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x540
mov dword [ebp - 0x20], 5
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x28], ecx
lea edx, [ebp - 0x248]
mov dword [ebp - 0x2c], edx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40985b
push 0
push 0x40b48c
push str.ShellExecuteEx_succeeded
call fcn.004080a0
add esp, 0xc
jmp 0x409874
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40b4c4
push str.ShellExecuteEx_failed
call fcn.004080a0
add esp, 0xc
mov ecx, dword [ebp - 0x40]
xor ecx, ebp
call fcn.00407458
mov esp, ebp
pop ebp
ret

Function at 0x493260
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
pushal
mov ebx, dword [esp + 0x24]
mov ecx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
add ebx, ecx
mov edi, dword [ebx + 0x20]
add edi, ecx
xor esi, esi
lea edx, [edi + esi*4]
mov edx, dword [edx]
add edx, ecx
xor eax, eax
rol eax, 7
xor al, byte [edx]
inc edx
cmp byte [edx], 0
jne 0x49327f
cmp eax, dword [esp + 0x28]
je 0x493296
inc esi
cmp esi, dword [ebx + 0x18]
jb 0x493276
lea edx, [edi + esi*4]
mov edx, dword [edx]
add edx, ecx
mov dword [esp + 0x1c], edx
popal
ret 8
Function at 0x402f34
Capabilities:
Packed with generic packer

Disassembly:
adc dword [esp + edx*2], ecx
dec ebx
dec eax
dec ecx
dec esi
inc esi
dec edi
inc ecx
jb 0x402fb2
popal
jns 0x402f5b
add byte [eax], al
add byte [ebp - 0xffc0], dh
invalid
inc ecx
pushal
das
inc eax
add byte [ecx], dl
adc dword [esp + edx*2], ecx
jb 0x40301d
outsb dx, byte [esi]
add byte [si], al
dec ebx

Function at 0x4172d0
Capabilities:
Query environment variable
Set environment variable

Disassembly:
add edx, dword [esi]
push esp
push eax
jb 0x417345
arpl word [ebp + 0x73], sp
jae 0x41734a
jb 0x41731e
jb 0x417342
push 0x63657469
je 0x41735b
jb 0x41734d
add dword [eax], eax
add byte [eax], al
add byte [ebx], al
add byte [eax], al
add ah, cl
jb 0x417335
add byte [ecx], cl
jo 0x417359
push ebp
outsb dx, byte [esi]
imul ebp, dword [esi + 0x6f], 0x77
outsb dx, byte [esi]
pop es
jo 0x417363
js 0x41733c
xor esi, dword ss:[edx]
pop es
jo 0x41736b
js 0x417344
xor al, 6
jo 0x417373
dec ecx
inc ecx
xor al, 0xa
dec edx
arpl word [ebx + edx*2 + 0x79], bp
jae 0x417367
outsb dx, byte [esi]
outsw dx, word [esi]
lea eax, [eax]
sub byte [ebx + 0x41], dh
add byte [ebx], al
andps xmm2, xmmword [esp + ecx*2 + 0x42]
add byte [eax], al
add dword [eax], eax
add byte [eax], al
and al, 0x73
popal
imul esi, dword [esi + 0x69], 0x4a0a7974
arpl word [ebx + edx*2 + 0x79], bp
jae 0x4173b1
imul esp, dword [ecx + 0x74], 0x74697669
jns 0x4173c0
or cl, byte [edx + 0x63]

Function at 0x417924
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x417a1c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call sub.rtl70.bpl__Classes_TStrings_BeginUpdate_qqrv
xor eax, eax
push ebp
push 0x4179ff
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
call sub.kernel32.dll_GetEnvironmentStringsA
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4179a0
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call sym.P_Interface.bpl__Jclstrings_MultiSzToStrings_qqrpx16Classes_TStringspxc
mov byte [ebp - 6], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4179a7
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FreeEnvironmentStringsA
ret
Function at 0x417d24
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl70.bpl__System__LStrAddRef_qqrpv
mov eax, dword [ebp - 8]
call sub.rtl70.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x417dd9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x417dbe
cmp dword [ebp - 8], 0
jne 0x417d7e
mov ecx, dword [ebp - 4]
mov edx, 0x417dec
mov eax, 0x80000001
call sym.P_Interface.bpl__Jclregistry_RegDeleteEntry_qqrxuix17System_AnsiStringt2
push 0
mov eax, dword [ebp - 4]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.kernel32.dll_SetEnvironmentVariableA
jmp 0x417dab
mov eax, dword [ebp - 8]
push eax
mov edx, 0x417dec
mov ecx, dword [ebp - 4]
mov eax, 0x80000001
call sym.P_Interface.bpl__Jclregistry_RegWriteString_qqrxuix17System_AnsiStringt2t2
mov eax, dword [ebp - 8]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
mov eax, dword [ebp - 4]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.kernel32.dll_SetEnvironmentVariableA
push 0x417df8
push 0
push 0x1a
push 0xffff
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417de0
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl70.bpl__System__LStrArrayClr_qqrpvi
ret
Function at 0x41826c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffecc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x14], ebx
mov edi, ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4183c3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call sub.rtl70.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x14]
mov ecx, 0x4183dc
mov edx, esi
call sub.rtl70.bpl__System__LStrCat3_qqrv
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x418396
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 8], eax
push 0x10
lea eax, [ebp - 0x129]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x105
lea eax, [ebp - 0x119]
push eax
mov eax, dword [ebp - 0x14]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x41837f
sub bl, 1
jb 0x418315
je 0x418324
dec bl
je 0x418372
jmp 0x41837f
mov edx, edi
lea eax, [ebp - 0x119]
call sub.rtl70.bpl__Sysutils_StrPas_qqrpxc
jmp 0x41837f
mov eax, dword [ebp - 4]
call fcn.004021c4
movzx eax, ax
lea ecx, [ebp - 0x130]
mov edx, 4
call sub.rtl70.bpl__Sysutils_IntToHex_qqrii
push dword [ebp - 0x130]
push 0x4183e8
lea ecx, [ebp - 0x134]
movzx eax, word [ebp - 4]
mov edx, 4
call sub.rtl70.bpl__Sysutils_IntToHex_qqrii
push dword [ebp - 0x134]
mov eax, edi
mov edx, 3
call sub.rtl70.bpl__System__LStrCatN_qqrv
jmp 0x41837f
mov edx, edi
lea eax, [ebp - 0x129]
call sub.rtl70.bpl__Sysutils_StrPas_qqrpxc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41839d
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x418428
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4184c3
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
push 0
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
lea edx, [ebp - 0xc]
mov eax, ebx
call sym.P_Interface.bpl__Jclfileutils_PathAddSeparator_qqrx17System_AnsiString
mov eax, dword [ebp - 0xc]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
jne 0x418483
call sub.rtl70.bpl__Sysutils_RaiseLastOSError_qqrv
mov di, word [0x4184d4]
xor ebx, ebx
mov esi, 0x677710
mov eax, dword [ebp - 8]
and eax, dword [esi]
je 0x4184a4
mov eax, ebx
cmp al, 0xf
ja 0x4184a4
and eax, 0x7f
bts edi, eax
inc ebx
add esi, 4
cmp bl, 0xe
jne 0x418491
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4184ca
lea eax, [ebp - 0xc]
call sub.rtl70.bpl__System__LStrClr_qqrpv
ret
Function at 0x4184d8
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe54
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x1ac], ecx
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4185f5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call sub.rtl70.bpl__System__LStrClr_qqrpv
mov word [ebp - 0x194], 0
lea eax, [ebp - 0x194]
push eax
mov dl, 1
mov al, 1
call fcn.004021a4
push eax
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x4185d4
xor edx, edx
push ebp
push 0x4185cd
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 4]
mov dword [ebp - 0x1a8], esi
mov edx, dword [ebp - 0x1a8]
call sub.rtl70.bpl__System__LStrLAsg_qqrpvpxv
cmp dword [ebp - 4], 0
jne 0x418576
lea eax, [ebp - 4]
mov edx, 0x104
call sub.rtl70.bpl__System__LStrSetLength_qqrv
push 0x104
mov eax, dword [ebp - 4]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.wsock32.dll_gethostname
mov eax, dword [ebp - 4]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4185ba
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x1a0], eax
push dword [ebp - 0x1a0]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x1ac]
call sub.rtl70.bpl__System__LStrFromPChar_qqrr17System_AnsiStringpc
mov edx, dword [ebp - 0x1ac]
mov eax, ebx
call sub.rtl70.bpl__System__LStrAsg_qqrpvpxv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4185d4
call sub.wsock32.dll_WSACleanup
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4185fc
lea eax, [ebp - 0x1ac]
call sub.rtl70.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 4]
call sub.rtl70.bpl__System__LStrClr_qqrpv
ret
Function at 0x41860c
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe64
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x19c], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x418719
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x198], 0
lea eax, [ebp - 0x198]
push eax
mov dl, 1
mov al, 1
call fcn.004021a4
push eax
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x4186f8
xor edx, edx
push ebp
push 0x4186f1
push dword fs:[edx]
mov dword fs:[edx], esp
test ebx, ebx
jne 0x418691
lea eax, [ebp - 8]
mov edx, 0x104
call sub.rtl70.bpl__System__LStrSetLength_qqrv
push 0x104
mov eax, dword [ebp - 8]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.wsock32.dll_gethostname
jmp 0x41869b
lea eax, [ebp - 8]
mov edx, ebx
call sub.rtl70.bpl__System__LStrLAsg_qqrpvpxv
mov eax, dword [ebp - 8]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4186de
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x4186d7
push dword [edi]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x19c]
call sub.rtl70.bpl__System__LStrFromPChar_qqrr17System_AnsiStringpc
mov edx, dword [ebp - 0x19c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc ebx
mov edi, dword [esi + ebx*4]
test edi, edi
jne 0x4186b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4186f8
call sub.wsock32.dll_WSACleanup
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418720
lea eax, [ebp - 0x19c]
call sub.rtl70.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 8]
call sub.rtl70.bpl__System__LStrClr_qqrpv
ret
Function at 0x418880
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 1
mov eax, ebx
call sub.rtl70.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, esi
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
mov edi, eax
push edi
push 0
call sub.advapi32.dll_LookupAccountNameA
mov edx, dword [ebp - 8]
inc edx
mov eax, ebx
call sub.rtl70.bpl__System__LStrSetLength_qqrv
mov eax, dword [ebp - 4]
call sub.rtl70.bpl__Sysutils_AllocMem_qqrui
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x418949
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
push edi
push 0
call sub.advapi32.dll_LookupAccountNameA
test eax, eax
je 0x418924
mov eax, ebx
call sym.P_Interface.bpl__Jclstrings_StrResetLength_qqrr17System_AnsiString
jmp 0x418933
mov eax, ebx
mov edx, dword [sym.imp.rtl70.bpl__Sysutils_EmptyStr]
mov edx, dword [edx]
call sub.rtl70.bpl__System__LStrAsg_qqrpvpxv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418950
mov eax, dword [ebp - 0xc]
call sub.rtl70.bpl__System__FreeMem_qqrpv
ret

Function at 0x41968c
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl70.bpl__Classes_TStrings_BeginUpdate_qqrv
xor eax, eax
push ebp
push 0x4196d8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
push eax
push 0x4195f4
call sub.user32.dll_EnumWindows
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4196df
mov eax, dword [ebp - 4]
call sub.rtl70.bpl__Classes_TStrings_EndUpdate_qqrv
ret