joyce8/EMBER2024-capa huggingface dataset:
Function at 0x573000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x628960]
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 0x57305c
push str.orig_len___md_size
push 0xf8
push str.F:Gitcurllookaside_openssl_ssl_s3_cbc.c
call fcn.0052bf00
add esp, 0xc
cmp edi, 0x40
jbe 0x573078
push str.md_size___EVP_MAX_MD_SIZE
push 0xf9
push str.F:Gitcurllookaside_openssl_ssl_s3_cbc.c
call fcn.0052bf00
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 0x5730ab
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.004a2440
add esp, 0xc
mov dword [ebp - 0x94], 0
cmp ebx, dword [ebp + 0x14]
jae 0x5731cc
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 0x573132
mov esi, dword [ebp - 0x9c]
xor edx, edx
test edi, edi
je 0x573210
mov ebx, dword [ebp - 0xa0]
jmp 0x5731e0
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 0x5731e0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a0676
mov esp, ebp
pop ebp
ret
Function at 0x573db0
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 0x573df5
mov ecx, dword [ebp + 0x10]
mov edx, dword [esi + 4]
lea eax, [ebx + ecx]
cmp eax, edx
jbe 0x573de8
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 0x573dfa
cmp ebx, dword [esi + 4]
ja 0x573ddf
test dword [edi + 0x100], 0x200
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 4]
movzx ebx, byte [ecx + eax - 1]
je 0x573e4c
cmp dword [edi + 0x88], 0
jne 0x573e4c
mov eax, dword [edi + 0x58]
push 8
add eax, 8
push 0x5f41ec
push eax
call fcn.0052bb50
add esp, 0xc
test eax, eax
jne 0x573e3f
test bl, 1
jne 0x573e3f
mov eax, dword [edi + 0x58]
or dword [eax], 8
mov eax, dword [edi + 0x58]
test byte [eax], 8
je 0x573e4c
test ebx, ebx
je 0x573e4c
dec ebx
mov eax, dword [edi + 0x80]
push dword [eax]
call fcn.005663d0
add esp, 4
test eax, 0x200000
je 0x573e77
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 0x573efb
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 0x573ec0
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 0x573ec0
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 0x574320
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.0051fe30
add esp, 0xc
test eax, eax
je 0x5744f1
mov ebx, dword [ebp + 8]
lea esp, [esp]
mov eax, dword [ebp - 4]
shl eax, 0xa
test ebx, eax
je 0x57435b
inc edi
lea eax, [ebp - 8]
inc esi
push eax
lea eax, [ebp - 4]
push eax
push esi
call fcn.0051fe30
add esp, 0xc
test eax, eax
jne 0x574350
test edi, edi
je 0x5744f1
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.004a2440
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 4]
push eax
push 0
call fcn.0051fe30
add esp, 0x18
test eax, eax
je 0x5744e5
mov ebx, dword [ebp + 0x40]
mov eax, dword [ebp - 4]
shl eax, 0xa
test dword [ebp + 8], eax
je 0x5744b0
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x5744d4
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.00574520
add esp, 0x3c
test eax, eax
je 0x57450c
mov eax, dword [ebp - 0xc]
xor ecx, ecx
add dword [ebp + 0x34], eax
test edi, edi
jle 0x5744b0
cmp edi, 0x20
jb 0x574494
lea eax, [ebx - 1]
lea edx, [edi - 1]
add eax, edi
add edx, esi
cmp esi, eax
ja 0x574440
cmp edx, ebx
jae 0x574494
mov eax, edi
and eax, 0x8000001f
jns 0x57444e
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 0x574460
mov esi, dword [ebp + 0x3c]
cmp ecx, edi
jge 0x5744b0
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 0x5744a4
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.0051fe30
add esp, 0xc
test eax, eax
je 0x5744e5
mov esi, dword [ebp + 0x3c]
jmp 0x5743c1
push 0x114
push str.F:Gitcurllookaside_openssl_ssl_t1_enc.c
push 0x146
jmp 0x5744fd
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.005283a0
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x576200
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x628960]
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 0x576254
cmp edi, dword [esi]
je 0x57624b
test eax, eax
je 0x57640b
test ebx, ebx
js 0x57640b
mov ecx, 1
mov dword [esi], edi
jmp 0x57625e
mov edi, dword [esi]
test edi, edi
je 0x57640b
test eax, eax
je 0x576402
push edi
call fcn.005405b0
add esp, 4
mov dword [ebp - 0x90], eax
cmp eax, 0x80
jle 0x576296
push str.j____int_sizeof_ctx__key_
push 0x75
push str.F:Gitcurllookaside_opensslcryptohmachmac.c
call fcn.0052bf00
mov eax, dword [ebp - 0x90]
add esp, 0xc
cmp eax, ebx
jge 0x5762ee
push dword [ebp - 0x88]
lea eax, [esi + 4]
push edi
push eax
call fcn.0052fde0
add esp, 0xc
test eax, eax
je 0x57640b
push ebx
push dword [ebp - 0x8c]
lea ebx, [esi + 4]
push ebx
call fcn.0052ff90
add esp, 0xc
test eax, eax
je 0x57640b
lea eax, [esi + 0x4c]
push eax
lea eax, [esi + 0x50]
push eax
push ebx
call fcn.0052fd30
add esp, 0xc
test eax, eax
je 0x57640b
lea eax, [esi + 0x4c]
jmp 0x576312
cmp ebx, 0x80
ja 0x57640b
push ebx
push dword [ebp - 0x8c]
lea eax, [esi + 0x50]
push eax
call fcn.004abb00
lea eax, [esi + 0x4c]
add esp, 0xc
mov dword [eax], ebx
mov ecx, dword [eax]
cmp ecx, 0x80
je 0x576334
mov eax, 0x80
sub eax, ecx
push eax
lea eax, [esi + 0x50]
add eax, ecx
push 0
push eax
call fcn.004a2440
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 0x576340
push edx
lea ebx, [esi + 0x1c]
push edi
push ebx
call fcn.0052fde0
add esp, 0xc
test eax, eax
je 0x57640b
push edi
call fcn.005405b0
push eax
lea eax, [ebp - 0x84]
push eax
push ebx
call fcn.0052ff90
add esp, 0x10
test eax, eax
je 0x57640b
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 0x576390
push dword [ebp - 0x88]
lea ebx, [esi + 0x34]
push edi
push ebx
call fcn.0052fde0
add esp, 0xc
test eax, eax
je 0x57640b
push edi
call fcn.005405b0
push eax
lea eax, [ebp - 0x84]
push eax
push ebx
call fcn.0052ff90
add esp, 0x10
test eax, eax
je 0x57640b
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 4]
push eax
call fcn.00530060
add esp, 8
test eax, eax
je 0x57640b
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0676
mov esp, ebp
pop ebp
ret
test ecx, ecx
je 0x5763d8
jmp 0x57633a
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a0676
mov esp, ebp
pop ebp
ret
Function at 0x582660
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x628960]
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 0x5827e7
mov edi, dword [ebp + 8]
sub dword [ebp - 0x10], edi
dec eax
mov dword [ebp + 0x10], eax
test esi, esi
jne 0x58277e
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 0x582726
test ecx, ecx
je 0x5827d1
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.004a0676
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.004a0676
mov esp, ebp
pop ebp
ret
Function at 0x583240
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x628960]
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 0x5833cd
mov ecx, dword [ebp + 8]
sub dword [ebp - 0x18], ecx
xor edi, edi
dec eax
mov dword [ebp + 0x10], eax
test esi, esi
jne 0x583375
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 0x583315
test edi, edi
mov edi, dword [ebp - 0x30]
je 0x5833cd
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.004a0676
mov esp, ebp
pop ebp
ret
Function at 0x5846a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x628960]
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 0x584829
mov edi, dword [ebp + 8]
sub dword [ebp - 0x10], edi
dec eax
mov dword [ebp + 0x10], eax
test esi, esi
jne 0x5847bc
push dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
call fcn.00583c70
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 0x584766
test ecx, ecx
je 0x584813
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.004a0676
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.004a0676
mov esp, ebp
pop ebp
ret
Function at 0x584840
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 0x584867
mov ecx, 0x400
jmp 0x584871
mov edx, 0x400
cmp ecx, edx
cmovg ecx, edx
mov dword [ebp + 0x14], ecx
test eax, eax
jle 0x584891
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 0x584882
mov ebx, dword [ebp + 8]
movzx edx, byte [ebx + eax - 1]
cmp eax, 0x80
jge 0x5848bf
mov esi, ebx
sub esi, eax
movzx ecx, byte [esi + eax]
add ecx, edx
and ecx, 0xff
movzx edx, byte [ecx + 0x5fe570]
mov byte [eax + ebx], dl
inc eax
cmp eax, 0x80
jl 0x5848a1
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 + 0x5fe570]
mov byte [esi], cl
test edi, edi
je 0x584909
mov edx, dword [ebp + 0x14]
movzx eax, byte [esi + edx - 1]
lea esi, [esi - 1]
xor eax, ecx
movzx ecx, byte [eax + 0x5fe570]
mov byte [esi], cl
dec edi
jne 0x5848f3
lea esi, [ebx + 0xfc]
mov edi, 0x40
lea edx, [ebx + 0x7e]
jmp 0x584920
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 0x584920
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x5853a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x628960]
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 0x585525
mov edi, dword [ebp + 8]
sub dword [ebp - 0x10], edi
dec eax
mov dword [ebp + 0x10], eax
test esi, esi
jne 0x5854bc
push dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
call fcn.00585050
mov ebx, dword [ebp - 0x20]
add esp, 8
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 0x585466
test ecx, ecx
je 0x58550f
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.004a0676
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.004a0676
mov esp, ebp
pop ebp
ret