joyce8/EMBER2024-capa huggingface dataset:
Function at 0x496260
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10
call fcn.00628620
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
mov dword [ebp - 0x10], ebx
mov eax, dword [esi + 4]
cmp eax, 0x1e
ja 0x49639e
test dword [eax*4 + 0x6a6528], 0x2956
je 0x49639e
lea eax, [ebx + 8]
mov dword [ebx + 4], 0xc
push esi
push eax
mov dword [ebp - 0xc], eax
call fcn.004777b0
mov edi, eax
add esp, 8
mov dword [ebx], edi
cmp edi, 0xffffffff
je 0x4963b2
mov ebx, dword [ebx + 8]
mov ecx, ebx
test edi, edi
jle 0x4962ff
movzx eax, byte [ecx]
cmp eax, 0x80
jae 0x4962db
test byte [eax*2 + 0x6a5fe8], 8
je 0x4962db
dec edi
inc ecx
test edi, edi
jg 0x4962c1
test edi, edi
jle 0x4962ff
lea eax, [ecx - 1]
add eax, edi
movzx edx, byte [eax]
cmp edx, 0x80
jae 0x4962ff
test byte [edx*2 + 0x6a5fe8], 8
je 0x4962ff
dec edi
dec eax
test edi, edi
jg 0x4962e4
xor esi, esi
mov eax, ebx
test edi, edi
jle 0x49638b
nop dword [eax + eax]
mov dl, byte [ecx]
movzx eax, dl
mov byte [ebp - 1], dl
test eax, 0xffffff80
jne 0x49637d
cmp eax, 0x80
jae 0x496364
test byte [eax*2 + 0x6a5fe8], 8
je 0x49634c
mov byte [ebx], 0x20
movzx eax, byte [ecx + 1]
inc ecx
inc esi
cmp eax, 0x80
jae 0x496381
test byte [eax*2 + 0x6a5fe8], 8
jne 0x496333
jmp 0x496381
cmp eax, 0x80
jae 0x496364
test byte [eax*2 + 0x6a5fe8], 2
mov dword [ebp - 8], 1
jne 0x49636b
mov dword [ebp - 8], 0
mov al, dl
xor al, 0x20
cmp dword [ebp - 8], 0
movzx edx, al
movzx eax, byte [ebp - 1]
cmove edx, eax
inc ecx
mov byte [ebx], dl
inc esi
inc ebx
cmp esi, edi
jl 0x496310
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
sub ebx, eax
mov eax, dword [ebp - 0x10]
pop edi
pop esi
mov dword [eax], ebx
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx + 4], eax
push dword [esi]
mov edx, dword [esi + 8]
call fcn.00475f90
add esp, 4
test eax, eax
jne 0x4963bb
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
and dword [ebx + 0xc], 0x80
mov eax, dword [esi + 0xc]
pop edi
and eax, 0xffffff7f
or dword [ebx + 0xc], eax
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b6160
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
call fcn.0047f300
mov edi, eax
test edi, edi
je 0x4b622a
mov edx, dword [esi + 0x14]
sub edx, dword [esi + 4]
cmp edi, edx
jbe 0x4b619f
push 0x30d
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcrypto_rand_rand_lib.c
push 0x7d
mov edx, 0x71
lea ecx, [edx - 0x4d]
call fcn.004818c0
add esp, 0xc
jmp 0x4b622a
cmp dword [esi], 0
jne 0x4b61b2
push 0x312
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcrypto_rand_rand_lib.c
push 0x44
jmp 0x4b618a
mov edx, edi
mov ecx, esi
call fcn.0047f1d0
test eax, eax
je 0x4b622a
mov eax, dword [esi + 4]
add eax, dword [esi]
je 0x4b622a
push 2
push edi
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov ecx, dword [esi + 4]
test eax, eax
mov eax, dword [esi + 0x18]
cmove ebx, edi
sub eax, ecx
cmp ebx, eax
jbe 0x4b6202
mov edx, 0x72
push 0x331
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcrypto_rand_rand_lib.c
push 0x7d
lea ecx, [edx - 0x4e]
call fcn.004818c0
add esp, 0xc
jmp 0x4b6216
test ebx, ebx
je 0x4b6216
lea eax, [ecx + ebx]
mov dword [esi + 4], eax
lea eax, [ebx*8]
add dword [esi + 0x1c], eax
mov eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x20]
jb 0x4b623a
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 0x10]
jb 0x4b623a
test eax, eax
jne 0x4b623e
mov ecx, dword [esi + 0x1c]
cmp ecx, dword [esi + 0x20]
jb 0x4b623a
mov eax, dword [esi + 4]
cmp eax, dword [esi + 0x10]
jae 0x4b623c
xor ecx, ecx
mov eax, ecx
pop edi
pop esi
pop ebx
ret

Function at 0x4b99f0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
call fcn.00628620
push edi
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
test edi, edi
je 0x4b9a70
mov cl, byte [edi]
test cl, cl
je 0x4b9a70
push ebx
push esi
mov ebx, 0x100
nop word [eax + eax]
movd xmm1, dword [ebp - 4]
lea edi, [edi + 1]
movsx esi, cl
mov edx, 0x20
or esi, ebx
add ebx, 0x100
mov ecx, esi
shr ecx, 2
xor ecx, esi
imul esi, esi
and ecx, 0xf
sub edx, ecx
shl eax, cl
mov cl, byte [edi]
movd xmm0, edx
psrlq xmm1, xmm0
movd edx, xmm1
or eax, edx
xor eax, esi
mov dword [ebp - 4], eax
test cl, cl
jne 0x4b9a20
mov ecx, eax
pop esi
shr ecx, 0x10
pop ebx
xor eax, ecx
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4bd880
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10
call fcn.00628620
mov eax, dword [0x70d514]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], 1
cmp esi, 0xffffffff
jne 0x4bd8d6
push 0x52
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcrypto_bio_b_sock2.c
push 0x87
mov edx, 0x8a
lea ecx, [esi + 0x21]
call fcn.004818c0
add esp, 0xc
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006284fa
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 8]
mov eax, ebx
shr eax, 3
and eax, 1
push edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jns 0x4bd92e
push 0xc3
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcrypto_bio_b_sock.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, 5
push eax
lea ecx, [edx - 3]
call fcn.004818c0
add esp, 0xc
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006284fa
mov esp, ebp
pop ebp
ret
jne 0x4bd91b
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
test bl, 4
je 0x4bd97b
push 4
lea eax, [ebp - 8]
push eax
push 8
push 0xffff
push esi
call edi
test eax, eax
je 0x4bd97b
push 0x5c
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcrypto_bio_b_sock2.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, 0xe
push eax
lea ecx, [edx - 0xc]
call fcn.004818c0
push 0x5d
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcrypto_bio_b_sock2.c
push 0x89
jmp 0x4bda0e
test bl, 0x10
je 0x4bd9ba
push 4
lea eax, [ebp - 8]
push eax
push 1
push 6
push esi
call edi
test eax, eax
je 0x4bd9ba
push 0x65
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcrypto_bio_b_sock2.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, 0xe
push eax
lea ecx, [edx - 0xc]
call fcn.004818c0
push 0x66
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcrypto_bio_b_sock2.c
push 0x8a
jmp 0x4bda0e
mov edx, dword [ebp - 0x10]
mov edi, 0x10
mov eax, 0x1c
cmp word [edx], 2
cmove eax, edi
push eax
push edx
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4bda31
or ecx, eax
call fcn.004bdcd0
test eax, eax
jne 0x4bd91b
push 0x6e
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcrypto_bio_b_sock2.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, 2
push eax
mov ecx, edx
call fcn.004818c0
push 0x6f
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcrypto_bio_b_sock2.c
push 0x67
mov edx, 0x8a
lea ecx, [edx - 0x6a]
call fcn.004818c0
add esp, 0x18
xor eax, eax
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006284fa
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.006284fa
mov esp, ebp
pop ebp
ret
Function at 0x4c3fc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 8
call fcn.00628620
cmp dword [ecx], 0x72
push ebx
push esi
mov dword [ebp - 8], edx
jne 0x4c4172
mov esi, dword [ebp + 0x18]
mov ecx, 0x6a8534
mov eax, dword [ebp + 8]
mov ebx, eax
push esi
push dword [ebp + 0x14]
and eax, 1
shr ebx, 1
push dword [ebp + 0x10]
add eax, ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push eax
call fcn.004c3d20
add esp, 0x14
test eax, eax
je 0x4c418d
push edi
test esi, esi
je 0x4c414d
push esi
mov dword [0x70e32c], 0
call fcn.0063280d
mov edi, eax
add esp, 4
test edi, edi
je 0x4c414d
mov edx, dword [ebp - 8]
mov ecx, 0x694bb4
push esi
push edi
push dword [ebp + 0x10]
lea edx, [ebx + edx]
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.004c3d20
add esp, 0x14
test eax, eax
jne 0x4c406e
push esi
push edi
call fcn.00401320
push edi
call fcn.0062f107
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
test esi, esi
je 0x4c4131
mov edx, dword [ebp + 0x14]
cmp esi, 0x40
jb 0x4c410a
lea eax, [esi - 1]
lea ecx, [edx - 1]
add eax, edi
add ecx, esi
cmp edx, eax
ja 0x4c4096
cmp ecx, edi
jae 0x4c410a
mov eax, esi
lea ecx, [edi + 0x30]
and eax, 0xffffffc0
mov esi, edi
sub esi, edx
mov dword [ebp - 4], eax
mov dword [ebp - 8], esi
lea eax, [edx + 0x10]
mov esi, dword [ebp + 0x18]
mov edx, dword [ebp - 8]
movups xmm0, xmmword [eax - 0x10]
add ebx, 0x40
lea ecx, [ecx + 0x40]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ecx - 0x70]
pxor xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [edx + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ecx - 0x50]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x40]
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp ebx, dword [ebp - 4]
jb 0x4c40b1
mov edx, dword [ebp + 0x14]
mov dword [ebp - 8], ebx
cmp ebx, esi
jae 0x4c4131
mov eax, edi
lea ecx, [ebx + edx]
sub eax, edx
mov edx, esi
mov dword [ebp - 8], eax
sub edx, ebx
mov esi, eax
nop word [eax + eax]
mov al, byte [ecx + esi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x4c4120
mov esi, dword [ebp + 0x18]
push esi
push edi
call fcn.00401320
push edi
call fcn.0062f107
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, 0x6f
push 0x105
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcryptokdf_tls1_prf.c
push 0x41
lea ecx, [edx - 0x3b]
call fcn.004818c0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004c3d20
add esp, 0x14
test eax, eax
jne 0x4c4195
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
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.00628620
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push edi
call ebx
push dword [0x717140]
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 [0x70e32c], edi
call fcn.0063280d
mov esi, eax
add esp, 4
test esi, esi
je 0x4cb7d1
xorps xmm0, xmm0
mov dword [0x70e32c], edi
movq qword [esi], xmm0
push 0x14
mov dword [esi + 8], edi
call fcn.0063280d
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 [0x717140]
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.0062f107
add esp, 4
push edi
call fcn.0062f107
add esp, 4
push esi
call fcn.0062f107
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call ebx
push dword [0x717140]
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.0062f107
add esp, 4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFiber]
push esi
call fcn.0062f107
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.0062f107
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 [0x717140]
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.0062f107
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 [0x717140]
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.0062f107
push esi
call fcn.0062f107
add esp, 8
push edi
call fcn.0062f107
add esp, 4
push 0
push dword [0x717140]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
call ebx
push dword [0x71713c]
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 [0x71713c]
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 [0x71713c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4cbca3
push edi
call fcn.0062f107
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 [0x71713c]
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.00628620
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.00628620
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 0x506b30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10
call fcn.00628620
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.0062b760
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.00628620
mov eax, dword [0x70d514]
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.006284fa
mov esp, ebp
pop ebp
ret