joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e5ec
Capabilities:
Create process on windows
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff80
push ebx
push esi
mov eax, dword [sym.imp.rtl120.bpl__Sysutils_Win32Platform]
cmp dword [eax], 1
jne 0x45e6e1
push 0x45e7d8
push 0x45e808
call sub.user32.dll_FindWindowW
test eax, eax
je 0x45e61e
mov byte [ebp - 1], 1
jmp 0x45e7cb
lea eax, [ebp - 0x54]
xor ecx, ecx
mov edx, 0x44
call sub.rtl120.bpl__System__FillChar_qqrpvib
mov dword [ebp - 0x54], 0x44
mov eax, 0x104
call sub.rtl120.bpl__System__GetMem_qqri
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x45e6da
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0x104
push 0
push 0x45e828
push 0
call sub.kernel32.dll_SearchPathW
test eax, eax
jne 0x45e67b
call sub.kernel32.dll_GetLastError
test eax, eax
sete byte [ebp - 1]
jmp 0x45e6c4
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0x210
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x45e6ae
call sub.kernel32.dll_GetLastError
test eax, eax
sete byte [ebp - 1]
jmp 0x45e6c4
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_CloseHandle
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e7cb
mov eax, dword [ebp - 8]
call sub.rtl120.bpl__System__FreeMem_qqrpv
ret
push 1
push 0
push 0
call sub.advapi32.dll_OpenSCManagerW
mov ebx, eax
test ebx, ebx
jne 0x45e702
call sub.kernel32.dll_GetLastError
test eax, eax
sete byte [ebp - 1]
jmp 0x45e7cb
push 4
push 0x45e840
push ebx
call sub.advapi32.dll_OpenServiceW
mov esi, eax
test esi, esi
jne 0x45e724
push 0x10
push 0x45e840
push ebx
call sub.advapi32.dll_OpenServiceW
mov esi, eax
push ebx
call sub.advapi32.dll_CloseServiceHandle
test esi, esi
jne 0x45e73e
call sub.kernel32.dll_GetLastError
test eax, eax
sete byte [ebp - 1]
jmp 0x45e7cb
lea eax, [ebp - 0x80]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
jne 0x45e75f
push esi
call sub.advapi32.dll_CloseServiceHandle
call sub.kernel32.dll_GetLastError
test eax, eax
sete byte [ebp - 1]
jmp 0x45e7cb
cmp dword [ebp - 0x7c], 4
jne 0x45e771
push esi
call sub.advapi32.dll_CloseServiceHandle
mov byte [ebp - 1], 1
jmp 0x45e7cb
xor eax, eax
mov dword [ebp - 0x10], eax
push esi
call sub.advapi32.dll_CloseServiceHandle
push 1
push 0
push 0
call sub.advapi32.dll_OpenSCManagerW
mov ebx, eax
push 0x10
push 0x45e840
push ebx
call sub.advapi32.dll_OpenServiceW
mov esi, eax
push ebx
call sub.advapi32.dll_CloseServiceHandle
lea eax, [ebp - 0x10]
push eax
push 0
push esi
call sub.advapi32.dll_StartServiceW
test eax, eax
jne 0x45e7c1
push esi
call sub.advapi32.dll_CloseServiceHandle
call sub.kernel32.dll_GetLastError
test eax, eax
sete byte [ebp - 1]
jmp 0x45e7cb
push esi
call sub.advapi32.dll_CloseServiceHandle
mov byte [ebp - 1], 1
movzx eax, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45e8f8
Capabilities:
Query service status

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe4
xor ebx, ebx
mov eax, dword [sym.imp.rtl120.bpl__Sysutils_Win32Platform]
cmp dword [eax], 1
jne 0x45e920
push 0x45e98c
push 0x45e9bc
call sub.user32.dll_FindWindowW
test eax, eax
setne bl
jmp 0x45e980
push 1
push 0
push 0
call sub.advapi32.dll_OpenSCManagerW
mov esi, eax
test esi, esi
jne 0x45e93d
call sub.kernel32.dll_GetLastError
test eax, eax
sete bl
jmp 0x45e980
push 4
push 0x45e9dc
push esi
call sub.advapi32.dll_OpenServiceW
mov edi, eax
test edi, edi
je 0x45e980
push esi
call sub.advapi32.dll_CloseServiceHandle
push esp
push edi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
jne 0x45e969
push edi
call sub.advapi32.dll_CloseServiceHandle
jmp 0x45e980
cmp dword [esp + 4], 4
jne 0x45e97a
push edi
call sub.advapi32.dll_CloseServiceHandle
mov bl, 1
jmp 0x45e980
push edi
call sub.advapi32.dll_CloseServiceHandle
mov eax, ebx
add esp, 0x1c
pop edi
pop esi
pop ebx
ret

Function at 0x45f9c4
Capabilities:
Check os version

Disassembly:
push ebx
add esp, 0xfffffee0
xor ebx, ebx
lea eax, [esp + 0xc]
mov edx, 0x114
call fcn.004024a4
mov dword [esp + 0xc], 0x114
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x45f9fc
cmp dword [esp + 0x10], 6
jae 0x45f9fc
mov bl, 1
jmp 0x45fa3e
push esp
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x45fa3e
lea eax, [esp + 8]
push eax
push 4
lea eax, [esp + 0xc]
push eax
push 0x14
mov eax, dword [esp + 0x10]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
je 0x45fa3e
cmp dword [esp + 8], 4
jne 0x45fa35
mov ebx, dword [esp + 4]
mov eax, dword [esp]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, ebx
add esp, 0x120
pop ebx
ret

Function at 0x45fffc
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x210], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4600b6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x104
xor eax, eax
push ebp
push 0x460093
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x46007d
push 0x4600d0
lea eax, [ebp - 0x210]
lea edx, [ebp - 0x20c]
mov ecx, 0x104
call sub.rtl120.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
push dword [ebp - 0x210]
push 0x460110
mov eax, ebx
mov edx, 3
call sub.rtl120.bpl__System__UStrCatN_qqrv
jmp 0x460089
mov eax, ebx
mov edx, 0x460120
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46009d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4600bd
lea eax, [ebp - 0x210]
call sub.rtl120.bpl__System__UStrClr_qqrpv
ret
Function at 0x460150
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
xor edx, edx
push ebp
push 0x4601d3
push dword fs:[edx]
mov dword fs:[edx], esp
test al, al
je 0x460179
lea eax, [ebp - 4]
mov edx, 0x4601f0
call sub.rtl120.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
jmp 0x460186
lea eax, [ebp - 4]
mov edx, 0x460220
call sub.rtl120.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
push 1
push 0
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
lea edx, [ebp - 8]
xor eax, eax
call sub.rtl120.bpl__System_ParamStr_qqri
mov eax, dword [ebp - 8]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
push 0x460234
push 0
call sub.shell32.dll_ShellExecuteW
cmp eax, 0x20
seta bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4601da
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl120.bpl__System__UStrArrayClr_qqrpvi
ret
Function at 0x47bf2c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x47bf7d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x47bf64
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x47bf54
jmp 0x47bf7d
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x47bf65
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48c4e8
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x48c516
mov eax, ebx
call fcn.0048cf9c
cmp dword [ebx + 0x40], 0
je 0x48c50f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x48c587
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x48c579
cmp dword [ebx + 8], 0
je 0x48c538
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x48c54a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x48c579
cmp dword [ebx + 8], 0
je 0x48c52b
cmp eax, 3
je 0x48c55d
dec eax
jne 0x48c52b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x48c52b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x48c52b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x48c5a5
cmp dword [ebx + 0x14], 0xcc
je 0x48c5a5
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0048c5b0
pop ebx
ret
Function at 0x4d8e34
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x20], 0
jne 0x4d8f4d
mov eax, esi
call sub.vcl120.bpl__Graphics_TPicture_GetHeight_qqrv
cmp eax, 0x1e
jl 0x4d8f4d
mov eax, dword [ebx + 4]
cmp dword [eax + 0x284], 0x1e
jl 0x4d8f4d
mov dl, 1
mov eax, dword [0x4a1c24]
call fcn.004a2fd8
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d8f46
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [esi + 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
test eax, eax
jne 0x4d8ea6
call sub.rtl120.bpl__System__TryFinallyExit_qqrv
jmp 0x4d8f4d
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
mov esi, eax
sar esi, 1
jns 0x4d8eb7
adc esi, 0
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
dec eax
push eax
mov eax, dword [ebp - 4]
call sub.vcl120.bpl__Graphics_TBitmap_GetCanvas_qqrv
mov edx, esi
pop ecx
call sub.vcl120.bpl__Graphics_TCanvas_GetPixel_qqrii
push eax
mov eax, dword [ebp - 4]
call sub.vcl120.bpl__Graphics_TBitmap_GetCanvas_qqrv
xor ecx, ecx
mov edx, esi
call sub.vcl120.bpl__Graphics_TCanvas_GetPixel_qqrii
pop edx
call fcn.004d8dc4
cmp eax, 2
jge 0x4d8f30
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
dec eax
sar eax, 1
jns 0x4d8efe
adc eax, 0
push eax
mov eax, dword [ebp - 4]
call sub.vcl120.bpl__Graphics_TBitmap_GetCanvas_qqrv
mov edx, esi
pop ecx
call sub.vcl120.bpl__Graphics_TCanvas_GetPixel_qqrii
push eax
mov eax, dword [ebp - 4]
call sub.vcl120.bpl__Graphics_TBitmap_GetCanvas_qqrv
xor ecx, ecx
mov edx, esi
call sub.vcl120.bpl__Graphics_TCanvas_GetPixel_qqrii
pop edx
call fcn.004d8dc4
cmp eax, 2
jle 0x4d8f30
mov byte [ebx + 0x20], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d8f4d
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System_TObject_Free_qqrv
ret
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4ff7cc
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, eax
mov edx, ebx
mov eax, dword [ebx + 0x78]
call sub.rtl120.bpl__Classes_TComponent_RemoveFreeNotification_qqrp18Classes_TComponent
mov dl, 1
mov eax, dword [ebx + 0x78]
call sub.vcl120.bpl__Forms_GetParentForm_qqrp17Controls_TControlo
mov edx, dword [sym.imp.vcl120.bpl__Forms_TForm_]
call sub.rtl120.bpl__System__AsClass_qqrp14System_TObjectp17System_TMetaClass
mov esi, eax
mov dword [ebx + 0x78], esi
mov edx, ebx
mov eax, esi
call sub.rtl120.bpl__Classes_TComponent_FreeNotification_qqrp18Classes_TComponent
test byte [ebx + 0x1c], 0x10
jne 0x4ff85b
cmp word [0x7d318e], 0
jne 0x4ff85b
mov eax, dword [ebx + 0x78]
mov dword [0x7d3188], eax
mov eax, dword [ebx + 0x78]
mov edx, dword [eax + 0x38]
mov dword [0x7d318c], edx
mov edx, dword [eax + 0x3c]
mov dword [0x7d3190], edx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], 0x4ff918
mov eax, dword [0x7d318c]
cmp eax, dword [ebp - 8]
je 0x4ff853
mov eax, dword [ebx + 0x78]
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x38], 0x4ff918
jmp 0x4ff85b
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
cmp dword [0x7d3194], 0
jne 0x4ff881
call sub.kernel32.dll_GetCurrentThreadId
push eax
mov eax, dword [0x7a2004]
push eax
push 0x4ff5d0
push 2
call sub.user32.dll_SetWindowsHookExW
mov dword [0x7d3194], eax
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x50efa8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov dword [esp], edx
mov ebx, eax
xor esi, esi
xor ebp, ebp
movzx edi, byte [ebx + 0x2c9]
movzx eax, byte [ebx + 0x2d0]
push eax
mov eax, edi
pop edx
mov ecx, edx
cdq
idiv ecx
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
jne 0x50efe2
mov dword [esp + 4], 1
call sub.kernel32.dll_GetTickCount
sub eax, ebp
cmp eax, dword [ebx + 0x2cc]
jbe 0x50f019
call sub.kernel32.dll_GetTickCount
mov ebp, eax
add esi, dword [esp + 4]
cmp edi, esi
jge 0x50f002
mov esi, edi
mov eax, esi
mov byte [ebx + 0x27a], al
push ebx
push fcn.0050ee54
mov eax, dword [esp + 8]
call sub.rtl120.bpl__Classes_TThread_Synchronize_qqrynpqqrv_v
push 2
call sub.kernel32.dll_Sleep_1
mov eax, dword [esp]
cmp byte [eax + 0xd], 0
jne 0x50f053
mov eax, dword [sym.imp.vcl120.bpl__Forms_Application]
mov eax, dword [eax]
cmp byte [eax + 0xa0], 0
jne 0x50f053
cmp dword [ebx + 0x270], 0
je 0x50f053
mov eax, dword [sym.imp.vcl120.bpl__Forms_Application]
mov eax, dword [eax]
test byte [eax + 0x1c], 8
jne 0x50f053
cmp edi, esi
jg 0x50efe2
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x50f0ac
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebx + 0x2c9]
mov esi, eax
xor ebp, ebp
mov ecx, eax
movzx eax, byte [ebx + 0x2d0]
push eax
mov eax, ecx
pop edx
mov ecx, edx
cdq
idiv ecx
mov dword [esp], eax
cmp dword [esp], 0
jne 0x50f0e2
mov dword [esp], 1
call sub.kernel32.dll_GetTickCount
sub eax, ebp
cmp eax, dword [ebx + 0x2cc]
jbe 0x50f117
call sub.kernel32.dll_GetTickCount
mov ebp, eax
sub esi, dword [esp]
cmp esi, dword [esp]
jge 0x50f102
xor esi, esi
mov eax, esi
mov byte [ebx + 0x27a], al
push ebx
push fcn.0050eeb0
mov eax, edi
call sub.rtl120.bpl__Classes_TThread_Synchronize_qqrynpqqrv_v
push 2
call sub.kernel32.dll_Sleep_1
mov eax, edi
cmp byte [eax + 0xd], 0
jne 0x50f14f
mov edx, dword [sym.imp.vcl120.bpl__Forms_Application]
mov edx, dword [edx]
cmp byte [edx + 0xa0], 0
jne 0x50f14f
mov edx, dword [sym.imp.vcl120.bpl__Forms_Application]
mov edx, dword [edx]
test byte [edx + 0x1c], 8
jne 0x50f14f
cmp dword [eax + 0x4c], 1
je 0x50f160
test esi, esi
jg 0x50f0e2
push ebx
mov eax, dword [ebx]
mov eax, dword [eax + 0xf8]
push eax
mov eax, edi
call sub.rtl120.bpl__Classes_TThread_Queue_qqrynpqqrv_v
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x514468
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, ecx
mov edi, edx
mov ebx, eax
push 6
push ebx
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
je 0x5144aa
mov eax, dword [sym.imp.rtl120.bpl__System_DebugHook]
cmp byte [eax], 0
je 0x51449e
mov ecx, 0x11bd
mov edx, 0x514520
mov eax, 0x51459c
call sub.rtl120.bpl__System__Assert_qqrx20System_UnicodeStringt1i
push 0x5145e0
call sub.kernel32.dll_OutputDebugStringW
jmp 0x51450a
mov eax, ebx
call fcn.00514400
mov ebx, eax
push esp
push 5
push esi
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_ReadProcessMemory
test eax, eax
je 0x51450a
mov byte [esp + 4], 0xe9
sub edi, ebx
sub edi, 5
mov dword [esp + 5], edi
lea eax, [esp + 0xc]
push eax
push 8
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
push esp
push 5
lea eax, [esp + 0xc]
push eax
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_WriteProcessMemory
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x10]
push eax
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x514608
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov esi, edx
mov ebx, eax
cmp byte [esi], 0
je 0x514691
test ebx, ebx
je 0x514691
push 6
push ebx
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
je 0x514650
mov eax, dword [sym.imp.rtl120.bpl__System_DebugHook]
cmp byte [eax], 0
je 0x514644
mov ecx, 0x11de
mov edx, 0x5146a4
mov eax, 0x514720
call sub.rtl120.bpl__System__Assert_qqrx20System_UnicodeStringt1i
push 0x514764
call sub.kernel32.dll_OutputDebugStringW
jmp 0x514691
mov eax, ebx
call fcn.00514400
mov ebx, eax
test ebx, ebx
je 0x514691
lea eax, [esp + 4]
push eax
push 8
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
push esp
push 5
push esi
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_WriteProcessMemory
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 8]
push eax
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
mov byte [esi], 0
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x517528
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov eax, edi
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x5175b4
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
mov esi, eax
push esi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExW
cmp dword [ebp - 0xc], 0
je 0x5175ab
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push esi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x5175ab
mov eax, dword [ebp - 0x10]
add eax, 0xfffffffc
sub eax, 2
jae 0x5175ab
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x5175c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, ebx
mov edx, dword [ebp + 0xc]
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov eax, edi
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x51767f
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
mov edi, eax
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExW
cmp dword [ebp - 0xc], 0
je 0x517676
mov eax, dword [ebp - 0xc]
call sub.rtl120.bpl__System_AllocMem_qqrui
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x51766f
mov eax, dword [ebp - 0x10]
dec eax
sub eax, 2
jb 0x517658
sub eax, 4
jne 0x517663
mov eax, ebx
mov edx, esi
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
jmp 0x51766f
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov edx, esi
call sub.rtl120.bpl__System__UStrFromPWCharLen_qqrr20System_UnicodeStringpbi
mov eax, esi
call sub.rtl120.bpl__System__FreeMem_qqrpv
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x519a70
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
push ecx
mov dword [esp], eax
mov eax, 0xedb88320
xor esi, esi
mov ebx, dword [esp]
mov edx, esi
mov ecx, 0xfffffff8
mov edi, edx
and edi, 1
dec edi
jne 0x519a96
shr edx, 1
xor edx, eax
jmp 0x519a98
shr edx, 1
inc ecx
jne 0x519a88
mov dword [ebx], edx
inc esi
add ebx, 4
cmp esi, 0x100
jne 0x519a81
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x519cc4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__LStrAddRef_qqrpv
mov eax, dword [ebp - 8]
call sub.rtl120.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x519dcb
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
call sub.rtl120.bpl__System__LStrClr_qqrpv
cmp dword [ebp - 8], 0
jne 0x519d17
mov eax, edi
mov edx, dword [ebp - 4]
call sub.rtl120.bpl__System__LStrAsg_qqrpvpxv
jmp 0x519db0
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00519c0c
lea eax, [ebp - 4]
xor edx, edx
call sub.rtl120.bpl__System__EnsureAnsiString_qqrr27System__AnsiStringT_us_i0__us
call sub.rtl120.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
mov esi, eax
test esi, esi
jle 0x519da6
mov ebx, 1
lea eax, [ebp - 0x10]
xor edx, edx
call sub.rtl120.bpl__System__EnsureAnsiString_qqrr27System__AnsiStringT_us_i0__us
call sub.rtl120.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
push eax
mov eax, ebx
pop edx
mov ecx, edx
cdq
idiv ecx
push edx
lea eax, [ebp - 0x10]
xor edx, edx
call sub.rtl120.bpl__System__EnsureAnsiString_qqrr27System__AnsiStringT_us_i0__us
pop edx
movzx eax, byte [eax + edx]
call fcn.00519ae0
push eax
lea eax, [ebp - 4]
xor edx, edx
call sub.rtl120.bpl__System__EnsureAnsiString_qqrr27System__AnsiStringT_us_i0__us
movzx eax, byte [eax + ebx - 1]
call fcn.00519ae0
mov edx, eax
pop eax
xor al, dl
call fcn.00519b88
mov edx, eax
lea eax, [ebp - 0x14]
mov ecx, 0
call sub.rtl120.bpl__System__LStrFromChar_qqrr27System__AnsiStringT_us_i0__cus
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0xc]
call sub.rtl120.bpl__System__LStrCat_qqrv
inc ebx
dec esi
jne 0x519d3c
mov eax, edi
mov edx, dword [ebp - 0xc]
call sub.rtl120.bpl__System__LStrAsg_qqrpvpxv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x519dd2
lea eax, [ebp - 0x14]
mov edx, 5
call sub.rtl120.bpl__System__LStrArrayClr_qqrpvi
ret