joyce8/EMBER2024-capa huggingface dataset:
Function at 0x484e10
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 0x484e79
mov eax, ecx
sub eax, edi
add eax, esi
and eax, edx
mov dword [ebp - 8], eax
jmp 0x484e9b
cmp esi, 0x14
jne 0x484e88
mov eax, ecx
mov ecx, esi
sub eax, edi
add eax, esi
jmp 0x484e95
cmp esi, 0x30
jne 0x484e9b
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.0041d6f0
mov edx, dword [ebp - 0x10]
add esp, 0xc
cmp edi, edx
jge 0x484f17
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 0x484f06
lea edi, [ebp - 0x68]
add edi, eax
lea ebx, [ecx + edi]
cmp ebx, edx
jge 0x484f03
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 0x484ec7
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 0x484ec1
mov bl, byte [ebp - 1]
cmp dword [ebp - 0x24], 0
jne 0x484f51
test esi, esi
jle 0x484faa
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 0x484f33
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0x14
jne 0x484f82
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 0x484f63
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0x30
jne 0x484faa
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 0x484f94
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48c150
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 0x48c162
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x48c2a0
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 0x48c37d
push ebx
mov ebx, edx
sub ebx, eax
cmp edi, 8
jb 0x48c359
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 0x48c2e0
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 0x48c374
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 0x48c360
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 0x4924a0
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x4924c8
mov ecx, dword [0x55587c]
push eax
test ecx, ecx
je 0x4924b9
call ecx
jmp 0x4924be
call fcn.0042a4fb
add esp, 4
mov dword [esi + 0x6c], 0
mov eax, dword [0x555884]
push 0x3e0
test eax, eax
je 0x4924da
call eax
jmp 0x4924df
call fcn.0042d0bc
add esp, 4
mov dword [esi + 0x6c], eax
test eax, eax
jne 0x4924f0
mov eax, 0xffffff83
pop esi
ret
push 0x3e0
push 0
push eax
call fcn.0041d6f0
mov eax, dword [esi + 0x6c]
add esp, 0xc
mov ecx, dword [esi + 0x84]
add eax, 0x1ac
je 0x4925b3
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 0x4925b3
mov eax, dword [esi + 0x84]
mov dword [ecx + 0xd8], eax
call fcn.004c2580
test eax, eax
jne 0x4925b8
mov ecx, dword [esi + 0x6c]
add ecx, 0x300
je 0x4925b3
mov eax, dword [esi + 0x84]
push ecx
mov dword [ecx + 0xd8], eax
call fcn.004c53f0
add esp, 4
test eax, eax
jne 0x4925b8
pop esi
ret
mov eax, 0xffffff53
pop esi
ret

Function at 0x494f80
Capabilities:
Hash data using sha1

Disassembly:
add edx, 0xfffffffd
push esi
mov esi, ecx
cmp edx, 5
ja case.0x494f8f.5
jmp dword [edx*4 + 0x495098]
test esi, esi
je case.0x494f8f.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.0x494f8f.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.004ca0c0
add esp, 4
mov dword [esi + 0x220], edx
pop esi
ret
test esi, esi
je case.0x494f8f.5
mov dword [esi + 0xd8], 0
call fcn.004c2580
mov dword [esi + 0x220], 0
pop esi
ret
test esi, esi
je case.0x494f8f.5
push esi
mov dword [esi + 0xd8], 0
call fcn.004c53f0
add esp, 4
mov dword [esi + 0x220], 0
pop esi
ret
mov dword [esi + 0x220], 0
mov eax, 0xffffff53
pop esi
ret
Function at 0x499090
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 0x4991d2
sub ecx, 1
je 0x499152
sub ecx, 1
jne 0x499265
lea eax, [esp + 8]
mov dword [esp + 0xe0], ecx
push eax
call fcn.004c53f0
add esp, 4
test eax, eax
jne 0x499148
test esi, esi
jne 0x4990e5
test edi, edi
jne 0x499143
push edi
mov edx, esi
lea ecx, [esp + 0xc]
call fcn.004c2810
add esp, 4
test eax, eax
jne 0x499148
test esi, esi
je 0x499143
lea ecx, [esp + 8]
call fcn.004c26c0
test eax, eax
jne 0x499148
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.004c53f0
add esp, 4
mov ecx, 0x40
jmp 0x49925f
mov eax, 0xffffff53
mov ecx, 0x40
jmp 0x49925f
lea ecx, [esp + 8]
mov dword [esp + 0xe0], 0
call fcn.004c2580
test eax, eax
jne 0x4991c8
test esi, esi
jne 0x499172
test edi, edi
jne 0x4991c3
push edi
mov edx, esi
lea ecx, [esp + 0xc]
call fcn.004c2810
add esp, 4
test eax, eax
jne 0x4991c8
test esi, esi
je 0x4991c3
lea ecx, [esp + 8]
call fcn.004c26c0
test eax, eax
jne 0x4991c8
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.004c2580
mov ecx, 0x30
jmp 0x49925f
mov eax, 0xffffff53
mov ecx, 0x30
jmp 0x49925f
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 0x49923c
test edi, edi
je 0x49924f
jmp 0x49925a
push edi
mov edx, esi
lea ecx, [esp + 0xc]
call fcn.004c95d0
add esp, 4
test eax, eax
jne 0x49925a
mov edx, esi
lea ecx, [esp + 8]
call fcn.004c9e10
mov ecx, 0x20
test eax, eax
jne 0x499265
mov eax, ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x499270
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 0x4993b6
sub ecx, 1
je 0x499335
sub ecx, 1
jne 0x49944a
lea eax, [esp + 8]
mov dword [esp + 0xe0], ecx
push eax
call fcn.004c53f0
add esp, 4
test eax, eax
jne 0x49932b
mov eax, dword [ebp + 8]
test edi, edi
jne 0x4992c8
test eax, eax
jne 0x499326
push eax
mov edx, edi
lea ecx, [esp + 0xc]
call fcn.004c2810
add esp, 4
test eax, eax
jne 0x49932b
test esi, esi
je 0x499326
lea ecx, [esp + 8]
call fcn.004c26c0
test eax, eax
jne 0x49932b
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.004c53f0
add esp, 4
mov ecx, 0x40
jmp 0x499444
mov eax, 0xffffff53
mov ecx, 0x40
jmp 0x499444
lea ecx, [esp + 8]
mov dword [esp + 0xe0], 0
call fcn.004c2580
test eax, eax
jne 0x4993ac
mov eax, dword [ebp + 8]
test edi, edi
jne 0x499358
test eax, eax
jne 0x4993a7
push eax
lea ecx, [esp + 0xc]
call fcn.004c2810
add esp, 4
test eax, eax
jne 0x4993ac
test esi, esi
je 0x4993a7
lea ecx, [esp + 8]
call fcn.004c26c0
test eax, eax
jne 0x4993ac
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.004c2580
mov ecx, 0x30
jmp 0x499444
mov eax, 0xffffff53
mov ecx, 0x30
jmp 0x499444
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 0x499421
cmp dword [ebp + 8], edi
jbe 0x499434
jmp 0x49943f
push dword [ebp + 8]
lea ecx, [esp + 0xc]
call fcn.004c95d0
add esp, 4
test eax, eax
jne 0x49943f
mov edx, esi
lea ecx, [esp + 8]
call fcn.004c9e10
mov ecx, 0x20
test eax, eax
jne 0x49944a
mov eax, ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x49b6a0
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 0x49b8eb
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x49b8eb
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 0x49b8eb
lea eax, [ebp - 0x4c]
push 0x20
push eax
mov edx, eax
call fcn.004cff40
mov edx, dword [ebx + 0x1e8]
add esp, 8
test edx, edx
je 0x49b8d8
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.004d2e10
add esp, 4
lea edx, [ebp - 0x4c]
mov ecx, 0x20
mov byte [edx], 0
lea edx, [edx + 1]
sub ecx, 1
jne 0x49b770
test eax, eax
jne 0x49b8f0
mov esi, dword [ebx + 0x1350]
movzx edi, word [ebp + 0xc]
test esi, esi
je 0x49b8eb
cmp dword [ebp + 8], eax
je 0x49b8eb
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x49b8eb
push 5
mov ecx, esi
call fcn.004d3270
add esp, 4
test eax, eax
jne 0x49b8f0
lea edx, [eax + 5]
mov ecx, esi
call fcn.004d2d30
test eax, eax
jne 0x49b8f0
mov edx, dword [ebp + 8]
mov ecx, esi
push edi
call fcn.004d3270
add esp, 4
test eax, eax
jne 0x49b8f0
mov edx, edi
mov ecx, esi
call fcn.004d2d30
test eax, eax
jne 0x49b8f0
push edi
lea edx, [eax + 5]
mov ecx, esi
call fcn.004d2cc0
add esp, 4
test eax, eax
jne 0x49b8f0
lea edx, [ebp - 0x2c]
mov ecx, esi
call fcn.004d2fc0
test eax, eax
jne 0x49b8f0
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 0x49b831
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 0x49b8b1
mov eax, 0xfffffecf
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x1e8]
test ecx, ecx
je 0x49b8eb
mov eax, dword [ebp - 4]
test eax, eax
je 0x49b8eb
mov edx, dword [ebp + 8]
push edi
push eax
call fcn.004cff40
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 0x49b8e0
mov eax, 0xffffff53
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49bd10
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 0x49bd76
cmp dword [ebp + 0xc], 1
jne 0x49bd54
mov edx, dword [esi + 0x3f8]
mov ebx, dword [esi + 0x3f4]
lea ecx, [edx + 1]
mov dword [esi + 0x3f8], ecx
cmp edx, ecx
jbe 0x49bd76
lea ecx, [ebx + 1]
mov dword [esi + 0x3f4], ecx
jmp 0x49bd76
mov edx, dword [esi + 0x400]
mov ebx, dword [esi + 0x3fc]
lea ecx, [edx + 1]
mov dword [esi + 0x400], ecx
cmp edx, ecx
jbe 0x49bd76
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 0x49bdd0
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x49cf70
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 0x49d00e
sub eax, 1
je 0x49cf9e
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.004c2580
test eax, eax
jne 0x49d004
push eax
xor edx, edx
call fcn.004c2810
add esp, 4
test eax, eax
jne 0x49d004
lea ecx, [esp + 8]
call fcn.004c26c0
test eax, eax
jne 0x49d004
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.004c2580
mov edx, 0x30
lea ecx, [edx - 0x29]
jmp 0x49d088
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.004c9e10
mov edx, 0x20
lea ecx, [edx - 0x1a]
test eax, eax
jne 0x49d0c1
cmp byte [esi + 0x2e1], 4
je 0x49d0a0
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.004d0c60
add esp, 0x24
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4a61c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
push esi
test ecx, ecx
je 0x4a634d
test edx, edx
je 0x4a634d
cmp dword [ebp + 0x14], 0
jbe 0x4a61ea
cmp dword [ebp + 0x10], 0
je 0x4a634d
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x4a634d
cmp dword [ebp + 0x1c], 0
je 0x4a634d
push 0
push edx
xorps xmm0, xmm0
mov edx, ecx
lea ecx, [ebp - 0xb0]
movups xmmword [ebp - 0x10], xmm0
call fcn.004a6640
add esp, 8
test eax, eax
jne 0x4a6352
mov edx, dword [ebp + 8]
test edx, edx
je 0x4a634d
mov al, byte [ebp - 0x14]
cmp al, 1
je 0x4a6241
cmp al, 2
je 0x4a6241
mov eax, 0xffffff40
pop esi
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
sub eax, dword [ebp - 0x1c]
cmp eax, 0x22
jae 0x4a6256
mov eax, 0xfffffeee
pop esi
mov esp, ebp
pop ebp
ret
push 0x22
lea ecx, [ebp - 0x6c]
call fcn.004d3270
add esp, 4
test eax, eax
jne 0x4a6352
add dword [ebp - 0x1c], 0x22
mov byte [ebp - 0x14], 2
test eax, eax
jne 0x4a6352
push dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0xb0]
push dword [ebp + 0x1c]
call fcn.004a6540
add esp, 8
test eax, eax
jne 0x4a6352
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0xb0]
call fcn.004a6360
test eax, eax
jne 0x4a6352
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 0x4a62d0
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 0x4a6640
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 0x4a6778
test edi, edi
je 0x4a6778
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4a6778
push 0xa0
push 0
push esi
call fcn.0041d6f0
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 0x4a66a4
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.004cff40
add esp, 4
lea ecx, [esi + 0x44]
lea edx, [ebp - 0x2c]
call fcn.004d2e10
add esp, 4
test eax, eax
jne 0x4a677d
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 0x4b5450
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 0x4b54bb
test edx, edx
je 0x4b54cd
mov eax, 0xffffff53
mov esp, ebp
pop ebp
ret
push edx
mov edx, ecx
lea ecx, [ebp - 0x70]
call fcn.004c95d0
add esp, 4
test eax, eax
jne 0x4b54d8
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x70]
call fcn.004c9e10
mov esp, ebp
pop ebp
ret

Function at 0x4b54e0
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.004c0c30
add esp, 4
test eax, eax
jne 0x4b5542
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x64]
call fcn.004c0db0
mov esp, ebp
pop ebp
ret

Function at 0x4b59d0
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.004ca9d0
add esp, 4
test eax, eax
jne 0x4b5a2b
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x60]
call fcn.004ca890
mov esp, ebp
pop ebp
ret