joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5424a8
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 0x542567
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 0x54255e
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 0x542557
mov eax, dword [ebp - 0x10]
dec eax
sub eax, 2
jb 0x542540
sub eax, 4
jne 0x54254b
mov eax, ebx
mov edx, esi
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
jmp 0x542557
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 0x54c838
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 0x54c872
mov dword [esp + 4], 1
call sub.kernel32.dll_GetTickCount
sub eax, ebp
cmp eax, dword [ebx + 0x2cc]
jbe 0x54c8a9
call sub.kernel32.dll_GetTickCount
mov ebp, eax
add esi, dword [esp + 4]
cmp edi, esi
jge 0x54c892
mov esi, edi
mov eax, esi
mov byte [ebx + 0x27a], al
push ebx
push fcn.0054c6e4
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 0x54c8e3
mov eax, dword [sym.imp.vcl120.bpl__Forms_Application]
mov eax, dword [eax]
cmp byte [eax + 0xa0], 0
jne 0x54c8e3
cmp dword [ebx + 0x270], 0
je 0x54c8e3
mov eax, dword [sym.imp.vcl120.bpl__Forms_Application]
mov eax, dword [eax]
test byte [eax + 0x1c], 8
jne 0x54c8e3
cmp edi, esi
jg 0x54c872
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x54c93c
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 0x54c972
mov dword [esp], 1
call sub.kernel32.dll_GetTickCount
sub eax, ebp
cmp eax, dword [ebx + 0x2cc]
jbe 0x54c9a7
call sub.kernel32.dll_GetTickCount
mov ebp, eax
sub esi, dword [esp]
cmp esi, dword [esp]
jge 0x54c992
xor esi, esi
mov eax, esi
mov byte [ebx + 0x27a], al
push ebx
push fcn.0054c740
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 0x54c9df
mov edx, dword [sym.imp.vcl120.bpl__Forms_Application]
mov edx, dword [edx]
cmp byte [edx + 0xa0], 0
jne 0x54c9df
mov edx, dword [sym.imp.vcl120.bpl__Forms_Application]
mov edx, dword [edx]
test byte [edx + 0x1c], 8
jne 0x54c9df
cmp dword [eax + 0x4c], 1
je 0x54c9f0
test esi, esi
jg 0x54c972
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 0x551cf8
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 0x551d3a
mov eax, dword [sym.imp.rtl120.bpl__System_DebugHook]
cmp byte [eax], 0
je 0x551d2e
mov ecx, 0x11bd
mov edx, 0x551db0
mov eax, 0x551e00
call sub.rtl120.bpl__System__Assert_qqrx20System_UnicodeStringt1i
push 0x551e44
call sub.kernel32.dll_OutputDebugStringW
jmp 0x551d9a
mov eax, ebx
call fcn.00551c90
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 0x551d9a
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 0x551e6c
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov esi, edx
mov ebx, eax
cmp byte [esi], 0
je 0x551ef5
test ebx, ebx
je 0x551ef5
push 6
push ebx
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
je 0x551eb4
mov eax, dword [sym.imp.rtl120.bpl__System_DebugHook]
cmp byte [eax], 0
je 0x551ea8
mov ecx, 0x11de
mov edx, 0x551f08
mov eax, 0x551f58
call sub.rtl120.bpl__System__Assert_qqrx20System_UnicodeStringt1i
push 0x551f9c
call sub.kernel32.dll_OutputDebugStringW
jmp 0x551ef5
mov eax, ebx
call fcn.00551c90
mov ebx, eax
test ebx, ebx
je 0x551ef5
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 0x568f80
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 0x56900f
cmp word [0x8396d2], 0
jne 0x56900f
mov eax, dword [ebx + 0x78]
mov dword [0x8396cc], eax
mov eax, dword [ebx + 0x78]
mov edx, dword [eax + 0x38]
mov dword [0x8396d0], edx
mov edx, dword [eax + 0x3c]
mov dword [0x8396d4], edx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], 0x5690cc
mov eax, dword [0x8396d0]
cmp eax, dword [ebp - 8]
je 0x569007
mov eax, dword [ebx + 0x78]
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x38], 0x5690cc
jmp 0x56900f
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
cmp dword [0x8396d8], 0
jne 0x569035
call sub.kernel32.dll_GetCurrentThreadId
push eax
mov eax, dword [0x808004]
push eax
push 0x568d84
push 2
call sub.user32.dll_SetWindowsHookExW
mov dword [0x8396d8], eax
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x5a10b0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe68
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x198], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x5a116d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
xor edx, edx
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
xor edx, edx
push ebp
push 0x5a114a
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x194]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
lea eax, [ebp - 0x198]
mov edx, esi
mov ecx, 0
call sub.rtl120.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x198]
call sub.rtl120.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x5a1140
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 4], eax
push dword [ebp - 4]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, ebx
call sub.rtl120.bpl__System__UStrFromPChar_qqrr20System_UnicodeStringpc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5a1154
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a1174
lea eax, [ebp - 0x198]
call sub.rtl120.bpl__System__LStrClr_qqrpv
ret
Function at 0x5a1414
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffff384
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
test esi, esi
je 0x5a1433
xor eax, eax
mov dword [esi], eax
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x5a143e
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x5a1449
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x5a1454
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x5a145f
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 8]
test eax, eax
je 0x5a146a
xor edx, edx
mov dword [eax], edx
lea edi, [ebp - 0x1c7c]
lea eax, [ebp - 0x40]
mov edx, 0x40
call fcn.00402518
lea eax, [ebp - 0x240]
mov edx, 0x200
call fcn.00402518
lea eax, [ebp - 0x340]
mov edx, pe_nt_image_headers32
call fcn.00402518
lea eax, [ebp - 0x440]
mov edx, pe_nt_image_headers32
call fcn.00402518
lea eax, [ebp - 0x1440]
mov edx, 0x1000
call fcn.00402518
lea eax, [ebp - 0x1c40]
mov edx, 0x800
call fcn.00402518
mov eax, edi
mov edx, 0x3c
call fcn.00402518
mov dword [edi], 0x3c
lea eax, [ebp - 0x40]
mov dword [edi + 4], eax
mov dword [edi + 8], 0x40
lea eax, [ebp - 0x240]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0x200
lea eax, [ebp - 0x340]
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], pe_nt_image_headers32
lea eax, [ebp - 0x440]
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], pe_nt_image_headers32
lea eax, [ebp - 0x1440]
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], 0x1000
lea eax, [ebp - 0x1c40]
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], 0x800
push edi
push 0x90000000
mov eax, ebx
call sub.rtl120.bpl__System__UStrLen_qqrx20System_UnicodeString
push eax
mov eax, ebx
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.wininet.dll_InternetCrackUrlW
mov eax, esi
lea edx, [ebp - 0x40]
mov ecx, 0x20
call sub.rtl120.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
mov eax, dword [ebp + 0x18]
lea edx, [ebp - 0x240]
mov ecx, pe_nt_image_headers32
call sub.rtl120.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
mov eax, dword [ebp + 0x14]
lea edx, [ebp - 0x340]
mov ecx, 0x80
call sub.rtl120.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x440]
mov ecx, 0x80
call sub.rtl120.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x1440]
mov ecx, 0x800
call sub.rtl120.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x1c40]
mov ecx, 0x400
call sub.rtl120.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x5a2444
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov ecx, dword [eax]
mov dword [edx], ecx
lea ecx, [eax + 4]
mov ecx, dword [ecx]
mov dword [edx + 4], ecx
lea ecx, [eax + 8]
mov ecx, dword [ecx]
mov dword [edx + 8], ecx
add eax, 0xc
mov eax, dword [eax]
mov dword [edx + 0xc], eax
xor eax, eax
mov dword [esp], 1
mov ecx, dword [edx + eax*4 + 0xc]
mov ebx, ecx
shl ebx, 0x18
shr ecx, 8
or ebx, ecx
mov ecx, ebx
movzx ebx, cl
mov ebx, dword [ebx*4 + str.cwko0]
mov dword [esp + 4], ebx
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
mov esi, dword [ebx*4 + str.cwko0]
mov ebx, ecx
shr ebx, 0x10
movzx ebx, bl
mov ebx, dword [ebx*4 + str.cwko0]
mov dword [esp + 8], ebx
shr ecx, 0x18
movzx ecx, cl
mov ecx, dword [ecx*4 + str.cwko0]
mov ebx, esi
shl ebx, 8
shr esi, 0x18
or ebx, esi
xor ebx, dword [esp + 4]
mov esi, dword [esp + 8]
shl esi, 0x10
mov edi, dword [esp + 8]
shr edi, 0x10
or esi, edi
xor ebx, esi
mov esi, ecx
shl esi, 0x18
shr ecx, 8
or esi, ecx
xor ebx, esi
xor ebx, dword [edx + eax*4]
mov ecx, dword [esp]
xor ebx, dword [ecx*4 + 0x7ed020]
mov dword [edx + eax*4 + 0x10], ebx
inc dword [esp]
mov ecx, dword [edx + eax*4 + 4]
xor ecx, dword [edx + eax*4 + 0x10]
mov dword [edx + eax*4 + 0x14], ecx
mov ebx, dword [edx + eax*4 + 8]
xor ebx, ecx
mov dword [edx + eax*4 + 0x18], ebx
mov ecx, dword [edx + eax*4 + 0xc]
xor ecx, ebx
mov dword [edx + eax*4 + 0x1c], ecx
add eax, 4
cmp eax, 0x28
jl 0x5a246f
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x5a2530
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov ecx, dword [eax]
mov dword [edx], ecx
lea ecx, [eax + 4]
mov ecx, dword [ecx]
mov dword [edx + 4], ecx
lea ecx, [eax + 8]
mov ecx, dword [ecx]
mov dword [edx + 8], ecx
lea ecx, [eax + 0xc]
mov ecx, dword [ecx]
mov dword [edx + 0xc], ecx
lea ecx, [eax + 0x10]
mov ecx, dword [ecx]
mov dword [edx + 0x10], ecx
add eax, 0x14
mov eax, dword [eax]
mov dword [edx + 0x14], eax
xor eax, eax
mov dword [esp], 1
mov ecx, dword [edx + eax*4 + 0x14]
mov ebx, ecx
shl ebx, 0x18
shr ecx, 8
or ebx, ecx
mov ecx, ebx
movzx ebx, cl
mov ebx, dword [ebx*4 + str.cwko0]
mov dword [esp + 4], ebx
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
mov esi, dword [ebx*4 + str.cwko0]
mov ebx, ecx
shr ebx, 0x10
movzx ebx, bl
mov ebx, dword [ebx*4 + str.cwko0]
mov dword [esp + 8], ebx
shr ecx, 0x18
movzx ecx, cl
mov ecx, dword [ecx*4 + str.cwko0]
mov ebx, esi
shl ebx, 8
shr esi, 0x18
or ebx, esi
xor ebx, dword [esp + 4]
mov esi, dword [esp + 8]
shl esi, 0x10
mov edi, dword [esp + 8]
shr edi, 0x10
or esi, edi
xor ebx, esi
mov esi, ecx
shl esi, 0x18
shr ecx, 8
or esi, ecx
xor ebx, esi
xor ebx, dword [edx + eax*4]
mov ecx, dword [esp]
xor ebx, dword [ecx*4 + 0x7ed020]
mov dword [edx + eax*4 + 0x18], ebx
inc dword [esp]
mov ecx, dword [edx + eax*4 + 4]
xor ecx, dword [edx + eax*4 + 0x18]
mov dword [edx + eax*4 + 0x1c], ecx
mov ebx, dword [edx + eax*4 + 8]
xor ebx, ecx
mov dword [edx + eax*4 + 0x20], ebx
mov ecx, dword [edx + eax*4 + 0xc]
xor ecx, ebx
mov dword [edx + eax*4 + 0x24], ecx
mov ebx, dword [edx + eax*4 + 0x10]
xor ebx, ecx
mov dword [edx + eax*4 + 0x28], ebx
mov ecx, dword [edx + eax*4 + 0x14]
xor ecx, ebx
mov dword [edx + eax*4 + 0x2c], ecx
add eax, 6
cmp eax, 0x2e
jl 0x5a256b
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x5a2640
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov ecx, dword [eax]
mov dword [edx], ecx
lea ecx, [eax + 4]
mov ecx, dword [ecx]
mov dword [edx + 4], ecx
lea ecx, [eax + 8]
mov ecx, dword [ecx]
mov dword [edx + 8], ecx
lea ecx, [eax + 0xc]
mov ecx, dword [ecx]
mov dword [edx + 0xc], ecx
lea ecx, [eax + 0x10]
mov ecx, dword [ecx]
mov dword [edx + 0x10], ecx
lea ecx, [eax + 0x14]
mov ecx, dword [ecx]
mov dword [edx + 0x14], ecx
lea ecx, [eax + 0x18]
mov ecx, dword [ecx]
mov dword [edx + 0x18], ecx
add eax, 0x1c
mov eax, dword [eax]
mov dword [edx + 0x1c], eax
xor eax, eax
mov dword [esp], 1
mov ecx, dword [edx + eax*4 + 0x1c]
mov edi, ecx
shl edi, 0x18
shr ecx, 8
or edi, ecx
mov ecx, edi
movzx ecx, cl
mov ecx, dword [ecx*4 + str.cwko0]
mov dword [esp + 4], ecx
mov ecx, edi
shr ecx, 8
movzx ecx, cl
mov ecx, dword [ecx*4 + str.cwko0]
mov ebx, edi
shr ebx, 0x10
movzx ebx, bl
mov esi, dword [ebx*4 + str.cwko0]
mov ebx, edi
shr ebx, 0x18
movzx ebx, bl
mov ebx, dword [ebx*4 + str.cwko0]
mov dword [esp + 8], ebx
mov ebx, ecx
shl ebx, 8
shr ecx, 0x18
or ebx, ecx
xor ebx, dword [esp + 4]
mov ecx, esi
shl ecx, 0x10
shr esi, 0x10
or ecx, esi
xor ebx, ecx
mov ecx, dword [esp + 8]
shl ecx, 0x18
mov esi, dword [esp + 8]
shr esi, 8
or ecx, esi
xor ebx, ecx
xor ebx, dword [edx + eax*4]
mov ecx, dword [esp]
xor ebx, dword [ecx*4 + 0x7ed020]
mov dword [edx + eax*4 + 0x20], ebx
inc dword [esp]
mov ecx, dword [edx + eax*4 + 4]
xor ecx, dword [edx + eax*4 + 0x20]
mov dword [edx + eax*4 + 0x24], ecx
mov ebx, dword [edx + eax*4 + 8]
xor ebx, ecx
mov dword [edx + eax*4 + 0x28], ebx
mov edi, dword [edx + eax*4 + 0xc]
xor edi, ebx
mov dword [edx + eax*4 + 0x2c], edi
movzx ecx, byte [edx + eax*4 + 0x2c]
mov ecx, dword [ecx*4 + str.cwko0]
mov dword [esp + 4], ecx
mov ecx, edi
shr ecx, 8
movzx ecx, cl
mov ecx, dword [ecx*4 + str.cwko0]
mov ebx, edi
shr ebx, 0x10
movzx ebx, bl
mov esi, dword [ebx*4 + str.cwko0]
mov ebx, edi
shr ebx, 0x18
movzx ebx, bl
mov ebx, dword [ebx*4 + str.cwko0]
mov dword [esp + 8], ebx
mov ebx, ecx
shl ebx, 8
shr ecx, 0x18
or ebx, ecx
xor ebx, dword [esp + 4]
mov ecx, esi
shl ecx, 0x10
shr esi, 0x10
or ecx, esi
xor ebx, ecx
mov ecx, dword [esp + 8]
shl ecx, 0x18
mov esi, dword [esp + 8]
shr esi, 8
or ecx, esi
xor ebx, ecx
xor ebx, dword [edx + eax*4 + 0x10]
mov dword [edx + eax*4 + 0x30], ebx
mov ecx, dword [edx + eax*4 + 0x14]
xor ecx, dword [edx + eax*4 + 0x30]
mov dword [edx + eax*4 + 0x34], ecx
mov ebx, dword [edx + eax*4 + 0x18]
xor ebx, ecx
mov dword [edx + eax*4 + 0x38], ebx
mov ecx, dword [edx + eax*4 + 0x1c]
xor ecx, ebx
mov dword [edx + eax*4 + 0x3c], ecx
add eax, 8
cmp eax, 0x34
jl 0x5a268b
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x5c262c
Capabilities:
Hash data with md5

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.005c34e8
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
pop ebx
ret

Function at 0x5c3144
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff20
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x40
jle 0x5c3189
lea eax, [ebp - 0x60]
call fcn.005c262c
mov edx, ebx
lea eax, [ebp - 0x60]
mov ecx, dword [ebp + 0xc]
call fcn.005c2654
lea edx, [ebp - 0x60]
mov eax, dword [ebp + 8]
call fcn.005c2728
mov dword [ebp + 0xc], 0x10
mov esi, dword [ebp + 8]
jmp 0x5c318b
mov esi, ebx
xor ecx, ecx
lea eax, [ebp - 0xa0]
lea edx, [ebp - 0xe0]
lea ebx, [ecx + 1]
cmp ebx, dword [ebp + 0xc]
jg 0x5c31b4
movzx ebx, byte [esi]
xor bl, 0x36
mov byte [eax], bl
movzx ebx, byte [esi]
xor bl, 0x5c
mov byte [edx], bl
inc esi
jmp 0x5c31ba
mov byte [eax], 0x36
mov byte [edx], 0x5c
inc ecx
inc edx
inc eax
cmp ecx, 0x40
jne 0x5c3199
lea eax, [ebp - 0x60]
call fcn.005c262c
lea edx, [ebp - 0xa0]
lea eax, [ebp - 0x60]
mov ecx, 0x40
call fcn.005c2654
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x60]
mov ecx, dword [ebp - 8]
call fcn.005c2fc8
lea edx, [ebp - 0x60]
mov eax, dword [ebp + 8]
call fcn.005c2728
lea eax, [ebp - 0x60]
call fcn.005c262c
lea edx, [ebp - 0xe0]
lea eax, [ebp - 0x60]
mov ecx, 0x40
call fcn.005c2654
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x60]
mov ecx, 0x10
call fcn.005c2654
lea edx, [ebp - 0x60]
mov eax, dword [ebp + 8]
call fcn.005c2728
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5c86b0
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, ecx
mov dword [esp], edx
mov ebp, eax
xor esi, esi
mov ebx, dword [esp]
jmp 0x5c86c4
inc ebx
mov eax, ebx
mov ecx, 3
cdq
idiv ecx
test edx, edx
jg 0x5c86c3
mov eax, ebx
mov ecx, 3
cdq
idiv ecx
add eax, eax
add eax, eax
mov ebx, eax
mov eax, edi
xor ecx, ecx
mov edx, ebx
call sub.rtl120.bpl__System__LStrSetLength_qqrv
xor ebx, ebx
cmp esi, dword [esp]
jge 0x5c8828
inc ebx
mov eax, edi
call sub.rtl120.bpl__System__UniqueStringA_qqrr27System__AnsiStringT_us_i0__
movzx edx, byte [ebp + esi]
and dl, 0xfc
movzx edx, dl
shr edx, 2
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
lea eax, [esi + 1]
cmp eax, dword [esp]
jge 0x5c87e1
inc ebx
mov eax, edi
call sub.rtl120.bpl__System__UniqueStringA_qqrr27System__AnsiStringT_us_i0__
movzx edx, byte [ebp + esi]
and dl, 3
movzx edx, dl
shl edx, 4
movzx ecx, byte [ebp + esi + 1]
and cl, 0xf0
movzx ecx, cl
shr ecx, 4
add edx, ecx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
lea eax, [esi + 2]
cmp eax, dword [esp]
jge 0x5c87b0
inc ebx
mov eax, edi
call sub.rtl120.bpl__System__UniqueStringA_qqrr27System__AnsiStringT_us_i0__
movzx edx, byte [ebp + esi + 1]
and dl, 0xf
movzx edx, dl
add edx, edx
add edx, edx
movzx ecx, byte [ebp + esi + 2]
and cl, 0xc0
movzx ecx, cl
shr ecx, 6
add edx, ecx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, edi
call sub.rtl120.bpl__System__UniqueStringA_qqrr27System__AnsiStringT_us_i0__
movzx edx, byte [ebp + esi + 2]
and dl, 0x3f
movzx edx, dl
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
jmp 0x5c881c
inc ebx
mov eax, edi
call sub.rtl120.bpl__System__UniqueStringA_qqrr27System__AnsiStringT_us_i0__
movzx edx, byte [ebp + esi + 1]
and dl, 0xf
movzx edx, dl
add edx, edx
add edx, edx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, edi
call sub.rtl120.bpl__System__UniqueStringA_qqrr27System__AnsiStringT_us_i0__
mov byte [eax + ebx - 1], 0x3d
jmp 0x5c881c
inc ebx
mov eax, edi
call sub.rtl120.bpl__System__UniqueStringA_qqrr27System__AnsiStringT_us_i0__
movzx edx, byte [ebp + esi]
and dl, 3
movzx edx, dl
shl edx, 4
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, edi
call sub.rtl120.bpl__System__UniqueStringA_qqrr27System__AnsiStringT_us_i0__
mov byte [eax + ebx - 1], 0x3d
inc ebx
mov eax, edi
call sub.rtl120.bpl__System__UniqueStringA_qqrr27System__AnsiStringT_us_i0__
mov byte [eax + ebx - 1], 0x3d
add esi, 3
cmp esi, dword [esp]
jl 0x5c86f8
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret