joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007412
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1001d6d4
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x10027080]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
cmp eax, edi
je 0x1000758c
cmp word [eax], di
je 0x1000758c
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x1000758c
cmp word [eax], di
je 0x1000758c
mov ebx, 0x2000
push ebx
mov dword [esp + 0x24], edi
call fcn.1000e2df
pop ecx
mov dword [esp + 0x14], eax
cmp eax, edi
je 0x1000758c
lea esi, [esp + 0x30]
mov dword [esp + 0x24], vtable.CWininetFile.0
call fcn.10002d9b
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
push dword [ebp + 0xc]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100074e4
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call esi
test eax, eax
jne 0x100074e4
push 0x80
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 0xc]
call esi
push edi
push 0x20
push 2
push edi
push 2
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10007573
push edi
push dword [ebp + 8]
lea ecx, [esp + 0x2c]
call fcn.100075da
test eax, eax
je 0x1000756c
jmp 0x10007542
mov eax, dword [esp + 0x10]
add dword [esp + 0x18], eax
push edi
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
push dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x1c]
jne 0x1000756c
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebx
push dword [esp + 0x1c]
lea ecx, [esp + 0x30]
call fcn.10007757
cmp dword [esp + 0x10], edi
jne 0x10007514
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp ecx, dword [esp + 0x34]
sete al
mov dword [esp + 0x20], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x14]
call fcn.1000e3a6
pop ecx
lea ecx, [esp + 0x24]
call fcn.100075c0
mov eax, dword [esp + 0x20]
jmp 0x1000758e
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100078ed
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x10007904
xor eax, eax
xor edx, edx
jmp 0x100079cd
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
cmp edi, esi
jne 0x1000791e
xor eax, eax
xor edx, edx
jmp 0x100079cc
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
push ebx
lea esi, [edi + 8]
push esi
call fcn.1000e90c
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x1000793c
xor edx, edx
jmp 0x100079cb
push esi
push 0
push ebx
call fcn.1000fb40
add esp, 0xc
push ebx
push edi
xor esi, esi
push esi
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x100079ba
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x10023728
push ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x100079ba
mov ecx, dword [ebp - 4]
cmp ecx, esi
je 0x100079ba
movzx eax, word [ecx + 0xa]
cdq
shld edx, eax, 0x10
shl eax, 0x10
mov esi, eax
movzx eax, word [ecx + 8]
mov edi, edx
cdq
or esi, eax
movzx eax, word [ecx + 0xe]
or edi, edx
shld edi, esi, 0x10
shl esi, 0x10
cdq
or esi, eax
movzx eax, word [ecx + 0xc]
or edi, edx
shld edi, esi, 0x10
cdq
shl esi, 0x10
or esi, eax
or edi, edx
jmp 0x100079c0
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
push ebx
call fcn.1000e917
pop ecx
mov eax, esi
mov edx, edi
pop ebx
pop edi
pop esi
leave
ret
Function at 0x10007d1d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x10027080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
shr edi, 2
cmp edi, 0x40
jle 0x10007d3d
push 0x40
pop edi
push edi
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.10010a50
xor ecx, ecx
add esp, 0xc
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], ecx
cmp edi, ecx
jle 0x10007dac
mov edx, dword [ebp - 0x48]
mov dl, byte [edx + 0x10028ab8]
lea eax, [ebp + ecx - 0x44]
xor byte [eax], dl
inc dword [ebp - 0x48]
cmp dword [ebp - 0x48], 8
jge 0x10007dac
and ecx, 0x80000007
mov dl, byte [eax]
jns 0x10007d7e
dec ecx
or ecx, 0xfffffff8
inc ecx
movzx ebx, dl
shl ebx, cl
mov dword [ebp - 0x50], ecx
test ebx, ebx
jne 0x10007d9d
mov cl, byte [ebp + 0xc]
sub cl, byte [ebp - 0x50]
add cl, 8
shr dl, cl
test dl, dl
jne 0x10007d9d
xor cl, cl
jmp 0x10007d9f
mov cl, 1
mov byte [eax], cl
mov ecx, dword [ebp - 0x4c]
inc ecx
mov dword [ebp - 0x4c], ecx
cmp ecx, edi
jl 0x10007d57
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
shr dword [ebp - 0x48], 1
mov edi, eax
and edi, 1
je 0x10007df5
xor eax, eax
and dword [ebp - 0x4c], eax
xor ecx, ecx
cmp dword [ebp - 0x48], eax
jbe 0x10007df1
mov edx, dword [ebp - 0x4c]
mov bl, byte [eax + 0x10028ab8]
xor byte [edx + esi], bl
inc ecx
cmp ecx, dword [eax*4 + 0x10028ac0]
jle 0x10007de6
inc eax
cmp eax, 8
jg 0x10007df1
xor ecx, ecx
inc dword [ebp - 0x4c]
mov edx, dword [ebp - 0x4c]
cmp edx, dword [ebp - 0x48]
jb 0x10007dc8
test edi, edi
je 0x10007e55
cmp dword [ebp - 0x48], 0x10
jb 0x10007e25
cmp dword [ebp - 0x48], 0x62
ja 0x10007e2b
mov eax, 0x10028ae4
mov ecx, dword [eax - 4]
mov ebx, dword [eax]
mov dl, byte [ecx + esi]
mov bl, byte [esi + ebx]
mov byte [ecx + esi], bl
mov ecx, dword [eax]
add eax, 8
mov byte [esi + ecx], dl
cmp eax, 0x10028b24
jl 0x10007e06
jmp 0x10007e4d
cmp dword [ebp - 0x48], 0x62
jbe 0x10007e4d
mov eax, 0x10028b24
mov ecx, dword [eax - 4]
mov ebx, dword [eax]
mov dl, byte [ecx + esi]
mov bl, byte [esi + ebx]
mov byte [ecx + esi], bl
mov ecx, dword [eax]
add eax, 8
mov byte [esi + ecx], dl
cmp eax, 0x10028ba4
jl 0x10007e30
test edi, edi
je 0x10007dbc
pop edi
xor eax, eax
pop ebx
mov cl, byte [ebp + eax - 0x44]
xor cl, 0x32
mov byte [eax + 0x100284f0], cl
inc eax
cmp eax, 0x10
jl 0x10007e59
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
mov dword [0x1002a178], 0x10
inc eax
call fcn.1000e2d0
leave
ret
Function at 0x100099cd
Capabilities:
Encrypt data using rc6

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10027080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov esi, ecx
push 0x10
pop ecx
mov dword [ebp - 0x110], esi
cmp dword [ebp + 0x10], ecx
je 0x10009a05
cmp dword [ebp + 0x10], 0xc
je 0x10009a05
cmp dword [ebp + 0x10], 8
je 0x10009a05
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
xor ebx, ebx
add ecx, 0xfffffff8
mov dword [ebp - 0x108], ebx
cmp ecx, ebx
jl 0x10009a81
lea edx, [ecx + 8]
shr edx, 3
mov ecx, edx
shl ecx, 3
mov dword [ebp - 0x108], ecx
movzx edi, byte [eax + 1]
movzx ecx, byte [eax]
shl edi, 8
or ecx, edi
movzx edi, byte [eax + 2]
shl edi, 0x10
or ecx, edi
movzx edi, byte [eax + 3]
shl edi, 0x18
or ecx, edi
movzx edi, byte [eax + 5]
mov dword [ebp + ebx*4 - 0x104], ecx
movzx ecx, byte [eax + 4]
shl edi, 8
or ecx, edi
movzx edi, byte [eax + 6]
shl edi, 0x10
or ecx, edi
movzx edi, byte [eax + 7]
shl edi, 0x18
or ecx, edi
add eax, 8
mov dword [ebp + ebx*4 - 0x100], ecx
add ebx, 2
dec edx
jne 0x10009a2d
mov ecx, dword [ebp + 8]
mov edx, ecx
sub edx, dword [ebp - 0x108]
je 0x10009af2
and ecx, 7
add eax, ecx
xor edi, edi
xor edx, edx
dec ecx
cmp ecx, 7
ja case.default.0x10009a9d
jmp dword [ecx*4 + 0x10009bc9]
dec eax
movzx edi, byte [eax]
shl edi, 0x18
dec eax
movzx ecx, byte [eax]
shl ecx, 0x10
or edi, ecx
dec eax
movzx ecx, byte [eax]
shl ecx, 8
or edi, ecx
dec eax
movzx ecx, byte [eax]
or edi, ecx
dec eax
movzx edx, byte [eax]
shl edx, 0x18
dec eax
movzx ecx, byte [eax]
shl ecx, 0x10
or edx, ecx
dec eax
movzx ecx, byte [eax]
shl ecx, 8
or edx, ecx
movzx eax, byte [eax - 1]
or edx, eax
mov eax, ebx
mov dword [ebp + eax*4 - 0x104], edx
mov dword [ebp + eax*4 - 0x100], edi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
add eax, 3
cdq
and edx, 3
add eax, edx
xor edx, edx
lea ecx, [ecx + ecx + 2]
sar eax, 2
inc edx
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x118], ecx
mov dword [esi + 4], 0xb7e15163
cmp ecx, edx
jle 0x10009b34
mov edi, dword [esi + edx*4]
sub edi, 0x61c88647
mov dword [esi + edx*4 + 4], edi
inc edx
cmp edx, ecx
jl 0x10009b22
cmp ecx, eax
jg 0x10009b3a
mov ecx, eax
imul ecx, ecx, 3
xor edi, edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x108], edi
test ecx, ecx
jle 0x10009bb8
mov dword [ebp - 0x10c], ecx
jmp 0x10009b5b
mov esi, dword [ebp - 0x110]
lea edx, [esi + ebx*4 + 4]
mov esi, dword [ebp - 0x108]
lea ecx, [eax + edi]
add ecx, dword [edx]
lea esi, [ebp + esi*4 - 0x104]
rol ecx, 3
mov dword [edx], ecx
mov edx, dword [esi]
mov edi, ecx
add edx, eax
lea ecx, [eax + edi]
and ecx, 0x1f
add edx, edi
rol edx, cl
inc ebx
mov dword [esi], edx
mov eax, edx
cmp ebx, dword [ebp - 0x118]
jl 0x10009b95
xor ebx, ebx
inc dword [ebp - 0x108]
mov ecx, dword [ebp - 0x108]
cmp ecx, dword [ebp - 0x114]
jl 0x10009bb0
and dword [ebp - 0x108], 0
dec dword [ebp - 0x10c]
jne 0x10009b55
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000e2d0
leave
ret
Function at 0x10009aa4
Capabilities:
Encrypt data using rc6

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10027080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov esi, ecx
push 0x10
pop ecx
mov dword [ebp - 0x110], esi
cmp dword [ebp + 0x10], ecx
je 0x10009a05
cmp dword [ebp + 0x10], 0xc
je 0x10009a05
cmp dword [ebp + 0x10], 8
je 0x10009a05
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
xor ebx, ebx
add ecx, 0xfffffff8
mov dword [ebp - 0x108], ebx
cmp ecx, ebx
jl 0x10009a81
lea edx, [ecx + 8]
shr edx, 3
mov ecx, edx
shl ecx, 3
mov dword [ebp - 0x108], ecx
movzx edi, byte [eax + 1]
movzx ecx, byte [eax]
shl edi, 8
or ecx, edi
movzx edi, byte [eax + 2]
shl edi, 0x10
or ecx, edi
movzx edi, byte [eax + 3]
shl edi, 0x18
or ecx, edi
movzx edi, byte [eax + 5]
mov dword [ebp + ebx*4 - 0x104], ecx
movzx ecx, byte [eax + 4]
shl edi, 8
or ecx, edi
movzx edi, byte [eax + 6]
shl edi, 0x10
or ecx, edi
movzx edi, byte [eax + 7]
shl edi, 0x18
or ecx, edi
add eax, 8
mov dword [ebp + ebx*4 - 0x100], ecx
add ebx, 2
dec edx
jne 0x10009a2d
mov ecx, dword [ebp + 8]
mov edx, ecx
sub edx, dword [ebp - 0x108]
je 0x10009af2
and ecx, 7
add eax, ecx
xor edi, edi
xor edx, edx
dec ecx
cmp ecx, 7
ja case.default.0x10009a9d
jmp dword [ecx*4 + 0x10009bc9]
dec eax
movzx edi, byte [eax]
shl edi, 0x18
dec eax
movzx ecx, byte [eax]
shl ecx, 0x10
or edi, ecx
dec eax
movzx ecx, byte [eax]
shl ecx, 8
or edi, ecx
dec eax
movzx ecx, byte [eax]
or edi, ecx
dec eax
movzx edx, byte [eax]
shl edx, 0x18
dec eax
movzx ecx, byte [eax]
shl ecx, 0x10
or edx, ecx
dec eax
movzx ecx, byte [eax]
shl ecx, 8
or edx, ecx
movzx eax, byte [eax - 1]
or edx, eax
mov eax, ebx
mov dword [ebp + eax*4 - 0x104], edx
mov dword [ebp + eax*4 - 0x100], edi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
add eax, 3
cdq
and edx, 3
add eax, edx
xor edx, edx
lea ecx, [ecx + ecx + 2]
sar eax, 2
inc edx
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x118], ecx
mov dword [esi + 4], 0xb7e15163
cmp ecx, edx
jle 0x10009b34
mov edi, dword [esi + edx*4]
sub edi, 0x61c88647
mov dword [esi + edx*4 + 4], edi
inc edx
cmp edx, ecx
jl 0x10009b22
cmp ecx, eax
jg 0x10009b3a
mov ecx, eax
imul ecx, ecx, 3
xor edi, edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x108], edi
test ecx, ecx
jle 0x10009bb8
mov dword [ebp - 0x10c], ecx
jmp 0x10009b5b
mov esi, dword [ebp - 0x110]
lea edx, [esi + ebx*4 + 4]
mov esi, dword [ebp - 0x108]
lea ecx, [eax + edi]
add ecx, dword [edx]
lea esi, [ebp + esi*4 - 0x104]
rol ecx, 3
mov dword [edx], ecx
mov edx, dword [esi]
mov edi, ecx
add edx, eax
lea ecx, [eax + edi]
and ecx, 0x1f
add edx, edi
rol edx, cl
inc ebx
mov dword [esi], edx
mov eax, edx
cmp ebx, dword [ebp - 0x118]
jl 0x10009b95
xor ebx, ebx
inc dword [ebp - 0x108]
mov ecx, dword [ebp - 0x108]
cmp ecx, dword [ebp - 0x114]
jl 0x10009bb0
and dword [ebp - 0x108], 0
dec dword [ebp - 0x10c]
jne 0x10009b55
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000e2d0
leave
ret
Function at 0x10009aab
Capabilities:
Encrypt data using rc6

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10027080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov esi, ecx
push 0x10
pop ecx
mov dword [ebp - 0x110], esi
cmp dword [ebp + 0x10], ecx
je 0x10009a05
cmp dword [ebp + 0x10], 0xc
je 0x10009a05
cmp dword [ebp + 0x10], 8
je 0x10009a05
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
xor ebx, ebx
add ecx, 0xfffffff8
mov dword [ebp - 0x108], ebx
cmp ecx, ebx
jl 0x10009a81
lea edx, [ecx + 8]
shr edx, 3
mov ecx, edx
shl ecx, 3
mov dword [ebp - 0x108], ecx
movzx edi, byte [eax + 1]
movzx ecx, byte [eax]
shl edi, 8
or ecx, edi
movzx edi, byte [eax + 2]
shl edi, 0x10
or ecx, edi
movzx edi, byte [eax + 3]
shl edi, 0x18
or ecx, edi
movzx edi, byte [eax + 5]
mov dword [ebp + ebx*4 - 0x104], ecx
movzx ecx, byte [eax + 4]
shl edi, 8
or ecx, edi
movzx edi, byte [eax + 6]
shl edi, 0x10
or ecx, edi
movzx edi, byte [eax + 7]
shl edi, 0x18
or ecx, edi
add eax, 8
mov dword [ebp + ebx*4 - 0x100], ecx
add ebx, 2
dec edx
jne 0x10009a2d
mov ecx, dword [ebp + 8]
mov edx, ecx
sub edx, dword [ebp - 0x108]
je 0x10009af2
and ecx, 7
add eax, ecx
xor edi, edi
xor edx, edx
dec ecx
cmp ecx, 7
ja case.default.0x10009a9d
jmp dword [ecx*4 + 0x10009bc9]
dec eax
movzx edi, byte [eax]
shl edi, 0x18
dec eax
movzx ecx, byte [eax]
shl ecx, 0x10
or edi, ecx
dec eax
movzx ecx, byte [eax]
shl ecx, 8
or edi, ecx
dec eax
movzx ecx, byte [eax]
or edi, ecx
dec eax
movzx edx, byte [eax]
shl edx, 0x18
dec eax
movzx ecx, byte [eax]
shl ecx, 0x10
or edx, ecx
dec eax
movzx ecx, byte [eax]
shl ecx, 8
or edx, ecx
movzx eax, byte [eax - 1]
or edx, eax
mov eax, ebx
mov dword [ebp + eax*4 - 0x104], edx
mov dword [ebp + eax*4 - 0x100], edi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
add eax, 3
cdq
and edx, 3
add eax, edx
xor edx, edx
lea ecx, [ecx + ecx + 2]
sar eax, 2
inc edx
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x118], ecx
mov dword [esi + 4], 0xb7e15163
cmp ecx, edx
jle 0x10009b34
mov edi, dword [esi + edx*4]
sub edi, 0x61c88647
mov dword [esi + edx*4 + 4], edi
inc edx
cmp edx, ecx
jl 0x10009b22
cmp ecx, eax
jg 0x10009b3a
mov ecx, eax
imul ecx, ecx, 3
xor edi, edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x108], edi
test ecx, ecx
jle 0x10009bb8
mov dword [ebp - 0x10c], ecx
jmp 0x10009b5b
mov esi, dword [ebp - 0x110]
lea edx, [esi + ebx*4 + 4]
mov esi, dword [ebp - 0x108]
lea ecx, [eax + edi]
add ecx, dword [edx]
lea esi, [ebp + esi*4 - 0x104]
rol ecx, 3
mov dword [edx], ecx
mov edx, dword [esi]
mov edi, ecx
add edx, eax
lea ecx, [eax + edi]
and ecx, 0x1f
add edx, edi
rol edx, cl
inc ebx
mov dword [esi], edx
mov eax, edx
cmp ebx, dword [ebp - 0x118]
jl 0x10009b95
xor ebx, ebx
inc dword [ebp - 0x108]
mov ecx, dword [ebp - 0x108]
cmp ecx, dword [ebp - 0x114]
jl 0x10009bb0
and dword [ebp - 0x108], 0
dec dword [ebp - 0x10c]
jne 0x10009b55
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000e2d0
leave
ret
Function at 0x10009ab4
Capabilities:
Encrypt data using rc6

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10027080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov esi, ecx
push 0x10
pop ecx
mov dword [ebp - 0x110], esi
cmp dword [ebp + 0x10], ecx
je 0x10009a05
cmp dword [ebp + 0x10], 0xc
je 0x10009a05
cmp dword [ebp + 0x10], 8
je 0x10009a05
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
xor ebx, ebx
add ecx, 0xfffffff8
mov dword [ebp - 0x108], ebx
cmp ecx, ebx
jl 0x10009a81
lea edx, [ecx + 8]
shr edx, 3
mov ecx, edx
shl ecx, 3
mov dword [ebp - 0x108], ecx
movzx edi, byte [eax + 1]
movzx ecx, byte [eax]
shl edi, 8
or ecx, edi
movzx edi, byte [eax + 2]
shl edi, 0x10
or ecx, edi
movzx edi, byte [eax + 3]
shl edi, 0x18
or ecx, edi
movzx edi, byte [eax + 5]
mov dword [ebp + ebx*4 - 0x104], ecx
movzx ecx, byte [eax + 4]
shl edi, 8
or ecx, edi
movzx edi, byte [eax + 6]
shl edi, 0x10
or ecx, edi
movzx edi, byte [eax + 7]
shl edi, 0x18
or ecx, edi
add eax, 8
mov dword [ebp + ebx*4 - 0x100], ecx
add ebx, 2
dec edx
jne 0x10009a2d
mov ecx, dword [ebp + 8]
mov edx, ecx
sub edx, dword [ebp - 0x108]
je 0x10009af2
and ecx, 7
add eax, ecx
xor edi, edi
xor edx, edx
dec ecx
cmp ecx, 7
ja case.default.0x10009a9d
jmp dword [ecx*4 + 0x10009bc9]
dec eax
movzx edi, byte [eax]
shl edi, 0x18
dec eax
movzx ecx, byte [eax]
shl ecx, 0x10
or edi, ecx
dec eax
movzx ecx, byte [eax]
shl ecx, 8
or edi, ecx
dec eax
movzx ecx, byte [eax]
or edi, ecx
dec eax
movzx edx, byte [eax]
shl edx, 0x18
dec eax
movzx ecx, byte [eax]
shl ecx, 0x10
or edx, ecx
dec eax
movzx ecx, byte [eax]
shl ecx, 8
or edx, ecx
movzx eax, byte [eax - 1]
or edx, eax
mov eax, ebx
mov dword [ebp + eax*4 - 0x104], edx
mov dword [ebp + eax*4 - 0x100], edi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
add eax, 3
cdq
and edx, 3
add eax, edx
xor edx, edx
lea ecx, [ecx + ecx + 2]
sar eax, 2
inc edx
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x118], ecx
mov dword [esi + 4], 0xb7e15163
cmp ecx, edx
jle 0x10009b34
mov edi, dword [esi + edx*4]
sub edi, 0x61c88647
mov dword [esi + edx*4 + 4], edi
inc edx
cmp edx, ecx
jl 0x10009b22
cmp ecx, eax
jg 0x10009b3a
mov ecx, eax
imul ecx, ecx, 3
xor edi, edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x108], edi
test ecx, ecx
jle 0x10009bb8
mov dword [ebp - 0x10c], ecx
jmp 0x10009b5b
mov esi, dword [ebp - 0x110]
lea edx, [esi + ebx*4 + 4]
mov esi, dword [ebp - 0x108]
lea ecx, [eax + edi]
add ecx, dword [edx]
lea esi, [ebp + esi*4 - 0x104]
rol ecx, 3
mov dword [edx], ecx
mov edx, dword [esi]
mov edi, ecx
add edx, eax
lea ecx, [eax + edi]
and ecx, 0x1f
add edx, edi
rol edx, cl
inc ebx
mov dword [esi], edx
mov eax, edx
cmp ebx, dword [ebp - 0x118]
jl 0x10009b95
xor ebx, ebx
inc dword [ebp - 0x108]
mov ecx, dword [ebp - 0x108]
cmp ecx, dword [ebp - 0x114]
jl 0x10009bb0
and dword [ebp - 0x108], 0
dec dword [ebp - 0x10c]
jne 0x10009b55
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000e2d0
leave
ret
Function at 0x10009abd
Capabilities:
Encrypt data using rc6

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10027080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov esi, ecx
push 0x10
pop ecx
mov dword [ebp - 0x110], esi
cmp dword [ebp + 0x10], ecx
je 0x10009a05
cmp dword [ebp + 0x10], 0xc
je 0x10009a05
cmp dword [ebp + 0x10], 8
je 0x10009a05
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
xor ebx, ebx
add ecx, 0xfffffff8
mov dword [ebp - 0x108], ebx
cmp ecx, ebx
jl 0x10009a81
lea edx, [ecx + 8]
shr edx, 3
mov ecx, edx
shl ecx, 3
mov dword [ebp - 0x108], ecx
movzx edi, byte [eax + 1]
movzx ecx, byte [eax]
shl edi, 8
or ecx, edi
movzx edi, byte [eax + 2]
shl edi, 0x10
or ecx, edi
movzx edi, byte [eax + 3]
shl edi, 0x18
or ecx, edi
movzx edi, byte [eax + 5]
mov dword [ebp + ebx*4 - 0x104], ecx
movzx ecx, byte [eax + 4]
shl edi, 8
or ecx, edi
movzx edi, byte [eax + 6]
shl edi, 0x10
or ecx, edi
movzx edi, byte [eax + 7]
shl edi, 0x18
or ecx, edi
add eax, 8
mov dword [ebp + ebx*4 - 0x100], ecx
add ebx, 2
dec edx
jne 0x10009a2d
mov ecx, dword [ebp + 8]
mov edx, ecx
sub edx, dword [ebp - 0x108]
je 0x10009af2
and ecx, 7
add eax, ecx
xor edi, edi
xor edx, edx
dec ecx
cmp ecx, 7
ja case.default.0x10009a9d
jmp dword [ecx*4 + 0x10009bc9]
dec eax
movzx edi, byte [eax]
shl edi, 0x18
dec eax
movzx ecx, byte [eax]
shl ecx, 0x10
or edi, ecx
dec eax
movzx ecx, byte [eax]
shl ecx, 8
or edi, ecx
dec eax
movzx ecx, byte [eax]
or edi, ecx
dec eax
movzx edx, byte [eax]
shl edx, 0x18
dec eax
movzx ecx, byte [eax]
shl ecx, 0x10
or edx, ecx
dec eax
movzx ecx, byte [eax]
shl ecx, 8
or edx, ecx
movzx eax, byte [eax - 1]
or edx, eax
mov eax, ebx
mov dword [ebp + eax*4 - 0x104], edx
mov dword [ebp + eax*4 - 0x100], edi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
add eax, 3
cdq
and edx, 3
add eax, edx
xor edx, edx
lea ecx, [ecx + ecx + 2]
sar eax, 2
inc edx
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x118], ecx
mov dword [esi + 4], 0xb7e15163
cmp ecx, edx
jle 0x10009b34
mov edi, dword [esi + edx*4]
sub edi, 0x61c88647
mov dword [esi + edx*4 + 4], edi
inc edx
cmp edx, ecx
jl 0x10009b22
cmp ecx, eax
jg 0x10009b3a
mov ecx, eax
imul ecx, ecx, 3
xor edi, edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x108], edi
test ecx, ecx
jle 0x10009bb8
mov dword [ebp - 0x10c], ecx
jmp 0x10009b5b
mov esi, dword [ebp - 0x110]
lea edx, [esi + ebx*4 + 4]
mov esi, dword [ebp - 0x108]
lea ecx, [eax + edi]
add ecx, dword [edx]
lea esi, [ebp + esi*4 - 0x104]
rol ecx, 3
mov dword [edx], ecx
mov edx, dword [esi]
mov edi, ecx
add edx, eax
lea ecx, [eax + edi]
and ecx, 0x1f
add edx, edi
rol edx, cl
inc ebx
mov dword [esi], edx
mov eax, edx
cmp ebx, dword [ebp - 0x118]
jl 0x10009b95
xor ebx, ebx
inc dword [ebp - 0x108]
mov ecx, dword [ebp - 0x108]
cmp ecx, dword [ebp - 0x114]
jl 0x10009bb0
and dword [ebp - 0x108], 0
dec dword [ebp - 0x10c]
jne 0x10009b55
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000e2d0
leave
ret