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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, ecx
mov dword [ebp - 0x10], edx
push ebx
mov dword [ebp - 0x20], eax
mov ecx, edx
push esi
movzx eax, byte [eax + edx - 1]
xor bl, bl
mov esi, dword [ebp + 8]
sub ecx, eax
push edi
mov edi, edx
mov byte [ebp - 1], bl
sub edi, esi
dec ecx
sub edi, 0x100
mov dword [ebp - 0x1c], ecx
mov eax, edi
sub ecx, esi
shr eax, 0x1f
xor edx, edx
dec eax
mov dword [ebp - 8], edx
and edi, eax
lea edx, [esi - 1]
mov eax, ecx
mov dword [ebp - 0xc], edi
shr eax, 0x1f
dec eax
mov dword [ebp - 0x28], edx
and ecx, eax
mov eax, edx
and eax, esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x24], eax
jne 0x485159
mov eax, ecx
sub eax, edi
add eax, esi
and eax, edx
mov dword [ebp - 8], eax
jmp 0x48517b
cmp esi, 0x14
jne 0x485168
mov eax, ecx
mov ecx, esi
sub eax, edi
add eax, esi
jmp 0x485175
cmp esi, 0x30
jne 0x48517b
mov eax, ecx
mov ecx, esi
sub eax, edi
add eax, esi
cdq
idiv ecx
mov dword [ebp - 8], edx
push esi
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.0041d750
mov edx, dword [ebp - 0x10]
add esp, 0xc
cmp edi, edx
jge 0x4851f7
lea eax, [ebp - 0x68]
mov ecx, edi
sub ecx, eax
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
xor eax, eax
test esi, esi
jle 0x4851e6
lea edi, [ebp - 0x68]
add edi, eax
lea ebx, [ecx + edi]
cmp ebx, edx
jge 0x4851e3
add ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
add ecx, eax
mov esi, dword [ebp + 8]
sub edx, eax
sub edx, dword [ebp - 0xc]
inc eax
dec edx
shr ecx, 0x1f
shr edx, 0x1f
dec cl
dec dl
and dl, cl
mov ecx, dword [ebp - 0x20]
and dl, byte [ebx + ecx]
or byte [edi], dl
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
cmp eax, esi
jl 0x4851a7
mov edi, dword [ebp - 0xc]
add edi, esi
add ecx, esi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], ecx
cmp edi, edx
jl 0x4851a1
mov bl, byte [ebp - 1]
cmp dword [ebp - 0x24], 0
jne 0x485231
test esi, esi
jle 0x48528a
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
sub ecx, eax
mov edx, dword [ebp - 0x28]
mov dword [ebp - 8], ecx
add ecx, eax
and ecx, edx
mov cl, byte [ebp + ecx - 0x68]
xor cl, byte [eax]
inc eax
or bl, cl
mov ecx, dword [ebp - 8]
sub esi, 1
jne 0x485213
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0x14
jne 0x485262
mov eax, dword [ebp - 8]
mov edi, esi
mov ecx, dword [ebp + 0xc]
sub eax, ecx
mov dword [ebp - 8], eax
add eax, ecx
cdq
idiv edi
mov al, byte [ebp + edx - 0x68]
xor al, byte [ecx]
inc ecx
or bl, al
mov eax, dword [ebp - 8]
sub esi, 1
jne 0x485243
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0x30
jne 0x48528a
mov eax, dword [ebp - 8]
mov edi, esi
mov ecx, dword [ebp + 0xc]
sub eax, ecx
mov dword [ebp - 8], eax
add eax, ecx
cdq
idiv edi
mov al, byte [ebp + edx - 0x68]
xor al, byte [ecx]
inc ecx
or bl, al
mov eax, dword [ebp - 8]
sub esi, 1
jne 0x485274
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48c430
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov bl, cl
sub edi, edx
mov esi, 4
mov cl, byte [edi + edx]
lea edx, [edx + 1]
xor cl, byte [edx - 1]
and cl, bl
xor byte [edx - 1], cl
sub esi, 1
jne 0x48c442
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x48c580
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov eax, edx
xor esi, esi
mov edx, ecx
mov dword [ebp - 8], eax
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 4], edx
test edi, edi
jle 0x48c65d
push ebx
mov ebx, edx
sub ebx, eax
cmp edi, 8
jb 0x48c639
mov esi, dword [ebp - 4]
mov edx, edi
and edx, 0xfffffff8
xorps xmm4, xmm4
xorps xmm3, xmm3
add eax, 4
movd xmm2, dword [ecx + esi]
lea eax, [eax + 8]
movd xmm1, dword [eax - 0xc]
xorps xmm0, xmm0
punpcklbw xmm2, xmm0
add ecx, 8
punpcklbw xmm1, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
movd xmm1, dword [eax - 8]
punpcklbw xmm1, xmm0
por xmm4, xmm2
movd xmm2, dword [ebx + eax - 8]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
por xmm3, xmm2
cmp ecx, edx
jl 0x48c5c0
por xmm3, xmm4
movaps xmm0, xmm3
psrldq xmm0, 8
por xmm3, xmm0
movups xmm0, xmm3
psrldq xmm0, 4
por xmm3, xmm0
movd esi, xmm3
cmp ecx, edi
jge 0x48c654
mov eax, dword [ebp - 8]
add eax, ecx
sub edi, ecx
nop dword [eax]
movzx edx, byte [ebx + eax]
lea eax, [eax + 1]
movzx ecx, byte [eax - 1]
xor edx, ecx
or esi, edx
sub edi, 1
jne 0x48c640
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x492780
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x4927a8
mov ecx, dword [0x420ede8]
push eax
test ecx, ecx
je 0x492799
call ecx
jmp 0x49279e
call fcn.0042a55b
add esp, 4
mov dword [esi + 0x6c], 0
mov eax, dword [0x420ecbc]
push 0x3e0
test eax, eax
je 0x4927ba
call eax
jmp 0x4927bf
call fcn.0042d11c
add esp, 4
mov dword [esi + 0x6c], eax
test eax, eax
jne 0x4927d0
mov eax, 0xffffff83
pop esi
ret
push 0x3e0
push 0
push eax
call fcn.0041d750
mov eax, dword [esi + 0x6c]
add esp, 0xc
mov ecx, dword [esi + 0x84]
add eax, 0x1ac
je 0x492893
xorps xmm0, xmm0
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
mov dword [eax + 0x6c], ecx
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x60], 0
mov dword [eax + 0x64], 0
mov dword [eax + 0x68], 0
mov ecx, dword [esi + 0x6c]
add ecx, 0x220
je 0x492893
mov eax, dword [esi + 0x84]
mov dword [ecx + 0xd8], eax
call fcn.004c2800
test eax, eax
jne 0x492898
mov ecx, dword [esi + 0x6c]
add ecx, 0x300
je 0x492893
mov eax, dword [esi + 0x84]
push ecx
mov dword [ecx + 0xd8], eax
call fcn.004c5670
add esp, 4
test eax, eax
jne 0x492898
pop esi
ret
mov eax, 0xffffff53
pop esi
ret

Function at 0x495260
Capabilities:
Hash data using sha1

Disassembly:
add edx, 0xfffffffd
push esi
mov esi, ecx
cmp edx, 5
ja case.0x49526f.5
jmp dword [edx*4 + 0x495378]
test esi, esi
je case.0x49526f.5
mov dword [esi + 0x5c], 0
xor eax, eax
mov dword [esi + 0x4c], 0x67452301
mov dword [esi + 0x50], 0xefcdab89
mov dword [esi + 0x54], 0x98badcfe
mov dword [esi + 0x58], 0x10325476
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0x220], eax
pop esi
ret
test esi, esi
je case.0x49526f.5
mov dword [esi + 0x60], 0
xor eax, eax
mov dword [esi + 0x4c], 0x67452301
mov dword [esi + 0x50], 0xefcdab89
mov dword [esi + 0x54], 0x98badcfe
mov dword [esi + 0x58], 0x10325476
mov dword [esi + 0x5c], 0xc3d2e1f0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0x220], eax
pop esi
ret
push ecx
xor edx, edx
call fcn.004ca340
add esp, 4
mov dword [esi + 0x220], edx
pop esi
ret
test esi, esi
je case.0x49526f.5
mov dword [esi + 0xd8], 0
call fcn.004c2800
mov dword [esi + 0x220], 0
pop esi
ret
test esi, esi
je case.0x49526f.5
push esi
mov dword [esi + 0xd8], 0
call fcn.004c5670
add esp, 4
mov dword [esi + 0x220], 0
pop esi
ret
mov dword [esi + 0x220], 0
mov eax, 0xffffff53
pop esi
ret
Function at 0x499370
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe0
mov eax, 0xffffff53
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
mov edi, edx
sub ecx, 4
je 0x4994b2
sub ecx, 1
je 0x499432
sub ecx, 1
jne 0x499545
lea eax, [esp + 8]
mov dword [esp + 0xe0], ecx
push eax
call fcn.004c5670
add esp, 4
test eax, eax
jne 0x499428
test esi, esi
jne 0x4993c5
test edi, edi
jne 0x499423
push edi
mov edx, esi
lea ecx, [esp + 0xc]
call fcn.004c2a90
add esp, 4
test eax, eax
jne 0x499428
test esi, esi
je 0x499423
lea ecx, [esp + 8]
call fcn.004c2940
test eax, eax
jne 0x499428
movups xmm0, xmmword [esp + 8]
lea eax, [esp + 8]
push eax
movups xmmword [esi], xmm0
movups xmm0, xmmword [esp + 0x1c]
movups xmmword [esi + 0x10], xmm0
movups xmm0, xmmword [esp + 0x2c]
movups xmmword [esi + 0x20], xmm0
movups xmm0, xmmword [esp + 0x3c]
movups xmmword [esi + 0x30], xmm0
call fcn.004c5670
add esp, 4
mov ecx, 0x40
jmp 0x49953f
mov eax, 0xffffff53
mov ecx, 0x40
jmp 0x49953f
lea ecx, [esp + 8]
mov dword [esp + 0xe0], 0
call fcn.004c2800
test eax, eax
jne 0x4994a8
test esi, esi
jne 0x499452
test edi, edi
jne 0x4994a3
push edi
mov edx, esi
lea ecx, [esp + 0xc]
call fcn.004c2a90
add esp, 4
test eax, eax
jne 0x4994a8
test esi, esi
je 0x4994a3
lea ecx, [esp + 8]
call fcn.004c2940
test eax, eax
jne 0x4994a8
movups xmm0, xmmword [esp + 8]
lea ecx, [esp + 8]
movups xmmword [esi], xmm0
movups xmm0, xmmword [esp + 0x18]
movups xmmword [esi + 0x10], xmm0
movups xmm0, xmmword [esp + 0x28]
movups xmmword [esi + 0x20], xmm0
call fcn.004c2800
mov ecx, 0x30
jmp 0x49953f
mov eax, 0xffffff53
mov ecx, 0x30
jmp 0x49953f
mov dword [esp + 8], 0x6a09e667
mov dword [esp + 0xc], 0xbb67ae85
mov dword [esp + 0x10], 0x3c6ef372
mov dword [esp + 0x14], 0xa54ff53a
mov dword [esp + 0x18], 0x510e527f
mov dword [esp + 0x1c], 0x9b05688c
mov dword [esp + 0x20], 0x1f83d9ab
mov dword [esp + 0x24], 0x5be0cd19
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
test esi, esi
jne 0x49951c
test edi, edi
je 0x49952f
jmp 0x49953a
push edi
mov edx, esi
lea ecx, [esp + 0xc]
call fcn.004c9850
add esp, 4
test eax, eax
jne 0x49953a
mov edx, esi
lea ecx, [esp + 8]
call fcn.004ca090
mov ecx, 0x20
test eax, eax
jne 0x499545
mov eax, ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x499550
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe0
mov eax, 0xffffff53
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x10]
push edi
mov edi, edx
sub ecx, 4
je 0x499696
sub ecx, 1
je 0x499615
sub ecx, 1
jne 0x49972a
lea eax, [esp + 8]
mov dword [esp + 0xe0], ecx
push eax
call fcn.004c5670
add esp, 4
test eax, eax
jne 0x49960b
mov eax, dword [ebp + 8]
test edi, edi
jne 0x4995a8
test eax, eax
jne 0x499606
push eax
mov edx, edi
lea ecx, [esp + 0xc]
call fcn.004c2a90
add esp, 4
test eax, eax
jne 0x49960b
test esi, esi
je 0x499606
lea ecx, [esp + 8]
call fcn.004c2940
test eax, eax
jne 0x49960b
movups xmm0, xmmword [esp + 8]
lea eax, [esp + 8]
push eax
movups xmmword [esi], xmm0
movups xmm0, xmmword [esp + 0x1c]
movups xmmword [esi + 0x10], xmm0
movups xmm0, xmmword [esp + 0x2c]
movups xmmword [esi + 0x20], xmm0
movups xmm0, xmmword [esp + 0x3c]
movups xmmword [esi + 0x30], xmm0
call fcn.004c5670
add esp, 4
mov ecx, 0x40
jmp 0x499724
mov eax, 0xffffff53
mov ecx, 0x40
jmp 0x499724
lea ecx, [esp + 8]
mov dword [esp + 0xe0], 0
call fcn.004c2800
test eax, eax
jne 0x49968c
mov eax, dword [ebp + 8]
test edi, edi
jne 0x499638
test eax, eax
jne 0x499687
push eax
lea ecx, [esp + 0xc]
call fcn.004c2a90
add esp, 4
test eax, eax
jne 0x49968c
test esi, esi
je 0x499687
lea ecx, [esp + 8]
call fcn.004c2940
test eax, eax
jne 0x49968c
movups xmm0, xmmword [esp + 8]
lea ecx, [esp + 8]
movups xmmword [esi], xmm0
movups xmm0, xmmword [esp + 0x18]
movups xmmword [esi + 0x10], xmm0
movups xmm0, xmmword [esp + 0x28]
movups xmmword [esi + 0x20], xmm0
call fcn.004c2800
mov ecx, 0x30
jmp 0x499724
mov eax, 0xffffff53
mov ecx, 0x30
jmp 0x499724
mov dword [esp + 8], 0x6a09e667
mov dword [esp + 0xc], 0xbb67ae85
mov dword [esp + 0x10], 0x3c6ef372
mov dword [esp + 0x14], 0xa54ff53a
mov dword [esp + 0x18], 0x510e527f
mov dword [esp + 0x1c], 0x9b05688c
mov dword [esp + 0x20], 0x1f83d9ab
mov dword [esp + 0x24], 0x5be0cd19
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
test edi, edi
jne 0x499701
cmp dword [ebp + 8], edi
jbe 0x499714
jmp 0x49971f
push dword [ebp + 8]
lea ecx, [esp + 0xc]
call fcn.004c9850
add esp, 4
test eax, eax
jne 0x49971f
mov edx, esi
lea ecx, [esp + 8]
call fcn.004ca090
mov ecx, 0x20
test eax, eax
jne 0x49972a
mov eax, ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x49b980
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
mov ebx, ecx
mov dword [ebp - 4], edx
push esi
xorps xmm0, xmm0
push edi
mov esi, dword [ebx + 0x1e8]
movups xmmword [ebp - 0x4c], xmm0
movups xmmword [ebp - 0x3c], xmm0
test esi, esi
je 0x49bbcb
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x49bbcb
movq xmm0, qword [edi]
mov ecx, dword [edi + 8]
movq qword [ebp - 0x10], xmm0
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x34], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
mov dword [esi + 0x40], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
mov ecx, dword [ebx + 0x1e8]
test ecx, ecx
je 0x49bbcb
lea eax, [ebp - 0x4c]
push 0x20
push eax
mov edx, eax
call fcn.004d01b0
mov edx, dword [ebx + 0x1e8]
add esp, 8
test edx, edx
je 0x49bbb8
movq xmm0, qword [edi]
mov ecx, dword [edi + 8]
movq qword [ebp - 0x1c], xmm0
mov eax, dword [ebp - 0x1c]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 0x18]
mov dword [edx + 0x40], 0
mov dword [edx + 0x30], 1
mov dword [edx + 0x38], eax
mov dword [edx + 0x3c], ecx
lea edx, [ebp - 0x4c]
mov dword [ebp - 0x14], ecx
push ecx
mov ecx, dword [ebx + 0x1350]
call fcn.004d3080
add esp, 4
lea edx, [ebp - 0x4c]
mov ecx, 0x20
mov byte [edx], 0
lea edx, [edx + 1]
sub ecx, 1
jne 0x49ba50
test eax, eax
jne 0x49bbd0
mov esi, dword [ebx + 0x1350]
movzx edi, word [ebp + 0xc]
test esi, esi
je 0x49bbcb
cmp dword [ebp + 8], eax
je 0x49bbcb
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x49bbcb
push 5
mov ecx, esi
call fcn.004d34e0
add esp, 4
test eax, eax
jne 0x49bbd0
lea edx, [eax + 5]
mov ecx, esi
call fcn.004d2fa0
test eax, eax
jne 0x49bbd0
mov edx, dword [ebp + 8]
mov ecx, esi
push edi
call fcn.004d34e0
add esp, 4
test eax, eax
jne 0x49bbd0
mov edx, edi
mov ecx, esi
call fcn.004d2fa0
test eax, eax
jne 0x49bbd0
push edi
lea edx, [eax + 5]
mov ecx, esi
call fcn.004d2f30
add esp, 4
test eax, eax
jne 0x49bbd0
lea edx, [ebp - 0x2c]
mov ecx, esi
call fcn.004d3230
test eax, eax
jne 0x49bbd0
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp - 0x28]
xorps xmm4, xmm4
xorps xmm3, xmm3
sub ecx, eax
mov edx, 2
movd xmm2, dword [ecx + eax - 4]
xorps xmm0, xmm0
movd xmm1, dword [eax]
lea eax, [eax + 8]
punpcklbw xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
movd xmm1, dword [ecx + eax - 8]
punpcklbw xmm1, xmm0
por xmm4, xmm2
movd xmm2, dword [eax - 4]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
por xmm3, xmm2
sub edx, 1
jne 0x49bb11
por xmm3, xmm4
movaps xmm0, xmm3
psrldq xmm0, 8
por xmm3, xmm0
movups xmm0, xmm3
psrldq xmm0, 4
por xmm3, xmm0
movd eax, xmm3
test eax, eax
je 0x49bb91
mov eax, 0xfffffecf
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x1e8]
test ecx, ecx
je 0x49bbcb
mov eax, dword [ebp - 4]
test eax, eax
je 0x49bbcb
mov edx, dword [ebp + 8]
push edi
push eax
call fcn.004d01b0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x20
lea ecx, [ebp - 0x4c]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub eax, 1
jne 0x49bbc0
mov eax, 0xffffff53
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49bff0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
xor ebx, ebx
xor edx, edx
test byte [esi + 0x422], 4
lea eax, [edi + 4]
jne 0x49c056
cmp dword [ebp + 0xc], 1
jne 0x49c034
mov edx, dword [esi + 0x3f8]
mov ebx, dword [esi + 0x3f4]
lea ecx, [edx + 1]
mov dword [esi + 0x3f8], ecx
cmp edx, ecx
jbe 0x49c056
lea ecx, [ebx + 1]
mov dword [esi + 0x3f4], ecx
jmp 0x49c056
mov edx, dword [esi + 0x400]
mov ebx, dword [esi + 0x3fc]
lea ecx, [edx + 1]
mov dword [esi + 0x400], ecx
cmp edx, ecx
jbe 0x49c056
lea ecx, [ebx + 1]
mov dword [esi + 0x3fc], ecx
mov esi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
mov byte [eax], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [eax + 1], cl
mov ecx, ebx
shr ecx, 8
mov byte [eax + 2], cl
mov ecx, edx
shr ecx, 0x18
mov byte [eax + 4], cl
mov ecx, edx
shr ecx, 0x10
mov byte [eax + 5], cl
mov ecx, edx
mov byte [eax + 7], dl
mov edx, 8
mov byte [eax + 3], bl
shr ecx, 8
mov byte [eax + 6], cl
movzx ecx, byte [esi]
mov byte [edi], cl
movzx ecx, byte [esi + 1]
mov byte [edi + 1], cl
movzx ecx, byte [esi + 2]
mov byte [edi + 2], cl
movzx ecx, byte [esi + 3]
sub esi, edi
mov byte [edi + 3], cl
nop
mov cl, byte [esi + eax]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x49c0b0
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x49d250
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0x20]
sub esp, 0x120
push esi
mov esi, ecx
push edi
mov edi, edx
sub eax, 4
je 0x49d2ee
sub eax, 1
je 0x49d27e
mov eax, 0xffffff18
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x84]
lea ecx, [esp + 8]
mov dword [esp + 0xe0], eax
call fcn.004c2800
test eax, eax
jne 0x49d2e4
push eax
xor edx, edx
call fcn.004c2a90
add esp, 4
test eax, eax
jne 0x49d2e4
lea ecx, [esp + 8]
call fcn.004c2940
test eax, eax
jne 0x49d2e4
movups xmm0, xmmword [esp + 8]
lea ecx, [esp + 8]
movups xmmword [esp + 0xe8], xmm0
movups xmm0, xmmword [esp + 0x18]
movups xmmword [esp + 0xf8], xmm0
movups xmm0, xmmword [esp + 0x28]
movups xmmword [esp + 0x108], xmm0
call fcn.004c2800
mov edx, 0x30
lea ecx, [edx - 0x29]
jmp 0x49d368
mov eax, dword [esi + 0x84]
lea edx, [esp + 0xe8]
lea ecx, [esp + 8]
mov dword [esp + 8], 0x6a09e667
mov dword [esp + 0xc], 0xbb67ae85
mov dword [esp + 0x10], 0x3c6ef372
mov dword [esp + 0x14], 0xa54ff53a
mov dword [esp + 0x18], 0x510e527f
mov dword [esp + 0x1c], 0x9b05688c
mov dword [esp + 0x20], 0x1f83d9ab
mov dword [esp + 0x24], 0x5be0cd19
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], eax
call fcn.004ca090
mov edx, 0x20
lea ecx, [edx - 0x1a]
test eax, eax
jne 0x49d3a1
cmp byte [esi + 0x2e1], 4
je 0x49d380
mov eax, 0xfffffeba
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ecx
push edx
lea eax, [esp + 0xf0]
mov ecx, edi
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 8
push edx
push dword [ebp + 0xc]
call fcn.004d0ed0
add esp, 0x24
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4a64b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
push esi
test ecx, ecx
je 0x4a663d
test edx, edx
je 0x4a663d
cmp dword [ebp + 0x14], 0
jbe 0x4a64da
cmp dword [ebp + 0x10], 0
je 0x4a663d
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x4a663d
cmp dword [ebp + 0x1c], 0
je 0x4a663d
push 0
push edx
xorps xmm0, xmm0
mov edx, ecx
lea ecx, [ebp - 0xb0]
movups xmmword [ebp - 0x10], xmm0
call fcn.004a6930
add esp, 8
test eax, eax
jne 0x4a6642
mov edx, dword [ebp + 8]
test edx, edx
je 0x4a663d
mov al, byte [ebp - 0x14]
cmp al, 1
je 0x4a6531
cmp al, 2
je 0x4a6531
mov eax, 0xffffff40
pop esi
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
sub eax, dword [ebp - 0x1c]
cmp eax, 0x22
jae 0x4a6546
mov eax, 0xfffffeee
pop esi
mov esp, ebp
pop ebp
ret
push 0x22
lea ecx, [ebp - 0x6c]
call fcn.004d34e0
add esp, 4
test eax, eax
jne 0x4a6642
add dword [ebp - 0x1c], 0x22
mov byte [ebp - 0x14], 2
test eax, eax
jne 0x4a6642
push dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0xb0]
push dword [ebp + 0x1c]
call fcn.004a6830
add esp, 8
test eax, eax
jne 0x4a6642
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0xb0]
call fcn.004a6650
test eax, eax
jne 0x4a6642
lea eax, [ebp - 0x10]
xorps xmm4, xmm4
lea ecx, [ebp - 0xc]
sub eax, esi
xorps xmm3, xmm3
sub ecx, esi
mov edx, 2
nop word [eax + eax]
movd xmm2, dword [eax + esi]
xorps xmm0, xmm0
movd xmm1, dword [esi]
lea esi, [esi + 8]
punpcklbw xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
movd xmm1, dword [esi - 4]
punpcklbw xmm1, xmm0
por xmm4, xmm2
movd xmm2, dword [ecx + esi - 8]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
por xmm3, xmm2
sub edx, 1
jne 0x4a65c0
por xmm3, xmm4
movaps xmm0, xmm3
psrldq xmm0, 8
por xmm3, xmm0
movups xmm0, xmm3
psrldq xmm0, 4
por xmm3, xmm0
movd eax, xmm3
neg eax
sbb eax, eax
and eax, 0xffffff2b
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0xffffff53
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4a6930
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
je 0x4a6a68
test edi, edi
je 0x4a6a68
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4a6a68
push 0xa0
push 0
push esi
call fcn.0041d750
mov al, byte [ebp + 0xc]
xorps xmm0, xmm0
and al, 1
add esp, 0xc
mov byte [esi + 0x9d], al
mov eax, edi
movups xmmword [ebp - 0x2c], xmm0
movups xmmword [ebp - 0x1c], xmm0
and eax, 3
je 0x4a6994
movups xmm0, xmmword [edi]
movups xmmword [ebp - 0x4c], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [ebp - 0x3c], xmm0
test eax, eax
lea ecx, [ebp - 0x4c]
push 0x20
cmove ecx, edi
mov eax, dword [ecx]
mov dword [esi + 0x10], eax
mov eax, dword [ecx + 4]
mov dword [esi + 0x14], eax
mov eax, dword [ecx + 8]
mov dword [esi + 0x18], eax
mov eax, dword [ecx + 0xc]
mov dword [esi + 0x1c], eax
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x20], eax
mov eax, dword [ecx + 0x14]
mov dword [esi + 0x24], eax
mov eax, dword [ecx + 0x18]
mov dword [esi + 0x28], eax
mov eax, dword [ecx + 0x1c]
mov dword [esi + 0x2c], eax
mov dword [esi], 0x61707865
mov dword [esi + 4], 0x3320646e
mov dword [esi + 8], 0x79622d32
mov dword [esi + 0xc], 0x6b206574
mov dword [esi + 0x40], 0
movq xmm0, qword [ebx]
mov ecx, dword [ebx + 8]
movq qword [ebp - 0xc], xmm0
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x34], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x38], eax
lea eax, [ebp - 0x2c]
mov dword [esi + 0x3c], ecx
mov edx, eax
push eax
mov ecx, esi
mov dword [esi + 0x30], 0
call fcn.004d01b0
add esp, 4
lea ecx, [esi + 0x44]
lea edx, [ebp - 0x2c]
call fcn.004d3080
add esp, 4
test eax, eax
jne 0x4a6a6d
movq xmm0, qword [ebx]
mov ecx, dword [ebx + 8]
mov dword [esi + 0x40], eax
movq qword [ebp - 0xc], xmm0
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x34], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x38], eax
xor eax, eax
mov dword [esi + 0x30], 1
mov dword [esi + 0x3c], ecx
pop edi
mov byte [esi + 0x9c], 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0xffffff53
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b56c0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov dword [ebp - 0x70], 0x6a09e667
mov dword [ebp - 0x6c], 0xbb67ae85
mov dword [ebp - 0x68], 0x3c6ef372
mov dword [ebp - 0x64], 0xa54ff53a
mov dword [ebp - 0x60], 0x510e527f
mov dword [ebp - 0x5c], 0x9b05688c
mov dword [ebp - 0x58], 0x1f83d9ab
mov dword [ebp - 0x54], 0x5be0cd19
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
test ecx, ecx
jne 0x4b572b
test edx, edx
je 0x4b573d
mov eax, 0xffffff53
mov esp, ebp
pop ebp
ret
push edx
mov edx, ecx
lea ecx, [ebp - 0x70]
call fcn.004c9850
add esp, 4
test eax, eax
jne 0x4b5748
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x70]
call fcn.004ca090
mov esp, ebp
pop ebp
ret

Function at 0x4b5750
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push edx
mov edx, ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x18], 0x67452301
mov dword [ebp - 0x14], 0xefcdab89
mov dword [ebp - 0x10], 0x98badcfe
mov dword [ebp - 0xc], 0x10325476
mov dword [ebp - 8], 0xc3d2e1f0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
call fcn.004c0eb0
add esp, 4
test eax, eax
jne 0x4b57b2
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x64]
call fcn.004c1030
mov esp, ebp
pop ebp
ret

Function at 0x4b5c40
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push edx
mov edx, ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x14], 0x67452301
mov dword [ebp - 0x10], 0xefcdab89
mov dword [ebp - 0xc], 0x98badcfe
mov dword [ebp - 8], 0x10325476
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
call fcn.004cac50
add esp, 4
test eax, eax
jne 0x4b5c9b
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x60]
call fcn.004cab10
mov esp, ebp
pop ebp
ret