joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001f040
Capabilities:
Encrypt data using blowfish

Disassembly:
mov eax, 8
call fcn.100a1060
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
mov ecx, 0x412
mov esi, 0x100a4288
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x1c]
cmp ecx, 0x48
jle 0x1001f06d
mov ecx, 0x48
mov esi, dword [esp + 0x20]
mov eax, esi
add ecx, esi
lea edi, [ebx + 8]
mov dword [esp + 0x18], 6
push ebp
movzx edx, byte [eax]
inc eax
cmp eax, ecx
jb 0x1001f08b
mov eax, esi
movzx ebp, byte [eax]
shl edx, 8
or edx, ebp
inc eax
cmp eax, ecx
jb 0x1001f09a
mov eax, esi
movzx ebp, byte [eax]
shl edx, 8
or edx, ebp
inc eax
cmp eax, ecx
jb 0x1001f0a9
mov eax, esi
movzx ebp, byte [eax]
shl edx, 8
or edx, ebp
inc eax
cmp eax, ecx
jb 0x1001f0b8
mov eax, esi
xor dword [edi - 8], edx
movzx edx, byte [eax]
inc eax
cmp eax, ecx
jb 0x1001f0c5
mov eax, esi
movzx ebp, byte [eax]
shl edx, 8
or edx, ebp
inc eax
cmp eax, ecx
jb 0x1001f0d4
mov eax, esi
movzx ebp, byte [eax]
shl edx, 8
or edx, ebp
inc eax
cmp eax, ecx
jb 0x1001f0e3
mov eax, esi
movzx ebp, byte [eax]
shl edx, 8
or edx, ebp
inc eax
cmp eax, ecx
jb 0x1001f0f2
mov eax, esi
xor dword [edi - 4], edx
movzx edx, byte [eax]
inc eax
cmp eax, ecx
jb 0x1001f0ff
mov eax, esi
movzx ebp, byte [eax]
shl edx, 8
or edx, ebp
inc eax
cmp eax, ecx
jb 0x1001f10e
mov eax, esi
movzx ebp, byte [eax]
shl edx, 8
or edx, ebp
inc eax
cmp eax, ecx
jb 0x1001f11d
mov eax, esi
movzx ebp, byte [eax]
shl edx, 8
or edx, ebp
inc eax
cmp eax, ecx
jb 0x1001f12c
mov eax, esi
mov ebp, dword [edi]
xor ebp, edx
mov edx, dword [esp + 0x1c]
mov dword [edi], ebp
add edi, 0xc
dec edx
mov dword [esp + 0x1c], edx
jne 0x1001f081
xor edi, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
xor esi, esi
pop ebp
lea eax, [esp + 0xc]
push ebx
push eax
call sym.LIBEAY32.dll_BF_encrypt
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [ebx + esi*4], ecx
mov dword [ebx + esi*4 + 4], edx
add esi, 2
add esp, 8
cmp esi, 0x12
jl 0x1001f151
xor esi, esi
lea eax, [esp + 0xc]
push ebx
push eax
call sym.LIBEAY32.dll_BF_encrypt
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [ebx + esi*4 + 0x48], ecx
mov dword [ebx + esi*4 + 0x4c], edx
add esi, 2
add esp, 8
cmp esi, 0x400
jl 0x1001f178
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x1001fab6
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
push edi
push esi
push edi
push esi
mov ebx, esp
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
push eax
push ebx
cmp ecx, 0
je 0x1001fbb2
and ebp, 0xfffffff8
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
je 0x1001fb42
mov ecx, dword [esi]
mov edx, dword [esi + 4]
xor eax, ecx
xor ebx, edx
bswap eax
bswap ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call sym.LIBEAY32.dll_BF_encrypt
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
bswap eax
bswap ebx
mov dword [edi], eax
mov dword [edi + 4], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x1001faff
mov ebp, dword [esp + 0x34]
and ebp, 7
je 0x1001fc8a
call 0x1001fb57
pop edx
lea ecx, [edx + 0x169]
mov ebp, dword [ecx + ebp*4]
add ebp, edx
xor ecx, ecx
xor edx, edx
jmp ebp
and ebp, 0xfffffff8
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
je 0x1001fc1e
mov eax, dword [esi]
mov ebx, dword [esi + 4]
bswap eax
bswap ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call sym.LIBEAY32.dll_BF_decrypt
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
bswap eax
bswap ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x1001fbc6
mov ebp, dword [esp + 0x34]
and ebp, 7
je 0x1001fc8a
mov eax, dword [esi]
mov ebx, dword [esi + 4]
bswap eax
bswap ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call sym.LIBEAY32.dll_BF_decrypt
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
bswap eax
bswap ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
ror edx, 0x10
mov byte [edi + 6], dl
shr edx, 0x10
mov byte [edi + 5], dh
mov byte [edi + 4], dl
mov dword [edi], ecx
jmp 0x1001fc85
jmp 0x1001fc8a
mov ecx, dword [esp + 0x3c]
add esp, 0x18
mov dword [ecx], eax
mov dword [ecx + 4], ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1001ff00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x14
call fcn.100a1060
mov eax, dword [esp + 0x2c]
push ebx
push ebp
push esi
mov esi, dword [eax]
push edi
mov edi, dword [esp + 0x38]
movzx ecx, byte [edi]
shl ecx, 0x18
lea ebp, [edi + 1]
mov eax, ebp
movzx edx, byte [eax]
shl edx, 0x10
or ecx, edx
inc eax
xor edx, edx
mov dh, byte [eax]
mov dword [esp + 0x10], 0
or ecx, edx
movzx edx, byte [eax + 1]
inc eax
or ecx, edx
movzx edx, byte [eax + 1]
inc eax
movzx ebx, byte [eax + 1]
shl edx, 0x18
inc eax
shl ebx, 0x10
or edx, ebx
inc eax
xor ebx, ebx
mov bh, byte [eax]
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x17], cl
mov bl, byte [eax + 1]
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x14], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x15], al
or edx, ebx
mov eax, ecx
shr eax, 8
mov byte [esp + 0x16], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x18], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x19], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x1a], al
mov eax, dword [esp + 0x30]
test eax, eax
mov dword [esp + 0x20], edx
mov byte [esp + 0x1b], dl
je 0x100200a1
mov dword [esp + 0x38], eax
test esi, esi
jne 0x10020018
mov ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x20]
push edx
call sym.LIBEAY32.dll_BF_encrypt
mov ecx, dword [esp + 0x24]
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x1c], al
mov edx, ecx
shr edx, 0x10
mov eax, ecx
shr eax, 8
mov byte [esp + 0x1e], al
mov byte [esp + 0x1d], dl
mov edx, dword [esp + 0x28]
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x20], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x21], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x22], al
mov eax, dword [esp + 0x18]
add esp, 8
inc eax
mov byte [esp + 0x17], cl
mov byte [esp + 0x1b], dl
mov dword [esp + 0x10], eax
mov bl, byte [esp + esi + 0x14]
mov eax, dword [esp + 0x28]
xor bl, byte [eax]
mov eax, dword [esp + 0x2c]
mov byte [eax], bl
inc eax
mov dword [esp + 0x2c], eax
inc dword [esp + 0x28]
mov eax, dword [esp + 0x38]
inc esi
and esi, 7
dec eax
mov dword [esp + 0x38], eax
jne 0x1001ffb3
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10020093
mov eax, ecx
shr eax, 0x18
mov byte [edi], al
mov ebx, ecx
shr ebx, 0x10
mov eax, ebp
mov byte [eax], bl
mov ebx, ecx
shr ebx, 8
mov byte [eax + 1], bl
inc eax
mov byte [eax + 1], cl
inc eax
inc eax
mov ecx, edx
shr ecx, 0x18
mov byte [eax], cl
mov ecx, edx
shr ecx, 0x10
mov byte [eax + 1], cl
inc eax
inc eax
mov ecx, edx
shr ecx, 8
mov byte [eax], cl
mov byte [eax + 1], dl
mov edx, dword [esp + 0x3c]
pop edi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, dword [esp + 0x3c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov ecx, dword [esp + 0x3c]
pop edi
mov dword [ecx], esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x10021f22
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
push edi
push esi
push edi
push esi
mov ebx, esp
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
push eax
push ebx
cmp ecx, 0
je 0x10022022
and ebp, 0xfffffff8
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
je 0x10021fae
mov ecx, dword [esi]
mov edx, dword [esi + 4]
xor eax, ecx
xor ebx, edx
bswap eax
bswap ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call sym.LIBEAY32.dll_CAST_encrypt
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
bswap eax
bswap ebx
mov dword [edi], eax
mov dword [edi + 4], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x10021f6b
mov ebp, dword [esp + 0x34]
and ebp, 7
je 0x100220fa
call 0x10021fc3
pop edx
lea ecx, [edx + 0x15d]
mov ebp, dword [ecx + ebp*4]
add ebp, edx
xor ecx, ecx
xor edx, edx
jmp ebp
and ebp, 0xfffffff8
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
je 0x1002208e
mov eax, dword [esi]
mov ebx, dword [esi + 4]
bswap eax
bswap ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call sym.LIBEAY32.dll_CAST_decrypt
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
bswap eax
bswap ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x10022036
mov ebp, dword [esp + 0x34]
and ebp, 7
je 0x100220fa
mov eax, dword [esi]
mov ebx, dword [esi + 4]
bswap eax
bswap ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call sym.LIBEAY32.dll_CAST_decrypt
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
bswap eax
bswap ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
ror edx, 0x10
mov byte [edi + 6], dl
shr edx, 0x10
mov byte [edi + 5], dh
mov byte [edi + 4], dl
mov dword [edi], ecx
jmp 0x100220f5
jmp 0x100220fa
mov ecx, dword [esp + 0x3c]
add esp, 0x18
mov dword [ecx], eax
mov dword [ecx + 4], ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10022360
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x14
call fcn.100a1060
mov eax, dword [esp + 0x2c]
push ebx
push ebp
push esi
mov esi, dword [eax]
push edi
mov edi, dword [esp + 0x38]
movzx ecx, byte [edi]
shl ecx, 0x18
lea ebp, [edi + 1]
mov eax, ebp
movzx edx, byte [eax]
shl edx, 0x10
or ecx, edx
inc eax
xor edx, edx
mov dh, byte [eax]
mov dword [esp + 0x10], 0
or ecx, edx
movzx edx, byte [eax + 1]
inc eax
or ecx, edx
movzx edx, byte [eax + 1]
inc eax
movzx ebx, byte [eax + 1]
shl edx, 0x18
inc eax
shl ebx, 0x10
or edx, ebx
inc eax
xor ebx, ebx
mov bh, byte [eax]
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x17], cl
mov bl, byte [eax + 1]
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x14], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x15], al
or edx, ebx
mov eax, ecx
shr eax, 8
mov byte [esp + 0x16], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x18], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x19], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x1a], al
mov eax, dword [esp + 0x30]
test eax, eax
mov dword [esp + 0x20], edx
mov byte [esp + 0x1b], dl
je 0x10022501
mov dword [esp + 0x38], eax
test esi, esi
jne 0x10022478
mov ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x20]
push edx
call sym.LIBEAY32.dll_CAST_encrypt
mov ecx, dword [esp + 0x24]
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x1c], al
mov edx, ecx
shr edx, 0x10
mov eax, ecx
shr eax, 8
mov byte [esp + 0x1e], al
mov byte [esp + 0x1d], dl
mov edx, dword [esp + 0x28]
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x20], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x21], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x22], al
mov eax, dword [esp + 0x18]
add esp, 8
inc eax
mov byte [esp + 0x17], cl
mov byte [esp + 0x1b], dl
mov dword [esp + 0x10], eax
mov bl, byte [esp + esi + 0x14]
mov eax, dword [esp + 0x28]
xor bl, byte [eax]
mov eax, dword [esp + 0x2c]
mov byte [eax], bl
inc eax
mov dword [esp + 0x2c], eax
inc dword [esp + 0x28]
mov eax, dword [esp + 0x38]
inc esi
and esi, 7
dec eax
mov dword [esp + 0x38], eax
jne 0x10022413
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100224f3
mov eax, ecx
shr eax, 0x18
mov byte [edi], al
mov ebx, ecx
shr ebx, 0x10
mov eax, ebp
mov byte [eax], bl
mov ebx, ecx
shr ebx, 8
mov byte [eax + 1], bl
inc eax
mov byte [eax + 1], cl
inc eax
inc eax
mov ecx, edx
shr ecx, 0x18
mov byte [eax], cl
mov ecx, edx
shr ecx, 0x10
mov byte [eax + 1], cl
inc eax
inc eax
mov ecx, edx
shr ecx, 8
mov byte [eax], cl
mov byte [eax + 1], dl
mov edx, dword [esp + 0x3c]
pop edi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, dword [esp + 0x3c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov ecx, dword [esp + 0x3c]
pop edi
mov dword [ecx], esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x10022610
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x2c
call fcn.100a1060
push ebx
mov ebx, dword [esp + 0x3c]
test ebx, ebx
jle 0x100227a9
cmp ebx, 0x80
jg 0x100227a9
push ebp
push esi
push edi
mov edi, dword [esp + 0x50]
mov eax, edi
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x4c]
push eax
push edi
push edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
call sym.LIBEAY32.dll_AES_encrypt
lea eax, [ebx + 7]
cdq
and edx, 7
add eax, edx
mov ebp, eax
mov eax, dword [esp + 0x60]
add esp, 0xc
sar ebp, 3
test eax, eax
je 0x100226a7
test ebp, ebp
jle 0x100226ef
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
lea esi, [esp + 0x2c]
sub edx, edi
sub esi, edi
mov ecx, edi
sub ebx, edi
mov al, byte [edx + ecx]
xor al, byte [ecx]
inc ecx
dec ebp
mov byte [esi + ecx - 1], al
mov byte [ebx + ecx - 1], al
jne 0x10022694
jmp 0x100226eb
xor esi, esi
test ebp, ebp
jle 0x100226ef
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x2c]
mov edx, ecx
sub eax, ecx
mov ecx, dword [esp + 0x44]
mov ebx, edi
sub ebx, edx
sub ecx, edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ecx
jmp 0x100226d1
mov ebx, dword [esp + 0x14]
lea ecx, [esp + esi + 0x2c]
mov dl, byte [eax + ecx]
mov bl, byte [ebx + ecx]
xor bl, dl
mov byte [ecx], dl
mov edx, dword [esp + 0x18]
inc esi
cmp esi, ebp
mov byte [edx + ecx], bl
jl 0x100226cd
mov ebx, dword [esp + 0x48]
and ebx, reloc.WSOCK32.dll_getsockopt
jns 0x100226fc
dec ebx
or ebx, 0xfffffff8
inc ebx
mov eax, dword [esp + 0x48]
cdq
and edx, 7
add eax, edx
sar eax, 3
test ebx, ebx
mov dword [esp + 0x14], ebx
jne 0x10022733
lea eax, [esp + eax + 0x1c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [edi], ecx
mov ecx, dword [eax + 8]
mov dword [edi + 4], edx
mov edx, dword [eax + 0xc]
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov cl, 8
sub cl, bl
mov byte [esp + 0x48], cl
inc edi
lea esi, [esp + eax + 0x1d]
mov ebp, 4
mov al, byte [esi]
mov dl, byte [esi - 1]
mov ecx, ebx
shl dl, cl
mov cl, byte [esp + 0x48]
mov bl, al
shr bl, cl
mov ecx, dword [esp + 0x14]
shl al, cl
mov cl, byte [esp + 0x48]
or dl, bl
mov byte [edi - 1], dl
mov dl, byte [esi + 1]
mov bl, dl
shr bl, cl
add esi, 4
add edi, 4
or al, bl
mov ebx, dword [esp + 0x14]
mov byte [edi - 4], al
mov al, byte [esi - 2]
mov ecx, ebx
shl dl, cl
mov cl, byte [esp + 0x48]
mov byte [esp + 0x13], al
shr al, cl
or dl, al
mov al, byte [esp + 0x13]
mov byte [edi - 3], dl
mov dl, byte [esi - 1]
shr dl, cl
mov ecx, ebx
shl al, cl
or dl, al
dec ebp
mov byte [edi - 2], dl
jne 0x10022745
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x10023410
Capabilities:
Encode data using xor

Disassembly:
mov dword [esp + 0xc], edi
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
mov esi, dword [edi + 0xf0]
lea esi, [esi + esi - 2]
lea esi, [edi + esi*8]
mov dword [esp + 0x10], esi
mov esi, eax
and esi, 0xff
mov esi, dword [ebp + esi*8]
movzx edi, bh
xor esi, dword [ebp + edi*8 + 3]
mov edi, ecx
shr edi, 0x10
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
mov edi, edx
shr edi, 0x18
xor esi, dword [ebp + edi*8 + 1]
mov dword [esp + 4], esi
mov esi, ebx
and esi, 0xff
shr ebx, 0x10
mov esi, dword [ebp + esi*8]
movzx edi, ch
xor esi, dword [ebp + edi*8 + 3]
mov edi, edx
shr edi, 0x10
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
mov edi, eax
shr edi, 0x18
xor esi, dword [ebp + edi*8 + 1]
mov dword [esp + 8], esi
mov esi, ecx
and esi, 0xff
shr ecx, 0x18
mov esi, dword [ebp + esi*8]
movzx edi, dh
xor esi, dword [ebp + edi*8 + 3]
mov edi, eax
shr edi, 0x10
and edx, 0xff
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
movzx edi, bh
xor esi, dword [ebp + edi*8 + 1]
mov edi, dword [esp + 0xc]
mov edx, dword [ebp + edx*8]
movzx eax, ah
xor edx, dword [ebp + eax*8 + 3]
mov eax, dword [esp + 4]
and ebx, 0xff
xor edx, dword [ebp + ebx*8 + 2]
mov ebx, dword [esp + 8]
xor edx, dword [ebp + ecx*8 + 1]
mov ecx, esi
add edi, 0x10
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
cmp edi, dword [esp + 0x10]
mov dword [esp + 0xc], edi
jb 0x10023430
mov esi, eax
and esi, 0xff
mov esi, dword [ebp + esi*8 + 2]
and esi, 0xff
movzx edi, bh
mov edi, dword [ebp + edi*8]
and edi, 0xff00
xor esi, edi
mov edi, ecx
shr edi, 0x10
and edi, 0xff
mov edi, dword [ebp + edi*8]
and edi, 0xff0000
xor esi, edi
mov edi, edx
shr edi, 0x18
mov edi, dword [ebp + edi*8 + 2]
and edi, 0xff000000
xor esi, edi
mov dword [esp + 4], esi
mov esi, ebx
and esi, 0xff
shr ebx, 0x10
mov esi, dword [ebp + esi*8 + 2]
and esi, 0xff
movzx edi, ch
mov edi, dword [ebp + edi*8]
and edi, 0xff00
xor esi, edi
mov edi, edx
shr edi, 0x10
and edi, 0xff
mov edi, dword [ebp + edi*8]
and edi, 0xff0000
xor esi, edi
mov edi, eax
shr edi, 0x18
mov edi, dword [ebp + edi*8 + 2]
and edi, 0xff000000
xor esi, edi
mov dword [esp + 8], esi
mov esi, ecx
and esi, 0xff
shr ecx, 0x18
mov esi, dword [ebp + esi*8 + 2]
and esi, 0xff
movzx edi, dh
mov edi, dword [ebp + edi*8]
and edi, 0xff00
xor esi, edi
mov edi, eax
shr edi, 0x10
and edx, 0xff
and edi, 0xff
mov edi, dword [ebp + edi*8]
and edi, 0xff0000
xor esi, edi
movzx edi, bh
mov edi, dword [ebp + edi*8 + 2]
and edi, 0xff000000
xor esi, edi
mov edi, dword [esp + 0xc]
and edx, 0xff
mov edx, dword [ebp + edx*8 + 2]
and edx, 0xff
movzx eax, ah
mov eax, dword [ebp + eax*8]
and eax, 0xff00
xor edx, eax
mov eax, dword [esp + 4]
and ebx, 0xff
mov ebx, dword [ebp + ebx*8]
and ebx, 0xff0000
xor edx, ebx
mov ebx, dword [esp + 8]
mov ecx, dword [ebp + ecx*8 + 2]
and ecx, 0xff000000
xor edx, ecx
mov ecx, esi
add edi, 0x10
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
ret
Function at 0x10023f28
Capabilities:
Encode data using xor

Disassembly:
mov dword [esp + 0xc], edi
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
mov esi, dword [edi + 0xf0]
lea esi, [esi + esi - 2]
lea esi, [edi + esi*8]
mov dword [esp + 0x10], esi
mov esi, eax
and esi, 0xff
mov esi, dword [ebp + esi*8]
movzx edi, dh
xor esi, dword [ebp + edi*8 + 3]
mov edi, ecx
shr edi, 0x10
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
mov edi, ebx
shr edi, 0x18
xor esi, dword [ebp + edi*8 + 1]
mov dword [esp + 4], esi
mov esi, ebx
and esi, 0xff
mov esi, dword [ebp + esi*8]
movzx edi, ah
xor esi, dword [ebp + edi*8 + 3]
mov edi, edx
shr edi, 0x10
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
mov edi, ecx
shr edi, 0x18
xor esi, dword [ebp + edi*8 + 1]
mov dword [esp + 8], esi
mov esi, ecx
and esi, 0xff
mov esi, dword [ebp + esi*8]
movzx edi, bh
xor esi, dword [ebp + edi*8 + 3]
mov edi, eax
shr edi, 0x10
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
mov edi, edx
shr edi, 0x18
xor esi, dword [ebp + edi*8 + 1]
mov edi, dword [esp + 0xc]
and edx, 0xff
mov edx, dword [ebp + edx*8]
movzx ecx, ch
xor edx, dword [ebp + ecx*8 + 3]
mov ecx, esi
shr ebx, 0x10
and ebx, 0xff
xor edx, dword [ebp + ebx*8 + 2]
mov ebx, dword [esp + 8]
shr eax, 0x18
xor edx, dword [ebp + eax*8 + 1]
mov eax, dword [esp + 4]
add edi, 0x10
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
cmp edi, dword [esp + 0x10]
mov dword [esp + 0xc], edi
jb 0x10023f48
mov esi, eax
and esi, 0xff
movzx esi, byte [ebp + esi + 0x800]
movzx edi, dh
movzx edi, byte [ebp + edi + 0x800]
shl edi, 8
xor esi, edi
mov edi, ecx
shr edi, 0x10
and edi, 0xff
movzx edi, byte [ebp + edi + 0x800]
shl edi, 0x10
xor esi, edi
mov edi, ebx
shr edi, 0x18
movzx edi, byte [ebp + edi + 0x800]
shl edi, 0x18
xor esi, edi
mov dword [esp + 4], esi
mov esi, ebx
and esi, 0xff
movzx esi, byte [ebp + esi + 0x800]
movzx edi, ah
movzx edi, byte [ebp + edi + 0x800]
shl edi, 8
xor esi, edi
mov edi, edx
shr edi, 0x10
and edi, 0xff
movzx edi, byte [ebp + edi + 0x800]
shl edi, 0x10
xor esi, edi
mov edi, ecx
shr edi, 0x18
movzx edi, byte [ebp + edi + 0x800]
shl edi, 0x18
xor esi, edi
mov dword [esp + 8], esi
mov esi, ecx
and esi, 0xff
movzx esi, byte [ebp + esi + 0x800]
movzx edi, bh
movzx edi, byte [ebp + edi + 0x800]
shl edi, 8
xor esi, edi
mov edi, eax
shr edi, 0x10
and edi, 0xff
movzx edi, byte [ebp + edi + 0x800]
shl edi, 0x10
xor esi, edi
mov edi, edx
shr edi, 0x18
movzx edi, byte [ebp + edi + 0x800]
shl edi, 0x18
xor esi, edi
mov edi, dword [esp + 0xc]
and edx, 0xff
movzx edx, byte [ebp + edx + 0x800]
movzx ecx, ch
movzx ecx, byte [ebp + ecx + 0x800]
shl ecx, 8
xor edx, ecx
mov ecx, esi
shr ebx, 0x10
and ebx, 0xff
movzx ebx, byte [ebp + ebx + 0x800]
shl ebx, 0x10
xor edx, ebx
mov ebx, dword [esp + 8]
shr eax, 0x18
movzx eax, byte [ebp + eax + 0x800]
shl eax, 0x18
xor edx, eax
mov eax, dword [esp + 4]
add edi, 0x10
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
ret
Function at 0x10025271
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub esp, 0xc
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call sym.LIBEAY32.dll_AES_set_encrypt_key
add esp, 0xc
cmp eax, 0
je 0x100252a5
ret
push ebp
push ebx
push esi
push edi
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0xf0]
lea ecx, [ecx*4]
lea edi, [esi + ecx*4]
nop
nop
nop
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov dword [edi], eax
mov dword [edi + 4], ebx
mov dword [esi], ecx
mov dword [esi + 4], edx
mov eax, dword [esi + 8]
mov ebx, dword [esi + 0xc]
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
add esi, 0x10
sub edi, 0x10
cmp esi, edi
jne 0x100252c0
call 0x10025305
pop ebp
lea edi, [ebp - 0x1175]
lea ebp, [ebp - 0x1c75]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0xf0]
dec ecx
nop
nop
nop
add esi, 0x10
mov eax, dword [esi]
mov edx, eax
movzx ebx, ah
shr edx, 0x10
and eax, 0xff
movzx eax, byte [ebp + eax*8 + 2]
movzx ebx, byte [ebp + ebx*8 + 2]
mov eax, dword [edi + eax*8]
xor eax, dword [edi + ebx*8 + 3]
movzx ebx, dh
and edx, 0xff
movzx edx, byte [ebp + edx*8 + 2]
movzx ebx, byte [ebp + ebx*8 + 2]
xor eax, dword [edi + edx*8 + 2]
xor eax, dword [edi + ebx*8 + 1]
mov dword [esi], eax
mov eax, dword [esi + 4]
mov edx, eax
movzx ebx, ah
shr edx, 0x10
and eax, 0xff
movzx eax, byte [ebp + eax*8 + 2]
movzx ebx, byte [ebp + ebx*8 + 2]
mov eax, dword [edi + eax*8]
xor eax, dword [edi + ebx*8 + 3]
movzx ebx, dh
and edx, 0xff
movzx edx, byte [ebp + edx*8 + 2]
movzx ebx, byte [ebp + ebx*8 + 2]
xor eax, dword [edi + edx*8 + 2]
xor eax, dword [edi + ebx*8 + 1]
mov dword [esi + 4], eax
mov eax, dword [esi + 8]
mov edx, eax
movzx ebx, ah
shr edx, 0x10
and eax, 0xff
movzx eax, byte [ebp + eax*8 + 2]
movzx ebx, byte [ebp + ebx*8 + 2]
mov eax, dword [edi + eax*8]
xor eax, dword [edi + ebx*8 + 3]
movzx ebx, dh
and edx, 0xff
movzx edx, byte [ebp + edx*8 + 2]
movzx ebx, byte [ebp + ebx*8 + 2]
xor eax, dword [edi + edx*8 + 2]
xor eax, dword [edi + ebx*8 + 1]
mov dword [esi + 8], eax
mov eax, dword [esi + 0xc]
mov edx, eax
movzx ebx, ah
shr edx, 0x10
and eax, 0xff
movzx eax, byte [ebp + eax*8 + 2]
movzx ebx, byte [ebp + ebx*8 + 2]
mov eax, dword [edi + eax*8]
xor eax, dword [edi + ebx*8 + 3]
movzx ebx, dh
and edx, 0xff
movzx edx, byte [ebp + edx*8 + 2]
movzx ebx, byte [ebp + ebx*8 + 2]
xor eax, dword [edi + edx*8 + 2]
xor eax, dword [edi + ebx*8 + 1]
mov dword [esi + 0xc], eax
dec ecx
jne 0x10025320
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret