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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
mov ecx, ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
sub ecx, 4
jb 0x52a4e7
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x52a4ee
add edx, 4
add esi, 4
sub ecx, 4
jae 0x52a4d6
xor edi, edi
cmp ecx, 0xfffffffc
je 0x52a529
movzx edi, byte [edx]
movzx eax, byte [esi]
sub edi, eax
jne 0x52a529
cmp ecx, 0xfffffffd
je 0x52a529
movzx edi, byte [edx + 1]
movzx eax, byte [esi + 1]
sub edi, eax
jne 0x52a529
cmp ecx, 0xfffffffe
je 0x52a529
movzx edi, byte [edx + 2]
movzx eax, byte [esi + 2]
sub edi, eax
jne 0x52a529
cmp ecx, 0xffffffff
je 0x52a529
movzx edi, byte [edx + 3]
movzx eax, byte [esi + 3]
sub edi, eax
test edi, edi
jle 0x52a544
push 0x159
push str.........prog3rdPartyLibsopenssl_1.1cryptox509v3_v3_addr.c
push str.assertion_failed:_memcmp_min__max__length____0
call fcn.005af0a0
add esp, 0xc
mov edi, dword [ebp + 0xc]
xor ecx, ecx
test ebx, ebx
jle 0x52a561
mov esi, dword [ebp + 8]
mov edx, edi
sub esi, edi
mov al, byte [esi + edx]
cmp al, byte [edx]
jne 0x52a561
inc ecx
inc edx
cmp ecx, ebx
jl 0x52a554
lea edx, [ebx - 1]
mov ebx, dword [ebp + 8]
test edx, edx
js 0x52a583
mov esi, ebx
lea eax, [edx + edi]
sub esi, edi
cmp byte [eax + esi], 0
jne 0x52a583
cmp byte [eax], 0xff
jne 0x52a583
dec eax
sub edx, 1
jns 0x52a572
cmp ecx, edx
jl case.0x52a5af.2
jle 0x52a595
pop edi
pop esi
lea eax, [ecx*8]
pop ebx
pop ebp
ret
mov dh, byte [ecx + ebx]
mov bl, byte [ecx + edi]
mov dl, bl
xor dl, dh
movzx eax, dl
dec eax
cmp eax, 0x7e
ja case.0x52a5af.2
movzx eax, byte [eax + 0x52a620]
jmp dword [eax*4 + 0x52a600]
mov eax, 7
jmp 0x52a5e5
mov eax, 6
jmp 0x52a5e5
mov eax, 5
jmp 0x52a5e5
mov eax, 4
jmp 0x52a5e5
mov eax, 3
jmp 0x52a5e5
mov eax, 2
jmp 0x52a5e5
mov eax, 1
test dl, dh
jne case.0x52a5af.2
and bl, dl
cmp bl, dl
jne case.0x52a5af.2
pop edi
pop esi
lea eax, [eax + ecx*8]
pop ebx
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret

Function at 0x52b5c0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov cl, byte [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
add ebx, esi
push edi
mov edi, dword [ebp + 8]
movzx eax, cl
add edi, esi
and eax, 1
test esi, esi
je 0x52b5fe
movzx edx, byte [ebx - 1]
lea ebx, [ebx - 1]
movzx ecx, cl
lea edi, [edi - 1]
xor edx, ecx
mov cl, byte [ebp + 0x14]
add eax, edx
mov byte [edi], al
shr eax, 8
sub esi, 1
jne 0x52b5e0
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x530380
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xor edx, edx
test esi, esi
je 0x5303d0
mov al, byte [esi]
test al, al
je 0x5303d0
push edi
mov edi, 0x100
nop dword [eax]
movzx eax, al
lea esi, [esi + 1]
or eax, edi
add edi, 0x100
mov ecx, eax
shr ecx, 2
xor ecx, eax
imul eax, eax
and ecx, 0xf
rol edx, cl
xor edx, eax
mov al, byte [esi]
test al, al
jne 0x5303a0
mov eax, edx
shr eax, 0x10
pop edi
xor eax, edx
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x5470a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov edx, dword [eax + 0x60]
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
mov ecx, dword [edx + 0x70]
mov dword [ebp - 4], edx
test ecx, ecx
je 0x54710a
test edi, edi
je 0x5470ea
lea eax, [edx + 0x30]
add eax, ecx
mov dword [ebp + 8], eax
nop
cmp ecx, 0x40
jae 0x5470ea
mov al, byte [eax]
inc ecx
xor al, byte [esi]
inc esi
mov byte [ebx], al
inc ebx
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
sub edi, 1
jne 0x5470d0
mov dword [edx + 0x70], ecx
test edi, edi
je 0x5471d0
cmp ecx, 0x40
jne 0x54710a
mov dword [edx + 0x70], 0
add dword [edx + 0x20], 1
jne 0x54710a
inc dword [edx + 0x24]
mov eax, edi
and eax, 0x3f
sub edi, eax
mov dword [ebp - 8], eax
lea eax, [edx + 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [eax]
mov dword [ebp + 8], eax
cmp edi, 0x40
jb 0x54717b
push dword [ebp - 0xc]
mov ecx, edi
xor edx, edx
shr ecx, 6
add eax, ecx
cmp eax, ecx
cmovae edx, eax
neg dword [ebp + 8]
cmp eax, ecx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
cmovae eax, ecx
push edx
shl eax, 6
push eax
push esi
push ebx
mov dword [ebp + 8], eax
call fcn.00430480
mov eax, dword [ebp + 8]
add esp, 0x14
mov ecx, dword [ebp - 0xc]
sub edi, eax
mov edx, dword [ebp - 4]
add esi, eax
add ebx, eax
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
test eax, eax
jne 0x547173
inc dword [edx + 0x24]
mov dword [ebp + 8], eax
cmp edi, 0x40
jae 0x547124
cmp dword [ebp - 8], 0
je 0x5471d0
push 0x40
lea eax, [edx + 0x30]
push 0
push eax
mov dword [ebp + 8], eax
call fcn.005d6d60
push dword [ebp - 0xc]
mov edi, dword [ebp - 4]
push edi
push 0x40
lea eax, [edi + 0x30]
push eax
push eax
call fcn.00430480
mov eax, dword [ebp - 8]
add esp, 0x20
xor edx, edx
test eax, eax
je 0x5471cd
sub esi, ebx
mov edi, eax
mov eax, dword [ebp + 8]
lea ecx, [edx + ebx]
mov al, byte [eax + edx]
inc edx
xor al, byte [esi + ecx]
mov byte [ecx], al
cmp edx, edi
jb 0x5471b4
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edi + 0x70], eax
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x54ee30
Capabilities:
Check for time delay via gettickcount
Generate random numbers via winapi
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
lea eax, [ebp - 4]
push 0xf0000040
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x54ee8b
lea eax, [ebp - 0x74]
push eax
push 0x40
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x54ee80
movsd xmm0, qword [0x639758]
lea eax, [ebp - 0x74]
sub esp, 8
movsd qword [esp], xmm0
push 0x40
push eax
call fcn.004f3c00
add esp, 0x10
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0xf0000040
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x54eee3
lea eax, [ebp - 0x74]
push eax
push 0x40
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x54eed8
movsd xmm0, qword [0x639758]
lea eax, [ebp - 0x74]
sub esp, 8
movsd qword [esp], xmm0
push 0x40
push eax
call fcn.004f3c00
add esp, 0x10
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [0x6915bc], 0
je 0x54ef23
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x54ef01
mov dword [0x6915bc], eax
jmp 0x54ef23
sub esp, 8
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
movsd qword [esp], xmm0
push 8
push eax
call fcn.004f3c00
add esp, 0x10
cmp dword [0x6915bc], 0
jne 0x54ef45
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub esp, 8
mov dword [ebp - 8], eax
xorps xmm0, xmm0
lea eax, [ebp - 8]
movsd qword [esp], xmm0
push 4
push eax
call fcn.004f3c00
add esp, 0x10
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
movsd xmm0, qword [0x6000a8]
lea eax, [ebp - 0x34]
sub esp, 8
movsd qword [esp], xmm0
push 0x20
push eax
call fcn.004f3c00
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movsd xmm0, qword [0x6000a8]
sub esp, 8
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
movsd qword [esp], xmm0
push 4
push eax
call fcn.004f3c00
add esp, 0x10
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x559c90
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x10]
cmp ebx, 2
je 0x559cea
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x559cdc
push eax
push 0
lea eax, [ebp + 0x18]
push eax
push 0
call fcn.005248d0
add esp, 0x10
cmp dword [ebp + 0x18], 0xffffffff
je 0x559cdc
push 0x2f
push str.........prog3rdPartyLibsopenssl_1.1cryptoececx_meth.c
push 0x66
push 0x10a
push 0x10
call fcn.0050bc80
add esp, 0x14
xor eax, eax
pop edi
pop ebx
pop ebp
ret
test edi, edi
je 0x559ce6
cmp dword [ebp + 0x14], 0x20
je 0x559cea
push 0x35
jmp 0x559cc0
push esi
push 0x3a
push str.........prog3rdPartyLibsopenssl_1.1cryptoececx_meth.c
push 0x24
call fcn.004f4ee0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x559d21
push 0x3c
push str.........prog3rdPartyLibsopenssl_1.1cryptoececx_meth.c
push 0x41
push 0x10a
push 0x10
call fcn.0050bc80
add esp, 0x14
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
test ebx, ebx
jne 0x559d37
push dword [ebp + 0x14]
push edi
push esi
call fcn.005d67e0
add esp, 0xc
jmp 0x559de3
push 0x43
push str.........prog3rdPartyLibsopenssl_1.1cryptoececx_meth.c
push 0x20
call fcn.005113e0
add esp, 0xc
mov dword [esi + 0x20], eax
test eax, eax
jne 0x559d7b
push 0x45
push str.........prog3rdPartyLibsopenssl_1.1cryptoececx_meth.c
push 0x41
push 0x10a
push 0x10
call fcn.0050bc80
push 0x46
push str.........prog3rdPartyLibsopenssl_1.1cryptoececx_meth.c
push esi
call fcn.004f4da0
add esp, 0x20
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
cmp ebx, 2
jne 0x559dc9
push 0x20
push eax
call fcn.004f3c30
mov ecx, dword [esi + 0x20]
add esp, 8
test eax, eax
jg 0x559db6
push 0x4b
push str.........prog3rdPartyLibsopenssl_1.1cryptoececx_meth.c
push ecx
call fcn.005113d0
push 0x4c
push str.........prog3rdPartyLibsopenssl_1.1cryptoececx_meth.c
push esi
call fcn.004f4da0
add esp, 0x18
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
and byte [ecx], 0xf8
mov eax, dword [esi + 0x20]
and byte [eax + 0x1f], 0x7f
mov eax, dword [esi + 0x20]
or byte [eax + 0x1f], 0x40
jmp 0x559dd7
movups xmm0, xmmword [edi]
movups xmmword [eax], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [eax + 0x10], xmm0
push dword [esi + 0x20]
push esi
call fcn.0058c180
add esp, 8
push esi
push 0x40a
push dword [ebp + 8]
call fcn.004fb8e0
add esp, 0xc
mov eax, 1
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x55ba80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.00493890
add esp, 4
cmp eax, 0x72
jne 0x55bc11
mov esi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x10]
mov ebx, eax
push esi
push dword [ebp + 0x1c]
and eax, 1
shr ebx, 1
push dword [ebp + 0x18]
add eax, ebx
push dword [ebp + 0x14]
mov dword [ebp - 4], eax
push eax
push dword [ebp + 0xc]
call fcn.0052b670
push eax
call fcn.0055b870
add esp, 0x1c
test eax, eax
je 0x55bb20
push 0xf8
push str.........prog3rdPartyLibsopenssl_1.1cryptokdf_tls1_prf.c
push esi
call fcn.004f4e00
mov edi, eax
add esp, 0xc
test edi, edi
je 0x55bb20
mov ecx, dword [ebp + 0xc]
push esi
push edi
push dword [ebp + 0x18]
add ecx, ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push ecx
call fcn.004fb890
push eax
call fcn.0055b870
add esp, 0x1c
test eax, eax
jne 0x55bb29
push 0xfd
push str.........prog3rdPartyLibsopenssl_1.1cryptokdf_tls1_prf.c
push esi
push edi
call fcn.004f4c40
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
test esi, esi
je 0x55bbf1
mov edx, dword [ebp + 0x1c]
cmp esi, 0x40
jb 0x55bbc9
lea eax, [esi - 1]
lea ecx, [edx - 1]
add eax, edi
add ecx, esi
cmp edx, eax
ja 0x55bb51
cmp ecx, edi
jae 0x55bbc9
mov eax, esi
lea ecx, [edi + 0x30]
and eax, 0xffffffc0
mov esi, edi
sub esi, edx
mov dword [ebp - 8], eax
mov dword [ebp - 4], esi
lea eax, [edx + 0x10]
mov esi, dword [ebp + 0x20]
mov edx, dword [ebp - 4]
nop dword [eax]
movups xmm0, xmmword [eax - 0x10]
add ebx, 0x40
lea ecx, [ecx + 0x40]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ecx - 0x70]
pxor xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [edx + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ecx - 0x50]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm0, xmmword [eax - 0x20]
movups xmm1, xmmword [ecx - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp ebx, dword [ebp - 8]
jb 0x55bb70
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 8], ebx
cmp ebx, esi
jae 0x55bbf1
mov eax, edi
lea ecx, [ebx + edx]
sub eax, edx
mov edx, esi
mov dword [ebp - 8], eax
sub edx, ebx
mov esi, eax
nop dword [eax]
mov al, byte [ecx + esi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x55bbe0
mov esi, dword [ebp + 0x20]
push 0x102
push str.........prog3rdPartyLibsopenssl_1.1cryptokdf_tls1_prf.c
push esi
push edi
call fcn.004f4c40
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
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 esi
call fcn.0055b870
add esp, 0x1c
test eax, eax
je 0x55bb20
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5635d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [ebp + 0x18]
mov ebx, 1
push edi
push dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 8]
shl ebx, cl
call fcn.004f89c0
add esp, 8
test eax, eax
jne 0x563601
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 3
jg 0x563665
xor ecx, ecx
mov dword [ebp + 0x18], ecx
cmp dword [ebp + 0xc], ecx
jle 0x56379b
xor esi, esi
xor eax, eax
test ebx, ebx
jle 0x563646
nop dword [eax]
mov ecx, eax
xor ecx, dword [ebp + 0x14]
lea edx, [ecx - 1]
not ecx
shr edx, 0x1f
shr ecx, 0x1f
and edx, ecx
neg edx
and edx, 1
neg edx
and edx, dword [edi + eax*4]
inc eax
or esi, edx
cmp eax, ebx
jl 0x563620
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [eax + ecx*4], esi
inc ecx
lea eax, [ebx*4]
mov dword [ebp + 0x18], ecx
add edi, eax
cmp ecx, dword [ebp + 0xc]
jl 0x563614
jmp 0x56379b
mov edx, dword [ebp + 0x14]
lea ecx, [esi - 2]
sar edx, cl
mov esi, 1
shl esi, cl
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x24], esi
lea eax, [esi - 1]
and ecx, eax
mov eax, edx
mov dword [ebp - 0x10], ecx
not eax
shr eax, 0x1f
lea ecx, [edx - 1]
shr ecx, 0x1f
and ecx, eax
mov eax, edx
neg ecx
xor eax, 1
and ecx, 1
neg ecx
mov dword [ebp - 0x20], ecx
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
mov eax, edx
neg ecx
xor eax, 2
and ecx, 1
xor edx, 3
neg ecx
mov dword [ebp - 0x1c], ecx
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
lea eax, [edx - 1]
shr eax, 0x1f
not edx
shr edx, 0x1f
neg ecx
and eax, edx
and ecx, 1
neg eax
xor edx, edx
and eax, 1
mov dword [ebp - 0xc], edx
neg ecx
neg eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0xc], edx
jle 0x56379b
shl ebx, 2
mov dword [ebp - 0x28], ebx
xor ecx, ecx
xor ebx, ebx
mov dword [ebp + 0x18], ecx
test esi, esi
jle 0x563783
lea eax, [esi + esi*2]
lea edx, [edi + esi*4]
lea ecx, [edi + esi*8]
mov dword [ebp - 8], edx
lea eax, [edi + eax*4]
mov dword [ebp - 4], ecx
mov dword [ebp + 0x10], eax
mov eax, dword [eax]
mov esi, ebx
mov ecx, dword [ecx]
and ecx, dword [ebp - 0x18]
and eax, dword [ebp - 0x14]
xor esi, dword [ebp - 0x10]
or ecx, eax
mov edx, dword [edx]
and edx, dword [ebp - 0x1c]
mov eax, dword [edi + ebx*4]
or edx, ecx
and eax, dword [ebp - 0x20]
lea ecx, [esi - 1]
shr ecx, 0x1f
not esi
shr esi, 0x1f
or eax, edx
mov edx, dword [ebp - 8]
and ecx, esi
mov esi, dword [ebp - 0x24]
neg ecx
and ecx, 1
inc ebx
neg ecx
add edx, 4
and ecx, eax
mov dword [ebp - 8], edx
or dword [ebp + 0x18], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
add eax, 4
add ecx, 4
mov dword [ebp + 0x10], eax
mov dword [ebp - 4], ecx
cmp ebx, esi
jl 0x563721
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
add edi, dword [ebp - 0x28]
mov eax, dword [eax]
mov dword [eax + edx*4], ecx
inc edx
mov dword [ebp - 0xc], edx
cmp edx, dword [ebp + 0xc]
jl 0x563701
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push eax
mov dword [eax + 4], edi
call fcn.004f87f0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5647c0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
cmp dword [ebp + 0x18], esi
jne 0x564844
mov ecx, dword [ebp + 0x10]
mov al, byte [ecx]
cmp al, 0x6a
je 0x5647d9
cmp al, 0x6b
jne 0x564844
inc ecx
cmp al, 0x6b
jne 0x56481b
add esi, 0xfffffffd
xor eax, eax
test esi, esi
jle 0x5647f9
mov dl, byte [ecx]
inc ecx
cmp dl, 0xba
je 0x5647f9
cmp dl, 0xbb
jne 0x56480d
inc eax
cmp eax, esi
jl 0x5647e7
sub esi, eax
test eax, eax
jne 0x56481e
push 0x50
push str.........prog3rdPartyLibsopenssl_1.1crypto_rsa_rsa_x931.c
push 0x8a
jmp 0x564850
push 0x48
push str.........prog3rdPartyLibsopenssl_1.1crypto_rsa_rsa_x931.c
push 0x8a
jmp 0x564850
add esi, 0xfffffffe
cmp byte [esi + ecx], 0xcc
je 0x564832
push 0x58
push str.........prog3rdPartyLibsopenssl_1.1crypto_rsa_rsa_x931.c
push 0x8b
jmp 0x564850
push esi
push ecx
push dword [ebp + 8]
call fcn.005d67e0
add esp, 0xc
mov eax, esi
pop esi
pop ebp
ret
push 0x3d
push str.........prog3rdPartyLibsopenssl_1.1crypto_rsa_rsa_x931.c
push 0x89
push 0x80
push 4
call fcn.0050bc80
add esp, 0x14
or eax, 0xffffffff
pop esi
pop ebp
ret

Function at 0x56bf50
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 4], ebx
test esi, esi
jle 0x56c047
mov edx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
inc edi
mov dword [ebp + 0x10], edi
movzx eax, byte [edi - 1]
cmp esi, 3
jb 0x56bfc9
movzx ecx, byte [edi]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 1]
shl eax, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + 1], cl
mov ecx, eax
and ecx, 0x3f
shr eax, 6
add edx, 2
and eax, 0x3f
mov bl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ecx, edx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x56c015
shl eax, 0x10
cmp esi, 2
jne 0x56bfd9
movzx ecx, byte [edi]
shl ecx, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + 1], cl
add edx, 2
mov ecx, edx
cmp esi, 1
jne 0x56c007
mov al, 0x3d
jmp 0x56c013
shr eax, 6
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov bl, 0x3d
mov edi, dword [ebp + 0x10]
sub esi, 3
mov byte [edx], al
add edi, 3
mov byte [ecx + 1], bl
lea edx, [ecx + 2]
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp + 0x10], edi
mov dword [ebp - 4], ebx
test esi, esi
jg 0x56bf71
pop edi
pop esi
mov eax, ebx
mov byte [ecx + 2], 0
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x577c40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [esi + 8]
mov dword [ebp - 4], eax
sub eax, ebx
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp + 0x10], eax
cmp dword [esi + 0xc], ebx
jae 0x577c7e
push 0x4d6
push str.........prog3rdPartyLibsopenssl_1.1_ssl_record_ssl3_record.c
push str.assertion_failed:_rec__orig_len___md_size
call fcn.005af0a0
add esp, 0xc
cmp ebx, 0x40
jbe 0x577c9a
push 0x4d7
push str.........prog3rdPartyLibsopenssl_1.1_ssl_record_ssl3_record.c
push str.assertion_failed:_md_size___EVP_MAX_MD_SIZE
call fcn.005af0a0
add esp, 0xc
mov ecx, dword [esi + 0xc]
lea eax, [ebp - 0x9c]
neg eax
mov dword [ebp - 0x10], ecx
and eax, 0x3f
lea edi, [ebp - 0x9c]
add edi, eax
lea eax, [ebx + 0x100]
mov dword [ebp - 0x1c], edi
cmp ecx, eax
jbe 0x577ccc
mov eax, ecx
sub eax, ebx
sub eax, 0x100
mov dword [ebp + 0x10], eax
push ebx
xor esi, esi
mov dword [ebp - 8], 0
push esi
push edi
call fcn.005d6d60
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov dword [ebp - 0xc], esi
cmp ecx, dword [ebp - 0x10]
jae 0x577d70
mov eax, dword [ebp + 0xc]
mov edx, ecx
sub edx, dword [ebp - 4]
mov dword [ebp + 0xc], edx
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x18], eax
xor edx, dword [ebp - 4]
mov eax, ecx
xor eax, dword [ebp - 0x14]
lea edi, [eax - 1]
not eax
shr eax, 0x1f
shr edi, 0x1f
and edi, eax
mov eax, ecx
xor eax, dword [ebp - 4]
neg edi
or edx, eax
mov eax, dword [ebp - 0x18]
xor edx, ecx
shr edx, 0x1f
neg edx
mov cl, byte [eax + ecx]
mov eax, edi
or eax, dword [ebp - 8]
and eax, edx
mov edx, dword [ebp - 0xc]
and edi, edx
mov dword [ebp - 8], eax
and al, cl
or esi, edi
mov edi, dword [ebp - 0x1c]
or byte [edx + edi], al
inc edx
mov ecx, edx
mov eax, edx
sub ecx, ebx
xor eax, ebx
xor ecx, ebx
or ecx, eax
xor ecx, edx
shr ecx, 0x1f
neg ecx
and edx, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
inc ecx
mov edx, dword [ebp + 0xc]
inc edx
mov dword [ebp + 0x10], ecx
mov dword [ebp + 0xc], edx
cmp ecx, dword [ebp - 0x10]
jb 0x577d00
xor edx, edx
test ebx, ebx
je 0x577da3
mov ecx, dword [ebp + 8]
mov eax, esi
xor eax, 0x20
mov al, byte [eax + edi]
movzx eax, byte [esi + edi]
inc esi
mov byte [edx + ecx], al
mov ecx, esi
sub ecx, ebx
mov eax, esi
xor ecx, ebx
xor eax, ebx
or ecx, eax
inc edx
xor ecx, esi
shr ecx, 0x1f
neg ecx
and esi, ecx
cmp edx, ebx
jb 0x577d76
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x578720
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
inc ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
mov eax, dword [esi + 4]
mov ecx, dword [edi + 8]
mov eax, dword [eax + 0x64]
test byte [eax + 0x34], 1
je 0x5787a0
mov edx, dword [ebp + 0x10]
lea eax, [ebx + edx]
cmp eax, ecx
ja 0x5787a4
add dword [edi + 0x14], edx
sub ecx, edx
add dword [edi + 0x18], edx
sub dword [edi + 0xc], edx
mov dword [edi + 8], ecx
mov eax, dword [edi + 0x14]
push dword [esi + 0xb0]
mov al, byte [eax + ecx - 1]
movzx ebx, al
mov byte [ebp + 0x17], al
mov dword [ebp + 8], ebx
call fcn.00493890
push eax
call fcn.004f5820
mov esi, dword [edi + 8]
add esp, 8
mov dword [ebp - 0x10], esi
and eax, 0x200000
je 0x5787ad
sub esi, ebx
mov eax, 1
dec esi
mov dword [edi + 8], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, ecx
jbe 0x57875d
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov ebx, esi
mov edx, dword [ebp + 8]
mov eax, esi
add ecx, edx
sub ebx, ecx
xor eax, ecx
xor ebx, ecx
or ebx, eax
mov eax, 0x100
xor ebx, esi
shr ebx, 0x1f
dec ebx
cmp esi, eax
cmovb eax, esi
mov dword [ebp - 0xc], eax
test eax, eax
je 0x57882e
mov eax, edx
dec esi
shr eax, 0x1f
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x14]
add eax, esi
xor edi, edi
mov esi, eax
nop word [eax + eax]
mov ecx, edx
lea esi, [esi - 1]
mov edx, dword [ebp - 8]
sub ecx, edi
shr ecx, 0x1f
mov eax, edi
shr eax, 0x1f
inc edi
xor cl, al
xor al, dl
or cl, al
movzx eax, byte [ebp + 0x17]
xor cl, dl
dec cl
movzx edx, cl
movzx ecx, byte [esi + 1]
xor ecx, eax
and edx, ecx
not edx
and ebx, edx
mov edx, dword [ebp + 8]
cmp edi, dword [ebp - 0xc]
jb 0x5787f0
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp + 0xc]
not ebx
lea eax, [edx + 1]
movzx ecx, bl
dec ecx
shr ecx, 0x1f
neg ecx
and eax, ecx
sub esi, eax
mov eax, ecx
mov dword [edi + 8], esi
and eax, 1
pop edi
not ecx
pop esi
or eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret