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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
test esi, esi
jle 0x563ead
push edi
mov edi, dword [ebp + 0xc]
inc edi
lea ebx, [ebx]
movzx edx, byte [edi - 1]
cmp esi, 3
jl 0x563e3e
movzx ecx, byte [edi]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 1], cl
mov ecx, edx
shr ecx, 6
and ecx, 0x3f
and edx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 2], cl
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 3], cl
jmp 0x563e8f
shl edx, 0x10
cmp esi, 2
jne 0x563e4e
movzx ecx, byte [edi]
shl ecx, 8
or edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 1], cl
cmp esi, 1
jne 0x563e7b
lea ecx, [esi + 0x3c]
jmp 0x563e88
shr edx, 6
and edx, 0x3f
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 2], cl
mov byte [eax + 3], 0x3d
sub esi, 3
add eax, 4
add ebx, 4
add edi, 3
test esi, esi
jg 0x563de0
pop edi
mov byte [eax], 0
mov eax, ebx
pop esi
pop ebx
pop ebp
ret
mov byte [eax], bl
mov eax, ebx
pop esi
pop ebx
pop ebp
ret
Function at 0x566050
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x617960]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
mov eax, dword [eax + 4]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x90], eax
sub eax, edi
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x8c], ebx
cmp esi, edi
jae 0x5660ac
push str.orig_len___md_size
push 0xf8
push str.F:Gitcurllookaside_openssl_ssl_s3_cbc.c
call fcn.0051ef00
add esp, 0xc
cmp edi, 0x40
jbe 0x5660c8
push str.md_size___EVP_MAX_MD_SIZE
push 0xf9
push str.F:Gitcurllookaside_openssl_ssl_s3_cbc.c
call fcn.0051ef00
add esp, 0xc
lea eax, [ebp - 0x84]
neg eax
lea ecx, [ebp - 0x84]
and eax, 0x3f
add ecx, eax
lea eax, [edi + 0x100]
mov dword [ebp - 0x98], ecx
cmp esi, eax
jbe 0x5660fb
mov ebx, esi
sub ebx, edi
sub ebx, 0x100
mov dword [ebp - 0x8c], ebx
mov eax, edi
xor edx, edx
and eax, 0xfffffffe
shl eax, 0x17
sub eax, ebx
add eax, dword [ebp - 0x88]
div edi
push edi
mov esi, edx
push 0
push ecx
mov dword [ebp - 0x9c], esi
call fcn.00495000
add esp, 0xc
mov dword [ebp - 0x94], 0
cmp ebx, dword [ebp + 0x14]
jae 0x56621c
mov ecx, dword [ebp - 0x88]
mov edx, ecx
mov ebx, dword [ebp - 0x90]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x8c]
shr edx, 0x1f
mov dword [ebp - 0xa8], edx
mov edx, ebx
mov eax, dword [eax + 0xc]
shr edx, 0x1f
mov dword [ebp - 0x90], edx
mov edx, esi
mov dword [ebp - 0x8c], ebx
sub edx, ebx
sub dword [ebp - 0x8c], ecx
add eax, ebx
mov dword [ebp - 0x88], edx
mov dword [ebp - 0xa4], eax
mov ebx, dword [ebp - 0x8c]
mov ecx, esi
mov eax, dword [ebp - 0xa8]
inc esi
mov edi, dword [ebp - 0x94]
shr ecx, 0x1f
lea ebx, [ebx + edx]
shr edx, 0x1f
xor dl, byte [ebp - 0x90]
shr ebx, 0x1f
xor bl, al
xor al, cl
or bl, al
mov al, cl
xor al, byte [ebp - 0x90]
xor bl, cl
or dl, al
dec bl
mov eax, dword [ebp - 0x88]
xor dl, cl
mov ecx, dword [ebp - 0xa4]
dec dl
not dl
mov al, byte [ecx + eax]
mov ecx, dword [ebp - 0x98]
and dl, al
and dl, bl
or byte [ecx + edi], dl
mov edx, edi
mov edi, dword [ebp + 0x10]
inc edx
mov ecx, edx
mov eax, edx
sub ecx, edi
xor eax, edi
xor ecx, edi
or ecx, eax
xor ecx, edx
shr ecx, 0x1f
neg ecx
and edx, ecx
mov dword [ebp - 0x94], edx
mov edx, dword [ebp - 0x88]
inc edx
mov dword [ebp - 0x88], edx
cmp esi, dword [ebp + 0x14]
jb 0x566182
mov esi, dword [ebp - 0x9c]
xor edx, edx
test edi, edi
je 0x566260
mov ebx, dword [ebp - 0xa0]
jmp 0x566230
mov ecx, dword [ebp - 0x98]
mov eax, esi
xor eax, 0x20
mov al, byte [eax + ecx]
movzx eax, byte [esi + ecx]
inc esi
mov byte [ebx + edx], al
mov ecx, esi
sub ecx, edi
mov eax, esi
xor ecx, edi
xor eax, edi
or ecx, eax
inc edx
xor ecx, esi
shr ecx, 0x1f
neg ecx
and esi, ecx
cmp edx, edi
jb 0x566230
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049355b
mov esp, ebp
pop ebp
ret
Function at 0x566e00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
inc ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp + 0x14], ebx
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x64]
test byte [eax + 0x38], 1
je 0x566e45
mov ecx, dword [ebp + 0x10]
mov edx, dword [esi + 4]
lea eax, [ebx + ecx]
cmp eax, edx
jbe 0x566e38
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
add dword [esi + 0xc], ecx
add dword [esi + 0x10], ecx
sub edx, ecx
mov dword [esi + 4], edx
jmp 0x566e4a
cmp ebx, dword [esi + 4]
ja 0x566e2f
test dword [edi + 0x100], 0x200
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 4]
movzx ebx, byte [ecx + eax - 1]
je 0x566e9c
cmp dword [edi + 0x88], 0
jne 0x566e9c
mov eax, dword [edi + 0x58]
push 8
add eax, 8
push 0x5e60ec
push eax
call fcn.0051eb50
add esp, 0xc
test eax, eax
jne 0x566e8f
test bl, 1
jne 0x566e8f
mov eax, dword [edi + 0x58]
or dword [eax], 8
mov eax, dword [edi + 0x58]
test byte [eax], 8
je 0x566e9c
test ebx, ebx
je 0x566e9c
dec ebx
mov eax, dword [edi + 0x80]
push dword [eax]
call fcn.00559430
add esp, 4
test eax, 0x200000
je 0x566ec7
or eax, 0xffffffff
sub eax, ebx
add dword [esi + 4], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 4]
mov edi, edx
mov ecx, dword [ebp + 0x14]
mov eax, edx
add ecx, ebx
mov dword [ebp - 8], edx
sub edi, ecx
xor eax, ecx
xor edi, ecx
mov ecx, 0xff
or edi, eax
lea eax, [edx - 1]
xor edi, edx
shr edi, 0x1f
dec edi
cmp eax, ecx
cmovb ecx, eax
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x566f4b
mov eax, dword [esi + 0xc]
mov ecx, ebx
dec eax
shr ecx, 0x1f
add eax, edx
mov dword [ebp + 0x14], ecx
mov dword [ebp + 8], eax
xor esi, esi
jmp 0x566f10
mov al, byte [ebp + 0x14]
mov edx, ebx
sub edx, esi
mov ecx, esi
shr edx, 0x1f
inc esi
shr ecx, 0x1f
xor dl, cl
xor al, cl
or dl, al
xor dl, byte [ebp + 0x14]
dec dl
movzx ecx, dl
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
dec edx
xor eax, ebx
mov dword [ebp + 8], edx
and ecx, eax
not ecx
and edi, ecx
cmp esi, dword [ebp - 4]
jb 0x566f10
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
not edi
lea eax, [ebx + 1]
and edi, 0xff
lea ecx, [edi - 1]
not edi
shr ecx, 0x1f
shr edi, 0x1f
and ecx, edi
neg ecx
and eax, ecx
sub edx, eax
shl eax, 8
or dword [esi], eax
mov eax, ecx
pop edi
mov dword [esi + 4], edx
and eax, 1
not ecx
pop esi
or eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x567370
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push esi
push edi
push eax
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
xor edi, edi
call fcn.00512e50
add esp, 0xc
test eax, eax
je 0x567541
mov ebx, dword [ebp + 8]
lea esp, [esp]
mov eax, dword [ebp - 4]
shl eax, 0xa
test ebx, eax
je 0x5673ab
inc edi
lea eax, [ebp - 8]
inc esi
push eax
lea eax, [ebp - 4]
push eax
push esi
call fcn.00512e50
add esp, 0xc
test eax, eax
jne 0x5673a0
test edi, edi
je 0x567541
mov ecx, dword [ebp + 0x38]
mov eax, ecx
cdq
idiv edi
mov esi, dword [ebp + 0x3c]
mov dword [ebp - 0xc], eax
xor eax, eax
cmp edi, 1
mov edi, dword [ebp + 0x44]
push edi
push eax
cmove ecx, eax
push esi
mov dword [ebp + 0x38], ecx
call fcn.00495000
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 4]
push eax
push 0
call fcn.00512e50
add esp, 0x18
test eax, eax
je 0x567535
mov ebx, dword [ebp + 0x40]
mov eax, dword [ebp - 4]
shl eax, 0xa
test dword [ebp + 8], eax
je 0x567500
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x567524
push edi
push ebx
push dword [ebp + 0x30]
mov eax, dword [ebp + 0x38]
push dword [ebp + 0x2c]
and eax, 1
push dword [ebp + 0x28]
add eax, dword [ebp - 0xc]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push dword [ebp + 0x34]
push ecx
call fcn.00567570
add esp, 0x3c
test eax, eax
je 0x56755c
mov eax, dword [ebp - 0xc]
xor ecx, ecx
add dword [ebp + 0x34], eax
test edi, edi
jle 0x567500
cmp edi, 0x20
jb 0x5674e4
lea eax, [ebx - 1]
lea edx, [edi - 1]
add eax, edi
add edx, esi
cmp esi, eax
ja 0x567490
cmp edx, ebx
jae 0x5674e4
mov eax, edi
and eax, 0x8000001f
jns 0x56749e
dec eax
or eax, 0xffffffe0
inc eax
mov edx, edi
sub edx, eax
mov eax, esi
mov esi, ebx
sub esi, dword [ebp + 0x3c]
lea esp, [esp]
movdqu xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movdqu xmm1, xmmword [esi + eax - 0x20]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x20], xmm1
movdqu xmm1, xmmword [ebx + ecx + 0x10]
add ecx, 0x20
movdqu xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x10], xmm1
cmp ecx, edx
jl 0x5674b0
mov esi, dword [ebp + 0x3c]
cmp ecx, edi
jge 0x567500
lea eax, [ecx + esi]
mov edx, edi
mov esi, ebx
sub esi, dword [ebp + 0x3c]
sub edx, ecx
mov cl, byte [eax + esi]
lea eax, [eax + 1]
xor byte [eax - 1], cl
dec edx
jne 0x5674f4
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
inc eax
push ecx
push eax
mov dword [ebp - 0x10], eax
call fcn.00512e50
add esp, 0xc
test eax, eax
je 0x567535
mov esi, dword [ebp + 0x3c]
jmp 0x567411
push 0x114
push str.F:Gitcurllookaside_openssl_ssl_t1_enc.c
push 0x146
jmp 0x56754d
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push 0x109
push str.F:Gitcurllookaside_openssl_ssl_t1_enc.c
push 0x44
push 0x11c
push 0x14
call fcn.0051b3a0
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x569250
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x617960]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov edx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], edx
test edi, edi
je 0x5692a4
cmp edi, dword [esi]
je 0x56929b
test eax, eax
je 0x56945b
test ebx, ebx
js 0x56945b
mov ecx, 1
mov dword [esi], edi
jmp 0x5692ae
mov edi, dword [esi]
test edi, edi
je 0x56945b
test eax, eax
je 0x569452
push edi
call fcn.005335f0
add esp, 4
mov dword [ebp - 0x90], eax
cmp eax, 0x80
jle 0x5692e6
push str.j____int_sizeof_ctx__key_
push 0x75
push str.F:Gitcurllookaside_opensslcryptohmachmac.c
call fcn.0051ef00
mov eax, dword [ebp - 0x90]
add esp, 0xc
cmp eax, ebx
jge 0x56933e
push dword [ebp - 0x88]
lea eax, [esi + 4]
push edi
push eax
call fcn.00522e10
add esp, 0xc
test eax, eax
je 0x56945b
push ebx
push dword [ebp - 0x8c]
lea ebx, [esi + 4]
push ebx
call fcn.00522fc0
add esp, 0xc
test eax, eax
je 0x56945b
lea eax, [esi + 0x4c]
push eax
lea eax, [esi + 0x50]
push eax
push ebx
call fcn.00522d60
add esp, 0xc
test eax, eax
je 0x56945b
lea eax, [esi + 0x4c]
jmp 0x569362
cmp ebx, 0x80
ja 0x56945b
push ebx
push dword [ebp - 0x8c]
lea eax, [esi + 0x50]
push eax
call fcn.0049dad0
lea eax, [esi + 0x4c]
add esp, 0xc
mov dword [eax], ebx
mov ecx, dword [eax]
cmp ecx, 0x80
je 0x569384
mov eax, 0x80
sub eax, ecx
push eax
lea eax, [esi + 0x50]
add eax, ecx
push 0
push eax
call fcn.00495000
add esp, 0xc
mov edx, dword [ebp - 0x88]
xor ecx, ecx
lea esp, [esp]
mov al, byte [esi + ecx + 0x50]
xor al, 0x36
mov byte [ebp + ecx - 0x84], al
inc ecx
cmp ecx, 0x80
jl 0x569390
push edx
lea ebx, [esi + 0x1c]
push edi
push ebx
call fcn.00522e10
add esp, 0xc
test eax, eax
je 0x56945b
push edi
call fcn.005335f0
push eax
lea eax, [ebp - 0x84]
push eax
push ebx
call fcn.00522fc0
add esp, 0x10
test eax, eax
je 0x56945b
xor ecx, ecx
lea ecx, [ecx]
mov al, byte [esi + ecx + 0x50]
xor al, 0x5c
mov byte [ebp + ecx - 0x84], al
inc ecx
cmp ecx, 0x80
jl 0x5693e0
push dword [ebp - 0x88]
lea ebx, [esi + 0x34]
push edi
push ebx
call fcn.00522e10
add esp, 0xc
test eax, eax
je 0x56945b
push edi
call fcn.005335f0
push eax
lea eax, [ebp - 0x84]
push eax
push ebx
call fcn.00522fc0
add esp, 0x10
test eax, eax
je 0x56945b
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 4]
push eax
call fcn.00523090
add esp, 8
test eax, eax
je 0x56945b
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049355b
mov esp, ebp
pop ebp
ret
test ecx, ecx
je 0x569428
jmp 0x56938a
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049355b
mov esp, ebp
pop ebp
ret
Function at 0x5756b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x617960]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x18]
lea edx, [eax + 1]
mov dword [ebp - 0x28], eax
movzx ecx, byte [edx + 3]
movzx ebx, byte [eax]
movzx eax, byte [edx]
shl eax, 8
or ebx, eax
mov dword [ebp - 0x14], 0
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 - 0x20], ebx
movzx eax, byte [edx + 5]
mov dword [ebp - 8], ecx
movzx ecx, byte [edx + 6]
mov edx, dword [ebp - 8]
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 edi, dword [ebp + 0x1c]
mov byte [ebp - 5], al
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], edi
mov esi, dword [edi]
mov dword [ebp - 0x1c], edx
mov byte [ebp - 8], dl
test eax, eax
je 0x575837
mov edi, dword [ebp + 8]
sub dword [ebp - 0x10], edi
dec eax
mov dword [ebp + 0x10], eax
test esi, esi
jne 0x5757ce
push 1
push dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
call fcn.00402940
mov ebx, dword [ebp - 0x20]
add esp, 0xc
mov edx, dword [ebp - 0x1c]
mov eax, ebx
shr eax, 8
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
inc dword [ebp - 0x14]
mov byte [ebp - 0xc], bl
mov byte [ebp - 8], dl
mov byte [ebp - 5], al
mov al, byte [ebp + esi - 0xc]
inc esi
mov ecx, dword [ebp - 0x10]
and esi, 7
xor al, byte [edi]
mov byte [ecx + edi], al
inc edi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
test eax, eax
jne 0x575776
test ecx, ecx
je 0x575821
mov edi, dword [ebp - 0x28]
mov eax, ebx
shr eax, 8
mov byte [edi], bl
mov byte [edi + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 2], al
mov eax, edx
shr ebx, 0x18
mov byte [edi + 3], bl
shr eax, 8
mov byte [edi + 4], dl
mov byte [edi + 5], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [edi + 6], al
mov byte [edi + 7], dl
mov eax, dword [ebp - 0x18]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049355b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov dword [edi], esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0049355b
mov esp, ebp
pop ebp
ret
Function at 0x576290
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x617960]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x14], eax
push ebx
movzx ebx, byte [ecx]
push esi
mov esi, dword [eax]
push edi
lea edi, [ecx + 1]
mov dword [ebp - 0x28], ecx
mov edx, edi
mov dword [ebp - 0x30], 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 - 0x20], ebx
movzx eax, byte [edx + 5]
mov dword [ebp - 0x10], ecx
movzx ecx, byte [edx + 6]
mov edx, dword [ebp - 0x10]
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 + 0x10]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x1c], edx
mov byte [ebp - 8], dl
test eax, eax
je 0x57641d
mov ecx, dword [ebp + 8]
sub dword [ebp - 0x18], ecx
xor edi, edi
dec eax
mov dword [ebp + 0x10], eax
test esi, esi
jne 0x5763c5
push dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x34]
push eax
call fcn.00402aa0
mov ebx, dword [ebp - 0x20]
add esp, 0x10
mov edx, dword [ebp - 0x1c]
mov eax, ebx
shr eax, 8
mov byte [ebp - 0xb], al
mov eax, ebx
mov ecx, dword [ebp + 8]
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 - 0x10], 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 - 0x18]
and esi, 7
xor al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x10]
mov dword [ebp + 8], ecx
test eax, eax
jne 0x576365
test edi, edi
mov edi, dword [ebp - 0x30]
je 0x57641d
mov eax, dword [ebp - 0x28]
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 ebx, 0x18
mov byte [edi + 2], bl
shr eax, 8
mov byte [edi + 3], dl
mov byte [edi + 4], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [edi + 5], al
mov byte [edi + 6], dl
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov dword [eax], esi
pop esi
pop ebx
call fcn.0049355b
mov esp, ebp
pop ebp
ret
Function at 0x5776f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x617960]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x18]
lea edx, [eax + 1]
mov dword [ebp - 0x28], eax
movzx ecx, byte [edx + 3]
movzx ebx, byte [eax]
movzx eax, byte [edx]
shl eax, 0x10
shl ebx, 0x18
or ebx, eax
shl ecx, 0x18
movzx eax, byte [edx + 1]
shl eax, 8
or ebx, eax
mov dword [ebp - 0x14], 0
movzx eax, byte [edx + 2]
or ebx, eax
movzx eax, byte [edx + 4]
shl eax, 0x10
or ecx, eax
mov dword [ebp - 0x20], ebx
movzx eax, byte [edx + 6]
mov dword [ebp - 8], ecx
movzx ecx, byte [edx + 5]
mov edx, dword [ebp - 8]
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 edi, dword [ebp + 0x1c]
mov byte [ebp - 6], al
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], edi
mov esi, dword [edi]
mov dword [ebp - 0x1c], edx
mov byte [ebp - 5], dl
test eax, eax
je 0x577879
mov edi, dword [ebp + 8]
sub dword [ebp - 0x10], edi
dec eax
mov dword [ebp + 0x10], eax
test esi, esi
jne 0x57780c
push dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
call fcn.00576cc0
mov ebx, dword [ebp - 0x20]
add esp, 8
mov edx, dword [ebp - 0x1c]
mov eax, ebx
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
inc dword [ebp - 0x14]
mov byte [ebp - 9], bl
mov byte [ebp - 6], al
mov byte [ebp - 5], dl
mov al, byte [ebp + esi - 0xc]
inc esi
mov ecx, dword [ebp - 0x10]
and esi, 7
xor al, byte [edi]
mov byte [ecx + edi], al
inc edi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
test eax, eax
jne 0x5777b6
test ecx, ecx
je 0x577863
mov edi, dword [ebp - 0x28]
mov eax, ebx
shr eax, 0x18
mov byte [edi], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 1], al
mov eax, ebx
shr eax, 8
mov byte [edi + 2], al
mov eax, edx
shr eax, 0x18
mov byte [edi + 3], bl
mov byte [edi + 4], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 5], al
mov eax, edx
shr eax, 8
mov byte [edi + 6], al
mov byte [edi + 7], dl
mov eax, dword [ebp - 0x18]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049355b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov dword [edi], esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0049355b
mov esp, ebp
pop ebp
ret
Function at 0x577890
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, 0x80
cmp eax, edi
mov byte [ebx], 0
cmovg eax, edi
test ecx, ecx
jg 0x5778b7
mov ecx, 0x400
jmp 0x5778c1
mov edx, 0x400
cmp ecx, edx
cmovg ecx, edx
mov dword [ebp + 0x14], ecx
test eax, eax
jle 0x5778e1
sub dword [ebp + 0x10], ebx
mov edx, ebx
mov ebx, dword [ebp + 0x10]
mov esi, eax
mov cl, byte [ebx + edx]
lea edx, [edx + 1]
mov byte [edx - 1], cl
dec esi
jne 0x5778d2
mov ebx, dword [ebp + 8]
movzx edx, byte [ebx + eax - 1]
cmp eax, 0x80
jge 0x57790f
mov esi, ebx
sub esi, eax
movzx ecx, byte [esi + eax]
add ecx, edx
and ecx, 0xff
movzx edx, byte [ecx + 0x5f0470]
mov byte [eax + ebx], dl
inc eax
cmp eax, 0x80
jl 0x5778f1
mov eax, dword [ebp + 0x14]
mov edx, 0xff
lea ecx, [eax + 7]
neg eax
sar ecx, 3
and eax, 7
sub edi, ecx
mov dword [ebp + 0x14], ecx
mov ecx, eax
lea esi, [edi + ebx]
movzx eax, byte [esi]
sar edx, cl
and edx, eax
movzx ecx, byte [edx + 0x5f0470]
mov byte [esi], cl
test edi, edi
je 0x577959
mov edx, dword [ebp + 0x14]
movzx eax, byte [esi + edx - 1]
lea esi, [esi - 1]
xor eax, ecx
movzx ecx, byte [eax + 0x5f0470]
mov byte [esi], cl
dec edi
jne 0x577943
lea esi, [ebx + 0xfc]
mov edi, 0x40
lea edx, [ebx + 0x7e]
jmp 0x577970
movzx ecx, byte [edx + 1]
lea esi, [esi - 4]
movzx eax, byte [edx]
lea edx, [edx - 2]
shl ecx, 8
or ecx, eax
and ecx, 0xffff
mov dword [esi + 4], ecx
dec edi
jne 0x577970
pop edi
pop esi
pop ebx
pop ebp
ret