joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d824
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
push 0x40
push 0x1000
push 0x11
push 0
call sub.kernel32.dll_VirtualAlloc
mov ebx, eax
mov dword [ebp - 4], ebx
mov eax, ebx
mov byte [eax], 0x58
mov byte [eax + 1], 0x68
mov dword [eax + 2], esi
mov byte [eax + 6], 0x50
mov byte [eax + 7], 0xff
mov byte [eax + 8], 0x25
lea edx, [eax + 0xd]
mov dword [eax + 9], edx
mov dword [eax + 0xd], edi
lea eax, [ebp - 8]
push eax
push 0x20
push 0x11
push 0
call sub.kernel32.dll_VirtualProtect
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x40e3cc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor eax, eax
push ebp
push 0x40e418
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 2
mov edi, esi
mov eax, edi
call fcn.0040f3ec
test al, al
jne 0x40e40e
cmp word [edi], 0x5a4d
jne 0x40e40e
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x40e40e
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40e424
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40e5c0
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
cmp byte [0x4e0b10], 0
jne 0x40e6a1
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x40e613
push 0x10000
push 0x40
call sub.kernel32.dll_LocalAlloc
mov ebx, eax
push 0x8000
push ebx
push esi
call sub.kernel32.dll_GetModuleFileNameW
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.kernel32.dll_CreateFileW
mov esi, eax
jmp 0x40e644
push 0x105
push 0x40
call sub.kernel32.dll_LocalAlloc
mov ebx, eax
push 0x104
push ebx
push esi
call sub.kernel32.dll_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.kernel32.dll_CreateFileA
mov esi, eax
push ebx
call sub.kernel32.dll_LocalFree
cmp esi, 0xffffffff
je 0x40e6a1
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x40e66f
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingW
mov ebx, eax
jmp 0x40e681
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingA
mov ebx, eax
test ebx, ebx
je 0x40e69b
push 0
push 0
push 0
push 4
push ebx
call sub.kernel32.dll_MapViewOfFile
mov edi, eax
push ebx
call sub.kernel32.dll_CloseHandle
push esi
call sub.kernel32.dll_CloseHandle
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x41819c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x4182e9
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x4181c4
cmp dword [ebx + 4], 0
jne 0x4182e9
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x4181ea
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x4181ea
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
push 0
push 0x100000
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
sub eax, dword [ebx + 8]
sbb edx, dword [ebx + 0xc]
push edx
push eax
call fcn.00416520
mov esi, eax
mov dword [ebx + 4], esi
test esi, esi
je 0x4182e9
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
jne 0x418299
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x41823f
push 4
push 0x1000
push 0x100000
push 0
call sub.kernel32.dll_VirtualAlloc
mov edx, dword [ebp + 8]
mov dword [edx - 0xc], eax
push dword [ebx + 0xc]
push dword [ebx + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
xor ecx, ecx
xor edx, edx
call fcn.00416560
test al, al
je 0x41828f
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x41828f
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 4]
jne 0x41828f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
jmp 0x4182b7
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
jmp 0x4182b7
push dword [ebx + 0xc]
push dword [ebx + 8]
mov ecx, esi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 4
call fcn.004165b4
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
mov dword [ebx], eax
cmp dword [ebx + 0xc], 0
jne 0x4182e9
cmp dword [ebx + 8], 0
jne 0x4182e9
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
cdq
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
add dword [ebx], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
sub dword [ebx + 4], eax
pop esi
pop ebx
pop ecx
pop ebp
ret

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

Disassembly:
push esi
mov esi, eax
dec ecx
test ecx, ecx
jl 0x41a7c8
inc ecx
mov eax, edx
mov edx, esi
xor dl, byte [eax]
movzx edx, dl
mov edx, dword [edx*4 + 0x4e2034]
shr esi, 8
xor edx, esi
mov esi, edx
inc eax
dec ecx
jne 0x41a7af
mov eax, esi
pop esi
ret
Function at 0x41b4d0
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffa0
push ebx
push esi
push edi
mov byte [ebp - 0x104d], cl
mov dword [ebp - 0x104c], edx
mov edi, eax
mov ebx, dword [ebp + 0x14]
lea esi, [ebp - 0x105c]
push esi
push edi
mov esi, 0x4e2438
lea edi, [ebp - 0x48]
mov ecx, 0x12
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
push esi
push edi
mov esi, 0x4e2480
lea edi, [ebp - 0x1048]
mov ecx, 0x400
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
push ebp
mov eax, ebx
call sub.rtl250.bpl__System__LStrLen_qqrx31System__AnsiStringT_us_i65535__
push eax
mov eax, ebx
call sub.rtl250.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
pop edx
call fcn.0041b3c8
pop ecx
mov ebx, edi
cmp byte [ebp - 0x104d], 0
je 0x41b557
lea eax, [ebp - 0x48]
mov dword [ebp - 0x1054], eax
mov dword [ebp - 0x1058], 1
jmp 0x41b56a
lea eax, [ebp - 4]
mov dword [ebp - 0x1054], eax
mov dword [ebp - 0x1058], 0xffffffff
mov edi, dword [ebp - 0x104c]
shr edi, 3
dec edi
test edi, edi
jl 0x41b681
inc edi
cmp dword [ebp + 0x10], 0
jne 0x41b587
cmp dword [ebp + 0xc], 0
je 0x41b608
mov dword [esi], 7
lea eax, [ebp + 0xc]
add eax, dword [esi]
movzx eax, byte [eax]
inc eax
and al, 0xff
lea edx, [ebp + 0xc]
add edx, dword [esi]
mov byte [edx], al
lea eax, [ebp + 0xc]
add eax, dword [esi]
cmp byte [eax], 0
jne 0x41b5b2
dec dword [esi]
cmp dword [esi], 0xffffffff
jne 0x41b58f
lea eax, [ebp + 0xc]
mov eax, dword [eax]
call fcn.0041afdc
mov dword [esi], eax
lea eax, [ebp + 0xc]
add eax, 4
mov eax, dword [eax]
call fcn.0041afdc
mov dword [ebp - 0x1060], eax
push ebp
mov eax, dword [ebp - 0x1058]
push eax
lea edx, [ebp - 0x1060]
mov eax, esi
mov ecx, dword [ebp - 0x1054]
call fcn.0041b008
pop ecx
mov eax, dword [esi]
call fcn.0041afdc
xor dword [ebx], eax
mov eax, dword [ebp - 0x1060]
call fcn.0041afdc
lea edx, [ebx + 4]
xor dword [edx], eax
jmp 0x41b677
cmp byte [ebp + 8], 0
jne 0x41b65e
mov eax, dword [ebx]
call fcn.0041afdc
mov dword [esi], eax
lea eax, [ebx + 4]
mov eax, dword [eax]
call fcn.0041afdc
mov dword [ebp - 0x1060], eax
push ebp
mov eax, dword [ebp - 0x1058]
push eax
lea edx, [ebp - 0x1060]
mov eax, esi
mov ecx, dword [ebp - 0x1054]
call fcn.0041b008
pop ecx
mov eax, dword [esi]
call fcn.0041afdc
mov dword [ebx], eax
mov eax, dword [ebp - 0x1060]
call fcn.0041afdc
lea edx, [ebx + 4]
mov dword [edx], eax
jmp 0x41b677
push ebp
mov eax, dword [ebp - 0x1058]
push eax
mov edx, ebx
lea eax, [ebx + 4]
mov ecx, dword [ebp - 0x1054]
call fcn.0041b008
pop ecx
add ebx, 8
dec edi
jne 0x41b57d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41b790
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
test esi, esi
jle 0x41b8bb
lea eax, [esi + 2]
mov ecx, 3
cdq
idiv ecx
mov edx, eax
add edx, edx
add edx, edx
mov eax, edi
xor ecx, ecx
call sub.rtl250.bpl__System__LStrSetLength_qqrr27System__AnsiStringT_us_i0__ius
mov ecx, dword [edi]
mov eax, esi
mov edi, 3
cdq
idiv edi
mov edi, eax
test edi, edi
jle 0x41b82d
movzx eax, byte [ebx]
shl eax, 0x10
movzx edx, byte [ebx + 1]
shl edx, 8
add eax, edx
movzx edx, byte [ebx + 2]
add eax, edx
mov edx, eax
shr edx, 0x12
and edx, 0x3f
movzx edx, byte [edx + 0x4e3480]
mov byte [ecx], dl
mov edx, eax
shr edx, 0xc
and edx, 0x3f
movzx edx, byte [edx + 0x4e3480]
mov byte [ecx + 1], dl
mov edx, eax
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + 0x4e3480]
mov byte [ecx + 2], dl
and eax, 0x3f
movzx eax, byte [eax + 0x4e3480]
mov byte [ecx + 3], al
add ecx, 4
add ebx, 3
dec edi
jne 0x41b7cd
mov eax, esi
mov esi, 3
cdq
idiv esi
dec edx
je 0x41b842
dec edx
je 0x41b873
jmp 0x41b8c2
movzx eax, byte [ebx]
shl eax, 0x10
mov edx, eax
shr edx, 0x12
and edx, 0x3f
movzx edx, byte [edx + 0x4e3480]
mov byte [ecx], dl
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + 0x4e3480]
mov byte [ecx + 1], al
mov byte [ecx + 2], 0x3d
mov byte [ecx + 3], 0x3d
jmp 0x41b8c2
movzx eax, byte [ebx]
shl eax, 0x10
movzx edx, byte [ebx + 1]
shl edx, 8
add eax, edx
mov edx, eax
shr edx, 0x12
and edx, 0x3f
movzx edx, byte [edx + 0x4e3480]
mov byte [ecx], dl
mov edx, eax
shr edx, 0xc
and edx, 0x3f
movzx edx, byte [edx + 0x4e3480]
mov byte [ecx + 1], dl
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + 0x4e3480]
mov byte [ecx + 2], al
mov byte [ecx + 3], 0x3d
jmp 0x41b8c2
mov eax, edi
call sub.rtl250.bpl__System__LStrClr_qqrpv
pop edi
pop esi
pop ebx
ret
Function at 0x420a18
Capabilities:
Check if file exists
Get file attributes
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x420a20
push ebx
push esi
push edi
mov byte [ebp - 9], al
xor eax, eax
push ebp
push 0x420d70
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x4c]
call sub.rtl250.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
push 1
mov esi, dword [0x4e4bb4]
mov esi, dword [esi]
mov ecx, 0x7fffffff
mov edx, dword [ebp - 4]
mov eax, 0x420d8c
call esi
mov edx, eax
lea eax, [ebp - 4]
mov ecx, 0x7fffffff
call sub.rtl250.bpl__System__UStrDelete_qqrr20System_UnicodeStringii
lea eax, [ebp - 0x14]
mov ecx, 0x420d9c
mov edx, dword [ebp - 4]
call sub.rtl250.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [ebp - 0x14]
inc ebp
in al, dx
Function at 0x429518
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
movzx eax, cl
mov edx, dword [ebp - 4]
cmp word [edx + eax*2], 0xffff
jne 0x42956a
mov dword [ebp - 0xc], 0x7fffffff
xor esi, esi
mov ebx, dword [ebp - 8]
movzx eax, cl
movzx edx, byte [ebx]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [ebp - 0xc]
jge 0x429561
movzx edx, cl
mov edi, dword [ebp - 4]
lea edi, [edi + edx*2]
mov word [edi], si
mov dword [ebp - 0xc], eax
inc esi
add ebx, 3
cmp esi, 0x10
jne 0x429540
movzx eax, cl
mov edx, dword [ebp - 4]
movzx eax, byte [edx + eax*2]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42a3e8
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
mov esi, eax
lea eax, [ebp - 0x14]
mov edx, 0x14
call fcn.00403d90
mov dword [ebp - 0x14], 0x14
push 0x42a4f0
push 0x42a50c
call sub.kernel32.dll_GetModuleHandleW
push eax
call fcn.00403598
mov ebx, eax
test ebx, ebx
je 0x42a42b
lea eax, [ebp - 0x14]
push eax
call ebx
test eax, eax
jne 0x42a481
lea eax, [ebp - 8]
push eax
call sub.user32.dll_GetCursorPos
test eax, eax
je 0x42a481
push dword [ebp - 4]
push dword [ebp - 8]
call sub.user32.dll_WindowFromPoint
test eax, eax
je 0x42a453
push 0
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov ebx, eax
jmp 0x42a455
xor ebx, ebx
test ebx, ebx
je 0x42a467
push 0xffffffffffffffff
push ebx
call sub.kernel32.dll_GetCurrentThreadId
push eax
call sub.user32.dll_AttachThreadInput
call sub.user32.dll_GetCursor
mov dword [ebp - 0xc], eax
test ebx, ebx
je 0x42a481
push 0
push ebx
call sub.kernel32.dll_GetCurrentThreadId
push eax
call sub.user32.dll_AttachThreadInput
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x42a4ea
test byte [ebp - 0x10], 1
je 0x42a4ea
lea eax, [ebp - 0x28]
push eax
push ebx
call sub.user32.dll_GetIconInfo
test eax, eax
je 0x42a4c2
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x42a4a9
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x42a4b6
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 0x24]
sub dword [ebp - 8], eax
mov eax, dword [ebp - 0x20]
sub dword [ebp - 4], eax
push 3
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
sub edx, dword [eax - 8]
push edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
sub edx, dword [eax - 4]
push edx
push esi
call sub.user32.dll_DrawIconEx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x433fcc
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
push ebx
xor edx, edx
mov dword [ebp - 0x214], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x434071
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x104
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x434025
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20e]
push eax
call sub.kernel32.dll_GetComputerNameW
mov eax, ebx
lea edx, [ebp - 0x20e]
mov ecx, 0x105
call sub.rtl250.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
jmp 0x434058
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20e]
push eax
call sub.kernel32.dll_GetComputerNameA
lea eax, [ebp - 0x214]
lea edx, [ebp - 0x20e]
mov ecx, 0
call sub.rtl250.bpl__System__LStrFromPChar_qqrr27System__AnsiStringT_us_i0__pcus
mov edx, dword [ebp - 0x214]
mov eax, ebx
call sub.rtl250.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x434078
lea eax, [ebp - 0x214]
call sub.rtl250.bpl__System__LStrClr_qqrpv
ret
Function at 0x43424c
Capabilities:
Set registry value

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 - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x43439f
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x4342ee
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
mov eax, edi
call sub.rtl250.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
push esi
call sub.advapi32.dll_RegCreateKeyExW
test eax, eax
jne 0x43437c
mov eax, dword [ebp + 8]
call sub.rtl250.bpl__System__UStrLen_qqrx20System_UnicodeString
add eax, eax
add eax, 2
push eax
mov eax, dword [ebp + 8]
call sub.rtl250.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
push 1
push 0
mov eax, dword [ebp - 8]
call sub.rtl250.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
sete bl
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
jmp 0x43437c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x14]
mov edx, edi
mov ecx, 0
call sub.rtl250.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x14]
call sub.rtl250.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
push esi
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x43437c
lea eax, [ebp - 4]
mov edx, dword [ebp + 8]
mov ecx, 0
call sub.rtl250.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 4]
call sub.rtl250.bpl__System__LStrLen_qqrx31System__AnsiStringT_us_i65535__
inc eax
push eax
mov eax, dword [ebp - 4]
call sub.rtl250.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
push 1
push 0
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 8]
mov ecx, 0
call sub.rtl250.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x18]
call sub.rtl250.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete bl
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4343a6
lea eax, [ebp - 0x18]
mov edx, 2
call sub.rtl250.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 4]
call sub.rtl250.bpl__System__LStrClr_qqrpv
ret
Function at 0x4343b4
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 0x43449f
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x434427
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 0x434484
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 0x434484
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 0x434484
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 0x4344a6
lea eax, [ebp - 0x10]
mov edx, 2
call sub.rtl250.bpl__System__LStrArrayClr_qqrpvi
ret
Function at 0x434b70
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 0x434c21
cmp word [eax + 0x18], 0x20b
jne 0x434bae
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 0x434bc0
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 0x434c21
jmp 0x434c1b
mov eax, dword [esi + 0x10]
cmp eax, dword [ebp - 0x10]
jbe 0x434bd7
push ebp
call fcn.004349b0
pop ecx
jmp 0x434c21
cmp dword [esi + 0x10], 0
je 0x434c18
mov ebx, dword [esi + 0x10]
add ebx, dword [ebp - 4]
jmp 0x434c13
cmp edi, dword [ebx]
jne 0x434c10
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x434c10
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 0x434be5
add esi, 0x14
cmp dword [esi + 0xc], 0
jne 0x434bc6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x435e00
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 0x435f83
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 0x435f57
lea eax, [ebp - 8]
push eax
push esi
push 0xffffffffffffffff
call sub.shell32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x435f57
cmp dword [0x4e8470], 0
jne 0x435e80
push 0x435f94
push 0x435fc0
call sub.kernel32.dll_GetModuleHandleW
push eax
call fcn.00403598
mov dword [0x4e8470], eax
cmp dword [0x4e8470], 0
je 0x435eb2
lea eax, [ebp - 0x212]
push eax
mov eax, dword [ebp - 8]
push eax
call dword [0x4e8470]
test eax, eax
je 0x435eb2
mov eax, edi
lea edx, [ebp - 0x212]
mov ecx, 0x105
call sub.rtl250.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
jmp 0x435ee9
lea eax, [ebp - 0x212]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x435ee9
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 0x435f15
lea edx, [ebp - 0x21c]
xor eax, eax
call fcn.004337e4
mov eax, dword [ebp - 0x21c]
mov edx, edi
call fcn.00409fc0
cmp dword [edi], 0
je 0x435f57
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 0x435f57
test bl, bl
je 0x435f42
mov eax, edi
mov edx, 0x435fe4
call sub.rtl250.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
jmp 0x435f57
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 0x435f8a
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 0x4369f0
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 0x436a0a
call sub.user32.dll_EmptyClipboard
call sub.user32.dll_CloseClipboard
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x436a69
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 0x436a64
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