joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48f500
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [edx + 0x3f]
push esi
shr eax, 6
mov esi, edx
sub esi, eax
mov dword [ebp - 8], edx
push edi
xor edi, edi
mov dword [ebp - 0x10], ecx
and dword [ebp - 0xc], edi
inc esi
imul eax, esi, 3
shr eax, 2
cmp eax, dword [ebx]
ja 0x48f708
mov esi, dword [ebp + 8]
cmp edx, 3
jbe 0x48f6f6
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 8]
call fcn.0048f487
add esp, 4
test eax, eax
jne 0x48f6ec
mov eax, dword [ebp - 0xc]
mov bl, byte [eax + ecx]
inc eax
mov dword [ebp - 0xc], eax
test bl, bl
je 0x48f6f3
dec dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0048f487
add esp, 4
test eax, eax
jne 0x48f70d
mov eax, dword [ebp - 0xc]
mov dl, byte [eax + ecx]
inc eax
dec dword [ebp - 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
mov byte [ebp - 2], dl
lea edx, [ebp - 8]
push eax
call fcn.0048f487
add esp, 4
test eax, eax
jne 0x48f70d
mov eax, dword [ebp - 0xc]
mov dh, byte [eax + ecx]
inc eax
dec dword [ebp - 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
mov byte [ebp - 1], dh
lea edx, [ebp - 8]
push eax
call fcn.0048f487
add esp, 4
test eax, eax
jne 0x48f70d
mov eax, dword [ebp - 0xc]
mov bh, byte [eax + ecx]
inc eax
mov cl, byte [ebp - 1]
dec dword [ebp - 8]
mov dword [ebp - 0xc], eax
cmp cl, 0x3d
jne 0x48f5e7
cmp bh, cl
jne 0x48f6e5
cmp bl, 0x2b
jb 0x48f6e5
mov al, byte [ebp - 2]
cmp al, 0x2b
jb 0x48f6e5
cmp cl, 0x2b
jb 0x48f6e5
cmp bh, 0x2b
jb 0x48f6e5
cmp bl, 0x7a
ja 0x48f6e5
cmp al, 0x7a
ja 0x48f6e5
cmp cl, 0x7a
ja 0x48f6e5
cmp bh, 0x7a
ja 0x48f6e5
xor edx, edx
cmp bh, 0x3d
setne dl
xor eax, eax
cmp cl, 0x3d
mov ecx, dword [ebp + 0xc]
setne al
add edx, edi
inc eax
add eax, edx
cmp eax, dword [ecx]
ja 0x48f708
mov cl, bl
call fcn.0048f454
mov dl, byte [ebp - 2]
mov cl, dl
mov byte [ebp - 3], al
call fcn.0048f454
mov byte [ebp - 2], al
mov al, byte [ebp - 1]
cmp al, 0x3d
jne 0x48f672
xor bl, bl
jmp 0x48f67b
mov cl, al
call fcn.0048f454
mov bl, al
cmp bh, 0x3d
jne 0x48f684
xor al, al
jmp 0x48f68b
mov cl, bh
call fcn.0048f454
mov ah, byte [ebp - 3]
cmp ah, 0xff
je 0x48f6e5
mov dl, byte [ebp - 2]
cmp dl, 0xff
je 0x48f6e5
cmp bl, 0xff
je 0x48f6e5
cmp al, 0xff
je 0x48f6e5
mov dh, byte [ebp - 1]
mov cl, bl
shl cl, 6
or cl, al
shl ah, 2
mov al, dl
shr al, 4
or al, ah
mov byte [edi + esi], al
inc edi
cmp dh, 0x3d
je 0x48f6cd
shr bl, 2
shl dl, 4
or bl, dl
mov byte [edi + esi], bl
inc edi
cmp bh, 0x3d
je 0x48f6f3
mov byte [edi + esi], cl
inc edi
cmp dword [ebp - 8], 3
mov ecx, dword [ebp - 0x10]
ja 0x48f53c
jmp 0x48f6f3
mov eax, 0xffffff66
jmp 0x48f70d
cmp eax, 0xffffff7c
jne 0x48f70d
mov ebx, dword [ebp + 0xc]
test esi, esi
je 0x48f702
cmp dword [ebx], edi
jbe 0x48f702
mov byte [edi + esi], 0
mov dword [ebx], edi
xor eax, eax
jmp 0x48f70d
mov eax, 0xffffff53
pop edi
pop esi
pop ebx
leave
ret
Function at 0x48fb53
Capabilities:
Encode data using xor

Disassembly:
push esi
mov eax, ecx
mov esi, edx
or eax, edx
sub esi, ecx
test al, 3
jne 0x48fb72
push 2
pop edx
mov eax, dword [esi + ecx]
xor dword [ecx], eax
lea ecx, [ecx + 4]
sub edx, 1
jne 0x48fb63
pop esi
ret
push 8
pop edx
mov al, byte [esi + ecx]
xor byte [ecx], al
inc ecx
sub edx, 1
jne 0x48fb75
pop esi
ret

Function at 0x48fc40
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x53b070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x88], edx
push edi
mov edx, ecx
mov dword [ebp - 0x84], ebx
mov edi, esi
movzx ecx, byte [edi + 0x512fb0]
dec ecx
mov eax, ecx
and ecx, 7
sar eax, 3
mov al, byte [eax + edx]
test byte [ecx*4 + 0x512fe8], al
setne al
mov byte [ebp + edi - 0x7c], al
inc edi
cmp edi, 0x38
jl 0x48fc6b
mov eax, esi
mov dword [ebp - 0x80], esi
movzx edx, byte [eax + 0x513008]
mov edi, esi
push 0x1c
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
lea ebx, [edx - 0x1c]
pop esi
cmp edi, esi
mov eax, ebx
push 0x38
pop ecx
cmovl ecx, esi
cmp edx, ecx
cmovl eax, edx
mov al, byte [ebp + eax - 0x7c]
mov byte [ebp + edi - 0x44], al
inc edi
inc edx
inc ebx
cmp edi, 0x38
jl 0x48fcac
mov ebx, dword [ebp - 0x84]
xor esi, esi
mov edi, esi
movzx eax, byte [edi + 0x512f80]
cmp byte [ebp + eax - 0x45], 0
je 0x48fcf9
mov eax, edi
push 6
pop ecx
cdq
idiv ecx
mov ecx, dword [edx*4 + 0x512fe8]
sar ecx, 2
or byte [ebp + eax - 0xc], cl
inc edi
cmp edi, 0x30
jl 0x48fcd5
movzx ecx, byte [ebp - 0xc]
movzx eax, byte [ebp - 0xa]
mov edx, dword [ebp - 8]
shl ecx, 8
or ecx, eax
movzx eax, dl
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 6]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp - 0x80]
mov dword [ebx + eax*8], ecx
movzx ecx, byte [ebp - 0xb]
movzx eax, byte [ebp - 9]
shl ecx, 8
or ecx, eax
movzx eax, dh
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 5]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp - 0x80]
mov dword [ebx + eax*8 + 4], ecx
inc eax
mov dword [ebp - 0x80], eax
cmp eax, 0x10
jl 0x48fc97
cmp dword [ebp - 0x88], 1
jne 0x48fd87
lea edx, [ebx + 0x7c]
mov eax, dword [edx - 4]
mov ecx, dword [ebx + esi*4]
mov dword [ebx + esi*4], eax
mov dword [edx - 4], ecx
mov ecx, dword [ebx + esi*4 + 4]
mov eax, dword [edx]
mov dword [ebx + esi*4 + 4], eax
add esi, 2
mov dword [edx], ecx
lea edx, [edx - 8]
cmp esi, 0x10
jl 0x48fd64
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ca9ff
leave
ret
Function at 0x48fe78
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, edx
mov dword [ebp - 4], 8
push esi
mov eax, ecx
mov dword [ebp - 0xc], ebx
push edi
mov edi, dword [ebx]
mov ebx, dword [ebp + 8]
mov esi, dword [eax]
add ebx, 8
mov dword [ebp - 8], eax
mov edx, edi
ror edx, 4
xor edx, dword [ebx - 8]
mov ecx, edx
mov eax, edx
shr ecx, 0x18
and ecx, 0x3f
shr eax, 0x10
and eax, 0x3f
mov ecx, dword [ecx*4 + 0x512780]
xor ecx, dword [eax*4 + 0x512980]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
xor ecx, dword [eax*4 + 0x512b80]
xor ecx, dword [edx*4 + 0x512d80]
mov edx, dword [ebx - 4]
xor esi, ecx
xor edx, edi
mov ecx, edx
mov eax, edx
shr ecx, 0x18
and ecx, 0x3f
shr eax, 0x10
and eax, 0x3f
mov ecx, dword [ecx*4 + 0x512880]
xor ecx, dword [eax*4 + 0x512a80]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
xor ecx, dword [eax*4 + 0x512c80]
xor ecx, dword [edx*4 + 0x512e80]
xor esi, ecx
mov edx, esi
ror edx, 4
xor edx, dword [ebx]
lea ebx, [ebx + 0x10]
mov ecx, edx
mov eax, edx
shr ecx, 0x18
and ecx, 0x3f
shr eax, 0x10
and eax, 0x3f
mov ecx, dword [ecx*4 + 0x512780]
xor ecx, dword [eax*4 + 0x512980]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
xor ecx, dword [eax*4 + 0x512b80]
xor ecx, dword [edx*4 + 0x512d80]
mov edx, dword [ebx - 0xc]
xor edi, ecx
xor edx, esi
mov ecx, edx
mov eax, edx
shr ecx, 0x18
and ecx, 0x3f
shr eax, 0x10
and eax, 0x3f
mov ecx, dword [ecx*4 + 0x512880]
xor ecx, dword [eax*4 + 0x512a80]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
xor ecx, dword [eax*4 + 0x512c80]
xor ecx, dword [edx*4 + 0x512e80]
xor edi, ecx
sub dword [ebp - 4], 1
jne 0x48fe9c
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov dword [ebx], edi
pop edi
mov dword [eax], esi
pop esi
pop ebx
leave
ret
Function at 0x498df7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x53b070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x468], ebx
inc ebx
mov dword [ebp - 0x464], eax
mov eax, dword [ebp + 0x10]
push esi
shr ebx, 1
mov esi, ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x46c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x45c], eax
mov dword [ebp - 0x460], ecx
push edi
mov edi, edx
cmp ebx, 0x104
ja 0x498fc2
add eax, dword [ebp + 0x1c]
cmp eax, 0x80
ja 0x498fc2
cmp edi, 0xe0
ja 0x498fc2
push edi
lea eax, [ebp - 0x248]
push 0
push eax
call fcn.004cd440
add esp, 0xc
lea eax, [ebp - 0x168]
push edi
push 0
push eax
call fcn.004cd440
add esp, 0xc
lea eax, [ebp - 0x350]
push ebx
push dword [ebp - 0x464]
push eax
call fcn.004cc940
mov eax, dword [ebp - 0x468]
add esp, 0xc
mov ecx, dword [ebp - 0x464]
and eax, 1
sub ecx, eax
lea eax, [ebp - 0x458]
add ecx, ebx
push ebx
push ecx
push eax
call fcn.004cc940
add esp, 0xc
lea eax, [ebp - 0x88]
push dword [ebp - 0x45c]
push dword [ebp - 0x46c]
push eax
call fcn.004cc940
mov eax, dword [ebp - 0x45c]
lea ecx, [ebp - 0x88]
add esp, 0xc
add eax, ecx
push dword [ebp + 0x1c]
push dword [ebp - 0x460]
push eax
call fcn.004cc940
mov eax, dword [ebp - 0x45c]
mov edx, edi
add eax, dword [ebp + 0x1c]
pop ecx
pop ecx
push dword [ebp + 0x20]
lea ecx, [ebp - 0x248]
push 1
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x350]
push ebx
push eax
call fcn.00498b7f
add esp, 0x1c
test eax, eax
jne 0x498fbc
mov eax, dword [ebp - 0x45c]
mov edx, edi
add eax, dword [ebp + 0x1c]
push ecx
push dword [ebp + 0x20]
lea ecx, [ebp - 0x168]
push 2
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x458]
push ebx
push eax
call fcn.00498b7f
mov ebx, eax
add esp, 0x1c
test ebx, ebx
jne 0x498fbe
push edi
lea eax, [ebp - 0x248]
push eax
push esi
call fcn.004cc940
mov eax, esi
lea ecx, [ebp - 0x168]
or eax, edi
add esp, 0xc
or eax, ecx
test al, 3
jne 0x498fa3
shr edi, 2
test edi, edi
je 0x498fbe
sub ecx, esi
mov eax, dword [ecx + esi]
xor dword [esi], eax
lea esi, [esi + 4]
sub edi, 1
jne 0x498f94
jmp 0x498fbe
test edi, edi
je 0x498fbe
lea ecx, [ebp - 0x168]
sub ecx, esi
mov al, byte [esi + ecx]
xor byte [esi], al
inc esi
sub edi, 1
jne 0x498faf
jmp 0x498fbe
mov ebx, eax
mov eax, ebx
jmp 0x498fc7
mov eax, 0xffffff7c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ca9ff
leave
ret
Function at 0x49965f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x294
mov eax, dword [0x53b070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [ebp - 0x278], edx
xor ecx, ecx
mov dword [ebp - 0x28c], eax
push esi
inc ecx
mov dword [ebp - 0x27c], ecx
push edi
mov edi, dword [ebp + 0x1c]
test ebx, ebx
je 0x49988a
cmp dword [ebp + 8], 0
jl 0x49988a
cmp dword [ebp + 0x10], 0
jl 0x49988a
mov eax, dword [ebp + 0x18]
test eax, eax
js 0x49988a
cmp dword [ebp + 0x14], 0
mov eax, ecx
mov ecx, edi
cmovg eax, dword [ebp + 0x14]
xor edx, edx
mov dword [ebp - 0x288], eax
lea eax, [edi - 1]
cmp eax, 0x12
cmova ecx, edx
call fcn.004a1533
mov dword [ebp - 0x280], eax
test eax, eax
js 0x49988a
push ecx
lea ecx, [ebp - 0x270]
call fcn.004a216f
mov esi, eax
pop ecx
test esi, esi
jne 0x499886
push dword [ebp + 8]
mov edx, edi
lea ecx, [ebp - 0x270]
push dword [ebp - 0x278]
call fcn.004a1c11
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x499886
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x499886
push dword [ebp + 0x10]
mov edx, dword [ebp - 0x28c]
lea ecx, [ebp - 0x270]
call fcn.004a1ee6
mov esi, eax
pop ecx
test esi, esi
jne 0x499886
xor edi, edi
mov eax, dword [ebp - 0x27c]
lea edx, [ebp - 0x271]
push 0x18
pop ecx
sub ecx, edi
shr eax, cl
lea ecx, [ebp - 0x270]
push 1
mov byte [ebp - 0x271], al
call fcn.004a1ee6
mov esi, eax
pop ecx
test esi, esi
jne 0x499886
add edi, 8
cmp edi, 0x20
jl 0x49974e
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x270]
call fcn.004a1f7d
mov esi, eax
test esi, esi
jne 0x499886
mov ecx, dword [ebp - 0x280]
lea eax, [ebp - 0x48]
cmp dword [ebp + 0x18], ecx
mov edi, ecx
cmovl edi, dword [ebp + 0x18]
push edi
push eax
push ebx
mov dword [ebp - 0x284], edi
call fcn.004cc940
xor eax, eax
add esp, 0xc
inc eax
mov dword [ebp - 0x278], eax
cmp dword [ebp - 0x288], eax
jle 0x499871
push dword [ebp - 0x280]
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x270]
call fcn.004a1ee6
mov esi, eax
pop ecx
test esi, esi
jne 0x499886
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x270]
call fcn.004a1f7d
mov esi, eax
test esi, esi
jne 0x499886
mov eax, ebx
lea ecx, [ebp - 0x48]
or eax, edi
or eax, ecx
test al, 3
jne 0x499836
mov ecx, edi
shr ecx, 2
test ecx, ecx
je 0x499858
lea edi, [ebp - 0x48]
mov edx, ebx
sub edi, ebx
mov eax, dword [edi + edx]
xor dword [edx], eax
lea edx, [edx + 4]
sub ecx, 1
jne 0x499827
jmp 0x499852
test edi, edi
je 0x499858
lea edx, [ebp - 0x48]
mov dword [ebp - 0x290], edi
mov ecx, ebx
sub edx, ebx
mov al, byte [edx + ecx]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x499847
mov edi, dword [ebp - 0x284]
mov eax, dword [ebp - 0x278]
inc eax
mov dword [ebp - 0x278], eax
cmp eax, dword [ebp - 0x288]
jl 0x4997d7
mov eax, dword [ebp + 0x18]
add ebx, edi
sub eax, edi
inc dword [ebp - 0x27c]
mov dword [ebp + 0x18], eax
jmp 0x499725
mov eax, esi
jmp 0x49988f
mov eax, 0xffffff53
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ca9ff
leave
ret
Function at 0x49a493
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov eax, edx
mov dword [ebp - 0x14], ecx
push 4
mov dword [ebp - 0x10], eax
xor ebx, ebx
add eax, 0xfffffffc
mov dword [ebp - 4], ebx
xor edi, edi
mov dword [ebp - 8], eax
pop edx
cmp eax, edx
mov dword [ebp - 0xc], edi
mov esi, eax
cmova esi, edx
test eax, eax
je 0x49a50a
xor edx, edx
test esi, esi
jle 0x49a4eb
lea ebx, [edi + ecx]
mov edi, esi
movzx ecx, byte [ebx + esi]
movzx eax, byte [ebx]
xor ecx, eax
or edx, ecx
inc ebx
sub edi, 1
jne 0x49a4cd
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 8]
test edx, edx
jne 0x49a4f1
push 3
pop ebx
mov dword [ebp - 4], ebx
mov esi, dword [ebp - 0x10]
push 4
pop ecx
add edi, ecx
sub esi, edi
mov dword [ebp - 0xc], edi
cmp esi, ecx
cmova esi, ecx
mov ecx, dword [ebp - 0x14]
cmp edi, eax
jb 0x49a4c2
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x49a82b
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x53b070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
sub esp, 0xc
lea eax, [ebp - 0x88]
xor esi, esi
xor edx, edx
push eax
test ecx, ecx
je 0x49a8f0
push 0x20
push 0x514aac
push 0x30
xor ecx, ecx
push str.c63w
push esi
inc ecx
call fcn.0049a748
mov ecx, eax
add esp, 0x24
test ecx, ecx
jne 0x49aa09
xorps xmm3, xmm3
mov edi, 0x80
movd xmm2, dword [esi + 0x514b90]
xorps xmm0, xmm0
movd xmm1, dword [ebp + esi - 0x88]
add esi, 4
punpcklbw xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
por xmm3, xmm2
cmp esi, edi
jl 0x49a894
movaps xmm0, xmm3
psrldq xmm0, 8
por xmm3, xmm0
movups xmm0, xmm3
psrldq xmm0, 4
por xmm3, xmm0
movd eax, xmm3
test eax, eax
je 0x49aa09
jmp 0x49a972
push esi
push esi
push 0x30
push 0x514a7c
push esi
xor ecx, ecx
call fcn.0049a748
mov ecx, eax
add esp, 0x24
test ecx, ecx
jne 0x49aa09
xorps xmm0, xmm0
mov eax, esi
movaps xmmword [ebp - 0xa0], xmm0
xorps xmm3, xmm3
mov edi, 0x80
movd xmm2, dword [eax + 0x514b10]
movd xmm1, dword [ebp + eax - 0x88]
add eax, 4
punpcklbw xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
por xmm3, xmm2
cmp eax, edi
jl 0x49a922
movaps xmm0, xmm3
psrldq xmm0, 8
por xmm3, xmm0
movups xmm0, xmm3
psrldq xmm0, 4
por xmm3, xmm0
movd eax, xmm3
test eax, eax
je 0x49a97a
or ecx, 0xffffffff
jmp 0x49aa09
sub esp, 0xc
lea eax, [ebp - 0x88]
mov edx, 0x514a9c
xor ecx, ecx
push eax
push esi
push esi
push 0x20
push 0x514a7c
push 0x10
call fcn.0049a748
mov ecx, eax
add esp, 0x24
test ecx, ecx
jne 0x49aa09
movd xmm2, dword [esi + 0x514b10]
xorps xmm0, xmm0
movd xmm1, dword [ebp + esi - 0x88]
add esi, 4
punpcklbw xmm1, xmm0
punpcklbw xmm2, xmm0
punpcklwd xmm1, xmm0
punpcklwd xmm2, xmm0
pxor xmm2, xmm1
movaps xmm1, xmmword [ebp - 0xa0]
por xmm1, xmm2
movaps xmmword [ebp - 0xa0], xmm1
cmp esi, edi
jl 0x49a9a4
movaps xmm0, xmm1
or edx, 0xffffffff
psrldq xmm0, 8
por xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
por xmm1, xmm0
movd eax, xmm1
test eax, eax
cmovne ecx, edx
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004ca9ff
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x49af51
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x53b070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
and dword [ebp - 0x60], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x68], eax
call fcn.004a1533
mov dword [ebp - 0x5c], eax
test eax, eax
js 0x49b109
cmp edx, eax
je 0x49afa1
mov eax, 0xffffff53
jmp 0x49b109
mov ecx, dword [ebp + 0x20]
lea edx, [ecx - 1]
and edx, 7
mov dword [ebp - 0x70], edx
jne 0x49afb7
mov byte [ebx], 0
inc ebx
dec edi
mov dword [ebp - 0x58], edi
cmp esi, 0xffffffff
jne 0x49afd0
mov esi, eax
cmp ecx, 0x400
jne 0x49afe1
cmp eax, 0x40
jne 0x49afe1
push 0x3e
pop esi
jmp 0x49afe1
cmp esi, eax
jg 0x49b104
cmp esi, 0xffffffff
jl 0x49b104
mov ecx, edi
sub ecx, eax
lea eax, [esi + 2]
mov dword [ebp - 0x54], ecx
cmp ecx, eax
jl 0x49b104
lea eax, [ecx - 1]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
lea ecx, [eax + 8]
add ecx, esi
cmp edi, ecx
jae 0x49b020
call fcn.004993e8
mov dword [ebp - 0x60], eax
test eax, eax
jne 0x49b019
push 0xffffffffffffff83
pop eax
jmp 0x49b109
mov edi, eax
mov eax, dword [ebp - 0x4c]
jmp 0x49b022
mov edi, ebx
and dword [edi], 0
and dword [edi + 4], 0
push eax
push dword [ebp - 0x64]
mov dword [ebp - 0x6c], edi
add edi, 8
push edi
call fcn.004cc940
add edi, dword [ebp - 0x4c]
add esp, 0xc
test esi, esi
jle 0x49b06b
mov ecx, dword [ebp - 0x68]
lea edx, [ebp - 0x48]
push esi
call fcn.0049a60a
mov dword [ebp - 0x4c], eax
pop ecx
test eax, eax
jne 0x49b0fa
push esi
lea eax, [ebp - 0x48]
push eax
push edi
call fcn.004cc940
add esp, 0xc
add edi, esi
mov eax, dword [ebp - 0x50]
push dword [ebp - 0x5c]
sub edi, dword [ebp - 0x6c]
add eax, ebx
mov edx, dword [ebp - 0x6c]
mov ecx, dword [ebp + 0x14]
push eax
push edi
mov dword [ebp - 0x50], eax
call fcn.004a1613
mov edi, dword [ebp - 0x54]
add esp, 0xc
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x49b0e7
mov eax, dword [ebp - 0x58]
push ecx
mov ecx, dword [ebp + 0x18]
mov byte [eax + ebx - 1], 0xbc
lea eax, [edi - 1]
push eax
push ebx
push dword [ebp - 0x5c]
call fcn.0049ad27
add esp, 0x10
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x49b0e7
mov ecx, dword [ebp - 0x70]
test ecx, ecx
je 0x49b0c8
mov al, 1
shl al, cl
dec al
and byte [ebx], al
sub edi, esi
lea ecx, [ebx - 1]
add ecx, edi
xor byte [ecx - 1], 1
test esi, esi
jle 0x49b0e7
lea edx, [ebp - 0x48]
sub edx, ecx
mov al, byte [edx + ecx]
xor byte [ecx], al
inc ecx
sub esi, 1
jne 0x49b0dc
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x49b0f5
mov ecx, eax
call fcn.004993fd
mov eax, dword [ebp - 0x4c]
jmp 0x49b109
mov edi, dword [ebp - 0x54]
lea edx, [edi - 1]
add edx, ebx
jmp 0x49b092
mov eax, 0xffffff06
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ca9ff
leave
ret
Function at 0x49b240
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x53b070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x50], ecx
mov ebx, edx
mov ecx, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x68], eax
call fcn.004a1533
mov esi, eax
mov dword [ebp - 0x64], esi
test esi, esi
js 0x49b3da
lea ecx, [esi*2 + 2]
cmp ebx, ecx
jb 0x49b3da
mov ecx, ebx
call fcn.004993e8
mov edi, eax
test edi, edi
jne 0x49b29a
push 0xffffffffffffff83
pop eax
jmp 0x49b3df
push ebx
xor ebx, ebx
push ebx
push edi
call fcn.004cd440
mov ecx, dword [ebp - 0x50]
add esp, 8
mov eax, dword [ebp - 0x54]
inc ecx
add ecx, esi
sub eax, esi
dec eax
mov dword [ebp - 0x5c], ecx
push esi
push edi
mov edx, ecx
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0049ad27
add esp, 0x10
mov dword [ebp - 0x58], eax
test eax, eax
je 0x49b2df
mov ecx, edi
call fcn.004993fd
mov eax, dword [ebp - 0x58]
jmp 0x49b3df
mov ecx, ebx
test esi, esi
je 0x49b2f6
mov ebx, dword [ebp - 0x50]
mov al, byte [ebx + ecx + 1]
xor byte [ecx + edi], al
inc ecx
cmp ecx, esi
jb 0x49b2e8
xor ebx, ebx
push ecx
push dword [ebp - 0x4c]
mov ecx, dword [ebp + 0x10]
lea eax, [edi + esi]
push eax
push esi
mov edx, edi
mov dword [ebp - 0x60], eax
call fcn.0049ad27
add esp, 0x10
mov dword [ebp - 0x58], eax
test eax, eax
jne 0x49b2d0
mov edx, dword [ebp - 0x4c]
mov ecx, ebx
test edx, edx
je 0x49b335
mov ebx, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x60]
mov al, byte [esi + ecx]
xor byte [ebx + ecx], al
inc ecx
cmp ecx, edx
jb 0x49b325
mov esi, dword [ebp - 0x64]
xor ebx, ebx
mov ecx, edi
call fcn.004993fd
mov eax, dword [ebp - 0x54]
lea edi, [esi*2 + 1]
dec eax
mov dword [ebp - 0x4c], edi
cmp edi, eax
jae 0x49b35f
mov ecx, dword [ebp - 0x50]
cmp byte [ecx + edi], 0
jne 0x49b35c
inc edi
cmp edi, eax
jb 0x49b351
mov dword [ebp - 0x4c], edi
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x48]
push esi
push eax
push ebx
xor edx, edx
call fcn.004a1613
add esp, 0xc
test eax, eax
jne 0x49b3df
mov edx, ebx
test esi, esi
jle 0x49b394
mov edi, dword [ebp - 0x5c]
movzx ecx, byte [edi + edx]
movzx eax, byte [ebp + edx - 0x48]
xor ecx, eax
or ebx, ecx
inc edx
cmp edx, esi
jl 0x49b37f
mov edi, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x50]
movzx ecx, byte [esi + edi]
movzx eax, byte [esi]
xor ecx, 1
add ecx, ebx
mov ebx, dword [ebp - 0x54]
add ecx, eax
lea eax, [ecx - 1]
not ecx
shr eax, 0x1f
neg al
shr ecx, 0x1f
neg cl
movsx edx, al
movsx eax, cl
and edx, eax
lea eax, [edi + 1]
mov ecx, edx
and eax, edx
mov edx, dword [ebp - 0x68]
not ecx
and ecx, ebx
or ecx, eax
sub ebx, ecx
lea eax, [esi + ecx]
mov dword [edx], eax
mov eax, ebx
jmp 0x49b3df
mov eax, 0xffffff53
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ca9ff
leave
ret