joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fb6b5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004fb631
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4fb824
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4fb824
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4fb7d9
jg 0x4fb711
test eax, eax
je 0x4fb7cf
push 1
push 0x1000
call fcn.004eea6b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4fb734
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4fb7c6
push 0x8000
push ebx
call fcn.004e985e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4fb75d
jg 0x4fb758
cmp ecx, 0x1000
jb 0x4fb75d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004f9c2b
add esp, 0x10
cmp eax, 0xffffffff
je 0x4fb7a2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4fb758
jl 0x4fb789
test ecx, ecx
jne 0x4fb74a
push dword [ebp - 0xc]
push ebx
call fcn.004e985e
push esi
call fcn.004ebca2
add esp, 0xc
xor ebx, ebx
jmp 0x4fb832
cmp byte [edi + 0x24], 0
je 0x4fb7b9
cmp dword [edi + 0x20], 5
jne 0x4fb7b9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4fb7c4
mov ebx, dword [edi + 0x18]
jmp 0x4fb7c6
xor ebx, ebx
push esi
call fcn.004ebca2
pop ecx
jmp 0x4fb832
test ecx, ecx
jg 0x4fb79b
jl 0x4fb7d9
test eax, eax
jae 0x4fb79b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004fb13d
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4fb7f9
cmp byte [edi + 0x1c], 0
je 0x4fb79b
jmp 0x4fb82a
push ebx
call fcn.004f2694
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4fb79b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4fb832
cmp byte [edi + 0x1c], 0
je 0x4fb82f
mov ebx, dword [edi + 0x18]
jmp 0x4fb832
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004fb13d
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5016b0
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
push edi
push dword [esp + 0x14]
call fcn.00519040
push 0x62
push edi
mov ebx, eax
call fcn.004cf0e0
add esp, 0x10
neg eax
sbb esi, esi
and esi, 0xfffffff0
add esi, 0x11
test ebx, ebx
jne 0x501750
push 0x48
push str.crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.004fcef0
push 0x605940
push edi
push 0x605944
push dword [esp + 0x30]
push str.fopen_
push 5
call fcn.004fc4e0
add esp, 0x2c
call fcn.004deb71
cmp dword [eax], 2
je 0x50172d
call fcn.004deb71
cmp dword [eax], 6
je 0x50172d
lea eax, [ebx + 2]
lea ecx, [ebx + 0x51]
jmp 0x501737
mov eax, 0x80
mov ecx, 0x4f
push ecx
push str.crypto_bio_bss_file.c
push eax
push 0x6d
push 0x20
call fcn.004fcef0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x6058e8
call fcn.00501f60
mov edi, eax
add esp, 4
test edi, edi
jne 0x501772
push ebx
call fcn.004eb97b
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push edi
call fcn.005018d0
push ebx
push esi
push 0x6a
push edi
call fcn.00501900
add esp, 0x18
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x505f90
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
cmp ebp, ebx
je 0x5060b7
mov eax, dword [esp + 0xc]
mov ecx, dword [ebp + 4]
lea edx, [eax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and edx, eax
mov eax, dword [ebx + 4]
xor eax, ecx
dec edx
and eax, edx
mov dword [esp + 0x14], edx
xor ecx, eax
mov dword [ebp + 4], ecx
xor dword [ebx + 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebx + 0xc]
xor eax, ecx
movd xmm0, edx
and eax, edx
pshufd xmm4, xmm0, 0
xor ecx, eax
mov dword [ebp + 0xc], ecx
xor dword [ebx + 0xc], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x10]
xor eax, ecx
and eax, edx
and eax, 4
xor ecx, eax
mov dword [ebp + 0x10], ecx
xor dword [ebx + 0x10], eax
xor eax, eax
mov ecx, dword [esp + 0x18]
test ecx, ecx
jle 0x5060b7
push esi
push edi
cmp ecx, 4
jb 0x506091
mov edx, dword [ebp]
lea edi, [ecx - 1]
mov esi, dword [ebx]
lea ebp, [ecx - 1]
lea ebp, [edx + ebp*4]
cmp esi, ebp
lea edi, [esi + edi*4]
mov ebp, dword [esp + 0x18]
ja 0x506030
cmp edi, edx
jae 0x506091
cmp esi, ebx
ja 0x506038
cmp edi, ebx
jae 0x506091
cmp esi, ebp
ja 0x506040
cmp edi, ebp
jae 0x506091
lea edi, [ecx - 1]
lea edi, [edx + edi*4]
cmp edx, ebx
ja 0x50604e
cmp edi, ebx
jae 0x506091
cmp edx, ebp
ja 0x506056
cmp edi, ebp
jae 0x506091
mov edi, ecx
and edi, 0xfffffffc
nop dword [eax + eax]
movups xmm3, xmmword [esi + eax*4]
movups xmm2, xmmword [edx + eax*4]
movaps xmm1, xmm3
xorps xmm1, xmm2
andps xmm1, xmm4
movaps xmm0, xmm1
xorps xmm1, xmm3
xorps xmm0, xmm2
movups xmmword [edx + eax*4], xmm0
movups xmmword [esi + eax*4], xmm1
add eax, 4
cmp eax, edi
jl 0x506060
mov dword [esp + 0x18], eax
cmp eax, ecx
jge 0x5060b5
mov ecx, dword [ebp]
mov edx, dword [ecx + eax*4]
lea esi, [ecx + eax*4]
mov ecx, dword [ebx]
mov edi, dword [ecx + eax*4]
xor edi, edx
and edi, dword [esp + 0x1c]
xor edx, edi
mov dword [esi], edx
mov ecx, dword [ebx]
xor dword [ecx + eax*4], edi
inc eax
cmp eax, dword [esp + 0x20]
jl 0x506091
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x509fb0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
xor edx, edx
test esi, esi
je 0x509ff6
mov al, byte [esi]
test al, al
je 0x509ff6
push edi
mov edi, 0x100
movsx eax, al
lea esi, [esi + 1]
or eax, edi
add edi, 0x100
mov ecx, eax
shr ecx, 2
xor cl, al
imul eax, eax
and cl, 0xf
rol edx, cl
xor edx, eax
mov al, byte [esi]
test al, al
jne 0x509fc7
mov eax, edx
pop edi
shr eax, 0x10
xor eax, edx
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x510ce0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
cmp dword [ebx + 0x84], 0xffffffff
jne 0x510cf2
xor eax, eax
pop ebx
ret
push ebp
push esi
push dword [ebx]
call fcn.004fd570
mov ecx, dword [esp + 0x1c]
add esp, 4
mov ebp, dword [esp + 0x14]
mov esi, eax
mov dword [ecx], esi
test ebp, ebp
je 0x510da6
mov ecx, dword [ebx + 0x84]
push edi
cmp ecx, esi
jne 0x510d46
test esi, esi
jle 0x510d84
mov edx, ebp
lea ecx, [ebx + 4]
mov edi, esi
nop dword [eax + eax]
mov al, byte [ecx + 0x60]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub edi, 1
jne 0x510d30
jmp 0x510d84
sub eax, ecx
mov byte [ecx + ebx + 0x64], 0x80
cmp eax, 1
jle 0x510d64
dec eax
push eax
lea eax, [ebx + 0x65]
add eax, ecx
push 0
push eax
call fcn.004cf790
add esp, 0xc
test esi, esi
jle 0x510d84
mov edx, ebp
lea ecx, [ebx + 0x24]
mov edi, esi
nop
mov al, byte [ecx + 0x40]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub edi, 1
jne 0x510d70
push esi
push ebp
push ebp
push dword [ebx]
call fcn.004fdb40
add esp, 0x10
pop edi
test eax, eax
jne 0x510da6
push esi
push ebp
call fcn.004019e0
add esp, 8
xor eax, eax
pop esi
pop ebp
pop ebx
ret
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x520340
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x38
call fcn.004c4b70
mov eax, dword [0x671580]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x5c]
movzx ecx, byte [edx]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x1c], eax
mov bl, byte [edx + 3]
mov esi, dword [eax]
movzx eax, byte [edx + 1]
shl eax, 8
or ecx, eax
mov ebp, dword [esp + 0x54]
movzx eax, byte [edx + 2]
shl eax, 0x10
or ecx, eax
mov dword [esp + 0x20], edx
movzx eax, bl
shl eax, 0x18
or ecx, eax
mov byte [esp + 0x3f], bl
movzx eax, byte [edx + 5]
shl eax, 8
movzx edi, byte [edx + 4]
mov dl, byte [edx + 7]
or edi, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], ecx
movzx ecx, dl
shl ecx, 8
movzx eax, byte [eax + 6]
or ecx, eax
mov dword [esp + 0x14], 0
mov eax, ecx
mov byte [esp + 0x42], cl
shl eax, 0x10
or edi, eax
mov byte [esp + 0x43], dl
mov eax, dword [esp + 0x10]
mov ebx, edi
mov dword [esp + 0x24], eax
mov byte [esp + 0x3c], al
shr eax, 8
mov byte [esp + 0x3d], al
mov eax, dword [esp + 0x10]
shr eax, 0x10
mov byte [esp + 0x3e], al
mov eax, ebx
shr eax, 8
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
mov byte [esp + 0x40], bl
mov byte [esp + 0x41], al
test ebp, ebp
je 0x520501
mov edi, dword [esp + 0x4c]
sub dword [esp + 0x18], edi
dec ebp
test esi, esi
jne 0x5204a6
push dword [esp + 0x30]
lea eax, [esp + 0x28]
push dword [esp + 0x38]
push dword [esp + 0x40]
push eax
call fcn.00402c60
mov ecx, dword [esp + 0x34]
add esp, 0x10
mov ebx, dword [esp + 0x28]
mov eax, ecx
shr eax, 8
mov edx, dword [esp + 0x14]
mov byte [esp + 0x3d], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x3e], al
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x3f], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x41], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x42], al
mov eax, ebx
shr eax, 0x18
inc edx
mov dword [esp + 0x10], ecx
mov byte [esp + 0x3c], cl
mov byte [esp + 0x40], bl
mov byte [esp + 0x43], al
mov dword [esp + 0x14], edx
jmp 0x5204aa
mov edx, dword [esp + 0x14]
mov al, byte [esp + esi + 0x3c]
inc esi
mov ecx, dword [esp + 0x18]
and esi, 7
xor al, byte [edi]
mov byte [ecx + edi], al
inc edi
mov ecx, dword [esp + 0x10]
test ebp, ebp
jne 0x520433
test edx, edx
je 0x520501
mov edx, dword [esp + 0x20]
mov eax, ecx
shr eax, 8
mov byte [edx + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [edx + 2], al
mov eax, ebx
shr eax, 8
mov byte [edx + 5], al
mov eax, ebx
mov byte [edx], cl
shr ecx, 0x18
shr eax, 0x10
mov byte [edx + 4], bl
shr ebx, 0x18
mov byte [edx + 3], cl
mov byte [edx + 6], al
mov byte [edx + 7], bl
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x44]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c4309
add esp, 0x38
ret
Function at 0x550350
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
lea edx, [eax + 0x3c]
movd xmm0, ebx
pshufd xmm4, xmm0, 0
lea ecx, [esi + 0x3c]
cmp eax, ecx
ja 0x55039f
cmp edx, esi
jb 0x55039f
push edi
sub esi, eax
mov edi, 0x10
nop dword [eax]
mov edx, dword [eax + esi]
lea eax, [eax + 4]
mov ecx, dword [eax - 4]
xor ecx, edx
and ecx, ebx
xor edx, ecx
mov dword [eax + esi - 4], edx
xor dword [eax - 4], ecx
sub edi, 1
jne 0x550380
pop edi
pop esi
pop ebx
ret
sub esi, eax
mov ecx, 4
nop word [eax + eax]
lea eax, [eax + 0x10]
movups xmm1, xmmword [esi + eax - 0x10]
movups xmm3, xmmword [eax - 0x10]
movaps xmm2, xmm1
xorps xmm2, xmm3
andps xmm2, xmm4
movaps xmm0, xmm2
xorps xmm2, xmm3
xorps xmm0, xmm1
movups xmmword [esi + eax - 0x10], xmm0
movups xmmword [eax - 0x10], xmm2
sub ecx, 1
jne 0x5503b0
pop esi
pop ebx
ret
Function at 0x5520e0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0xa0
call fcn.004c4b70
mov eax, dword [0x671580]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0xa8]
push ebx
push ebp
mov ebp, dword [esp + 0xb4]
xor ebx, ebx
push esi
mov esi, dword [esp + 0xb0]
mov dword [esp + 0x14], eax
xor eax, eax
push edi
mov edi, dword [esp + 0xc0]
mov dword [esp + 0x10], eax
mov eax, dword [esi]
mov dword [esp + 0x14], ecx
test edi, edi
je 0x552155
cmp edi, eax
je 0x552149
test ecx, ecx
je 0x5522fd
test ebp, ebp
js 0x5522fd
mov dword [esp + 0x10], 1
mov dword [esi], edi
jmp 0x55215f
test eax, eax
je 0x5522fd
mov edi, eax
push edi
call fcn.004fd7a0
add esp, 4
test al, 2
jne 0x5522fd
cmp dword [esp + 0x14], ebx
je 0x5522f0
push edi
mov dword [esp + 0x14], 1
call fcn.004fdba0
add esp, 4
cmp eax, 0x90
jg 0x5522fd
cmp eax, ebp
jge 0x5521ea
push dword [esp + 0x18]
push edi
push dword [esi + 4]
call fcn.0050afb0
add esp, 0xc
test eax, eax
je 0x5522fd
push ebp
push dword [esp + 0x18]
push dword [esi + 4]
call fcn.0050b160
add esp, 0xc
test eax, eax
je 0x5522fd
lea eax, [esi + 0x10]
push eax
lea eax, [esi + 0x14]
push eax
push dword [esi + 4]
call fcn.0050af10
add esp, 0xc
test eax, eax
je 0x5522fd
lea eax, [esi + 0x10]
jmp 0x55220c
cmp ebp, 0x90
ja 0x5522fd
push ebp
push dword [esp + 0x18]
lea eax, [esi + 0x14]
push eax
call fcn.004cf210
lea eax, [esi + 0x10]
add esp, 0xc
mov dword [eax], ebp
mov ecx, dword [eax]
cmp ecx, 0x90
je 0x55222e
mov eax, 0x90
sub eax, ecx
push eax
lea eax, [esi + 0x14]
add eax, ecx
push 0
push eax
call fcn.004cf790
add esp, 0xc
mov ebp, dword [esp + 0x10]
xor ecx, ecx
mov al, byte [esi + ecx + 0x14]
xor al, 0x36
mov byte [esp + ecx + 0x1c], al
inc ecx
cmp ecx, 0x90
jl 0x552234
push dword [esp + 0x18]
push edi
push dword [esi + 8]
call fcn.0050afb0
add esp, 0xc
test eax, eax
je 0x5522da
push edi
call fcn.004fdba0
push eax
lea eax, [esp + 0x24]
push eax
push dword [esi + 8]
call fcn.0050b160
add esp, 0x10
test eax, eax
je 0x5522da
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [esi + ecx + 0x14]
xor al, 0x5c
mov byte [esp + ecx + 0x1c], al
inc ecx
cmp ecx, 0x90
jl 0x552280
push dword [esp + 0x18]
push edi
push dword [esi + 0xc]
call fcn.0050afb0
add esp, 0xc
test eax, eax
je 0x5522da
push edi
call fcn.004fdba0
push eax
lea eax, [esp + 0x24]
push eax
push dword [esi + 0xc]
call fcn.0050b160
add esp, 0x10
test eax, eax
je 0x5522da
push dword [esi + 8]
push dword [esi + 4]
call fcn.0050b180
add esp, 8
neg eax
sbb ebx, ebx
neg ebx
test ebp, ebp
je 0x5522ec
lea eax, [esp + 0x1c]
push 0x90
push eax
call fcn.004019e0
add esp, 8
mov eax, ebx
jmp 0x5522ff
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x5522c2
jmp 0x552232
xor eax, eax
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c4309
add esp, 0xa0
ret
Function at 0x565600
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
xor ebp, ebp
push esi
test eax, eax
je 0x565618
test byte [eax + 0x5c], 2
mov ebx, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz._
jne 0x56561d
mov ebx, 0x630880
mov esi, dword [esp + 0x1c]
test esi, esi
jle 0x5656f5
mov edx, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
inc edi
movzx eax, byte [edi - 1]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
cmp esi, 3
jb 0x565689
movzx ecx, byte [edi]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 1]
shl eax, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
movzx ecx, byte [ecx + ebx]
mov byte [edx], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + ebx]
mov byte [edx + 1], cl
mov ecx, eax
shr ecx, 6
and ecx, 0x3f
and eax, 0x3f
movzx ecx, byte [ecx + ebx]
mov byte [edx + 2], cl
mov cl, byte [eax + ebx]
lea eax, [edx + 3]
jmp 0x5656d5
shl eax, 0x10
cmp esi, 2
jne 0x565699
movzx ecx, byte [edi]
shl ecx, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
movzx ecx, byte [ecx + ebx]
mov byte [edx], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + ebx]
mov byte [edx + 1], cl
cmp esi, 1
jne 0x5656bc
mov al, 0x3d
jmp 0x5656c5
shr eax, 6
and eax, 0x3f
mov al, byte [eax + ebx]
mov ecx, dword [esp + 0x18]
mov byte [ecx + 2], al
mov cl, 0x3d
mov eax, dword [esp + 0x14]
add eax, 3
sub esi, 3
mov byte [eax], cl
add ebp, 4
lea edx, [eax + 1]
add edi, 3
test esi, esi
jg 0x565633
pop edi
pop esi
mov eax, ebp
mov byte [edx], 0
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x14]
pop esi
mov byte [eax], 0
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x5675d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.004c4b70
mov edx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0x10
lea eax, [edx + 0xf]
lea ecx, [esi + 0xf]
cmp esi, eax
ja 0x567614
cmp ecx, edx
jb 0x567614
push edi
mov ecx, esi
sub edx, esi
mov edi, 0x10
mov al, byte [edx + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edi, 1
jne 0x567603
pop edi
jmp 0x567620
movups xmm1, xmmword [esi]
movups xmm0, xmmword [edx]
xorps xmm1, xmm0
movups xmmword [esi], xmm1
push 0x10
push esi
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x18]
push esi
push dword [eax + 4]
call fcn.004fea60
add esp, 0x14
pop esi
test eax, eax
je 0x567648
xor eax, eax
cmp dword [esp], 0x10
sete al
pop ecx
ret
xor eax, eax
pop ecx
ret

Function at 0x567790
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
je 0x567803
mov edx, dword [esp + 0x10]
test edx, edx
je 0x567803
push ebx
mov ebx, dword [esp + 0xc]
push edi
mov edi, dword [ebx + 0xc]
cmp edx, edi
cmovb edi, edx
test edi, edi
je 0x5677d0
push esi
mov esi, ebp
lea ecx, [ebx + 0x10]
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
xor byte [ecx], al
lea ecx, [ecx + 1]
sub edi, 1
jne 0x5677c0
pop esi
mov eax, dword [ebx + 0xc]
cmp edx, eax
jbe 0x567801
sub edx, eax
cmp edx, 0x10
jbe 0x5677e5
mov edx, 0x10
jmp 0x5677e9
test edx, edx
je 0x567801
xor ecx, ecx
nop dword [eax + eax]
mov eax, dword [ebx + 0xc]
add eax, ecx
mov al, byte [eax + ebp]
xor byte [ebx + ecx + 0x30], al
inc ecx
cmp ecx, edx
jb 0x5677f0
pop edi
pop ebx
pop ebp
ret
Function at 0x56e390
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.004c4b70
mov eax, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x24]
push ebp
mov ebp, dword [eax + 0x60]
push esi
mov esi, dword [esp + 0x28]
push edi
mov ecx, dword [ebp + 0x70]
mov edi, dword [esp + 0x28]
mov dword [esp + 0x10], ebp
test ecx, ecx
je 0x56e3f9
test ebx, ebx
je 0x56e3d9
lea edx, [ebp + 0x30]
add edx, ecx
cmp ecx, 0x40
jae 0x56e3d9
mov al, byte [edx]
inc ecx
xor al, byte [esi]
inc edx
mov byte [edi], al
inc esi
inc edi
sub ebx, 1
jne 0x56e3c5
mov dword [ebp + 0x70], ecx
test ebx, ebx
je 0x56e4b4
cmp ecx, 0x40
jne 0x56e3f9
mov dword [ebp + 0x70], 0
add dword [ebp + 0x20], 1
jne 0x56e3f9
inc dword [ebp + 0x24]
mov edx, dword [ebp + 0x20]
mov eax, ebx
and eax, 0x3f
sub ebx, eax
mov dword [esp + 0x1c], eax
lea eax, [ebp + 0x20]
mov dword [esp + 0x24], eax
cmp ebx, 0x40
jb 0x56e467
push dword [esp + 0x24]
mov ecx, ebx
xor ebp, ebp
shr ecx, 6
lea eax, [ecx + edx]
cmp eax, ecx
cmovae ebp, eax
neg edx
cmp eax, ecx
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x14]
cmovae edx, ecx
shl edx, 6
push ebp
push edx
push esi
push edi
mov dword [esp + 0x28], edx
call fcn.00444fc0
mov eax, dword [esp + 0x28]
add esp, 0x14
sub ebx, eax
add esi, eax
add edi, eax
mov eax, dword [esp + 0x18]
mov dword [ebp + 0x20], eax
test eax, eax
jne 0x56e460
inc dword [ebp + 0x24]
mov edx, eax
cmp ebx, 0x40
jae 0x56e413
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x56e4b4
push 0x40
lea eax, [ebp + 0x30]
push 0
push eax
call fcn.004cf790
lea eax, [ebp + 0x20]
push eax
push ebp
lea eax, [ebp + 0x30]
push 0x40
push eax
push eax
call fcn.00444fc0
add esp, 0x20
xor edx, edx
test ebx, ebx
je 0x56e4b1
sub esi, edi
nop dword [eax + eax]
mov al, byte [edx + ebp + 0x30]
lea ecx, [edx + edi]
xor al, byte [esi + ecx]
inc edx
mov byte [ecx], al
cmp edx, ebx
jb 0x56e4a0
mov dword [ebp + 0x70], ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
Function at 0x58add0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x30
call fcn.004c4b70
mov eax, dword [0x671580]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push ebp
push esi
push edi
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x50]
movzx ecx, byte [edx]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x1c], eax
mov bl, byte [edx + 3]
mov esi, dword [eax]
movzx eax, byte [edx + 1]
shl eax, 8
or ecx, eax
mov ebp, dword [esp + 0x4c]
movzx eax, byte [edx + 2]
shl eax, 0x10
or ecx, eax
mov dword [esp + 0x20], edx
movzx eax, bl
shl eax, 0x18
or ecx, eax
mov byte [esp + 0x37], bl
movzx eax, byte [edx + 5]
shl eax, 8
movzx edi, byte [edx + 4]
mov dl, byte [edx + 7]
or edi, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], ecx
movzx ecx, dl
shl ecx, 8
movzx eax, byte [eax + 6]
or ecx, eax
mov dword [esp + 0x14], 0
mov eax, ecx
mov byte [esp + 0x3a], cl
shl eax, 0x10
or edi, eax
mov byte [esp + 0x3b], dl
mov eax, dword [esp + 0x10]
mov ebx, edi
mov dword [esp + 0x24], eax
mov byte [esp + 0x34], al
shr eax, 8
mov byte [esp + 0x35], al
mov eax, dword [esp + 0x10]
shr eax, 0x10
mov byte [esp + 0x36], al
mov eax, ebx
shr eax, 8
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], al
test ebp, ebp
je 0x58af7b
mov edi, dword [esp + 0x44]
sub dword [esp + 0x18], edi
dec ebp
test esi, esi
jne 0x58af20
push 1
push dword [esp + 0x34]
lea eax, [esp + 0x2c]
push eax
call fcn.00402b00
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov ebx, dword [esp + 0x28]
mov eax, ecx
shr eax, 8
mov edx, dword [esp + 0x14]
mov byte [esp + 0x35], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x36], al
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x37], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x39], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x3a], al
mov eax, ebx
shr eax, 0x18
inc edx
mov dword [esp + 0x10], ecx
mov byte [esp + 0x34], cl
mov byte [esp + 0x38], bl
mov byte [esp + 0x3b], al
mov dword [esp + 0x14], edx
jmp 0x58af24
mov edx, dword [esp + 0x14]
mov al, byte [esp + esi + 0x34]
inc esi
mov ecx, dword [esp + 0x18]
and esi, 7
xor al, byte [edi]
mov byte [ecx + edi], al
inc edi
mov ecx, dword [esp + 0x10]
test ebp, ebp
jne 0x58aeb3
test edx, edx
je 0x58af7b
mov edx, dword [esp + 0x20]
mov eax, ecx
shr eax, 8
mov byte [edx + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [edx + 2], al
mov eax, ebx
shr eax, 8
mov byte [edx + 5], al
mov eax, ebx
mov byte [edx], cl
shr ecx, 0x18
shr eax, 0x10
mov byte [edx + 4], bl
shr ebx, 0x18
mov byte [edx + 3], cl
mov byte [edx + 6], al
mov byte [edx + 7], bl
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x3c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c4309
add esp, 0x30
ret