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

Disassembly:
push ebp
push ebx
push esi
push edi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
push edi
push esi
push edi
push esi
mov ebx, esp
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
push ecx
mov eax, dword [esp + 0x34]
push eax
push ebx
cmp ecx, 0
je 0x488f9b
and ebp, 0xfffffff8
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
je 0x488f36
mov ecx, dword [esi]
mov edx, dword [esi + 4]
xor eax, ecx
xor ebx, edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
call fcn.00488b00
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov dword [edi], eax
mov dword [edi + 4], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x488f04
mov ebp, dword [esp + 0x38]
and ebp, 7
je 0x489054
call 0x488f48
pop edx
lea ecx, [edx + 0x138]
mov ebp, dword [ecx + ebp*4]
add ebp, edx
xor ecx, ecx
xor edx, edx
jmp ebp
and ebp, 0xfffffff8
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
je 0x488ff3
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
call fcn.00488b00
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x488fac
mov ebp, dword [esp + 0x38]
and ebp, 7
je 0x489054
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
call fcn.00488b00
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
ror edx, 0x10
mov byte [edi + 6], dl
shr edx, 0x10
mov byte [edi + 5], dh
mov byte [edi + 4], dl
mov dword [edi], ecx
jmp 0x48904f
jmp 0x489054
mov ecx, dword [esp + 0x40]
add esp, 0x1c
mov dword [ecx], eax
mov dword [ecx + 4], ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4890c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x2c]
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
push edi
push esi
push edi
push esi
mov ebx, esp
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
push eax
push ebx
cmp ecx, 0
je 0x4891a4
and ebp, 0xfffffff8
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
je 0x48913f
mov ecx, dword [esi]
mov edx, dword [esi + 4]
xor eax, ecx
xor ebx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
call fcn.00488c60
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov dword [edi], eax
mov dword [edi + 4], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x48910d
mov ebp, dword [esp + 0x3c]
and ebp, 7
je 0x48925d
call 0x489151
pop edx
lea ecx, [edx + 0x12f]
mov ebp, dword [ecx + ebp*4]
add ebp, edx
xor ecx, ecx
xor edx, edx
jmp ebp
and ebp, 0xfffffff8
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
je 0x4891fc
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
call fcn.00488d90
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x4891b5
mov ebp, dword [esp + 0x3c]
and ebp, 7
je 0x48925d
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
call fcn.00488d90
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
ror edx, 0x10
mov byte [edi + 6], dl
shr edx, 0x10
mov byte [edi + 5], dh
mov byte [edi + 4], dl
mov dword [edi], ecx
jmp 0x489258
jmp 0x48925d
mov ecx, dword [esp + 0x4c]
add esp, 0x20
mov dword [ecx], eax
mov dword [ecx + 4], ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x48ac30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x28
call fcn.0041db60
mov eax, dword [0x529474]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 8], eax
xor edx, edx
push ebp
push esi
mov esi, dword [eax]
push edi
mov edi, dword [esp + 0x4c]
mov dh, byte [edi + 1]
lea eax, [edi + 1]
mov dword [esp + 0x28], eax
add eax, 1
mov dword [esp + 0x18], ecx
movzx ecx, byte [edi]
or ecx, edx
movzx edx, byte [eax]
add eax, 1
shl edx, 0x10
or ecx, edx
movzx edx, byte [eax]
add eax, 1
shl edx, 0x18
or ecx, edx
movzx edx, byte [eax]
add eax, 1
xor ebx, ebx
mov bh, byte [eax]
add eax, 1
mov ebp, dword [esp + 0x40]
mov byte [esp + 0x2c], cl
mov dword [esp + 0x10], 0
or edx, ebx
xor ebx, ebx
mov bh, byte [eax + 1]
mov bl, byte [eax]
mov eax, ecx
shr eax, 8
mov byte [esp + 0x2d], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x2e], al
shl ebx, 0x10
or edx, ebx
mov ebx, ecx
shr ecx, 0x18
mov byte [esp + 0x2f], cl
mov ecx, edx
mov eax, edx
mov dword [esp + 0x20], edx
mov byte [esp + 0x30], dl
shr ecx, 8
shr eax, 0x10
shr edx, 0x18
cmp dword [esp + 0x44], 0
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x31], cl
mov byte [esp + 0x32], al
mov byte [esp + 0x33], dl
je 0x48ae11
sub dword [esp + 0x18], 1
test esi, esi
jne 0x48ad6d
mov ecx, dword [esp + 0x24]
push 1
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00488b00
mov ebx, dword [esp + 0x28]
mov eax, ebx
shr eax, 8
mov ecx, ebx
shr ecx, 0x10
mov edx, ebx
shr edx, 0x18
mov byte [esp + 0x39], al
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x3a], cl
mov byte [esp + 0x3b], dl
mov ecx, eax
mov edx, eax
mov byte [esp + 0x3c], al
shr ecx, 8
shr edx, 0x10
shr eax, 0x18
add esp, 0xc
add dword [esp + 0x10], 1
mov byte [esp + 0x2c], bl
mov byte [esp + 0x31], cl
mov byte [esp + 0x32], dl
mov byte [esp + 0x33], al
mov cl, byte [esp + esi + 0x2c]
mov eax, dword [esp + 0x3c]
xor cl, byte [eax]
add esi, 1
mov byte [ebp], cl
add eax, 1
add ebp, 1
and esi, 7
cmp dword [esp + 0x18], 0
mov dword [esp + 0x3c], eax
jne 0x48ad07
cmp dword [esp + 0x10], 0
je 0x48adf8
mov eax, dword [esp + 0x28]
mov byte [edi], bl
mov edx, ebx
shr edx, 8
mov byte [eax], dl
add eax, 1
mov ecx, ebx
shr ecx, 0x10
mov byte [eax], cl
mov ecx, dword [esp + 0x20]
add eax, 1
shr ebx, 0x18
mov byte [eax], bl
mov byte [eax + 1], cl
add eax, 1
add eax, 1
mov edx, ecx
shr edx, 8
mov byte [eax], dl
add eax, 1
mov edx, ecx
shr edx, 0x10
mov byte [eax], dl
shr ecx, 0x18
mov byte [eax + 1], cl
mov eax, dword [esp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004123d1
add esp, 0x28
ret
mov ecx, dword [esp + 0x14]
pop edi
mov dword [ecx], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004123d1
add esp, 0x28
ret
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
pop edi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004123d1
add esp, 0x28
ret
Function at 0x49e060
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x88
call fcn.0041db60
mov eax, dword [0x529474]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x9c]
push ebx
mov ebx, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0x94]
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
push edi
mov edi, dword [esp + 0x9c]
je 0x49e0d5
cmp ebx, dword [esi]
je 0x49e0cc
test edi, edi
je 0x49e0b2
cmp dword [esp + 0xa0], eax
jge 0x49e0cc
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004123d1
add esp, 0x88
ret
mov eax, 1
mov dword [esi], ebx
jmp 0x49e0db
mov ebx, dword [esi]
test ebx, ebx
je 0x49e0b2
test edi, edi
push ebp
je 0x49e1ad
push ebx
call fcn.0043a610
mov ebp, eax
add esp, 4
cmp ebp, 0x80
jle 0x49e10b
push str.j____int_sizeof_ctx__key_
push 0x74
push str..cryptohmachmac.c
call fcn.00425050
add esp, 0xc
mov eax, dword [esp + 0xa4]
cmp ebp, eax
jge 0x49e165
mov ecx, dword [esp + 0x10]
push ecx
lea ebp, [esi + 4]
push ebx
push ebp
call fcn.00437970
add esp, 0xc
test eax, eax
je 0x49e268
mov edx, dword [esp + 0xa4]
push edx
push edi
push ebp
call fcn.00437b20
add esp, 0xc
test eax, eax
je 0x49e268
lea edi, [esi + 0x4c]
push edi
lea eax, [esi + 0x50]
push eax
push ebp
call fcn.00437b30
add esp, 0xc
test eax, eax
je 0x49e268
jmp 0x49e18a
cmp eax, 0x80
ja 0x49e268
push eax
lea ecx, [esi + 0x50]
push edi
push ecx
call fcn.0041c370
mov edx, dword [esp + 0xb0]
lea edi, [esi + 0x4c]
add esp, 0xc
mov dword [edi], edx
mov edi, dword [edi]
cmp edi, 0x80
je 0x49e1b5
mov eax, 0x80
sub eax, edi
push eax
lea ecx, [edi + esi + 0x50]
push 0
push ecx
call fcn.00416190
add esp, 0xc
jmp 0x49e1b5
test eax, eax
je 0x49e254
xor eax, eax
jmp 0x49e1c0
mov dl, byte [esi + eax + 0x50]
xor dl, 0x36
mov byte [esp + eax + 0x14], dl
add eax, 1
cmp eax, 0x80
jl 0x49e1c0
mov eax, dword [esp + 0x10]
push eax
lea ebp, [esi + 0x1c]
push ebx
push ebp
call fcn.00437970
add esp, 0xc
test eax, eax
je 0x49e268
push ebx
call fcn.0043a610
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
call fcn.00437b20
add esp, 0x10
test eax, eax
je 0x49e268
xor eax, eax
jmp 0x49e210
mov dl, byte [esi + eax + 0x50]
xor dl, 0x5c
mov byte [esp + eax + 0x14], dl
add eax, 1
cmp eax, 0x80
jl 0x49e210
mov eax, dword [esp + 0x10]
push eax
lea ebp, [esi + 0x34]
push ebx
push ebp
call fcn.00437970
add esp, 0xc
test eax, eax
je 0x49e268
push ebx
call fcn.0043a610
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
call fcn.00437b20
add esp, 0x10
test eax, eax
je 0x49e268
lea edx, [esi + 0x1c]
push edx
add esi, 4
push esi
call fcn.00437cc0
add esp, 8
test eax, eax
jne 0x49e26c
xor eax, eax
jmp 0x49e271
mov eax, 1
mov ecx, dword [esp + 0x94]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004123d1
add esp, 0x88
ret
Function at 0x4a0ff0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x4a1009
mov esi, edi
mov edi, eax
jmp 0x4a100b
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x4a101b
mov eax, ebx
jmp 0x4a1025
push eax
push ebx
call fcn.00423110
add esp, 8
test eax, eax
jne 0x4a102d
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x4a104b
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [edi + 4]
jl 0x4a1034
cmp eax, dword [esi + 4]
jge 0x4a1062
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [esi + 4]
jl 0x4a1050
mov eax, dword [esi + 4]
test eax, eax
mov dword [ebx + 4], eax
jle 0x4a1085
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x4a1082
sub eax, 1
test eax, eax
jg 0x4a1072
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x4cdb60
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.0041db60
push ebp
push esi
mov esi, dword [esp + 0x54]
push edi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
xor ebp, ebp
push ebp
xor edi, edi
call fcn.004b0580
add esp, 0xc
test eax, eax
je 0x4cdbc0
lea esp, [esp]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
shl edx, 0xa
test eax, edx
je 0x4cdba2
add edi, 1
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
add ebp, 1
push ebp
call fcn.004b0580
add esp, 0xc
test eax, eax
jne 0x4cdb90
test edi, edi
jne 0x4cdbe4
push 0x109
push str.._ssl_t1_enc.c
push 0x44
push 0x11c
push 0x14
call fcn.00422720
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
mov eax, dword [esp + 0x4c]
cdq
idiv edi
cmp edi, 1
push ebx
mov ebx, eax
jne 0x4cdbfb
mov dword [esp + 0x50], 0
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x4c]
push esi
push 0
push eax
call fcn.00416190
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
mov dword [esp + 0x30], 0
call fcn.004b0580
add esp, 0x18
test eax, eax
je 0x4cdce3
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
shl eax, 0xa
test ecx, eax
je 0x4cdcbd
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4cdcf0
mov ebp, dword [esp + 0x58]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push esi
push ebp
push edx
mov edx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x5c]
and edx, 1
add edx, ebx
push edx
mov edx, dword [esp + 0x68]
push edi
push eax
call fcn.004cd760
add esp, 0x34
test eax, eax
je 0x4cdd0e
add edi, ebx
test esi, esi
jle 0x4cdcbd
mov eax, dword [esp + 0x54]
mov ecx, ebp
sub ecx, eax
mov ebp, esi
lea esp, [esp]
mov dl, byte [ecx + eax]
xor byte [eax], dl
add eax, 1
sub ebp, 1
jne 0x4cdcb0
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
add eax, 1
push edx
push eax
mov dword [esp + 0x24], eax
call fcn.004b0580
add esp, 0xc
test eax, eax
jne 0x4cdc30
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0xc
ret
push 0x114
push str.._ssl_t1_enc.c
push 0x146
push 0x11c
push 0x14
call fcn.00422720
add esp, 0x14
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
Function at 0x4d00e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.0041db60
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0x64]
add ebp, 1
test byte [ecx + 0x38], 1
je 0x4d012a
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + 4]
lea edx, [ecx + ebp]
cmp edx, eax
jbe 0x4d011d
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
add dword [esi + 0xc], ecx
add dword [esi + 0x10], ecx
sub eax, ecx
mov dword [esi + 4], eax
jmp 0x4d0135
mov eax, dword [esp + 0x18]
cmp ebp, dword [eax + 4]
ja 0x4d0116
mov esi, eax
test dword [edi + 0x100], 0x200
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push ebx
movzx ebx, byte [ecx + edx - 1]
je 0x4d018a
cmp dword [edi + 0x88], 0
jne 0x4d018a
mov eax, dword [edi + 0x58]
push 8
add eax, 8
push 0x51ab50
push eax
call fcn.00425080
add esp, 0xc
test eax, eax
jne 0x4d017b
test bl, 1
jne 0x4d017b
mov eax, dword [edi + 0x58]
or dword [eax], 8
mov ecx, dword [edi + 0x58]
test byte [ecx], 8
je 0x4d018a
test ebx, ebx
jbe 0x4d018a
sub ebx, 1
mov edx, dword [edi + 0x80]
mov eax, dword [edx]
push eax
call fcn.004aaa90
add esp, 4
test eax, 0x200000
je 0x4d01b5
or ecx, 0xffffffff
sub ecx, ebx
add dword [esi + 4], ecx
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret
mov edi, dword [esi + 4]
lea eax, [ebx + ebp]
mov esi, edi
sub esi, eax
xor esi, eax
mov edx, edi
xor edx, eax
or esi, edx
xor esi, edi
shr esi, 0x1f
mov ecx, 0xff
lea eax, [edi - 1]
sub esi, 1
cmp eax, ecx
mov dword [esp + 0x18], ecx
jae 0x4d01e5
mov ecx, eax
mov dword [esp + 0x18], eax
xor ebp, ebp
test ecx, ecx
jbe 0x4d023e
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0xc]
mov ecx, ebx
shr ecx, 0x1f
lea eax, [edi + edx - 1]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], eax
mov edx, ebx
sub edx, ebp
shr edx, 0x1f
mov eax, ebp
shr eax, 0x1f
xor dl, al
xor cl, al
or dl, cl
mov ecx, dword [esp + 0x10]
xor dl, cl
sub dl, 1
movzx eax, dl
mov edx, dword [esp + 0x24]
movzx edx, byte [edx]
sub dword [esp + 0x24], 1
xor edx, ebx
and eax, edx
not eax
add ebp, 1
and esi, eax
cmp ebp, dword [esp + 0x18]
jb 0x4d0203
mov edx, dword [esp + 0x1c]
not esi
and esi, 0xff
lea ecx, [esi - 1]
shr ecx, 0x1f
not esi
shr esi, 0x1f
and ecx, esi
neg ecx
lea eax, [ebx + 1]
and eax, ecx
sub edi, eax
shl eax, 8
or dword [edx], eax
pop ebx
mov dword [edx + 4], edi
mov eax, ecx
pop edi
and eax, 1
not ecx
pop esi
or eax, ecx
pop ebp
pop ecx
ret
Function at 0x4d0280
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa4
call fcn.0041db60
mov eax, dword [0x529474]
xor eax, esp
mov dword [esp + 0xa0], eax
mov ecx, dword [esp + 0xac]
mov eax, dword [esp + 0xa8]
push ebx
mov ebx, dword [esp + 0xb8]
push ebp
push esi
mov esi, dword [ecx + 4]
push edi
mov edi, dword [esp + 0xc0]
mov dword [esp + 0x18], esi
sub esi, edi
xor ebp, ebp
cmp ebx, edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebp
jae 0x4d02ea
push str.orig_len___md_size
push 0xf8
push str.._ssl_s3_cbc.c
call fcn.00425050
add esp, 0xc
cmp edi, 0x40
jbe 0x4d0306
push str.md_size___EVP_MAX_MD_SIZE
push 0xf9
push str.._ssl_s3_cbc.c
call fcn.00425050
add esp, 0xc
lea ecx, [esp + 0x30]
neg ecx
and ecx, 0x3f
lea edx, [edi + 0x100]
cmp ebx, edx
lea ecx, [esp + ecx + 0x30]
mov dword [esp + 0x1c], ecx
jbe 0x4d0330
mov eax, ebx
sub eax, edi
sub eax, 0x100
mov dword [esp + 0x10], eax
mov ebp, eax
mov eax, edi
and eax, 0xfffffffe
shl eax, 0x17
sub eax, ebp
add eax, esi
xor edx, edx
div edi
push edi
push 0
push ecx
mov ebx, edx
mov dword [esp + 0x30], ebx
call fcn.00416190
mov edx, dword [esp + 0x1c]
add esp, 0xc
xor esi, esi
cmp edx, dword [esp + 0xc4]
jae 0x4d0415
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
sub edx, ecx
mov ebx, ecx
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0xbc]
mov edx, dword [edx + 0xc]
shr eax, 0x1f
shr ebx, 0x1f
sub ecx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
jmp 0x4d03a8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
add ecx, ebx
shr ecx, 0x1f
xor cl, al
mov edx, ebp
shr edx, 0x1f
xor al, dl
or cl, al
mov eax, ebx
mov bl, byte [esp + 0x2c]
shr eax, 0x1f
xor al, bl
xor bl, dl
or al, bl
xor al, dl
sub al, 1
xor cl, dl
mov edx, dword [esp + 0x14]
mov dl, byte [edx + ebp]
not al
add dword [esp + 0x10], 1
and al, dl
sub cl, 1
and al, cl
mov ecx, dword [esp + 0x1c]
or byte [esi + ecx], al
add esi, 1
mov eax, esi
sub eax, edi
xor eax, edi
mov ecx, esi
xor ecx, edi
or eax, ecx
xor eax, esi
shr eax, 0x1f
neg eax
add ebp, 1
and esi, eax
cmp ebp, dword [esp + 0xc4]
jb 0x4d03a0
mov ebx, dword [esp + 0x24]
xor eax, eax
test edi, edi
jbe 0x4d0455
jmp 0x4d0420
mov esi, dword [esp + 0x1c]
mov edx, ebx
xor edx, 0x20
mov cl, byte [edx + esi]
mov dl, byte [ebx + esi]
mov ecx, dword [esp + 0x28]
mov byte [ecx + eax], dl
add ebx, 1
mov edx, ebx
sub edx, edi
xor edx, edi
mov ecx, ebx
xor ecx, edi
or edx, ecx
xor edx, ebx
shr edx, 0x1f
neg edx
add eax, 1
and ebx, edx
cmp eax, edi
jb 0x4d0420
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004123d1
add esp, 0xa4
ret
Function at 0x4d7aa0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor eax, eax
push esi
mov esi, dword [ebp + 8]
mov dword [ecx], eax
push edi
mov dword [ecx + 4], eax
lea eax, [ecx + 1]
add esi, 2
mov edi, 2
lea ecx, [ecx]
movzx ecx, byte [esi - 2]
or byte [eax - 1], cl
mov cl, byte [esi - 1]
add cl, cl
or cl, byte [eax - 1]
mov byte [eax - 1], cl
mov dl, byte [esi]
add dl, dl
add dl, dl
or dl, cl
mov byte [eax - 1], dl
mov cl, byte [esi + 1]
add cl, cl
add cl, cl
add cl, cl
or cl, dl
mov byte [eax - 1], cl
mov dl, byte [esi + 2]
shl dl, 4
or dl, cl
mov byte [eax - 1], dl
mov cl, byte [esi + 3]
shl cl, 5
or cl, dl
mov byte [eax - 1], cl
mov dl, byte [esi + 4]
shl dl, 6
or dl, cl
mov byte [eax - 1], dl
movzx ecx, byte [esi + 5]
shl cl, 7
or cl, dl
mov byte [eax - 1], cl
movzx edx, byte [esi + 6]
or byte [eax], dl
mov cl, byte [esi + 7]
add cl, cl
or cl, byte [eax]
mov byte [eax], cl
mov dl, byte [esi + 8]
add dl, dl
add dl, dl
or dl, cl
mov byte [eax], dl
mov cl, byte [esi + 9]
add cl, cl
add cl, cl
add cl, cl
or cl, dl
mov byte [eax], cl
mov dl, byte [esi + 0xa]
shl dl, 4
or dl, cl
mov byte [eax], dl
mov cl, byte [esi + 0xb]
shl cl, 5
or cl, dl
mov byte [eax], cl
mov dl, byte [esi + 0xc]
shl dl, 6
or dl, cl
mov byte [eax], dl
movzx ecx, byte [esi + 0xd]
shl cl, 7
or cl, dl
mov byte [eax], cl
movzx edx, byte [esi + 0xe]
or byte [eax + 1], dl
mov cl, byte [esi + 0xf]
add cl, cl
or cl, byte [eax + 1]
mov byte [eax + 1], cl
mov dl, byte [esi + 0x10]
add dl, dl
add dl, dl
or dl, cl
mov byte [eax + 1], dl
mov cl, byte [esi + 0x11]
add cl, cl
add cl, cl
add cl, cl
or cl, dl
mov byte [eax + 1], cl
mov dl, byte [esi + 0x12]
shl dl, 4
or dl, cl
mov byte [eax + 1], dl
mov cl, byte [esi + 0x13]
shl cl, 5
or cl, dl
mov byte [eax + 1], cl
mov dl, byte [esi + 0x14]
shl dl, 6
or dl, cl
mov byte [eax + 1], dl
movzx ecx, byte [esi + 0x15]
shl cl, 7
or cl, dl
mov byte [eax + 1], cl
movzx edx, byte [esi + 0x16]
or byte [eax + 2], dl
mov cl, byte [esi + 0x17]
add cl, cl
or cl, byte [eax + 2]
add eax, 4
mov byte [eax - 2], cl
mov dl, byte [esi + 0x18]
add dl, dl
add dl, dl
or dl, cl
mov byte [eax - 2], dl
mov cl, byte [esi + 0x19]
add cl, cl
add cl, cl
add cl, cl
or cl, dl
mov byte [eax - 2], cl
mov dl, byte [esi + 0x1a]
shl dl, 4
or dl, cl
mov byte [eax - 2], dl
mov cl, byte [esi + 0x1b]
shl cl, 5
or cl, dl
mov byte [eax - 2], cl
mov dl, byte [esi + 0x1c]
shl dl, 6
or dl, cl
mov byte [eax - 2], dl
movzx ecx, byte [esi + 0x1d]
shl cl, 7
or cl, dl
mov byte [eax - 2], cl
add esi, 0x20
dec edi
jne 0x4d7ac0
pop edi
pop esi
pop ebp
ret
Function at 0x4d81c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x529474]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x78], eax
xor edi, edi
lea esi, [ebp - 0x74]
mov ecx, dword [ebp - 0x78]
mov dl, byte [ecx + edi]
xor eax, eax
lea esp, [esp]
mov cl, al
mov bl, dl
sar bl, cl
inc eax
and bl, 1
mov byte [esi + eax - 1], bl
cmp eax, 8
jl 0x4d81f0
inc edi
add esi, 8
cmp edi, 8
jl 0x4d81e1
lea edx, [ebp - 0x74]
push edx
call fcn.004d7ce0
mov ebx, dword [ebp + 0xc]
add esp, 4
mov dword [ebp - 0x7c], 0
inc ebx
lea eax, [ebp - 0x34]
mov ecx, 8
lea esi, [ebp - 0x54]
lea edi, [ebp - 0x34]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.004d7de0
add esp, 4
xor eax, eax
mov edi, edi
movzx ecx, byte [ebx + eax - 1]
movzx edx, byte [ebx + eax]
xor byte [ebp + eax - 0x34], cl
xor byte [ebp + eax - 0x33], dl
movzx ecx, byte [ebx + eax + 1]
movzx edx, byte [ebx + eax + 2]
xor byte [ebp + eax - 0x32], cl
xor byte [ebp + eax - 0x31], dl
movzx ecx, byte [ebx + eax + 3]
movzx edx, byte [ebx + eax + 4]
xor byte [ebp + eax - 0x30], cl
xor byte [ebp + eax - 0x2f], dl
add eax, 6
cmp eax, 0x30
jl 0x4d8240
lea eax, [ebp - 0x34]
push eax
call fcn.004d7f00
lea ecx, [ebp - 0x34]
push ecx
call fcn.004d7e80
add esp, 8
xor eax, eax
jmp 0x4d82a0
movzx edx, byte [ebp + eax - 0x34]
movzx ecx, byte [ebp + eax - 0x33]
xor byte [ebp + eax - 0x74], dl
xor byte [ebp + eax - 0x73], cl
movzx edx, byte [ebp + eax - 0x32]
movzx ecx, byte [ebp + eax - 0x31]
xor byte [ebp + eax - 0x72], dl
xor byte [ebp + eax - 0x71], cl
add eax, 4
cmp eax, 0x20
jl 0x4d82a0
mov eax, dword [ebp - 0x7c]
cmp eax, 0xf
je 0x4d8301
mov ecx, 8
lea esi, [ebp - 0x74]
lea edi, [ebp - 0x9c]
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [ebp - 0x54]
lea edi, [ebp - 0x74]
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [ebp - 0x9c]
lea edi, [ebp - 0x54]
rep movsd dword es:[edi], dword [esi]
inc eax
add ebx, 0x30
mov dword [ebp - 0x7c], eax
cmp eax, 0x10
jl 0x4d8223
lea edx, [ebp - 0x74]
push edx
call fcn.004d7d60
mov eax, dword [ebp - 0x78]
push eax
lea ecx, [ebp - 0x74]
push ecx
call fcn.004d7aa0
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004123d1
mov esp, ebp
pop ebp
ret