joyce8/EMBER2024-capa huggingface dataset:
Function at 0x571dd0
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 0x571ebd
push edi
mov edi, dword [ebp + 0xc]
inc edi
lea ebx, [ebx]
movzx edx, byte [edi - 1]
cmp esi, 3
jl 0x571e4e
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 0x571e9f
shl edx, 0x10
cmp esi, 2
jne 0x571e5e
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 0x571e8b
lea ecx, [esi + 0x3c]
jmp 0x571e98
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 0x571df0
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 0x574060
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x629960]
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 0x5740bc
push str.orig_len___md_size
push 0xf8
push str.F:Gitcurllookaside_openssl_ssl_s3_cbc.c
call fcn.0052cf80
add esp, 0xc
cmp edi, 0x40
jbe 0x5740d8
push str.md_size___EVP_MAX_MD_SIZE
push 0xf9
push str.F:Gitcurllookaside_openssl_ssl_s3_cbc.c
call fcn.0052cf80
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 0x57410b
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.004a3440
add esp, 0xc
mov dword [ebp - 0x94], 0
cmp ebx, dword [ebp + 0x14]
jae 0x57422c
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 0x574192
mov esi, dword [ebp - 0x9c]
xor edx, edx
test edi, edi
je 0x574270
mov ebx, dword [ebp - 0xa0]
jmp 0x574240
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 0x574240
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a16e5
mov esp, ebp
pop ebp
ret
Function at 0x574e10
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 0x574e55
mov ecx, dword [ebp + 0x10]
mov edx, dword [esi + 4]
lea eax, [ebx + ecx]
cmp eax, edx
jbe 0x574e48
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 0x574e5a
cmp ebx, dword [esi + 4]
ja 0x574e3f
test dword [edi + 0x100], 0x200
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 4]
movzx ebx, byte [ecx + eax - 1]
je 0x574eac
cmp dword [edi + 0x88], 0
jne 0x574eac
mov eax, dword [edi + 0x58]
push 8
add eax, 8
push 0x5f51ec
push eax
call fcn.0052cbd0
add esp, 0xc
test eax, eax
jne 0x574e9f
test bl, 1
jne 0x574e9f
mov eax, dword [edi + 0x58]
or dword [eax], 8
mov eax, dword [edi + 0x58]
test byte [eax], 8
je 0x574eac
test ebx, ebx
je 0x574eac
dec ebx
mov eax, dword [edi + 0x80]
push dword [eax]
call fcn.0051dc10
add esp, 4
test eax, 0x200000
je 0x574ed7
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 0x574f5b
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 0x574f20
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 0x574f20
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 0x575380
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.00520ed0
add esp, 0xc
test eax, eax
je 0x575551
mov ebx, dword [ebp + 8]
lea esp, [esp]
mov eax, dword [ebp - 4]
shl eax, 0xa
test ebx, eax
je 0x5753bb
inc edi
lea eax, [ebp - 8]
inc esi
push eax
lea eax, [ebp - 4]
push eax
push esi
call fcn.00520ed0
add esp, 0xc
test eax, eax
jne 0x5753b0
test edi, edi
je 0x575551
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.004a3440
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 4]
push eax
push 0
call fcn.00520ed0
add esp, 0x18
test eax, eax
je 0x575545
mov ebx, dword [ebp + 0x40]
mov eax, dword [ebp - 4]
shl eax, 0xa
test dword [ebp + 8], eax
je 0x575510
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x575534
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.00575580
add esp, 0x3c
test eax, eax
je 0x57556c
mov eax, dword [ebp - 0xc]
xor ecx, ecx
add dword [ebp + 0x34], eax
test edi, edi
jle 0x575510
cmp edi, 0x20
jb 0x5754f4
lea eax, [ebx - 1]
lea edx, [edi - 1]
add eax, edi
add edx, esi
cmp esi, eax
ja 0x5754a0
cmp edx, ebx
jae 0x5754f4
mov eax, edi
and eax, 0x8000001f
jns 0x5754ae
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 0x5754c0
mov esi, dword [ebp + 0x3c]
cmp ecx, edi
jge 0x575510
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 0x575504
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.00520ed0
add esp, 0xc
test eax, eax
je 0x575545
mov esi, dword [ebp + 0x3c]
jmp 0x575421
push 0x114
push str.F:Gitcurllookaside_openssl_ssl_t1_enc.c
push 0x146
jmp 0x57555d
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.00529440
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x577260
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x629960]
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 0x5772b4
cmp edi, dword [esi]
je 0x5772ab
test eax, eax
je 0x57746b
test ebx, ebx
js 0x57746b
mov ecx, 1
mov dword [esi], edi
jmp 0x5772be
mov edi, dword [esi]
test edi, edi
je 0x57746b
test eax, eax
je 0x577462
push edi
call fcn.00541f80
add esp, 4
mov dword [ebp - 0x90], eax
cmp eax, 0x80
jle 0x5772f6
push str.j____int_sizeof_ctx__key_
push 0x75
push str.F:Gitcurllookaside_opensslcryptohmachmac.c
call fcn.0052cf80
mov eax, dword [ebp - 0x90]
add esp, 0xc
cmp eax, ebx
jge 0x57734e
push dword [ebp - 0x88]
lea eax, [esi + 4]
push edi
push eax
call fcn.00530e60
add esp, 0xc
test eax, eax
je 0x57746b
push ebx
push dword [ebp - 0x8c]
lea ebx, [esi + 4]
push ebx
call fcn.00531010
add esp, 0xc
test eax, eax
je 0x57746b
lea eax, [esi + 0x4c]
push eax
lea eax, [esi + 0x50]
push eax
push ebx
call fcn.00530db0
add esp, 0xc
test eax, eax
je 0x57746b
lea eax, [esi + 0x4c]
jmp 0x577372
cmp ebx, 0x80
ja 0x57746b
push ebx
push dword [ebp - 0x8c]
lea eax, [esi + 0x50]
push eax
call fcn.004aca30
lea eax, [esi + 0x4c]
add esp, 0xc
mov dword [eax], ebx
mov ecx, dword [eax]
cmp ecx, 0x80
je 0x577394
mov eax, 0x80
sub eax, ecx
push eax
lea eax, [esi + 0x50]
add eax, ecx
push 0
push eax
call fcn.004a3440
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 0x5773a0
push edx
lea ebx, [esi + 0x1c]
push edi
push ebx
call fcn.00530e60
add esp, 0xc
test eax, eax
je 0x57746b
push edi
call fcn.00541f80
push eax
lea eax, [ebp - 0x84]
push eax
push ebx
call fcn.00531010
add esp, 0x10
test eax, eax
je 0x57746b
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 0x5773f0
push dword [ebp - 0x88]
lea ebx, [esi + 0x34]
push edi
push ebx
call fcn.00530e60
add esp, 0xc
test eax, eax
je 0x57746b
push edi
call fcn.00541f80
push eax
lea eax, [ebp - 0x84]
push eax
push ebx
call fcn.00531010
add esp, 0x10
test eax, eax
je 0x57746b
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 4]
push eax
call fcn.005310e0
add esp, 8
test eax, eax
je 0x57746b
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a16e5
mov esp, ebp
pop ebp
ret
test ecx, ecx
je 0x577438
jmp 0x57739a
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a16e5
mov esp, ebp
pop ebp
ret
Function at 0x5836d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x629960]
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 0x583857
mov edi, dword [ebp + 8]
sub dword [ebp - 0x10], edi
dec eax
mov dword [ebp + 0x10], eax
test esi, esi
jne 0x5837ee
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 0x583796
test ecx, ecx
je 0x583841
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.004a16e5
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.004a16e5
mov esp, ebp
pop ebp
ret
Function at 0x5842b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x629960]
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 0x58443d
mov ecx, dword [ebp + 8]
sub dword [ebp - 0x18], ecx
xor edi, edi
dec eax
mov dword [ebp + 0x10], eax
test esi, esi
jne 0x5843e5
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 0x584385
test edi, edi
mov edi, dword [ebp - 0x30]
je 0x58443d
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.004a16e5
mov esp, ebp
pop ebp
ret
Function at 0x585710
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x629960]
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 0x585899
mov edi, dword [ebp + 8]
sub dword [ebp - 0x10], edi
dec eax
mov dword [ebp + 0x10], eax
test esi, esi
jne 0x58582c
push dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
call fcn.00584ce0
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 0x5857d6
test ecx, ecx
je 0x585883
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.004a16e5
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.004a16e5
mov esp, ebp
pop ebp
ret
Function at 0x5858b0
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 0x5858d7
mov ecx, 0x400
jmp 0x5858e1
mov edx, 0x400
cmp ecx, edx
cmovg ecx, edx
mov dword [ebp + 0x14], ecx
test eax, eax
jle 0x585901
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 0x5858f2
mov ebx, dword [ebp + 8]
movzx edx, byte [ebx + eax - 1]
cmp eax, 0x80
jge 0x58592f
mov esi, ebx
sub esi, eax
movzx ecx, byte [esi + eax]
add ecx, edx
and ecx, 0xff
movzx edx, byte [ecx + 0x5ff570]
mov byte [eax + ebx], dl
inc eax
cmp eax, 0x80
jl 0x585911
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 + 0x5ff570]
mov byte [esi], cl
test edi, edi
je 0x585979
mov edx, dword [ebp + 0x14]
movzx eax, byte [esi + edx - 1]
lea esi, [esi - 1]
xor eax, ecx
movzx ecx, byte [eax + 0x5ff570]
mov byte [esi], cl
dec edi
jne 0x585963
lea esi, [ebx + 0xfc]
mov edi, 0x40
lea edx, [ebx + 0x7e]
jmp 0x585990
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 0x585990
pop edi
pop esi
pop ebx
pop ebp
ret