joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cb5e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xc
call fcn.00627fd0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push edi
call ebx
push dword [0x715150]
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
call eax
mov edi, eax
mov eax, dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
mov dword [ebp - 8], eax
call eax
test edi, edi
jne 0x4cb728
push edi
push 0x100
xor ecx, ecx
call fcn.00493940
add esp, 8
test eax, eax
je 0x4cb794
push edi
push edi
xor ecx, ecx
call fcn.00493940
add esp, 8
test eax, eax
je 0x4cb794
lea ecx, [edi + 1]
call fcn.00492bb0
test eax, eax
je 0x4cb794
push 0xc
mov dword [eax], 1
mov dword [0x70c31c], edi
call fcn.006321ad
mov esi, eax
add esp, 4
test esi, esi
je 0x4cb7d1
xorps xmm0, xmm0
mov dword [0x70c31c], edi
movq qword [esi], xmm0
push 0x14
mov dword [esi + 8], edi
call fcn.006321ad
add esp, 4
test eax, eax
je 0x4cb79d
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
push esi
mov dword [esi], eax
mov dword [esi + 8], edi
mov dword [esi + 4], edi
push dword [0x715150]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x4cb715
push 0x16d
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcrypto_async_async.c
push 0x65
lea edx, [edi + 0x65]
lea ecx, [edi + 0x33]
call fcn.004818c0
add esp, 0xc
mov ecx, esi
call fcn.004cbb90
mov edi, dword [esi]
test edi, edi
je 0x4cb78b
push dword [edi + 4]
call fcn.0062eaa7
add esp, 4
push edi
call fcn.0062eaa7
add esp, 4
push esi
call fcn.0062eaa7
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call ebx
push dword [0x715150]
mov esi, eax
call dword [ebp - 4]
push esi
mov edi, eax
call dword [ebp - 8]
mov ecx, dword [edi]
test ecx, ecx
je 0x4cb748
mov edx, dword [ecx]
test edx, edx
je 0x4cb748
mov eax, dword [ecx + 4]
mov esi, dword [eax + edx*4 - 4]
lea eax, [edx - 1]
mov dword [ecx], eax
test esi, esi
jne 0x4cb7f9
mov eax, dword [edi + 8]
test eax, eax
je 0x4cb754
cmp dword [edi + 4], eax
jae 0x4cb794
call fcn.004cb590
mov esi, eax
test esi, esi
je 0x4cb7f9
push 0
push 0x50a060
push 0
call dword [sym.imp.KERNEL32.dll_CreateFiber]
mov dword [esi], eax
test eax, eax
jne 0x4cb7f6
push dword [esi + 0xc]
call fcn.0062eaa7
add esp, 4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFiber]
push esi
call fcn.0062eaa7
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, 0x65
mov dword [esi], 0
push 0x154
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcrypto_async_async.c
push 0x41
lea ecx, [edx - 0x32]
call fcn.004818c0
add esp, 0xc
push esi
call fcn.0062eaa7
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, 0x65
push 0x14e
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcrypto_async_async.c
push 0x41
lea ecx, [edx - 0x32]
call fcn.004818c0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
inc dword [edi + 4]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4cb810
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x715150]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebx + 0xc]
call fcn.0062eaa7
mov dword [ebx + 0xc], 0
add esp, 4
mov ecx, dword [edi]
test ecx, ecx
je 0x4cb856
push dword [ecx]
mov edx, ebx
call fcn.00471ea0
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4cbbe0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push edi
call ebx
push dword [0x715150]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x4cbc3b
mov ecx, edi
call fcn.004cbb90
mov esi, dword [edi]
test esi, esi
je 0x4cbc24
push dword [esi + 4]
call fcn.0062eaa7
push esi
call fcn.0062eaa7
add esp, 8
push edi
call fcn.0062eaa7
add esp, 4
push 0
push dword [0x715150]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
call ebx
push dword [0x71514c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x4cbc6f
cmp dword [edi], 0
je 0x4cbc6f
cmp dword [edi + 4], 0
je 0x4cbc6f
call dword [sym.imp.KERNEL32.dll_ConvertFiberToThread]
mov dword [edi], 0
call ebx
push dword [0x71514c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push dword [0x71514c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4cbca3
push edi
call fcn.0062eaa7
add esp, 4
pop edi
pop esi
pop ebx
ret

Function at 0x4cbcb0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
push edi
push 0
push 0x100
xor ecx, ecx
call fcn.00493940
add esp, 8
test eax, eax
je 0x4cbcf7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x71514c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x4cbcf7
mov eax, dword [edi + 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4ebd50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
call fcn.00627fd0
mov dword [ebp - 4], edx
push ebx
mov ebx, ecx
test edx, edx
je 0x4ebdc2
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4ebdc1
mov eax, dword [ebx + 0x14]
cmp esi, eax
push edi
mov edi, eax
cmovb edi, esi
test edi, edi
je 0x4ebd96
lea ecx, [ebx + 0x18]
mov al, byte [edx]
lea edx, [edx + 1]
xor byte [ecx], al
lea ecx, [ecx + 1]
sub edi, 1
jne 0x4ebd81
mov eax, dword [ebx + 0x14]
mov edx, dword [ebp - 4]
pop edi
cmp esi, eax
jbe 0x4ebdc1
sub esi, eax
cmp esi, 0x10
jbe 0x4ebda9
mov esi, 0x10
jmp 0x4ebdad
test esi, esi
je 0x4ebdc1
xor ecx, ecx
nop
mov eax, dword [ebx + 0x14]
add eax, ecx
mov al, byte [eax + edx]
xor byte [ebx + ecx + 0x38], al
inc ecx
cmp ecx, esi
jb 0x4ebdb0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ebdd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10
call fcn.00627fd0
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, edx
mov dword [ebp - 0x10], ecx
xor ecx, ecx
mov dword [ebp - 4], 0x10
test esi, esi
jle 0x4ebe7f
push edi
mov edi, dword [ebp + 8]
cmp esi, 0x40
jb 0x4ebe67
mov eax, esi
lea edx, [edi + 0x30]
and eax, 0xffffffc0
sub edi, ebx
mov dword [ebp - 0xc], eax
lea eax, [ebx + 0x10]
movups xmm0, xmmword [eax - 0x10]
add ecx, 0x40
lea edx, [edx + 0x40]
lea eax, [eax + 0x40]
movups xmm1, xmmword [edx - 0x70]
pxor xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [edi + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [edx - 0x50]
pxor xmm1, xmm0
movups xmm0, xmmword [edx - 0x40]
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp ecx, dword [ebp - 0xc]
jl 0x4ebe11
mov edi, dword [ebp + 8]
cmp ecx, esi
jge 0x4ebe7e
mov edx, esi
lea eax, [ecx + ebx]
sub edi, ebx
sub edx, ecx
mov cl, byte [eax + edi]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x4ebe70
pop edi
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
push esi
push ebx
push ecx
mov eax, dword [eax + 8]
cmp dword [eax + 8], 0
je 0x4ebe9f
mov edx, ebx
mov ecx, eax
call fcn.0046d2e0
add esp, 0xc
jmp 0x4ebea9
push ebx
push eax
call fcn.0046d700
add esp, 0x14
test eax, eax
je 0x4ebebd
cmp dword [ebp - 4], esi
jne 0x4ebebd
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4fc2b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
lea ecx, [edx + 0x3c]
movd xmm0, ebx
pshufd xmm4, xmm0, 0
lea eax, [esi + 0x3c]
cmp edx, eax
ja 0x4fc300
cmp ecx, esi
jb 0x4fc300
push edi
sub esi, edx
mov edi, 0x10
nop dword [eax]
mov ecx, dword [edx + esi]
lea edx, [edx + 4]
mov eax, dword [edx - 4]
xor eax, ecx
and eax, ebx
xor ecx, eax
mov dword [edx + esi - 4], ecx
xor dword [edx - 4], eax
sub edi, 1
jne 0x4fc2e0
pop edi
pop esi
pop ebx
pop ebp
ret
sub esi, edx
mov eax, 4
nop word [eax + eax]
lea edx, [edx + 0x10]
movups xmm1, xmmword [esi + edx - 0x10]
movups xmm3, xmmword [edx - 0x10]
movaps xmm2, xmm1
pxor xmm2, xmm3
pand xmm2, xmm4
movaps xmm0, xmm2
pxor xmm2, xmm3
pxor xmm0, xmm1
movups xmmword [esi + edx - 0x10], xmm0
movups xmmword [edx - 0x10], xmm2
sub eax, 1
jne 0x4fc310
pop esi
pop ebx
pop ebp
ret
Function at 0x506b30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10
call fcn.00627fd0
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov edx, dword [eax + 0x60]
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
mov ecx, dword [edx + 0x70]
mov dword [ebp - 4], edx
test ecx, ecx
je 0x506b9f
test edi, edi
je 0x506b7f
lea eax, [edx + 0x30]
add eax, ecx
mov dword [ebp + 8], eax
cmp ecx, 0x40
jae 0x506b7f
mov al, byte [eax]
inc ecx
xor al, byte [esi]
inc esi
mov byte [ebx], al
inc ebx
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
sub edi, 1
jne 0x506b65
mov dword [edx + 0x70], ecx
test edi, edi
je 0x506c6c
cmp ecx, 0x40
jne 0x506b9f
mov dword [edx + 0x70], 0
add dword [edx + 0x20], 1
jne 0x506b9f
inc dword [edx + 0x24]
mov eax, edi
and eax, 0x3f
sub edi, eax
mov dword [ebp - 8], eax
lea eax, [edx + 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [eax]
mov dword [ebp + 8], eax
cmp edi, 0x40
jb 0x506c17
nop dword [eax]
push dword [ebp - 0xc]
mov ecx, edi
xor edx, edx
shr ecx, 6
add eax, ecx
cmp eax, ecx
cmovae edx, eax
neg dword [ebp + 8]
cmp eax, ecx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
cmovae eax, ecx
push edx
shl eax, 6
push eax
push esi
push ebx
mov dword [ebp + 8], eax
call fcn.00442b40
mov eax, dword [ebp + 8]
add esp, 0x14
mov ecx, dword [ebp - 0xc]
sub edi, eax
mov edx, dword [ebp - 4]
add esi, eax
add ebx, eax
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
test eax, eax
jne 0x506c0f
inc dword [edx + 0x24]
mov dword [ebp + 8], eax
cmp edi, 0x40
jae 0x506bc0
cmp dword [ebp - 8], 0
je 0x506c6c
push 0x40
lea eax, [edx + 0x30]
push 0
push eax
mov dword [ebp + 8], eax
call fcn.0062b100
push dword [ebp - 0xc]
mov edi, dword [ebp - 4]
push edi
push 0x40
lea eax, [edi + 0x30]
push eax
push eax
call fcn.00442b40
mov eax, dword [ebp - 8]
add esp, 0x20
xor edx, edx
test eax, eax
je 0x506c69
sub esi, ebx
mov edi, eax
mov eax, dword [ebp + 8]
lea ecx, [edx + ebx]
mov al, byte [eax + edx]
inc edx
xor al, byte [esi + ecx]
mov byte [ecx], al
cmp edx, edi
jb 0x506c50
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edi + 0x70], eax
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x523400
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30
call fcn.00627fd0
mov eax, dword [0x70b514]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [eax]
movzx ebx, byte [ecx]
push edi
lea edi, [ecx + 1]
mov dword [ebp - 0x1c], edx
mov edx, edi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edi
movzx eax, byte [edx]
shl eax, 8
or ebx, eax
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 1]
shl eax, 0x10
or ebx, eax
movzx eax, byte [edx + 2]
shl eax, 0x18
or ebx, eax
movzx eax, byte [edx + 4]
shl eax, 8
or ecx, eax
mov dword [ebp - 0x14], ebx
movzx eax, byte [edx + 5]
mov dword [ebp - 0x18], ecx
movzx ecx, byte [edx + 6]
mov edx, dword [ebp - 0x18]
shl ecx, 8
or ecx, eax
mov byte [ebp - 0xc], bl
mov eax, ebx
shl ecx, 0x10
shr eax, 8
or edx, ecx
mov byte [ebp - 0xb], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0xa], al
mov eax, ebx
shr eax, 0x18
mov byte [ebp - 9], al
mov eax, edx
shr eax, 8
mov byte [ebp - 7], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 6], al
mov eax, edx
shr eax, 0x18
mov byte [ebp - 5], al
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], edx
mov byte [ebp - 8], dl
test eax, eax
je 0x523584
mov ecx, dword [ebp - 0x20]
sub dword [ebp - 0x1c], ecx
xor edi, edi
dec eax
mov dword [ebp + 8], eax
test esi, esi
jne 0x52352c
push 1
push dword [ebp - 0x28]
lea eax, [ebp - 0x14]
push eax
call fcn.004068c0
mov ebx, dword [ebp - 0x14]
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov eax, ebx
shr eax, 8
mov byte [ebp - 0xb], al
mov eax, ebx
mov ecx, dword [ebp - 0x20]
shr eax, 0x10
mov byte [ebp - 0xa], al
mov eax, ebx
shr eax, 0x18
mov byte [ebp - 9], al
mov eax, edx
shr eax, 8
mov byte [ebp - 7], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 6], al
mov eax, edx
shr eax, 0x18
inc edi
mov byte [ebp - 0xc], bl
mov dword [ebp - 0x18], edx
mov byte [ebp - 8], dl
mov byte [ebp - 5], al
mov al, byte [ebp + esi - 0xc]
inc esi
mov edx, dword [ebp - 0x1c]
and esi, 7
xor al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], ecx
test eax, eax
jne 0x5234d0
test edi, edi
mov edi, dword [ebp - 0x2c]
je 0x523584
mov eax, dword [ebp - 0x30]
mov byte [edi + 3], dl
mov byte [eax], bl
mov eax, ebx
shr eax, 8
mov byte [edi], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 1], al
mov eax, edx
shr eax, 8
mov byte [edi + 4], al
mov eax, edx
shr ebx, 0x18
shr eax, 0x10
shr edx, 0x18
mov byte [edi + 2], bl
mov byte [edi + 5], al
mov byte [edi + 6], dl
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov dword [eax], esi
pop esi
pop ebx
call fcn.00627eaa
mov esp, ebp
pop ebp
ret
Function at 0x524530
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x38
call fcn.00627fd0
mov eax, dword [0x70b514]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp + 0x18]
push ebx
push esi
mov esi, dword [eax]
movzx ebx, byte [ecx]
push edi
lea edi, [ecx + 1]
mov dword [ebp - 0x1c], edx
mov edx, edi
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], edi
movzx eax, byte [edx]
shl eax, 8
or ebx, eax
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 1]
shl eax, 0x10
or ebx, eax
movzx eax, byte [edx + 2]
shl eax, 0x18
or ebx, eax
movzx eax, byte [edx + 4]
shl eax, 8
or ecx, eax
mov dword [ebp - 0x14], ebx
movzx eax, byte [edx + 5]
mov dword [ebp - 0x18], ecx
movzx ecx, byte [edx + 6]
mov edx, dword [ebp - 0x18]
shl ecx, 8
or ecx, eax
mov byte [ebp - 0xc], bl
mov eax, ebx
shl ecx, 0x10
shr eax, 8
or edx, ecx
mov byte [ebp - 0xb], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0xa], al
mov eax, ebx
shr eax, 0x18
mov byte [ebp - 9], al
mov eax, edx
shr eax, 8
mov byte [ebp - 7], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 6], al
mov eax, edx
shr eax, 0x18
mov byte [ebp - 5], al
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], edx
mov byte [ebp - 8], dl
test eax, eax
je 0x5246c8
mov ecx, dword [ebp - 0x20]
sub dword [ebp - 0x1c], ecx
xor edi, edi
nop dword [eax]
dec eax
mov dword [ebp + 8], eax
test esi, esi
jne 0x524670
push dword [ebp - 0x28]
lea eax, [ebp - 0x14]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push eax
call fcn.00406a20
mov ebx, dword [ebp - 0x14]
add esp, 0x10
mov edx, dword [ebp - 0x10]
mov eax, ebx
shr eax, 8
mov byte [ebp - 0xb], al
mov eax, ebx
mov ecx, dword [ebp - 0x20]
shr eax, 0x10
mov byte [ebp - 0xa], al
mov eax, ebx
shr eax, 0x18
mov byte [ebp - 9], al
mov eax, edx
shr eax, 8
mov byte [ebp - 7], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 6], al
mov eax, edx
shr eax, 0x18
inc edi
mov dword [ebp - 0x18], edx
mov byte [ebp - 0xc], bl
mov byte [ebp - 8], dl
mov byte [ebp - 5], al
mov al, byte [ebp + esi - 0xc]
inc esi
mov edx, dword [ebp - 0x1c]
and esi, 7
xor al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], ecx
test eax, eax
jne 0x524610
test edi, edi
mov edi, dword [ebp - 0x34]
je 0x5246c8
mov eax, dword [ebp - 0x38]
mov byte [edi + 3], dl
mov byte [eax], bl
mov eax, ebx
shr eax, 8
mov byte [edi], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 1], al
mov eax, edx
shr eax, 8
mov byte [edi + 4], al
mov eax, edx
shr ebx, 0x18
shr eax, 0x10
shr edx, 0x18
mov byte [edi + 2], bl
mov byte [edi + 5], al
mov byte [edi + 6], dl
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov dword [eax], esi
pop esi
pop ebx
call fcn.00627eaa
mov esp, ebp
pop ebp
ret
Function at 0x52be40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30
call fcn.00627fd0
mov eax, dword [0x70b514]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [eax]
movzx ebx, byte [ecx]
push edi
lea edi, [ecx + 1]
mov dword [ebp - 0x1c], edx
mov edx, edi
shl ebx, 0x18
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edi
movzx eax, byte [edx]
movzx ecx, byte [edx + 3]
shl eax, 0x10
or ebx, eax
shl ecx, 0x18
movzx eax, byte [edx + 1]
shl eax, 8
or ebx, eax
movzx eax, byte [edx + 2]
or ebx, eax
movzx eax, byte [edx + 4]
shl eax, 0x10
or ecx, eax
mov dword [ebp - 0x14], ebx
movzx eax, byte [edx + 6]
mov dword [ebp - 0x18], ecx
movzx ecx, byte [edx + 5]
mov edx, dword [ebp - 0x18]
shl ecx, 8
or ecx, eax
mov byte [ebp - 9], bl
mov eax, ebx
or edx, ecx
shr eax, 0x18
mov byte [ebp - 0xc], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0xb], al
mov eax, ebx
shr eax, 8
mov byte [ebp - 0xa], al
mov eax, edx
shr eax, 0x18
mov byte [ebp - 8], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 7], al
mov eax, edx
shr eax, 8
mov byte [ebp - 6], al
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], edx
mov byte [ebp - 5], dl
test eax, eax
je 0x52bfc6
mov ecx, dword [ebp - 0x20]
sub dword [ebp - 0x1c], ecx
xor edi, edi
dec eax
mov dword [ebp + 8], eax
test esi, esi
jne 0x52bf6a
push dword [ebp - 0x28]
lea eax, [ebp - 0x14]
push eax
call fcn.00443bc0
mov ebx, dword [ebp - 0x14]
add esp, 8
mov edx, dword [ebp - 0x10]
mov eax, ebx
shr eax, 0x18
mov byte [ebp - 0xc], al
mov eax, ebx
mov ecx, dword [ebp - 0x20]
shr eax, 0x10
mov byte [ebp - 0xb], al
mov eax, ebx
shr eax, 8
mov byte [ebp - 0xa], al
mov eax, edx
shr eax, 0x18
mov byte [ebp - 8], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 7], al
mov eax, edx
shr eax, 8
inc edi
mov byte [ebp - 9], bl
mov dword [ebp - 0x18], edx
mov byte [ebp - 6], al
mov byte [ebp - 5], dl
mov al, byte [ebp + esi - 0xc]
inc esi
mov edx, dword [ebp - 0x1c]
and esi, 7
xor al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], ecx
test eax, eax
jne 0x52bf10
test edi, edi
mov edi, dword [ebp - 0x2c]
je 0x52bfc6
mov ecx, dword [ebp - 0x30]
mov eax, ebx
shr eax, 0x18
mov byte [edi + 2], bl
mov byte [edi + 6], dl
mov byte [ecx], al
mov eax, ebx
shr eax, 0x10
mov byte [edi], al
mov eax, ebx
shr eax, 8
mov byte [edi + 1], al
mov eax, edx
shr eax, 0x18
mov byte [edi + 3], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 4], al
mov eax, edx
shr eax, 8
mov byte [edi + 5], al
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov dword [eax], esi
pop esi
pop ebx
call fcn.00627eaa
mov esp, ebp
pop ebp
ret
Function at 0x52f6a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1c
call fcn.00627fd0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 0xc]
shr ecx, 3
mov dword [ebp - 0x18], edi
mov dword [ebp - 0xc], ecx
cmp esi, dword [ebp + 0xc]
jb 0x52f891
nop dword [eax]
mov dword [ebp - 8], 0
test ecx, ecx
je 0x52f878
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
movzx eax, byte [ecx + 7]
cdq
mov edi, eax
mov ebx, edx
movzx eax, byte [ecx + 6]
shld ebx, edi, 8
cdq
shl edi, 8
or ebx, edx
or edi, eax
movzx eax, byte [ecx + 5]
shld ebx, edi, 8
cdq
shl edi, 8
or ebx, edx
or edi, eax
movzx eax, byte [ecx + 4]
shld ebx, edi, 8
cdq
shl edi, 8
or ebx, edx
or edi, eax
movzx eax, byte [ecx + 3]
cdq
shld ebx, edi, 8
shl edi, 8
or ebx, edx
or edi, eax
movzx eax, byte [ecx + 2]
cdq
shld ebx, edi, 8
shl edi, 8
or ebx, edx
or edi, eax
movzx eax, byte [ecx + 1]
cdq
shld ebx, edi, 8
shl edi, 8
or ebx, edx
or edi, eax
movzx eax, byte [ecx]
cdq
add ecx, 8
mov dword [ebp - 4], ecx
shld ebx, edi, 8
shl edi, 8
or ebx, edx
or edi, eax
mov eax, edi
and eax, 0x55555555
mov ecx, eax
shr ecx, 1
or ecx, eax
and ecx, 0x33333333
mov eax, ecx
shr eax, 2
or eax, ecx
and eax, 0xf0f0f0f
mov ecx, eax
shr ecx, 4
or ecx, eax
mov eax, ebx
and ecx, 0xff00ff
and eax, 0x55555555
mov dword [ebp - 0x14], ecx
mov ecx, eax
shr ecx, 1
or ecx, eax
and ecx, 0x33333333
mov eax, ecx
shr eax, 2
or eax, ecx
and eax, 0xf0f0f0f
mov ecx, eax
shr ecx, 4
or ecx, eax
and ecx, 0xff00ff
and edi, 0xaaaaaaaa
mov dword [ebp - 0x10], ecx
lea eax, [edi + edi]
or eax, edi
and ebx, 0xaaaaaaaa
and eax, 0xcccccccc
lea ecx, [eax*4]
or ecx, eax
lea eax, [ebx + ebx]
or eax, ebx
and ecx, 0xf0f0f0f0
and eax, 0xcccccccc
mov edi, ecx
shl edi, 4
or edi, ecx
and edi, 0xff00ff00
lea ecx, [eax*4]
mov ebx, edi
or ecx, eax
shr ebx, 8
and ecx, 0xf0f0f0f0
and edi, 0xffff00
mov edx, ecx
or ebx, edi
shl edx, 4
or edx, ecx
mov edi, dword [ebp - 0x18]
and edx, 0xff00ff00
shr ebx, 8
mov eax, edx
shl eax, 8
or eax, edx
xor edx, edx
and eax, 0xffff0000
or ebx, eax
mov eax, dword [ebp - 0x10]
mov ecx, eax
shl eax, 8
and ecx, 0xffffff00
or ecx, eax
mov eax, dword [ebp - 0x14]
shr eax, 8
or eax, dword [ebp - 0x14]
movzx eax, ax
shl ecx, 8
or ecx, eax
mov eax, dword [ebp - 8]
or edx, ecx
xor dword [edi + eax*8], edx
xor dword [edi + eax*8 + 4], ebx
inc eax
mov dword [ebp - 8], eax
cmp eax, esi
jb 0x52f6e2
mov esi, dword [ebp + 8]
mov ecx, edi
call fcn.0052f580
sub esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [ebp + 8], esi
cmp esi, dword [ebp + 0xc]
jae 0x52f6d0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x538440
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [edx + 4]
push edi
cmp esi, dword [ebx + 4]
mov edi, ecx
mov ecx, edx
cmovge ecx, ebx
cmovge ebx, edx
mov dword [ebp + 8], ecx
mov edx, dword [ebx + 4]
cmp edx, dword [edi + 8]
jg 0x538468
mov eax, edi
jmp 0x538472
mov ecx, edi
call fcn.004749e0
mov ecx, dword [ebp + 8]
test eax, eax
jne 0x53847b
pop edi
pop esi
pop ebx
pop ebp
ret
xor esi, esi
cmp dword [ecx + 4], esi
jle 0x53849a
mov eax, dword [ecx]
mov ecx, dword [ebx]
mov edx, dword [eax + esi*4]
xor edx, dword [ecx + esi*4]
mov eax, dword [edi]
mov ecx, dword [ebp + 8]
mov dword [eax + esi*4], edx
inc esi
cmp esi, dword [ecx + 4]
jl 0x538482
mov eax, dword [ebx + 4]
cmp esi, eax
jge 0x5384b3
mov eax, dword [ebx]
mov ecx, dword [edi]
mov eax, dword [eax + esi*4]
mov dword [ecx + esi*4], eax
inc esi
mov eax, dword [ebx + 4]
cmp esi, eax
jl 0x5384a1
mov dword [edi + 4], eax
test eax, eax
jle 0x5384d3
mov ecx, dword [edi]
lea ecx, [ecx + eax*4]
nop
cmp dword [ecx - 4], 0
lea ecx, [ecx - 4]
jne 0x5384ce
dec eax
test eax, eax
jg 0x5384c0
mov dword [edi + 4], eax
test eax, eax
jne 0x5384dc
mov dword [edi + 0xc], 0
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret