joyce8/EMBER2024-capa huggingface dataset:
Function at 0x512c80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x74
call fcn.005ae090
mov eax, dword [0x665ec0]
xor eax, esp
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0x78]
mov edx, 0x10
mov eax, dword [esp + 0x84]
push ebx
push ebp
mov ebp, dword [esp + 0x84]
push esi
mov esi, dword [ecx + 0x94]
mov dword [esp + 0x10], 0x10
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x98]
movups xmm0, xmmword [esi + 0x3c]
mov dword [esp + 0x18], ecx
mov ecx, 1
push edi
mov dword [esp + 0x18], eax
movups xmmword [esp + 0x20], xmm0
nop
movzx eax, byte [esi + edx + 0x3b]
dec edx
add ecx, eax
mov byte [esi + edx + 0x3c], cl
shr ecx, 8
test edx, edx
jne 0x512ce0
movups xmm0, xmmword [esi + 0x3c]
movups xmmword [esp + 0x30], xmm0
cmp dword [esi + 0x14], 0x10
jne 0x512d07
lea edi, [edx + 0x20]
jmp 0x512d32
mov edx, 0x10
mov ecx, 1
movzx eax, byte [esi + edx + 0x3b]
dec edx
add ecx, eax
mov byte [esi + edx + 0x3c], cl
shr ecx, 8
test edx, edx
jne 0x512d11
movups xmm0, xmmword [esi + 0x3c]
mov edi, 0x30
movups xmmword [esp + 0x40], xmm0
push edi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x5c]
push eax
push dword [esi]
call fcn.004599b0
add esp, 0x14
test eax, eax
je 0x512e49
cmp dword [esp + 0x14], edi
jne 0x512e49
push dword [esi + 0x14]
lea eax, [esp + 0x54]
push eax
lea ebx, [esi + 0x1c]
push ebx
call fcn.005af570
mov eax, dword [esi + 0x14]
add esp, 0xc
cmp dword [esi + 0x18], 0
movups xmm0, xmmword [esp + eax + 0x50]
movups xmmword [esi + 0x3c], xmm0
je 0x512ddf
mov edi, dword [esp + 0x90]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
test ebp, ebp
jne 0x512d9f
test ecx, ecx
jne 0x512d9f
test eax, eax
je 0x512dc2
push dword [esp + 0x98]
push eax
push dword [esp + 0xa8]
push ecx
push edi
push ebp
push esi
call fcn.00512a50
add esp, 0x1c
test eax, eax
je 0x512e49
test edi, edi
je 0x512e02
mov eax, dword [esp + 0x1c]
push dword [eax + 0x8c]
lea eax, [esi + 0x60]
push eax
push esi
call fcn.005129d0
add esp, 0xc
jmp 0x512e02
push dword [esp + 0x90]
push ebp
push esi
call fcn.005129d0
push dword [esp + 0xa4]
mov eax, dword [esp + 0x20]
push eax
push esi
call fcn.005129d0
add esp, 0x18
push 0xffffffffffffffff
push 0
push ebx
push 0
push 0
push dword [esi]
call fcn.00459980
add esp, 0x18
test eax, eax
je 0x512e49
push 0xffffffffffffffff
push 0
push ebx
push 0
push 0
push dword [esi + 4]
call fcn.00459980
add esp, 0x18
test eax, eax
je 0x512e49
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.005ae073
add esp, 0x74
ret
mov ecx, dword [esp + 0x80]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005ae073
add esp, 0x74
ret
Function at 0x516580
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
jne 0x51658d
xor eax, eax
pop ebx
ret
push edi
push dword [ebx + 4]
push 0
push dword [ebx + 8]
push dword [ebx]
call fcn.004cfe50
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x5165d4
call fcn.004648b0
push str.ecx_gen
push 0x258
push str.providersimplementationskeymgmtecx_kmgmt.c
call fcn.004649b0
push edi
push 0x80010
push 0x39
call fcn.00464ac0
add esp, 0x18
xor eax, eax
pop edi
pop ebx
ret
test byte [ebx + 0xc], 3
je 0x51661f
push esi
push edi
call fcn.004cfde0
mov esi, eax
add esp, 4
test esi, esi
jne 0x516622
call fcn.004648b0
push str.ecx_gen
push 0x261
push str.providersimplementationskeymgmtecx_kmgmt.c
call fcn.004649b0
push esi
push 0x80010
push 0x39
call fcn.00464ac0
add esp, 0x18
push edi
call fcn.004cfe00
add esp, 4
xor eax, eax
pop esi
pop edi
pop ebx
ret
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x51664f
mov ecx, dword [ebx + 0x14]
test ecx, ecx
je 0x51664f
mov edx, dword [ebx + 8]
cmp edx, 2
je 0x516613
cmp edx, 3
je 0x516613
push ecx
push eax
push esi
push edi
call fcn.005228d0
add esp, 0x10
test eax, eax
je 0x516613
jmp 0x516663
push 0
push dword [edi + 0x4c]
push esi
push dword [ebx]
call fcn.004652f0
add esp, 0x10
test eax, eax
jle 0x516613
mov eax, dword [ebx + 8]
cmp eax, 3
ja case.default.0x51666b
jmp dword [eax*4 + 0x5166ec]
mov al, byte [esi + 0x1f]
and byte [esi], 0xf8
and al, 0x3f
or al, 0x40
mov byte [esi + 0x1f], al
lea eax, [edi + 0xc]
push esi
push eax
call fcn.004d56c0
add esp, 8
mov eax, edi
or dword [edi + 8], 1
pop esi
pop edi
pop ebx
ret
and byte [esi], 0xfc
lea eax, [edi + 0xc]
or byte [esi + 0x37], 0x80
push esi
push eax
call fcn.004de7c0
add esp, 8
mov eax, edi
or dword [edi + 8], 1
pop esi
pop edi
pop ebx
ret
push dword [ebx + 4]
lea eax, [edi + 0xc]
push esi
push eax
push dword [ebx]
call fcn.004d4fb0
jmp 0x5166d4
push dword [ebx + 4]
lea eax, [edi + 0xc]
push esi
push eax
push dword [ebx]
call fcn.004dcbf0
add esp, 0x10
test eax, eax
je 0x516613
or dword [edi + 8], 1
mov eax, edi
pop esi
pop edi
pop ebx
ret
Function at 0x5228d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x54
call fcn.005ae090
mov eax, dword [0x665ec0]
xor eax, esp
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x58]
mov edx, str.X25519
mov eax, dword [esp + 0x5c]
push ebx
push ebp
push esi
mov dword [esp + 0x18], eax
xor ebx, ebx
mov eax, dword [esp + 0x6c]
push edi
mov dword [esp + 0x18], eax
xor edi, edi
cmp dword [ecx + 0x50], ebx
mov eax, str.X448
mov dword [esp + 0x14], ecx
cmove eax, edx
push eax
call fcn.00578db0
mov ebp, dword [esp + 0x78]
mov esi, eax
add esp, 4
cmp ebp, dword [esi + 0x1c]
jae 0x52295f
call fcn.004648b0
push str.ossl_ecx_dhkem_derive_private
push 0x15d
push str.providersimplementationskemecx_kem.c
call fcn.004649b0
push dword [esi + 0x1c]
push ebp
push str.ikm_length_is_:_zu__should_be_at_least__zu
push 0xe6
push 0x39
call fcn.00464ac0
add esp, 0x20
jmp 0x522a06
mov eax, dword [esp + 0x14]
push dword [eax + 4]
push dword [eax]
push dword [esi + 0xc]
push str.HKDF
call fcn.005791d0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x522991
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.005ae073
add esp, 0x54
ret
movzx eax, byte [esi + 1]
push ebp
push dword [esp + 0x1c]
mov byte [esp + 0x18], al
movzx eax, byte [esi]
push str.dkp_prk
push 2
mov byte [esp + 0x21], al
lea eax, [esp + 0x20]
push eax
push 0x636578
push 0
push 0
push dword [esi + 0x10]
lea eax, [esp + 0x44]
push eax
push edi
call fcn.00579010
add esp, 0x2c
test eax, eax
je 0x522a06
push 0
push 0
push 0x636660
push 2
lea eax, [esp + 0x20]
push eax
push 0x636578
push dword [esi + 0x10]
lea eax, [esp + 0x3c]
push eax
push dword [esi + 0x1c]
push dword [esp + 0x40]
push edi
call fcn.00578e30
add esp, 0x2c
mov ecx, 1
test eax, eax
cmovne ebx, ecx
lea eax, [esp + 0x20]
push 0x40
push eax
call fcn.00401320
push edi
call fcn.0055cbc0
mov ecx, dword [esp + 0x6c]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005ae073
add esp, 0x54
ret
Function at 0x52b1c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x30
call fcn.005ae090
mov eax, dword [0x665ec0]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push ebp
push esi
push edi
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x50]
movzx ecx, byte [edx]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x1c], eax
mov bl, byte [edx + 3]
mov esi, dword [eax]
movzx eax, byte [edx + 1]
shl eax, 8
or ecx, eax
mov ebp, dword [esp + 0x4c]
movzx eax, byte [edx + 2]
shl eax, 0x10
or ecx, eax
mov dword [esp + 0x20], edx
movzx eax, bl
shl eax, 0x18
or ecx, eax
mov byte [esp + 0x37], bl
movzx eax, byte [edx + 5]
shl eax, 8
movzx edi, byte [edx + 4]
mov dl, byte [edx + 7]
or edi, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], ecx
movzx ecx, dl
shl ecx, 8
movzx eax, byte [eax + 6]
or ecx, eax
mov dword [esp + 0x14], 0
mov eax, ecx
mov byte [esp + 0x3a], cl
shl eax, 0x10
or edi, eax
mov byte [esp + 0x3b], dl
mov eax, dword [esp + 0x10]
mov ebx, edi
mov dword [esp + 0x24], eax
mov byte [esp + 0x34], al
shr eax, 8
mov byte [esp + 0x35], al
mov eax, dword [esp + 0x10]
shr eax, 0x10
mov byte [esp + 0x36], al
mov eax, ebx
shr eax, 8
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], al
test ebp, ebp
je 0x52b36b
mov edi, dword [esp + 0x44]
sub dword [esp + 0x18], edi
dec ebp
test esi, esi
jne 0x52b310
push 1
push dword [esp + 0x34]
lea eax, [esp + 0x2c]
push eax
call fcn.0040dec0
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov ebx, dword [esp + 0x28]
mov eax, ecx
shr eax, 8
mov edx, dword [esp + 0x14]
mov byte [esp + 0x35], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x36], al
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x37], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x39], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x3a], al
mov eax, ebx
shr eax, 0x18
inc edx
mov dword [esp + 0x10], ecx
mov byte [esp + 0x34], cl
mov byte [esp + 0x38], bl
mov byte [esp + 0x3b], al
mov dword [esp + 0x14], edx
jmp 0x52b314
mov edx, dword [esp + 0x14]
mov al, byte [esp + esi + 0x34]
inc esi
mov ecx, dword [esp + 0x18]
and esi, 7
xor al, byte [edi]
mov byte [edi + ecx], al
inc edi
mov ecx, dword [esp + 0x10]
test ebp, ebp
jne 0x52b2a3
test edx, edx
je 0x52b36b
mov edx, dword [esp + 0x20]
mov eax, ecx
shr eax, 8
mov byte [edx + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [edx + 2], al
mov eax, ebx
shr eax, 8
mov byte [edx + 5], al
mov eax, ebx
mov byte [edx], cl
shr ecx, 0x18
shr eax, 0x10
mov byte [edx + 4], bl
shr ebx, 0x18
mov byte [edx + 3], cl
mov byte [edx + 6], al
mov byte [edx + 7], bl
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x3c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005ae073
add esp, 0x30
ret
Function at 0x52bea0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x38
call fcn.005ae090
mov eax, dword [0x665ec0]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x5c]
movzx ecx, byte [edx]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x1c], eax
mov bl, byte [edx + 3]
mov esi, dword [eax]
movzx eax, byte [edx + 1]
shl eax, 8
or ecx, eax
mov ebp, dword [esp + 0x54]
movzx eax, byte [edx + 2]
shl eax, 0x10
or ecx, eax
mov dword [esp + 0x20], edx
movzx eax, bl
shl eax, 0x18
or ecx, eax
mov byte [esp + 0x3f], bl
movzx eax, byte [edx + 5]
shl eax, 8
movzx edi, byte [edx + 4]
mov dl, byte [edx + 7]
or edi, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], ecx
movzx ecx, dl
shl ecx, 8
movzx eax, byte [eax + 6]
or ecx, eax
mov dword [esp + 0x14], 0
mov eax, ecx
mov byte [esp + 0x42], cl
shl eax, 0x10
or edi, eax
mov byte [esp + 0x43], dl
mov eax, dword [esp + 0x10]
mov ebx, edi
mov dword [esp + 0x24], eax
mov byte [esp + 0x3c], al
shr eax, 8
mov byte [esp + 0x3d], al
mov eax, dword [esp + 0x10]
shr eax, 0x10
mov byte [esp + 0x3e], al
mov eax, ebx
shr eax, 8
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
mov byte [esp + 0x40], bl
mov byte [esp + 0x41], al
test ebp, ebp
je 0x52c061
mov edi, dword [esp + 0x4c]
sub dword [esp + 0x18], edi
dec ebp
test esi, esi
jne 0x52c006
push dword [esp + 0x30]
lea eax, [esp + 0x28]
push dword [esp + 0x38]
push dword [esp + 0x40]
push eax
call fcn.0040e020
mov ecx, dword [esp + 0x34]
add esp, 0x10
mov ebx, dword [esp + 0x28]
mov eax, ecx
shr eax, 8
mov edx, dword [esp + 0x14]
mov byte [esp + 0x3d], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x3e], al
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x3f], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x41], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x42], al
mov eax, ebx
shr eax, 0x18
inc edx
mov dword [esp + 0x10], ecx
mov byte [esp + 0x3c], cl
mov byte [esp + 0x40], bl
mov byte [esp + 0x43], al
mov dword [esp + 0x14], edx
jmp 0x52c00a
mov edx, dword [esp + 0x14]
mov al, byte [esp + esi + 0x3c]
inc esi
mov ecx, dword [esp + 0x18]
and esi, 7
xor al, byte [edi]
mov byte [edi + ecx], al
inc edi
mov ecx, dword [esp + 0x10]
test ebp, ebp
jne 0x52bf93
test edx, edx
je 0x52c061
mov edx, dword [esp + 0x20]
mov eax, ecx
shr eax, 8
mov byte [edx + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [edx + 2], al
mov eax, ebx
shr eax, 8
mov byte [edx + 5], al
mov eax, ebx
mov byte [edx], cl
shr ecx, 0x18
shr eax, 0x10
mov byte [edx + 4], bl
shr ebx, 0x18
mov byte [edx + 3], cl
mov byte [edx + 6], al
mov byte [edx + 7], bl
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x44]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005ae073
add esp, 0x38
ret
Function at 0x52da80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x30
call fcn.005ae090
mov eax, dword [0x665ec0]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov eax, dword [esp + 0x40]
push ebp
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x4c]
push esi
push edi
mov edi, dword [esp + 0x50]
mov esi, dword [eax]
mov dword [esp + 0x18], edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], 0
test esi, esi
jns 0x52dae1
pop edi
pop esi
mov dword [eax], 0xffffffff
pop ebp
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.005ae073
add esp, 0x30
ret
movzx eax, byte [edi + 1]
push ebx
mov bh, byte [edi]
mov bl, byte [edi + 4]
movzx ecx, bh
shl ecx, 8
or ecx, eax
movzx edx, bl
movzx eax, byte [edi + 2]
shl eax, 8
mov dword [esp + 0x28], ecx
shl ecx, 0x10
or ecx, eax
shl edx, 8
movzx eax, byte [edi + 3]
or ecx, eax
mov byte [esp + 0x38], bl
movzx eax, byte [edi + 5]
or edx, eax
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x1c]
mov edi, edx
shl edi, 0x10
mov byte [esp + 0x39], dl
movzx ecx, byte [eax + 6]
movzx eax, byte [eax + 7]
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0x28]
or edi, ecx
mov ecx, dword [esp + 0x34]
mov byte [esp + 0x35], al
mov edx, edi
mov eax, ecx
mov dword [esp + 0x18], edi
shr eax, 8
mov byte [esp + 0x36], al
mov eax, edx
shr eax, 8
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edi
mov byte [esp + 0x34], bh
mov byte [esp + 0x37], cl
mov byte [esp + 0x3a], al
mov byte [esp + 0x3b], dl
test ebp, ebp
je 0x52dc3e
mov edi, dword [esp + 0x44]
sub dword [esp + 0x10], edi
dec ebp
test esi, esi
jne 0x52dbe1
push dword [esp + 0x2c]
lea eax, [esp + 0x24]
push eax
call fcn.0052d070
mov ecx, dword [esp + 0x28]
add esp, 8
mov edx, dword [esp + 0x24]
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x34], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x35], al
mov eax, ecx
shr eax, 8
mov byte [esp + 0x36], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x38], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x39], al
mov eax, edx
shr eax, 8
inc dword [esp + 0x14]
mov byte [esp + 0x37], cl
mov byte [esp + 0x3a], al
mov byte [esp + 0x3b], dl
mov al, byte [esp + esi + 0x34]
inc esi
mov ebx, dword [esp + 0x10]
and esi, 7
xor al, byte [edi]
mov byte [ebx + edi], al
inc edi
mov ebx, dword [esp + 0x14]
mov eax, esi
mov dword [esp + 0x18], eax
test ebp, ebp
jne 0x52db81
test ebx, ebx
je 0x52dc3e
mov ebx, dword [esp + 0x1c]
mov eax, ecx
shr eax, 0x18
mov byte [ebx], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 1], al
mov eax, ecx
shr eax, 8
mov byte [ebx + 2], al
mov eax, edx
shr eax, 0x18
mov byte [ebx + 4], al
mov eax, edx
shr eax, 0x10
mov byte [ebx + 5], al
mov eax, edx
shr eax, 8
mov byte [ebx + 3], cl
mov byte [ebx + 6], al
mov byte [ebx + 7], dl
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x3c]
pop ebx
pop edi
mov dword [eax], esi
pop esi
pop ebp
xor ecx, esp
call fcn.005ae073
add esp, 0x30
ret
Function at 0x52dc60
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, 0x400
push ebx
mov ebx, 0x80
mov edx, ebx
cmp dword [esp + 0xc], edx
push ebp
cmovle edx, dword [esp + 0x10]
mov ebp, ecx
test eax, eax
push esi
cmovg ebp, eax
push edi
mov edi, dword [esp + 0x14]
cmp ebp, ecx
cmovg ebp, ecx
mov dword [esp + 0x14], ebp
mov byte [edi], 0
test edx, edx
jle 0x52dcb4
mov ebp, dword [esp + 0x1c]
mov ecx, edi
sub ebp, edi
mov esi, edx
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub esi, 1
jne 0x52dca2
mov ebp, dword [esp + 0x14]
movzx esi, byte [edx + edi - 1]
cmp edx, ebx
jge 0x52dcdc
mov ecx, edi
nop
movzx eax, byte [ecx]
lea ecx, [ecx + 1]
add eax, esi
movzx eax, al
mov al, byte [eax + 0x639570]
mov byte [edi + edx], al
inc edx
movzx esi, al
cmp edx, ebx
jl 0x52dcc0
mov ecx, dword [esp + 0x14]
add ebp, 7
sar ebp, 3
neg ecx
sub ebx, ebp
and ecx, 7
movzx eax, byte [ebx + edi]
lea esi, [ebx + edi]
mov edx, 0xff
sar edx, cl
and edx, eax
mov al, byte [edx + 0x639570]
movzx ecx, al
mov byte [esi], al
test ebx, ebx
je 0x52dd2a
nop dword [eax]
movzx eax, byte [esi + ebp - 1]
lea esi, [esi - 1]
xor eax, ecx
mov al, byte [eax + 0x639570]
movzx ecx, al
mov byte [esi], al
sub ebx, 1
jne 0x52dd10
lea edx, [edi + 0xfc]
mov esi, 0x7f
nop word [eax + eax]
movzx eax, byte [edi + esi]
lea edx, [edx - 4]
movzx ecx, byte [edi + esi - 1]
shl eax, 8
or ecx, eax
sub esi, 2
mov dword [edx + 4], ecx
jns 0x52dd40
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x52e780
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x30
call fcn.005ae090
mov eax, dword [0x665ec0]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push ebp
push esi
push edi
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x50]
movzx ecx, byte [edx]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x1c], eax
mov bl, byte [edx + 3]
mov esi, dword [eax]
movzx eax, byte [edx + 1]
shl eax, 8
or ecx, eax
mov ebp, dword [esp + 0x4c]
movzx eax, byte [edx + 2]
shl eax, 0x10
or ecx, eax
mov dword [esp + 0x20], edx
movzx eax, bl
shl eax, 0x18
or ecx, eax
mov byte [esp + 0x37], bl
movzx eax, byte [edx + 5]
shl eax, 8
movzx edi, byte [edx + 4]
mov dl, byte [edx + 7]
or edi, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], ecx
movzx ecx, dl
shl ecx, 8
movzx eax, byte [eax + 6]
or ecx, eax
mov dword [esp + 0x14], 0
mov eax, ecx
mov byte [esp + 0x3a], cl
shl eax, 0x10
or edi, eax
mov byte [esp + 0x3b], dl
mov eax, dword [esp + 0x10]
mov ebx, edi
mov dword [esp + 0x24], eax
mov byte [esp + 0x34], al
shr eax, 8
mov byte [esp + 0x35], al
mov eax, dword [esp + 0x10]
shr eax, 0x10
mov byte [esp + 0x36], al
mov eax, ebx
shr eax, 8
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], al
test ebp, ebp
je 0x52e929
mov edi, dword [esp + 0x44]
sub dword [esp + 0x18], edi
dec ebp
test esi, esi
jne 0x52e8ce
push dword [esp + 0x30]
lea eax, [esp + 0x28]
push eax
call fcn.0052e440
mov ecx, dword [esp + 0x2c]
add esp, 8
mov ebx, dword [esp + 0x28]
mov eax, ecx
shr eax, 8
mov edx, dword [esp + 0x14]
mov byte [esp + 0x35], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x36], al
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x37], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x39], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x3a], al
mov eax, ebx
shr eax, 0x18
inc edx
mov dword [esp + 0x10], ecx
mov byte [esp + 0x34], cl
mov byte [esp + 0x38], bl
mov byte [esp + 0x3b], al
mov dword [esp + 0x14], edx
jmp 0x52e8d2
mov edx, dword [esp + 0x14]
mov al, byte [esp + esi + 0x34]
inc esi
mov ecx, dword [esp + 0x18]
and esi, 7
xor al, byte [edi]
mov byte [edi + ecx], al
inc edi
mov ecx, dword [esp + 0x10]
test ebp, ebp
jne 0x52e863
test edx, edx
je 0x52e929
mov edx, dword [esp + 0x20]
mov eax, ecx
shr eax, 8
mov byte [edx + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [edx + 2], al
mov eax, ebx
shr eax, 8
mov byte [edx + 5], al
mov eax, ebx
mov byte [edx], cl
shr ecx, 0x18
shr eax, 0x10
mov byte [edx + 4], bl
shr ebx, 0x18
mov byte [edx + 3], cl
mov byte [edx + 6], al
mov byte [edx + 7], bl
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x3c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005ae073
add esp, 0x30
ret
Function at 0x52e950
Capabilities:
Encode data using xor
Encrypt data using blowfish
Encrypt data using rc4 prga

Disassembly:
mov eax, 8
call fcn.005ae090
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
push 0x1048
push 0x639670
push edi
call fcn.005af570
mov ebx, dword [esp + 0x30]
mov esi, 0x48
add esp, 0xc
mov eax, ebx
cmp dword [esp + 0x20], esi
cmovle esi, dword [esp + 0x20]
add esi, ebx
xor ebp, ebp
nop dword [eax]
movzx edx, byte [eax]
inc eax
cmp eax, esi
cmovae eax, ebx
shl edx, 8
movzx ecx, byte [eax]
inc eax
or edx, ecx
cmp eax, esi
cmovae eax, ebx
shl edx, 8
movzx ecx, byte [eax]
inc eax
or edx, ecx
cmp eax, esi
cmovae eax, ebx
shl edx, 8
movzx ecx, byte [eax]
inc eax
or edx, ecx
cmp eax, esi
cmovae eax, ebx
xor dword [edi + ebp*4], edx
inc ebp
cmp ebp, 0x12
jl 0x52e990
mov dword [esp + 0x10], 0
xor esi, esi
mov dword [esp + 0x14], 0
nop
lea eax, [esp + 0x10]
push edi
push eax
call fcn.0040ee80
mov eax, dword [esp + 0x18]
add esp, 8
mov dword [edi + esi*4], eax
mov eax, dword [esp + 0x14]
mov dword [edi + esi*4 + 4], eax
add esi, 2
cmp esi, 0x12
jl 0x52e9e0
xor esi, esi
lea eax, [esp + 0x10]
push edi
push eax
call fcn.0040ee80
mov eax, dword [esp + 0x18]
add esp, 8
mov dword [edi + esi*4 + 0x48], eax
mov eax, dword [esp + 0x14]
mov dword [edi + esi*4 + 0x4c], eax
add esi, 2
cmp esi, 0x400
jl 0x52ea07
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x52ed00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x30
call fcn.005ae090
mov eax, dword [0x665ec0]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov eax, dword [esp + 0x40]
push ebx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x4c]
push ebp
push esi
push edi
mov edi, dword [esp + 0x54]
mov esi, dword [eax]
mov dword [esp + 0x18], eax
mov ebp, dword [esp + 0x4c]
mov bh, byte [edi]
movzx eax, byte [edi + 1]
mov bl, byte [edi + 4]
movzx ecx, bh
shl ecx, 8
or ecx, eax
mov dword [esp + 0x1c], edi
movzx eax, byte [edi + 2]
shl eax, 8
mov dword [esp + 0x28], ecx
shl ecx, 0x10
or ecx, eax
movzx edx, bl
movzx eax, byte [edi + 3]
or ecx, eax
shl edx, 8
movzx eax, byte [edi + 5]
or edx, eax
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x1c]
mov edi, edx
shl edi, 0x10
mov byte [esp + 0x39], dl
mov dword [esp + 0x14], 0
movzx ecx, byte [eax + 6]
movzx eax, byte [eax + 7]
shl ecx, 8
or ecx, eax
mov byte [esp + 0x38], bl
mov eax, dword [esp + 0x28]
or edi, ecx
mov ecx, dword [esp + 0x34]
mov edx, edi
mov byte [esp + 0x35], al
mov eax, ecx
shr eax, 8
mov byte [esp + 0x36], al
mov eax, edx
shr eax, 8
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edi
mov byte [esp + 0x34], bh
mov byte [esp + 0x37], cl
mov byte [esp + 0x3a], al
mov byte [esp + 0x3b], dl
test ebp, ebp
je 0x52ee9c
mov edi, dword [esp + 0x44]
sub dword [esp + 0x10], edi
dec ebp
test esi, esi
jne 0x52ee45
push dword [esp + 0x30]
lea eax, [esp + 0x24]
push eax
call fcn.0040ee80
mov ecx, dword [esp + 0x28]
add esp, 8
mov edx, dword [esp + 0x24]
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x34], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x35], al
mov eax, ecx
shr eax, 8
mov byte [esp + 0x36], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x38], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x39], al
mov eax, edx
shr eax, 8
inc dword [esp + 0x14]
mov byte [esp + 0x37], cl
mov byte [esp + 0x3a], al
mov byte [esp + 0x3b], dl
mov al, byte [esp + esi + 0x34]
inc esi
mov ebx, dword [esp + 0x10]
and esi, 7
xor al, byte [edi]
mov byte [ebx + edi], al
inc edi
mov ebx, dword [esp + 0x14]
test ebp, ebp
jne 0x52ede5
test ebx, ebx
je 0x52ee9c
mov ebx, dword [esp + 0x1c]
mov eax, ecx
shr eax, 0x18
mov byte [ebx], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 1], al
mov eax, ecx
shr eax, 8
mov byte [ebx + 2], al
mov eax, edx
shr eax, 0x18
mov byte [ebx + 4], al
mov eax, edx
shr eax, 0x10
mov byte [ebx + 5], al
mov eax, edx
shr eax, 8
mov byte [ebx + 3], cl
mov byte [ebx + 6], al
mov byte [ebx + 7], dl
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005ae073
add esp, 0x30
ret