joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a6d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1e000]
push edi
or ebp, 0xffffffff
jmp 0x42a6f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42a6f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42a6e8
mov eax, 1
add ebx, ebx
jne 0x42a70b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42a700
jne 0x42a71c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42a700
xor ecx, ecx
sub eax, 3
jb 0x42a730
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42a7a2
mov ebp, eax
add ebx, ebx
jne 0x42a73b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42a748
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42a76c
inc ecx
add ebx, ebx
jne 0x42a758
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42a74d
jne 0x42a769
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42a74d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42a78c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42a77d
jmp 0x42a6ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42a78c
add edi, ecx
jmp 0x42a6ee
pop esi
mov edi, esi
mov ecx, 0x5e2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42a7aa
cmp byte [edi], 0xa
jne 0x42a7aa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x42a7af
lea edi, [esi + 0x28000]
mov eax, dword [edi]
or eax, eax
je 0x42a827
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x300dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x301b8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42a7dc
mov ecx, edi
jns 0x42a80b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x301bc]
or eax, eax
je 0x42a821
mov dword [ebx], eax
add ebx, 4
jmp 0x42a7f9
call dword [esi + 0x301c0]
popal
jmp 0x40a7b9
Function at 0xd51790
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
xor eax, eax
cmp dword [esp + 0x20], 0
je 0xd51860
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0xd51860
mov esi, 0x1505
cmp dword [esp + 0x28], 0
je 0xd517e0
xor ebx, ebx
nop
nop
movzx ecx, byte [ebp + ebx]
test ecx, ecx
je 0xd517e0
mov edx, esi
shl edx, 5
mov edi, edx
and edi, esi
xor edx, esi
add edx, ecx
lea esi, [edx + edi*2]
inc ebx
cmp dword [esp + 0x28], ebx
jne 0xd517c0
mov ecx, dword [esp + 0x20]
mov ebx, dword [ecx + 0x20]
lea edi, [ebx - 1]
mov edx, ebx
sub edx, 1
mov dword [esp + 8], edx
jb 0xd51860
and edi, esi
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0xd51804
inc edi
dec ebx
je 0xd5185e
mov eax, edi
and eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebp, dword [edx + eax*4]
cmp ebp, 0xffffffff
je 0xd5185e
mov eax, dword [ecx + 8]
cmp dword [eax + ebp*4], esi
jne 0xd51800
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebp*4]
mov dword [esp], eax
push eax
call fcn.00d582d0
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0xd51800
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.00d582f0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0xd51800
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebp*4]
jmp 0xd51860
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0xd58cc0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [ecx]
cmp eax, 0x270
jne 0xd58d37
mov esi, dword [ecx + 4]
xor eax, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edi, dword [ecx + edx*2 + 8]
mov ebx, edx
and ebx, 0x31a
mov ebp, eax
xor ebp, 0x18d
add ebp, ebx
mov ebx, edi
and ebx, 1
neg ebx
and ebx, 0x9908b0df
xor ebx, dword [ecx + ebp*4 + 4]
mov ebp, edi
and esi, 0x80000000
and ebp, 0x7ffffffe
or ebp, esi
shr ebp, 1
xor ebx, ebp
mov dword [ecx + edx*2 + 0x9c4], ebx
mov esi, edi
add edx, 2
inc eax
cmp edx, 0x4e0
jne 0xd58ce0
mov eax, 0x270
jmp 0xd58d49
cmp eax, 0x4e0
jb 0xd58d49
mov esi, ecx
call fcn.00d58d90
mov ecx, esi
mov eax, dword [esi]
lea edx, [eax + 1]
mov dword [ecx], edx
mov eax, dword [ecx + eax*4 + 4]
mov edx, eax
shr edx, 0xb
and edx, dword [ecx + 0x1384]
xor edx, eax
mov eax, edx
shl eax, 7
and eax, 0x9d2c5680
xor eax, edx
mov ecx, eax
shl ecx, 0xf
and ecx, 0xefc60000
mov edx, ecx
and edx, eax
add edx, edx
sub ecx, edx
add ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0xd58d90
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push edi
push esi
mov esi, dword [ecx + 0x9c4]
mov eax, 0x3fe
nop
nop
nop
and esi, 0x80000000
mov edi, dword [ecx + eax*4 - 0x630]
mov edx, edi
and edx, 0x7ffffffe
or edx, esi
shr edx, 1
mov esi, edi
and edi, 1
neg edi
and edi, 0x9908b0df
xor edi, dword [ecx + eax*4]
xor edi, edx
mov dword [ecx + eax*4 - 0xff4], edi
inc eax
cmp eax, 0x4e1
jne 0xd58da0
mov esi, dword [ecx + 0xd50]
mov eax, 0x355
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
and esi, 0x80000000
mov edi, dword [ecx + eax*4]
mov edx, edi
and edx, 0x7ffffffe
or edx, esi
shr edx, 1
mov esi, edi
and edi, 1
neg edi
and edi, 0x9908b0df
xor edi, dword [ecx + eax*4 - 0xd50]
xor edi, edx
mov dword [ecx + eax*4 - 0x9c4], edi
inc eax
cmp eax, 0x4e1
jne 0xd58df0
mov edx, SysReAllocString
and edx, dword [ecx + 0x1380]
mov eax, SysReAllocString
and eax, dword [ecx + 4]
or eax, edx
mov edx, eax
shr edx, 1
mov esi, eax
xor esi, 0xfffffffe
or eax, 1
and eax, esi
je 0xd58e54
mov eax, 0x9908b0df
xor edx, dword [ecx + 0x634]
xor edx, eax
mov dword [ecx + 0x9c0], edx
mov dword [ecx], 0
pop esi
pop edi
ret
Function at 0xd59f20
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x228
mov eax, dword [0xfcd98324]
mov dword [esp], eax
mov dword [esp + 0x1a8], 0x77760108
mov byte [esp + 0x1ac], 0
xor ecx, ecx
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + edx + 0x1a8]
mov eax, edx
xor eax, 0x87fd27c2
mov ebx, ecx
and ebx, 0xa
sub ebx, eax
mov edi, ebx
and edi, esi
mov eax, edi
or eax, 0xfd
inc eax
mov ebp, edi
and ebp, 0x7d
imul ebp, eax
mov eax, edi
and eax, 2
or edi, 2
imul edi, eax
sub ebp, edi
add ebx, esi
add ebx, ebp
add bl, 0xca
mov byte [esp + edx + 0x1a8], bl
inc edx
add ecx, 2
cmp edx, 5
jne 0xd59f50
mov ecx, dword [esp + 0x1a8]
mov dword [esp + 0x18], 0xf967fb65
mov dword [esp + 0x1c], 0xe507e726
mov dword [esp + 0x20], 0xe13ce339
mov dword [esp + 0x24], 0xed02ef32
mov dword [esp + 0x28], 0xe97eeb78
mov dword [esp + 0x2c], 0x97e8
mov byte [esp + 0x30], 0
mov edx, 0x2a
mov esi, 0xcb5637d4
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [esp + edx - 0x12]
lea edi, [edx - 0x65ab1bff]
lea eax, [esi + 0x34a9c840]
and eax, 0x34
and edi, 0x4b
or edi, eax
xor edi, 0xcb
or edi, ebx
lea eax, [esi + 0x34a9c900]
or eax, esi
and eax, ebx
xor eax, edi
mov bl, 0x28
sub bl, al
mov byte [esp + edx - 0x12], bl
inc edx
dec esi
cmp edx, 0x43
jne 0xd59ff0
lea edi, [esp + 0x18]
push ecx
push 0
push edi
call dword [esp + 0xc]
mov ecx, 0xfcd98328
push eax
call fcn.00d86f10
movzx eax, al
mov eax, dword [eax*4 - 0x326e5b8]
mov ecx, 0x616bdf1e
xor ecx, dword [0xfcd91a50]
add eax, ecx
inc eax
jmp eax
Function at 0xd66940
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x188
mov esi, esp
mov ebx, dword [ebp + 0xc]
push eax
sub esp, 8
mov dword [esi + 0x34], esp
sub esp, 0xc
mov dword [esi + 0x28], esp
mov dword [esi + 0x18], 0x7f10792b
mov dword [esi + 0x1c], 0x63f17deb
mov dword [esi + 0x20], 0x676661f2
mov eax, 0x5721d76a
nop
nop
nop
nop
nop
movzx ecx, byte [esi + eax - 0x5721d752]
mov edi, ecx
xor edi, eax
lea edx, [edi + edi]
not edx
add edx, edi
and edx, eax
add dl, dl
sub cl, dl
movzx ecx, cl
add ecx, eax
add cl, 0xee
mov byte [esi + eax - 0x5721d752], cl
inc eax
cmp eax, 0x5721d776
jne 0xd66980
mov dword [esi + 0x3c], 0xc356c1a8
mov dword [esi + 0x40], 0xc756c550
mov dword [esi + 0x44], 0xcbe5c992
mov dword [esi + 0x48], 0xcfa2cde3
mov dword [esi + 0x4c], 0xf391f19f
mov dword [esi + 0x50], 0xf79af595
mov dword [esi + 0x54], 0xfb95f990
mov dword [esi + 0x58], 0xff6afd6f
mov dword [esi + 0x5c], 0xe3e2e1ba
mov eax, 0x5b200d0
mov ecx, 0x3a4dff2f
nop
nop
nop
nop
nop
nop
nop
mov edi, ecx
and edi, 0x3248474a
mov edx, eax
and edx, 0x43000b5
or edx, edi
movzx edi, byte [esi + eax - 0x5b20094]
xor edx, edi
lea edi, [edx + edx]
and edi, 0x440087de
xor edi, 0x47008694
xor edx, 0xd04fbca5
add edx, edi
mov edi, edx
xor edi, 0xd404e9f
and edx, 0xf2bfb160
add edx, edx
sub edx, edi
mov edi, edx
and edi, 1
xor edx, 1
lea edx, [edx + edi*2]
add dl, 0x9f
mov byte [esi + eax - 0x5b20094], dl
inc eax
dec ecx
cmp eax, 0x5b200f4
jne 0xd66a00
movzx ecx, word [esi + 0x3c]
lea eax, [esi + 0x14e]
test cx, cx
je 0xd66a91
lea edx, [esi + 0x3e]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0xd66a80
mov word [eax], 0
mov edx, dword [ebp + 0x10]
movzx ecx, word [edx]
test cx, cx
je 0xd66ac1
add edx, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0xd66ab0
mov word [eax], 0
movzx ecx, word [esi + 0x18]
test cx, cx
je 0xd66af1
lea edx, [esi + 0x1a]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0xd66ae0
mov word [eax], 0
mov edi, dword [ebx]
mov dword [esi + 0x3c], 0xbda0a0da
mov byte [esi + 0x40], 0xd8
mov dword [esi + 0x41], 0
xor eax, eax
nop
nop
nop
nop
mov ecx, eax
add cl, 0xcf
xor cl, byte [esi + eax + 0x3c]
add cl, 0xf5
mov byte [esi + eax + 0x3c], cl
inc eax
cmp eax, 9
jne 0xd66b10
movzx eax, byte [esi + 0x3c]
test al, al
je 0xd66b4b
lea ecx, [esi + 0x3d]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edi], al
inc edi
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0xd66b40
mov byte [edi], 0
lea eax, [esi + 0x148]
lea ecx, [esi + 0x38]
lea edx, [esi + 0x14e]
push eax
push ecx
push edx
call fcn.00d5b620
add esp, 0xc
movzx eax, al
mov eax, dword [eax*4 - 0x326d25c]
mov ecx, 0xbf86962
xor ecx, dword [0xfcd92dac]
add eax, ecx
inc eax
jmp eax
Function at 0xd71620
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x458
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x54], 0x179a1997
mov dword [esp + 0x58], 0x13731589
mov dword [esp + 0x5c], 0xf5c1185
mov dword [esp + 0x60], 0xb820d91
mov dword [esp + 0x64], 0x7060995
xor eax, eax
xor ecx, ecx
nop
nop
nop
nop
nop
movzx esi, byte [esp + ecx + 0x54]
mov edi, eax
and edi, 0xc
mov edx, ecx
xor edx, 0xa5a5406
add edx, edi
mov edi, edx
and edi, esi
add edx, esi
add edi, edi
sub edx, edi
add dl, 0xe2
mov byte [esp + ecx + 0x54], dl
inc ecx
add eax, 2
cmp ecx, 0x14
jne 0xd71680
lea eax, [esp + 0x54]
lea ecx, [esp + 0x38]
push eax
call fcn.00d855f0
shr eax, 0x1f
xor ebx, ebx
jmp dword [eax*4 - 0x326c09c]

Function at 0xd71f60
Capabilities:
Encode data using xor

Disassembly:
push dword [esp + 4]
call fcn.00d71620
add esp, 4
test al, al
je 0xd71f60
mov al, 1
ret
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xdc
push eax
sub esp, 0x24
mov dword [ebp - 0x38], esp
sub esp, 8
mov ebx, esp
sub esp, 8
mov dword [ebp - 0xa4], esp
sub esp, 8
mov dword [ebp - 0x98], esp
sub esp, 0x20
mov dword [ebp - 0xa8], esp
mov dword [ebp - 0xe8], 0x97049921
mov dword [ebp - 0xe4], 0x931e951b
mov dword [ebp - 0xe0], 0x8f1a9131
mov dword [ebp - 0xdc], 0x8b3a8d18
mov dword [ebp - 0xd8], 0x870a8929
mov dword [ebp - 0xd4], 0x8382851c
mov dword [ebp - 0xd0], 0
mov eax, 0x8bb9066
mov ecx, 0xee88df99
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebp + eax - 0x8bb914e]
lea esi, [ecx + 0x11772100]
and esi, ecx
mov edi, eax
or edi, edx
not edx
or edx, esi
and edx, edi
add dl, 2
mov byte [ebp + eax - 0x8bb914e], dl
inc eax
dec ecx
cmp eax, 0x8bb9082
jne 0xd71ff0
mov dword [ebp - 0x8c], 0x1d407e0
mov dword [ebp - 0x88], 0xdcb03cf
mov dword [ebp - 0x84], 0x9d30fc7
mov dword [ebp - 0x80], 0x15d80bd4
mov dword [ebp - 0x7c], 0x11f217cf
mov dword [ebp - 0x78], 0x1dd113c7
mov dword [ebp - 0x74], 0x19d61fd1
mov dword [ebp - 0x70], 0x25cc1bd3
mov dword [ebp - 0x6c], 0x21c227eb
mov dword [ebp - 0x68], 0x2df323fd
mov dword [ebp - 0x64], 0x29f22fe2
mov dword [ebp - 0x60], 0x35e92bf1
mov dword [ebp - 0x5c], 0x31f937e6
mov dword [ebp - 0x58], 0x3dec33d4
mov dword [ebp - 0x54], 0x39ca3fdf
mov dword [ebp - 0x50], 0xc5d53bc6
mov dword [ebp - 0x4c], 0xc11bc720
mov dword [ebp - 0x48], 0xcd2dc33c
mov dword [ebp - 0x44], 0xc939cf2f
mov dword [ebp - 0x40], 0xcbc8
mov eax, 0xc1
mov ecx, 0x3e
nop
nop
nop
nop
movzx esi, byte [ebp + eax - 0x14d]
mov edx, ecx
xor edx, eax
and edx, esi
xor edx, eax
add dl, 0x3b
mov byte [ebp + eax - 0x14d], dl
inc eax
dec ecx
cmp eax, 0x111
jne 0xd720c0
lea eax, [ebp - 0xe8]
lea edi, [ebp - 0x8c]
push eax
push edi
call fcn.00d83750
add esp, 8
mov esi, eax
xor eax, eax
test esi, esi
sete al
jmp dword [eax*4 - 0x326bfe4]
Function at 0xd828c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [esp + 0x2c]
xor edx, edx
nop
nop
nop
cmp word [eax + edx], 0
lea edx, [edx + 2]
jne 0xd828d0
mov dword [esp + 4], eax
mov dword [esp + 0x10], edx
lea eax, [edx - 2]
mov dword [esp], eax
mov dword [esp + 8], 0x62626013
mov dword [esp + 0xc], 0
mov eax, 0xa9b4fd97
mov ecx, 0x564b0268
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + eax + 0x564b0271]
lea edx, [eax + 1]
mov ebp, edx
and ebp, esi
mov ebx, ebp
and ebx, 2
mov edi, ebp
or ebp, 2
imul ebp, ebx
xor ebx, 2
and edi, 0xffffff9d
imul edi, ebx
add ebp, edi
mov ebx, eax
sub ebx, ebp
lea edi, [ecx + ebp]
xor edi, esi
and ebx, esi
add ebx, ebx
sub ebx, edi
add bl, 8
mov byte [esp + eax + 0x564b0271], bl
dec ecx
mov eax, edx
cmp edx, 0xa9b4fd9f
jne 0xd82910
mov esi, dword [esp + 0x10]
cmp esi, 2
je 0xd82985
mov ebx, dword [esp + 8]
mov ecx, dword [esp]
mov eax, ecx
sar eax, 1
mov edx, ebx
not edx
test cl, 2
jne 0xd8298e
mov ebp, ebx
mov edi, edx
mov dword [esp], eax
mov ecx, dword [esp + 0x30]
jmp 0xd829c2
mov eax, dword [esp + 0x30]
jmp 0xd82a2f
dec eax
mov dword [esp], eax
mov ecx, dword [esp + 0x2c]
movzx eax, word [ecx]
add ecx, 2
mov dword [esp + 4], ecx
xor eax, dword [esp + 0x30]
mov ecx, eax
mov edi, edx
and ecx, edx
mov edx, eax
not edx
and edx, ebx
imul edx, ecx
mov ecx, eax
and ecx, ebx
mov ebp, ebx
or eax, ebx
imul eax, ecx
add eax, edx
mov ecx, eax
mov dword [esp + 0x14], edi
cmp esi, 4
mov esi, dword [esp + 4]
mov ebx, dword [esp]
je 0xd82a2f
mov edi, ebp
xor edx, edx
mov eax, ecx
mov dword [esp], ebx
nop
nop
nop
nop
nop
mov ebp, esi
movzx esi, word [esi + edx*2]
xor esi, eax
mov eax, esi
mov ebx, dword [esp + 0x14]
and eax, ebx
mov ecx, esi
not ecx
and ecx, edi
imul ecx, eax
mov eax, esi
and eax, edi
or esi, edi
imul esi, eax
add esi, ecx
movzx eax, word [ebp + edx*2 + 2]
xor eax, esi
mov ecx, eax
and ecx, ebx
mov esi, eax
not esi
and esi, edi
imul esi, ecx
mov ecx, eax
and ecx, edi
or eax, edi
imul eax, ecx
add eax, esi
mov esi, ebp
mov ebx, dword [esp]
add edx, 2
cmp ebx, edx
jne 0xd829e0
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0xd83750
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
sub esp, 0x14
mov eax, esp
push 0
push 0
push 0x20219
push eax
push dword [esp + 0x34]
call fcn.00d8cc90
add esp, 0x14
test eax, eax
js 0xd8388f
lea edi, [esp + 0xc]
lea eax, [esp + 0x10]
push edi
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x20]
call fcn.00d8d040
add esp, 0x24
mov ecx, eax
xor esi, esi
mov eax, 0
test ecx, ecx
js 0xd837ef
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0xc]
mov ecx, eax
inc ecx
jns 0xd837b9
mov eax, 0xffffffff
jmp 0xd837c0
lea eax, [eax*2 + 2]
push eax
call fcn.00d581b0
add esp, 4
push edi
mov edi, eax
push eax
push 0
push ebx
push dword [esp + 0x10]
call fcn.00d8d5f0
add esp, 0x14
test eax, eax
js 0xd837e4
mov eax, edi
jmp 0xd837ef
push edi
call fcn.00d581c0
add esp, 4
xor eax, eax
mov ecx, dword [esp]
mov dword [esp + 4], 0xb8bbba85
mov dword [esp + 8], 0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edi, esi
and edi, 1
xor edi, 0xe1
mov edx, esi
and edx, 6
sub edx, edi
xor dl, byte [esp + esi + 4]
add dl, 0x65
mov byte [esp + esi + 4], dl
inc esi
cmp esi, 8
jne 0xd83810
mov edx, dword [0xfcd99644]
test edx, edx
je 0xd8387e
mov esi, dword [esp + 4]
xor edi, edi
mov ebx, dword [0xfcd99648]
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebx + edi*8], 0xb62b8d10
je 0xd83860
inc edi
cmp edx, edi
jne 0xd83850
jmp 0xd8387e
mov edx, dword [ebx + edi*8 + 4]
cmp edx, esi
je 0xd8387e
push ecx
push 1
push edx
push dword [0xfcd9964c]
mov esi, eax
call fcn.00d88a80
mov eax, esi
add esp, 0x10
test eax, eax
jne 0xd83891
lea eax, [esp + 4]
push eax
call fcn.00d8c460
add esp, 4
xor eax, eax
add esp, 0x14
pop esi
pop edi
pop ebx
ret

Function at 0xd854e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
push eax
mov eax, dword [esp + 0x14]
mov dword [esp], 0x919e9f4c
mov ecx, 0x49fbb299
mov edx, 0x93f76532
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + ecx - 0x49fbb299]
mov edi, edx
and edi, 0x13132118
mov ebx, ecx
xor ebx, 0x2d899ccc
add ebx, edi
xor ebx, esi
mov esi, ebx
and esi, 6
xor ebx, 6
lea ebx, [ebx + esi*2]
inc bl
mov byte [esp + ecx - 0x49fbb299], bl
inc ecx
add edx, 2
cmp ecx, 0x49fbb29d
jne 0xd85500
mov ecx, dword [esp]
mov ecx, dword fs:[ecx]
push eax
push 0
push dword [ecx + 0x18]
call dword [0xfcda1668]
mov ecx, dword [0xfcd95ca8]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp ecx
Function at 0xd85a10
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0xd85adb
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov ebp, ecx
mov dword [esp + 8], eax
mov dword [esp], 0xb8bbba85
mov dword [esp + 4], 0
xor esi, esi
mov edi, 0x65
nop
nop
nop
movzx ecx, byte [esp + esi]
mov ebx, esi
xor ebx, 0xca0f841f
lea edx, [edi + ebx]
add edx, 0xffffff9b
and edx, ecx
mov eax, edx
or al, 0xfd
inc al
mov ah, dl
and ah, 0x3d
mul ah
add bl, cl
add bl, al
mov eax, edx
shr al, 1
and al, 1
or dl, 2
mul dl
add al, al
sub bl, al
movzx eax, bl
add eax, edi
mov byte [esp + esi], al
inc esi
add edi, 2
cmp esi, 8
jne 0xd85a40
mov eax, dword [0xfcd99644]
test eax, eax
je 0xd85acd
mov ecx, dword [esp]
xor edx, edx
mov esi, dword [0xfcd99648]
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xb62b8d10
je 0xd85ab0
inc edx
cmp eax, edx
jne 0xd85aa0
jmp 0xd85acd
mov eax, dword [esi + edx*8 + 4]
cmp eax, ecx
je 0xd85acd
push dword [esp + 8]
push 1
push eax
push dword [0xfcd9964c]
call fcn.00d88a80
add esp, 0x10
mov dword [ebp], 0
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0xd85ae0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x20
mov dword [esp + 0xc], ecx
cmp dword [ecx + 8], 0
je 0xd85ba0
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
test eax, eax
je 0xd85ba0
mov dword [esp + 8], eax
mov dword [esp], 0xb8bbba85
mov dword [esp + 4], 0
xor edi, edi
mov esi, 0x65
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [esp + edi]
mov edx, edi
xor edx, 0xca0f841f
lea ecx, [esi + edx]
add ecx, 0xffffff9b
and ecx, ebx
mov eax, ecx
or al, 0xfd
inc al
mov ah, cl
and ah, 0x3d
mul ah
add dl, bl
add dl, al
mov eax, ecx
shr al, 1
and al, 1
or cl, 2
mul cl
add al, al
sub dl, al
movzx eax, dl
add eax, esi
mov byte [esp + edi], al
inc edi
add esi, 2
cmp edi, 8
jne 0xd85b30
mov eax, dword [esp]
mov ecx, dword [0xfcd99644]
test ecx, ecx
je 0xd85c02
xor edx, edx
mov edi, dword [0xfcd99648]
nop
nop
cmp dword [edi + edx*8], 0x2dedf0b8
je 0xd85be2
inc edx
cmp ecx, edx
jne 0xd85b90
jmp 0xd85c02
mov dword [esp], 0x692a2b2c
xor eax, eax
xor ecx, ecx
nop
nop
nop
nop
nop
movzx edx, byte [esp + ecx]
mov esi, ecx
xor esi, 0x8b4bb2f7
add esi, eax
mov ebx, edx
and ebx, esi
add bl, bl
sub dl, bl
movzx edx, dl
add edx, esi
add dl, 0x2d
mov byte [esp + ecx], dl
inc ecx
add eax, 2
cmp ecx, 4
jne 0xd85bb0
mov eax, dword [esp]
jmp 0xd85d35
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, eax
je 0xd85c02
push dword [ebp + 8]
push dword [esp + 0xc]
push 2
push ecx
push dword [0xfcd9964c]
call fcn.00d88a80
add esp, 0x14
cmp dword [ebp + 0xc], 1
mov ecx, dword [ebp + 0x10]
sbb ecx, 0
jl 0xd85d24
cmp eax, 0xc000010a
jne 0xd85d24
mov ecx, dword [ebp + 0xc]
mov edi, ecx
and edi, 0xffffd8f0
mov eax, edi
xor eax, 0xffffd8f0
mov esi, dword [ebp + 0x10]
mov ebx, esi
not ebx
mov edx, ecx
and edx, 0x270f
imul ebx, edx
mul edx
mov dword [esp + 8], eax
add edx, ebx
mov ebx, edx
or ecx, 0xffffd8f0
mov eax, ecx
mul edi
imul esi, ecx
add edx, esi
sub edx, edi
add eax, dword [esp + 8]
adc edx, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [esp + 8], eax
mov dword [esp], 0xb8bbba85
mov dword [esp + 4], 0
xor esi, esi
mov edi, 0x65
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + esi]
mov ecx, esi
xor ecx, 0xca0f841f
lea ebx, [edi + ecx]
add ebx, 0xffffff9b
and ebx, edx
mov eax, ebx
or al, 0xfd
inc al
mov ah, bl
and ah, 0x3d
mul ah
add cl, dl
add cl, al
mov eax, ebx
shr al, 1
and al, 1
or bl, 2
mul bl
add al, al
sub cl, al
movzx eax, cl
add eax, edi
mov byte [esp + esi], al
inc esi
add edi, 2
cmp esi, 8
jne 0xd85c90
mov eax, dword [esp]
mov ecx, dword [0xfcd99644]
test ecx, ecx
je 0xd85d24
xor edx, edx
mov esi, dword [0xfcd99648]
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x4e66b5a3
je 0xd85d00
inc edx
cmp ecx, edx
jne 0xd85cf0
jmp 0xd85d24
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0xd85d24
lea eax, [esp + 0x10]
push eax
push 0
push dword [esp + 0x10]
push 3
push ecx
push dword [0xfcd9964c]
call fcn.00d88a80
add esp, 0x18
test eax, eax
js 0xd85d35
mov ecx, dword [esp + 0xc]
mov esi, eax
call fcn.00d85a10
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc