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

Disassembly:
mov eax, 0x2c
call fcn.004a72f0
mov eax, dword [0x595978]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push ebx
mov dword [esp + 0x18], eax
push ebp
mov dword [esp + 0xc], edx
push esi
push edi
mov edi, dword [esp + 0x50]
movzx edx, byte [edi + 1]
movzx ebx, byte [edi + 5]
lea eax, [edi + 1]
mov dword [esp + 0x28], ecx
movzx ecx, byte [edi]
shl edx, 0x10
shl ecx, 0x18
or ecx, edx
movzx edx, byte [eax + 1]
shl edx, 8
or ecx, edx
movzx edx, byte [eax + 2]
or ecx, edx
movzx edx, byte [eax + 3]
mov dword [esp + 0x2c], eax
shl ebx, 0x10
shl edx, 0x18
or edx, ebx
movzx ebx, byte [eax + 5]
movzx eax, byte [eax + 6]
mov ebp, dword [esp + 0x54]
shl ebx, 8
or ebx, eax
mov esi, dword [ebp]
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x30], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x31], al
or edx, ebx
mov eax, ecx
shr eax, 8
mov byte [esp + 0x32], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x34], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x35], al
mov eax, edx
shr eax, 8
cmp dword [esp + 0x48], 0
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov byte [esp + 0x33], cl
mov byte [esp + 0x36], al
mov byte [esp + 0x37], dl
je 0x505242
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x40]
sub ebx, ebp
dec dword [esp + 0x14]
test esi, esi
jne 0x5051bb
mov ecx, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.005043a0
mov ecx, dword [esp + 0x24]
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x38], al
mov edx, ecx
shr edx, 0x10
mov eax, ecx
shr eax, 8
mov byte [esp + 0x3a], al
mov byte [esp + 0x39], dl
mov edx, dword [esp + 0x28]
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x3c], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x3d], al
mov eax, edx
shr eax, 8
add esp, 8
inc dword [esp + 0x10]
mov byte [esp + 0x33], cl
mov byte [esp + 0x36], al
mov byte [esp + 0x37], dl
mov al, byte [esp + esi + 0x30]
xor al, byte [ebp]
inc esi
mov byte [ebx + ebp], al
inc ebp
and esi, 7
cmp dword [esp + 0x14], 0
jne 0x505157
cmp dword [esp + 0x10], 0
je 0x505229
mov eax, ecx
mov ebx, ecx
shr eax, 0x18
mov byte [edi], al
mov eax, dword [esp + 0x2c]
shr ebx, 0x10
mov byte [eax], bl
mov ebx, ecx
shr ebx, 8
mov byte [eax + 1], bl
mov byte [eax + 2], cl
mov ecx, edx
shr ecx, 0x18
mov byte [eax + 3], cl
mov ecx, edx
shr ecx, 0x10
mov byte [eax + 4], cl
mov ecx, edx
shr ecx, 8
mov byte [eax + 5], cl
mov byte [eax + 6], dl
mov edx, dword [esp + 0x18]
pop edi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0049cc86
add esp, 0x2c
ret
mov eax, dword [esp + 0x18]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0049cc86
add esp, 0x2c
ret
mov ecx, dword [esp + 0x38]
pop edi
mov dword [ebp], esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049cc86
add esp, 0x2c
ret
Function at 0x505460
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x14]
movzx ecx, byte [eax]
mov edx, dword [esp + 0x18]
shl ecx, 8
mov dword [edx], ecx
movzx ecx, byte [eax + 1]
or dword [edx], ecx
movzx ecx, byte [eax + 2]
shl ecx, 8
mov dword [edx + 4], ecx
movzx ecx, byte [eax + 3]
or dword [edx + 4], ecx
movzx esi, byte [eax + 4]
shl esi, 8
mov dword [edx + 8], esi
movzx esi, byte [eax + 5]
or dword [edx + 8], esi
movzx esi, byte [eax + 6]
lea ecx, [edx + 8]
shl esi, 8
mov dword [edx + 0xc], esi
movzx esi, byte [eax + 7]
or dword [edx + 0xc], esi
movzx esi, byte [eax + 8]
shl esi, 8
mov dword [edx + 0x10], esi
movzx esi, byte [eax + 9]
or dword [edx + 0x10], esi
movzx esi, byte [eax + 0xa]
shl esi, 8
mov dword [edx + 0x14], esi
movzx esi, byte [eax + 0xb]
or dword [edx + 0x14], esi
movzx esi, byte [eax + 0xc]
shl esi, 8
mov dword [edx + 0x18], esi
movzx esi, byte [eax + 0xd]
or dword [edx + 0x18], esi
movzx esi, byte [eax + 0xe]
shl esi, 8
mov dword [edx + 0x1c], esi
movzx eax, byte [eax + 0xf]
or eax, esi
mov dword [edx + 0x1c], eax
lea eax, [edx + 0x20]
xor ebx, ebx
jmp 0x505500
mov esi, dword [ecx]
mov edi, dword [ecx - 4]
mov edx, esi
shr edx, 7
mov ebp, edi
shl ebp, 9
or edx, ebp
and edx, 0xffff
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov ebp, edx
shr ebp, 7
shl esi, 9
or ebp, esi
and ebp, 0xffff
mov dword [eax + 4], ebp
mov esi, dword [ecx + 8]
shl edx, 9
mov ebp, esi
shr ebp, 7
or edx, ebp
and edx, 0xffff
mov dword [eax + 8], edx
mov edx, dword [ecx + 0xc]
mov ebp, edx
shr ebp, 7
shl esi, 9
or ebp, esi
and ebp, 0xffff
mov dword [eax + 0xc], ebp
mov esi, dword [ecx + 0x10]
mov ebp, esi
shr ebp, 7
shl edx, 9
or edx, ebp
and edx, 0xffff
mov dword [eax + 0x10], edx
mov edx, dword [ecx + 0x14]
mov ebp, edx
shr ebp, 7
shl esi, 9
or ebp, esi
and ebp, 0xffff
mov dword [eax + 0x14], ebp
mov esi, dword [ecx - 8]
cmp ebx, 5
jge 0x5055c3
mov ebp, esi
shl edx, 9
shr ebp, 7
shl esi, 9
shr edi, 7
or edx, ebp
or esi, edi
and edx, 0xffff
and esi, 0xffff
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], esi
inc ebx
add eax, 0x20
add ecx, 0x20
cmp ebx, 6
jl 0x505500
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x505bd0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, 8
call fcn.004a72f0
mov eax, dword [esp + 0xc]
movzx edx, byte [eax + 1]
movzx ecx, byte [eax]
shl edx, 8
or ecx, edx
movzx edx, byte [eax + 2]
shl edx, 0x10
or ecx, edx
movzx edx, byte [eax + 3]
shl edx, 0x18
or ecx, edx
movzx edx, byte [eax + 4]
mov dword [esp], ecx
movzx ecx, byte [eax + 7]
push esi
movzx esi, byte [eax + 5]
movzx eax, byte [eax + 6]
shl ecx, 8
shl esi, 8
or ecx, eax
or edx, esi
shl ecx, 0x10
or ecx, edx
cmp dword [esp + 0x24], 0
mov dword [esp + 8], ecx
pop esi
je 0x505c46
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.00506850
jmp 0x505c5f
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
lea edx, [esp + 0xc]
push edx
call fcn.00506970
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov byte [eax], cl
mov edx, ecx
shr edx, 8
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 0x10
mov byte [eax + 2], dl
shr ecx, 0x18
mov byte [eax + 3], cl
mov ecx, dword [esp + 0x14]
mov edx, ecx
shr edx, 8
mov byte [eax + 4], cl
mov byte [eax + 5], dl
mov edx, ecx
shr edx, 0x10
add esp, 0x10
shr ecx, 0x18
mov byte [eax + 6], dl
mov byte [eax + 7], cl
add esp, 8
ret
Function at 0x508460
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x2c
call fcn.004a72f0
mov eax, dword [0x595978]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
push ebx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x48]
push ebp
mov dword [esp + 0xc], eax
push esi
mov esi, dword [eax]
push edi
mov edi, dword [esp + 0x50]
movzx edx, byte [edi + 1]
movzx ebx, byte [edi + 5]
lea eax, [edi + 1]
mov dword [esp + 0x28], ecx
movzx ecx, byte [edi]
shl edx, 8
or ecx, edx
movzx edx, byte [eax + 1]
shl edx, 0x10
or ecx, edx
movzx edx, byte [eax + 2]
mov ebp, dword [esp + 0x48]
shl edx, 0x18
or ecx, edx
movzx edx, byte [eax + 3]
shl ebx, 8
or edx, ebx
movzx ebx, byte [eax + 6]
mov dword [esp + 0x2c], eax
movzx eax, byte [eax + 5]
shl ebx, 8
or ebx, eax
mov eax, ecx
shr eax, 8
shl ebx, 0x10
or edx, ebx
mov byte [esp + 0x31], al
mov eax, ecx
mov ebx, ecx
mov byte [esp + 0x30], cl
shr eax, 0x10
shr ecx, 0x18
mov byte [esp + 0x32], al
mov byte [esp + 0x33], cl
mov ecx, edx
mov eax, edx
mov dword [esp + 0x24], edx
mov byte [esp + 0x34], dl
shr ecx, 8
shr eax, 0x10
shr edx, 0x18
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], ebx
mov byte [esp + 0x35], cl
mov byte [esp + 0x36], al
mov byte [esp + 0x37], dl
test ebp, ebp
je 0x508634
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x40]
sub eax, ebp
mov dword [esp + 0x10], eax
dec dword [esp + 0x18]
test esi, esi
jne 0x5085ad
mov ecx, dword [esp + 0x28]
push 1
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00505ec0
mov ebx, dword [esp + 0x2c]
mov eax, ebx
shr eax, 8
mov byte [esp + 0x3d], al
mov eax, dword [esp + 0x30]
mov ecx, ebx
shr ecx, 0x10
mov edx, ebx
shr edx, 0x18
mov byte [esp + 0x3e], cl
mov byte [esp + 0x3f], dl
mov ecx, eax
mov edx, eax
mov byte [esp + 0x40], al
shr eax, 0x18
shr ecx, 8
shr edx, 0x10
add esp, 0xc
inc dword [esp + 0x1c]
mov byte [esp + 0x37], al
mov eax, dword [esp + 0x10]
mov byte [esp + 0x30], bl
mov byte [esp + 0x35], cl
mov byte [esp + 0x36], dl
mov cl, byte [esp + esi + 0x30]
xor cl, byte [ebp]
inc esi
mov byte [eax + ebp], cl
inc ebp
and esi, 7
cmp dword [esp + 0x18], 0
jne 0x508545
cmp dword [esp + 0x1c], 0
je 0x50861b
mov eax, dword [esp + 0x2c]
mov byte [edi], bl
mov edx, ebx
shr edx, 8
mov byte [eax], dl
mov ecx, ebx
shr ecx, 0x10
mov byte [eax + 1], cl
mov ecx, dword [esp + 0x24]
shr ebx, 0x18
mov byte [eax + 2], bl
mov byte [eax + 3], cl
mov edx, ecx
shr edx, 8
mov byte [eax + 4], dl
mov edx, ecx
shr edx, 0x10
mov byte [eax + 5], dl
shr ecx, 0x18
mov byte [eax + 6], cl
mov eax, dword [esp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0049cc86
add esp, 0x2c
ret
mov ecx, dword [esp + 0x14]
pop edi
mov dword [ecx], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0049cc86
add esp, 0x2c
ret
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
pop edi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049cc86
add esp, 0x2c
ret
Function at 0x50d5c0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.004a72f0
mov eax, dword [0x595978]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x94]
push ebx
mov ebx, dword [esp + 0xa0]
push ebp
push esi
mov esi, dword [esp + 0x9c]
mov dword [esp + 0xc], eax
xor eax, eax
push edi
mov dword [esp + 0x14], ecx
test ebx, ebx
je 0x50d60f
mov eax, 1
mov dword [esi], ebx
jmp 0x50d611
mov ebx, dword [esi]
test ecx, ecx
je 0x50d6d8
push ebx
call fcn.004db910
mov edi, eax
add esp, 4
cmp edi, 0x80
jle 0x50d640
push str.j____int_sizeof_ctx__key_
push 0x54
push str..cryptohmachmac.c
call fcn.004c7730
add esp, 0xc
mov ebp, dword [esp + 0xa8]
cmp edi, ebp
jge 0x50d679
mov ecx, dword [esp + 0x10]
push ecx
lea edi, [esi + 4]
push ebx
push edi
call fcn.004db470
mov edx, dword [esp + 0x20]
push ebp
push edx
push edi
call fcn.004db520
lea ebp, [esi + 0x34]
push ebp
lea eax, [esi + 0x38]
push eax
push edi
call fcn.004db530
add esp, 0x24
jmp 0x50d6b4
cmp ebp, 0x80
jbe 0x50d695
push str.len_0__len__int_sizeof_ctx__key_
push 0x5e
push str..cryptohmachmac.c
call fcn.004c7730
add esp, 0xc
mov ecx, dword [esp + 0x14]
push ebp
push ecx
lea edx, [esi + 0x38]
push edx
call fcn.004a5720
mov eax, dword [esp + 0xb4]
lea ebp, [esi + 0x34]
add esp, 0xc
mov dword [ebp], eax
mov ebp, dword [ebp]
cmp ebp, 0x80
je 0x50d6dc
mov ecx, 0x80
sub ecx, ebp
push ecx
lea edx, [esi + ebp + 0x38]
push 0
push edx
call fcn.004a6110
add esp, 0xc
jmp 0x50d6dc
test eax, eax
je 0x50d753
xor eax, eax
mov edi, edi
mov cl, byte [esi + eax + 0x38]
xor cl, 0x36
mov byte [esp + eax + 0x18], cl
inc eax
cmp eax, 0x80
jl 0x50d6e0
mov ebp, dword [esp + 0x10]
push ebp
lea edi, [esi + 0x14]
push ebx
push edi
call fcn.004db470
push ebx
call fcn.004db910
push eax
lea edx, [esp + 0x2c]
push edx
push edi
call fcn.004db520
add esp, 0x1c
xor eax, eax
lea esp, [esp]
mov cl, byte [esi + eax + 0x38]
xor cl, 0x5c
mov byte [esp + eax + 0x18], cl
inc eax
cmp eax, 0x80
jl 0x50d720
push ebp
lea edi, [esi + 0x24]
push ebx
push edi
call fcn.004db470
push ebx
call fcn.004db910
push eax
lea edx, [esp + 0x2c]
push edx
push edi
call fcn.004db520
add esp, 0x1c
lea eax, [esi + 0x14]
push eax
add esi, 4
push esi
call fcn.004db650
mov ecx, dword [esp + 0xa0]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049cc86
add esp, 0x8c
ret
Function at 0x50dac0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xd0
call fcn.004a72f0
mov eax, dword [0x595978]
xor eax, esp
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0xd4]
mov edx, dword [ecx + 0x50]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], eax
lea eax, [ecx + 0x54]
lea ebp, [esp + 0x5c]
lea edi, [esp + 0x9c]
lea esi, [ecx + 0x14]
xor ebx, ebx
sub ebp, eax
sub edi, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edx
sub esi, eax
jmp 0x50db10
mov edx, dword [eax]
mov ecx, dword [esp + 0x14]
movzx ecx, byte [ecx + ebx]
mov dword [eax + ebp - 0x40], edx
xor edx, ecx
mov dword [eax + ebp], ecx
xor ecx, dword [esp + 0x10]
mov dword [edi + eax], edx
mov edx, dword [ecx*4 + str._.C]
xor dword [esi + eax], edx
mov ecx, dword [esi + eax]
inc ebx
add eax, 4
mov dword [esp + 0x10], ecx
cmp ebx, 0x10
jl 0x50db10
xor ecx, ecx
xor edx, edx
jmp 0x50db50
xor eax, eax
mov ecx, dword [ecx*4 + str._.C]
xor ecx, dword [esp + eax*4 + 0x1c]
add eax, 8
mov dword [esp + eax*4 - 4], ecx
mov ecx, dword [ecx*4 + str._.C]
xor ecx, dword [esp + eax*4]
mov dword [esp + eax*4], ecx
mov ecx, dword [ecx*4 + str._.C]
xor ecx, dword [esp + eax*4 + 4]
mov dword [esp + eax*4 + 4], ecx
mov ecx, dword [ecx*4 + str._.C]
xor ecx, dword [esp + eax*4 + 8]
mov dword [esp + eax*4 + 8], ecx
mov ecx, dword [ecx*4 + str._.C]
xor ecx, dword [esp + eax*4 + 0xc]
mov dword [esp + eax*4 + 0xc], ecx
mov ecx, dword [ecx*4 + str._.C]
xor ecx, dword [esp + eax*4 + 0x10]
mov dword [esp + eax*4 + 0x10], ecx
mov ecx, dword [ecx*4 + str._.C]
xor ecx, dword [esp + eax*4 + 0x14]
mov dword [esp + eax*4 + 0x14], ecx
mov ecx, dword [ecx*4 + str._.C]
xor dword [esp + eax*4 + 0x18], ecx
mov ecx, dword [esp + eax*4 + 0x18]
cmp eax, 0x30
jl 0x50db52
add ecx, edx
inc edx
and ecx, 0xff
cmp edx, 0x12
jl 0x50db50
mov edi, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push 0xc0
mov ecx, 0x10
lea esi, [esp + 0x20]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.004d97e0
mov ecx, dword [esp + 0xe4]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049cc86
add esp, 0xd0
ret
Function at 0x50dc20
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xd8
call fcn.004a72f0
mov eax, dword [0x595978]
xor eax, esp
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0xdc]
push ebp
mov ebp, dword [esp + 0xe4]
mov dword [esp + 0x14], eax
mov eax, dword [ebp]
push esi
mov ecx, 0x10
lea esi, [ebp + 0x54]
sub ecx, eax
push edi
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], esi
cmp eax, 0x10
jge 0x50dc7d
mov edi, 0x10
sub edi, eax
push edi
lea edx, [eax + ebp + 4]
push ecx
push edx
call fcn.004a6110
add esp, 0xc
mov ecx, dword [ebp + 0x50]
push ebx
mov dword [esp + 0x18], ecx
lea ebx, [esp + 0x64]
lea ecx, [esp + 0xa4]
sub ecx, esi
mov eax, esi
sub ebx, esi
lea esi, [ebp + 0x14]
xor edi, edi
mov dword [esp + 0x1c], ecx
sub esi, eax
jmp 0x50dca7
mov ebp, dword [esp + 0x10]
movzx ecx, byte [edi + ebp + 4]
mov edx, dword [eax]
mov ebp, dword [esp + 0x1c]
mov dword [ebx + eax - 0x40], edx
xor edx, ecx
mov dword [ebx + eax], ecx
xor ecx, dword [esp + 0x18]
mov dword [eax + ebp], edx
mov edx, dword [ecx*4 + str._.C]
xor dword [esi + eax], edx
mov ecx, dword [esi + eax]
inc edi
add eax, 4
mov dword [esp + 0x18], ecx
cmp edi, 0x10
jl 0x50dca3
xor ecx, ecx
xor edx, edx
pop ebx
xor eax, eax
jmp 0x50dcf0
mov ecx, dword [ecx*4 + str._.C]
xor ecx, dword [esp + eax*4 + 0x20]
add eax, 8
mov dword [esp + eax*4], ecx
mov ecx, dword [ecx*4 + str._.C]
xor ecx, dword [esp + eax*4 + 4]
mov dword [esp + eax*4 + 4], ecx
mov ecx, dword [ecx*4 + str._.C]
xor ecx, dword [esp + eax*4 + 8]
mov dword [esp + eax*4 + 8], ecx
mov ecx, dword [ecx*4 + str._.C]
xor ecx, dword [esp + eax*4 + 0xc]
mov dword [esp + eax*4 + 0xc], ecx
mov ecx, dword [ecx*4 + str._.C]
xor ecx, dword [esp + eax*4 + 0x10]
mov dword [esp + eax*4 + 0x10], ecx
mov ecx, dword [ecx*4 + str._.C]
xor ecx, dword [esp + eax*4 + 0x14]
mov dword [esp + eax*4 + 0x14], ecx
mov ecx, dword [ecx*4 + str._.C]
xor ecx, dword [esp + eax*4 + 0x18]
mov dword [esp + eax*4 + 0x18], ecx
mov ecx, dword [ecx*4 + str._.C]
xor dword [esp + eax*4 + 0x1c], ecx
mov ecx, dword [esp + eax*4 + 0x1c]
cmp eax, 0x30
jl 0x50dcf0
add ecx, edx
inc edx
and ecx, 0xff
cmp edx, 0x12
jl 0x50dce1
mov ebp, dword [esp + 0x10]
lea edx, [esp + 0x20]
push 0xc0
mov ecx, 0x10
lea esi, [esp + 0x24]
mov edi, ebp
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.004d97e0
mov ecx, dword [esp + 0x14]
add esp, 8
xor eax, eax
lea ebx, [ebx]
mov dl, byte [ecx + eax*4 + 0x14]
lea esi, [ecx + 4]
mov byte [eax + esi], dl
inc eax
cmp eax, 0x10
jl 0x50ddb0
push esi
call fcn.0050dac0
mov ecx, dword [esp + 0x20]
add esp, 4
xor eax, eax
nop
mov dl, byte [ebp + eax*4]
mov byte [ecx + eax], dl
inc eax
cmp eax, 0x10
jl 0x50ddd0
mov ecx, dword [esp + 0xe0]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.0049cc86
add esp, 0xd8
ret
Function at 0x51baf0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.004a72f0
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
mov edi, edx
mov eax, ecx
cdq
sub eax, edx
mov esi, eax
and ecx, 1
sar esi, 1
lea eax, [esi + edi]
add esi, ecx
mov ecx, dword [esp + 0x20]
push ebx
push ecx
mov ecx, dword [esp + 0x1c]
push esi
push edi
mov edi, dword [esp + 0x2c]
mov edx, ebp
mov dword [esp + 0x1c], eax
call fcn.0051b890
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
push ebx
push edx
push esi
mov esi, dword [esp + 0x44]
push eax
mov edx, esi
call fcn.0051b890
add esp, 0x20
test ebx, ebx
jle 0x51bb69
mov ecx, esi
mov eax, ebp
sub ecx, ebp
mov esi, ebx
lea esp, [esp]
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec esi
jne 0x51bb60
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x51e6a0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
cmp dword [ecx], 0xfeff
mov edx, dword [esp + 0x10]
sete al
mov byte [esp + 4], al
movsx eax, al
neg eax
sbb eax, eax
and eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
lea edx, [eax + edx + 1]
mov eax, dword [esi + 4]
mov dword [esp + 0x14], edx
cmp edx, eax
jbe 0x51e6d8
xor eax, eax
pop esi
ret
test dword [ecx + 0xf4], 0x200
mov edx, dword [esi + 0xc]
movzx edx, byte [edx + eax - 1]
push ebx
push ebp
push edi
je 0x51e73a
cmp dword [ecx + 0x84], 0
jne 0x51e73a
mov ebp, dword [ecx + 0x58]
mov eax, 0x56fcc8
add ebp, 8
mov edi, 8
sub ebp, eax
lea ebx, [ebx]
mov ebx, dword [eax + ebp]
cmp ebx, dword [eax]
jne 0x51e72d
sub edi, 4
add eax, 4
cmp edi, 4
jae 0x51e710
test dl, 1
jne 0x51e72d
mov eax, dword [ecx + 0x58]
or dword [eax], 8
mov eax, dword [ecx + 0x58]
test byte [eax], 8
je 0x51e73a
test edx, edx
je 0x51e73a
dec edx
mov eax, dword [esi + 4]
mov ecx, dword [esi + 4]
sub eax, edx
sub eax, dword [esp + 0x20]
mov edi, 0xff
not eax
dec ecx
sar eax, 0x1f
mov dword [esp + 0x20], edi
cmp ecx, edi
jae 0x51e75f
mov edi, ecx
mov dword [esp + 0x20], ecx
xor ecx, ecx
test edi, edi
je 0x51e796
mov edi, edx
mov ebp, dword [esi + 0xc]
mov ebx, dword [esi + 4]
sub ebp, ecx
movzx ebx, byte [ebx + ebp - 1]
xor ebx, edx
mov dword [esp + 0x18], edx
mov edx, edi
not edx
sar edx, 0x1f
movzx ebp, dl
mov edx, dword [esp + 0x18]
and ebx, ebp
not ebx
inc ecx
and eax, ebx
dec edi
cmp ecx, dword [esp + 0x20]
jb 0x51e767
mov ecx, eax
shr ecx, 4
and eax, ecx
mov ecx, eax
shr ecx, 2
and eax, ecx
lea ecx, [eax + eax]
and ecx, eax
shl ecx, 0x1e
sar ecx, 0x1f
inc edx
and edx, ecx
sub dword [esi + 4], edx
cmp byte [esp + 0x14], 0
mov eax, dword [esi + 4]
pop edi
pop ebp
pop ebx
je 0x51e7d4
mov edx, dword [esp + 0x10]
add dword [esi + 0xc], edx
add dword [esi + 0x10], edx
sub eax, edx
sub dword [esi + 0x28], edx
mov dword [esi + 4], eax
mov eax, ecx
and eax, 1
not ecx
or eax, ecx
pop esi
ret
Function at 0x51e7e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x5c
call fcn.004a72f0
mov eax, dword [0x595978]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
mov ebx, dword [esp + 0x68]
mov eax, dword [ebx + 4]
push ebp
push esi
mov esi, dword [esp + 0x74]
push edi
mov edi, dword [esp + 0x70]
mov dword [esp + 0x1c], eax
sub eax, esi
xor ebp, ebp
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], eax
cmp dword [ebx + 0x28], esi
jae 0x51e834
push str.rec__orig_len___md_size
push 0x10b
push str.._ssl_s3_cbc.c
call fcn.004c7730
add esp, 0xc
cmp esi, 0x40
jbe 0x51e850
push str.md_size___EVP_MAX_MD_SIZE
push 0x10c
push str.._ssl_s3_cbc.c
call fcn.004c7730
add esp, 0xc
mov ebx, dword [ebx + 0x28]
lea eax, [esi + 0x100]
mov dword [esp + 0x10], ebx
cmp ebx, eax
jbe 0x51e86b
mov ebp, ebx
sub ebp, esi
sub ebp, 0x100
mov ebx, esi
and ebx, 0xfffffffe
shl ebx, 0x17
mov eax, ebx
sub eax, ebp
add eax, dword [esp + 0x14]
xor edx, edx
div esi
push esi
lea ecx, [esp + 0x2c]
push 0
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], edx
call fcn.004a6110
add esp, 0xc
cmp ebp, dword [esp + 0x10]
jae 0x51e8ee
lea ecx, [ecx]
xor edi, edi
test esi, esi
je 0x51e8e4
mov ecx, dword [esp + 0x14]
mov eax, ebp
sub eax, ecx
sub ecx, dword [esp + 0x1c]
cmp ebp, dword [esp + 0x10]
jae 0x51e8ea
lea edx, [ecx + eax]
not edx
sar edx, 0x1f
mov ebx, eax
not ebx
sar ebx, 0x1f
not dl
and dl, bl
mov ebx, dword [esp + 0x74]
mov ebx, dword [ebx + 0xc]
and dl, byte [ebx + ebp]
mov ebx, dword [esp + 0x18]
or byte [esp + edi + 0x28], dl
inc edi
inc ebp
inc eax
cmp edi, esi
jb 0x51e8b2
cmp ebp, dword [esp + 0x10]
jb 0x51e8a0
mov edi, dword [esp + 0x24]
push esi
push 0
push edi
call fcn.004a6110
add esp, 0xc
mov dword [esp + 0x10], 0
test esi, esi
je 0x51e944
sub ebx, dword [esp + 0x20]
add ebx, esi
lea esp, [esp]
xor edx, edx
mov eax, ebx
div esi
mov ecx, dword [esp + 0x10]
mov cl, byte [esp + ecx + 0x28]
xor eax, eax
movzx ebp, dl
movzx edx, al
xor edx, ebp
dec edx
sar edx, 0x1f
and dl, cl
or byte [edi + eax], dl
inc eax
cmp eax, esi
jb 0x51e923
mov eax, dword [esp + 0x10]
inc eax
inc ebx
mov dword [esp + 0x10], eax
cmp eax, esi
jb 0x51e910
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049cc86
add esp, 0x5c
ret